From 00cfc36357ed0e8be5be113d191b0789cd48020c Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 11 Jun 2011 16:18:05 +0200 Subject: [PATCH] * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto. From-SVN: r174954 --- gcc/ChangeLog | 4 ++++ gcc/ipa.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.30.2