about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2019-09-04 19:59:07 -0700
committerVineet Gupta <vgupta@synopsys.com>2019-11-01 09:29:21 -0700
commit57414962d42b1e7e65baa86d05913d7a5a5e8393 (patch)
tree0db3b3f2aa727fdf06a07f2b3ff2df70c6aa0e1e
parent9a277dbb16d19f10ae65015e55d0ddca5cb72e30 (diff)
downloadglibc-57414962d42b1e7e65baa86d05913d7a5a5e8393.tar.gz
glibc-57414962d42b1e7e65baa86d05913d7a5a5e8393.tar.xz
glibc-57414962d42b1e7e65baa86d05913d7a5a5e8393.zip
glibc: arc: Don't interfere with other architectures
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>
-rw-r--r--sysdeps/arc/preconfigure23
1 files changed, 12 insertions, 11 deletions
diff --git a/sysdeps/arc/preconfigure b/sysdeps/arc/preconfigure
index 1152a179c4..d9c5429f40 100644
--- a/sysdeps/arc/preconfigure
+++ b/sysdeps/arc/preconfigure
@@ -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