Commit 88307040 by Martin Liska Committed by Richard Biener

coverage.c (get_coverage_counts): Revert the formatting of missing profile opt info.

2018-09-27  Martin Liska  <mliska@suse.cz>

	* coverage.c (get_coverage_counts): Revert the formatting
	of missing profile opt info.

	* 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.

From-SVN: r264669
parent b88da9bb
2018-09-27 Martin Liska <mliska@suse.cz>
* coverage.c (get_coverage_counts): Revert the formatting
of missing profile opt info.
2018-09-27 Richard Biener <rguenther@suse.de>
PR debug/37801
......
......@@ -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;
......
2018-09-27 Martin Liska <mliska@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.
2018-09-27 Richard Biener <rguenther@suse.de>
PR testsuite/87451
......
// { dg-do compile }
// { dg-options "-Os -fprofile-use" }
// { dg-options "-Os -fprofile-use -Wno-missing-profile" }
int a;
int fn1 () { return a == ',' || a == ';'; }
......
// { 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;
......
/* { 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"
......
// 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
{
......
/* { 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)
......
/* { 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)
{
......
/* { 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);
......
/* 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];
......
/* 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)
......
/* { 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment