OSDN Git Service

2010-05-10 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 May 2010 08:55:32 +0000 (08:55 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:04:12 +0000 (14:04 +0900)
PR tree-optimization/44050
* tree-inline.c (tree_function_versioning): Clone the ipa-pta
flag.

* gcc.dg/torture/pr44050.c: New testcase.

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

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/tree-inline.c

index 76e6ea6..07c5dd7 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-10  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/44050
+       * tree-inline.c (tree_function_versioning): Clone the ipa-pta
+       flag.
+
 2010-05-10  Wei Guozhi  <carrot@google.com>
 
        PR target/42879
index 5ee636f..3fc7164 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-10  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/44050
+       * gcc.dg/torture/pr44050.c: New testcase.
+
 2010-05-10  Wei Guozhi  <carrot@google.com>
 
        PR target/42879
index 383cc86..8e7d1d6 100644 (file)
@@ -4924,6 +4924,8 @@ tree_function_versioning (tree old_decl, tree new_decl,
     (DECL_STRUCT_FUNCTION (old_decl));
   initialize_cfun (new_decl, old_decl,
                   old_entry_block->count);
+  DECL_STRUCT_FUNCTION (new_decl)->gimple_df->ipa_pta
+    = id.src_cfun->gimple_df->ipa_pta;
   push_cfun (DECL_STRUCT_FUNCTION (new_decl));
 
   /* Copy the function's static chain.  */