This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix bootstrap failure in mainline
- From: Andi Kleen <ak at muc dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 11 Sep 2003 05:42:12 +0200
- Subject: [PATCH] Fix bootstrap failure in mainline
Without this patch mainline doesn't compile on i686/linux.
-Andi
2003-09-11 Andi Kleen <ak@muc.de>
* (inline_forbidden_p_1): cast fn to tree.
Index: gcc/tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.75
diff -u -u -r1.75 tree-inline.c
--- gcc/tree-inline.c 10 Sep 2003 23:45:04 -0000 1.75
+++ gcc/tree-inline.c 11 Sep 2003 03:40:16 -0000
@@ -893,7 +893,7 @@
using alloca is called in loop. In GCC present in SPEC2000 inlining
into schedule_block cause it to require 2GB of ram instead of 256MB. */
if (alloca_call_p (node)
- && !lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)))
+ && !lookup_attribute ("always_inline", DECL_ATTRIBUTES (((tree)fn))))
{
inline_forbidden_reason = "%Hfunction '%F' can never be inlined "
"because it uses alloca (override using "