diff options
author | Roger Sayle <sayle@gcc.gnu.org> | 2006-07-07 00:13:14 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-07-07 00:13:14 +0000 |
commit | b6c03bcd80e0128009dad84f8cf891c5df22029c (patch) | |
tree | 184927de213b7f5deec32e4f23bb6484e24ec6ee /gcc/configure | |
parent | 33251a2dc31fe5157741af51027ea0a145465dfc (diff) | |
download | gcc-b6c03bcd80e0128009dad84f8cf891c5df22029c.zip gcc-b6c03bcd80e0128009dad84f8cf891c5df22029c.tar.gz gcc-b6c03bcd80e0128009dad84f8cf891c5df22029c.tar.bz2 |
re PR target/27968 (gcc emits (undefined) ffreep opcode which is not understood by Solaris' /usr/ccs/bin/as when tuning for Athlon or Opteron CPUs)
PR target/27968
* configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
the configured assembler supports the x87's ffreep mnemonic.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/i386.c (output_387_ffreep): New function.
(output_fp_compare): Use output_387_ffreep to emit ffreep insns.
(output_387_reg_move): Likewise.
From-SVN: r115237
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 4ec1863..507b4c3 100755 --- a/gcc/configure +++ b/gcc/configure @@ -15048,6 +15048,39 @@ _ACEOF fi + echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5 +echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6 +if test "${gcc_cv_as_ix86_ffreep+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gcc_cv_as_ix86_ffreep=no + if test x$gcc_cv_as != x; then + echo 'ffreep %st(1)' > conftest.s + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } + then + gcc_cv_as_ix86_ffreep=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5 +echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6 +if test $gcc_cv_as_ix86_ffreep = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_AS_IX86_FFREEP 1 +_ACEOF + +fi + # This one is used unconditionally by i386.[ch]; it is to be defined # to 1 if the feature is present, 0 otherwise. echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5 |