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

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