diff mbox series

c++: testsuite: require lto_incremental in pr90990_0.C

Message ID orletqd0e5.fsf@lxoliva.fsfla.org
State New
Headers show
Series c++: testsuite: require lto_incremental in pr90990_0.C | expand

Commit Message

Alexandre Oliva June 21, 2022, 5:57 a.m. UTC
Other LTO tests that use -r require the lto_incremental effective
target.  I suppose pr90990_0.C is missing it due to an oversight.
This patch arranges for this test to also be skipped on
non-lto_incremental targets.

Regstrapped on x86_64-linux-gnu, also tested with a cross to
aarch64-rtems6.  Ok to install?


for  gcc/testsuite/ChangeLog

	* g++.dg/lto/pr90990_0.C: Require lto_incremental target.
---
 gcc/testsuite/g++.dg/lto/pr90990_0.C |    1 +
 1 file changed, 1 insertion(+)

Comments

Richard Biener June 21, 2022, 6:59 a.m. UTC | #1
On Tue, 21 Jun 2022, Alexandre Oliva wrote:

> 
> Other LTO tests that use -r require the lto_incremental effective
> target.  I suppose pr90990_0.C is missing it due to an oversight.
> This patch arranges for this test to also be skipped on
> non-lto_incremental targets.
> 
> Regstrapped on x86_64-linux-gnu, also tested with a cross to
> aarch64-rtems6.  Ok to install?

OK.

> 
> for  gcc/testsuite/ChangeLog
> 
> 	* g++.dg/lto/pr90990_0.C: Require lto_incremental target.
> ---
>  gcc/testsuite/g++.dg/lto/pr90990_0.C |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gcc/testsuite/g++.dg/lto/pr90990_0.C b/gcc/testsuite/g++.dg/lto/pr90990_0.C
> index 22a5e3ffaaa45..74cc2bbd92889 100644
> --- a/gcc/testsuite/g++.dg/lto/pr90990_0.C
> +++ b/gcc/testsuite/g++.dg/lto/pr90990_0.C
> @@ -1,5 +1,6 @@
>  // { dg-lto-do link }
>  /* { dg-extra-ld-options {  -r -nostdlib } } */
> +// { dg-require-effective-target lto_incremental }
>  class A {
>  public:
>    float m_floats;
> 
>
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/lto/pr90990_0.C b/gcc/testsuite/g++.dg/lto/pr90990_0.C
index 22a5e3ffaaa45..74cc2bbd92889 100644
--- a/gcc/testsuite/g++.dg/lto/pr90990_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr90990_0.C
@@ -1,5 +1,6 @@ 
 // { dg-lto-do link }
 /* { dg-extra-ld-options {  -r -nostdlib } } */
+// { dg-require-effective-target lto_incremental }
 class A {
 public:
   float m_floats;