From dda4a9099fbe2069541d37d7c301bdf46e9fde8f Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 1 Dec 2015 16:58:08 +0000 Subject: [PATCH] * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't consider mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231121 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/nvptx/nvptx.c | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e582c8aa656..94bde391bb3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-12-01 Nathan Sidwell + + * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't + consider mode. + 2015-12-01 Bill Schmidt * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 899c8566df2..052cb0d5bdb 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -975,15 +975,13 @@ nvptx_function_incoming_arg (cumulative_args_t cum_v, machine_mode mode, /* 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. -- 2.11.4.GIT