https://gcc.gnu.org/g:8c04e02bd20040c47b2f6317b2145a12e63326b1

commit 8c04e02bd20040c47b2f6317b2145a12e63326b1
Author: Alexandre Oliva <[email protected]>
Date:   Wed Sep 10 19:58:35 2025 -0300

    [ppc] adjust configure test for large TOC support
    
    The use of the TLS register in a TOC/GOT address computation was
    probably a cut&pasto or a thinko.  It causes a linker warning and,
    because the TLS access in the test is incomplete, may cause
    significant confusion.  Adjust to use the TOC/GOT register as base.
    
    
    for  gcc/ChangeLog
    
            * configure.ac: Adjust base register in linker test for large
            TOC support.
            * configure: Rebuild.

Diff:
---
 gcc/configure    | 2 +-
 gcc/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/configure b/gcc/configure
index 5a779db0a29f..d6cc7fc17ca0 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -33209,7 +33209,7 @@ ie0:    .space 8
        .global _start
        .text
 _start:
-       addis 9,13,ie0@got@tprel@ha
+       addis 9,2,ie0@got@tprel@ha
        ld 9,ie0@got@tprel@l(9)
 EOF
       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 7e57d527ecdd..19975fa5be5b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -6789,7 +6789,7 @@ ie0:      .space 8
        .global _start
        .text
 _start:
-       addis 9,13,ie0@got@tprel@ha
+       addis 9,2,ie0@got@tprel@ha
        ld 9,ie0@got@tprel@l(9)
 EOF
       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \

Reply via email to