Fix overflow detection in the Z80 assembler.
[binutils-gdb.git] / gas / ChangeLog
blobb9a59b66b808d27e499331882310fe4670a77a95
1 2021-05-20  Sergey Belyashov  <sergey.belyashov@gmail.com>
3         * config/tc-z80.c (emit_data_val): Warn on constant overflow.
4         (signed_overflow): New function.
5         (unsigned_overflow): New function.
6         (is_overflow): Use new functions.
7         (md_apply_fix): Use signed_overflow.
8         * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
9         * testsuite/gas/z80/ez80_isuf.s: Likewise.
10         * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
12 2021-05-20  Nicolas Boulenguez  <nicolas@debian.org>
14         PR 27888
15         * Makefile.am (ZLIB): Define.
16         (as_new_LDADD): Add it.
17         * Makefile.in: Regenerate.
19 2021-05-17  Alex Coplan  <alex.coplan@arm.com>
21         * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
22         into the same GPR twice.
23         * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
24         * testsuite/gas/arm/mve-vmov-3.d: New test.
25         * testsuite/gas/arm/mve-vmov-3.s: New test.
27 2021-05-12  Alan Modra  <amodra@gmail.com>
29         * testsuite/gas/elf/dwarf-5-file0.d: Update.
30         * testsuite/gas/i386/dwarf5-line-1.d: Update.
32 2021-05-11  Sergey Belyashov  <sergey.belyashov@gmail.com>
34         PR 27823
35         * config/tc-z80.c (emit_ld_r_m): Report an illegal load
36         instruction.
37         * testsuite/gas/z80/ill_ops.s: New test source file.
38         * testsuite/gas/z80/ill_ops.d: New test driver.
39         * testsuite/gas/z80/ill_ops.l: New test error output.
41 2021-05-10  Sergey Belyashov  <sergey.belyashov@gmail.com>
43         PR 27415
44         * config/tc-z80.c (emit_data_val): Add support for 8-bit and
45         24-bit shifts.
46         * testsuite/gas/z80/z80_reloc.a: Update tests.
47         * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
49 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
51         * doc/Makefile.am (html-local, as/index.html): New targets.
52         * doc/Makefile.in: Regenerate.
54 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
56         * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
57         * doc/Makefile.in: Regenerate.
59 2021-05-07  Nick Clifton  <nickc@redhat.com>
61         PR 3136
62         * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
63         (obj_elf_bss): New function.  Change to the .bss section.
64         Support an optional subsection number.
65         (obj_elf_change_section): Call obj_elf_section_change_hook.
66         (obj_elf_section): Likewise.
67         (obj_elf_data): Likewise.
68         (obj_elf_text): Likewise.
69         (obj_elf_struct): Likewise.
70         (obj_elf_subsection): Likewise.
71         (obj_elf_previous): Likewise.
72         * config/obj-elf.h (obj_elf_bss): Prototype.
73         * doc/as.texi (Bss): New node.
75 2021-05-07  Clément Chigot  <clement.chigot@atos.net>
77         * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
78         (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
79         (coff_frob_section): Likewise.
80         * config/obj-coff.h (SA_GET_SECT_SCNLEN,
81         SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
82         SA_SET_SECT_NRELOC) New defines.
83         (SET_SECTION_RELOCS): Adjust for C_DWARF.
84         * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
85         (ppc_adjust_symtab): Reorder C_DWARF symbols.
86         * testsuite/gas/ppc/aix.exp: New tests.
87         * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
88         * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
89         * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
91         * config/tc-ppc.c (ppc_function): Update comment for
92         fifth argument.
93         (ppc_frob_symbol): Remove ppc_last_function check.
94         Make sure coff_last_function is reset.
95         Correctly set fsize when not provided in .function.
96         * testsuite/gas/ppc/aix.exp: New tests.
97         * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
98         * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
99         * testsuite/gas/ppc/xcoff-function-1.s: New test.
101 2021-05-07  Jan Beulich  <jbeulich@suse.com>
103         * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
104         * testsuite/gas/i386/i386.exp: Run new test.
106 2021-05-07  Jan Beulich  <jbeulich@suse.com>
108         * config/tc-i386.c (output_disp): Use disps field instead of
109         imms one.
111 2021-05-07  Jan Beulich  <jbeulich@suse.com>
113         * config/tc-i386.c (i386_finalize_immediate): Move register
114         check ...
115         (i386_immediate): ... here.
117 2021-05-07  Jan Beulich  <jbeulich@suse.com>
119         * config/tc-i386.c (optimize_imm): Drop redundant masking.
120         Re-arrange operand type accumulation.
122 2021-05-06  Stafford Horne  <shorne@gmail.com>
124         PR 21464
125         * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
126         * testsuite/gas/or1k/reloc-1.d: Add test result for new
127         relocation.
129 2021-05-03  Christoph Muellner <cmuellner@gcc.gnu.org>
131         PR 27764
132         * testsuite/gas/riscv/a-ext-64.d: New testcase.
133         * testsuite/gas/riscv/a-ext-64.s: Likewise.
134         * testsuite/gas/riscv/a-ext.d: Likewise.
135         * testsuite/gas/riscv/a-ext.s: Likewise.
137 2021-05-03  Jan Beulich  <jbeulich@suse.com>
139         * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
140         #if.
141         * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
142         Add two further .long and an .equ.
143         * testsuite/gas/i386/secrel.d: Adjust expecations.
145 2021-05-03  Jan Beulich  <jbeulich@suse.com>
147         * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
148         Convert Windows to UNIX EOL.
150 2021-05-03  Jan Beulich  <jbeulich@suse.com>
152         * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
153         variant into ELF one.
155 2021-05-03  Alan Modra  <amodra@gmail.com>
157         * testsuite/gas/elf/section25.s: Don't start directives in first
158         column.
159         * testsuite/gas/elf/section26.s: Likewise.
161 2021-04-29  Jan Beulich  <jbeulich@suse.com>
163         * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
164         * testsuite/gas/i386/lea64.d,
165         testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
166         * testsuite/gas/i386/x86-64-rip-inval-1.s,
167         testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
169 2021-04-29  Jan Beulich  <jbeulich@suse.com>
171         * config/tc-i386.c (i386_validate_fix): Change return type to
172         int. Short-circuit BFD_RELOC_SIZE* handling.
173         (tc_gen_reloc): New local variable sym. Extend logic when
174         processing BFD_RELOC_SIZE*.
175         * config/tc-i386.f (i386_validate_fix): Change return type to
176         int.
177         (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
178         returns zero.
179         * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
180         testsuite/gas/i386/size-5b.d: New.
181         * testsuite/gas/i386/i386.exp: Run new tests.
183 2021-04-29  Jan Beulich  <jbeulich@suse.com>
185         * config/tc-i386.c (tc_gen_reloc): Use section size for section
186         symbols when resolving BFD_RELOC_SIZE*.
187         * testsuite/gas/i386/size-2.s: Add section size cases.
188         * testsuite/gas/i386/size-2.d,
189         testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
191 2021-04-28  Jan Beulich  <jbeulich@suse.com>
192             H.J. Lu  <hjl.tools@gmail.com>
194         PR gas/27763
195         * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
196         signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
197         (output_disp): Also mark 4-byte relocs as signed for 64-bit.
198         (md_estimate_size_before_relax): Move local variable fixP. Set
199         it from fix_new() return values. Mark 4-byte relocs as signed
200         for 64-bit.
201         * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
202         * testsuite/gas/i386/x86-64-rip-2.s,
203         * testsuite/gas/i386/x86-64-rip-2.d,
204         * testsuite/gas/i386/x86-64-rip-inval-1.s,
205         * testsuite/gas/i386/x86-64-rip-inval-1.l,
206         * testsuite/gas/i386/x86-64-rip-inval-2.s,
207         * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
208         * testsuite/gas/i386/i386.exp: Run new tests.
210 2021-04-27  H.J. Lu  <hongjiu.lu@intel.com>
212         * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
214 2021-04-26  Jan Beulich  <jbeulich@suse.com>
216         * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
217         BFD_RELOC_SIZE*.
219 2021-04-26  Jan Beulich  <jbeulich@suse.com>
221         * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
222         overflow check to 64-bit objects.
224 2021-04-26  Jan Beulich  <jbeulich@suse.com>
226         * config/tc-i386.c (want_disp32): Also check for SIZE32.
227         (optimize_encoding): Handle LEA.
228         * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
229         testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
230         Add many more forms.
231         * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
232         testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
233         testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
234         New.
235         * testsuite/gas/i386/i386.exp: Run new tests.
237 2021-04-26  Jan Beulich  <jbeulich@suse.com>
239         * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
240         signed.
241         * testsuite/gas/i386/x86-64-addr32-bad.s,
242         testsuite/gas/i386/x86-64-addr32-bad.l: New.
243         * testsuite/gas/i386/i386.exp: Run new test.
245 2021-04-23  Eric Botcazou<ebotcazou@adacore.com>
247         * testsuite/gas/elf/section25.d: Run it everywhere.
248         * testsuite/gas/elf/section26.d: Likewise.
249         * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
251 2021-04-23  Jérôme Gardou  <jerome.gardou@gmail.com>
253         * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
254         optional "code" argument.
256 2021-04-23  Jan Beulich  <jbeulich@suse.com>
258         * config/tc-i386.c (want_disp32): New.
259         (md_assemble): Use it.
260         (optimize_disp): Likewise.
261         (build_modrm_byte): Likewise.
263 2021-04-23  Jan Beulich  <jbeulich@suse.com>
265         * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
266         check ...
267         (md_assemble): ... here.
269 2021-04-23  Jan Beulich  <jbeulich@suse.com>
271         * config/tc-i386.c (optimize_disp): Move down BFD64 section.
272         Move up setting of disp32.
274 2021-04-23  Jan Beulich  <jbeulich@suse.com>
276         * config/tc-i386.c (pe): Don't truncate expression value.
277         (i386_finalize_displacement): Likewise.
279 2021-04-21  Nick Clifton  <nickc@redhat.com>
281         * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
282         for named section symbols.
283         * testsuite/gas/arm/thumbver.d: Likewise.
284         * testsuite/gas/bfin/loop_temps.d: Likewise.
285         * testsuite/gas/elf/section2.e-arc: Likewise.
286         * testsuite/gas/elf/section2.e-arm: Likewise.
287         * testsuite/gas/elf/section2.e-csky: Likewise.
288         * testsuite/gas/elf/section2.e-m32r: Likewise.
289         * testsuite/gas/elf/section2.e-mips: Likewise.
290         * testsuite/gas/elf/section2.e-msp430: Likewise.
291         * testsuite/gas/elf/section2.e-riscv: Likewise.
292         * testsuite/gas/elf/section2.e-rl78: Likewise.
293         * testsuite/gas/elf/section2.e-rx: Likewise.
294         * testsuite/gas/elf/section2.e-score: Likewise.
295         * testsuite/gas/elf/section2.e-tic6x: Likewise.
296         * testsuite/gas/elf/section2.e-unused: Likewise.
297         * testsuite/gas/elf/section2.e-v850: Likewise.
298         * testsuite/gas/elf/section2.e-xtensa: Likewise.
299         * testsuite/gas/ia64/alias-ilp32.d: Likewise.
300         * testsuite/gas/ia64/alias.d: Likewise.
301         * testsuite/gas/ia64/global.d: Likewise.
302         * testsuite/gas/microblaze/relax_size.elf: Likewise.
303         * testsuite/gas/microblaze/relax_size2.elf: Likewise.
304         * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
305         * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
306         * testsuite/gas/mmix/bspec-1.d: Likewise.
307         * testsuite/gas/mmix/byte-1.d: Likewise.
308         * testsuite/gas/mmix/comment-1.d: Likewise.
309         * testsuite/gas/mmix/loc-1.d: Likewise.
310         * testsuite/gas/mmix/loc-2.d: Likewise.
311         * testsuite/gas/mmix/loc-3.d: Likewise.
312         * testsuite/gas/mmix/loc-4.d: Likewise.
313         * testsuite/gas/mmix/loc-5.d: Likewise.
314         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
316 2021-04-20  Clément Chigot  <clement.chigot@atos.net>
318         PR binutils/21700
319         * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
320         (ppc_fix_adjustable): Manage fx_subsy part.
321         (tc_gen_reloc): Create second relocation when both
322         fx_addsy and fx_subsy are provided.
323         * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
324         (MAX_RELOC_EXPANSION): Likewise.
325         (TC_FORCE_RELOCATION_SUB_SAME): Likewise
326         (UNDEFINED_DIFFERENCE_OK): Likewise
327         * testsuite/gas/all/gas.exp: Skip difference between two
328         undefined symbols test.
330 2021-04-19  Nick Clifton  <nickc@redhat.com>
332         * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
333         targets which should skip the undefined symbols test.
335 2021-04-19  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
337         * NEWS: Update news.
338         * testsuite/gas/aarch64/rme.d: Update test.
339         * testsuite/gas/aarch64/rme.s: Update test.
341 2021-04-19  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
343         * testsuite/gas/aarch64/rme.d: Update test.
344         * testsuite/gas/aarch64/rme.s: Update test.
346 2021-04-19  Jan Beulich  <jbeulich@suse.com>
348         * as.h (sprint_value): Delete.
349         * messages.c (sprint_value): Likewise.
350         * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
351         place of sprint_value.
352         * config/tc-s390.c (s390_insert_operand): Likewise.
353         * doc/internals.texi (sprint_value): Delete section.
354         * write.c (fixup_segment): Likewise.
355         (relax_segment): Likewise.
357 2021-04-16  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
359         * testsuite/gas/aarch64/rme-invalid.d: New test.
360         * testsuite/gas/aarch64/rme-invalid.l: New test.
361         * testsuite/gas/aarch64/rme-invalid.s: New test.
362         * testsuite/gas/aarch64/rme.d: New test.
363         * testsuite/gas/aarch64/rme.s: New test.
365 2021-04-16  Nelson Chu  <nelson.chu@sifive.com>
367         PR 27436
368         * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
369         * testsuite/gas/riscv/shamt-32.d: New testcase.
370         * testsuite/gas/riscv/shamt-32.l: Likewise.
371         * testsuite/gas/riscv/shamt-32.s: Likewise.
372         * testsuite/gas/riscv/shamt-64.d: Likewise.
373         * testsuite/gas/riscv/shamt-64.l: Likewise.
374         * testsuite/gas/riscv/shamt-64.s: Likewise.
376 2021-04-16  Lifang Xia <lifang_xia@c-sky.com>
378         * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
379         c.mv a4,a4.
380         * testsuite/gas/riscv/c-zero-imm.s: Likewise.
382 2021-04-14  Alan Modra  <amodra@gmail.com>
384         PR 27723
385         * dw2gencfi.c (initial_cie_insn): New function, extracted from..
386         (select_cie_for_fde): ..here.  Simplify.
388 2021-04-14  Alan Modra  <amodra@gmail.com>
390         PR 27723
391         * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
392         DW_CFA_GNU_window_save and DW_CFA_restore_state.
394 2021-04-13  Alan Modra  <amodra@gmail.com>
396         * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
397         write to $srcdir.  Use gas_host_run and read output file rather
398         than gas_start/gas_finish.
400 2021-04-12  Alan Modra  <amodra@gmail.com>
402         * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
403         (md_assemble): Likewise.  Handle bignum operands.
404         (ppc_elf_suffix): Handle O_big.  Remove unnecessary input_line_pointer
405         check.
406         * expr.c: Delete unnecessary forward declarations.
407         (generic_bignum_to_int32): Return uint32_t.
408         (generic_bignum_to_int64): Return uint64_t.  Compile always.
409         (operand): Twiddle X_extrabit for unary '~'.  Set X_unsigned and
410         clear X_extrabit for unary '!'.
411         * expr.h (generic_bignum_to_int32): Declare.
412         (generic_bignum_to_int64): Declare.
413         * testsuite/gas/ppc/prefix-pcrel.s,
414         * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
416 2021-04-12  Nelson Chu  <nelson.chu@sifive.com>
418         * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
419         march-fail-porder-x-std.d.
420         * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
421         march-fail-porder-z-std.d.
422         * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
423         march-fail-porder-x-z.d.
424         * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
425         march-fail-porder.l.
426         * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
427         * testsuite/gas/riscv/march-fail-order-x.l: Updated.
428         * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
429         * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
430         march-fail-single-char-h.d.
431         * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
432         march-fail-single-char-s.d.
433         * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
434         march-fail-single-char-x.d.
435         * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
436         march-fail-single-char-z.d.
437         * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
438         * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
439         march-fail-single-prefix.l.
440         * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
441         * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
442         * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
444 2021-04-09  Tejas Belagod  <tejas.belagod@arm.com>
446         * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
447         diagnostic messages for LD/ST Exclusive instructions.
448         * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
449         * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
450         clean-up.
452 2021-04-09  Alan Modra  <amodra@gmail.com>
454         * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
455         * testsuite/gas/ppc/prefix-reloc.d: Likewise.
456         * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
458 2021-04-08  Alan Modra  <amodra@gmail.com>
460         * testsuite/gas/ppc/pr27676.d,
461         * testsuite/gas/ppc/pr27676.s: New test.
462         * testsuite/gas/ppc/ppc.exp: Run it.
463         * testsuite/gas/ppc/dcbt.d: Update.
464         * testsuite/gas/ppc/power4_32.d: Update.
466 2021-04-07  Alan Modra  <amodra@gmail.com>
468         PR 27217
469         * testsuite/gas/aarch64/pr27217.d: Correct name.  Accept ilp32 relocs.
471 2021-04-06  Nick Clifton  <nickc@redhat.com>
473         PR 27217
474         * config/tc-aarch64.c (my_get_expression): Rename to
475         aarch64_get_expression.  Add a fifth argument to enable deferring
476         of expression resolution.
477         (parse_typed_reg): Update calls to my_get_expression.
478         (parse_vector_reg_list): Likewise.
479         (parse_immediate_expression): Likewise.
480         (parse_big_immediate): Likewise.
481         (parse_shift): Likewise.
482         (parse_shifter_operand_imm): Likewise.
483         (parse_operands): Likewise.
484         (parse_shifter_operand_reloc): Update calls to my_get_expression
485         and call aarch64_force_reloc to determine the value of the new
486         fifth argument.
487         (parse_address_main): Likewise.
488         (parse_half): Likewise.
489         (parse_adrp): Likewise.
490         (aarch64_force_reloc): New function.  Contains code extracted from...
491         (aarch64_force_relocation): ... here.
492         * testsuite/gas/aarch64/pr27217.s: New test case.
493         * testsuite/gas/aarch64/pr27217.d: New test driver.
495 2021-04-06  Jan Beulich  <jbeulich@suse.com>
497         * write.c (fixup_segment): Move add_symbol_segment declaration
498         into main loop.
500 2021-04-05  Alan Modra  <amodra@gmail.com>
502         * configure.ac: Don't check for string.h, strings.h, stdlib.h,
503         errno.h, limits.h, locale.h or time.h.  Don't check for unlink,
504         remove, sbrk (unused) or setlocale.  Adjust gas_test_headers.
505         Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
506         strstr, or vsnprintf declarations.
507         (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
508         * as.h: Don't include alloca-conf.h, include config.h instead.
509         Include string.h, stdlib.h, errno.h unconditionally.  Remove
510         various fallback declarations.
511         * asintl.h: Don't test HAVE_LOCALE_H.
512         * as.c: Don't test HAVE_SETLOCALE.
513         * dwarf2dbg.c: Include limits.h unconditionally.
514         * expr.c: Likewise.
515         * sb.c: Likewise.
516         * symbols.c: Likewise.
517         * config/tc-cr16.c: Likewise.
518         * config/tc-d30v.c: Likewise.
519         * config/tc-i386.c: Likewise.
520         * config/tc-ia64.c: Likewise.
521         * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
522         * config.in: Regenerate.
523         * configure: Regenerate.
524         * Makefile.in: Regenerate.
525         * doc/Makefile.in: Regenerate.
527 2021-04-01  Martin Liska  <mliska@suse.cz>
529         * config/obj-coff.c (strneq): Remove strneq and use startswith.
530         (weak_is_altname): Likewise.
531         (obj_coff_section): Likewise.
532         * config/tc-cr16.c (process_label_constant): Likewise.
533         * config/tc-crx.c (strneq): Likewise.
535 2021-04-01  Martin Liska  <mliska@suse.cz>
537         * as.c (select_emulation_mode): Use startswith.
538         * config/m68k-parse.y: Likewise.
539         * config/obj-aout.c (obj_aout_type): Likewise.
540         * config/obj-elf.c (elf_common_parse): Likewise.
541         (obj_elf_section_type): Likewise.
542         (obj_elf_section_word): Likewise.
543         (obj_elf_section): Likewise.
544         (obj_elf_symver): Likewise.
545         (adjust_stab_sections): Likewise.
546         * config/obj-evax.c (evax_shorten_name): Likewise.
547         * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
548         * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
549         (aarch64_parse_features): Likewise.
550         (create_register_alias): Likewise.
551         (aarch64_data_in_code): Likewise.
552         (md_parse_option): Likewise.
553         * config/tc-alpha.c (s_alpha_section_word): Likewise.
554         (s_alpha_pdesc): Likewise.
555         * config/tc-arc.c (tokenize_extregister): Likewise.
556         * config/tc-arm.c (create_register_alias): Likewise.
557         (create_neon_reg_alias): Likewise.
558         (parse_ifimm_zero): Likewise.
559         (parse_qfloat_immediate): Likewise.
560         (arm_elf_section_type): Likewise.
561         (arm_parse_extension): Likewise.
562         (aeabi_set_public_attributes): Likewise.
563         (s_arm_arch_extension): Likewise.
564         (arm_data_in_code): Likewise.
565         (start_unwind_section): Likewise.
566         * config/tc-avr.c (avr_ldi_expression): Likewise.
567         * config/tc-csky.c (is_freglist_legal): Likewise.
568         (csky_s_section): Likewise.
569         * config/tc-d30v.c (do_assemble): Likewise.
570         * config/tc-dlx.c (parse_operand): Likewise.
571         * config/tc-epiphany.c (md_assemble): Likewise.
572         * config/tc-h8300.c (h8300_elf_section): Likewise.
573         (get_operand): Likewise.
574         * config/tc-hppa.c (pa_ip): Likewise.
575         (pa_level): Likewise.
576         (pa_space): Likewise.
577         * config/tc-i386.c (i386_mach): Likewise.
578         (md_assemble): Likewise.
579         (check_VecOperations): Likewise.
580         (i386_target_format): Likewise.
581         (i386_elf_section_type): Likewise.
582         * config/tc-ia64.c (start_unwind_section): Likewise.
583         (md_parse_option): Likewise.
584         (is_taken_branch): Likewise.
585         (idesc->name,): Likewise.
586         (note_register_values): Likewise.
587         (do_alias): Likewise.
588         * config/tc-m32c.c (insn_to_subtype): Likewise.
589         * config/tc-m68hc11.c (get_operand): Likewise.
590         (md_assemble): Likewise.
591         * config/tc-m68k.c (m68k_ip): Likewise.
592         (m68k_elf_suffix): Likewise.
593         * config/tc-mcore.c (mcore_s_section): Likewise.
594         * config/tc-metag.c (parse_get_set): Likewise.
595         (md_parse_option): Likewise.
596         * config/tc-microblaze.c (parse_imm): Likewise.
597         (check_got): Likewise.
598         (md_apply_fix): Likewise.
599         * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
600         (md_begin): Likewise.
601         (s_is_linkonce): Likewise.
602         (check_regno): Likewise.
603         (match_float_constant): Likewise.
604         (classify_vr4120_insn): Likewise.
605         (match_insn): Likewise.
606         (mips_after_parse_args): Likewise.
607         (s_change_sec): Likewise.
608         (s_option): Likewise.
609         (parse_code_option): Likewise.
610         (md_section_align): Likewise.
611         (nopic_need_relax): Likewise.
612         * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
613         * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
614         (mn10300_end_of_match): Likewise.
615         * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
616         * config/tc-nds32.c (nds32_parse_option): Likewise.
617         * config/tc-nds32.h (md_do_align): Likewise.
618         * config/tc-nios2.c (strprefix): Likewise.
619         (nios2_special_relocation_p): Likewise.
620         (nios2_parse_base_register): Likewise.
621         (nios2_cons): Likewise.
622         * config/tc-ns32k.c (addr_mode): Likewise.
623         * config/tc-pdp11.c (set_option): Likewise.
624         (parse_reg): Likewise.
625         (parse_ac5): Likewise.
626         (parse_op_no_deferred): Likewise.
627         (set_cpu_model): Likewise.
628         (set_machine_model): Likewise.
629         * config/tc-pj.c (md_operand): Likewise.
630         * config/tc-ppc.c (ppc_set_cpu): Likewise.
631         (ppc_arch): Likewise.
632         (ppc_section_type): Likewise.
633         * config/tc-s12z.c (tb_reg_rel): Likewise.
634         (tb_opr_rel): Likewise.
635         * config/tc-s390.c (s390_parse_cpu): Likewise.
636         (md_parse_option): Likewise.
637         * config/tc-score.c (s3_nopic_need_relax): Likewise.
638         (s3_pic_need_relax): Likewise.
639         * config/tc-score7.c (s7_nopic_need_relax): Likewise.
640         (s7_pic_need_relax): Likewise.
641         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
642         * config/tc-sparc.c (md_parse_option): Likewise.
643         (sparc_ip): Likewise.
644         (s_reserve): Likewise.
645         (s_common): Likewise.
646         (s_seg): Likewise.
647         (sparc_cons): Likewise.
648         * config/tc-tic54x.c (stag_add_field): Likewise.
649         (tic54x_endstruct): Likewise.
650         * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
651         * config/tc-v850.c (v850_comm): Likewise.
652         (md_begin): Likewise.
653         (md_assemble): Likewise.
654         * config/tc-vax.c (vax_cons): Likewise.
655         * config/tc-wasm32.c (wasm32_leb128): Likewise.
656         * config/tc-xstormy16.c (md_operand): Likewise.
657         * config/tc-xtensa.c (get_directive): Likewise.
658         (xg_instruction_matches_option_term): Likewise.
659         (is_unaligned_label): Likewise.
660         (cache_literal_section): Likewise.
661         * config/xtensa-relax.c (parse_precond): Likewise.
662         (parse_option_cond): Likewise.
663         (transition_applies): Likewise.
664         (wide_branch_opcode): Likewise.
665         * dw2gencfi.c: Likewise.
666         * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
667         * ehopt.c (get_cie_info): Likewise.
668         * input-file.c (input_file_open): Likewise.
669         * listing.c (listing_newline): Likewise.
670         (debugging_pseudo): Likewise.
671         * read.c (read_a_source_file): Likewise.
672         * write.c (adjust_reloc_syms): Likewise.
673         (compress_debug): Likewise.
674         (maybe_generate_build_notes): Likewise.
676 2021-03-31  Alan Modra  <amodra@gmail.com>
678         * itbl-lex-wrapper.c: Include as.h not sysdep.h.
679         * config/bfin-lex-wrapper.c: Likewise.
680         * itbl-lex.l: Don't include as.h.
681         * config/bfin-lex.l: Likewise.
683 2021-03-31  Alan Modra  <amodra@gmail.com>
685         * as.h (POISON_BFD_BOOLEAN): Define.
686         * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
687         * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
688         * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
689         * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
690         * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
691         * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
692         * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
693         * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
694         * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
695         * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
696         * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
697         * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
698         * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
699         * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
700         * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
701         * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
702         * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
703         * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
704         * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
705         * config/tc-metag.c, * config/tc-metag.h,
706         * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
707         * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
708         * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
709         * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
710         * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
711         * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
712         * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
713         * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
714         * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
715         * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
716         * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
717         * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
718         * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
719         * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
720         * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
721         * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
722         * config/tc-xstormy16.c, * config/tc-xstormy16.h,
723         * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
724         * config/tc-z8k.c, * config/xtensa-istack.h,
725         * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
726         * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
727         * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
728         * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
729         with bool, FALSE with false, and TRUE with true.
731 2021-03-31  Alan Modra  <amodra@gmail.com>
733         * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
734         * config/tc-crx.c: Likewise.
735         * config/tc-nds32.h: Likewise.
737 2021-03-30  Jan Beulich  <jbeulich@suse.com>
739         * config/tc-i386.c (build_modrm_byte): Change return type.
740         Change type of "default_seg". Use NULL. Adjust setting of
741         "default_seg".
742         (reg_ds, reg_es, reg_ss): New.
743         (struct _i386_insn): Change type of seg[].
744         (md_begin): Initialize reg_ds, reg_es, and reg_ss.
745         (swap_operands): Change type of "temp_seg".
746         (check_string): Adjust %es check.
747         (process_operands): Change type of "default_seg". Use NULL.
748         Adjust segment override processing..
749         (i386_att_operand): Adjust segment override handling.
750         * config/tc-i386-intel.c (i386_intel_operand): Likewise.
752 2021-03-30  Jan Beulich  <jbeulich@suse.com>
754         * config/tc-i386.c (reg_eax): New.
755         (md_begin): Initialize reg_eax.
756         * config/tc-i386-intel.c (i386_intel_simplify_register): Use
757         reg_eax.
758         (i386_intel_simplify): Likewise.
760 2021-03-30  Jan Beulich  <jbeulich@suse.com>
762         * config/tc-i386.c (reg_st0): New.
763         (md_begin): Convert to switch(). Initialize reg_st0. Don't
764         insert other st(N).
765         (parse_real_register): Adjust st(N) processing.
767 2021-03-30  Jan Beulich  <jbeulich@suse.com>
769         * config/tc-i386.c (rc_op): Delete.
770         (struct Rounding_Operation): Move ...
771         (struct _i386_insn): ... here. Change field "rounding".
772         (build_evex_prefix): Adjust rounding processing.
773         (swap_2_operands): Likewise.
774         (check_VecOperands): Likewise.
775         (RC_SAE_immediate): Likewise.
776         (optimize_encoding): Adjust check for rounding.
777         (build_modrm_byte): Likewise.
778         (output_imm): Likewise.
779         (md_assemble): Initialize rounding type.
781 2021-03-30  Jan Beulich  <jbeulich@suse.com>
783         * config/tc-i386.c (broadcast_op): Delete.
784         (struct Broadcast_Operation): Move ...
785         (struct _i386_insn): ... here. Change field "broadcast".
786         (match_mem_size): Adjust check for broadcast.
787         (optimize_encoding): Likewise.
788         (process_suffix): Likewise.
789         (build_evex_prefix): Adjust broadcast processing.
790         (swap_2_operands): Likewise.
791         (check_VecOperations): Likewise.
792         (match_template): Likewise.
793         (check_VecOperands): Likewise.
795 2021-03-30  Jan Beulich  <jbeulich@suse.com>
797         * config/tc-i386.c (reg_k0): New.
798         (mask_op): Delete.
799         (struct Mask_Operation): Move ...
800         (struct _i386_insn): ... here. Change field "mask".
801         (md_begin): Initialize reg_k0.
802         (build_evex_prefix): Adjust mask processing.
803         (swap_2_operands): Likewise.
804         (check_VecOperands): Likewise.
805         (check_VecOperations): Likewise.
806         (optimize_encoding): Adjust checks for masking.
807         (output_insn): Likewise.
809 2021-03-30  Jan Beulich  <jbeulich@suse.com>
811         * config/tc-i386.c (swap_2_operands): Switch parameters to
812         unsigned.
813         (struct RC_Operation): Switch operand field to unsigned.
814         (struct Mask_Operation): Likewise.
815         (struct Broadcast_Operation): Likewise.
816         (build_evex_prefix): Drop cast.
817         (check_VecOperands): Likewise.
818         (build_modrm_byte): Likewise.
819         (output_imm): Likewise.
820         (check_VecOperations): Add casts to unsigned.
822 2021-03-29  Jan Beulich  <jbeulich@suse.com>
824         * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
825         * testsuite/gas/i386/x86-64-avx-swap-2.d.
826         testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
828 2021-03-29  Jan Beulich  <jbeulich@suse.com>
830         * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
831         checks by opcodespace ones.
832         (insert_lfence_before): Likewise.
833         (maybe_fused_with_jcc_p): Likewise.
834         (add_branch_padding_frag_p): Likewise.
835         (output_disp): Likewise.
836         (load_insn_p): Re-arrange checks to key applicable ones off of
837         an opcodespace check.
838         (md_assemble): Adjust opcode checks.
839         (check_byte_reg): Likewise.
840         (process_operands): Likewise.
841         (i386_index_check): Likewise.
842         (process_suffix): Likewise. New local variable is_movx. Adjust
843         movsx/movzx and crc32 handling.
844         (output_insn): Adjust opcode checks. Drop no longer reachable
845         case labels. Output legacy encoding prefixes in addition to the
846         base_opcode byte(s). Rework counting of prefixes for extended
847         opcode maps.
848         * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
849         opcode checks.
851 2021-03-29  Alan Modra  <amodra@gmail.com>
853         * atof-generic.c (FALSE, TRUE): Don't define.
854         * config/obj-elf.h (FALSE, TRUE): Don't define.
855         * config/obj-som.h (FALSE, TRUE): Don't define.
856         * config/tc-hppa.h (FALSE, TRUE): Don't define.
857         * config/tc-pdp11.c (FALSE, TRUE): Don't define.
858         * config/tc-iq2000.h (obj_fix_adjustable): Delete.
859         * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
860         * config/tc-mt.h (obj_fix_adjustable): Delete.
861         * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
862         * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
863         (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
864         (tokenize_extregister): Likewise.
865         * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
866         (parse_operands_op, parse_operands, md_assemble): Likewise.
867         * config/tc-d10v.c (build_insn): Likewise.
868         * config/tc-score.c (s3_gen_insn_frag): Likewise.
869         * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
870         * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
871         * config/tc-z80.c (emit_byte): Likewise.
873 2021-03-29  Alan Modra  <amodra@gmail.com>
875         * config/tc-arm.c (struct arm_long_option_table <func>): Return
876         bfd_boolean.
877         * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
878         * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
879         with bfd_boolean.
880         (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
881         (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
882         (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
883         logical expressions.
884         (struct metag_long_option <func>): Return bfd_boolean.
885         (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
886         * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
887         * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
888         (no_operands, lex_force_match, lex_reg_list): Likewise.
889         (size_from_suffix): Return int.
890         (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
891         * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
893 2021-03-26  Jan Beulich  <jbeulich@suse.com>
895         * testsuite/gas/i386/x86-64-nosse2.s,
896         testsuite/gas/i386/x86-64-nosse2.l: New.
897         * testsuite/gas/i386/i386.exp: Run new test.
899 2021-03-25  Abid Qadeer  <abidh@codesourcery.com>
901         * testsuite/gas/nios2/brn.d: New.
902         * testsuite/gas/nios2/brn.d: New.
904 2021-03-25  Jan Beulich  <jbeulich@suse.com>
906         * config/tc-i386.c (match_template): Use t instead of i.tm.
908 2021-03-25  Jan Beulich  <jbeulich@suse.com>
910         * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
911         * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
912         colliding registers in the upper half of the space.
913         * testsuite/gas/i386/avx512f-nondef.d,
914         testsuite/gas/i386/vgather-check.d,
915         testsuite/gas/i386/x86-64-vgather-check.d,
916         testsuite/gas/i386/x86-64-vgather-check-error.l,
917         testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
918         expecations.
919         * testsuite/gas/i386/vgather-check-none.d,
920         testsuite/gas/i386/vgather-check-warn.d,
921         testsuite/gas/i386/x86-64-vgather-check-none.d,
922         testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
923         tests for expected dump output.
925 2021-03-25  Jan Beulich  <jbeulich@suse.com>
927         * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
928         without mask register.
929         * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
931 2021-03-25  Jan Beulich  <jbeulich@suse.com>
933         * config/tc-i386.c (md_assemble): Widen set of insns to avoid
934         swapping operands for.
935         * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
936         syntax tests.
937         * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
938         well as Intel syntax tests.
939         * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
940         expectations.
941         * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
942         Likewise. Drop passing --def-sym to as.
944 2021-03-25  Jan Beulich  <jbeulich@suse.com>
946         PR/gas 27419
947         * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
948         conversion to x32 mode.
949         * testsuite/gas/i386/ilp32/enqcmd.s,
950         testsuite/gas/i386/ilp32/enqcmd.d,
951         testsuite/gas/i386/ilp32/movdir.s,
952         testsuite/gas/i386/ilp32/movdir.d: New.
953         * testsuite/gas/i386/x86-64-enqcmd.s,
954         testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
955         cases.
956         * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
957         (%eip) cases.
958         * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
959         * testsuite/gas/i386/x86-64-enqcmd.d,
960         testsuite/gas/i386/x86-64-enqcmd-intel.d,
961         testsuite/gas/i386/x86-64-enqcmd-inval.l,
962         testsuite/gas/i386/x86-64-movdir.d,
963         testsuite/gas/i386/x86-64-movdir-intel.d,
964         testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
966 2021-03-25  Alan Modra  <amodra@gmail.com>
968         PR 27647
969         * testsuite/gas/ppc/a2.d: Update expected output.
970         * testsuite/gas/ppc/power8.d: Likewise.
972 2021-03-24  Jan Beulich  <jbeulich@suse.com>
974         * config/tc-i386.c (struct _i386_insn): New field
975         opcode_length.
976         (md_begin): Drop assertion.
977         (install_template): New.
978         (build_vex_prefix): Call install_template.
979         (match_template): Likewise.
980         (process_operands): Use new opcode_length field.
981         (output_jump): Likewise.
982         (output_insn): Likewise. Adjust psedo prefix check.
984 2021-03-24  Jan Beulich  <jbeulich@suse.com>
986         * config/tc-i386.c (md_begin): Add assertion.
987         (build_vex_prefix): Drop implied prefix calculation.
988         (build_evex_prefix): Likewise.
989         (optimize_encoding): Adjust opcode checks.
990         (load_insn_p): Also check opcodeprefix.
991         (match_template): Also check opcodespace.
992         (process_suffix): Likewise.
993         (process_operands): Likewise.
994         (output_insn): Likewise. Also check isprefix when discaring
995         standalone LOCK.
996         * config/tc-i386-intel.c (i386_intel_operand): Also check
997         opcodespace.
999 2021-03-24  Jan Beulich  <jbeulich@suse.com>
1001         * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
1002         base_opcode and extension_opcode.
1004 2021-03-23  Jan Beulich  <jbeulich@suse.com>
1006         * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
1008 2021-03-23  Jan Beulich  <jbeulich@suse.com>
1010         * config/tc-i386.c (output_i386_opcode): Invoke
1011         process_i386_cpu_flag() slightly later.
1012         (process_i386_opcodes): Likewise.
1014 2021-03-23  Jan Beulich  <jbeulich@suse.com>
1016         * config/tc-i386.c (pte): Print prefix and encoding space.
1017         (build_vex_prefix): Check opcodespace instead of opcodeprefix.
1018         (build_evex_prefix): Likewise.
1019         (load_insn_p): Likewise.
1021 2021-03-23  Jan Beulich  <jbeulich@suse.com>
1023         * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
1024         if()-s.
1025         (match_template, output_insn): Use PREFIX_NONE.
1027 2021-03-23  Jan Beulich  <jbeulich@suse.com>
1029         * config/tc-i386.c (i386_index_check): New local variable t.
1030         Correct MPX insn check.
1031         * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
1032         MPX insn check.
1033         * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
1034         index scaling by other than 1.
1035         * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1037 2021-03-22  Martin Liska  <mliska@suse.cz>
1039         * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
1040         (x86_64_section_word): Likewise.
1041         * config/tc-sparc.c (md_parse_option): Likewise.
1043 2021-03-19  Alan Modra  <amodra@gmail.com>
1045         * app.c (do_scrub_chars): Don't lose spaces before a slash.
1047 2021-03-18  Christian Groessler  <chris@groessler.org>
1049         * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
1050         Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
1052 2021-03-16  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1054         * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1055         (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1056         * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1057         * testsuite/gas/riscv/b-ext-64.d: Likewise.
1058         * testsuite/gas/riscv/b-ext.s: Likewise.
1059         * testsuite/gas/riscv/b-ext.d: Likewise.
1061 2021-03-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
1063         * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1064         * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1065         * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1066         * testsuite/gas/aarch64/sysreg-7.d: New test.
1067         * testsuite/gas/aarch64/sysreg-7.s: New test.
1069 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1071         * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1072         (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1073         (ppc_xcoff_tbss_section): New variables.
1074         (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1075         (ppc_data_csects): Removed.
1076         (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1077         ppc_xcoff_parse_cons): New functions.
1078         (md_being): Initialize XCOFF sections.
1079         (ppc_xcoff_suffix): Add support for TLS relocations
1080         (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1081         (ppc_change_csect): Handle XMC_TL, XMC_UL.  Correctly, add XMC_BS
1082         to .bss section.  Handle new XCOFF section variables.
1083         (ppc_comm): Likewise.
1084         (ppc_toc): Likewise.
1085         (ppc_symbol_new_hook): Likewise.
1086         (ppc_frob_symbol): Likewise.
1087         (ppc_fix_adjustable): Add tbss support.
1088         * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1089         (ppc_xcoff_parse_cons): Add prototype.
1090         (struct ppc_xcoff_section): New structure.
1092 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1094         * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1095         (MAP, MAP32, MAP64): New macros for XCOFF.
1096         (ppc_xcoff_fixup_addis): New function.
1097         (ppc_is_toc_sym): Handle XMC_TE.
1098         (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1099         BFD_RELOC_PPC_TOC16_LO.
1100         (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1101         (ppc_change_csect): Handle XMC_TE.
1102         (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1103         storage class.
1104         (ppc_symbol_new_hook): Handle XMC_TE.
1105         (ppc_frob_symbol): Likewise.
1106         (ppc_fix_adjustable): Likewise.
1107         (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1108         BFD_RELOC_PPC_TOC16_LO.
1110 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1112         * testsuite/gas/i386/avx512f-intel.d,
1113         testsuite/gas/i386/avx512f_vl-intel.d,
1114         testsuite/gas/i386/avx512pf-intel.d,
1115         testsuite/gas/i386/x86-64-avx512f-intel.d,
1116         testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1117         testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1119 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1121         * testsuite/gas/i386/prefetch.d,
1122         testsuite/gas/i386/prefetch-intel.d,
1123         testsuite/gas/i386/x86-64-prefetch.d,
1124         testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1125         * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1126         * testsuite/gas/i386/i386.exp: Run new test.
1128 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1130         * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1131         (md_assemble): Replace use of repprefixok, islockable, and
1132         notrackprefixok.
1133         (i386_index_check): Replace use of repprefixok.
1135 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1137         * testsuite/gas/i386/noreg64.s: Add sysexit.
1138         * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1139         sysexitl and sysexitq.
1140         * testsuite/gas/i386/noreg-intel64.l,
1141         testsuite/gas/i386/noreg64-data16.d,
1142         testsuite/gas/i386/noreg64-data16.e,
1143         testsuite/gas/i386/noreg64-rex64.d,
1144         testsuite/gas/i386/noreg64.d,
1145         testsuite/gas/i386/noreg64.l,
1146         testsuite/gas/i386/x86-64-sysenter-amd.d,
1147         testsuite/gas/i386/x86-64-sysenter-amd.l,
1148         testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1150 2021-02-26  Nick Clifton  <nickc@redhat.com>
1152         PR 27411
1153         * config/tc-arm.c (do_t_add_sub): Correct error message.
1154         * testsuite/gas/arm/pr27411.s: New test.
1155         * testsuite/gas/arm/pr27411.d: New test driver.
1156         * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1158 2021-02-24  Alan Modra  <amodra@gmail.com>
1160         PR 23691
1161         * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1162         (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1163         (TARGET_EXTRA_FILES): ..to here.  Add config/bfin-lex-wrapper.c,
1164         and use alongside TARGET_CPU_CFILES.
1165         (EXTRA_DIST): Update location of generated .c files.
1166         (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1167         (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1168         (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1169         (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1170         dependencies.
1171         (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1172         (itbl-parse.c, itbl-parse.h): Tidy.
1173         * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1174         * config/bfin-lex.l: Include config/bfin-parse.h.
1175         * configure.ac (extra_objects): Move object files corresponding
1176         to .y and .l files now in config/ to config/.
1177         * Makefile.in: Regenerate.
1178         * configure: Regenerate.
1179         * po/POTFILES.in: Regenerate.
1181 2021-02-19  Nick Clifton  <nickc@redhat.com>
1183         * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1184         misleading indentation.
1186 2021-02-19  Nelson Chu  <nelson.chu@sifive.com>
1188         PR 27158
1189         * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1190         (md_apply_fix): Likewise.
1191         (md_convert_frag_branch): Likewise.
1192         (validate_riscv_insn): Likewise.  Also arranged operands, including
1193         added C5 and C6 operands, and removed unused Ci and C< operands.
1194         * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1195         * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1196         * testsuite/gas/riscv/insn.s: Likewise.
1198 2021-02-18  Nelson Chu  <nelson.chu@sifive.com>
1200         * config/tc-riscv.c: Included cpu-riscv.h.
1201         (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1202         (struct riscv_csr_extra): Likewise.
1203         (struct riscv_ext_version): Likewise.
1204         (ext_version_table): Moved from opcodes/riscv-opc.c.
1205         (default_isa_spec): Updated type to riscv_spec_class.
1206         (default_priv_spec): Likewise.
1207         (riscv_set_default_isa_spec): Updated.
1208         (init_ext_version_hash): Likewise.
1209         (riscv_init_csr_hash): Likewise, also fixed indent.
1211 2021-02-17  Alan Modra  <amodra@gmail.com>
1213         * testsuite/gas/elf/section28.d: xfail h8300.
1215 2021-02-16  H.J. Lu  <hongjiu.lu@intel.com>
1217         PR gas/27412
1218         * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1219         when checking incorrect section attributes.
1220         * testsuite/gas/elf/elf.exp: Run section28 and section29.
1221         * testsuite/gas/elf/section28.d: New file.
1222         * testsuite/gas/elf/section28.s: Likewise.
1223         * testsuite/gas/elf/section29.d: Likewise.
1224         * testsuite/gas/elf/section29.s: Likewise.
1226 2021-02-16  Jan Beulich  <jbeulich@suse.com>
1228         * testsuite/gas/i386/sse-check.s,
1229         testsuite/gas/i386/sse2avx.s,
1230         testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1231         * testsuite/gas/i386/sse-check-error.l,
1232         testsuite/gas/i386/sse-check-warn.e,
1233         testsuite/gas/i386/sse-check.d,
1234         testsuite/gas/i386/sse2avx.d,
1235         testsuite/gas/i386/x86-64-sse-check-error.l,
1236         testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1237         * testsuite/gas/i386/property-cvtpi2pd.s,
1238         testsuite/gas/i386/property-cvtpi2pd.d,
1239         testsuite/gas/i386/property-cvtpi2ps.s,
1240         testsuite/gas/i386/property-cvtpi2ps.d: New.
1241         * testsuite/gas/i386/i386.exp: Run new tests.
1243 2021-02-16  Jan Beulich  <jbeulich@suse.com>
1245         * config/tc-i386.c (md_assemble): Use template rather than
1246         actuals when updating i.xstate.
1247         * testsuite/gas/i386/property-4.d,
1248         testsuite/gas/i386/property-5.d,
1249         testsuite/gas/i386/property-12.d: Adjust expectations.
1251 2021-02-16  Jan Beulich  <jbeulich@suse.com>
1253         * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1254         vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1255         * testsuite/gas/i386/property-ldmxcsr.s,
1256         testsuite/gas/i386/property-ldmxcsr.d,
1257         testsuite/gas/i386/property-vldmxcsr.s,
1258         testsuite/gas/i386/property-vldmxcsr.d,
1259         testsuite/gas/i386/property-vzeroall.s,
1260         testsuite/gas/i386/property-vzeroall.d: New.
1261         * testsuite/gas/i386/i386.exp: Run new tests.
1263 2021-02-16  Jan Beulich  <jbeulich@suse.com>
1265         * testsuite/gas/i386/i386.exp: Move bitness-independent property
1266         tests to bitness independent section.
1267         * testsuite/gas/i386/x86-64-property-2.d,
1268         testsuite/gas/i386/x86-64-property-3.d,
1269         testsuite/gas/i386/x86-64-property-4.d,
1270         testsuite/gas/i386/x86-64-property-5.d,
1271         testsuite/gas/i386/x86-64-property-6.d,
1272         testsuite/gas/i386/x86-64-property-10.d,
1273         testsuite/gas/i386/x86-64-property-11.d,
1274         testsuite/gas/i386/x86-64-property-12.d,
1275         testsuite/gas/i386/x86-64-property-13.d: Delete.
1277 2021-02-16  Jan Beulich  <jbeulich@suse.com>
1279         * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1280         movdir.s.
1281         * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1283 2021-02-16  Alan Modra  <amodra@gmail.com>
1285         PR 27426
1286         * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1287         in another place.
1289 2021-02-16  Alan Modra  <amodra@gmail.com>
1291         * read.c (demand_copy_C_string): Really check for embedded zeros.
1293 2021-02-15  Andreas Krebbel  <krebbel@linux.ibm.com>
1295         * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1296         * doc/c-s390.texi: Document arch14 march option.
1297         * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1298         * testsuite/gas/s390/zarch-arch14.d: New test.
1299         * testsuite/gas/s390/zarch-arch14.s: New test.
1301 2021-02-12  Nick Clifton  <nickc@redhat.com>
1303         * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1304         following.
1305         * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1307 2021-02-12  Alan Modra  <amodra@gmail.com>
1309         * testsuite/gas/all/pr27381.err: Don't match source file name.
1310         * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1311         * testsuite/gas/all/pr27384.err: Don't match source file name.
1312         Adjust line number.
1313         * testsuite/gas/all/pr27384.s: Add ".text" directive.
1314         * testsuite/gas/elf/pr27355.err: Don't match source file name.
1316 2021-02-11  Alan Modra  <amodra@gmail.com>
1318         * NEWS: Mention arm-symbianelf removal.
1320 2021-02-10  Nick Clifton  <nickc@redhat.com>
1322         * listing.c (buffer_line): Remove debugging code accidentally
1323         included with the fix for PR 27384.
1325 2021-02-09  Nick Clifton  <nickc@redhat.com>
1327         PR 27381
1328         * read.c (s_incbin): Check that the file to be included is a
1329         regular, non-directory file.
1330         * testsuite/gas/all/pr27381.s: New test source file.
1331         * testsuite/gas/all/pr27381.d: New test control file.
1332         * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1333         * testsuite/gas/all/gas.exp: Run the new test.
1335 2021-02-09  Alan Modra  <amodra@gmail.com>
1337         * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1338         * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1339         support.
1340         * config/te-symbian.h: Delete.
1341         * configure.tgt: Remove arm-*-symbianelf*.
1342         * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1343         target selection.
1344         * testsuite/gas/arm/arch4t.d: Likewise.
1345         * testsuite/gas/arm/got_prel.d: Likewise.
1346         * testsuite/gas/arm/mapdir.d: Likewise.
1347         * testsuite/gas/arm/mapmisc.d: Likewise.
1348         * testsuite/gas/arm/mapsecs.d: Likewise.
1349         * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1350         * testsuite/gas/arm/thumb-eabi.d: Likewise.
1351         * testsuite/gas/arm/thumb.d: Likewise.
1352         * testsuite/gas/arm/thumbrel.d: Likewise.
1353         * Makefile.in: Regenerate.
1354         * po/POTFILES.in: Regenerate.
1356 2021-02-09  Nick Clifton  <nickc@redhat.com>
1358         PR 27384
1359         * listing.c (listing_psize): Check the result of the width
1360         expression before assigning it to paper_width.
1361         * testsuite/gas/all/pr27384.s: New test source file.
1362         * testsuite/gas/all/pr27384.d: New test control file.
1363         * testsuite/gas/all/pr27384.err: Expected errors from new test.
1364         * testsuite/gas/all/gas.exp: Run the new test.
1366 2021-02-09  Nick Clifton  <nickc@redhat.com>
1368         PR 27355
1369         * testsuite/gas/elf/pr27355.s: New test source file.
1370         * testsuite/gas/elf/pr27355.d: New test control file.
1371         * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1372         * testsuite/gas/elf/elf.exp: Run the new test.
1374 2021-02-08  Mike Frysinger  <vapier@gentoo.org>
1376         * config/tc-tic54x (tic54x_mmregs): Rename to ...
1377         (tic54x_register_mmregs): ... this.  Change mmregs to tic54x_mmregs.
1378         (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1379         (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1380         cc2_codes, cc3_codes, status_bits, and misc_symbols.
1382 2021-02-08  Nick Clifton  <nickc@redhat.com>
1384         PR 27355
1385         * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1386         if it has not already been created.
1388 2021-02-04  Nelson Chu  <nelson.chu@sifive.com>
1390         * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1391         INSN_CLASS_ZB*.
1392         * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1393         * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1394         * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1396 2021-02-03  Andreas Krebbel  <krebbel@linux.ibm.com>
1398         * doc/c-s390.texi: Document vector instruction formats.
1400 2021-02-01  Emery Hemingway  <ehmry@posteo.net>
1402         * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1404 2021-02-01  Alan Modra  <amodra@gmail.com>
1406         PR 27283
1407         * config/tc-alpha.c (insert_operand): Delete dead code.
1409 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1411         PR gas/27243
1412         * config/tc-nios2.c (md_begin): Don't disable relaxation with
1413         --gdwarf-N.
1414         * testsuite/gas/nios2/relax.d: New file.
1415         * testsuite/gas/nios2/relax.s: Likewise.
1417 2021-01-26  Alan Modra  <amodra@gmail.com>
1419         * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1420         notarget all except hppa.  Comment.
1421         * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1422         * testsuite/gas/all/sleb128-4.d: Likewise.  Don't skip msp430.
1423         * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1424         * testsuite/gas/all/sleb128-7.d: Likewise.
1425         * testsuite/gas/all/sleb128-9.d: Likewise.
1426         * testsuite/gas/elf/bignums.d: Likewise.
1427         * testsuite/gas/elf/group0c.d: Likewise.
1428         * testsuite/gas/elf/group1a.d: Likewise.
1429         * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1430         * testsuite/gas/elf/section15.d: Likewise.
1431         * testsuite/gas/elf/section4.d: Likewise.
1432         * testsuite/gas/elf/section7.d: Likewise.
1433         * testsuite/gas/macros/irp.d: Likewise.
1434         * testsuite/gas/macros/repeat.d: Likewise.
1435         * testsuite/gas/macros/rept.d: Likewise.
1436         * testsuite/gas/macros/test2.d: Likewise.
1437         * testsuite/gas/macros/vararg.d: Likewise.
1438         * testsuite/gas/all/string.d: Use xfail rather than skip.
1439         * testsuite/gas/elf/missing-build-notes.d: Likewise.
1440         * testsuite/gas/elf/section0.d: Likewise.
1441         * testsuite/gas/elf/section1.d: Likewise.
1442         * testsuite/gas/elf/section10.d: Likewise.
1443         * testsuite/gas/elf/section11.d: Likewise.
1444         * testsuite/gas/elf/section6.d: Likewise.
1445         * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1446         * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1447         * testsuite/gas/macros/test3.d: Don't notarget nds32.
1449 2021-01-26  Alan Modra  <amodra@gmail.com>
1451         * testsuite/gas/all/byte.d,
1452         * testsuite/gas/all/byte.l,
1453         * testsuite/gas/all/byte.s: Delete.
1454         * testsuite/gas/all/gas.exp: Don't run byte test.
1456 2021-01-26  Alan Modra  <amodra@gmail.com>
1458         PR 27282
1459         * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1460         * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1462 2021-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1464         PR gas/27228
1465         * testsuite/gas/elf/elf.exp: Run pr27228.
1466         * testsuite/gas/elf/pr27228.d: New file.
1467         * testsuite/gas/elf/pr27228.s: Likewise.
1469 2021-01-24  Alan Modra  <amodra@gmail.com>
1471         PR 27228
1472         * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1473         is defined.
1475 2021-01-21  Alan Modra  <amodra@gmail.com>
1477         PR 27221
1478         * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1479         line number info when gas is generating it.
1480         * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1481         * testsuite/gas/m68hc11/indexed12.d: Likewise.
1482         * testsuite/gas/elf/elf.exp: Don't run warn-2.
1483         * gas/testsuite/gas/elf/warn-2.s: Delete.
1485 2021-01-21  Alan Modra  <amodra@gmail.com>
1487         PR 27218
1488         * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1489         (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1490         error for negative file numbers.
1492 2021-01-20  Alan Modra  <amodra@gmail.com>
1494         * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1495         * testsuite/gas/ppc/test1elf32.d: Likewise.
1496         * testsuite/gas/ppc/test1elf64.d: Likewise.
1498 2021-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1500         PR gas/27195
1501         * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1502         needed.
1503         (dwarf2_directive_filename): Likewise.
1504         (dwarf2_directive_loc): Likewise.
1505         * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1506         * testsuite/gas/lns/lns-diag-1.l: Remove the
1507         "Error: file number less than one" errors.
1509 2021-01-18  Alan Modra  <amodra@gmail.com>
1511         PR 27198
1512         * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1513         * testsuite/gas/i386/pr27198.d,
1514         * gas/testsuite/gas/i386/pr27198.err,
1515         * gas/testsuite/gas/i386/pr27198.s: New test.
1516         * gas/testsuite/gas/i386/i386.exp: Run it.
1518 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1520         * config/tc-riscv.c: Indent and GNU coding standards tidy,
1521         also aligned the code.
1522         * config/tc-riscv.h: Likewise.
1524 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1526         * config/tc-riscv.c: Error and warning messages tidy.
1527         * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1528         * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1529         * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1530         * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1531         * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1532         * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1533         * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1535 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1537         * config/tc-riscv.c: Comments tidy and improvement.  Also update
1538         comment "fallthru" to "Fall through" that end with a period and
1539         two spaces.
1541 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1543         * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1544         Delete warning that these are only available with ELF targets.
1545         * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1546         * read.c (potable): ... here.
1548 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1550         * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1551         * Makefile.in: Regenerated.
1553 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1555         * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1556         (parse_int): Mark char_bag const.
1558 2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1560         PR gas/27178
1561         * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1562         Don't generate GOT_symbol for PLT relocations.
1563         * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1564         * testsuite/gas/i386/no-got.d: New file.
1565         * testsuite/gas/i386/no-got.s: Likewise.
1566         * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1567         * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1569 2021-01-13  Alan Modra  <amodra@gmail.com>
1571         * Makefile.in: Regenerate.
1572         * Makefile.in: Regenerate.
1574 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1576         PR binutils/26792
1577         * configure.ac: Use GNU_MAKE_JOBSERVER.
1578         * aclocal.m4: Regenerated.
1579         * configure: Likewise.
1581 2021-01-12  Nick Clifton  <nickc@redhat.com>
1583         * po/fr.po: Updated French translation.
1585 2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1587         PR ld/27173
1588         * configure: Regenerated.
1590 2021-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1592         * NEWS: Remove CSRE.
1593         * config/tc-aarch64.c (parse_csr_operand): Delete.
1594         (parse_operands): Delete handling of
1595         AARCH64_OPND_CSRE_CSR.
1596         (aarch64_features): Remove csre.
1597         * doc/c-aarch64.texi: Remove CSRE.
1598         * testsuite/gas/aarch64/csre.d: Delete.
1599         * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1600         * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1601         * testsuite/gas/aarch64/csre_csr.s: Likewise.
1602         * testsuite/gas/aarch64/csre_csr.d: Likewise.
1603         * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1604         * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1605         * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1607 2021-01-11  Nick Clifton  <nickc@redhat.com>
1609         * po/uk.po: Updated Ukranian translation.
1611 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1613         * configure: Regenerated.
1615 2021-01-09  Nick Clifton  <nickc@redhat.com>
1617         * configure: Regenerate.
1618         * po/gas.pot: Regenerate.
1620 2021-01-09  Nick Clifton  <nickc@redhat.com>
1622         * 2.36 release branch crated.
1624 2021-01-08  Peter Bergner  <bergner@linux.ibm.com>
1626         * testsuite/gas/ppc/rop-checks.d,
1627         * testsuite/gas/ppc/rop-checks.l,
1628         * testsuite/gas/ppc/rop-checks.s,
1629         * testsuite/gas/ppc/rop.d,
1630         * testsuite/gas/ppc/rop.s: New tests.
1631         * testsuite/gas/ppc/ppc.exp: Run them.
1633 2021-01-09  Alan Modra  <amodra@gmail.com>
1635         * configure: Regenerate.
1637 2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1639         * configure: Regenerate.
1641 2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1643         PR 27109
1644         * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1645         section symbol.
1646         * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1647         * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1648         on the section symbol.
1649         (set_symtab): Don't generate unused section symbols.
1650         (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1651         on the section symbol.
1652         * config/obj-elf.c (elf_adjust_symtab): Call
1653         symbol_mark_used_in_reloc on the group signature symbol.
1654         * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1655         from expected output.
1656         * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1657         is_elf_unused_section_symbols.
1658         * testsuite/gas/elf/section2.e: Updated.
1659         * testsuite/gas/elf/section2.e-unused: New file.
1660         * testsuite/gas/elf/symver.d: Remove unused section symbols.
1661         * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1662         * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1663         * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1664         * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1665         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1666         * testsuite/gas/i386/size-1.d: Likewise.
1667         * testsuite/gas/i386/size-3.d: Likewise.
1668         * testsuite/gas/i386/svr4.d: Likewise.
1669         * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1670         * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1671         * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1672         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1674 2021-01-07  Philipp Tomsich  <prt@gnu.org>
1676         * config/tc-riscv.c (riscv_multi_subset_supports): Added
1677         INSN_CLASS_ZIHINTPAUSE.
1678         * testsuite/gas/riscv/pause.d: New testcase.  Adding coverage for
1679         the pause hint instruction.
1680         * testsuite/gas/riscv/pause.s: Likewise.
1682 2021-01-07  Claire Xenia Wolf  <claire@symbioticeda.com>
1683             Jim Wilson  <jimw@sifive.com>
1684             Andrew Waterman  <andrew@sifive.com>
1685             Maxim Blinov  <maxim.blinov@embecosm.com>
1686             Kito Cheng  <kito.cheng@sifive.com>
1687             Nelson Chu  <nelson.chu@sifive.com>
1689         * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1690         (riscv_get_default_ext_version): Do not check the default_isa_spec when
1691         the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1692         * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1693         * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1694         * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1696 2021-01-06  Alan Modra  <amodra@gmail.com>
1698         * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1700 2021-01-06  Alan Modra  <amodra@gmail.com>
1702         * testsuite/gas/macros/app1.d: xfail tic30.
1703         * testsuite/gas/macros/app2.d: Likewise.
1704         * testsuite/gas/macros/app3.d: Likewise.
1705         * testsuite/gas/macros/app4.d: Likewise.
1707 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1709         * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1710         * doc/c-riscv.texi: Likewise.
1712 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1714         * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1715         to littleriscv.
1716         * testsuite/gas/riscv/li64.d: Likewise.
1717         * testsuite/gas/riscv/lla32.d: Likewise.
1718         * testsuite/gas/riscv/lla64.d: Likewise.
1719         * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1720         * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1721         * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1722         * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1723         * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1724         * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1725         * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1727 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1729         * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1730         elf32-bigriscv.
1731         (install_insn): Always write instructions as little endian.
1732         (riscv_make_nops): Likewise.
1733         (md_convert_frag_branch): Likewise.
1734         (md_number_to_chars): Write data in target endianness.
1735         (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1736         (md_parse_option): Handle the endian options.
1737         * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1738         already defined.
1739         * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1741 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1743         PR ld/26256
1744         * config/obj-elf.c (obj_elf_change_section): Also filter out
1745         SHF_LINK_ORDER.
1747 2021-01-04  Alan Modra  <amodra@gmail.com>
1749         PR 27102
1750         * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1751         message and register symbol error message.
1753 2021-01-04  Alan Modra  <amodra@gmail.com>
1755         PR 27101
1756         * read.c (s_align): Use a large enough type for "align" to hold
1757         the result of get_absolute_expression.
1759 2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
1761         * config/tc-i386.c: Correct comment spelling.
1762         * config/tc-riscv.c: Likewise.
1763         * config/tc-s390.c: Correct comment grammar.
1764         * doc/c-i386.texi: Correct spelling.
1765         * doc/c-s390.texi: Correct grammar.
1767 2021-01-01  Alan Modra  <amodra@gmail.com>
1769         Update year range in copyright notice of all files.
1771 2021-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
1773         * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1775 For older changes see ChangeLog-2020
1777 Copyright (C) 2021 Free Software Foundation, Inc.
1779 Copying and distribution of this file, with or without modification,
1780 are permitted in any medium without royalty provided the copyright
1781 notice and this notice are preserved.
1783 Local Variables:
1784 mode: change-log
1785 left-margin: 8
1786 fill-column: 74
1787 version-control: never
1788 End: