diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-06-11 21:54:00 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-06-11 21:54:00 +0000 |
commit | e053f7109f6731117e3f21c4fb7251e4d40f58b9 (patch) | |
tree | efd1badf17cdbb891baa84eca3398274d6188ace | |
parent | 227b76c3b4ef63b1226f4e584dbdf42c9e56ff9f (diff) | |
download | gcc-e053f7109f6731117e3f21c4fb7251e4d40f58b9.zip gcc-e053f7109f6731117e3f21c4fb7251e4d40f58b9.tar.gz gcc-e053f7109f6731117e3f21c4fb7251e4d40f58b9.tar.bz2 |
Disable constant pool for nvptx
2017-06-11 Tom de Vries <tom@codesourcery.com>
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
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c3bd040..192e869 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-06-11 Tom de Vries <tom@codesourcery.com> + + 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 <hubicka@ucw.cz> * 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 2eb5570..daeec27 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" |