]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
Improve duplicate [[likely]] diagnostic.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Feb 2019 19:34:02 +0000 (19:34 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Feb 2019 19:34:02 +0000 (19:34 +0000)
commita1e1b6036586c489a66919aaac3ee03bf548ab8b
tree9a67286dd2f8c6e856d2b988573cf4e131f84e4a
parent2c3f2398a8f04be899d38d26b03e04a567346162
Improve duplicate [[likely]] diagnostic.

* parser.c (cp_parser_statement): Make attrs_loc a range.  Pass it
to process_stmt_hotness_attribute.
* cp-gimplify.c (process_stmt_hotness_attribute): Take attrs_loc.
(genericize_if_stmt): Use likely/unlikely instead of predictor_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268994 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/parser.c