addition for egcs 1.1.1

Florian La Roche florian@suse.de
Tue Sep 29 13:41:00 GMT 1998


> I have sent in a patch several times before. The last one is
> 
> http://www.cygnus.com/ml/egcs-patches/1998-Jul/0590.html
> 
> Please let me know it does generate correct code for you.
> I will include it in my egcs binaries for Linux.

Alexandre Oliva <oliva@dcc.unicamp.br> emailed that the current version
should be ok. A diff between egcs 1.1 and egcs-current shows the following
change which seems to be doing the same as H.J. Lu suggested:

--- ../../../egcs-current/gcc/reg-stack.c       Sat Sep 12 05:04:45 1998
+++ ../reg-stack.c      Tue Jun  9 06:45:25 1998
@@ -309,13 +309,6 @@
   struct stack_def temp_stack;
   int top;

-  /* If there is only a single register on the stack, then the stack is
-     already in increasing order and no reorganization is needed.
-
-     Similarly if the stack is empty.  */
-  if (regstack->top <= 0)
-    return;
-
   temp_stack.reg_set = regstack->reg_set;

   for (top = temp_stack.top = regstack->top; top >= 0; top--)


So I hope this will be part of egcs 1.1.1.

Thanks to H.J. Lu,

Florian La Roche




More information about the Gcc-bugs mailing list