summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-11-08 09:50:49 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-11-08 08:50:49 +0000
commitc4e7e1b9f74bb6688bc9e9f3454bc45b890d4a9d (patch)
tree69556025951066d57b438778d4ad80bf74df567f /gcc/predict.c
parentf1f5b884c8d7a3360e0c46a9cb3c383af1d7b883 (diff)
downloadgcc-c4e7e1b9f74bb6688bc9e9f3454bc45b890d4a9d.tar.gz
Change wording of __builtin_expect_with_probability errors.
2018-11-08 Martin Liska <mliska@suse.cz> * doc/extend.texi: Reword. * predict.c (expr_expected_value_1): Likewise. 2018-11-08 Martin Liska <mliska@suse.cz> * gcc.dg/pr87811.c: Update scanned pattern. * gcc.dg/pr87811-2.c: Likewise. From-SVN: r265911
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 80a8d6846f7..8482737ab27 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -2470,8 +2470,8 @@ expr_expected_value_1 (tree type, tree op0, enum tree_code code,
if (TREE_CODE (r) != REAL_CST)
{
error_at (gimple_location (def),
- "probability argument %qE must be a compile "
- "time constant", prob);
+ "probability %qE must be "
+ "constant floating-point expression", prob);
return NULL;
}
HOST_WIDE_INT probi
@@ -2483,8 +2483,8 @@ expr_expected_value_1 (tree type, tree op0, enum tree_code code,
}
else
error_at (gimple_location (def),
- "probability argument %qE must be a in the "
- "range 0.0 to 1.0", prob);
+ "probability %qE is outside "
+ "the range [0.0, 1.0]", prob);
return gimple_call_arg (def, 1);
}