r265785 - in /trunk/gcc: ChangeLog doc/extend.t...
marxin@gcc.gnu.org
marxin@gcc.gnu.org
Mon Nov 5 07:33:00 GMT 2018
Author: marxin
Date: Mon Nov 5 07:33:30 2018
New Revision: 265785
URL: https://gcc.gnu.org/viewcvs?rev=265785&root=gcc&view=rev
Log:
Verify that last argument of __builtin_expect_with_probability is a real cst (PR c/87811).
2018-11-05 Martin Liska <mliska@suse.cz>
PR c/87811
* predict.c (expr_expected_value_1): Verify
that last argument is a real constants and emit
error.
2018-11-05 Martin Liska <mliska@suse.cz>
PR c/87811
* gcc.dg/pr87811.c: New test.
* gcc.dg/pr87811-2.c: Likewise.
* gcc.dg/pr87811-3.c: Likewise.
2018-11-05 Martin Liska <mliska@suse.cz>
PR c/87811
* doc/extend.texi: Update constrain about the last argument
of __builtin_expect_with_probability.
Added:
trunk/gcc/testsuite/gcc.dg/pr87811-2.c
trunk/gcc/testsuite/gcc.dg/pr87811-3.c
trunk/gcc/testsuite/gcc.dg/pr87811.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/extend.texi
trunk/gcc/predict.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list