nvptx.c (nvptx_assemble_undefined_decl): Reject undefined weak.
authorNathan Sidwell <nathan@gcc.gnu.org>
Wed, 1 Jun 2016 13:41:19 +0000 (13:41 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 1 Jun 2016 13:41:19 +0000 (13:41 +0000)
commit721547cd0dd19a03a9e9405cfdbd6d0870eaaf68
tree0270e63a4aa754558715246d21d96aae3d490878
parentfa2c9034583b7fe6300e547dc67792e4eb440f48
nvptx.c (nvptx_assemble_undefined_decl): Reject undefined weak.

* config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
undefined weak.

testsuite/
* c-c++-common/torture/pr57945.c: Add expected PTX error.
* gcc.target/nvptx/weak.c: New.

From-SVN: r236990
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr57945.c
gcc/testsuite/gcc.target/nvptx/weak.c [new file with mode: 0644]