+2018-02-13 Martin Jambor <mjambor@suse.cz>
+
+ PR c++/83990
+ * ipa-param-manipulation.c (ipa_modify_call_arguments): Use location
+ of call statements, also set location of a load to a temporary.
+
2018-02-13 Sebastian Perta <sebastian.perta@renesas.com>
* config/rl78/rl78.c (add_vector_labels): New function.
poly_int64 byte_offset = exact_div (adj->offset, BITS_PER_UNIT);
base = gimple_call_arg (stmt, adj->base_index);
- loc = DECL_P (base) ? DECL_SOURCE_LOCATION (base)
- : EXPR_LOCATION (base);
+ loc = gimple_location (stmt);
if (TREE_CODE (base) != ADDR_EXPR
&& POINTER_TYPE_P (TREE_TYPE (base)))
else
expr = create_tmp_reg (TREE_TYPE (expr));
gimple_assign_set_lhs (tem, expr);
+ gimple_set_location (tem, loc);
gsi_insert_before (&gsi, tem, GSI_SAME_STMT);
}
}