testsuite: dg-require LTO for libgomp LTO tests

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>
This commit is contained in:
David Edelsohn 2023-07-12 14:31:20 -04:00
parent 880676d603
commit 6f0b0cdb8a
3 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
/* { dg-require-effective-target lto } */
/* { dg-additional-options "-flto" } */
/* PR middle-end/109816 */

View 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 } */

View 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 } */