Commit e70545b0 by Richard Sandiford Committed by Jakub Jelinek

var-tracking.c (emit_note_insn_var_location): Get the mode of a variable part…

var-tracking.c (emit_note_insn_var_location): Get the mode of a variable part from its REG, MEM or VALUE.

	* var-tracking.c (emit_note_insn_var_location): Get the mode of
	a variable part from its REG, MEM or VALUE.

From-SVN: r153665
parent f883d997
2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
* var-tracking.c (emit_note_insn_var_location): Get the mode of
a variable part from its REG, MEM or VALUE.
2009-10-28 Richard Guenther <rguenther@suse.de> 2009-10-28 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_get_alias_set): Fix comment typo. * gimple.c (gimple_get_alias_set): Fix comment typo.
...@@ -6416,7 +6416,7 @@ emit_note_insn_var_location (void **varp, void *data) ...@@ -6416,7 +6416,7 @@ emit_note_insn_var_location (void **varp, void *data)
continue; continue;
} }
loc[n_var_parts] = loc2; loc[n_var_parts] = loc2;
mode = GET_MODE (loc[n_var_parts]); mode = GET_MODE (var->var_part[i].loc_chain->loc);
initialized = var->var_part[i].loc_chain->init; initialized = var->var_part[i].loc_chain->init;
last_limit = offsets[n_var_parts] + GET_MODE_SIZE (mode); last_limit = offsets[n_var_parts] + GET_MODE_SIZE (mode);
...@@ -6427,9 +6427,9 @@ emit_note_insn_var_location (void **varp, void *data) ...@@ -6427,9 +6427,9 @@ emit_note_insn_var_location (void **varp, void *data)
break; break;
if (j < var->n_var_parts if (j < var->n_var_parts
&& wider_mode != VOIDmode && wider_mode != VOIDmode
&& mode == GET_MODE (var->var_part[j].loc_chain->loc)
&& (loc2 = vt_expand_loc (var->var_part[j].loc_chain->loc, vars)) && (loc2 = vt_expand_loc (var->var_part[j].loc_chain->loc, vars))
&& GET_CODE (loc[n_var_parts]) == GET_CODE (loc2) && GET_CODE (loc[n_var_parts]) == GET_CODE (loc2)
&& mode == GET_MODE (loc2)
&& last_limit == var->var_part[j].offset) && last_limit == var->var_part[j].offset)
{ {
rtx new_loc = NULL; rtx new_loc = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment