Should -fcross-jumping be part of -O1?

Joe Buck jbuck@synopsys.com
Tue Dec 2 21:00:00 GMT 2003


On Tue, Dec 02, 2003 at 01:54:01PM -0500, Robert Dewar wrote:
> One real problem with gcc is that -O0 is too painfully stupid. It 
> generates piles of junk code.

The main purpose of -O0 is for debugging. The user of -O0 wants a
fast compile and wants to be able to effectively debug.  Accordingly,
it seems to me that intra-statement optimization is fine, as long as,
at any point where the user could set a breakpoint, the state matches
the code (generally meaning that in-memory objects have the correct
state).  However, what the user would not want is for -O0 to get slower.



More information about the Gcc mailing list