gas: Pass max_bytes to TC_FRAG_INIT
[binutils-gdb.git] / gas / ChangeLog
index 69205dda36e4e18b5389e22e6ed682058c7b9363..04ad383e89dcc44f78566fa9f43c119ac5be1733 100644 (file)
@@ -1,3 +1,128 @@
+2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/24165
+       * frags.c (frag_var_init): Pass max_chars to TC_FRAG_INIT as
+       max_bytes.
+       * config/tc-aarch64.h (TC_FRAG_INIT): Add and pass max_bytes to
+       aarch64_init_frag.
+       * /config/tc-arm.h (TC_FRAG_INIT): And and pass max_bytes to
+       arm_init_frag.
+       * config/tc-avr.h (TC_FRAG_INIT): And and ignore max_bytes.
+       * config/tc-ia64.h (TC_FRAG_INIT): Likewise.
+       * config/tc-mmix.h (TC_FRAG_INIT): Likewise.
+       * config/tc-nds32.h (TC_FRAG_INIT): Likewise.
+       * config/tc-ns32k.h (TC_FRAG_INIT): Likewise.
+       * config/tc-rl78.h (TC_FRAG_INIT): Likewise.
+       * config/tc-rx.h (TC_FRAG_INIT): Likewise.
+       * config/tc-score.h (TC_FRAG_INIT): Likewise.
+       * config/tc-tic54x.h (TC_FRAG_INIT): Likewise.
+       * config/tc-tic6x.h (TC_FRAG_INIT): Likewise.
+       * config/tc-xtensa.h (TC_FRAG_INIT): Likewise.
+       * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Set to
+       (alignment ? ((1 << alignment) - 1) : 1)
+       (i386_tc_frag_data): Add max_bytes.
+       (TC_FRAG_INIT): Add and track max_bytes.
+       (HANDLE_ALIGN): Replace MAX_MEM_FOR_RS_ALIGN_CODE with
+       fragP->tc_frag_data.max_bytes.
+       * doc/internals.texi: Update TC_FRAG_TYPE with max_bytes.
+
+2019-02-08  Jim Wilson  <jimw@sifive.com>
+
+       * config/tc-riscv.c (validate_riscv_insn) <'C'>: Add 'z' support.
+       (riscv_ip) <'C'>: Add 'z' support.
+
+2019-02-07  Tamar Christina  <tamar.christina@arm.com>
+
+       * config/tc-arm.c (insns): Redefine THUMB_VARIANT and ARM_VARIANT for
+       hlt to armv1.
+       * testsuite/gas/arm/armv8a-automatic-hlt.d: Update TAGs
+       * testsuite/gas/arm/hlt.d: New test.
+       * testsuite/gas/arm/hlt.s: New test.
+
+2019-02-07  Tamar Christina  <tamar.christina@arm.com>
+
+       * testsuite/gas/aarch64/undefined_advsimd_armv8_3.d: New test.
+       * testsuite/gas/aarch64/undefined_advsimd_armv8_3.s: New test.
+
+2019-02-07  Tamar Christina  <tamar.christina@arm.com>
+
+       PR binutils/23212
+       * testsuite/gas/aarch64/undefined_by_elem_sz_l.s: New test.
+       * testsuite/gas/aarch64/undefined_by_elem_sz_l.d: New test.
+
+2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/tc-visium.c (md_assemble) <mode_cad>: Align instruction on
+       64-bit boundaries for the GR6.
+       * testsuite/gas/visium/allinsn_gr6.s: Tweak.
+       * testsuite/gas/visium/allinsn_gr6.d: Likewise.
+       * testsuite/gas/visium/bra-1.d: New test.
+       * testsuite/gas/visium/bra-1.s: Likewise.
+       * testsuite/gas/visium/visium.exp: Run bra-1 test.
+
+2019-01-31  John Darrington <john@darrington.wattle.id.au>
+
+        * config/tc-s12z.c (lex_imm): Add new argument exp_o.
+       (emit_reloc): New function.
+       (md_apply_fix): [BFD_RELOC_S12Z_OPR] Recognise that it
+       can be either 2 bytes or 3 bytes long.
+       * testsuite/gas/s12z/mov-imm-reloc.d: New file.
+       * testsuite/gas/s12z/mov-imm-reloc.s: New file.
+       * testsuite/gas/s12z/s12z.exp: Add them.
+
+2019-01-31  John Darrington <john@darrington.wattle.id.au>
+
+       * config/tc-s12z.c (md_apply_fix): Fix incorrect limits.
+       * testsuite/gas/s12z/pc-rel-bad.d: New file.
+       * testsuite/gas/s12z/pc-rel-bad.l: New file.
+       * testsuite/gas/s12z/pc-rel-bad.s: New file.
+       * testsuite/gas/s12z/pc-rel-good.d: New file.
+       * testsuite/gas/s12z/pc-rel-good.s: New file.
+       * testsuite/gas/s12z/s12z.exp: Add them.
+
+2019-01-31  John Darrington <john@darrington.wattle.id.au>
+
+       * config/tc-s12z.c (tfr): Emit warning if operands are the same.
+       * testsuite/gas/s12z/exg.d: New test case.
+       * testsuite/gas/s12z/exg.l: New file.
+
+2019-01-31  John Darrington <john@darrington.wattle.id.au>
+
+       * config/tc-s12z.c (lex_opr): Add a parameter to indicate whether
+       immediate mode operands should be permitted.
+       * testsuite/s12z/imm-dest.d: New file.
+       * testsuite/s12z/imm-dest.l: New file.
+       * testsuite/s12z/imm-dest.s: New file.
+       * testsuite/s12z/s12z.exp: Add them.
+
+2019-01-31  Andreas Krebbel  <krebbel@linux.ibm.com>
+
+       * config/tc-s390.c (s390_parse_cpu): New entry for arch13.
+       * doc/c-s390.texi: Document arch13 march option.
+       * testsuite/gas/s390/s390.exp: Run the arch13 related tests.
+       * testsuite/gas/s390/zarch-arch13.d: New test.
+       * testsuite/gas/s390/zarch-arch13.s: New test.
+       * testsuite/gas/s390/zarch-z13.d: Expect the renamed mnemonics
+       also for z13.
+
+2019-01-31  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-alpha.c (md_apply_fix): Correct range checks for
+       BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BSR.
+       * config/tc-arm.c (md_apply_fix): Use llabs rather than abs.
+       * config/tc-csky.c (get_macro_reg_vals): Pass s to csky_show_error.
+
+2019-01-28  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * config/tc-xtensa.c (md_apply_fix): Mark fixups for constant
+       symbols as done in md_apply_fix.
+       * testsuite/gas/all/forward.d: Don't XFAIL for xtensa.
+
+2019-01-28  Nick Clifton  <nickc@redhat.com>
+
+       * po/fr.po: Updated French translation.
+       * po/ru.po: Updated Russian translation.
+
 2019-01-28  Alan Modra  <amodra@gmail.com>
 
        * configure.ac (ac_checking): Set from bfd/development.sh