This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed, testsuite] Fix PR88310.


Hi,

A new warning was added in 264657 that fires if the profile count data file is missing when -fprofile-use is enabled;  this was causing the test for profile + reorder support to fail in the target supports.

Applied the following as obvious.

Iain

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog	(revision 266784)
+++ gcc/testsuite/ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2018-12-04  Iain Sandoe  <iain@sandoe.co.uk>
+
+	PR testsuite/88310
+	* lib/target-supports.exp (check_effective_target_freorder):
+	Suppress warnings for missing profile.
+
 2018-12-04  Jakub Jelinek  <jakub@redhat.com>
 
 	* g++.old-deja/g++.oliva/typename1.C: Don't expect any diagnostics
Index: gcc/testsuite/lib/target-supports.exp
===================================================================
--- gcc/testsuite/lib/target-supports.exp	(revision 266784)
+++ gcc/testsuite/lib/target-supports.exp	(working copy)
@@ -1094,7 +1094,7 @@
     } "-freorder-blocks-and-partition"]
     && [check_no_compiler_messages fprofile_use_freorder object {
 	void foo (void) { }
-    } "-fprofile-use -freorder-blocks-and-partition"] } {
+    } "-fprofile-use -freorder-blocks-and-partition -Wno-missing-profile"] } {
 	return 1
     }
     return 0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]