aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nvptx
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2015-12-01 16:58:08 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2015-12-01 16:58:08 +0000
commitac8560785fa3acc879722cfc1a8afd0b911880c6 (patch)
treebcf197600acd96afb75b38af647e9f0dbaefb67a /gcc/config/nvptx
parent0b2a137802f8b3a7d6350d20c96c9c3fcbafc305 (diff)
downloadgcc-ac8560785fa3acc879722cfc1a8afd0b911880c6.zip
gcc-ac8560785fa3acc879722cfc1a8afd0b911880c6.tar.gz
gcc-ac8560785fa3acc879722cfc1a8afd0b911880c6.tar.bz2
nvptx.c (nvptx_function_arg_advance): Don't consider mode.
* config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't consider mode. From-SVN: r231121
Diffstat (limited to 'gcc/config/nvptx')
-rw-r--r--gcc/config/nvptx/nvptx.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 899c856..052cb0d 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.