]> git.ipfire.org Git - thirdparty/gcc.git/commit
Verify that last argument of __builtin_expect_with_probability is a real cst (PR...
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Nov 2018 07:33:30 +0000 (07:33 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Nov 2018 07:33:30 +0000 (07:33 +0000)
commit26edb6f614c479ad6801e8bb2a9b1d63af3ecbf7
treecb481eda21cffb659bf7625a625ed074a6a40273
parentea906dfdf5cb5e0111b81d068fe09b7763aeaa3b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265785 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/extend.texi
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87811-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr87811-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr87811.c [new file with mode: 0644]