aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-05-10 23:41:38 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2012-05-10 21:41:38 +0000
commit57228a699857bbc47b6df2042f3fe77dc280876d (patch)
treec227721b691361d997d311948ef2bb8667057a2b /gcc/ipa.c
parent5a3c9cf200bc4614ae9b6390835759365d4663e5 (diff)
downloadgcc-57228a699857bbc47b6df2042f3fe77dc280876d.zip
gcc-57228a699857bbc47b6df2042f3fe77dc280876d.tar.gz
gcc-57228a699857bbc47b6df2042f3fe77dc280876d.tar.bz2
* ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
From-SVN: r187381
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 766b26f..a107c6f 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -310,12 +310,12 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
/* For non-inline clones, force their origins to the boundary and ensure
that body is not removed. */
- while (cnode->clone_of && !cnode->clone_of->symbol.aux
+ while (cnode->clone_of
&& !gimple_has_body_p (cnode->symbol.decl))
{
bool noninline = cnode->clone_of->symbol.decl != cnode->symbol.decl;
cnode = cnode->clone_of;
- if (noninline && !cnode->symbol.aux)
+ if (noninline)
{
pointer_set_insert (body_needed_for_clonning, cnode->symbol.decl);
enqueue_node ((symtab_node)cnode, &first, reachable);