Fixes: crosstool-ng#1227
Adjust the ARC patch so that it only sets with_fp_cond when the machine
is arc.
foss-for-synopsys-dwc-arc-processors/glibc#7
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
case "$machine" in
arc*)
- base_machine=arc
- machine=arc
- ;;
-esac
+ base_machine=arc
+ machine=arc
+
+ gccfloat=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep __ARC_FPU_| wc -l`
+ if test "$gccfloat" != "0"; then
+ echo "glibc being configured for double precision floating point"
+ with_fp_cond=1
+ else
+ with_fp_cond=0
+ fi
+ ;;
-gccfloat=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep __ARC_FPU_| wc -l`
-if test "$gccfloat" != "0"; then
- echo "glibc being configured for double precision floating point"
- with_fp_cond=1
-else
- with_fp_cond=0
-fi
+esac