From: Olivier Hainque Date: Wed, 26 Feb 2020 17:55:09 +0000 (+0000) Subject: Add dg-require-effective-target fpic to g++ tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff47c61f07d458db6c061f2de006a3f6dbf04b0b;p=gcc.git Add dg-require-effective-target fpic to g++ tests Add missing dg-require-effective-target fpic to few g++.dg tests. 2020-11-02 Olivier Hainque 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. --- diff --git a/gcc/testsuite/g++.dg/inherit/thunk8.C b/gcc/testsuite/g++.dg/inherit/thunk8.C index ef645356898..ecb9cbf37fe 100644 --- a/gcc/testsuite/g++.dg/inherit/thunk8.C +++ b/gcc/testsuite/g++.dg/inherit/thunk8.C @@ -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 { diff --git a/gcc/testsuite/g++.dg/opt/pr64411.C b/gcc/testsuite/g++.dg/opt/pr64411.C index 122b9eec414..6ecc0a89de2 100644 --- a/gcc/testsuite/g++.dg/opt/pr64411.C +++ b/gcc/testsuite/g++.dg/opt/pr64411.C @@ -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; diff --git a/gcc/testsuite/g++.dg/pr57878.C b/gcc/testsuite/g++.dg/pr57878.C index 5df2b7c9ef4..ee9142b484b 100644 --- a/gcc/testsuite/g++.dg/pr57878.C +++ b/gcc/testsuite/g++.dg/pr57878.C @@ -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; diff --git a/gcc/testsuite/g++.dg/pr65032.C b/gcc/testsuite/g++.dg/pr65032.C index d6b6768d25a..6e348f83a8e 100644 --- a/gcc/testsuite/g++.dg/pr65032.C +++ b/gcc/testsuite/g++.dg/pr65032.C @@ -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) diff --git a/gcc/testsuite/g++.dg/pr84279.C b/gcc/testsuite/g++.dg/pr84279.C index a88d3fb8470..b2b5b8eabab 100644 --- a/gcc/testsuite/g++.dg/pr84279.C +++ b/gcc/testsuite/g++.dg/pr84279.C @@ -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" } */