]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
coverage.c (get_coverage_counts): Revert the formatting of missing profile opt info.
authorMartin Liska <mliska@suse.cz>
Thu, 27 Sep 2018 14:53:35 +0000 (16:53 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Sep 2018 14:53:35 +0000 (14:53 +0000)
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

13 files changed:
gcc/ChangeLog
gcc/coverage.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr60518.C
gcc/testsuite/g++.dg/torture/pr59265.C
gcc/testsuite/g++.dg/tree-prof/morefunc.C
gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C
gcc/testsuite/gcc.dg/pr26570.c
gcc/testsuite/gcc.dg/pr32773.c
gcc/testsuite/gcc.dg/pr40209.c
gcc/testsuite/gcc.dg/pr51957-1.c
gcc/testsuite/gcc.dg/pr80747.c
gcc/testsuite/gcc.target/aarch64/pr62262.c

index 4255d268398933a964c428b0d7195d71195d9c2e..4cd9f8c3f995315e835e524aa6e7a203264554a9 100644 (file)
@@ -1,3 +1,8 @@
+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
index 19c696c34930ee3f6f59f69f8a72c3910939b773..6b45ce9085b566af09913417905e3b0919aaf937 100644 (file)
@@ -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;
index 19f4eaf90c91181368a89d943230490ac1962399..834b9b0c6bf91512548b54c8fbe91bc85da84ed0 100644 (file)
@@ -1,3 +1,16 @@
+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
index e3da48a2ec90917860fd44d5c418b9e167251457..e4a80da29eedbb5c102f026a155a431f00e36c52 100644 (file)
@@ -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 == ';'; }
index d48efe59395ffcf5de5f5d4890f336fce2a59d58..f3dceb929d26a00e7fa90abe279e0d2ed32437ad 100644 (file)
@@ -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;
index 2e3fc1147583692f575e34c9a4120e51c8dbd94c..a9bdc167f4559a2e623cb2682e58c3af2bf5baa0 100644 (file)
@@ -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"
 
index 41343ee420611801e5c8e6638d890cdaa3b17d5f..3c01383f809b215492e3b341a43b2a3826ba2b0f 100644 (file)
@@ -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
 {
index 8ce8a4465e82dce8afe04c4597947d5c9453c29c..007076f9659cc118b8eff4da2cb3d98c9bea8e55 100644 (file)
@@ -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)
index 19a90195ad39f4efb94d6c42af30bb5fab4fc37e..fe046d9fe47ea5f7967e67b5755fb06a0c8eee79 100644 (file)
@@ -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)
 {
index afe131fc5eb74fa3e66b2b4c380a0d344664db39..4e77df5c2e6a794328b188e540484e409f18d568 100644 (file)
@@ -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);
 
index d899771ad001ba253dc093f3c2e1ae92164b1b15..d6712b5be2aa970a3cc18d73750378698cc23c28 100644 (file)
@@ -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];
index ea9dd3c3033581a078f155d8e764bdfff47c414a..8befab2ab1c016a3813507e27a222d54185d61cc 100644 (file)
@@ -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)
index 5bf90bf7fe3a984193c14f7386aaff2f5ada6b57..6edb3c73c6b4062439c91b4182ccb2e60e841010 100644 (file)
@@ -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;