-finline-functions default with -Os ?

Frédéric L. W. Meunier fredlwm@gmail.com
Sat Jul 3 21:15:00 GMT 2010


Here, -finline-functions appears to be the default using -Os 
with GCC 4.4.4 on Linux (tested with k8-sse3 and 486).

But according to the man page, "Enabled at level -O3". Does the 
manual need a fix ?

The info page also states -Os disables

"-falign-functions -falign-jumps -falign-loops -falign-labels 
-freorder-blocks -freorder-blocks-and-partition 
-fprefetch-loop-arrays -ftree-vect-loop-version"

but -falign-loops -freorder-blocks -ftree-vect-loop-version 
seem to be in.

Or all these vary by processor ?

As I see, -O2 to -Os only adds -finline-functions and removes 
-maccumulate-outgoing-args ?



More information about the Gcc mailing list