Extend the assembler so that it can automatically generate GNU Build attribute notes...
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 25049216ac95e30c521523a2cf1a1d585d2355b7..d3ce68fbe01f777395f37972c51707384a27645e 100644 (file)
@@ -1,3 +1,326 @@
+2018-04-26  Nick Clifton  <nickc@redhat.com>
+
+       * as.c (flag_generate_build_notes): New variable.
+       (show_usage): Add entry for --generate-missing-build-notes.
+       (parse_args): Parse --generate-missing-build-notes.
+       * as.h: Export flag_generate_build_notes.
+       * symbols.c (save_symbol_name): Ensure that the name parameter is
+       not NULL.
+       * write.c (create_obj_attrs_section): Reformat.
+       (create_note_reloc): New function - creates a relocation for a
+       field in a GNU Build attribute note.
+       (maybe_generate_build_notes): New function - created GNU Build
+       attribute notes if none are present in the output file.
+       (write_object_file): Call maybe_generate_build_notes.
+       * configure.ac (--enable-generate-build-notes): New option.
+       * NEWS: Announce the new feature.
+       * doc/as.textinfo: Document the new option.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (check_VecOperands): Add AVX512VL check. Set
+       .baseindex.
+       (match_template): Don't set suffix_check when Intel syntax and
+       broadcast. Make check_register a per-operand bitmap.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (optimize_encoding): Check for zeroing
+       masking.
+       * testsuite/gas/i386/optimize-1.d,
+       testsuite/gas/i386/optimize-4.d,
+       testsuite/gas/i386/optimize-5.d,
+       testsuite/gas/i386/x86-64-optimize-2.d,
+       testsuite/gas/i386/x86-64-optimize-5.d,
+       testsuite/gas/i386/x86-64-optimize-6.d: Adjust expectations.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (parse_real_register): Check .cpuvrex before
+       recording EVEX encoding. Don't check previously specified
+       encoding.
+       * testsuite/gas/i386/xmmhi32.s: Add {x,y,z}mm{16,24} cases.
+       * testsuite/gas/i386/xmmhi32.d: Adjust expectations.
+       * testsuite/gas/i386/xmmhi64.s, testsuite/gas/i386/xmmhi64.d:
+       New.
+       * testsuite/gas/i386/i386.exp: Run new test.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * testsuite/gas/i386/xsave.s: Add AVX, LWP, MPX, and PKU
+       dependency tests.
+       * testsuite/gas/i386/xsave.d,
+       testsuite/gas/i386/xsave-intel.d: Adjust expecations.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (parse_real_register): Re-write {,x,y,z}mm
+       and mask register handling.
+       * testsuite/gas/i386/avx512f-ymm.s, testsuite/gas/i386/avx512f-ymm.d,
+       testsuite/gas/i386/xmmhi32.s, testsuite/gas/i386/xmmhi32.d: New.
+       * testsuite/gas/i386/i386.exp: Run new tests.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (parse_real_register): Check bnd<N>
+       registers.
+       * testsuite/gas/i386/bnd.s, testsuite/gas/i386/bnd.l: New.
+       * testsuite/gas/i386/i386.exp: Run new test.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (parse_real_register): Check FPU register
+       earlier.
+       * testsuite/gas/i386/fpu.s, testsuite/gas/i386/fpu.l,
+       testsuite/gas/i386/stN.s, testsuite/gas/i386/stN.l: New.
+       * testsuite/gas/i386/i386.exp: Run new tests.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (build_modrm_byte): Use tabs for indentation.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (build_modrm_byte): Move and fold
+       source/reg_slot calculations.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (build_modrm_byte): Drop .veximmext uses.
+       Move part of the remaining assertion.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (build_modrm_byte): Extend assertion in
+       vex_3_sources handling to cover more cases.
+
+2018-04-26  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (build_modrm_byte): Drop code dealing with
+       .veximmext and .immext set at the same time. Drop code dealing
+       with .cpufma when .vexsources == VEX3SOURCES.
+
+2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
+       Mickaël Guêné  <mickael.guene@st.com>
+
+       * config/tc-arm.c (reloc_names): Add TLSGD_FDPIC, TLSLDM_FDPIC,
+       GOTTPOFF_FDIC relocations.
+       (md_apply_fix): Handle the new TLS FDPIC relocations.
+       (tc_gen_reloc): Likewise.
+       (arm_fix_adjustable): Likewise.
+
+2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
+       Mickaël Guêné  <mickael.guene@st.com>
+
+       * config/tc-arm.c (reloc_names): Add gotfuncdesc, gotofffuncdesc,
+       funcdesc.
+       (md_apply_fix): Support the new relocations.
+       (tc_gen_reloc): Likewise.
+       * testsuite/gas/arm/reloc-fdpic.d: New.
+       * testsuite/gas/arm/reloc-fdpic.s: New.
+
+2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
+       Mickaël Guêné  <mickael.guene@st.com>
+
+       * config/tc-arm.c (arm_fdpic): New.
+       (elf32_arm_target_format): Support FDPIC.
+       (OPTION_FDPIC): New.
+       (md_longopts): Support FDPIC.
+       (md_parse_option): Likewise.
+       (md_show_usage): Likewise.
+
+2018-04-25  Tamar Christina  <tamar.christina@arm.com>
+
+       * testsuite/gas/aarch64/rdma.s: Test for larger register numbers.
+       * testsuite/gas/aarch64/rdma.d: Update results.
+       * testsuite/gas/aarch64/rdma-directive.d: Likewise.
+
+2018-04-25  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: Updated Spanish translation.
+
+2018-04-25  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am: Remove arm-aout and arm-coff support.
+       * config/tc-arm.c: Likewise.
+       * config/tc-arm.h: Likewise.
+       * configure.tgt: Likewise.
+       * testsuite/gas/aarch64/codealign.d: Likewise.
+       * testsuite/gas/aarch64/mapping.d: Likewise.
+       * testsuite/gas/aarch64/mapping2.d: Likewise.
+       * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: Likewise.
+       * testsuite/gas/arm/adds-thumb1-reloc-local.d: Likewise.
+       * testsuite/gas/arm/addsw-bad.d: Likewise.
+       * testsuite/gas/arm/align.d: Likewise.
+       * testsuite/gas/arm/align64.d: Likewise.
+       * testsuite/gas/arm/arch7.d: Likewise.
+       * testsuite/gas/arm/arch7a-mp.d: Likewise.
+       * testsuite/gas/arm/arch7em.d: Likewise.
+       * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
+       * testsuite/gas/arm/arm-it-auto-2.d: Likewise.
+       * testsuite/gas/arm/arm-it-auto-3.d: Likewise.
+       * testsuite/gas/arm/arm-it-auto.d: Likewise.
+       * testsuite/gas/arm/arm-it-bad-2.d: Likewise.
+       * testsuite/gas/arm/arm-it.d: Likewise.
+       * testsuite/gas/arm/armv7e-m+fpv5-d16.d: Likewise.
+       * testsuite/gas/arm/armv7e-m+fpv5-sp-d16.d: Likewise.
+       * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: Likewise.
+       * testsuite/gas/arm/armv8-2-fp16-scalar.d: Likewise.
+       * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise.
+       * testsuite/gas/arm/armv8-2-fp16-simd.d: Likewise.
+       * testsuite/gas/arm/armv8-a+crypto.d: Likewise.
+       * testsuite/gas/arm/armv8-a+fp.d: Likewise.
+       * testsuite/gas/arm/armv8-a+ras.d: Likewise.
+       * testsuite/gas/arm/armv8-a+rdma-warning.d: Likewise.
+       * testsuite/gas/arm/armv8-a+rdma.d: Likewise.
+       * testsuite/gas/arm/armv8-a+simd.d: Likewise.
+       * testsuite/gas/arm/armv8-a-barrier-thumb.d: Likewise.
+       * testsuite/gas/arm/armv8-r+fp.d: Likewise.
+       * testsuite/gas/arm/armv8-r+simd.d: Likewise.
+       * testsuite/gas/arm/armv8-r-barrier-thumb.d: Likewise.
+       * testsuite/gas/arm/armv8_1-a+simd.d: Likewise.
+       * testsuite/gas/arm/armv8_2+rdma.d: Likewise.
+       * testsuite/gas/arm/armv8_2-a.d: Likewise.
+       * testsuite/gas/arm/armv8_3-a-fp.d: Likewise.
+       * testsuite/gas/arm/armv8_3-a-simd.d: Likewise.
+       * testsuite/gas/arm/armv8a-automatic-hlt.d: Likewise.
+       * testsuite/gas/arm/armv8a-automatic-lda.d: Likewise.
+       * testsuite/gas/arm/attr-syntax.d: Likewise.
+       * testsuite/gas/arm/automatic-bw.d: Likewise.
+       * testsuite/gas/arm/automatic-cbz.d: Likewise.
+       * testsuite/gas/arm/automatic-clrex.d: Likewise.
+       * testsuite/gas/arm/automatic-lda.d: Likewise.
+       * testsuite/gas/arm/automatic-ldaex.d: Likewise.
+       * testsuite/gas/arm/automatic-ldaexb.d: Likewise.
+       * testsuite/gas/arm/automatic-ldrex.d: Likewise.
+       * testsuite/gas/arm/automatic-ldrexd.d: Likewise.
+       * testsuite/gas/arm/automatic-movw.d: Likewise.
+       * testsuite/gas/arm/automatic-sdiv.d: Likewise.
+       * testsuite/gas/arm/automatic-strexb.d: Likewise.
+       * testsuite/gas/arm/barrier-bad-thumb.d: Likewise.
+       * testsuite/gas/arm/barrier-bad.d: Likewise.
+       * testsuite/gas/arm/barrier-thumb.d: Likewise.
+       * testsuite/gas/arm/barrier.d: Likewise.
+       * testsuite/gas/arm/bignum1.d: Likewise.
+       * testsuite/gas/arm/blx-bad.d: Likewise.
+       * testsuite/gas/arm/blx-bl-convert.d: Likewise.
+       * testsuite/gas/arm/blx-local.s: Likewise.
+       * testsuite/gas/arm/crc32-armv8-a-bad.d: Likewise.
+       * testsuite/gas/arm/crc32-armv8-a.d: Likewise.
+       * testsuite/gas/arm/crc32-armv8-r-bad.d: Likewise.
+       * testsuite/gas/arm/crc32-armv8-r.d: Likewise.
+       * testsuite/gas/arm/dis-data.d: Likewise.
+       * testsuite/gas/arm/dis-data2.d: Likewise.
+       * testsuite/gas/arm/dis-data3.d: Likewise.
+       * testsuite/gas/arm/eabi_attr_1.d: Likewise.
+       * testsuite/gas/arm/fp-save.d: Likewise.
+       * testsuite/gas/arm/group-reloc-alu-encoding-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-alu-parsing-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-alu.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldc-encoding-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldc-parsing-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldc.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldr-encoding-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldr-parsing-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldr.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldrs-encoding-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldrs-parsing-bad.d: Likewise.
+       * testsuite/gas/arm/group-reloc-ldrs.d: Likewise.
+       * testsuite/gas/arm/insn-error-a.d: Likewise.
+       * testsuite/gas/arm/insn-error-t.d: Likewise.
+       * testsuite/gas/arm/inst-po-2.d: Likewise.
+       * testsuite/gas/arm/inst-po-3.d: Likewise.
+       * testsuite/gas/arm/inst-po-be.d: Likewise.
+       * testsuite/gas/arm/inst-po.d: Likewise.
+       * testsuite/gas/arm/ldconst.d: Likewise.
+       * testsuite/gas/arm/ldgesb-bad.d: Likewise.
+       * testsuite/gas/arm/ldgesh-bad.d: Likewise.
+       * testsuite/gas/arm/ldst-offset0.d: Likewise.
+       * testsuite/gas/arm/local_function.d: Likewise.
+       * testsuite/gas/arm/local_label_coff.d: Likewise.
+       * testsuite/gas/arm/local_label_elf.d: Likewise.
+       * testsuite/gas/arm/mapping.d: Likewise.
+       * testsuite/gas/arm/mapping2.d: Likewise.
+       * testsuite/gas/arm/mapping3.d: Likewise.
+       * testsuite/gas/arm/mapping4.d: Likewise.
+       * testsuite/gas/arm/mapshort-elf.d: Likewise.
+       * testsuite/gas/arm/mask_1-armv8-a.d: Likewise.
+       * testsuite/gas/arm/mask_1-armv8-r.d: Likewise.
+       * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: Likewise.
+       * testsuite/gas/arm/movs-thumb1-reloc-local.d: Likewise.
+       * testsuite/gas/arm/movw-local.d: Likewise.
+       * testsuite/gas/arm/mrs-msr-thumb-v6t2.d: Likewise.
+       * testsuite/gas/arm/mrs-msr-thumb-v7-m.d: Likewise.
+       * testsuite/gas/arm/mrs-msr-thumb-v7e-m.d: Likewise.
+       * testsuite/gas/arm/msr-imm-bad.d: Likewise.
+       * testsuite/gas/arm/msr-reg-bad.d: Likewise.
+       * testsuite/gas/arm/msr-reg-thumb.d: Likewise.
+       * testsuite/gas/arm/nomapping.d: Likewise.
+       * testsuite/gas/arm/nops.d: Likewise.
+       * testsuite/gas/arm/pic.d: Likewise.
+       * testsuite/gas/arm/pinsn.d: Likewise.
+       * testsuite/gas/arm/plt-1.d: Likewise.
+       * testsuite/gas/arm/pr21458.d: Likewise.
+       * testsuite/gas/arm/pr9722.d: Likewise.
+       * testsuite/gas/arm/strex-t.d: Likewise.
+       * testsuite/gas/arm/t2-branch-global.d: Likewise.
+       * testsuite/gas/arm/target-reloc-1.d: Likewise.
+       * testsuite/gas/arm/thumb-b-bad.d: Likewise.
+       * testsuite/gas/arm/thumb-w-bad.d: Likewise.
+       * testsuite/gas/arm/thumb-w-good.d: Likewise.
+       * testsuite/gas/arm/thumb.d: Likewise.
+       * testsuite/gas/arm/thumb2_it.d: Likewise.
+       * testsuite/gas/arm/thumb2_it_auto.d: Likewise.
+       * testsuite/gas/arm/thumb2_it_search.d: Likewise.
+       * testsuite/gas/arm/thumb2_ldmstm.d: Likewise.
+       * testsuite/gas/arm/thumb2_ldr_immediate_armv6.d: Likewise.
+       * testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d: Likewise.
+       * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Likewise.
+       * testsuite/gas/arm/thumb2_pool.d: Likewise.
+       * testsuite/gas/arm/thumb2_vpool.d: Likewise.
+       * testsuite/gas/arm/thumb2_vpool_be.d: Likewise.
+       * testsuite/gas/arm/thumb32.d: Likewise.
+       * testsuite/gas/arm/thumbver.d: Likewise.
+       * testsuite/gas/arm/tls.d: Likewise.
+       * testsuite/gas/arm/tls_vxworks.d: Likewise.
+       * testsuite/gas/arm/undefined.d: Likewise.
+       * testsuite/gas/arm/undefined_coff.d: Likewise.
+       * testsuite/gas/arm/unwind.d: Likewise.
+       * testsuite/gas/arm/v4bx.d: Likewise.
+       * testsuite/gas/arm/vcmp-noprefix-imm.d: Likewise.
+       * testsuite/gas/arm/vcvt-bad.d: Likewise.
+       * testsuite/gas/arm/vfma1.d: Likewise.
+       * testsuite/gas/arm/vldconst.d: Likewise.
+       * testsuite/gas/arm/vldconst_be.d: Likewise.
+       * testsuite/gas/arm/vldm-arm.d: Likewise.
+       * testsuite/gas/arm/vldr.d: Likewise.
+       * testsuite/gas/arm/weakdef-1.d: Likewise.
+       * testsuite/gas/arm/weakdef-2.d: Likewise.
+       * config/te-riscix.h: Delete.
+       * Makefile.in: Regenerate.
+       * po/POTFILES.in: Regenerate.
+
+2018-04-23  Alan Modra  <amodra@gmail.com>
+
+       * stabs.c (generate_asm_file): Use memcpy rather than strncpy.
+       Remove call to strlen inside loop.
+       * config/tc-cr16.c (getreg_image): Warning fix.
+       * config/tc-crx.c (getreg_image): Warning fix.
+
+2018-04-20  Kito Cheng  <kito.cheng@gmail.com>
+
+       * config/tc-riscv.c (options): Add OPTION_RELAX and
+       OPTION_NO_RELAX.
+       (md_longopts): New option -mrelax and -mno-relax.
+       (md_parse_option): Handle -mrelax and -mno-relax.
+       * doc/c-riscv.texi: Document for -mrelax and -mno-relax.
+       * testsuite/gas/riscv/no-relax-reloc.d: New.
+       * testsuite/gas/riscv/no-relax-reloc.s: New.
+       * testsuite/gas/riscv/relax-reloc.d: New.
+       * testsuite/gas/riscv/relax-reloc.s: New.
+
 2018-04-20  Nick Clifton  <nickc@redhat.com>
 
        * po/es.po: Updated Spanish translation.
This page took 0.028039 seconds and 4 git commands to generate.