]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/nvptx/nvptx.c
nvptx.c (decl_chunk_size, [...]): Replace with ...
authorNathan Sidwell <nathan@acm.org>
Tue, 8 Dec 2015 21:06:42 +0000 (21:06 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 8 Dec 2015 21:06:42 +0000 (21:06 +0000)
commit4d5438cd3cc48733f76f65aaad34475c06468886
tree3d11ba1bdd590dbdd7d67612073526bcf864f0da
parent41c60c6c75356bfe5e4ce11184b4bf62a6a86132
nvptx.c (decl_chunk_size, [...]): Replace with ...

gcc/
* config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
decl_offset, init_part, object_size, object_finished): Replace
with ...
(struct init_frag): ... this new struct variable.
(begin_decl_field, output_decl_chunk): Replace with ...
(output_init_frag): ... this new function.
(nvptx_assemble_value): Reimplement.
(nvptx_assemble_integer, nvptx_output_skip): Adjust.
(nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
(nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.

gcc/testsuite/
* gcc.target/nvptx/trailing-init.c: New.

From-SVN: r231426
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nvptx/trailing-init.c [new file with mode: 0644]