Mail Archives: djgpp/1997/12/03/10:16:34
Ruiter de M wrote:
> Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
> : Of course, it's documented. Here's a fragment from gcc's Info docs:
> : `-O3'
> : Optimize yet more. `-O3' turns on all optimizations specified by
> : `-O2' and also turns on the `inline-functions' option.
> Yes, I knew this. But it doesn't say it is the *only* difference, does
> it? It explains that -O3 turns on all optimizations specified by -O2,
> and that it also turns on the -finline-functions option, but it might
> not be the only difference.
Aaargh... you're right of course.
> Or am I being too suspicious?
Probably.
> I guess we have to look at the sources to be sure.
That'll be the only way to be sure. Although I don't think there will be
an optimizer feature that won't be enabled by -O2. Imagine. Suppose
there was one, the only reason not to imply this with -O2 would be
because it would change code generation significantly (like
-finline-functions), so it would be an important feature. So it would be
mentioned explicitely with "-O3".
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -