diff options
author | Richard Guenther <rguenther@suse.de> | 2008-01-23 14:20:07 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-01-23 14:20:07 +0000 |
commit | b86b3ea354db58a3cc83b396a093c4e498eb8f95 (patch) | |
tree | 188835a26fc77a666b006fb511cef0cdf8e38c51 /gcc/cgraphunit.c | |
parent | 8b1eb9ae805f273c92551a56c6615cb5e0c0e7e4 (diff) | |
download | gcc-b86b3ea354db58a3cc83b396a093c4e498eb8f95.zip gcc-b86b3ea354db58a3cc83b396a093c4e498eb8f95.tar.gz gcc-b86b3ea354db58a3cc83b396a093c4e498eb8f95.tar.bz2 |
re PR middle-end/31529 (ICE in cgraph_expand_function with IMA)
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.
From-SVN: r131758
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 5d81f56..07b597f 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; |