How to tell gcc that a static function is really used?

Alexandre Oliva aoliva@redhat.com
Thu Jan 17 21:48:00 GMT 2002


On Jan 17, 2002, "H . J . Lu" <hjl@lucon.org> wrote:

> won't emit __dl_runtime_resolve. How do I tell gcc 3.1 to generate
> __dl_runtime_resolve even if -O3 is used?

Try attribute used instead of unused.

> static void __dl_runtime_resolve () __attribute__ ((unused));

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc mailing list