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

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