nvptx.c (nvptx_function_arg_advance): Don't consider mode.
authorNathan Sidwell <nathan@acm.org>
Tue, 1 Dec 2015 16:58:08 +0000 (16:58 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 1 Dec 2015 16:58:08 +0000 (16:58 +0000)
* config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
consider mode.

From-SVN: r231121

gcc/ChangeLog
gcc/config/nvptx/nvptx.c

index e582c8aa65610dc118ee529277e8e44e04555f3f..94bde391bb3dcc6219c58439140d18026adaf8d8 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-01  Nathan Sidwell  <nathan@acm.org>
+
+       * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
+       consider mode.
+
 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
index 899c8566df23ee60e68cdfc29e781c6c6115ba6f..052cb0d5bdb27faa1602f1162687c8f061cf99f6 100644 (file)
@@ -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.