]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use -Werror=undef for assembly code.
authorRoland McGrath <roland@hack.frob.com>
Thu, 12 Feb 2015 21:57:32 +0000 (13:57 -0800)
committerRoland McGrath <roland@hack.frob.com>
Thu, 12 Feb 2015 21:57:32 +0000 (13:57 -0800)
ChangeLog
Makeconfig
sysdeps/arm/Versions
sysdeps/unix/make-syscalls.sh

index bd06443462679c48df9fa4ed9c2d375f37a2d37d..ce62001b06905e9a03af1d87d5a1540ab9a7e364 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2015-02-12  Roland McGrath  <roland@hack.frob.com>
 
+       * Makeconfig (ASFLAGS): Add -Werror=undef.
+       * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
+       * sysdeps/unix/make-syscalls.sh: Always emit #define's for
+       SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
+
        * Makeconfig (after-link): New variable.
        (+link-pie, +link-pie-tests): Use it.
        (+link-static, +link-static-tests): Likewise.
index 1e03481b9d71155b4432b7a9415dce86d1a0978c..509b5bd3df241f146d608b38c235a0c278beb5aa 100644 (file)
@@ -948,7 +948,7 @@ endif
 ifndef ASFLAGS
 ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
 endif
-ASFLAGS += $(ASFLAGS-config) $(asflags-cpu)
+ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu)
 
 ifndef BUILD_CC
 BUILD_CC = $(CC)
index 5f2af29c380ddeed299595d8e13691a3091c1153..f26a1a7606ba2a2c06ecb53549fa24678a3a30d3 100644 (file)
@@ -17,4 +17,8 @@ libc {
   GLIBC_2.8 {
     __gnu_mcount_nc;
   }
+  GLIBC_2.19 {
+    # This set has to exist in some Versions file so we can use 2.19 in
+    # SHLIB_COMPAT.  Since it didn't exist anywhere else, we add it here.
+  }
 }
index 567081a62457673cd9e303fb49d95ae44aaf99c6..e3596b6ce31fe9e69e5c79f6f6cf2956e33b4317 100644 (file)
@@ -250,14 +250,10 @@ while read file srcfile caller syscall args strong weak; do
        \$(make-target-directory)
        (echo '#define SYSCALL_NAME $syscall'; \\
         echo '#define SYSCALL_NARGS $nargs'; \\
-        echo '#define SYSCALL_SYMBOL $strong'; \\"
-  [ $cancellable = 0 ] || echo "\
-        echo '#define SYSCALL_CANCELLABLE 1'; \\"
-  [ $noerrno = 0 ] || echo "\
-        echo '#define SYSCALL_NOERRNO 1'; \\"
-  [ $errval = 0 ] || echo "\
-        echo '#define SYSCALL_ERRVAL 1'; \\"
-  echo "\
+        echo '#define SYSCALL_SYMBOL $strong'; \\
+        echo '#define SYSCALL_CANCELLABLE $cancellable'; \\
+        echo '#define SYSCALL_NOERRNO $noerrno'; \\
+        echo '#define SYSCALL_ERRVAL $errval'; \\
         echo '#include <syscall-template.S>'; \\"
   ;;
   esac