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

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