]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
calls.c (expand_call): Take current_function_pretend_args_size into account when...
authorJ"orn Rennecke <joern.rennecke@superh.com>
Wed, 16 Oct 2002 18:15:54 +0000 (18:15 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Wed, 16 Oct 2002 18:15:54 +0000 (18:15 +0000)
        * calls.c (expand_call): Take current_function_pretend_args_size
        into account when setting argblock for sibcalls.

From-SVN: r58211

gcc/ChangeLog
gcc/calls.c

index c5ab70bb002673a962570bba5f897a0b19033f98..052f6aba668401ede5a50870dc75c2b2fb1f52f8 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * calls.c (expand_call): Take current_function_pretend_args_size
+       into account when setting argblock for sibcalls.
+
 Wed Oct 16 19:43:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        PR target/7396
index 449c933d212a56c55ef1c76cec848c37e4d4d36a..9a9dc24a353075a1c7ca3f8663042f18534beb62 100644 (file)
@@ -2708,6 +2708,12 @@ expand_call (exp, target, ignore)
       if (pass == 0)
        {
          argblock = virtual_incoming_args_rtx;
+         argblock
+#ifdef STACK_GROWS_DOWNWARD
+           = plus_constant (argblock, current_function_pretend_args_size);
+#else
+           = plus_constant (argblock, -current_function_pretend_args_size);
+#endif
          stored_args_map = sbitmap_alloc (args_size.constant);
          sbitmap_zero (stored_args_map);
        }