Tested on hppa64-hp-hpux11.11 with lto disabled. Committed to trunk. Dave ---
Require target lto in several tests 2024-01-16 John David Anglin <dang...@gcc.gnu.org> gcc/testsuite/ChangeLog: * gcc.dg/c23-tag-alias-2.c: Require target lto. * gcc.dg/c23-tag-alias-3.c: Likewise. * gcc.dg/gnu23-tag-alias-3.c: Likewise. * gcc.dg/scantest-lto.c: Likewise. diff --git a/gcc/testsuite/gcc.dg/c23-tag-alias-2.c b/gcc/testsuite/gcc.dg/c23-tag-alias-2.c index 64ff67d8552..1a4097b629d 100644 --- a/gcc/testsuite/gcc.dg/c23-tag-alias-2.c +++ b/gcc/testsuite/gcc.dg/c23-tag-alias-2.c @@ -1,4 +1,4 @@ -/* { dg-do run } +/* { dg-do run { target lto } } * { dg-options "-std=c23 -flto -O2" } */ diff --git a/gcc/testsuite/gcc.dg/c23-tag-alias-3.c b/gcc/testsuite/gcc.dg/c23-tag-alias-3.c index b9fe6f3b407..76bc4dfcd23 100644 --- a/gcc/testsuite/gcc.dg/c23-tag-alias-3.c +++ b/gcc/testsuite/gcc.dg/c23-tag-alias-3.c @@ -1,4 +1,4 @@ -/* { dg-do run } +/* { dg-do run { target lto } } * { dg-options "-std=c23 -O2" } */ diff --git a/gcc/testsuite/gcc.dg/gnu23-tag-alias-3.c b/gcc/testsuite/gcc.dg/gnu23-tag-alias-3.c index c2fd4e930ef..9d7e7e11c7f 100644 --- a/gcc/testsuite/gcc.dg/gnu23-tag-alias-3.c +++ b/gcc/testsuite/gcc.dg/gnu23-tag-alias-3.c @@ -1,4 +1,4 @@ -/* { dg-do run } +/* { dg-do run { target lto } } * { dg-options "-std=gnu23 -flto -O2" } */ diff --git a/gcc/testsuite/gcc.dg/scantest-lto.c b/gcc/testsuite/gcc.dg/scantest-lto.c index 5f8abaf77f3..46c21f20bfc 100644 --- a/gcc/testsuite/gcc.dg/scantest-lto.c +++ b/gcc/testsuite/gcc.dg/scantest-lto.c @@ -1,3 +1,4 @@ +/* { dg-do compile { target lto } } /* { dg-options "-O2 -flto" } */ void foo ()
signature.asc
Description: PGP signature