sparc64: Remove unwind information from signal return stubs [BZ#31244]
[glibc.git] / sysdeps / loongarch / preconfigure
blobdfc7ecfd9e529710456e6b6aa90fec17ecabf088
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/loongarch
4 case "$machine" in
5 loongarch*)
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'`
10     with_fp_cond="!defined __loongarch_soft_float"
12     case "$float_abi" in
13     soft)
14         abi_flen=0
15         ;;
16     single)
17         as_fn_error 1 "glibc does not yet support the single floating-point ABI!!" "$LINENO" 5
18         ;;
19     double)
20         abi_flen=64
21         ;;
22     *)
23         as_fn_error 1 "Unable to determine floating-point ABI!!" "$LINENO" 5
24         ;;
25     esac
27     case "$abi" in
28     ilp32)
29         as_fn_error 1 "loongarch does not yet support ilp32 ABI!!" "$LINENO" 5
30         ;;
31     lp64)
32         grlen=64
33         machine=loongarch/lp64
34         ;;
35     *)
36         as_fn_error 1 "Unable to determine GRLEN!!" "$LINENO" 5
37         ;;
38     esac
40     printf "%s\n" "#define LOONGARCH_ABI_GRLEN $grlen" >>confdefs.h
42     printf "%s\n" "#define LOONGARCH_ABI_FRLEN $abi_flen" >>confdefs.h
45     base_machine=loongarch
46     ;;
47 esac