Skip to content

Commit 3a50da3

Browse files
danielcdhDehao Chen
authored andcommitted
ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
2010-11-27 Dehao Chen <[email protected]> * ipa-prop.c (ipa_modify_call_arguments): Set loc correctly. * emit-rtl.c (last_location): Remove unused variable. From-SVN: r193857
1 parent a7538b9 commit 3a50da3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

gcc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2010-11-27 Dehao Chen <[email protected]>
2+
3+
* ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
4+
* emit-rtl.c (last_location): Remove unused variable.
5+
16
2012-11-27 Uros Bizjak <[email protected]>
27

38
* config/i386/i386.md

gcc/emit-rtl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5954,15 +5954,14 @@ location_t epilogue_location;
59545954
/* Hold current location information and last location information, so the
59555955
datastructures are built lazily only when some instructions in given
59565956
place are needed. */
5957-
static location_t curr_location, last_location;
5957+
static location_t curr_location;
59585958

59595959
/* Allocate insn location datastructure. */
59605960
void
59615961
insn_locations_init (void)
59625962
{
59635963
prologue_location = epilogue_location = 0;
59645964
curr_location = UNKNOWN_LOCATION;
5965-
last_location = UNKNOWN_LOCATION;
59665965
}
59675966

59685967
/* At the end of emit stage, clear current location. */

gcc/ipa-prop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,8 @@ ipa_modify_call_arguments (struct cgraph_edge *cs, gimple stmt,
29102910

29112911
gcc_checking_assert (adj->offset % BITS_PER_UNIT == 0);
29122912
base = gimple_call_arg (stmt, adj->base_index);
2913-
loc = EXPR_LOCATION (base);
2913+
loc = DECL_P (base) ? DECL_SOURCE_LOCATION (base)
2914+
: EXPR_LOCATION (base);
29142915

29152916
if (TREE_CODE (base) != ADDR_EXPR
29162917
&& POINTER_TYPE_P (TREE_TYPE (base)))

0 commit comments

Comments
 (0)