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]

Re: -Os should default optimize to 2, without enforcing it


Cosmin Truta <cosmin@cs.toronto.edu> writes:

> Hi again,
> 
> I noticed an inconsistency between the comment of optimize_size (that
> *defaults* optimize to 2 -- I guess this is the initial intention) and the
> initialization (that *enforces* optimize to be 2). The patch below,
> independent of the patch sent in my previous message, fixes the problem:

No, it's supposed to be that way.  The flag is

-O[setting]

where 'setting' can be `0', `1', `2', `3', or `s', and the default is
`1' if none is specified.

-- 
- 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]