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]

Re: Fix gcc.dg/builtin-apply2.c


Nathan Sidwell wrote:
2003-12-29 Nathan Sidwell <nathan@codesourcery.com>

	* builtins.c (expand_builtin_apply_args_1): Add pretend args size
	to the virtual incoming args pointer for downward stacks.
Of course, if helps if one doesn't typo the #define's name.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>

	* builtins.c (expand_builtin_apply_args_1): Fix typo in previous
	change.

Index: builtins.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/builtins.c,v
retrieving revision 1.260.4.2
diff -c -3 -p -r1.260.4.2 builtins.c
*** builtins.c	29 Dec 2003 18:39:18 -0000	1.260.4.2
--- builtins.c	30 Dec 2003 13:15:12 -0000
*************** expand_builtin_apply_args_1 (void)
*** 1126,1132 ****
  
    /* Save the arg pointer to the block.  */
    tem = copy_to_reg (virtual_incoming_args_rtx);
! #ifdef STACK_GROWS_DOWNWARDS
    /* We need the pointer as the caller actually passed them to us, not
       as we might have pretended they were passed.  */
    tem = plus_constant (tem, current_function_pretend_args_size);
--- 1126,1132 ----
  
    /* Save the arg pointer to the block.  */
    tem = copy_to_reg (virtual_incoming_args_rtx);
! #ifdef STACK_GROWS_DOWNWARD
    /* We need the pointer as the caller actually passed them to us, not
       as we might have pretended they were passed.  */
    tem = plus_constant (tem, current_function_pretend_args_size);

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