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
+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.
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;
+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
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-combine" } */
+/* { dg-additional-sources "pr31529-2.c" } */
+
+getline ()
+{
+}
--- /dev/null
+/* { dg-do compile } */
+
+extern __inline
+getline ()
+{
+}