]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 26 Aug 2002 03:50:15 +0000 (03:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 26 Aug 2002 03:50:15 +0000 (03:50 +0000)
2002-08-25  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
declaring __restore and __restore_rt as hidden (if possible).

ChangeLog
sysdeps/unix/sysv/linux/i386/sigaction.c

index 879d4420e7e52ed4919937da33ed38a7dcd53950..2e8c1daeccb29aab3fafe4f58ef9c6c605ff0717 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-25  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
+       declaring __restore and __restore_rt as hidden (if possible).
+
 2002-08-25  Roland McGrath  <roland@redhat.com>
 
        * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
index 8e5ac84dcff3805c22207682c29ec7a3acb47743..57634c1c98c99d68c7c49354f5545036910240af 100644 (file)
@@ -46,10 +46,19 @@ extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbound
 int __libc_missing_rt_sigs;
 #endif
 
-#ifdef __NR_rt_sigaction
+/* Using the hidden attribute here does not change the code but it
+   helps to avoid warnings.  */
+#if defined HAVE_HIDDEN && !defined HAVE_BROKEN_VISIBILITY_ATTRIBUTE
+# ifdef __NR_rt_sigaction
+extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
+# endif
+extern void restore (void) asm ("__restore") attribute_hidden;
+#else
+# ifdef __NR_rt_sigaction
 static void restore_rt (void) asm ("__restore_rt");
-#endif
+# endif
 static void restore (void) asm ("__restore");
+#endif
 
 
 /* If ACT is not NULL, change the action for SIG to *ACT.
@@ -126,7 +135,7 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
                "int $0x80\n"
                "popl %%ebx"
                : "=a" (result)
-               : "0" (SYS_ify (sigaction)), "r" (sig),
+               : "0" (SYS_ify (sigaction)), "mr" (sig),
                  "c" (act ? __ptrvalue (&k_newact) : 0),
                  "d" (oact ? __ptrvalue (&k_oldact) : 0));
 
This page took 0.058527 seconds and 5 git commands to generate.