Centralise clearing hardware capabilities with Sun ld
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 28 May 2014 11:32:54 +0000 (11:32 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 28 May 2014 11:32:54 +0000 (11:32 +0000)
commit3c698bf09bbb3c96d568011c7b62a49c9d67f928
tree7a94d4d83dba15233aa76c30e53b2b3f9bd8d99e
parent4c8bd90f9f48591980394092c4748678c37049ff
Centralise clearing hardware capabilities with Sun ld

gcc:
* configure.ac ($gcc_cv_ld_clearcap): New test.
* configure: Regenerate.
* config.in: Regenerate.
* config/sol2.opt (mclear-hwcap): New option.
* config/sol2.h (LINK_CLEARCAP_SPEC): Define.
* config/sol2-clearcap.map: Moved here from
testsuite/gcc.target/i386/clearcap.map.
* config/sol2-clearcapv2.map: Move here from
gcc.target/i386/clearcapv2.map.
* config/t-sol2 (install): Depend on install-clearcap-map.
(install-clearcap-map): New target.
* doc/invoke.texi (Option Summary, Solaris 2 Options): Document
-mclear-hwcap.

gcc/testsuite:
* lib/clearcap.exp: New file.
* gcc.dg/vect/vect.exp: Load clearcap.exp.
Remove clearcap_ldflags handling.
Call clearcap-init, clearcap-finish.
* gcc.target/i386/i386.exp: Likewise.
* gcc.target/i386/clearcap.map: Move to ../config/sol2-clearcap.map.
* gcc.target/i386/clearcapv2.map: Move to
../config/sol2-clearcapv2.map.
* gcc.target/x86_64/abi/avx/abi-avx.exp: Likewise.
* gcc.target/x86_64/abi/avx512f/abi-avx512f.exp: Likewise.

libitm:
* acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
-mclear-hwcap instead.
* configure: Regenerate.
* clearcap.map: Remove.

From-SVN: r211014
22 files changed:
gcc/ChangeLog
gcc/config.in
gcc/config/sol2-clearcap.map [new file with mode: 0644]
gcc/config/sol2-clearcapv2.map [new file with mode: 0644]
gcc/config/sol2.h
gcc/config/sol2.opt
gcc/config/t-sol2
gcc/configure
gcc/configure.ac
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect.exp
gcc/testsuite/gcc.target/i386/clearcap.map [deleted file]
gcc/testsuite/gcc.target/i386/clearcapv2.map [deleted file]
gcc/testsuite/gcc.target/i386/i386.exp
gcc/testsuite/gcc.target/x86_64/abi/avx/abi-avx.exp
gcc/testsuite/gcc.target/x86_64/abi/avx512f/abi-avx512f.exp
gcc/testsuite/lib/clearcap.exp [new file with mode: 0644]
libitm/ChangeLog
libitm/acinclude.m4
libitm/clearcap.map [deleted file]
libitm/configure