aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-gimplify.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-06-18 20:38:44 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-06-18 20:38:44 -0400
commit6bdfada421e21cbeb4cfb29b2566ac6075be463a (patch)
tree74cc71c125d772adebe67c6d5bb27461e03218ae /gcc/cp/cp-gimplify.c
parentc0e11c6afb448b0a9423b62c86c207945a0f5335 (diff)
downloadgcc-6bdfada421e21cbeb4cfb29b2566ac6075be463a.zip
gcc-6bdfada421e21cbeb4cfb29b2566ac6075be463a.tar.gz
gcc-6bdfada421e21cbeb4cfb29b2566ac6075be463a.tar.bz2
tree.c (cp_expr_location): New.
* tree.c (cp_expr_location): New. * cp-tree.h (cp_expr_loc_or_loc): New. * call.c, cvt.c, constexpr.c, constraint.cc, cp-gimplify.c, decl.c, error.c, init.c, lex.c, parser.c, pt.c, semantics.c, typeck.c, typeck2.c: Use it instead of EXPR_LOC_OR_LOC. From-SVN: r261728
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r--gcc/cp/cp-gimplify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c
index 4567365..16831fc 100644
--- a/gcc/cp/cp-gimplify.c
+++ b/gcc/cp/cp-gimplify.c
@@ -217,7 +217,7 @@ genericize_cp_loop (tree *stmt_p, location_t start_locus, tree cond, tree body,
{
/* If COND is constant, don't bother building an exit. If it's false,
we won't build a loop. If it's true, any exits are in the body. */
- location_t cloc = EXPR_LOC_OR_LOC (cond, start_locus);
+ location_t cloc = cp_expr_loc_or_loc (cond, start_locus);
exit = build1_loc (cloc, GOTO_EXPR, void_type_node,
get_bc_label (bc_break));
exit = fold_build3_loc (cloc, COND_EXPR, void_type_node, cond,
@@ -579,7 +579,7 @@ int
cp_gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p)
{
int saved_stmts_are_full_exprs_p = 0;
- location_t loc = EXPR_LOC_OR_LOC (*expr_p, input_location);
+ location_t loc = cp_expr_loc_or_loc (*expr_p, input_location);
enum tree_code code = TREE_CODE (*expr_p);
enum gimplify_status ret;