blob: d78e1bcd64dee880fb04070c2c8223c03225deca [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2
3{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler line separator" >&5
4$as_echo_n "checking for assembler line separator... " >&6; }
5if ${libc_cv_asm_line_sep+:} false; then :
6 $as_echo_n "(cached) " >&6
7else
8 cat > conftest.s <<EOF
9nop ; is_old_puffin
10EOF
11if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
12 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13 (eval $ac_try) 2>&5
14 ac_status=$?
15 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16 test $ac_status = 0; }; }; then
17 libc_cv_asm_line_sep='!'
18else
19 if test -z "$enable_hacker_mode"; then
20 echo "*** You need a newer assembler to compile glibc"
21 rm -f conftest*
22 exit 1
23 fi
24 libc_cv_asm_line_sep=';'
25fi
26rm -f conftest*
27fi
28{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5
29$as_echo "$libc_cv_asm_line_sep" >&6; }
30cat >>confdefs.h <<_ACEOF
31#define ASM_LINE_SEP $libc_cv_asm_line_sep
32_ACEOF
33
34
35# Check for support of thread-local storage handling in assembler and
36# linker.
37{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hppa TLS support" >&5
38$as_echo_n "checking for hppa TLS support... " >&6; }
39if ${libc_cv_hppa_tls+:} false; then :
40 $as_echo_n "(cached) " >&6
41else
42 cat > conftest.s <<\EOF
43; Setup tls data
44.section ".tdata","awT",@progbits
45foo: .data 32
46 .text
47; Test general dyanmic relocations
48test0:
49 addil LT'foo-$tls_gdidx$, %r19
50 ldo RT'foo-$tls_gdidx$(%r1), %r26
51 b __tls_get_addr
52 nop
53; Test local dynamic relocations
54test1:
55 addil LT'foo-$tls_ldidx$, %r19
56 b __tls_get_addr
57 ldo RT'foo-$tls_ldidx$(%r1), %r26
58 ldo RR'foo-$tls_dtpoff$(%r1), %r25
59 ; More variables can be loaded...
60; Test initial exec reloctiosn
61test2:
62 mfctl %cr27, %r26
63 addil LT'foo-$tls_ieoff$, %r19
64 ldw RT'foo-$tls_ieoff$(%r1), %r25
65 add %r26, %r25, %r24
66; Test local exec relocations
67test3:
68 mfctl %cr27, %r26
69 addil LR'foo-$tls_leoff$, %r26
70 ldo RR'foo-$tls_leoff$(%r1), %r25
71; Done all the TLS tests.
72EOF
73if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
74 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
75 (eval $ac_try) 2>&5
76 ac_status=$?
77 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78 test $ac_status = 0; }; }; then
79 libc_cv_hppa_tls=yes
80else
81 libc_cv_hppa_tls=no
82fi
83rm -f conftest*
84fi
85{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hppa_tls" >&5
86$as_echo "$libc_cv_hppa_tls" >&6; }
87if test $libc_cv_hppa_tls = no; then
88 as_fn_error $? "the assembler must support TLS" "$LINENO" 5
89fi