Blame SOURCES/gcc34-dwarf2-inline-details-fix.patch

6fdc0f
2006-11-07  Alexandre Oliva  <aoliva@redhat.com>
6fdc0f
6fdc0f
	* tree-inline.c (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
6fdc0f
6fdc0f
--- gcc/tree-inline.c.orig	2006-10-13 04:31:24.000000000 -0300
6fdc0f
+++ gcc/tree-inline.c	2006-11-07 04:06:10.000000000 -0200
6fdc0f
@@ -1253,6 +1253,7 @@ expand_call_inline (tree *tp, int *walk_
6fdc0f
   tree args;
6fdc0f
   tree return_slot_addr;
6fdc0f
   const char *reason;
6fdc0f
+  location_t incoming_loc = input_location;
6fdc0f
 
6fdc0f
   /* See what we've got.  */
6fdc0f
   id = (inline_data *) data;
6fdc0f
@@ -1464,7 +1465,10 @@ expand_call_inline (tree *tp, int *walk_
6fdc0f
   /* Tell the debugging backends that this block represents the
6fdc0f
      outermost scope of the inlined function.  */
6fdc0f
   if (SCOPE_STMT_BLOCK (scope_stmt))
6fdc0f
-    BLOCK_ABSTRACT_ORIGIN (SCOPE_STMT_BLOCK (scope_stmt)) = DECL_ORIGIN (fn);
6fdc0f
+    {
6fdc0f
+      BLOCK_ABSTRACT_ORIGIN (SCOPE_STMT_BLOCK (scope_stmt)) = DECL_ORIGIN (fn);
6fdc0f
+      BLOCK_SOURCE_LOCATION (SCOPE_STMT_BLOCK (scope_stmt)) = incoming_loc;
6fdc0f
+    }
6fdc0f
 
6fdc0f
   /* Declare the return variable for the function.  */
6fdc0f
   COMPOUND_BODY (stmt)