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: -O2 versus -O1 (Was: Re: GCSE store motion)


> We never want -g to affect the generated code. Actually what I would like
> to see (I mentioned this before is a -O.5 which would do all optimizations
> that did not affect debugging). One of the problems with GCC is that -O0 is
> really terrible, much worse than other compilers in "no optimize" mode. That's
> a problem for two reasons.

Hmm, -Og might be a better name.  In particular it would be useful if such 
a mode inhibited optimizations that blurred statement boundaries, so

	int a;

	a = 1;

	a++;

would display correct results after each statement was executed.  'a' 
could still be put in a register though.

R.


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