binutils-gdb/include/opcode
Alan Modra 63b4cc53dc TRUE/FALSE simplification
There is really no need to write code like "foo != 0 ? TRUE : FALSE"
unless we had stupidly defined FALSE as something other than 0 or TRUE
as something other than 1.  The simpler "foo != 0" does just as well.
Similarly "(condition == TRUE)" or "(condition == FALSE) can be
simplified to "(condition)" and "(!condition)" respectively.

I'll note that there is reason to use "integer_expression != 0" when
assigning a bfd_boolean rather than the simpler "integer_expression",
if you expect the variable to have 0 or 1 value.  It's probably even a
good idea to not rely on implicit conversion if bfd_boolean were _Bool.

bfd/
	* aoutx.h (aout_link_write_symbols): Don't cast boolean expression
	to bfd_boolean.
	* elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
	against FALSE.
	* elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
	(is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
	(is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
	(is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
	* elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
	* elf32-nds32.c (insert_nds32_elf_blank): Likewise.
	* elf32-rx.c (rx_set_section_contents): Likewise.
	* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
	* mach-o.c (bfd_mach_o_read_command): Likewise.
	* targets.c (bfd_get_target_info): Likewise.
binutils/
	* dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
	* dwarf.c (read_and_display_attr_value): Likewise.
	(display_debug_str_offsets): Likewise.
	* objdump.c (dump_bfd): Likewise.
	* readelf.c (dump_section_as_strings): Likewise.
	(dump_section_as_bytes): Likewise.
gas/
	* atof-generic.c (FALSE, TRUE): Don't define.
	* config/obj-elf.h (FALSE, TRUE): Don't define.
	* config/obj-som.h (FALSE, TRUE): Don't define.
	* config/tc-hppa.h (FALSE, TRUE): Don't define.
	* config/tc-pdp11.c (FALSE, TRUE): Don't define.
	* config/tc-iq2000.h (obj_fix_adjustable): Delete.
	* config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
	* config/tc-mt.h (obj_fix_adjustable): Delete.
	* config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
	* config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
	(relaxable_flag, relaxable_operand, assemble_insn): Likewise.
	(tokenize_extregister): Likewise.
	* config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
	(parse_operands_op, parse_operands, md_assemble): Likewise.
	* config/tc-d10v.c (build_insn): Likewise.
	* config/tc-score.c (s3_gen_insn_frag): Likewise.
	* config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
	* config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
	* config/tc-z80.c (emit_byte): Likewise.
include/
	* opcode/aarch64.h (alias_opcode_p): Simplify boolean expression.
	(opcode_has_alias, pseudo_opcode_p, optional_operand_p): Likewise.
	(opcode_has_special_coder): Likewise.
ld/
	* emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
	boolean expression.
	* lexsup.c (parse_args): Likewise.
	* pe-dll.c (pe_dll_id_target): Likewise.
opcodes/
	* aarch64-opc.c (vector_qualifier_p): Simplify boolean expression.
	(fp_qualifier_p, get_data_pattern): Likewise.
	(aarch64_get_operand_modifier_from_value): Likewise.
	(aarch64_extend_operator_p, aarch64_shift_operator_p): Likewise.
	(operand_variant_qualifier_p): Likewise.
	(qualifier_value_in_range_constraint_p): Likewise.
	(aarch64_get_qualifier_esize): Likewise.
	(aarch64_get_qualifier_nelem): Likewise.
	(aarch64_get_qualifier_standard_value): Likewise.
	(get_lower_bound, get_upper_bound): Likewise.
	(aarch64_find_best_match, match_operands_qualifier): Likewise.
	(aarch64_print_operand): Likewise.
	* aarch64-opc.h (operand_has_inserter, operand_has_extractor): Likewise.
	(operand_need_sign_extension, operand_need_shift_by_two): Likewise.
	(operand_need_shift_by_four, operand_maybe_stack_pointer): Likewise.
	* arm-dis.c (print_insn_mve, print_insn_thumb32): Likewise.
	* tic6x-dis.c (tic6x_check_fetch_packet_header): Likewise.
	(print_insn_tic6x): Likewise.
2021-03-29 11:22:22 +10:30
..
aarch64.h TRUE/FALSE simplification 2021-03-29 11:22:22 +10:30
alpha.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
arc-attrs.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
arc-func.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
arc.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
arm.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
avr.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
bfin.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
cgen.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ChangeLog-0415
ChangeLog-9103
convex.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
cr16.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
cris.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
crx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
csky.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
d10v.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
d30v.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
dlx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ft32.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
h8300.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
hppa.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
i386.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ia64.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
m68hc11.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
m68k.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
metag.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
mips.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
mmix.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
mn10200.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
mn10300.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
moxie.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
msp430-decode.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
msp430.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
nds32.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
nfp.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
nios2.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
nios2r1.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
nios2r2.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
np1.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ns32k.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
pdp11.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
pj.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
pn.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ppc.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
pru.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
pyr.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
riscv-opc.h RISC-V : Support bitmanip-0.93 ZBA/ZBB/ZBC instructions 2021-03-16 14:38:19 +08:00
riscv.h RISC-V : Support bitmanip-0.93 ZBA/ZBB/ZBC instructions 2021-03-16 14:38:19 +08:00
rl78.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
rx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
s12z.h
s390.h IBM Z: Implement instruction set extensions 2021-02-15 14:32:17 +01:00
score-datadep.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
score-inst.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
sparc.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
spu-insns.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
spu.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic4x.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic6x-control-registers.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic6x-insn-formats.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic6x-opcode-table.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic6x.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic30.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tic54x.h opcodes: tic54x: namespace exported variables 2021-02-08 18:26:08 -05:00
tilegx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tilepro.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
v850.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
vax.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
visium.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
wasm.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
xgate.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30