diff options
author | Richard Henderson <rth@redhat.com> | 2011-11-10 09:09:04 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-11-10 09:09:04 -0800 |
commit | d4b179020b094a0106a96c288e545be220d4a742 (patch) | |
tree | 07e6f7b8e7f2e100f0948704bfb12de29858cde2 /libitm/Makefile.am | |
parent | 992b0aa1cfe185d5666b5627087a830ebb93df24 (diff) | |
download | gcc-d4b179020b094a0106a96c288e545be220d4a742.zip gcc-d4b179020b094a0106a96c288e545be220d4a742.tar.gz gcc-d4b179020b094a0106a96c288e545be220d4a742.tar.bz2 |
libitm: Don't add -mavx if the assembler doesn't support avx.
* config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
* Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
* configure.ac (ARCH_X86_AVX): New conditional.
* Makefile.in, configure: Rebuild.
From-SVN: r181261
Diffstat (limited to 'libitm/Makefile.am')
-rw-r--r-- | libitm/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libitm/Makefile.am b/libitm/Makefile.am index 4578986..b4674a5 100644 --- a/libitm/Makefile.am +++ b/libitm/Makefile.am @@ -48,6 +48,8 @@ libitm_la_SOURCES = \ if ARCH_X86 libitm_la_SOURCES += x86_sse.cc x86_avx.cc x86_sse.lo : XCFLAGS += -msse +endif +if ARCH_X86_AVX x86_avx.lo : XCFLAGS += -mavx endif |