On Thu, Sep 30, 2021 at 02:17:08PM +0200, Martin Liška wrote: > Remove 2 unresolved tests. > > Pushed to master, > Martin > > PR testsuite/102509 > > gcc/testsuite/ChangeLog: > > * gcc.c-torture/compile/attr-complex-method.c: Skip if LTO is > used. > * gcc.c-torture/compile/attr-complex-method-2.c: Likewise.
The other solution would be to add -ffat-lto-objects. I guess not a big difference... > diff --git a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c > b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c > index a3dc9c1ba91..121ae17f64b 100644 > --- a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c > +++ b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c > @@ -1,4 +1,5 @@ > /* { dg-additional-options "-fcx-limited-range -fdump-tree-optimized" } */ > +/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ > #pragma GCC optimize "-fno-cx-limited-range" > diff --git a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c > b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c > index f08b72e273f..046de7efeb9 100644 > --- a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c > +++ b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c > @@ -1,4 +1,5 @@ > /* { dg-additional-options "-fdump-tree-optimized" } */ > +/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ > #pragma GCC optimize "-fcx-limited-range" > -- > 2.33.0 Jakub