[committed] Require target lto in several tests

Message ID Zabl1c0fZzvupukC@mx3210.localdomain
State Unresolved
Headers
Series [committed] Require target lto in several tests |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

John David Anglin Jan. 16, 2024, 8:23 p.m. UTC
  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.
  

Patch

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