]> git.ipfire.org Git - thirdparty/gcc.git/commit
final+varasm: Change return type of predicate functions from int to bool
authorUros Bizjak <ubizjak@gmail.com>
Wed, 28 Jun 2023 08:22:20 +0000 (10:22 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Wed, 28 Jun 2023 14:30:26 +0000 (16:30 +0200)
commit8719ab0d01d5a73767e34f88691c812db03e1449
tree1cc80ed4b07d7fc1f814eaa8e684b8d4801c256b
parent893883f2f8f56984209c6ed210ee992ff71a14b0
final+varasm: Change return type of predicate functions from int to bool

Also change some internal variables to bool and change return type of
compute_alignments to void.

gcc/ChangeLog:

* output.h (leaf_function_p): Change return type from int to bool.
(final_forward_branch_p): Ditto.
(only_leaf_regs_used): Ditto.
(maybe_assemble_visibility): Ditto.
* varasm.h (supports_one_only): Ditto.
* rtl.h (compute_alignments): Change return type from int to void.
* final.cc (app_on): Change return type from int to bool.
(compute_alignments): Change return type from int to void
and adjust function body accordingly.
(shorten_branches):  Change "something_changed" variable
type from int to bool.
(leaf_function_p):  Change return type from int to bool
and adjust function body accordingly.
(final_forward_branch_p): Ditto.
(only_leaf_regs_used): Ditto.
* varasm.cc (contains_pointers_p): Change return type from
int to bool and adjust function body accordingly.
(compare_constant): Ditto.
(maybe_assemble_visibility): Ditto.
(supports_one_only): Ditto.
gcc/final.cc
gcc/output.h
gcc/rtl.h
gcc/varasm.cc
gcc/varasm.h