This is the mail archive of the gcc@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: Does anybody really know which pass it is?


On Mon, 12 May 2003, Richard B. Kreckel wrote:

> Hi,
> 
> Joining the recent debate about documentation quality, I am currently
> trying to figure out which optimization pass fries one piece of code of
> mine.  This happens on HPPA since GCC 3.0 till at least GCC 3.2.3.  The
> code runs properly with -O0 and fails with -O1.  It also behaves well on
> all other platforms.  I know that "on most machines, the -O option turns
> on the -fthread-jumps and -fdelayed-branch options, but specific machines
> may handle it differently."  After some (not-so-)educated guesses I
> have tried passing all sorts of -fno-do-this I could find in the
> documentation in order to find the culprit but to no avail.  I must
> be still missing an optimization pass...
> 
> Does anybody else feel that it would be quite useful to have a way to tell
> which pass the compiler is actually performing?  (For more fine-grained
> things we have -fsched-verbose, but that's obviously no help in a
> situation like mine.)
> 
> Regards
>     -richy.

I usually use -da and note which dump files have a zero length, as you
need the dump files later anyway.

Toshi



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