This patch skip g++.dg/lto/pr69589_0.C on typical arm & aarch64 bare-metal targets as they don't support "-rdynamic".
spu-unknown-elf is known to be failing also, but I'd leave it to those who are more familar with all relevant spu targets. dg-skip-if is used instead of dg-xfail-if because the latter is not supported inside lto.exp. OK for trunk? 2016-05-13 Jiong Wang <jiong.w...@arm.com> gcc/testsuite/ PR testsuite/70227 * g++.dg/lto/pr69589_0.C: Skip arm and aarch64 bare-metal targets.
diff --git a/gcc/testsuite/g++.dg/lto/pr69589_0.C b/gcc/testsuite/g++.dg/lto/pr69589_0.C index bbdcb73..1457d2e 100644 --- a/gcc/testsuite/g++.dg/lto/pr69589_0.C +++ b/gcc/testsuite/g++.dg/lto/pr69589_0.C @@ -1,6 +1,8 @@ // { dg-lto-do link } -// { dg-lto-options "-O2 -rdynamic" } +// { dg-lto-options "-O2 -rdynamic" } // { dg-extra-ld-options "-r -nostdlib" } +// { dg-skip-if "Skip targets without -rdynamic support" { arm*-none-eabi aarch64*-*-elf } { "*" } { "" } } + #pragma GCC visibility push(hidden) struct A { int &operator[] (long); }; template <typename> struct B;