From 3f823f488a4db8d048892af1a7ee992aab770e5a Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Thu, 5 Feb 2015 21:33:03 -0500 Subject: hppa: Remove warnings and fix conformance errors. (1) Fix warnings. This is a bulk update to fix all the warnings that were causing build failures with -Werror on hppa. The most egregious problems are in dl-fptr.c which needs to be entirely rewritten, thus I've used -Wno-error for that. (2) Fix conformance errors. The sysdep.c file had __syscall_error and syscall in one file which caused conformance issues by including syscall when __syscall_error was linked to. The fix is obviously to split the file and use syscall.c to implement syscall. --- sysdeps/hppa/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/hppa/Makefile') diff --git a/sysdeps/hppa/Makefile b/sysdeps/hppa/Makefile index 9e24349231..078f90a60c 100644 --- a/sysdeps/hppa/Makefile +++ b/sysdeps/hppa/Makefile @@ -24,6 +24,8 @@ LDFLAGS-c_pic.os += -Wl,--unique=.text* ifeq ($(subdir),elf) CFLAGS-rtld.c += -mdisable-fpregs sysdep-dl-routines += dl-symaddr dl-fptr +# dl-fptr.c needs a complete rewrite to fix ISO C aliasing violations. +CFLAGS-dl-fptr.c = -Wno-error sysdep_routines += $(sysdep-dl-routines) sysdep-rtld-routines += $(sysdep-dl-routines) endif -- cgit 1.4.1