From: David Edelsohn Date: Thu, 1 Jun 2023 19:16:27 +0000 (-0400) Subject: testsuite: Require LTO for pr107557-[12].c X-Git-Tag: basepoints/gcc-15~8644 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f352972faabe94606687558a66135f9a9e17fb;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/gcc.dg/pr107557-1.c b/gcc/testsuite/gcc.dg/pr107557-1.c index 88c248b65646..f14b784dbbff 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 2d26bb0b16af..e680d045165f 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" } */