On 9/27/18 12:14 PM, Martin Liška wrote: > On 9/27/18 11:47 AM, Richard Biener wrote: >> On Mon, Sep 24, 2018 at 9:14 PM Indu Bhagat <indu.bha...@oracle.com> wrote: >>> >>> Done. Attached is updated patch. >>> >>> Patch is tested on x86_64 >> >> You obviously did _not_ properly test the patch since it causes a >> bunch of new testsuite >> failures: >> >> FAIL: g++.dg/pr60518.C -std=gnu++11 (test for excess errors) >> FAIL: g++.dg/pr60518.C -std=gnu++14 (test for excess errors) >> FAIL: g++.dg/pr60518.C -std=gnu++98 (test for excess errors) >> FAIL: g++.dg/tree-ssa/dom-invalid.C -std=gnu++11 (test for excess errors) >> FAIL: g++.dg/tree-ssa/dom-invalid.C -std=gnu++14 (test for excess errors) >> FAIL: g++.dg/tree-ssa/dom-invalid.C -std=gnu++98 (test for excess errors) >> FAIL: g++.dg/guality/pr55665.C -O2 -flto -fno-use-linker-plugin >> -flto-partition=none line 23 p == 40 >> FAIL: g++.dg/torture/pr59265.C -O0 (test for excess errors) >> FAIL: g++.dg/torture/pr59265.C -O1 (test for excess errors) >> FAIL: g++.dg/torture/pr59265.C -O2 (test for excess errors) >> FAIL: g++.dg/torture/pr59265.C -O2 -flto -fno-use-linker-plugin >> -flto-partition=none (test for excess errors) >> FAIL: g++.dg/torture/pr59265.C -O2 -flto -fuse-linker-plugin >> -fno-fat-lto-objects (test for excess errors) >> FAIL: g++.dg/torture/pr59265.C -O3 -g (test for excess errors) >> FAIL: g++.dg/torture/pr59265.C -Os (test for excess errors) >> FAIL: g++.dg/tree-prof/morefunc.C compilation, -fprofile-use -D_PROFILE_USE >> UNRESOLVED: g++.dg/tree-prof/morefunc.C execution, -fprofile-use >> -D_PROFILE_USE >> >> and more. Please get up to speed with GCC development and testing >> requirements! >> >> Richard. > > I'll cook patch for it in order to remove the failures as soon as possible. > > Martin > >> >>> Thanks >>> >>> >>> On 09/24/2018 09:37 AM, Martin Sebor wrote: >>>> I would suggest to use the term "remove" or "delete" instead of >>>> the informal "wipe out" when referring to removing files or their >>>> contents. >>>> >>>> Martin >>> >
There's tested patch that I made. It's tested on x86_64-linux-gnu. Feel free to install it after approval. I'll be back on Monday. Martin
>From 1757b63f13e0f18bab4be90001e1056069f8799a Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Thu, 27 Sep 2018 12:14:09 +0200 Subject: [PATCH] Fix fallout of -Wmissing-profile warning. gcc/ChangeLog: 2018-09-27 Martin Liska <mli...@suse.cz> * coverage.c (get_coverage_counts): Revert the formatting of missing profile opt info. gcc/testsuite/ChangeLog: 2018-09-27 Martin Liska <mli...@suse.cz> * g++.dg/pr60518.C: Add -Wno-missing-profile. * g++.dg/torture/pr59265.C: Likewise. * g++.dg/tree-prof/morefunc.C: Likewise. * g++.dg/tree-ssa/dom-invalid.C: Likewise. * gcc.dg/pr26570.c: Likewise. * gcc.dg/pr32773.c: Likewise. * gcc.dg/pr40209.c: Likewise. * gcc.dg/pr51957-1.c: Likewise. * gcc.dg/pr80747.c: Likewise. * gcc.target/aarch64/pr62262.c: Likewise. --- gcc/coverage.c | 10 ++++------ gcc/testsuite/g++.dg/pr60518.C | 2 +- gcc/testsuite/g++.dg/torture/pr59265.C | 2 +- gcc/testsuite/g++.dg/tree-prof/morefunc.C | 2 +- gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C | 2 +- gcc/testsuite/gcc.dg/pr26570.c | 2 +- gcc/testsuite/gcc.dg/pr32773.c | 4 ++-- gcc/testsuite/gcc.dg/pr40209.c | 2 +- gcc/testsuite/gcc.dg/pr51957-1.c | 2 +- gcc/testsuite/gcc.dg/pr80747.c | 2 +- gcc/testsuite/gcc.target/aarch64/pr62262.c | 2 +- 11 files changed, 15 insertions(+), 17 deletions(-) diff --git a/gcc/coverage.c b/gcc/coverage.c index 19c696c3493..6b45ce9085b 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -314,12 +314,10 @@ get_coverage_counts (unsigned counter, unsigned cfg_checksum, dump_user_location_t loc = dump_user_location_t::from_location_t (input_location); dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc, - "file %s not found\n", - da_file_name); - dump_printf (MSG_OPTIMIZED_LOCATIONS, - (flag_guess_branch_prob - ? "execution counts estimated\n" - : "execution counts assumed to be zero\n")); + "file %s not found, %s\n", da_file_name, + (flag_guess_branch_prob + ? "execution counts estimated" + : "execution counts assumed to be zero")); } } return NULL; diff --git a/gcc/testsuite/g++.dg/pr60518.C b/gcc/testsuite/g++.dg/pr60518.C index e3da48a2ec9..e4a80da29ee 100644 --- a/gcc/testsuite/g++.dg/pr60518.C +++ b/gcc/testsuite/g++.dg/pr60518.C @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-Os -fprofile-use" } +// { dg-options "-Os -fprofile-use -Wno-missing-profile" } int a; int fn1 () { return a == ',' || a == ';'; } diff --git a/gcc/testsuite/g++.dg/torture/pr59265.C b/gcc/testsuite/g++.dg/torture/pr59265.C index d48efe59395..f3dceb929d2 100644 --- a/gcc/testsuite/g++.dg/torture/pr59265.C +++ b/gcc/testsuite/g++.dg/torture/pr59265.C @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-fprofile-use -std=gnu++11 -Wno-return-type" } +// { dg-options "-fprofile-use -std=gnu++11 -Wno-return-type -Wno-missing-profile" } class A { int m_fn1() const; diff --git a/gcc/testsuite/g++.dg/tree-prof/morefunc.C b/gcc/testsuite/g++.dg/tree-prof/morefunc.C index 2e3fc114758..a9bdc167f45 100644 --- a/gcc/testsuite/g++.dg/tree-prof/morefunc.C +++ b/gcc/testsuite/g++.dg/tree-prof/morefunc.C @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -fno-devirtualize --param=profile-func-internal-id=0 -fdump-ipa-profile -fdump-ipa-afdo -Wno-attributes -Wno-coverage-mismatch" } */ +/* { dg-options "-O2 -fno-devirtualize --param=profile-func-internal-id=0 -fdump-ipa-profile -fdump-ipa-afdo -Wno-attributes -Wno-coverage-mismatch -Wno-missing-profile" } */ #include "reorder_class1.h" #include "reorder_class2.h" diff --git a/gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C b/gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C index 41343ee4206..3c01383f809 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C +++ b/gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C @@ -1,7 +1,7 @@ // PR tree-optimization/39557 // invalid post-dom info leads to infinite loop // { dg-do run } -// { dg-options "-Wall -fno-exceptions -O2 -fprofile-use -fopt-info -fno-rtti" } +// { dg-options "-Wall -fno-exceptions -O2 -fprofile-use -fopt-info -fno-rtti -Wno-missing-profile" } struct C { diff --git a/gcc/testsuite/gcc.dg/pr26570.c b/gcc/testsuite/gcc.dg/pr26570.c index 8ce8a4465e8..007076f9659 100644 --- a/gcc/testsuite/gcc.dg/pr26570.c +++ b/gcc/testsuite/gcc.dg/pr26570.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fprofile-generate -fprofile-use -fopt-info" } */ +/* { dg-options "-O2 -fprofile-generate -fprofile-use -fopt-info -Wno-missing-profile" } */ /* { dg-require-profiling "-fprofile-generate" } */ unsigned test (unsigned a, unsigned b) diff --git a/gcc/testsuite/gcc.dg/pr32773.c b/gcc/testsuite/gcc.dg/pr32773.c index 19a90195ad3..fe046d9fe47 100644 --- a/gcc/testsuite/gcc.dg/pr32773.c +++ b/gcc/testsuite/gcc.dg/pr32773.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O -fprofile-use -fopt-info" } */ -/* { dg-options "-O -m4 -fprofile-use -fopt-info" { target sh-*-* } } */ +/* { dg-options "-O -fprofile-use -fopt-info -Wno-missing-profile" } */ +/* { dg-options "-O -m4 -fprofile-use -fopt-info -Wno-missing-profile" { target sh-*-* } } */ void foo (int *p) { diff --git a/gcc/testsuite/gcc.dg/pr40209.c b/gcc/testsuite/gcc.dg/pr40209.c index afe131fc5eb..4e77df5c2e6 100644 --- a/gcc/testsuite/gcc.dg/pr40209.c +++ b/gcc/testsuite/gcc.dg/pr40209.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fprofile-use -fopt-info" } */ +/* { dg-options "-O2 -fprofile-use -fopt-info -Wno-missing-profile" } */ void process(const char *s); diff --git a/gcc/testsuite/gcc.dg/pr51957-1.c b/gcc/testsuite/gcc.dg/pr51957-1.c index d899771ad00..d6712b5be2a 100644 --- a/gcc/testsuite/gcc.dg/pr51957-1.c +++ b/gcc/testsuite/gcc.dg/pr51957-1.c @@ -1,6 +1,6 @@ /* PR target/51957 */ /* { dg-do link } */ -/* { dg-options "-O2 -g -fprofile-use" } */ +/* { dg-options "-O2 -g -fprofile-use -Wno-missing-profile" } */ /* { dg-additional-sources "pr51957-2.c" } */ int v[128]; diff --git a/gcc/testsuite/gcc.dg/pr80747.c b/gcc/testsuite/gcc.dg/pr80747.c index ea9dd3c3033..8befab2ab1c 100644 --- a/gcc/testsuite/gcc.dg/pr80747.c +++ b/gcc/testsuite/gcc.dg/pr80747.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/80747 */ /* { dg-do compile } */ -/* { dg-options "-fprofile-use -freorder-blocks-and-partition -O1 -foptimize-sibling-calls" } */ +/* { dg-options "-fprofile-use -freorder-blocks-and-partition -O1 -foptimize-sibling-calls -Wno-missing-profile" } */ int foo (int a) diff --git a/gcc/testsuite/gcc.target/aarch64/pr62262.c b/gcc/testsuite/gcc.target/aarch64/pr62262.c index 5bf90bf7fe3..6edb3c73c6b 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr62262.c +++ b/gcc/testsuite/gcc.target/aarch64/pr62262.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fprofile-use" } */ +/* { dg-options "-O2 -fprofile-use -Wno-missing-profile" } */ static inline int CLZ(int mask) { return mask ? __builtin_clz(mask) : 32; -- 2.19.0