diff options
author | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2013-07-17 11:15:24 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2013-07-17 11:15:24 +0000 |
commit | 167f68ede42b2bb0bf287769951c5a6aca3e7281 (patch) | |
tree | 7c128616f0a4ca4d09f410d31fee5de4433fc49c /libitm/configure | |
parent | 1b2d0112c5dd2d847aaa4e6bf529fc74e78158fb (diff) | |
download | gcc-167f68ede42b2bb0bf287769951c5a6aca3e7281.zip gcc-167f68ede42b2bb0bf287769951c5a6aca3e7281.tar.gz gcc-167f68ede42b2bb0bf287769951c5a6aca3e7281.tar.bz2 |
s390.c: (s390_expand_builtin): Allow -mhtm to be enabled without -march=zEC12.
2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
enabled without -march=zEC12.
* config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
flags to be set.
2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* acinclude.m4: Add htm asm check for s390.
* configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
* configure: Regenerate.
* config/s390/target.h: Remove __HTM__ check.
(htm_available): Call getauxval to get hwcaps and check whether
HTM is available or not.
From-SVN: r201004
Diffstat (limited to 'libitm/configure')
-rw-r--r-- | libitm/configure | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libitm/configure b/libitm/configure index 7b3c069..21361b0 100644 --- a/libitm/configure +++ b/libitm/configure @@ -17399,6 +17399,42 @@ $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h fi ;; +s390*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5 +$as_echo_n "checking if the assembler supports HTM... " >&6; } +if test "${libitm_cv_as_htm+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -march=zEC12" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +asm("tbegin 0,0; tend"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + libitm_cv_as_htm=yes +else + libitm_cv_as_htm=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$save_CFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5 +$as_echo "$libitm_cv_as_htm" >&6; } + if test x$libitm_cv_as_htm = xyes; then + +$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h + + fi + ;; esac |