From 9251aec67de146e07fb76681ef51644bf6487cea Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 30 Oct 2015 22:30:20 +0000 Subject: [PATCH] nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused args. * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused args. (MOVE_MAX): Set to 8. Co-Authored-By: Nathan Sidwell From-SVN: r229610 --- gcc/ChangeLog | 7 +++++++ gcc/config/nvptx/nvptx.h | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4282cba11cd..a41ae5d55d2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-10-30 Jeff Law + Nathan Sidwell + + * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused + args. + (MOVE_MAX): Set to 8. + 2015-10-30 Cesar Philippidis * cgraph.c: Include context.h for offloading. diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index efab423522b..018b844d8e0 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -88,7 +88,7 @@ #define CALL_USED_REGISTERS \ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } -#define HARD_REGNO_NREGS(regno, mode) 1 +#define HARD_REGNO_NREGS(regno, mode) ((void)(regno), (void)(mode), 1) #define CANNOT_CHANGE_MODE_CLASS(M1, M2, CLS) ((CLS) == RETURN_REG) #define HARD_REGNO_MODE_OK(REG, MODE) nvptx_hard_regno_mode_ok (REG, MODE) @@ -356,7 +356,7 @@ struct GTY(()) machine_function #define FLOAT_STORE_FLAG_VALUE(MODE) REAL_VALUE_ATOF("1.0", (MODE)) #define CASE_VECTOR_MODE SImode -#define MOVE_MAX 4 +#define MOVE_MAX 8 #define MOVE_RATIO(SPEED) 4 #define TRULY_NOOP_TRUNCATION(outprec, inprec) 1 #define FUNCTION_MODE QImode -- 2.30.2