c++: Fix coroutines.cc build for nvptx-none target
authorJakub Jelinek <jakub@redhat.com>
Sat, 18 Jan 2020 18:22:21 +0000 (19:22 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 18 Jan 2020 18:22:21 +0000 (19:22 +0100)
commitdba33cb727d4ebb7498fbd1168a9c08bc127999d
tree2b44167b5702d73a102089c884b5c043a4ac9be1
parent463f649944708eb2db148a9ca51ec86ea4c64fa8
c++: Fix coroutines.cc build for nvptx-none target

When building offloading cross-compiler from x86_64-linux to nvptx-none, the
build fails with:
../../gcc/cp/coroutines.cc: In function 'tree_node* get_fn_local_identifier(tree, const char*)':
../../gcc/cp/coroutines.cc:2255:12: error: expected ';' before 'char'
 2255 |   sep = "$"
      |            ^
      |            ;
......
 2262 |   char *an;
      |   ~~~~

2020-01-18  Jakub Jelinek  <jakub@redhat.com>

* coroutines.cc (get_fn_local_identifier): Fix NO_DOT_IN_LABEL
but non-NO_DOLLAR_IN_LABEL case build.
gcc/cp/ChangeLog
gcc/cp/coroutines.cc