This test currently fails unexpectedly if GCC is configured with
--disable-gcov, because it requires -fprofile-arcs. This patch
fixes the issue by requiring profiling support in order to run
this test.
Tested with two compilers, one built with --disable-gcov, resulting
in the test reporting an UNSUPPORTED result; and one built with gcov
support, resulting in 2 PASS tests.
gcc/testsuite/ChangeLog:
* gcc.dg/lto/
20100430-1_0.c: Add dg-require-profiling requirement.
From-SVN: r267055
+2018-12-12 Joel Brobecker <brobecker@adacore.com>
+
+ * gcc.dg/lto/20100430-1_0.c: Add dg-require-profiling requirement.
+
2018-12-12 Jakub Jelinek <jakub@redhat.com>
PR c++/88446
/* { dg-lto-do link } */
/* { dg-lto-options {{-O2 -fprofile-arcs -flto -r -nostdlib}} } */
/* { dg-extra-ld-options "-flinker-output=nolto-rel" } */
+/* { dg-require-profiling "-fprofile-arcs" } */
void