diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-15 03:47:18 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-15 03:47:18 +0000 |
commit | 3790d364a2be5f413dd3b427026b6dc717ba3345 (patch) | |
tree | ad715a789784fccabe533514d6806a05b67f654c /gcc/ipa.c | |
parent | fdd4ca003a19a2fa570bc9dffa4ae092c9efbe30 (diff) | |
download | gcc-3790d364a2be5f413dd3b427026b6dc717ba3345.tar.gz |
* ipa.c (process_references): Fix conditoinal on flag_optimize
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index bed20e9d664..ec19d5d8fa6 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -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", |