summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-23 14:20:07 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-23 14:20:07 +0000
commit46beef9ad81b266b165bc5919ed5771dc915545e (patch)
tree188835a26fc77a666b006fb511cef0cdf8e38c51 /gcc/cgraphunit.c
parent426829035bc889abf3153c7a9a229557db4250da (diff)
downloadgcc-46beef9ad81b266b165bc5919ed5771dc915545e.tar.gz
2008-01-23 Richard Guenther <rguenther@suse.de>
PR middle-end/31529 * cgraphunit.c (cgraph_reset_node): Always mark the node not reachable if it is not queued already. * gcc.dg/pr31529-1.c: New testcase. * gcc.dg/pr31529-2.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 5d81f5682d6..07b597f7bca 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -574,8 +574,9 @@ cgraph_reset_node (struct cgraph_node *node)
cgraph_node_remove_callees (node);
/* We may need to re-queue the node for assembling in case
- we already proceeded it and ignored as not needed. */
- if (node->reachable && !flag_unit_at_a_time)
+ we already proceeded it and ignored as not needed or got
+ a re-declaration in IMA mode. */
+ if (node->reachable)
{
struct cgraph_node *n;