nvptx.c (nvptx_name_replacement): Move earlier.
authorNathan Sidwell <nathan@acm.org>
Mon, 30 Nov 2015 14:44:48 +0000 (14:44 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 30 Nov 2015 14:44:48 +0000 (14:44 +0000)
commitb699adcc9eec16b7856635658d12518b45ef0d3b
treea2350bda8fe6ea2aa1ac44c2acaeeab4141a1349
parent0ef5fbc1f4b4e34e4b084f5b59b0885bfa3300fb
nvptx.c (nvptx_name_replacement): Move earlier.

* config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
(write_one_arg): Reorder parms, add 'sep' param.
(nvptx_write_function_decl): Rename to ...
(write_fn_proto): ... here.  Do name replacement. Emit linaer
comment marker. Deal with both decls and defns. Simplify argument
formatting.
(write_function_decl_and_comment): Delete.
(write_func_decl_from_insn): Rename to ...
(write_fn_proto_from_insn): ... here.  Don't do name replacement.
(nvptx_record_fndecl): Call write_fn_proto.
(nvptx_record_libfunc): Call write_fn_proto_from_insn.
(nvptx_declare_function_name): Adjust for write_fn_proto changes.
(nvotx_output_call_insn): Call write_fn_prot_from_insn.

From-SVN: r231073
gcc/ChangeLog
gcc/config/nvptx/nvptx.c