On Fri, Apr 8, 2011 at 12:20, Xinliang David Li <davi...@google.com> wrote:

>>>   /* Output the insns.  */
>>>   for (insn = first; insn;)
>>>     {
>>> @@ -1721,8 +1788,19 @@ final (rtx first, FILE *file, int optimi
>>>        insn_current_address = INSN_ADDRESSES (INSN_UID (insn));
>>>  #endif /* HAVE_ATTR_length */
>>>
>>> +      dump_basic_block_info (file, insn);
>>
>> Pass start_to_bb, end_to_bb and bb_seqn++ as arguments.  No need to have
>> globals.  You may want to convert start_to_bb and end_to_bb to VEC(), but in
>> the way you're using them, it may not make much difference in clarity.
>
> Those are used to keep global states, not for the purpose parameter passing.

Hm?  What are you referring to here?  Why can't start_to_bb, end_to_bb
and bb_seqn be arguments to dump_basic_block_info?


Diego.

Reply via email to