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?


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.


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