Use -Werror=undef for assembly code.

This commit is contained in:
Roland McGrath 2015-02-12 13:57:32 -08:00
parent 04f5a636b6
commit 96a157490c
4 changed files with 14 additions and 9 deletions

View File

@ -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.

View 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)

View 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.
}
}

View 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