stack layout code for c4x

Jeffrey A Law law@cygnus.com
Mon Oct 5 00:49:00 GMT 1998


  In message < 199810041544.QAA10332@htbrug.net.HCC.nl >you write:
  > 1998-10-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
  > 	
  > 	* expr.c (push_block) fix stack layout code for c4x.
  > 
  > --- expr.c.org	Sat Oct  3 21:04:40 1998
  > +++ expr.c	Sun Oct  4 14:26:27 1998
  > @@ -2598,7 +2598,10 @@ push_block (size, extra, below)
  >        anti_adjust_stack (temp);
  >      }
  >  
  > -#ifdef STACK_GROWS_DOWNWARD
  > +#if defined (STACK_GROWS_DOWNWARD) \
  > +    || (!defined (STACK_GROWS_DOWNWARD) \
  > +	&& defined (ARGS_GROW_DOWNWARD) \
  > +	&& !defined (PUSH_ROUNDING))
  >    temp = virtual_outgoing_args_rtx;
  >    if (extra != 0 && below)
  >      temp = plus_constant (temp, extra);
I'm not sure you're fixing this in the right place.  Regardless, you need to
explain this in more depth.  Enough that I (not knowing hte c4x) can understand
the problem and your solution.
jeff




More information about the Gcc-patches mailing list