public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Require target lto in several tests
@ 2024-01-16 20:23 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2024-01-16 20:23 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]

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  <danglin@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 ()

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-16 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 20:23 [committed] Require target lto in several tests John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).