@@ -23626,15 +23626,15 @@ fi
23626
23626
# correctly-rounded string <-> double conversion functions from
23627
23627
# Python/dtoa.c, which in turn require that the FPU uses 53-bit
23628
23628
# rounding; this is a problem on x86, where the x87 FPU has a default
23629
- # rounding precision of 64 bits. For gcc/x86, we try to fix this by
23629
+ # rounding precision of 64 bits. For gcc/x86, we can fix this by
23630
23630
# using inline assembler to get and set the x87 FPU control word.
23631
- if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
23632
- then
23633
- # Check that it's okay to use gcc inline assembler to get and set
23634
- # x87 control word. It should be, but you never know...
23635
- { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23631
+
23632
+ # This inline assembler syntax may also work for suncc and icc,
23633
+ # so we try it on all platforms.
23634
+
23635
+ { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23636
23636
echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23637
- cat >conftest.$ac_ext <<_ACEOF
23637
+ cat >conftest.$ac_ext <<_ACEOF
23638
23638
/* confdefs.h. */
23639
23639
_ACEOF
23640
23640
cat confdefs.h >>conftest.$ac_ext
@@ -23645,9 +23645,9 @@ int
23645
23645
main ()
23646
23646
{
23647
23647
23648
- unsigned short cw;
23649
- __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23650
- __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23648
+ unsigned short cw;
23649
+ __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23650
+ __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23651
23651
23652
23652
;
23653
23653
return 0;
@@ -23679,16 +23679,15 @@ sed 's/^/| /' conftest.$ac_ext >&5
23679
23679
fi
23680
23680
23681
23681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682
- { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23682
+ { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23683
23683
echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23684
- if test "$have_gcc_asm_for_x87" = yes
23685
- then
23684
+ if test "$have_gcc_asm_for_x87" = yes
23685
+ then
23686
23686
23687
23687
cat >>confdefs.h <<\_ACEOF
23688
23688
#define HAVE_GCC_ASM_FOR_X87 1
23689
23689
_ACEOF
23690
23690
23691
- fi
23692
23691
fi
23693
23692
23694
23693
# Detect whether system arithmetic is subject to x87-style double
0 commit comments