public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1495] testsuite: Require LTO for pr107557-[12].c
@ 2023-06-02 13:26 David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2023-06-02 13:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:23f352972faabe94606687558a66135f9a9e17fb

commit r14-1495-g23f352972faabe94606687558a66135f9a9e17fb
Author: David Edelsohn <dje.gcc@gmail.com>
Date:   Thu Jun 1 15:16:27 2023 -0400

    testsuite: Require LTO for pr107557-[12].c
    
    pr107557-[12].c invoke -flto option but do not check that the target
    support LTO.  This patch adds dg-require lto to the testcases.
    
            * gcc.dg/pr107557-1.c: Require LTO support.
            * gcc.dg/pr107557-2.c: Require LTO support.
    
    Signed-off-by: David Edelsohn <dje.gcc@gmail.com>

Diff:
---
 gcc/testsuite/gcc.dg/pr107557-1.c | 1 +
 gcc/testsuite/gcc.dg/pr107557-2.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/pr107557-1.c b/gcc/testsuite/gcc.dg/pr107557-1.c
index 88c248b6564..f14b784dbbf 100644
--- a/gcc/testsuite/gcc.dg/pr107557-1.c
+++ b/gcc/testsuite/gcc.dg/pr107557-1.c
@@ -1,5 +1,6 @@
 /* PR107557
  * { dg-do compile }
+ * { dg-require-effective-target lto }
  * { dg-options "-flto -fsanitize=undefined -fexceptions -Wno-incompatible-pointer-types" }
  */
 
diff --git a/gcc/testsuite/gcc.dg/pr107557-2.c b/gcc/testsuite/gcc.dg/pr107557-2.c
index 2d26bb0b16a..e680d045165 100644
--- a/gcc/testsuite/gcc.dg/pr107557-2.c
+++ b/gcc/testsuite/gcc.dg/pr107557-2.c
@@ -1,5 +1,6 @@
 /* PR107557
  * { dg-do compile }
+ * { dg-require-effective-target lto }
  * { dg-options "-flto -fsanitize=undefined -fexceptions -Wno-incompatible-pointer-types" }
  */

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

only message in thread, other threads:[~2023-06-02 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-02 13:26 [gcc r14-1495] testsuite: Require LTO for pr107557-[12].c David Edelsohn

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