diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2017-10-06 16:26:00 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2017-10-06 16:26:00 +0000 |
commit | 90e3c064aa9d5812f597ee1865ec169bd86436cc (patch) | |
tree | 68c98db55f431935c3f79a99bcab0a4451954666 /gcc/cp/lambda.c | |
parent | 9db84ecedae899c04ac693d970120a065c58350e (diff) | |
download | gcc-90e3c064aa9d5812f597ee1865ec169bd86436cc.zip gcc-90e3c064aa9d5812f597ee1865ec169bd86436cc.tar.gz gcc-90e3c064aa9d5812f597ee1865ec169bd86436cc.tar.bz2 |
re PR c++/47791 (finish function is using literal value instead of a #defined one)
2017-10-06 Paolo Carlini <paolo.carlini@oracle>
PR c++/47791
* decl.c (finish_function): Take a bool intead of an int; adjust.
* cp-tree.h (finish_function): Adjust declaration.
* decl2.c (generate_tls_wrapper, finish_objects,
finish_static_storage_duration_function): Adjust calls.
* lambda.c (maybe_add_lambda_conv_op, finish_lambda_function):
Likewise.
* method.c (synthesize_method): Likewise.
* optimize.c (maybe_thunk_body, maybe_clone_body): Likewise.
* pt.c (instantiate_decl): Likewise.
* parser.c (cp_parser_function_definition_after_declarator,
cp_parser_late_parsing_for_member, cp_parser_omp_declare_reduction):
Likewise.
(cp_parser_ctor_initializer_opt,
cp_parser_ctor_initializer_opt_and_function_body,
cp_parser_function_try_block,
cp_parser_function_definition_after_declarator,
cp_parser_function_transaction): Return void; adjust declarations.
From-SVN: r253497
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r-- | gcc/cp/lambda.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index 66d510e..78bd897 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -1223,7 +1223,7 @@ maybe_add_lambda_conv_op (tree type) finish_compound_stmt (compound_stmt); finish_function_body (body); - fn = finish_function (/*inline*/2); + fn = finish_function (/*inline_p=*/true); if (!generic_lambda_p) expand_or_defer_fn (fn); @@ -1241,7 +1241,7 @@ maybe_add_lambda_conv_op (tree type) finish_compound_stmt (compound_stmt); finish_function_body (body); - fn = finish_function (/*inline*/2); + fn = finish_function (/*inline_p=*/true); if (!generic_lambda_p) expand_or_defer_fn (fn); @@ -1362,7 +1362,7 @@ finish_lambda_function (tree body) finish_function_body (body); /* Finish the function and generate code for it if necessary. */ - tree fn = finish_function (/*inline*/2); + tree fn = finish_function (/*inline_p=*/true); /* Only expand if the call op is not a template. */ if (!DECL_TEMPLATE_INFO (fn)) |