aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.cc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2022-12-10 11:31:26 +0000
committerIain Sandoe <iain@sandoe.co.uk>2022-12-20 19:31:47 +0000
commita6504f13a0509f3937bdcdf63bf76bed7d880b72 (patch)
tree164d61bea4ad68da6ac0ba0308f8ed39a0220440 /gcc/tree.cc
parent49b6b7ac3314843466395c4a194aa178c80e64f5 (diff)
downloadgcc-a6504f13a0509f3937bdcdf63bf76bed7d880b72.zip
gcc-a6504f13a0509f3937bdcdf63bf76bed7d880b72.tar.gz
gcc-a6504f13a0509f3937bdcdf63bf76bed7d880b72.tar.bz2
coroutines: Accept 'extern "C"' coroutines.
'extern "C"' coroutines are permitted by the standard and expected to work (although constructing useful cases could be challenging). In order to permit this we need to arrange for the outlined helper functions to be named properly, even when no mangling is required. To do this, we append the actor and destroy suffixes in all cases. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/cp/ChangeLog: * mangle.cc (write_mangled_name): Append the helper function suffixes here... (write_encoding): ... rather than here. gcc/testsuite/ChangeLog: * g++.dg/coroutines/torture/extern-c-coroutine.C: New test.
Diffstat (limited to 'gcc/tree.cc')
0 files changed, 0 insertions, 0 deletions