diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-28 11:32:54 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-28 11:32:54 +0000 |
commit | 53037a4d5be734e4ccc99db221676fa7cec7a806 (patch) | |
tree | 7a94d4d83dba15233aa76c30e53b2b3f9bd8d99e /libitm/configure | |
parent | f1714fa0234e7465d69869735ac90a5f6959948d (diff) | |
download | gcc-53037a4d5be734e4ccc99db221676fa7cec7a806.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/configure')
-rw-r--r-- | libitm/configure | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libitm/configure b/libitm/configure index 031c19ce337..ce6d50a7d3a 100644 --- a/libitm/configure +++ b/libitm/configure @@ -16739,10 +16739,10 @@ with_gnu_ld=$lt_cv_prog_gnu_ld ac_save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LFLAGS -Wl,-M,$srcdir/clearcap.map" + LDFLAGS="$LFLAGS -mclear-hwcap" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-M,mapfile" >&5 -$as_echo_n "checking for ld that supports -Wl,-M,mapfile... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 +$as_echo_n "checking for -mclear-hwcap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -16762,7 +16762,7 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_hwcap_ldflags" = "yes"; then - HWCAP_LDFLAGS="-Wl,-M,$srcdir/clearcap.map $HWCAP_LDFLAGS" + HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 $as_echo "$ac_hwcap_ldflags" >&6; } |