From c3d11a1e9528b6140c65a66d47225a0b6a8814e0 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 30 Sep 2021 14:12:35 +0200 Subject: [PATCH] testsuite: Skip a test-case when LTO is used [PR102509] 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. --- gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c | 1 + gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c | 1 + 2 files changed, 2 insertions(+) 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 a3dc9c1ba919..121ae17f64b2 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 f08b72e273fc..046de7efeb96 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"