diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-05-06 11:33:43 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2024-08-11 00:18:25 +0800 |
commit | 331f7d8a393af99afccdb2729d4ab45797fd7a86 (patch) | |
tree | 2565ad225d71557634ee77bf963374a77f579ed6 | |
parent | 85a6073e8225a3a484b92445d85840af356cb4b7 (diff) | |
download | gcc-331f7d8a393af99afccdb2729d4ab45797fd7a86.zip gcc-331f7d8a393af99afccdb2729d4ab45797fd7a86.tar.gz gcc-331f7d8a393af99afccdb2729d4ab45797fd7a86.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr113689-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr113689-1.c b/gcc/testsuite/gcc.target/i386/pr113689-1.c index 9b8474e..0424db2 100644 --- a/gcc/testsuite/gcc.target/i386/pr113689-1.c +++ b/gcc/testsuite/gcc.target/i386/pr113689-1.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && fpic } } } */ -/* { dg-options "-O2 -fno-pic -fprofile -mcmodel=large" } */ +/* { dg-options "-O2 -fno-pic -no-pie -fprofile -mcmodel=large" } */ /* { dg-skip-if "PR90698" { *-*-darwin* } } */ /* { dg-skip-if "PR113909" { *-*-solaris2* } } */ |