PATCH [function-specific, committed] Add #pragma support, make cold functions compile with -Os

Andi Kleen andi@firstfloor.org
Wed Jun 18 11:33:00 GMT 2008


Michael Meissner <michael.meissner@amd.com> writes:

> This patch also allows a function to be compiled with different optimization
> options than the standard in addition to different target options.  Right now,
> the only use is to compile cold functions with -Os.  I am stilling mulling over
> how much of the optimization interface to allow users to use via attribute or
> #pragma.  I would be interested in hearing from potential users whether you
> really need to set say -ftree-vectorize in a function, or just having
> -O1/-O2/-O3/-Os is sufficient, and have the -f options inherited from the
> command line.

I would be interested in support for -funroll-(all)-loops per function (or better
per loop, but per function would be already better)

-Andi



More information about the Gcc-patches mailing list