diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-23 13:03:25 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-23 13:03:25 +0000 |
commit | dffe2d192cf2ab307e74213d13797b9e95c09b6a (patch) | |
tree | 51a38715a0e7346a965322711a16d29cd887c919 /libitm/clearcap.map | |
parent | b94ae734847346812da1f0ad2709fcdaf6d9ab3c (diff) | |
download | gcc-dffe2d192cf2ab307e74213d13797b9e95c09b6a.tar.gz |
Clear hardware capabilities on libitm.so with Sun ld
* clearcap.map: New file.
* acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
* configure.ac: Call it.
Clear HWCAP_LDFLAGS if defaulting to -mavx.
* Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
* configure: Regenerate.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183430 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/clearcap.map')
-rw-r--r-- | libitm/clearcap.map | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libitm/clearcap.map b/libitm/clearcap.map new file mode 100644 index 00000000000..bd8189b43ff --- /dev/null +++ b/libitm/clearcap.map @@ -0,0 +1,14 @@ +# Clear hardware capabilities emitted by Sun as: calls to the x86_avx.c +# functions are only emitted with -mavx. +# +# The v1 mapfile syntax has no support for clearing specific capabilities, +# so clear everything. +# +hwcap_1 = V0x0 OVERRIDE; +# +# If we can assume mapfile v2 syntax, we can specificially clear AVX. +# +#$mapfile_version 2 +#CAPABILITY { +# HW -= AVX; +#}; |