This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] reg-stack.c: Fix PR middle-end/26684.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 14 Mar 2006 12:47:31 -0800
- Subject: [patch] reg-stack.c: Fix PR middle-end/26684.
Hi,
Attached is a patch to fix a bootstrap problem experienced on non-x86
platforms.
Committed as obvious.
Kazu Hirata
2006-03-14 Kazu Hirata <kazu@codesourcery.com>
PR middle-end/26684
* reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
STACK_REGS.
Index: reg-stack.c
===================================================================
--- reg-stack.c (revision 112060)
+++ reg-stack.c (working copy)
@@ -177,6 +177,8 @@
DEF_VEC_I(char);
DEF_VEC_ALLOC_I(char,heap);
+#ifdef STACK_REGS
+
/* We use this array to cache info about insns, because otherwise we
spend too much time in stack_regs_mentioned_p.
@@ -185,8 +187,6 @@ DEF_VEC_ALLOC_I(char,heap);
stack registers. */
static VEC(char,heap) *stack_regs_mentioned_data;
-#ifdef STACK_REGS
-
#define REG_STACK_SIZE (LAST_STACK_REG - FIRST_STACK_REG + 1)
/* This is the basic stack record. TOP is an index into REG[] such