Improve duplicate [[likely]] diagnostic.
authorJason Merrill <jason@redhat.com>
Mon, 18 Feb 2019 19:34:02 +0000 (14:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 18 Feb 2019 19:34:02 +0000 (14:34 -0500)
commit2d9273ca2551117680c0d89bd04ebc0c94bf4e96
tree9a67286dd2f8c6e856d2b988573cf4e131f84e4a
parent84fdd8f4632fa5a833e97a0c0b4aa95b9533e087
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.

From-SVN: r268994
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/parser.c