Commit 95cc0a1a by Ilya Enkovich Committed by Kirill Yukhin

tree-inline.c (tree_function_versioning): Check DF info existence before accessing it.

gcc/
	* tree-inline.c (tree_function_versioning): Check DF info existence
	before accessing it.

From-SVN: r211274
parent 2e1cdae5
2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
* tree-inline.c (tree_function_versioning): Check DF info existence
before accessing it.
2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com> 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
Jiong Wang <jiong.wang@arm.com> Jiong Wang <jiong.wang@arm.com>
......
...@@ -5345,6 +5345,7 @@ tree_function_versioning (tree old_decl, tree new_decl, ...@@ -5345,6 +5345,7 @@ tree_function_versioning (tree old_decl, tree new_decl,
DECL_ARGUMENTS (new_decl) = DECL_ARGUMENTS (old_decl); DECL_ARGUMENTS (new_decl) = DECL_ARGUMENTS (old_decl);
initialize_cfun (new_decl, old_decl, initialize_cfun (new_decl, old_decl,
old_entry_block->count); old_entry_block->count);
if (DECL_STRUCT_FUNCTION (new_decl)->gimple_df)
DECL_STRUCT_FUNCTION (new_decl)->gimple_df->ipa_pta DECL_STRUCT_FUNCTION (new_decl)->gimple_df->ipa_pta
= id.src_cfun->gimple_df->ipa_pta; = id.src_cfun->gimple_df->ipa_pta;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment