https://gcc.gnu.org/g:ee0fd5175145f4a91a69593e9143a8a5b91d90c0

commit ee0fd5175145f4a91a69593e9143a8a5b91d90c0
Author: Alexandre Oliva <[email protected]>
Date:   Mon Sep 1 14:31: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: Rebuilt.

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

diff --git a/gcc/configure b/gcc/configure
index 4a751d969bab..fbdffddb177f 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -33195,7 +33195,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 4532c5c22fe5..0b3f99769391 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -6778,7 +6778,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