]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
glibc: arc: Don't interfere with other architectures
authorChris Packham <judge.packham@gmail.com>
Thu, 5 Sep 2019 02:59:07 +0000 (19:59 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 1 Nov 2019 16:29:21 +0000 (09:29 -0700)
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>
sysdeps/arc/preconfigure

index 1152a179c4aa7df4f015ade513e0ef38cc8fa0ef..d9c5429f405009002c84ec5aae642623c9eef3b8 100644 (file)
@@ -1,14 +1,15 @@
 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