Fix failure in tst-cleanup2 and tst-cleanupx2 with gcc-4.9
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Wed, 20 Nov 2013 18:25:57 +0000 (10:25 -0800)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Wed, 20 Nov 2013 18:25:57 +0000 (10:25 -0800)
gcc (GCC) 4.9.0 20131114 (experimental)

2013-11-20  Paul Pluzhnikov  <ppluzhnikov@google.com

* Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin

nptl/ChangeLog
nptl/Makefile

index 9d04a7b..440a844 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-20  Paul Pluzhnikov  <ppluzhnikov@google.com
+
+       * Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin
+
 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
 
        * sysdeps/pthread/configure.in: Moved to ...
index cd601e5..82f2d0a 100644 (file)
@@ -278,6 +278,10 @@ gen-as-const-headers = pthread-errnos.sym
 
 LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst
 
+# GCC-4.9 compiles 'sprintf(NULL, ...)' into UD2 on x86_64 without -fno-builtin
+CFLAGS-tst-cleanup2.c = -fno-builtin
+CFLAGS-tst-cleanupx2.c = -fno-builtin
+
 include ../Makeconfig
 
 ifeq ($(have-forced-unwind),yes)