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
This commit is contained in:
parent
8b1eb9ae80
commit
b86b3ea354
5 changed files with 28 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
PR c++/34829
|
||||
|
|
7
gcc/testsuite/gcc.dg/pr31529-1.c
Normal file
7
gcc/testsuite/gcc.dg/pr31529-1.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-combine" } */
|
||||
/* { dg-additional-sources "pr31529-2.c" } */
|
||||
|
||||
getline ()
|
||||
{
|
||||
}
|
6
gcc/testsuite/gcc.dg/pr31529-2.c
Normal file
6
gcc/testsuite/gcc.dg/pr31529-2.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* { dg-do compile } */
|
||||
|
||||
extern __inline
|
||||
getline ()
|
||||
{
|
||||
}
|
Loading…
Add table
Reference in a new issue