Compare commits

...
Author SHA1 Message Date
Richard Henderson 8b05db5421 Use -Wno-error=trampolines
With gcc 4.9 we see

tst-execstack-mod.c: In function ‘tryme’:
tst-execstack-mod.c:16:8: error: trampoline generated for nested function ‘callback’ [-Werror=trampolines]
   void callback (void) { ok = true; }
           ^
	   cc1: all warnings being treated as errors

where of course the testcases require the use of trampolines.
2015-01-03 12:49:41 -08:00
3 changed files with 9 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
2015-01-03 Richard Henderson <rth@redhat.com>
* elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-error=trapolines
(CFLAGS-tst-execstack-prog.c): Likewise.
* nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
2015-01-02 Joseph Myers <joseph@codesourcery.com>
[BZ #17748]
+2
View File
@@ -861,6 +861,8 @@ $(objpfx)tst-execstack-needed: $(objpfx)tst-execstack-mod.so
LDFLAGS-tst-execstack-needed = -Wl,-z,noexecstack
LDFLAGS-tst-execstack-prog = -Wl,-z,execstack
CFLAGS-tst-execstack-prog.c += -Wno-error=trampolines
CFLAGS-tst-execstack-mod.c += -Wno-error=trampolines
endif
LDFLAGS-tst-array2 = $(no-as-needed)
+1
View File
@@ -619,6 +619,7 @@ tst-exec4-ARGS = $(host-test-program-cmd)
$(objpfx)tst-execstack: $(libdl)
$(objpfx)tst-execstack.out: $(objpfx)tst-execstack-mod.so
LDFLAGS-tst-execstack = -Wl,-z,noexecstack
CFLAGS-tst-execstack-mod.c += -Wno-error=trampolines
$(objpfx)tst-fini1mod.so: $(shared-thread-library)