diff mbox

[testsuite] PR70227, skip g++.dg/lto/pr69589_0.C on targets without -rdynamic support

Message ID 5735DC77.7080800@foss.arm.com
State New
Headers show

Commit Message

Jiong Wang May 13, 2016, 1:53 p.m. UTC
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.wang@arm.com>

gcc/testsuite/
   PR testsuite/70227
   * g++.dg/lto/pr69589_0.C: Skip arm and aarch64 bare-metal targets.

Comments

Mike Stump May 13, 2016, 4:33 p.m. UTC | #1
On May 13, 2016, at 6:53 AM, Jiong Wang <jiong.wang@foss.arm.com> wrote:
> 
> This patch skip g++.dg/lto/pr69589_0.C on typical arm & aarch64
> bare-metal targets as they don't support "-rdynamic".
> 
> OK for trunk?

Ok.
diff mbox

Patch

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;