]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: testsuite: Add -no-pie for pr113689-1.c [PR70150]
authorXi Ruoyao <xry111@xry111.site>
Mon, 6 May 2024 03:33:43 +0000 (11:33 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 10 Aug 2024 16:18:25 +0000 (00:18 +0800)
commit331f7d8a393af99afccdb2729d4ab45797fd7a86
tree2565ad225d71557634ee77bf963374a77f579ed6
parent85a6073e8225a3a484b92445d85840af356cb4b7
i386: testsuite: Add -no-pie for pr113689-1.c [PR70150]

For a --enable-default-pie build, using -fno-pic (for compiler) but
not -no-pie (for linker) triggers some linker warnings counted as
excess errors:

    /usr/bin/ld: /tmp/cc8MgxiR.o: warning: relocation in read-only
    section `.text.startup'
    /usr/bin/ld: warning: creating DT_TEXTREL in a PIE

gcc/testsuite/ChangeLog:

PR testsuite/70150
* gcc.target/i386/pr113689-1.c (dg-options): Add -no-pie.
gcc/testsuite/gcc.target/i386/pr113689-1.c