1# This file is generated from configure.ac by Autoconf. DO NOT EDIT! 2# Local preconfigure fragment for sysdeps/loongarch 3 4case "$machine" in 5loongarch*) 6 7 abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __loongarch_\(lp64\|ilp32\).*/\1/p'` 8 float_abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __loongarch_\(soft\|single\|double\)_float.*/\1/p'` 9 10 with_fp_cond="!defined __loongarch_soft_float" 11 12 case "$float_abi" in 13 soft) 14 abi_flen=0 15 as_fn_error 1 "loongarch does not yet support soft floating-point ABI!!" "$LINENO" 5 16 ;; 17 single) 18 as_fn_error 1 "glibc does not yet support the single floating-point ABI!!" "$LINENO" 5 19 ;; 20 double) 21 abi_flen=64 22 ;; 23 *) 24 as_fn_error 1 "Unable to determine floating-point ABI!!" "$LINENO" 5 25 ;; 26 esac 27 28 case "$abi" in 29 ilp32) 30 as_fn_error 1 "loongarch does not yet support ilp32 ABI!!" "$LINENO" 5 31 ;; 32 lp64) 33 grlen=64 34 machine=loongarch/lp64 35 ;; 36 *) 37 as_fn_error 1 "Unable to determine GRLEN!!" "$LINENO" 5 38 ;; 39 esac 40 41 cat >>confdefs.h <<_ACEOF 42#define LOONGARCH_ABI_GRLEN $grlen 43_ACEOF 44 45 cat >>confdefs.h <<_ACEOF 46#define LOONGARCH_ABI_FRLEN $abi_flen 47_ACEOF 48 49 50 base_machine=loongarch 51 ;; 52esac 53 54