From: Alexandre Oliva Date: Wed, 10 Dec 2025 23:56:15 +0000 (-0300) Subject: [testsuite] [ia32] adjust testcases to cope with default-to-PIE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a54d49061ef6a6720a4955f07d0ec2c1d7d4560;p=thirdparty%2Fgcc.git [testsuite] [ia32] adjust testcases to cope with default-to-PIE A few testcases new in gcc-15 fail on i686-linux-gnu with PIE enabled by default. Add -fno-PIE so that they find the code they test for. for gcc/testsuite/ChangeLog * gcc.dg/sibcall-12.c: Add -fno-PIE on ia32. * gcc.target/i386/pr106060-2.c: Likewise. * gcc.target/i386/pr106060-3.c: Likewise. * gcc.target/i386/vect-shiftv4qi.c: Likewise. --- diff --git a/gcc/testsuite/gcc.dg/sibcall-12.c b/gcc/testsuite/gcc.dg/sibcall-12.c index 5773c9c1c4a..7e13c20878c 100644 --- a/gcc/testsuite/gcc.dg/sibcall-12.c +++ b/gcc/testsuite/gcc.dg/sibcall-12.c @@ -1,5 +1,6 @@ // Test for sibcall optimization with struct aligned on stack. // { dg-options "-O2" } +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ // { dg-final { scan-assembler "jmp" { target i?86-*-* x86_64-*-* } } } struct A { char a[17]; }; diff --git a/gcc/testsuite/gcc.target/i386/pr106060-2.c b/gcc/testsuite/gcc.target/i386/pr106060-2.c index 23933aba978..6fe4b71888f 100644 --- a/gcc/testsuite/gcc.target/i386/pr106060-2.c +++ b/gcc/testsuite/gcc.target/i386/pr106060-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=x86-64-v3" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ #include __m256i diff --git a/gcc/testsuite/gcc.target/i386/pr106060-3.c b/gcc/testsuite/gcc.target/i386/pr106060-3.c index 59c128cf923..ac53b0bd9f5 100644 --- a/gcc/testsuite/gcc.target/i386/pr106060-3.c +++ b/gcc/testsuite/gcc.target/i386/pr106060-3.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=x86-64-v3" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ #include __m256i diff --git a/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c b/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c index 9b52582d01f..a5b8ffebc24 100644 --- a/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c +++ b/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -msse2 -mno-avx2 -mno-avx512vl" } */ +/* { dg-additional-options "-fno-PIE" { target ia32 } } */ #define N 4