This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simple enhancement to -dA dump


On Fri, Apr 8, 2011 at 12:20, Xinliang David Li <davidxl@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]