Commit 1191c46b by Rainer Orth Committed by Rainer Orth

Restrict -Wa,-nH use to Solaris (PR libstdc++/55594)

	PR libstdc++/55594
	* acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Restrict test to
	Solaris targets.
	* configure: Regenerate.

From-SVN: r195009
parent 3138f224
2013-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libstdc++/55594
* acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Restrict test to
Solaris targets.
* configure: Regenerate.
2013-01-07 Jonathan Wakely <jwakely.gcc@gmail.com> 2013-01-07 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/55847 PR libstdc++/55847
......
...@@ -178,17 +178,23 @@ dnl ...@@ -178,17 +178,23 @@ dnl
AC_DEFUN([GLIBCXX_CHECK_ASSEMBLER_HWCAP], [ AC_DEFUN([GLIBCXX_CHECK_ASSEMBLER_HWCAP], [
test -z "$HWCAP_FLAGS" && HWCAP_FLAGS='' test -z "$HWCAP_FLAGS" && HWCAP_FLAGS=''
ac_save_CFLAGS="$CFLAGS" # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
CFLAGS="$CFLAGS -Wa,-nH" # with a different meaning.
case ${target_os} in
solaris2*)
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wa,-nH"
AC_MSG_CHECKING([for as that supports -Wa,-nH]) AC_MSG_CHECKING([for as that supports -Wa,-nH])
AC_TRY_COMPILE([], [return 0;], [ac_hwcap_flags=yes],[ac_hwcap_flags=no]) AC_TRY_COMPILE([], [return 0;], [ac_hwcap_flags=yes],[ac_hwcap_flags=no])
if test "$ac_hwcap_flags" = "yes"; then if test "$ac_hwcap_flags" = "yes"; then
HWCAP_FLAGS="-Wa,-nH $HWCAP_FLAGS" HWCAP_FLAGS="-Wa,-nH $HWCAP_FLAGS"
fi fi
AC_MSG_RESULT($ac_hwcap_flags) AC_MSG_RESULT($ac_hwcap_flags)
CFLAGS="$ac_save_CFLAGS" CFLAGS="$ac_save_CFLAGS"
;;
esac
AC_SUBST(HWCAP_FLAGS) AC_SUBST(HWCAP_FLAGS)
]) ])
......
...@@ -70790,12 +70790,16 @@ esac ...@@ -70790,12 +70790,16 @@ esac
test -z "$HWCAP_FLAGS" && HWCAP_FLAGS='' test -z "$HWCAP_FLAGS" && HWCAP_FLAGS=''
ac_save_CFLAGS="$CFLAGS" # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
CFLAGS="$CFLAGS -Wa,-nH" # with a different meaning.
case ${target_os} in
solaris2*)
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wa,-nH"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
$as_echo_n "checking for as that supports -Wa,-nH... " >&6; } $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
int int
...@@ -70812,13 +70816,15 @@ else ...@@ -70812,13 +70816,15 @@ else
ac_hwcap_flags=no ac_hwcap_flags=no
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$ac_hwcap_flags" = "yes"; then if test "$ac_hwcap_flags" = "yes"; then
HWCAP_FLAGS="-Wa,-nH $HWCAP_FLAGS" HWCAP_FLAGS="-Wa,-nH $HWCAP_FLAGS"
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
$as_echo "$ac_hwcap_flags" >&6; } $as_echo "$ac_hwcap_flags" >&6; }
CFLAGS="$ac_save_CFLAGS" CFLAGS="$ac_save_CFLAGS"
;;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment