[nvptx] Fix handling of extern var with flexible array member
authorTom de Vries <tom@codesourcery.com>
Thu, 12 Apr 2018 07:17:29 +0000 (07:17 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 12 Apr 2018 07:17:29 +0000 (07:17 +0000)
commitbf3989207ee7c50926aa7ca28cf1e13983e809b5
tree07fd5d3643a5bc3e26dd57f2e185e4c4f6885fab
parent39c168bfda0657328496a9049317399ca0bf5a32
[nvptx] Fix handling of extern var with flexible array member

2018-04-12  Tom de Vries  <tom@codesourcery.com>

PR target/85296
* config/nvptx/nvptx.c (flexible_array_member_type_p): New function.
(nvptx_assemble_decl_begin): Add undefined param.  Declare undefined
array with flexible array member as array without given dimension.
(nvptx_assemble_undefined_decl): Set nvptx_assemble_decl_begin call
argument for undefined param to true.

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