diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-05-12 00:48:04 +0400 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-05-12 00:48:04 +0400 |
commit | 558ab81ed169c70460dcd502050f76b3d47fb9b0 (patch) | |
tree | 729ddeae7608108bb1c3952bc6f52fbcd25bea53 /libgloss/libnosys/warning.h | |
parent | 7124f04eb8cb8dd5cd109cc7d403d661cd63c622 (diff) |
* libnosys/acconfig.h (HAVE_SECTION_ATTRIBUTES): New macro.
* libnosys/configure.in: Check gcc's support for section attributes.
* libnosys/warning.h: Have link_warning expand to nothing if gcc
does not support section attributes.
Diffstat (limited to 'libgloss/libnosys/warning.h')
-rw-r--r-- | libgloss/libnosys/warning.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgloss/libnosys/warning.h b/libgloss/libnosys/warning.h index 99f3e0df7..2c2998250 100644 --- a/libgloss/libnosys/warning.h +++ b/libgloss/libnosys/warning.h @@ -15,10 +15,14 @@ # define __make_section_unallocated(section_string) # endif -# define link_warning(symbol, msg) \ +# ifdef HAVE_SECTION_ATTRIBUTES +# define link_warning(symbol, msg) \ __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ __attribute__ ((section (".gnu.warning." #symbol))) = msg; +# else +# define link_warning(symbol, msg) +# endif #else /* !ELF */ |