From: Jan Hubicka Date: Sat, 11 Jun 2011 14:18:05 +0000 (+0200) Subject: * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00cfc36357ed0e8be5be113d191b0789cd48020c;p=gcc.git * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto. From-SVN: r174954 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73c5fb46a87..4dd8a226920 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-06-11 Jan Hubicka + + * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto. + 2011-06-11 Jan Hubicka * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code. diff --git a/gcc/ipa.c b/gcc/ipa.c index a80f9ba2ba4..4fd3b7ce598 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -571,7 +571,7 @@ cgraph_comdat_can_be_unshared_p (struct cgraph_node *node) address taken. */ for (next = node->same_comdat_group; next != node; next = next->same_comdat_group) - if (cgraph_address_taken_from_non_vtable_p (node) + if (cgraph_address_taken_from_non_vtable_p (next) && !DECL_VIRTUAL_P (next->decl)) return false; }