Disable constant pool for nvptx
authorTom de Vries <tom@codesourcery.com>
Sun, 11 Jun 2017 21:54:00 +0000 (21:54 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sun, 11 Jun 2017 21:54:00 +0000 (21:54 +0000)
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

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

index c3bd0402b25c387432235c70ab25d7ca75d45f97..192e8698f4d9cc60fc3e7c9271484ee7eff35dc6 100644 (file)
@@ -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
index 2eb5570024720d79ada7548798f5906f60a8f8f4..daeec2733eada76f840bb8b5e88fdf4db75a5256 100644 (file)
@@ -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"