re PR target/85056 ([nvptx] wrong declaration of external arrays)
authorCesar Philippidis <cesar@codesourcery.com>
Tue, 27 Mar 2018 13:54:03 +0000 (06:54 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Tue, 27 Mar 2018 13:54:03 +0000 (06:54 -0700)
commit59d2d2383485fb0febdcab9f06bbb3526eeab106
treed39392e4fb207df80a67c4babc2179f58edb8f1e
parentb36306e9bc664cdbc2f65ecc33867cb7b6e896b3
re PR target/85056 ([nvptx] wrong declaration of external arrays)

PR target/85056

gcc/
* config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Add '[]' to
extern array declarations.

gcc/testsuite/
* testsuite/gcc.target/nvptx/pr85056.c: New test.
* testsuite/gcc.target/nvptx/pr85056a.c: New test.

From-SVN: r258885
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nvptx/pr85056.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/pr85056a.c [new file with mode: 0644]