[PATCH] enable -finline-functions optimization

Thomas Pfaff tpfaff@gmx.net
Mon Apr 14 14:31:00 GMT 2003


Christopher Faylor wrote:
> On Mon, Apr 14, 2003 at 10:19:33AM +0200, Thomas Pfaff wrote:
> 
>>According to
>>http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/Function-Attributes.html
>>__attribute__((used)) should do the trick, but it doesn't seem to work.
> 
> Look at exceptions.cc: unused_sig_wrapper.

Look at my patch: unused_sig_wrapper is removed when the code is 
compiled with -finline-functions.

I tried
static void unused_sig_wrapper () __attribute__((const, used, noinline));

and __attribute__((used)) should prevent the removal, but it didn't.

Thomas





More information about the Cygwin-patches mailing list