From 4e7cbff5c2a391f025b29cc0ce05e1d7d01b5d59 Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Wed, 16 Jan 2019 17:50:38 +0000 Subject: [PATCH] Fix PR88046 on AArch64 and Arm bare metal targets. gcc/testsuite/ChangeLog: PR debug/88046 * g++.dg/lto/pr88046_0.C: Check for shared and fPIC. From-SVN: r267980 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/lto/pr88046_0.C | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c11b84797e..004af237dd3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-01-16 Tamar Christina + + PR debug/88046 + * g++.dg/lto/pr88046_0.C: Check for shared and fPIC. + 2019-01-16 Paolo Carlini * g++.dg/other/pr33558.C: Test location too. diff --git a/gcc/testsuite/g++.dg/lto/pr88046_0.C b/gcc/testsuite/g++.dg/lto/pr88046_0.C index a254dd03586..734ce86e9b8 100644 --- a/gcc/testsuite/g++.dg/lto/pr88046_0.C +++ b/gcc/testsuite/g++.dg/lto/pr88046_0.C @@ -1,5 +1,7 @@ // { dg-lto-do link } // { dg-lto-options { { -O2 -fPIC -flto } } } +// { dg-require-effective-target shared } +// { dg-require-effective-target fpic } // { dg-extra-ld-options "-shared -g" } class a {}; -- 2.30.2