aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2011-02-02 19:28:44 -0500
committerUlrich Drepper <drepper@gmail.com>2011-02-02 19:28:44 -0500
commit435b95ebd07f18ad052a379e0381b12e9ebf5b2c (patch)
tree304179546ab29f2a40560bb1dce06bd76ffe6dfc /elf
parent8517b15ee8e39fed11afb784fd0e249d977849f4 (diff)
downloadglibc-435b95ebd07f18ad052a379e0381b12e9ebf5b2c.zip
glibc-435b95ebd07f18ad052a379e0381b12e9ebf5b2c.tar.gz
glibc-435b95ebd07f18ad052a379e0381b12e9ebf5b2c.tar.bz2
AVX audit test failures with gcc 4.6
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 0f37804..36ea9b8 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1181,10 +1181,14 @@ $(objpfx)tst-initorder.out: $(objpfx)tst-initorder
cmp $@ tst-initorder.exp > /dev/null
ifeq (yes,$(config-cflags-avx))
-CFLAGS-tst-audit4.c += -mavx
-CFLAGS-tst-auditmod4a.c += -mavx
-CFLAGS-tst-auditmod4b.c += -mavx
-CFLAGS-tst-auditmod6b.c += -mavx
-CFLAGS-tst-auditmod6c.c += -mavx
-CFLAGS-tst-auditmod7b.c += -mavx
+AVX-CFLAGS=-mavx
+ifeq (yes,$(config-cflags-novzeroupper))
+AVX-CFLAGS+=-mno-vzeroupper
+endif
+CFLAGS-tst-audit4.c += $(AVX-CFLAGS)
+CFLAGS-tst-auditmod4a.c += $(AVX-CFLAGS)
+CFLAGS-tst-auditmod4b.c += $(AVX-CFLAGS)
+CFLAGS-tst-auditmod6b.c += $(AVX-CFLAGS)
+CFLAGS-tst-auditmod6c.c += $(AVX-CFLAGS)
+CFLAGS-tst-auditmod7b.c += $(AVX-CFLAGS)
endif