[PATCH v2] Apply lambda section attributes to static thunks

2024-12-15 Thread Campbell Suter
geLog: * g++.dg/ext/attr-section-lambda.C: New test. Signed-off-by: Campbell Suter --- gcc/cp/lambda.cc | 7 .../g++.dg/ext/attr-section-lambda.C | 42 +++ 2 files changed, 49 insertions(+) create mode 100644 gcc/testsuite/g++.d

Re: [PATCH] Apply lambda section attributes to static thunks

2024-12-13 Thread Campbell Suter
On 14/12/2024 04:34, Marek Polacek wrote: >> @@ -1376,6 +1377,13 @@ maybe_add_lambda_conv_op (tree type) >>if (generic_lambda_p) >> fn = add_inherited_template_parms (fn, DECL_TI_TEMPLATE (callop)); >> >> + if (lookup_attribute ("section", DECL_ATTRIBUTES (callop))) >> +{ >> +

[PATCH] Apply lambda section attributes to static thunks

2024-12-12 Thread Campbell Suter
geLog: * g++.dg/ext/attr-section-lambda.C: New test. Signed-off-by: Campbell Suter --- gcc/cp/lambda.cc | 8 .../g++.dg/ext/attr-section-lambda.C | 42 +++ 2 files changed, 50 insertions(+) create mode 100644 gcc/testsuite/g++.d