]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ppc] adjust configure test for large TOC support
authorAlexandre Oliva <oliva@adacore.com>
Mon, 15 Sep 2025 23:14:32 +0000 (20:14 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 15 Sep 2025 23:14:32 +0000 (20:14 -0300)
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.

gcc/configure
gcc/configure.ac

index 5a779db0a29f55ee85f80dbc8b46c9c6ab8ba5df..d6cc7fc17ca048fd0eda9d17068ca26d4e9c4824 100755 (executable)
@@ -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 \
index 7e57d527ecdde5d978614d67ed43ece28fd0d948..19975fa5be5b200b62f10a1ed7e02cca6dc7f76f 100644 (file)
@@ -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 \