On Wed, Dec 10, 2025 at 9:27 PM Alexandre Oliva <[email protected]> wrote:
>
>
> 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.
>
> Regstrapped on x86_64-linux-gnu, trunk and gcc-15, also tested targeting
> i686-linux-gnu with PIE enabled by default.  Ok for trunk?
>
>
> 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.

LGTM.

Thanks,
Uros.

> ---
>  gcc/testsuite/gcc.dg/sibcall-12.c              |    1 +
>  gcc/testsuite/gcc.target/i386/pr106060-2.c     |    1 +
>  gcc/testsuite/gcc.target/i386/pr106060-3.c     |    1 +
>  gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c |    1 +
>  4 files changed, 4 insertions(+)
>
> diff --git a/gcc/testsuite/gcc.dg/sibcall-12.c 
> b/gcc/testsuite/gcc.dg/sibcall-12.c
> index 5773c9c1c4a55..7e13c20878cd5 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 23933aba978cf..6fe4b71888f57 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 <immintrin.h>
>
>  __m256i
> diff --git a/gcc/testsuite/gcc.target/i386/pr106060-3.c 
> b/gcc/testsuite/gcc.target/i386/pr106060-3.c
> index 59c128cf923cf..ac53b0bd9f563 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 <immintrin.h>
>
>  __m256i
> diff --git a/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c 
> b/gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c
> index 9b52582d01f87..a5b8ffebc2422 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
>
>
>
> --
> Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
> Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
> More tolerance and less prejudice are key for inclusion and diversity.
> Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to