aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-14 16:39:34 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-14 16:39:34 +0000
commite26dd47ff77ef693b380dc8cf8ddf46d5ea23421 (patch)
treeea871a40b604f99ef2ed54addfb6bb99ab2243c4 /include
parent181a5bf3c2169fbbdebdb3e4058d28bfa935c184 (diff)
downloadglibc-e26dd47ff77ef693b380dc8cf8ddf46d5ea23421.tar
glibc-e26dd47ff77ef693b380dc8cf8ddf46d5ea23421.tar.gz
glibc-e26dd47ff77ef693b380dc8cf8ddf46d5ea23421.tar.bz2
glibc-e26dd47ff77ef693b380dc8cf8ddf46d5ea23421.zip
Update.
2000-06-14 Kazumoto Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward compatibility. * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise. * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise. * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise. * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise. 2000-06-14 Jakub Jelinek <jakub@redhat.com> * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is defined, terminate quotes and read them after the comment char. * configure.in (HAVE_SECTION_QUOTES): Test whether __attribute__((section ("x"))) puts quotes around x or not. * config.h.in (HAVE_SECTION_QUOTES): Add. * configure: Rebuilt.
Diffstat (limited to 'include')
-rw-r--r--include/libc-symbols.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 7e7a1e5535..1a3e1c8239 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -1,6 +1,6 @@
/* Support macros for making weak and strong aliases for symbols,
and for using symbol sets and linker warnings with GNU ld.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -169,17 +169,24 @@
# ifdef HAVE_ASM_PREVIOUS_DIRECTIVE
# define __make_section_unallocated(section_string) \
asm(".section " section_string "; .previous");
-# elif defined (HAVE_ASM_POPSECTION_DIRECTIVE)
+# elif defined HAVE_ASM_POPSECTION_DIRECTIVE
# define __make_section_unallocated(section_string) \
asm(".pushsection " section_string "; .popsection");
# else
# define __make_section_unallocated(section_string)
# endif
-# define link_warning(symbol, msg) \
- __make_section_unallocated (".gnu.warning." #symbol) \
+# ifdef HAVE_SECTION_QUOTES
+# define link_warning(symbol, msg) \
+ __make_section_unallocated (".gnu.warning." #symbol) \
+ static const char __evoke_link_warning_##symbol[] \
+ __attribute__ ((section (".gnu.warning." #symbol "\"\n\t#\""))) = msg;
+# else
+# define link_warning(symbol, msg) \
+ __make_section_unallocated (".gnu.warning." #symbol) \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
+# endif
# else
# define link_warning(symbol, msg) \
asm(".stabs \"" msg "\",30,0,0,0\n" \