diff options
author | Alexandre Oliva <oliva@adacore.com> | 2024-11-07 02:47:06 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2024-11-07 02:47:06 -0300 |
commit | 2ec80c60d4f10dcdbc9fad5d35297bfa432d14aa (patch) | |
tree | 6a99a37bf547a4f948f28538d41c8bb33511f767 | |
parent | d17a2e8bfc91a8e401a2d8c61e23fba36e28a43d (diff) | |
download | gcc-2ec80c60d4f10dcdbc9fad5d35297bfa432d14aa.zip gcc-2ec80c60d4f10dcdbc9fad5d35297bfa432d14aa.tar.gz gcc-2ec80c60d4f10dcdbc9fad5d35297bfa432d14aa.tar.bz2 |
[testsuite] disable PIE on ia32 on more tests
Multiple tests fail on ia32 with -fPIE enabled by default because of
different call sequences required by the call-saved PIC register
(no-callee-saved-*.c), uses of the constant pool instead of computing
constants (pr100865-*.c), and unexpected matches of esp in get_pc_thunk
(sse2-stv-1.c). Disable PIE on them, to match the expectations.
for gcc/testsuite/ChangeLog
* gcc.target/i386/no-callee-saved-13.c: Disable PIE on ia32.
* gcc.target/i386/no-callee-saved-14.c: Likewise.
* gcc.target/i386/no-callee-saved-15.c: Likewise.
* gcc.target/i386/no-callee-saved-17.c: Likewise.
* gcc.target/i386/pr100865-1.c: Likewise.
* gcc.target/i386/pr100865-7a.c: Likewise.
* gcc.target/i386/pr100865-7c.c: Likewise.
* gcc.target/i386/sse2-stv-1.c: Likewise.
-rw-r--r-- | gcc/testsuite/gcc.target/i386/no-callee-saved-13.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/no-callee-saved-14.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/no-callee-saved-15.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/no-callee-saved-17.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr100865-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr100865-7a.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr100865-7c.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse2-stv-1.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-13.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-13.c index 6757e72..0b59da3 100644 --- a/gcc/testsuite/gcc.target/i386/no-callee-saved-13.c +++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-13.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ extern void foo (void); diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-14.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-14.c index 2239e28..2127b12 100644 --- a/gcc/testsuite/gcc.target/i386/no-callee-saved-14.c +++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-14.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ extern void bar (void) __attribute__ ((no_callee_saved_registers)); diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-15.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-15.c index 10135fe..65f2a95 100644 --- a/gcc/testsuite/gcc.target/i386/no-callee-saved-15.c +++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-15.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ typedef void (*fn_t) (void) __attribute__ ((no_callee_saved_registers)); extern fn_t bar; diff --git a/gcc/testsuite/gcc.target/i386/no-callee-saved-17.c b/gcc/testsuite/gcc.target/i386/no-callee-saved-17.c index 1fd5daa..1ecf455 100644 --- a/gcc/testsuite/gcc.target/i386/no-callee-saved-17.c +++ b/gcc/testsuite/gcc.target/i386/no-callee-saved-17.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ extern void foo (void) __attribute__ ((no_caller_saved_registers)); diff --git a/gcc/testsuite/gcc.target/i386/pr100865-1.c b/gcc/testsuite/gcc.target/i386/pr100865-1.c index 75cd463..fc0a5b3 100644 --- a/gcc/testsuite/gcc.target/i386/pr100865-1.c +++ b/gcc/testsuite/gcc.target/i386/pr100865-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -march=x86-64" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ extern char *dst; diff --git a/gcc/testsuite/gcc.target/i386/pr100865-7a.c b/gcc/testsuite/gcc.target/i386/pr100865-7a.c index 7de7d4a..9fb5dc5 100644 --- a/gcc/testsuite/gcc.target/i386/pr100865-7a.c +++ b/gcc/testsuite/gcc.target/i386/pr100865-7a.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=skylake" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ extern long long int array[64]; diff --git a/gcc/testsuite/gcc.target/i386/pr100865-7c.c b/gcc/testsuite/gcc.target/i386/pr100865-7c.c index edbfd5b..695831e 100644 --- a/gcc/testsuite/gcc.target/i386/pr100865-7c.c +++ b/gcc/testsuite/gcc.target/i386/pr100865-7c.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=skylake -mno-avx2" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ extern long long int array[64]; diff --git a/gcc/testsuite/gcc.target/i386/sse2-stv-1.c b/gcc/testsuite/gcc.target/i386/sse2-stv-1.c index 72b57b5..c6eacc4 100644 --- a/gcc/testsuite/gcc.target/i386/sse2-stv-1.c +++ b/gcc/testsuite/gcc.target/i386/sse2-stv-1.c @@ -1,5 +1,6 @@ /* { dg-do compile { target ia32 } } */ /* { dg-options "-O2 -msse2 -mno-stackrealign" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ unsigned long long a,b,c,d; |