On 09/17/2018 03:52 AM, Jan Hubicka wrote:
On 09/11/2018 02:21 AM, Martin Liška wrote:
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -811,6 +811,10 @@ Wcoverage-mismatch
Common Var(warn_coverage_mismatch) Init(1) Warning
Warn in case profiles in -fprofile-use do not match.
+Wmissing-profile
+Common Var(warn_missing_profile) Init(1) Warning
+Warn in case profiles in -fprofile-use do not exist.
Maybe 'Want about missing profile for a function in -fprofile-use build.' ?
Since, it also warns when feedback file is missing for a compilation unit, the
suggested text above will be more restrictive. So I did not change.
Perhaps we want also to have reference from -fprofile-use documentation so
users notice
this option.
Honza
Thanks
Yes, I had added that in the patch. Following additional text will
appear at the end of
-fprofile-use :
+ Additionally, by default, GCC also emits a warning message if
+the feedback profiles do not exist (See @option{-Wmissing-profile}).