diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-12-15 04:47:18 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-12-15 03:47:18 +0000 |
commit | f1ced6f5e7e78a6818c4820c4a5f103b74112f93 (patch) | |
tree | ad715a789784fccabe533514d6806a05b67f654c /gcc | |
parent | 59b5b46686c45c803118ad4dee42d8919e305bc0 (diff) | |
download | gcc-f1ced6f5e7e78a6818c4820c4a5f103b74112f93.zip gcc-f1ced6f5e7e78a6818c4820c4a5f103b74112f93.tar.gz gcc-f1ced6f5e7e78a6818c4820c4a5f103b74112f93.tar.bz2 |
* ipa.c (process_references): Fix conditoinal on flag_optimize
From-SVN: r218730
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ipa.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 253db82..431b2a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2014-12-14 Jan Hubicka <hubicka@ucw.cz> + * ipa.c (process_references): Fix conditoinal on flag_optimize + +2014-12-14 Jan Hubicka <hubicka@ucw.cz> + PR ipa/61558 * symtab.c (symbol_table::insert_to_assembler_name_hash symbol_table::unlink_from_assembler_name_hash): Do not ICE when @@ -128,8 +128,10 @@ process_references (symtab_node *snode, if (node->definition && !node->in_other_partition && ((!DECL_EXTERNAL (node->decl) || node->alias) || (((before_inlining_p - && (TREE_CODE (node->decl) != FUNCTION_DECL - || opt_for_fn (body->decl, optimize) + && ((TREE_CODE (node->decl) != FUNCTION_DECL + && optimize) + || (TREE_CODE (node->decl) == FUNCTION_DECL + && opt_for_fn (body->decl, optimize)) || (symtab->state < IPA_SSA && lookup_attribute ("always_inline", |