diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-01-18 19:22:21 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-01-18 19:22:21 +0100 |
commit | dba33cb727d4ebb7498fbd1168a9c08bc127999d (patch) | |
tree | 2b44167b5702d73a102089c884b5c043a4ac9be1 /gcc | |
parent | 463f649944708eb2db148a9ca51ec86ea4c64fa8 (diff) | |
download | gcc-dba33cb727d4ebb7498fbd1168a9c08bc127999d.zip gcc-dba33cb727d4ebb7498fbd1168a9c08bc127999d.tar.gz gcc-dba33cb727d4ebb7498fbd1168a9c08bc127999d.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/coroutines.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90665e1..177a1b5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +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. + 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> * Make-lang.in: Add coroutines.o. diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc index ad0e9ef..d3aacd7 100644 --- a/gcc/cp/coroutines.cc +++ b/gcc/cp/coroutines.cc @@ -2252,7 +2252,7 @@ get_fn_local_identifier (tree orig, const char *append) sep = "."; #else #ifndef NO_DOLLAR_IN_LABEL - sep = "$" + sep = "$"; #else sep = "_"; pfx = "__"; |