This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
      }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]