]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/nds32/nds32.c
Use function_arg_info for TARGET_FUNCTION_ARG_ADVANCE
[thirdparty/gcc.git] / gcc / config / nds32 / nds32.c
index 6f7b4758e5af0b462d304b5c891130d95cdc59b8..3fd4cc8adebc1e23670cb35cd91bc12813d61a1b 100644 (file)
@@ -2008,12 +2008,14 @@ nds32_arg_partial_bytes (cumulative_args_t ca, const function_arg_info &arg)
 }
 
 static void
-nds32_function_arg_advance (cumulative_args_t ca, machine_mode mode,
-                           const_tree type, bool named)
+nds32_function_arg_advance (cumulative_args_t ca,
+                           const function_arg_info &arg)
 {
   CUMULATIVE_ARGS *cum = get_cumulative_args (ca);
+  tree type = arg.type;
+  machine_mode mode = arg.mode;
 
-  if (named)
+  if (arg.named)
     {
       /* We need to further check TYPE and MODE so that we can determine
         which kind of register we shall advance.  */