[PATCH] enable -finline-functions optimization
Thomas Pfaff
tpfaff@gmx.net
Mon Apr 14 08:19:00 GMT 2003
Christopher Faylor wrote:
> On Wed, Apr 09, 2003 at 11:03:42AM +0200, Thomas Pfaff wrote:
>
>>This patch enables inline optimization for the c++ source files
>>in winsup/cygwin.
>>
>>I tried several attributes for std_dll_init, wsock_init and
>>unused_sig_wrapper without success, the only working solution was to
>>change the functions from static to global to avoid its removal.
>>
>>And the new_muto in the pwdgrp constructors can not be inlined for more
>>than one instance.
>>
> Sorry but I'm not going to change something that should be a valid static into
> a global just to accommodate the compiler. There should be compiler attributes
> which allow this to behave normally.
As i already mentioned i have tried several attributes.
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.
> Also, minor point of order: This a [RFA], not a [PATCH].
Excuse my ignorance.
Thomas
More information about the Cygwin-patches
mailing list