This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix multiple_reg_loc_descriptor thinko
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 Mar 2003 17:41:40 -0800
- Subject: fix multiple_reg_loc_descriptor thinko
Off by one. Committed as obvious.
2003-03-10 Aldy Hernandez <aldyh at redhat dot com>
* dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
Index: dwarf2out.c
===================================================================
RCS file: /cvs/uberbaum/gcc/dwarf2out.c,v
retrieving revision 1.406
diff -c -p -r1.406 dwarf2out.c
*** dwarf2out.c 6 Mar 2003 10:23:46 -0000 1.406
--- dwarf2out.c 11 Mar 2003 01:39:54 -0000
*************** multiple_reg_loc_descriptor (rtl, regs)
*** 8219,8228 ****
{
dw_loc_descr_ref t;
- ++reg;
t = one_reg_loc_descriptor (reg);
add_loc_descr (&loc_result, t);
add_loc_descr (&loc_result, new_loc_descr (DW_OP_piece, size, 0));
}
return loc_result;
}
--- 8219,8228 ----
{
dw_loc_descr_ref t;
t = one_reg_loc_descriptor (reg);
add_loc_descr (&loc_result, t);
add_loc_descr (&loc_result, new_loc_descr (DW_OP_piece, size, 0));
+ ++reg;
}
return loc_result;
}