Check -shared is available for tesstcases
diff mbox series

Message ID 1564660719-798-1-git-send-email-kito.cheng@sifive.com
State New
Headers show
Series
  • Check -shared is available for tesstcases
Related show

Commit Message

Kito Cheng Aug. 1, 2019, 11:58 a.m. UTC
gcc/testsuite/ChangeLog:

	* g++.dg/lto/pr87906_0.C: Add dg-require-effective-target shared check.
	* g++.dg/lto/pr89330_0.C: Ditto.
---
 gcc/testsuite/g++.dg/lto/pr87906_0.C | 1 +
 gcc/testsuite/g++.dg/lto/pr89330_0.C | 1 +
 2 files changed, 2 insertions(+)

Comments

Jim Wilson Aug. 1, 2019, 8:41 p.m. UTC | #1
On Thu, Aug 1, 2019 at 4:58 AM Kito Cheng <kito.cheng@sifive.com> wrote:
> gcc/testsuite/ChangeLog:
>         * g++.dg/lto/pr87906_0.C: Add dg-require-effective-target shared check.
>         * g++.dg/lto/pr89330_0.C: Ditto.

OK.

Jim
Kito Cheng Aug. 2, 2019, 3:17 a.m. UTC | #2
Committed as r273994 with minor change, since pr89330_0.C has fixed by r273973


On Fri, Aug 2, 2019 at 4:41 AM Jim Wilson <jimw@sifive.com> wrote:
>
> On Thu, Aug 1, 2019 at 4:58 AM Kito Cheng <kito.cheng@sifive.com> wrote:
> > gcc/testsuite/ChangeLog:
> >         * g++.dg/lto/pr87906_0.C: Add dg-require-effective-target shared check.
> >         * g++.dg/lto/pr89330_0.C: Ditto.
>
> OK.
>
> Jim

Patch
diff mbox series

diff --git a/gcc/testsuite/g++.dg/lto/pr87906_0.C b/gcc/testsuite/g++.dg/lto/pr87906_0.C
index 434d9fb..6a04cd5 100644
--- a/gcc/testsuite/g++.dg/lto/pr87906_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr87906_0.C
@@ -1,5 +1,6 @@ 
 // { dg-lto-do link }
 // { dg-require-effective-target fpic }
+// { dg-require-effective-target shared }
 // { dg-lto-options { { -O -fPIC -flto } } }
 // { dg-extra-ld-options "-shared -nostdlib" }
 
diff --git a/gcc/testsuite/g++.dg/lto/pr89330_0.C b/gcc/testsuite/g++.dg/lto/pr89330_0.C
index 7335e69..9f06556 100644
--- a/gcc/testsuite/g++.dg/lto/pr89330_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr89330_0.C
@@ -1,6 +1,7 @@ 
 // { dg-lto-do link }
 // { dg-lto-options { { -O3 -g -flto -shared -fPIC -Wno-odr } } }
 // { dg-require-effective-target fpic }
+// { dg-require-effective-target shared }
 
 namespace Inkscape {
 class Anchored {};