about summary refs log tree commit diff
path: root/nptl/Makefile
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2013-11-20 10:25:57 -0800
committerPaul Pluzhnikov <ppluzhnikov@google.com>2013-11-20 10:25:57 -0800
commitc8b82b81ded53ae06987727e807d19170bee4204 (patch)
tree28fc67aa0eb54ea0449ac582cde4310668d20965 /nptl/Makefile
parent71655786bcb9ccc4fe2b062520a2538a8f802e74 (diff)
downloadglibc-c8b82b81ded53ae06987727e807d19170bee4204.tar.gz
glibc-c8b82b81ded53ae06987727e807d19170bee4204.tar.xz
glibc-c8b82b81ded53ae06987727e807d19170bee4204.zip
Fix failure in tst-cleanup2 and tst-cleanupx2 with gcc-4.9
gcc (GCC) 4.9.0 20131114 (experimental)

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

	* Makefile (tst-cleanup2, tst-cleanupx2): Add -fno-builtin
Diffstat (limited to 'nptl/Makefile')
-rw-r--r--nptl/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index cd601e5f5a..82f2d0a4f4 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -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)