about summary refs log tree commit diff
path: root/sysdeps/arc/preconfigure
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2018-10-23 15:39:50 -0700
committerVineet Gupta <vgupta@synopsys.com>2020-07-10 16:08:45 -0700
commit0be8ae3679570ff9a193615a035fc8074a8c704f (patch)
treeb5924dd11569bd5ca98dbdfc0a448bed440ee478 /sysdeps/arc/preconfigure
parent33ff7b398830522ef5ef39fa3bbd9249944f7404 (diff)
downloadglibc-0be8ae3679570ff9a193615a035fc8074a8c704f.tar.gz
glibc-0be8ae3679570ff9a193615a035fc8074a8c704f.tar.xz
glibc-0be8ae3679570ff9a193615a035fc8074a8c704f.zip
ARC: Build Infrastructure
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/arc/preconfigure')
-rw-r--r--sysdeps/arc/preconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/arc/preconfigure b/sysdeps/arc/preconfigure
new file mode 100644
index 0000000000..a79db0239a
--- /dev/null
+++ b/sysdeps/arc/preconfigure
@@ -0,0 +1,14 @@
+case "$machine" in
+arc*)
+  base_machine=arc
+  machine=arc
+
+  gccfloat=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep __ARC_FPU_| wc -l`
+  if test "$gccfloat" != "0"; then
+    with_fp_cond=1
+  else
+    with_fp_cond=0
+  fi
+  ;;
+
+esac