Patchwork [alpha] : Fix recent bootstrap breakage

login
register
mail settings
Submitter Uros Bizjak
Date Oct. 10, 2010, 12:23 p.m.
Message ID <AANLkTim_qE1DoQyT__b_S7gtMbcVvA_H6x-hxrdWNR+E@mail.gmail.com>
Download mbox | patch
Permalink /patch/67349/
State New
Headers show

Comments

Uros Bizjak - Oct. 10, 2010, 12:23 p.m.
Hello!

2010-10-10  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
	to cum struct in the call to function_arg_advance.
	(alpha_function_arg_advance): Mark named as unused.

Tested on alphaev68-pc-linux-gnu, committed to mainline.

Uros.

Patch

Index: alpha.c
===================================================================
--- alpha.c	(revision 165234)
+++ alpha.c	(working copy)
@@ -5697,7 +5697,7 @@  alpha_function_arg (CUMULATIVE_ARGS *cum
 
 static void
 alpha_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode,
-			    const_tree type, bool named)
+			    const_tree type, bool named ATTRIBUTE_UNUSED)
 {
   bool onstack = targetm.calls.must_pass_in_stack (mode, type);
   int increment = onstack ? 6 : ALPHA_ARG_SIZE (mode, type, named);
@@ -6138,7 +6138,7 @@  alpha_setup_incoming_varargs (CUMULATIVE
   CUMULATIVE_ARGS cum = *pcum;
 
   /* Skip the current argument.  */
-  targetm.calls.function_arg_advance (cum, mode, type, true);
+  targetm.calls.function_arg_advance (&cum, mode, type, true);
 
 #if TARGET_ABI_UNICOSMK
   /* On Unicos/Mk, the standard subroutine __T3E_MISMATCH stores all register