Add dg-require-effective-target fpic to g++ tests
authorOlivier Hainque <hainque@adacore.com>
Wed, 26 Feb 2020 17:55:09 +0000 (17:55 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 6 Nov 2020 09:55:16 +0000 (09:55 +0000)
Add missing dg-require-effective-target fpic to few
g++.dg tests.

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

gcc/testsuite/
* g++.dg/pr57878.C: Add dg-require-effective-target fpic.
* g++.dg/pr65032.C: Likewise.
* g++.dg/pr84279.C: Likewise.
* g++.dg/inherit/thunk8.C: Likewise.
* g++.dg/opt/pr64411.C: Likewise.

gcc/testsuite/g++.dg/inherit/thunk8.C
gcc/testsuite/g++.dg/opt/pr64411.C
gcc/testsuite/g++.dg/pr57878.C
gcc/testsuite/g++.dg/pr65032.C
gcc/testsuite/g++.dg/pr84279.C

index ef645356898dae2080c88841208b285efbc55c94..ecb9cbf37fee213f1349e9297f332eece1a7b669 100644 (file)
@@ -4,6 +4,7 @@
 
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_thumb1_ok } */
+/* { dg-require-effective-target fpic } */
 /* { dg-options "-mthumb -fPIC" } */
 
 struct A {
index 122b9eec414e1a86c6ff12312de4a446f62ad18f..6ecc0a89de27f86184fd2f4eb80419ccd0f01832 100644 (file)
@@ -1,5 +1,6 @@
 // PR target/64411
 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } }
+// { dg-require-effective-target fpic }
 // { dg-options "-Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling" }
 
 typedef __SIZE_TYPE__ size_t;
index 5df2b7c9ef4e6c119a21533d6af21df7c9d76986..ee9142b484bb3e7059d5545bec346c8aec7f3f19 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
 // { dg-require-effective-target c++11 }
+// { dg-require-effective-target fpic }
 /* { dg-options "-O2 -fno-omit-frame-pointer -fPIC" } */
 
 typedef int int32;
index d6b6768d25a680024f4b4543931804050cb5390b..6e348f83a8e0be808dea735990ce12ea0b32fa41 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
+// { dg-require-effective-target fpic }
 // { dg-options "-Os -std=c++11 -fPIC -fstack-protector-strong -fomit-frame-pointer" }
 
 #pragma GCC visibility push(hidden)
index a88d3fb847038dc8b156a95f4a9c9241af52350f..b2b5b8eabab175fceb6984ef98e39598d41ad3a9 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
 /* { dg-require-effective-target powerpc_p8vector_ok } */
+/* { dg-require-effective-target fpic } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
 /* { dg-options "-O3 -mcpu=power8 -g -fPIC -fvisibility=hidden -fstack-protector-strong" } */