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: displaying static pass numbers on rare verbose execution...


On Mon, Nov 29, 2010 at 3:32 PM, Basile Starynkevitch
<basile@starynkevitch.net> wrote:
> On Mon, Nov 29, 2010 at 03:22:42PM +0100, Richard Guenther wrote:
> [... citing me Basile ....]
>> > I respectfully disagree. When trying to add one's IPA pass, it is
>> > useful to understand where should it be inserted, and my small patch
>> > precisely help to understand that.
>> >
>> > Of course, it is more useful for people less knowledgeable of GCC that
>> > you are. But I am sure they will find such a small output helpful.
>> >
>> > Again, some GCC gurus understand in detail all the ordering of passes,
>> > but some newbies (me included) don't understand all the details of
>> > every passes, and giving some more help would help them. Of course,
>> > the GCC experts working more than ten years on GCC don't need that.
>>
>> But if you already do not use -quiet then you get passes printed in
>> execution order ...
>
> Yes, but not their static_number_pass, which is relevant in the dump
> files naming. So I still believe that showing the static_number_pass
> (which *uniquely* identify a dump file name) will help the newbie.

Huh, but newbies will have no clue how to disable -quiet.  (No, -v
doesn't ;))

Not that I'm against printing the number, I am just very confident
that it doesn't add any useful information to a newbie (unless you
document it, in which case you also can document where to expect
the dump file in a sorted ls output)

Richard.

> What I want to explain is that for newbies, which are trying to add a
> new passes, they will perhaps pass -fdump-tree-all and -v, and that my
> small patch help them understand (for IPA passes) the relationship
> between the pass number and its static_number_pass (i.e. its dump file
> name).
>
> Take into account that for some people, understand the order of passes
> is not as simple as it for gurus like you.
>
> Cheers.
>
> --
> Basile STARYNKEVITCH ? ? ? ? http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
> 8, rue de la Faiencerie, 92340 Bourg La Reine, France
> *** opinions {are only mines, sont seulement les miennes} ***
>


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