[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 433/437: Remove unused configure-time checks for x87, th
From: |
Andy Wingo |
Subject: |
[Guile-commits] 433/437: Remove unused configure-time checks for x87, thumb, and sof float |
Date: |
Mon, 2 Jul 2018 05:15:12 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 2412cfbbaa0856c72a3c184d3e7ead14fe9ab807
Author: Andy Wingo <address@hidden>
Date: Sun Jul 1 21:11:48 2018 +0200
Remove unused configure-time checks for x87, thumb, and sof float
* libguile/lightning/configure.ac: Remove unused checks.
---
libguile/lightning/configure.ac | 94 -----------------------------------------
1 file changed, 94 deletions(-)
diff --git a/libguile/lightning/configure.ac b/libguile/lightning/configure.ac
index 5e87c3f..2ac685c 100644
--- a/libguile/lightning/configure.ac
+++ b/libguile/lightning/configure.ac
@@ -27,100 +27,6 @@ AM_CONDITIONAL(cpu_aarch64, [test cpu-$cpu = cpu-aarch64])
AM_CONDITIONAL(cpu_s390, [test cpu-$cpu = cpu-s390])
AM_CONDITIONAL(cpu_alpha, [test cpu-$cpu = cpu-alpha])
-# Test x87 if both, x87 and sse2 available
-ac_cv_test_x86_x87=
-# Test arm instruction set if thumb instruction set available
-ac_cv_test_arm_arm=
-# Test sofware float if vfp available and not using hard float abi
-ac_cv_test_arm_swf=
-
-save_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE"
-if test x$cpu = x; then
- AC_MSG_ERROR([cpu $target_cpu not supported])
-elif test $cpu = x86; then
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <lightning.h>
- int main(void) {
- int ac, flags;
- unsigned int eax, ebx, ecx, edx;
- if (__WORDSIZE == 64)
- return 1;
- __asm__ volatile ("pushfl;\n\t"
- "popl %0;\n\t"
- "movl \$0x240000, %1;\n\t"
- "xorl %0, %1;\n\t"
- "pushl %1;\n\t"
- "popfl;\n\t"
- "pushfl;\n\t"
- "popl %1;\n\t"
- "xorl %0, %1;\n\t"
- "pushl %0;\n\t"
- "popfl"
- : "=r" (flags), "=r" (ac));
- if ((ac & (1 << 21)) == 0)
- return 1;
- __asm__ volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1"
- : "=a" (eax), "=r" (ebx),
- "=c" (ecx), "=d" (edx)
- : "0" (1));
- return (edx & 1 << 26) ? 0 : 1;
- }
- ]])],[ac_cv_test_x86_x87=yes],[],[ac_cv_test_x86_x87=no])
-elif test $cpu = arm; then
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <stdio.h>
- int main(void) {
- #if defined(__linux__)
- FILE *fp;
- char buf[128];
- if ((fp = fopen("/proc/cpuinfo", "r")) == NULL)
- return 1;
- while (fgets(buf, sizeof(buf), fp)) {
- if (strncmp(buf, "Features\t:", 10) == 0 &&
- strstr(buf + 10, "thumb")) {
- fclose(fp);
- return 0;
- }
- }
- fclose(fp);
- #elif defined(__thumb2__)
- return 0;
- #endif
- return 1;
- }
- ]])],[ac_cv_test_arm_arm=yes],[],[ac_cv_test_arm_arm=no])
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <stdio.h>
- int main(void) {
- #if defined(__linux__)
- FILE *fp;
- char buf[128];
- # if !defined(__ARM_PCS_VFP)
- if ((fp = fopen("/proc/cpuinfo", "r")) == NULL)
- return 1;
- while (fgets(buf, sizeof(buf), fp)) {
- if (strncmp(buf, "Features\t:", 10) == 0 &&
- strstr(buf + 10, "vfp")) {
- fclose(fp);
- return 0;
- }
- }
- fclose(fp);
- # endif
- #endif
- return 1;
- }
- ]])],[ac_cv_test_arm_swf=yes],[],[ac_cv_test_arm_swf=no])
-fi
-CFLAGS=$save_CFLAGS
-
-AM_CONDITIONAL(test_x86_x87, [test x$ac_cv_test_x86_x87 = xyes])
-AM_CONDITIONAL(test_arm_arm, [test x$ac_cv_test_arm_arm = xyes])
-AM_CONDITIONAL(test_arm_swf, [test x$ac_cv_test_arm_swf = xyes])
-
-AM_CONDITIONAL(test_nodata, [test cpu-$cpu = cpu-mips -o cpu-$cpu = cpu-ppc -o
cpu-$cpu = cpu-sparc -o cpu-$cpu = cpu-x86 -o cpu-$cpu = cpu-ia64 -o cpu-$cpu =
cpu-hppa -o cpu-$cpu = cpu-s390 -o cpu-$cpu = cpu-alpha])
-
if test $cpu = arm; then
AC_CHECK_LIB(m, sqrtf, ,
[AC_MSG_ERROR([sqrtf required but not available])])
- [Guile-commits] 408/437: GNU lightning 2.1.1 release, (continued)
- [Guile-commits] 408/437: GNU lightning 2.1.1 release, Andy Wingo, 2018/07/02
- [Guile-commits] 349/437: Implement jit_putarg*, Andy Wingo, 2018/07/02
- [Guile-commits] 120/437: Change _ASM_SAFETY register width check to accept valid alternate values., Andy Wingo, 2018/07/02
- [Guile-commits] 393/437: Intermediate, fully functional, rework for variadic functions, Andy Wingo, 2018/07/02
- [Guile-commits] 361/437: Correct the reason the simplify_stxi bug was not noticed before, Andy Wingo, 2018/07/02
- [Guile-commits] 356/437: ARM: Do not limit to 24 bit displacement jump to unknown address, Andy Wingo, 2018/07/02
- [Guile-commits] 422/437: Remove lightning unit tests, Andy Wingo, 2018/07/02
- [Guile-commits] 226/437: New aarch64 port built on the Foundation v8 emulator., Andy Wingo, 2018/07/02
- [Guile-commits] 128/437: Big merge with new lightning semantics aiming for lightning 2.0., Andy Wingo, 2018/07/02
- [Guile-commits] 132/437: Add extra files implementing different jit backends., Andy Wingo, 2018/07/02
- [Guile-commits] 433/437: Remove unused configure-time checks for x87, thumb, and sof float,
Andy Wingo <=
- [Guile-commits] 283/437: Correct crash on arm in the doc/printf example., Andy Wingo, 2018/07/02
- [Guile-commits] 432/437: Remove lightning configure snippet related to libdl, Andy Wingo, 2018/07/02
- [Guile-commits] 01/437: initial import, Andy Wingo, 2018/07/02
- [Guile-commits] 412/437: Add extra argument to jit_update to prevent recursion on branches, Andy Wingo, 2018/07/02
- [Guile-commits] 404/437: Correct wrong live information for some code patterns, Andy Wingo, 2018/07/02