]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: use TARGET_EXPR accessors
authorMarek Polacek <polacek@redhat.com>
Tue, 24 Sep 2024 21:54:04 +0000 (17:54 -0400)
committerMarek Polacek <polacek@redhat.com>
Wed, 25 Sep 2024 13:52:22 +0000 (09:52 -0400)
commit1fea6f82489006cfec3171f77bde8b5ed3527616
treee6d422432a9cf3622c1b53cc7b8dc91cb2939b4a
parent08b8341f209be7c7e301853bdbbcad4f8e1695f5
c++: use TARGET_EXPR accessors

While futzing around with PR116416 I noticed that we can use
the _SLOT and _INITIAL macros to make the code more readable.

gcc/c-family/ChangeLog:

* c-pretty-print.cc (c_pretty_printer::primary_expression): Use
TARGET_EXPR accessors.
(c_pretty_printer::expression): Likewise.

gcc/cp/ChangeLog:

* coroutines.cc (build_co_await): Use TARGET_EXPR accessors.
(finish_co_yield_expr): Likewise.
(register_awaits): Likewise.
(tmp_target_expr_p): Likewise.
(flatten_await_stmt): Likewise.
* error.cc (dump_expr): Likewise.
* semantics.cc (finish_omp_target_clauses): Likewise.
* tree.cc (bot_manip): Likewise.
(cp_tree_equal): Likewise.
* typeck.cc (cxx_mark_addressable): Likewise.
(cp_build_compound_expr): Likewise.
(cp_build_modify_expr): Likewise.
(check_return_expr): Likewise.

Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/c-family/c-pretty-print.cc
gcc/cp/coroutines.cc
gcc/cp/error.cc
gcc/cp/semantics.cc
gcc/cp/tree.cc
gcc/cp/typeck.cc