This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: stack layout code for c4x
- To: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Subject: Re: stack layout code for c4x
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 05 Oct 1998 00:55:56 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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