This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]