]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: dg-require LTO for libgomp LTO tests
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 12 Jul 2023 18:31:20 +0000 (14:31 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Thu, 13 Jul 2023 12:54:20 +0000 (08:54 -0400)
Some test cases in libgomp testsuite pass -flto as an option, but
the testcases do not require LTO target support.  This patch adds
the necessary DejaGNU requirement for LTO support to the testcases..

libgomp/ChangeLog:
* testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
* testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
* testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.

Signed-off-by: David Edelsohn <dje.gcc@gmail.com>
libgomp/testsuite/libgomp.c++/target-map-class-2.C
libgomp/testsuite/libgomp.c-c++-common/requires-4.c
libgomp/testsuite/libgomp.c-c++-common/requires-4a.c

index 1ef20f7ec226d81595f6191786efde1fa50e368d..3463abf858c3ef3f5ce9e9dce3c8e6566bfb3adf 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target lto } */
 /* { dg-additional-options "-flto" }  */
 /* PR middle-end/109816  */
 
index 5883eff0d9398fb80369a7b4b5f78485ee167957..8cb4821ee53c2be1956082c0253e67c2c3df49f3 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target lto } */
 /* { dg-additional-options "-flto" } */
 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
 /* { dg-additional-sources requires-4-aux.c } */
index 4fb9783a97ac9b4225f2f3c8785651c7e214cb4c..0e0db927c2c18fabb9a11e258a9becb261e11ea7 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target lto } */
 /* { dg-additional-options "-flto" } */
 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
 /* { dg-additional-sources requires-4-aux.c } */