OSDN Git Service

2009-12-01 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Dec 2009 14:22:50 +0000 (14:22 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Dec 2009 14:22:50 +0000 (14:22 +0000)
* tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
to the block of the call when remapping a type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154873 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index f4cd281..939b7bc 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-01  Richard Guenther  <rguenther@suse.de>
+
+       * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
+       to the block of the call when remapping a type.
+
 2009-12-01  Martin Jambor  <mjambor@suse.cz>
 
         * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
index 10baf62..3c90941 100644 (file)
@@ -1093,10 +1093,10 @@ copy_tree_body_r (tree *tp, int *walk_subtrees, void *data)
 
       /* If EXPR has block defined, map it to newly constructed block.
          When inlining we want EXPRs without block appear in the block
-        of function call.  */
+        of function call if we are not remapping a type.  */
       if (EXPR_P (*tp))
        {
-         new_block = id->block;
+         new_block = id->remapping_type_depth == 0 ? id->block : NULL;
          if (TREE_BLOCK (*tp))
            {
              tree *n;