Re: a typo in ira-emit.c?

2010-06-10 Thread Vladimir Makarov
Amker.Cheng wrote: Yes, I think it can be NULL in some complicated cases when a loop exit edge comes not in the parent loop. By that, you mean the case an regno lives on edges which transfer between adjacent loops, and not lives in parent loop? Yes. But there are even more complicated

a typo in ira-emit.c?

2010-06-09 Thread Amker.Cheng
Hi : I am studying ira right now, there is following code in change_loop if (parent_allocno == NULL || REGNO (ALLOCNO_REG (parent_allocno)) == REGNO (original_reg)) { if (internal_flag_ira_verbose 3 ira_dump_file) fprintf

Re: a typo in ira-emit.c?

2010-06-09 Thread Vladimir N. Makarov
On 06/09/2010 06:45 AM, Amker.Cheng wrote: Hi : I am studying ira right now, there is following code in change_loop if (parent_allocno == NULL || REGNO (ALLOCNO_REG (parent_allocno)) == REGNO (original_reg)) { if (internal_flag_ira_verbose 3

Re: a typo in ira-emit.c?

2010-06-09 Thread Amker.Cheng
Yes, I think it can be NULL in some complicated cases when a loop exit edge comes not in the parent loop. By that, you mean the case an regno lives on edges which transfer between adjacent loops, and not lives in parent loop? So, the fprintf would access null pointer in this case. Thanks for