Add dg-require-effective-target fpic to gcc i386 tests
authorOlivier Hainque <hainque@adacore.com>
Tue, 3 Nov 2020 09:51:43 +0000 (09:51 +0000)
committerOlivier Hainque <hainque@adacore.com>
Tue, 3 Nov 2020 11:13:11 +0000 (11:13 +0000)
commitaa23a2dd53f67f5cb4cbfa7038c2fc48caa82cc3
tree82e4ec4d5eda6830853a451dbe17bf8d06bff0f0
parentf89dcf93348b44b8ea2b57f940fcdaeae0f764f6
Add dg-require-effective-target fpic to gcc i386 tests

This change adds

 /* { dg-require-effective-target fpic } */

to tests in gcc.target/i386 that do use -fpic or -fPIC
but don't currently query the target support.

This corresponds to what many other fpic tests do
and helps the vxWorks ports at least, as -fpic is
typically not supported in at least one of the two
major modes of such port (kernel vs RTP).

2020-11-03  Olivier Hainque  <hainque@adacore.com>

gcc/testsuite/

* gcc.target/i386/pr45352-1.c: Add dg-require-effective-target fpic.
* gcc.target/i386/pr47602.c: Likewise.
* gcc.target/i386/pr55151.c: Likewise.
* gcc.target/i386/pr55458.c: Likewise.
* gcc.target/i386/pr56348.c: Likewise.
* gcc.target/i386/pr57097.c: Likewise.
* gcc.target/i386/pr65753.c: Likewise.
* gcc.target/i386/pr65915.c: Likewise.
* gcc.target/i386/pr66232-5.c: Likewise.
* gcc.target/i386/pr66334.c: Likewise.
* gcc.target/i386/pr66819-2.c: Likewise.
* gcc.target/i386/pr67265.c: Likewise.
* gcc.target/i386/pr81481.c: Likewise.
* gcc.target/i386/pr83994.c: Likewise.
14 files changed:
gcc/testsuite/gcc.target/i386/pr45352-1.c
gcc/testsuite/gcc.target/i386/pr47602.c
gcc/testsuite/gcc.target/i386/pr55151.c
gcc/testsuite/gcc.target/i386/pr55458.c
gcc/testsuite/gcc.target/i386/pr56348.c
gcc/testsuite/gcc.target/i386/pr57097.c
gcc/testsuite/gcc.target/i386/pr65753.c
gcc/testsuite/gcc.target/i386/pr65915.c
gcc/testsuite/gcc.target/i386/pr66232-5.c
gcc/testsuite/gcc.target/i386/pr66334.c
gcc/testsuite/gcc.target/i386/pr66819-2.c
gcc/testsuite/gcc.target/i386/pr67265.c
gcc/testsuite/gcc.target/i386/pr81481.c
gcc/testsuite/gcc.target/i386/pr83994.c