From: Olivier Hainque Date: Tue, 3 Nov 2020 08:58:31 +0000 (+0000) Subject: Add dg-require-effective-target fpic to gcc.target/powerpc tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ba95047e47d7c92b0e3d30364f5937d2c20e4d8;p=gcc.git Add dg-require-effective-target fpic to gcc.target/powerpc tests This helps powerpc-vxworks kernel mode. 2020-11-03 Olivier Hainque gcc/testsuite/ * gcc.target/powerpc/pr67789.c: Add dg-require-effective-target fpic. * gcc.target/powerpc/pr83629.c: Likewise. * gcc.target/powerpc/pr84112.c: Likewise. Remove a superflous target test in the dg-do compile directive while at it. --- diff --git a/gcc/testsuite/gcc.target/powerpc/pr67789.c b/gcc/testsuite/gcc.target/powerpc/pr67789.c index 371d7a3d8ed..05d01ef20d7 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr67789.c +++ b/gcc/testsuite/gcc.target/powerpc/pr67789.c @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -msecure-plt -fPIC" } */ /* { dg-skip-if "" { powerpc*-*-darwin* powerpc-ibm-aix* } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/pr83629.c b/gcc/testsuite/gcc.target/powerpc/pr83629.c index 250378ec485..976b564e927 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr83629.c +++ b/gcc/testsuite/gcc.target/powerpc/pr83629.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target ilp32 } */ +/* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -fPIC -frename-registers --param=sched-autopref-queue-depth=0 -mdejagnu-cpu=603" } */ extern void bar (void *); diff --git a/gcc/testsuite/gcc.target/powerpc/pr84112.c b/gcc/testsuite/gcc.target/powerpc/pr84112.c index cd429df41a0..8fbafa1b1ca 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr84112.c +++ b/gcc/testsuite/gcc.target/powerpc/pr84112.c @@ -1,4 +1,5 @@ -/* { dg-do compile { target powerpc*-*-* } }*/ +/* { dg-do compile } */ +/* { dg-require-effective-target fpic } */ /* { dg-options "-mdejagnu-cpu=power8 -O3 -fstack-protector-strong -fpic" } */ char *b;