]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/iq2000/iq2000.c
Use function_arg_info for TARGET_MUST_PASS_IN_STACK
[thirdparty/gcc.git] / gcc / config / iq2000 / iq2000.c
index 80c63812878e5025115d7056f4222f1ba5aa2b8b..59c5132bc061d74774582c0bfd63fe0027520aa3 100644 (file)
@@ -2300,7 +2300,7 @@ iq2000_pass_by_reference (cumulative_args_t cum_v,
   /* We must pass by reference if we would be both passing in registers
      and the stack.  This is because any subsequent partial arg would be
      handled incorrectly in this case.  */
-  if (cum && targetm.calls.must_pass_in_stack (arg.mode, arg.type))
+  if (cum && targetm.calls.must_pass_in_stack (arg))
      {
        /* Don't pass the actual CUM to FUNCTION_ARG, because we would
          get double copies of any offsets generated for small structs