Commit e053f710 by Tom de Vries Committed by Tom de Vries

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
parent 227b76c3
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
......
......@@ -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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment