From 5da5fefeeb90d1f3bc750f2c38c6917634127734 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 12 Dec 2018 14:22:37 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/lto/20100430-1_0.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9e851e4042a..109be22d09d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-12-12 Joel Brobecker + + * gcc.dg/lto/20100430-1_0.c: Add dg-require-profiling requirement. + 2018-12-12 Jakub Jelinek 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 1ccfc9ac1ca..c7dafac31af 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 -- 2.30.2