fix pr 2930

Richard Henderson rth@twiddle.net
Thu Jun 20 16:24:00 GMT 2002


A typo/thinko in some code that is apparently never used.


r~


        * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.

Index: explow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/explow.c,v
retrieving revision 1.94
diff -u -p -r1.94 explow.c
--- explow.c	11 Jun 2002 12:21:53 -0000	1.94
+++ explow.c	20 Jun 2002 23:13:29 -0000
@@ -1473,9 +1473,9 @@ probe_stack_range (first, size)
   if (stack_check_libfunc != 0)
     {
       rtx addr = memory_address (QImode,
-				 gen_rtx (STACK_GROW_OP, Pmode,
-					  stack_pointer_rtx,
-					  plus_constant (size, first)));
+				 gen_rtx_fmt_ee (STACK_GROW_OP, Pmode,
+					         stack_pointer_rtx,
+					         plus_constant (size, first)));
 
 #ifdef POINTERS_EXTEND_UNSIGNED
       if (GET_MODE (addr) != ptr_mode)
@@ -1492,9 +1492,9 @@ probe_stack_range (first, size)
     {
       insn_operand_predicate_fn pred;
       rtx last_addr
-	= force_operand (gen_rtx_STACK_GROW_OP (Pmode,
-						stack_pointer_rtx,
-						plus_constant (size, first)),
+	= force_operand (gen_rtx_fmt_ee (STACK_GROW_OP, Pmode,
+					 stack_pointer_rtx,
+					 plus_constant (size, first)),
 			 NULL_RTX);
 
       pred = insn_data[(int) CODE_FOR_check_stack].operand[0].predicate;



More information about the Gcc-patches mailing list