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: Should -fcross-jumping be part of -O1?


David Carlton <carlton@kealia.com> writes:

> On Tue, 02 Dec 2003 00:26:07 -0800, "Zack Weinberg"
> <zack@codesourcery.com> said:
> 
> > -O0    No optimization whatsoever.  
> >        Except maybe do obviously-dead code elimination.
> 
> This is obviously a very special case, but dead code elimination
> sometimes makes it difficult to write tests for GDB's test suite.  And
> even when working on real programs I occasionally insert dead code as
> a place where I can set breakpoints.  So, personally, I'd prefer that
> -O0 be pretty stupid.  (Though I don't mind if it's not the default.)

I thought that the dead code elimination at -O0 is supposed to work
properly with GDB: it puts in a 'nop' that the breakpoint can target.
Is this not working?

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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