lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # 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; } |
| 5 | if ${libc_cv_asm_line_sep+:} false; then : |
| 6 | $as_echo_n "(cached) " >&6 |
| 7 | else |
| 8 | cat > conftest.s <<EOF |
| 9 | nop ; is_old_puffin |
| 10 | EOF |
| 11 | if { 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='!' |
| 18 | else |
| 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=';' |
| 25 | fi |
| 26 | rm -f conftest* |
| 27 | fi |
| 28 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5 |
| 29 | $as_echo "$libc_cv_asm_line_sep" >&6; } |
| 30 | cat >>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; } |
| 39 | if ${libc_cv_hppa_tls+:} false; then : |
| 40 | $as_echo_n "(cached) " >&6 |
| 41 | else |
| 42 | cat > conftest.s <<\EOF |
| 43 | ; Setup tls data |
| 44 | .section ".tdata","awT",@progbits |
| 45 | foo: .data 32 |
| 46 | .text |
| 47 | ; Test general dyanmic relocations |
| 48 | test0: |
| 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 |
| 54 | test1: |
| 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 |
| 61 | test2: |
| 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 |
| 67 | test3: |
| 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. |
| 72 | EOF |
| 73 | if { 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 |
| 80 | else |
| 81 | libc_cv_hppa_tls=no |
| 82 | fi |
| 83 | rm -f conftest* |
| 84 | fi |
| 85 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hppa_tls" >&5 |
| 86 | $as_echo "$libc_cv_hppa_tls" >&6; } |
| 87 | if test $libc_cv_hppa_tls = no; then |
| 88 | as_fn_error $? "the assembler must support TLS" "$LINENO" 5 |
| 89 | fi |