[ARM/FDPIC v5 16/21] [ARM][testsuite] FDPIC: Skip tests that don't work in PIC mode
Kyrill Tkachov
kyrylo.tkachov@foss.arm.com
Fri Jul 19 08:56:00 GMT 2019
On 5/15/19 1:39 PM, Christophe Lyon wrote:
> Some tests fail on arm*-*-uclinuxfdpiceabi because it generates PIC
> code and they don't support it: skip them. They also fail on
> arm*-linux* when forcing -fPIC.
>
> 2019-XX-XX Christophe Lyon <christophe.lyon@st.com>
>
> Â Â Â Â Â Â Â gcc/testsuite/
> Â Â Â Â Â Â Â * gcc.target/arm/eliminate.c: Accept only nonpic targets.
> Â Â Â Â Â Â Â * g++.dg/other/anon5.C: Likewise.
>
Ok.
I think it's worth committing this now independently of the others.
Thanks,
Kyrill
> Change-Id: I8efb8d356ce25b020c44a84b07f79a996dca0358
>
> diff --git a/gcc/testsuite/g++.dg/other/anon5.C
> b/gcc/testsuite/g++.dg/other/anon5.C
> index ee4601e..dadd92e 100644
> --- a/gcc/testsuite/g++.dg/other/anon5.C
> +++ b/gcc/testsuite/g++.dg/other/anon5.C
> @@ -1,5 +1,6 @@
> Â // PR c++/34094
> Â // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* }
> } } }
> +// { dg-require-effective-target nonpic }
> Â // { dg-options "-gdwarf-2" }
> Â // Ignore additional message on powerpc-ibm-aix
> Â // { dg-prune-output "obtain more information" } */
> diff --git a/gcc/testsuite/gcc.target/arm/eliminate.c
> b/gcc/testsuite/gcc.target/arm/eliminate.c
> index f254dd8..299d4df 100644
> --- a/gcc/testsuite/gcc.target/arm/eliminate.c
> +++ b/gcc/testsuite/gcc.target/arm/eliminate.c
> @@ -1,4 +1,4 @@
> -/* { dg-do compile } */
> +/* { dg-do compile { target { nonpic } } } */
> Â /* { dg-options "-O2" }Â */
>
> Â struct X
> --
> 2.6.3
>
More information about the Gcc-patches
mailing list