diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-12 13:40:21 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-12 13:40:21 +0000 |
commit | 18ce903b659ceac70139f9858047291a34ef700d (patch) | |
tree | 6adf91a3937b4dc1a71205c5f014d2dbdb95f4eb /config | |
parent | 40667938719aadff95c3dba8482835967a915035 (diff) | |
download | gcc-18ce903b659ceac70139f9858047291a34ef700d.tar.gz |
Disable hwcaps on libgfortran
libgfortran:
* configure.ac: Call GCC_CHECK_LINKER_HWCAP.
* Makefile.am (libgfortran_la_LDFLAGS): Add HWCAP_LDFLAGS.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
config:
* hwcaps.m4: New file.
libitm:
* acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
* aclocal.m4: Regenerate.
* configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
LIBITM_CHECK_LINKER_HWCAP.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243552 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/hwcaps.m4 | 28 |
2 files changed, 32 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 35ddacf6d78..c48f6ba3639 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * hwcaps.m4: New file. + 2016-12-08 Alan Modra <amodra@gmail.com> * elf.m4: Revert 2016-06-21 change. diff --git a/config/hwcaps.m4 b/config/hwcaps.m4 new file mode 100644 index 00000000000..e78c49c46d4 --- /dev/null +++ b/config/hwcaps.m4 @@ -0,0 +1,28 @@ +dnl +dnl Check if the linker used supports linker maps to clear hardware +dnl capabilities. This is only supported on Solaris at the moment. +dnl +dnl Defines: +dnl HWCAP_LDFLAGS=-mclear-hwcap if possible +dnl LD (as a side effect of testing) +dnl +AC_DEFUN([GCC_CHECK_LINKER_HWCAP], [ + test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' + AC_REQUIRE([AC_PROG_LD]) + + ac_save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LFLAGS -mclear-hwcap" + + AC_MSG_CHECKING([for -mclear-hwcap]) + AC_TRY_LINK([], [return 0;], [ac_hwcap_ldflags=yes],[ac_hwcap_ldflags=no]) + if test "$ac_hwcap_ldflags" = "yes"; then + HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" + fi + AC_MSG_RESULT($ac_hwcap_ldflags) + + LDFLAGS="$ac_save_LDFLAGS" + + AC_SUBST(HWCAP_LDFLAGS) + + AM_CONDITIONAL(HAVE_HWCAP, test $ac_hwcap_ldflags != no) +]) |