Hello, This patch is a proposal to add a
/* { dg-require-effective-target lto } */ directive to a "dg-do link" test using -flto, to prevent failure on targets missing LTO support such as VxWorks for it's "kernel" mode where modules are only partially linked. I have checked that the test still runs and passes on a regular native x86_64-linux environment. Ok to commit ? Thanks in advance, Best Regards, Olivier 2020-11-02 Olivier Hainque <hain...@adacore.com> testuite/ * gcc.dg/tree-ssa/pr71077.c: Add dg-require-effective-target lto.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71077.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71077.c index 4753740f762d..259055fbe9a6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71077.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71077.c @@ -1,5 +1,6 @@ /* PR c++/71077 */ /* { dg-do link { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target lto } */ /* { dg-options "-O3 -flto -march=core-avx2" } */ int *a; -- 2.17.1