Check -shared is available for pr87906's tesstcase
diff mbox series

Message ID 20190731092233.26943-1-kito.cheng@sifive.com
State New
Headers show
Series
  • Check -shared is available for pr87906's tesstcase
Related show

Commit Message

Kito Cheng July 31, 2019, 9:22 a.m. UTC
gcc/testsuite/ChangeLog:

	* g++.dg/lto/pr87906_0.C: Add dg-require-effective-target shared check.
---
 gcc/testsuite/g++.dg/lto/pr87906_0.C | 1 +
 1 file changed, 1 insertion(+)

Comments

Kito Cheng Aug. 1, 2019, 12:06 p.m. UTC | #1
This patch is deprecated, newer one is here:
https://gcc.gnu.org/ml/gcc-patches/2019-08/msg00026.html
and it include fix for another testcase.

On Wed, Jul 31, 2019 at 5:22 PM Kito Cheng <kito.cheng@sifive.com> wrote:
>
> gcc/testsuite/ChangeLog:
>
>         * g++.dg/lto/pr87906_0.C: Add dg-require-effective-target shared check.
> ---
>  gcc/testsuite/g++.dg/lto/pr87906_0.C | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gcc/testsuite/g++.dg/lto/pr87906_0.C b/gcc/testsuite/g++.dg/lto/pr87906_0.C
> index 434d9fbe142..6a04cd5c6f0 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" }
>
> --
> 2.17.1
>

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 434d9fbe142..6a04cd5c6f0 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" }