This is the mail archive of the 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]

Re: debug/2813: Type of variable is wrong in dwarf2 debugging info

Mark Mitchell agreed this seemed like the right fix go, so I went
ahead and prepared this patch (that I took the liberty to attribute to
you; I hope you don't mind :-), that I'm bootstrapping as I write
this.  It does indeed fix this particular bug report.

Ok to install in branch and mainline if bootstrap succeeds?

Index: gcc/ChangeLog
from  Mark Kettenis  <>

	* dwarf2out.c (modified_type_die): Equate qualified type to die.

Index: gcc/dwarf2out.c
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.266
diff -u -p -r1.266 dwarf2out.c
--- gcc/dwarf2out.c 2001/05/12 06:03:19 1.266
+++ gcc/dwarf2out.c 2001/05/16 06:41:26
@@ -6922,6 +6922,9 @@ modified_type_die (type, is_const_type, 
 	  if (mod_type_die == NULL)
 	    abort ();
+      if (qualified_type)
+	type = qualified_type;
   equate_type_number_to_die (type, mod_type_die);

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

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