This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: How to tell gcc that a static function is really used?
- From: Ulrich Drepper <drepper at redhat dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: 17 Jan 2002 17:26:55 -0800
- Subject: Re: How to tell gcc that a static function is really used?
- References: <20020117142047.A6196@lucon.org><orhepko4w9.fsf@free.redhat.lsd.ic.unicamp.br><20020117172314.A9351@lucon.org>
- Reply-to: drepper at redhat dot com (Ulrich Drepper)
"H . J . Lu" <hjl@lucon.org> writes:
> #if __GNUC_PREREQ (3,1)
> # define __attribute_used__ __attribute__ ((__used__))
> #else
> # define __attribute_used__ __attribute__ ((__unused__))
> #endif
misc/sys/cdefs.h includes exactly this. Just use it.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------