This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to tell gcc that a static function is really used?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 17 Jan 2002 22:54:14 -0200
- Subject: Re: How to tell gcc that a static function is really used?
- Organization: GCC Team, Red Hat
- References: <20020117142047.A6196@lucon.org>
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