diff options
author | Joel Brobecker <brobecker@adacore.com> | 2018-12-12 14:22:37 +0000 |
---|---|---|
committer | Joel Brobecker <brobecke@gcc.gnu.org> | 2018-12-12 14:22:37 +0000 |
commit | 5da5fefeeb90d1f3bc750f2c38c6917634127734 (patch) | |
tree | 75a42523b30e6d1a914d803c0a086c4edc237c75 /gcc | |
parent | d665cd9b131b129caa3f6b1e3f85e43b34ca71e8 (diff) | |
download | gcc-5da5fefeeb90d1f3bc750f2c38c6917634127734.zip gcc-5da5fefeeb90d1f3bc750f2c38c6917634127734.tar.gz gcc-5da5fefeeb90d1f3bc750f2c38c6917634127734.tar.bz2 |
require profiling support for gcc.dg/lto/20100430-1_0.c test
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20100430-1_0.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9e851e4..109be22 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gcc/testsuite/gcc.dg/lto/20100430-1_0.c b/gcc/testsuite/gcc.dg/lto/20100430-1_0.c index 1ccfc9a..c7dafac 100644 --- a/gcc/testsuite/gcc.dg/lto/20100430-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/20100430-1_0.c @@ -1,6 +1,7 @@ /* { 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 |