c++: Fix coroutines.cc build for nvptx-none target
diff mbox series

Message ID 20200118181139.GY10088@tucnak
State New
Headers show
Series
  • c++: Fix coroutines.cc build for nvptx-none target
Related show

Commit Message

Jakub Jelinek Jan. 18, 2020, 6:11 p.m. UTC
Hi!

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;
      |   ~~~~      

I'll commit the following fix as obvious if it builds successfully.

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.


	Jakub

Patch
diff mbox series

--- gcc/cp/coroutines.cc.jj	2020-01-18 13:47:09.318360691 +0100
+++ gcc/cp/coroutines.cc	2020-01-18 19:05:48.349119608 +0100
@@ -2252,7 +2252,7 @@  get_fn_local_identifier (tree orig, cons
   sep = ".";
 #else
 #ifndef NO_DOLLAR_IN_LABEL
-  sep = "$"
+  sep = "$";
 #else
   sep = "_";
   pfx = "__";