This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/12313] [tree-ssa] Bootstrap failure due to missing label
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2003 17:20:04 -0000
- Subject: [Bug bootstrap/12313] [tree-ssa] Bootstrap failure due to missing label
- References: <20030917083240.12313.schwab@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12313
------- Additional Comments From schwab at suse dot de 2003-10-12 17:20 -------
Applying this patch to revert only one part of the change will also fix the
bug:
ndex: tree-simple.c
===================================================================
RCS file: /backup/gcc-cvs/gcc/gcc/Attic/tree-simple.c,v
retrieving revision 1.1.4.57
diff -u -p -a -u -p -a -r1.1.4.57 tree-simple.c
--- tree-simple.c 18 Sep 2003 00:19:27 -0000 1.1.4.57
+++ tree-simple.c 12 Oct 2003 17:15:30 -0000
@@ -285,7 +285,7 @@
return 1;
if (TREE_CODE (t) == ADDR_EXPR
- && DECL_P (TREE_OPERAND (t, 0))
+ && TREE_CODE (TREE_OPERAND (t, 0)) == FUNCTION_DECL
&& (TREE_STATIC (TREE_OPERAND (t, 0))
|| (DECL_EXTERNAL (TREE_OPERAND (t, 0))
&& !DECL_WEAK (TREE_OPERAND (t, 0)))))
@@ -449,7 +449,8 @@
return 1;
/* Allow the address of a decl. */
- if (TREE_CODE (t) == ADDR_EXPR && DECL_P (TREE_OPERAND (t, 0)))
+ if (TREE_CODE (t) == ADDR_EXPR
+ && TREE_CODE (TREE_OPERAND (t, 0)) == FUNCTION_DECL)
return 1;
/* Allow address of vla, so that we do not replace it in the call_expr of