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/ipa.c | |
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/ipa.c')
-rw-r--r-- | gcc/ipa.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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", |