On Sat, Mar 28, 2026 at 9:56 PM Alexandre Oliva <[email protected]> wrote:
>
>
> These two tests use -fPIE and -fPIC, respectively, without stating the
> requirement for compile-time PIC support.
>
> Regstrapped on x86_64-linux-gnu.  Also tested with ppc-vx7r2,
> ppc64-vx7r2, arm-vx7r2, aarch64-vx7r2, x86_64-vx7r2, and x86-vx7r2.  Ok
> to install?

Ok.

>
>
> for  gcc/testsuite/ChangeLog
>
>         * gcc.target/i386/lea-4.c: Require fpic.
>         * gcc.target/i386/pr116587.c: Likewise.
> ---
>  gcc/testsuite/gcc.target/i386/lea-4.c    |    1 +
>  gcc/testsuite/gcc.target/i386/pr116587.c |    1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/gcc/testsuite/gcc.target/i386/lea-4.c 
> b/gcc/testsuite/gcc.target/i386/lea-4.c
> index 7bb2cec6d8538..96e8c2a49fc75 100644
> --- a/gcc/testsuite/gcc.target/i386/lea-4.c
> +++ b/gcc/testsuite/gcc.target/i386/lea-4.c
> @@ -1,4 +1,5 @@
>  /* { dg-do compile } */
> +/* { dg-require-effective-target fpic } */
>  /* { dg-options "-O2 -fPIE" } */
>  /* Same as lea-3.c, but with -fPIE.  On ia32, that requires setting up the 
> PIC
>     register, which requires an addl instruction.  */
> diff --git a/gcc/testsuite/gcc.target/i386/pr116587.c 
> b/gcc/testsuite/gcc.target/i386/pr116587.c
> index 092830002d2b4..edda1051f4ce4 100644
> --- a/gcc/testsuite/gcc.target/i386/pr116587.c
> +++ b/gcc/testsuite/gcc.target/i386/pr116587.c
> @@ -1,4 +1,5 @@
>  /* { dg-do compile } */
> +/* { dg-require-effective-target fpic } */
>  /* { dg-options "-O2 -fPIC -mstackrealign -mavx512f 
> -fharden-control-flow-redundancy -fno-omit-frame-pointer -mbmi 
> -fkeep-gc-roots-live" } */
>
>  typedef __UINT64_TYPE__ a;
>
> --
> 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