From e053f7109f6731117e3f21c4fb7251e4d40f58b9 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sun, 11 Jun 2017 21:54:00 +0000 Subject: [PATCH] Disable constant pool for nvptx 2017-06-11 Tom de Vries PR target/79939 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function. Return true. (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to nvptx_cannot_force_const_mem. From-SVN: r249106 --- gcc/ChangeLog | 8 ++++++++ gcc/config/nvptx/nvptx.c | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c3bd0402b25..192e8698f4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-06-11 Tom de Vries + + PR target/79939 + * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function. + Return true. + (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to + nvptx_cannot_force_const_mem. + 2017-06-10 Jan Hubicka * opts.c (finish_options): Move test for flag_split_stack after diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 2eb55700247..daeec2733ea 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -5328,6 +5328,13 @@ nvptx_goacc_reduction (gcall *call) } } +static bool +nvptx_cannot_force_const_mem (machine_mode mode ATTRIBUTE_UNUSED, + rtx x ATTRIBUTE_UNUSED) +{ + return true; +} + #undef TARGET_OPTION_OVERRIDE #define TARGET_OPTION_OVERRIDE nvptx_option_override @@ -5442,6 +5449,9 @@ nvptx_goacc_reduction (gcall *call) #undef TARGET_GOACC_REDUCTION #define TARGET_GOACC_REDUCTION nvptx_goacc_reduction +#undef TARGET_CANNOT_FORCE_CONST_MEM +#define TARGET_CANNOT_FORCE_CONST_MEM nvptx_cannot_force_const_mem + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-nvptx.h" -- 2.30.2