This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] enable -finline-functions optimization
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