This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PTX] simplify arg advance
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 1 Dec 2015 11:59:07 -0500
- Subject: [PTX] simplify arg advance
- Authentication-results: sourceware.org; auth=none
arg_advance doesn't need to consider TImode. Those are always passed by reference.
nathan
2015-12-01 Nathan Sidwell <nathan@acm.org>
* config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
consider mode.
Index: config/nvptx/nvptx.c
===================================================================
--- config/nvptx/nvptx.c (revision 231120)
+++ config/nvptx/nvptx.c (working copy)
@@ -975,15 +975,13 @@ nvptx_function_incoming_arg (cumulative_
/* Implement TARGET_FUNCTION_ARG_ADVANCE. */
static void
-nvptx_function_arg_advance (cumulative_args_t cum_v, machine_mode mode,
- const_tree type ATTRIBUTE_UNUSED,
- bool named ATTRIBUTE_UNUSED)
+nvptx_function_arg_advance (cumulative_args_t cum_v,
+ machine_mode ARG_UNUSED (mode),
+ const_tree ARG_UNUSED (type),
+ bool ARG_UNUSED (named))
{
CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v);
- if (mode == TImode)
- cum->count += 2;
- else
- cum->count++;
+ cum->count++;
}
/* Handle the TARGET_STRICT_ARGUMENT_NAMING target hook.