(__attribute_used__): Define.

This commit is contained in:
Ulrich Drepper 2001-10-26 23:35:32 +00:00
parent a5fcd16647
commit d3640b91f7

View File

@ -160,6 +160,15 @@
# define __attribute_pure__ /* Ignore */ # define __attribute_pure__ /* Ignore */
#endif #endif
/* At some point during the gcc 3.1 development the `used' attribute
for functions was introduced. We don't want to use it unconditionally
(although this would be possible) since it generates warnings. */
#if __GNUC_PREREQ (3,1)
# define __attribute_used__ __attribute__ ((__used__))
#else
# define __attribute_used__ __attribute__ ((__unused__))
#endif
/* At some point during the gcc 2.8 development the `format_arg' attribute /* At some point during the gcc 2.8 development the `format_arg' attribute
for functions was introduced. We don't want to use it unconditionally for functions was introduced. We don't want to use it unconditionally
(although this would be possible) since it generates warnings. (although this would be possible) since it generates warnings.