diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2023-06-01 15:16:27 -0400 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 2023-06-02 09:30:48 -0400 |
commit | 23f352972faabe94606687558a66135f9a9e17fb (patch) | |
tree | 3b847eea06be9c43c515366c2e3d5dd909432192 | |
parent | 9f926f3a0c8dee7edb6807323a1fe2a92b33bfaa (diff) | |
download | gcc-23f352972faabe94606687558a66135f9a9e17fb.zip gcc-23f352972faabe94606687558a66135f9a9e17fb.tar.gz gcc-23f352972faabe94606687558a66135f9a9e17fb.tar.bz2 |
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>
-rw-r--r-- | gcc/testsuite/gcc.dg/pr107557-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr107557-2.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr107557-1.c b/gcc/testsuite/gcc.dg/pr107557-1.c index 88c248b..f14b784 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 2d26bb0..e680d04 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" } */ |