]> git.ipfire.org Git - thirdparty/gcc.git/commit
calls: Change return type of predicate function from int to bool
authorUros Bizjak <ubizjak@gmail.com>
Tue, 20 Jun 2023 17:42:21 +0000 (19:42 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 20 Jun 2023 17:44:14 +0000 (19:44 +0200)
commit4c7d264eee5084c15ace9c714987892e138ead14
tree4df41b898ab9068a8d30023c26f6fecdde809e91
parentefecb298d880cda20f8d7bea2d7b500a9752ce56
calls: Change return type of predicate function from int to bool

Also change some internal variables and some function arguments to bool.

gcc/ChangeLog:

* calls.h (setjmp_call_p): Change return type from int to bool.
* calls.cc (struct arg_data): Change "pass_on_stack" to bool.
(store_one_arg): Change return type from int to bool
and adjust function body accordingly.  Change "sibcall_failure"
variable to bool.
(finalize_must_preallocate): Ditto.  Change *must_preallocate pointer
argument  to bool.  Change "partial_seen" variable to bool.
(load_register_parameters):  Change *sibcall_failure
pointer argument to bool.
(check_sibcall_argument_overlap_1): Change return type from int to bool
and adjust function body accordingly.
(check_sibcall_argument_overlap):  Ditto.  Change
"mark_stored_args_map" argument to bool.
(emit_call_1): Change "already_popped" variable to bool.
(setjmp_call_p): Change return type from int to bool
and adjust function body accordingly.
(initialize_argument_information): Change *must_preallocate
pointer argument to bool.
(expand_call): Change "pcc_struct_value", "must_preallocate"
and "sibcall_failure" variables to bool.
(emit_library_call_value_1): Change "pcc_struct_value"
variable to bool.
gcc/calls.cc
gcc/calls.h