Commit b86b3ea3 by Richard Guenther Committed by Richard Biener

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
parent 8b1eb9ae
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.
2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com> 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros. * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
......
...@@ -574,8 +574,9 @@ cgraph_reset_node (struct cgraph_node *node) ...@@ -574,8 +574,9 @@ cgraph_reset_node (struct cgraph_node *node)
cgraph_node_remove_callees (node); cgraph_node_remove_callees (node);
/* We may need to re-queue the node for assembling in case /* We may need to re-queue the node for assembling in case
we already proceeded it and ignored as not needed. */ we already proceeded it and ignored as not needed or got
if (node->reachable && !flag_unit_at_a_time) a re-declaration in IMA mode. */
if (node->reachable)
{ {
struct cgraph_node *n; struct cgraph_node *n;
......
2008-01-23 Richard Guenther <rguenther@suse.de>
PR middle-end/31529
* gcc.dg/pr31529-1.c: New testcase.
* gcc.dg/pr31529-2.c: Likewise.
2008-01-23 Jakub Jelinek <jakub@redhat.com> 2008-01-23 Jakub Jelinek <jakub@redhat.com>
PR c++/34829 PR c++/34829
/* { dg-do compile } */
/* { dg-options "-combine" } */
/* { dg-additional-sources "pr31529-2.c" } */
getline ()
{
}
/* { dg-do compile } */
extern __inline
getline ()
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment