diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-10 08:55:32 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-10 08:55:32 +0000 |
commit | 1755aad0945c2f55a23ae98f5f2e19bdce3ed4e7 (patch) | |
tree | f48bd83bd6994da8ada01c55573d182db66c9c7c /gcc/tree-inline.c | |
parent | 333b67a9f16208485c0f76edea0b4ecaddd0c8e6 (diff) | |
download | gcc-1755aad0945c2f55a23ae98f5f2e19bdce3ed4e7.zip gcc-1755aad0945c2f55a23ae98f5f2e19bdce3ed4e7.tar.gz gcc-1755aad0945c2f55a23ae98f5f2e19bdce3ed4e7.tar.bz2 |
re PR tree-optimization/44050 (Wrong code is produced with -fipa-pta -fno-tree-pta)
2010-05-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44050
* tree-inline.c (tree_function_versioning): Clone the ipa-pta
flag.
* gcc.dg/torture/pr44050.c: New testcase.
From-SVN: r159214
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 383cc86..8e7d1d6 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -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. */ |