[PATCH] Fix for lazy decl_rtl bug in dwarf2out.c

Daniel Berlin dan@cgsoftware.com
Sat Apr 14 22:22:00 GMT 2001


While browsing the gcc-bugs mailing list, i noticed mark fixed on
lazy DECL_RTL related bug in dwarf2out.c, and it turns out
gen_label_die also uses DECL_RTL where (I think, unless i'm on crack)
it should be using DECL_RTL_IF_SET. Correct, no?


2001-04-15  Daniel Berlin  <dan@cgsoftware.com>
 
        * dwarf2out.c (gen_label_die): Use DECL_RTL_IF_SET, not DECL_RTL.

Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.263
diff -c -3 -p -r1.263 dwarf2out.c
*** dwarf2out.c	2001/04/12 01:44:21	1.263
--- dwarf2out.c	2001/04/15 05:22:24
*************** gen_label_die (decl, context_die)
*** 9664,9670 ****
      equate_decl_number_to_die (decl, lbl_die);
    else
      {
!       insn = DECL_RTL (decl);
  
        /* Deleted labels are programmer specified labels which have been
  	 eliminated because of various optimisations.  We still emit them
--- 9664,9670 ----
      equate_decl_number_to_die (decl, lbl_die);
    else
      {
!       insn = DECL_RTL_IF_SET (decl);
  
        /* Deleted labels are programmer specified labels which have been
  	 eliminated because of various optimisations.  We still emit them


-- 
Last time I went to the movies I was thrown out for bringing my
own food.  My argument was that the concession stand prices are
outrageous.  Besides, I haven't had a Bar-B-Que in a long time.



More information about the Gcc-patches mailing list