forked from Imagelibrary/binutils-gdb
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.
222 lines
6.2 KiB
Plaintext
222 lines
6.2 KiB
Plaintext
2021-03-29 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/aarch64.h (alias_opcode_p): Simplify boolean expression.
|
||
(opcode_has_alias, pseudo_opcode_p, optional_operand_p): Likewise.
|
||
(opcode_has_special_coder): Likewise.
|
||
|
||
2021-03-29 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/aarch64.h (aarch64_opcode_encode): Correct prototype.
|
||
|
||
2021-03-25 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
PR libctf/27628
|
||
* ctf-api.h: Fix some indentation.
|
||
(CTF_SET_STID): Always do an unsigned shift, even if STID is
|
||
signed.
|
||
|
||
2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf/common.h (EM_INTEL205): Renamed to ...
|
||
(EM_INTELGT): This.
|
||
|
||
2021-03-16 Nick Clifton <nickc@redhat.com>
|
||
|
||
* coff/internal.h (struct internal_auxent): Fix a couple of typos
|
||
in comment describing the x_fname field.
|
||
|
||
2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
|
||
|
||
* opcode/riscv-opc.h: Support zba, zbb and zbc extensions.
|
||
* opcode/riscv.h (riscv_insn_class): Add INSN_CLASS_ZB*.
|
||
|
||
2021-03-12 Frederic Cambus <fred@statdns.com>
|
||
|
||
* elf/common.h (NT_NETBSD_PAX, NT_NETBSD_PAX_MPROTECT)
|
||
(NT_NETBSD_PAX_NOMPROTECT, NT_NETBSD_PAX_GUARD, NT_NETBSD_PAX_NOGUARD)
|
||
(NT_NETBSD_PAX_ASLR, NT_NETBSD_PAX_NOASLR): Define.
|
||
|
||
2021-03-12 Clément Chigot <clement.chigot@atos.net>
|
||
|
||
* coff/internal.h (struct internal_aouthdr): Add new fields.
|
||
* coff/rs6000.h (AOUTHDRÃ): Add new fields.
|
||
* coff/rs6k64.h (struct external_filehdr): Likewise.
|
||
* coff/xcoff.h (_TDATA), _TBSS): New defines
|
||
(RS6K_AOUTHDR_TLS_LE, RS6K_AOUTHDR_RAS, RS6K_AOUTHDR_ALGNTDATA,
|
||
RS6K_AOUTHDR_SHR_SYMTAB, RS6K_AOUTHDR_FORK_POLICY,
|
||
RS6K_AOUTHDR_FORK_COR): New defines.
|
||
(XMC_TU): Removed.
|
||
(XMC_UL): New define.
|
||
|
||
2021-03-12 Clément Chigot <clement.chigot@atos.net>
|
||
|
||
* coff/xcoff.h (R_RTB): Remove.
|
||
(R_TRL): Fix value.
|
||
|
||
2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
|
||
Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* elf/common.h (NT_RISCV_CSR): Define.
|
||
|
||
2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
|
||
Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* elf/common.h (NT_GDB_TDESC): Define.
|
||
|
||
2021-03-03 Alan Modra <amodra@gmail.com>
|
||
|
||
* coff/internal.h: Delete obsolete relocation defines. Move used
|
||
relocation defines..
|
||
* coff/i386.h: ..to here..
|
||
* coff/ti.h: ..and here..
|
||
* coff/x86_64.h: ..and here..
|
||
* coff/z80.h: ..and here..
|
||
* coff/z8k.h: ..and here.
|
||
|
||
2021-03-02 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (CTF_LINK_SHARE_DUPLICATED): Note that this might
|
||
merely change how much deduplication is done.
|
||
|
||
2021-03-01 Alan Modra <amodra@gmail.com>
|
||
Fangrui Song <maskray@google.com>
|
||
|
||
* bfdlink.h (struct bfd_link_info): Add start_stop_gc.
|
||
|
||
2021-02-21 Alan Modra <amodra@gmail.com>
|
||
|
||
* bfdlink.h (struct bfd_link_info): Add warn_multiple_definition.
|
||
|
||
2021-02-17 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ctf_arc_lookup_symbol_name): New.
|
||
(ctf_lookup_by_symbol_name): Likewise.
|
||
|
||
2021-02-19 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
PR 27158
|
||
* opcode/riscv.h: Updated encoding macros.
|
||
|
||
2021-02-18 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv.h: Moved stuff and make the file tidy.
|
||
|
||
2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
|
||
|
||
* opcode/s390.h (enum s390_opcode_cpu_val): Add
|
||
S390_OPCODE_ARCH14.
|
||
|
||
2021-02-08 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* opcode/tic54x.h (mmregs): Rename to ...
|
||
(tic54x_mmregs): ... this.
|
||
(regs): Rename to ...
|
||
(tic54x_regs): ... this.
|
||
(condition_codes): Rename to ...
|
||
(tic54x_condition_codes): ... this.
|
||
(cc2_codes): Rename to ...
|
||
(tic54x_cc2_codes): ... this.
|
||
(status_bits): Rename to ...
|
||
(tic54x_status_bits): ... this.
|
||
(cc3_codes): Rename to ...
|
||
(tic54x_cc3_codes): ... this.
|
||
(misc_symbols): Rename to ...
|
||
(tic54x_misc_symbols): ... this.
|
||
|
||
2021-02-05 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
PR 27348
|
||
* opcode/riscv.h: Remove obsolete OP_*CUSTOM_IMM.
|
||
|
||
2021-02-05 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
PR 27348
|
||
* opcode/riscv-opc.h: Remove obsolete Xcustom support.
|
||
|
||
2021-01-27 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ECTF_NONAME): New.
|
||
(ECTF_NERR): Adjust.
|
||
|
||
2021-01-26 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (CTF_LINK_NO_FILTER_REPORTED_SYMS): New.
|
||
|
||
2021-02-04 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Removed macros for zb* extensions.
|
||
* opcode/riscv.h (riscv_insn_class): Removed INSN_CLASS_ZB*.
|
||
|
||
2021-01-15 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv.h: Indent and GNU coding standards tidy,
|
||
also aligned the code.
|
||
|
||
2021-01-15 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* elf/riscv.h: Comments tidy and improvement.
|
||
* opcode/riscv-opc.h: Likewise.
|
||
* opcode/riscv.h: Likewise.
|
||
|
||
2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||
|
||
* opcode/aarch64.h (AARCH64_FEATURE_CSRE): Delete.
|
||
(aarch64_opnd): Delete AARCH64_OPND_CSRE_CSR.
|
||
|
||
2021-01-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
* 2.36 release branch crated.
|
||
|
||
2021-01-07 Philipp Tomsich <prt@gnu.org>
|
||
|
||
* opcode/riscv-opc.h: Added MATCH_PAUSE, MASK_PAUSE and DECLARE_INSN
|
||
for pause hint instruction.
|
||
* opcode/riscv.h (enum riscv_insn_class): Added INSN_CLASS_ZIHINTPAUSE.
|
||
|
||
2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
|
||
Jim Wilson <jimw@sifive.com>
|
||
Andrew Waterman <andrew@sifive.com>
|
||
Maxim Blinov <maxim.blinov@embecosm.com>
|
||
Kito Cheng <kito.cheng@sifive.com>
|
||
Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Added MASK/MATCH/DECLARE_INSN for ZBA/ZBB/ZBC.
|
||
* opcode/riscv.h (riscv_insn_class): Added INSN_CLASS_ZB*.
|
||
(enum riscv_isa_spec_class): Added ISA_SPEC_CLASS_DRAFT for the
|
||
frozen extensions.
|
||
|
||
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (CTF_MN_RECURSE): New.
|
||
(ctf_member_next): Add flags argument.
|
||
|
||
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
|
||
|
||
* ctf-api.h (ECTF_INCOMPLETE): New.
|
||
(ECTF_NERR): Adjust.
|
||
|
||
2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
|
||
|
||
* coff/internal.h: Correct comment spelling.
|
||
* coff/sym.h: Likewise.
|
||
* opcode/aarch64.h: Likewise.
|
||
|
||
2021-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2020
|
||
|
||
Copyright (C) 2021 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|