diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-07-18 18:46:46 +0200 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2023-07-18 18:47:50 +0200 |
commit | e9ba2ccf5b3f927fe6397a8eef23e2874a2edf05 (patch) | |
tree | 9d570e510c534e43e53559dbd36776e954ca5d72 /gcc/dwarf2asm.cc | |
parent | c11a3aedec2649d72d1b7a3a2bd909c5863eefa1 (diff) | |
download | gcc-e9ba2ccf5b3f927fe6397a8eef23e2874a2edf05.zip gcc-e9ba2ccf5b3f927fe6397a8eef23e2874a2edf05.tar.gz gcc-e9ba2ccf5b3f927fe6397a8eef23e2874a2edf05.tar.bz2 |
dwarf2: Change return type of predicate functions from int to bool
Also change some internal variables and function arguments from int to bool.
gcc/ChangeLog:
* dwarf2asm.cc: Change FALSE to false.
* dwarf2cfi.cc (execute_dwarf2_frame): Change return type to void.
* dwarf2out.cc (matches_main_base): Change return type from
int to bool. Change "last_match" variable to bool.
(dump_struct_debug): Change return type from int to bool.
Change "matches" and "result" function arguments to bool.
(is_pseudo_reg): Change return type from int to bool.
(is_tagged_type): Ditto.
(same_loc_p): Ditto.
(same_dw_val_p): Change return type from int to bool and adjust
function body accordingly.
(same_attr_p): Ditto.
(same_die_p): Ditto.
(is_type_die): Ditto.
(is_declaration_die): Ditto.
(should_move_die_to_comdat): Ditto.
(is_base_type): Ditto.
(is_based_loc): Ditto.
(local_scope_p): Ditto.
(class_scope_p): Ditto.
(class_or_namespace_scope_p): Ditto.
(is_tagged_type): Ditto.
(is_rust): Use void argument.
(is_nested_in_subprogram): Change return type from int to bool.
(contains_subprogram_definition): Ditto.
(gen_struct_or_union_type_die): Change "nested", "complete"
and "ns_decl" variables to bool.
(is_naming_typedef_decl): Change FALSE to false.
Diffstat (limited to 'gcc/dwarf2asm.cc')
-rw-r--r-- | gcc/dwarf2asm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dwarf2asm.cc b/gcc/dwarf2asm.cc index 65b95fe..ea3f398 100644 --- a/gcc/dwarf2asm.cc +++ b/gcc/dwarf2asm.cc @@ -52,7 +52,7 @@ dw2_assemble_integer (int size, rtx x) relocations usually result in assembler errors. Assume all such values are positive and emit the relocation only in the least significant half. */ - const char *op = integer_asm_op (DWARF2_ADDR_SIZE, FALSE); + const char *op = integer_asm_op (DWARF2_ADDR_SIZE, false); if (BYTES_BIG_ENDIAN) { if (op) @@ -92,7 +92,7 @@ dw2_assemble_integer (int size, rtx x) return; } - const char *op = integer_asm_op (size, FALSE); + const char *op = integer_asm_op (size, false); if (op) { @@ -142,7 +142,7 @@ dw2_asm_output_data (int size, unsigned HOST_WIDE_INT value, const char *comment, ...) { va_list ap; - const char *op = integer_asm_op (size, FALSE); + const char *op = integer_asm_op (size, false); va_start (ap, comment); |