Re: -O2 vs -O3

From: Nix (
Date: Sat May 27 2000 - 14:31:14 EST

"Johan Kullstam" <> writes:

> Matthias Andree <> writes:
> > Andreas Schwab <> writes:
> >
> > > Because the only difference between -O2 and -O3 is -finline-functions,
> > > which is bad for the kernel sources (which wants to control inlining
> > > explicitly).
> >
> > Which could OTOH be defeated explicitly by means of
> > -fno-inline-functions, could not it?
> sure, but what exactly would be the point? the compile command line
> is already long enough without this completely gratuitous bloat.

And it would be gratuitous. Unlike -O2, which switches on optimizations
that are not controllable by any -f flag, the *only* effect of -O3 is to
turn on -finline-functions. So doing -O3 when you don't want automatic
function inlining is wrong.

`People's needs are not `finance'. You can't eat a bank.' --- Alan Rosenthal

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:18 EST