aboutsummaryrefslogtreecommitdiff
path: root/gcc/var-tracking.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r--gcc/var-tracking.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c
index d9f21b5..94a025a 100644
--- a/gcc/var-tracking.c
+++ b/gcc/var-tracking.c
@@ -2389,8 +2389,7 @@ emit_note_insn_var_location (void **varp, void *data)
if (REG_P (loc[n_var_parts])
&& hard_regno_nregs[REGNO (loc[n_var_parts])][mode] * 2
== hard_regno_nregs[REGNO (loc[n_var_parts])][wider_mode]
- && REGNO (loc[n_var_parts])
- + hard_regno_nregs[REGNO (loc[n_var_parts])][mode]
+ && end_hard_regno (mode, REGNO (loc[n_var_parts]))
== REGNO (loc2))
{
if (! WORDS_BIG_ENDIAN && ! BYTES_BIG_ENDIAN)