aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2019-03-25 12:22:47 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2019-03-25 12:22:47 +0000
commitd03f6e7bf321767f80c8474fb5aa8c60226bf445 (patch)
tree972bced8a969cede04916e0f2d378885437d927f /gcc/cp/lambda.c
parentc0eb90b5db85f59f031a827755a978772072f44d (diff)
downloadgcc-d03f6e7bf321767f80c8474fb5aa8c60226bf445.zip
gcc-d03f6e7bf321767f80c8474fb5aa8c60226bf445.tar.gz
gcc-d03f6e7bf321767f80c8474fb5aa8c60226bf445.tar.bz2
[C++] compiler incompatibility with lambdas
https://gcc.gnu.org/ml/gcc-patches/2019-03/msg00982.html * lambda.c (maybe_add_lambda_conv_op): Don't add to comdat group. * g++.dg/abi/lambda-static-1.C: New. From-SVN: r269915
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index 3e17676..9366418 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -1252,12 +1252,6 @@ maybe_add_lambda_conv_op (tree type)
start_preparsed_function (statfn, NULL_TREE,
SF_PRE_PARSED | SF_INCLASS_INLINE);
- if (DECL_ONE_ONLY (statfn))
- {
- /* Put the thunk in the same comdat group as the call op. */
- cgraph_node::get_create (statfn)->add_to_same_comdat_group
- (cgraph_node::get_create (callop));
- }
tree body = begin_function_body ();
tree compound_stmt = begin_compound_stmt (0);
if (!generic_lambda_p)