Blame SOURCES/gcc32-dwarf2-pruning-keep-spec.patch

727081
2004-08-13  Alexandre Oliva  <aoliva@redhat.com>
727081
727081
	* dwarf2out.c (prune_unused_types_walk): Mark the specification if
727081
	the declaration is marked.
727081
727081
--- gcc/dwarf2out.c	2004-08-13 04:46:06.000000000 -0300
727081
+++ gcc/dwarf2out.c	2004-08-13 04:47:21.904025637 -0300
727081
@@ -12364,6 +12364,12 @@ prune_unused_types_walk (die)
727081
     return;
727081
 
727081
   switch (die->die_tag) {
727081
+  case DW_TAG_structure_type:
727081
+    /* If the declaration is marked, mark the specification as well.  */
727081
+    if ((c = get_AT_ref (die, DW_AT_specification)) != NULL
727081
+	&& c->die_mark)
727081
+      break;
727081
+
727081
   case DW_TAG_const_type:
727081
   case DW_TAG_packed_type:
727081
   case DW_TAG_pointer_type:
727081
@@ -12371,7 +12377,6 @@ prune_unused_types_walk (die)
727081
   case DW_TAG_volatile_type:
727081
   case DW_TAG_typedef:
727081
   case DW_TAG_array_type:
727081
-  case DW_TAG_structure_type:
727081
   case DW_TAG_union_type:
727081
   case DW_TAG_class_type:
727081
   case DW_TAG_friend: