Blame SOURCES/gcc34-dwarf2-prefer-1elt-vartracking.patch

6fdc0f
2005-08-10  Jakub Jelinek  <jakub@redhat.com>
6fdc0f
6fdc0f
	* dwarf2out.c (add_location_or_const_value_attribute): Prefer
6fdc0f
	locations gathered by var-tracking in single entry loc_list
6fdc0f
	over loc_descriptor_from_tree.
6fdc0f
6fdc0f
--- gcc/dwarf2out.c.orig	2005-11-17 23:03:34.000000000 -0200
6fdc0f
+++ gcc/dwarf2out.c	2005-11-17 23:05:54.000000000 -0200
6fdc0f
@@ -9921,7 +9921,15 @@
6fdc0f
 
6fdc0f
   rtl = rtl_for_decl_location (decl);
6fdc0f
   if (rtl == NULL_RTX)
6fdc0f
-    return;
6fdc0f
+    {
6fdc0f
+      /* We couldn't get any rtl, so try directly generating the
6fdc0f
+	 location description from the tree.  */
6fdc0f
+      descr = loc_descriptor_from_tree (decl, 0);
6fdc0f
+      if (descr)
6fdc0f
+	add_AT_location_description (die, attr, descr);
6fdc0f
+
6fdc0f
+      return;
6fdc0f
+    }
6fdc0f
 
6fdc0f
   switch (GET_CODE (rtl))
6fdc0f
     {