Commit 00e52418 by Nathan Sidwell Committed by Nathan Sidwell

nvptx-protos.h (nvptx_record_needed_decl): Don't declaree.

	* config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
	declaree.
	* config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
	(nvptx_record_fndecl): Don't return value, remove force
	argyment. Require fndecl.
	(nvptx_record_libfunc): New.
	(nvptx_record_needed_decl): Deteermine how to record decl here.
	(nvptx_maybe_record_fnsym): New.
	(nvptx_expand_call): Don't record libfuncs here,
	(nvptx_maybe_convert_symbolic_operand): Use
	nvptx_maye_record_fnsym.
	(nvptx_assemble_integer): Reimplement with single switch.
	(nvptx_output_call_insn): Register libfuncs here.
	(nvptx_file_end): Adjust  nvptx_record_fndecl call.
	* config/nvptx/nvptx.md (expand_movdi): Don't call
	nvptx_record_needed_decl.

From-SVN: r231013
parent f574fc3a
2015-11-27 Nathan Sidwell <nathan@acm.org>
* config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
declaree.
* config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
(nvptx_record_fndecl): Don't return value, remove force
argyment. Require fndecl.
(nvptx_record_libfunc): New.
(nvptx_record_needed_decl): Deteermine how to record decl here.
(nvptx_maybe_record_fnsym): New.
(nvptx_expand_call): Don't record libfuncs here,
(nvptx_maybe_convert_symbolic_operand): Use
nvptx_maye_record_fnsym.
(nvptx_assemble_integer): Reimplement with single switch.
(nvptx_output_call_insn): Register libfuncs here.
(nvptx_file_end): Adjust nvptx_record_fndecl call.
* config/nvptx/nvptx.md (expand_movdi): Don't call
nvptx_record_needed_decl.
2015-11-27 Richard Biener <rguenther@suse.de> 2015-11-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/68553 PR tree-optimization/68553
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
extern void nvptx_declare_function_name (FILE *, const char *, const_tree decl); extern void nvptx_declare_function_name (FILE *, const char *, const_tree decl);
extern void nvptx_declare_object_name (FILE *file, const char *name, extern void nvptx_declare_object_name (FILE *file, const char *name,
const_tree decl); const_tree decl);
extern void nvptx_record_needed_fndecl (tree decl);
extern void nvptx_function_end (FILE *); extern void nvptx_function_end (FILE *);
extern void nvptx_output_skip (FILE *, unsigned HOST_WIDE_INT); extern void nvptx_output_skip (FILE *, unsigned HOST_WIDE_INT);
extern void nvptx_output_ascii (FILE *, const char *, unsigned HOST_WIDE_INT); extern void nvptx_output_ascii (FILE *, const char *, unsigned HOST_WIDE_INT);
......
...@@ -391,8 +391,6 @@ ...@@ -391,8 +391,6 @@
emit_move_insn (operands[0], tmp); emit_move_insn (operands[0], tmp);
DONE; DONE;
} }
if (GET_CODE (operands[1]) == SYMBOL_REF)
nvptx_record_needed_fndecl (SYMBOL_REF_DECL (operands[1]));
}) })
(define_insn "highpartscsf2" (define_insn "highpartscsf2"
......
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