1 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
3 * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
4 * testsuite/gas/ppc/vsx.s: Likewise.
6 2021-05-27 Alan Modra <amodra@gmail.com>
8 * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
9 (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
12 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
15 * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
16 with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
18 (set_16bit_gcc_code_flag): Likewise.
19 (x86_cleanup): Always generate the GNU property note if
20 x86_feature_2_used isn't 0.
21 * testsuite/gas/i386/code16-2.d: New file.
22 * testsuite/gas/i386/code16-2.s: Likewise.
23 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
24 * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
26 2021-05-26 Sebastien Villemot <sebastien@debian.org>
29 * doc/c-i386.texi: Replace movsb with movsxb as an alias for
32 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
34 * config/tc-riscv.c (riscv_set_arch): Set
35 check_unknown_prefixed_ext to true for assembler.
37 2021-05-25 Tamar Christina <tamar.christina@arm.com>
40 * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
41 (relax_adr): Thumb symbols 4 bytes.
42 * testsuite/gas/arm/pr25235.d: New test.
43 * testsuite/gas/arm/pr25235.s: New test.
45 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
48 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
49 will choose ilp32e abi for rv32e. Besides, report errors for the
50 invalid march and mabi combinations.
51 * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
52 ilp32e abi for rve extension.
53 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
54 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
55 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
56 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
57 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
58 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
59 Renamed all mabi testcases to their march-mabi settings.
61 2021-05-22 Alan Modra <amodra@gmail.com>
64 * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
65 adjustment. Add assertion.
66 * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
69 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
71 * config/tc-z80.c (emit_data_val): Warn on constant overflow.
72 (signed_overflow): New function.
73 (unsigned_overflow): New function.
74 (is_overflow): Use new functions.
75 (md_apply_fix): Use signed_overflow.
76 * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
77 * testsuite/gas/z80/ez80_isuf.s: Likewise.
78 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
80 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
83 * Makefile.am (ZLIB): Define.
84 (as_new_LDADD): Add it.
85 * Makefile.in: Regenerate.
87 2021-05-17 Alex Coplan <alex.coplan@arm.com>
89 * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
90 into the same GPR twice.
91 * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
92 * testsuite/gas/arm/mve-vmov-3.d: New test.
93 * testsuite/gas/arm/mve-vmov-3.s: New test.
95 2021-05-12 Alan Modra <amodra@gmail.com>
97 * testsuite/gas/elf/dwarf-5-file0.d: Update.
98 * testsuite/gas/i386/dwarf5-line-1.d: Update.
100 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
103 * config/tc-z80.c (emit_ld_r_m): Report an illegal load
105 * testsuite/gas/z80/ill_ops.s: New test source file.
106 * testsuite/gas/z80/ill_ops.d: New test driver.
107 * testsuite/gas/z80/ill_ops.l: New test error output.
109 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
112 * config/tc-z80.c (emit_data_val): Add support for 8-bit and
114 * testsuite/gas/z80/z80_reloc.a: Update tests.
115 * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
117 2021-05-08 Mike Frysinger <vapier@gentoo.org>
119 * doc/Makefile.am (html-local, as/index.html): New targets.
120 * doc/Makefile.in: Regenerate.
122 2021-05-08 Mike Frysinger <vapier@gentoo.org>
124 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
125 * doc/Makefile.in: Regenerate.
127 2021-05-07 Nick Clifton <nickc@redhat.com>
130 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
131 (obj_elf_bss): New function. Change to the .bss section.
132 Support an optional subsection number.
133 (obj_elf_change_section): Call obj_elf_section_change_hook.
134 (obj_elf_section): Likewise.
135 (obj_elf_data): Likewise.
136 (obj_elf_text): Likewise.
137 (obj_elf_struct): Likewise.
138 (obj_elf_subsection): Likewise.
139 (obj_elf_previous): Likewise.
140 * config/obj-elf.h (obj_elf_bss): Prototype.
141 * doc/as.texi (Bss): New node.
143 2021-05-07 Clément Chigot <clement.chigot@atos.net>
145 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
146 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
147 (coff_frob_section): Likewise.
148 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
149 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
150 SA_SET_SECT_NRELOC) New defines.
151 (SET_SECTION_RELOCS): Adjust for C_DWARF.
152 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
153 (ppc_adjust_symtab): Reorder C_DWARF symbols.
154 * testsuite/gas/ppc/aix.exp: New tests.
155 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
156 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
157 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
159 * config/tc-ppc.c (ppc_function): Update comment for
161 (ppc_frob_symbol): Remove ppc_last_function check.
162 Make sure coff_last_function is reset.
163 Correctly set fsize when not provided in .function.
164 * testsuite/gas/ppc/aix.exp: New tests.
165 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
166 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
167 * testsuite/gas/ppc/xcoff-function-1.s: New test.
169 2021-05-07 Jan Beulich <jbeulich@suse.com>
171 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
172 * testsuite/gas/i386/i386.exp: Run new test.
174 2021-05-07 Jan Beulich <jbeulich@suse.com>
176 * config/tc-i386.c (output_disp): Use disps field instead of
179 2021-05-07 Jan Beulich <jbeulich@suse.com>
181 * config/tc-i386.c (i386_finalize_immediate): Move register
183 (i386_immediate): ... here.
185 2021-05-07 Jan Beulich <jbeulich@suse.com>
187 * config/tc-i386.c (optimize_imm): Drop redundant masking.
188 Re-arrange operand type accumulation.
190 2021-05-06 Stafford Horne <shorne@gmail.com>
193 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
194 * testsuite/gas/or1k/reloc-1.d: Add test result for new
197 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
200 * testsuite/gas/riscv/a-ext-64.d: New testcase.
201 * testsuite/gas/riscv/a-ext-64.s: Likewise.
202 * testsuite/gas/riscv/a-ext.d: Likewise.
203 * testsuite/gas/riscv/a-ext.s: Likewise.
205 2021-05-03 Jan Beulich <jbeulich@suse.com>
207 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
209 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
210 Add two further .long and an .equ.
211 * testsuite/gas/i386/secrel.d: Adjust expecations.
213 2021-05-03 Jan Beulich <jbeulich@suse.com>
215 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
216 Convert Windows to UNIX EOL.
218 2021-05-03 Jan Beulich <jbeulich@suse.com>
220 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
221 variant into ELF one.
223 2021-05-03 Alan Modra <amodra@gmail.com>
225 * testsuite/gas/elf/section25.s: Don't start directives in first
227 * testsuite/gas/elf/section26.s: Likewise.
229 2021-04-29 Jan Beulich <jbeulich@suse.com>
231 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
232 * testsuite/gas/i386/lea64.d,
233 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
234 * testsuite/gas/i386/x86-64-rip-inval-1.s,
235 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
237 2021-04-29 Jan Beulich <jbeulich@suse.com>
239 * config/tc-i386.c (i386_validate_fix): Change return type to
240 int. Short-circuit BFD_RELOC_SIZE* handling.
241 (tc_gen_reloc): New local variable sym. Extend logic when
242 processing BFD_RELOC_SIZE*.
243 * config/tc-i386.f (i386_validate_fix): Change return type to
245 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
247 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
248 testsuite/gas/i386/size-5b.d: New.
249 * testsuite/gas/i386/i386.exp: Run new tests.
251 2021-04-29 Jan Beulich <jbeulich@suse.com>
253 * config/tc-i386.c (tc_gen_reloc): Use section size for section
254 symbols when resolving BFD_RELOC_SIZE*.
255 * testsuite/gas/i386/size-2.s: Add section size cases.
256 * testsuite/gas/i386/size-2.d,
257 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
259 2021-04-28 Jan Beulich <jbeulich@suse.com>
260 H.J. Lu <hjl.tools@gmail.com>
263 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
264 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
265 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
266 (md_estimate_size_before_relax): Move local variable fixP. Set
267 it from fix_new() return values. Mark 4-byte relocs as signed
269 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
270 * testsuite/gas/i386/x86-64-rip-2.s,
271 * testsuite/gas/i386/x86-64-rip-2.d,
272 * testsuite/gas/i386/x86-64-rip-inval-1.s,
273 * testsuite/gas/i386/x86-64-rip-inval-1.l,
274 * testsuite/gas/i386/x86-64-rip-inval-2.s,
275 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
276 * testsuite/gas/i386/i386.exp: Run new tests.
278 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
280 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
282 2021-04-26 Jan Beulich <jbeulich@suse.com>
284 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
287 2021-04-26 Jan Beulich <jbeulich@suse.com>
289 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
290 overflow check to 64-bit objects.
292 2021-04-26 Jan Beulich <jbeulich@suse.com>
294 * config/tc-i386.c (want_disp32): Also check for SIZE32.
295 (optimize_encoding): Handle LEA.
296 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
297 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
299 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
300 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
301 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
303 * testsuite/gas/i386/i386.exp: Run new tests.
305 2021-04-26 Jan Beulich <jbeulich@suse.com>
307 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
309 * testsuite/gas/i386/x86-64-addr32-bad.s,
310 testsuite/gas/i386/x86-64-addr32-bad.l: New.
311 * testsuite/gas/i386/i386.exp: Run new test.
313 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
315 * testsuite/gas/elf/section25.d: Run it everywhere.
316 * testsuite/gas/elf/section26.d: Likewise.
317 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
319 2021-04-23 JĂ©rĂ´me Gardou <jerome.gardou@gmail.com>
321 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
322 optional "code" argument.
324 2021-04-23 Jan Beulich <jbeulich@suse.com>
326 * config/tc-i386.c (want_disp32): New.
327 (md_assemble): Use it.
328 (optimize_disp): Likewise.
329 (build_modrm_byte): Likewise.
331 2021-04-23 Jan Beulich <jbeulich@suse.com>
333 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
335 (md_assemble): ... here.
337 2021-04-23 Jan Beulich <jbeulich@suse.com>
339 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
340 Move up setting of disp32.
342 2021-04-23 Jan Beulich <jbeulich@suse.com>
344 * config/tc-i386.c (pe): Don't truncate expression value.
345 (i386_finalize_displacement): Likewise.
347 2021-04-21 Nick Clifton <nickc@redhat.com>
349 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
350 for named section symbols.
351 * testsuite/gas/arm/thumbver.d: Likewise.
352 * testsuite/gas/bfin/loop_temps.d: Likewise.
353 * testsuite/gas/elf/section2.e-arc: Likewise.
354 * testsuite/gas/elf/section2.e-arm: Likewise.
355 * testsuite/gas/elf/section2.e-csky: Likewise.
356 * testsuite/gas/elf/section2.e-m32r: Likewise.
357 * testsuite/gas/elf/section2.e-mips: Likewise.
358 * testsuite/gas/elf/section2.e-msp430: Likewise.
359 * testsuite/gas/elf/section2.e-riscv: Likewise.
360 * testsuite/gas/elf/section2.e-rl78: Likewise.
361 * testsuite/gas/elf/section2.e-rx: Likewise.
362 * testsuite/gas/elf/section2.e-score: Likewise.
363 * testsuite/gas/elf/section2.e-tic6x: Likewise.
364 * testsuite/gas/elf/section2.e-unused: Likewise.
365 * testsuite/gas/elf/section2.e-v850: Likewise.
366 * testsuite/gas/elf/section2.e-xtensa: Likewise.
367 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
368 * testsuite/gas/ia64/alias.d: Likewise.
369 * testsuite/gas/ia64/global.d: Likewise.
370 * testsuite/gas/microblaze/relax_size.elf: Likewise.
371 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
372 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
373 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
374 * testsuite/gas/mmix/bspec-1.d: Likewise.
375 * testsuite/gas/mmix/byte-1.d: Likewise.
376 * testsuite/gas/mmix/comment-1.d: Likewise.
377 * testsuite/gas/mmix/loc-1.d: Likewise.
378 * testsuite/gas/mmix/loc-2.d: Likewise.
379 * testsuite/gas/mmix/loc-3.d: Likewise.
380 * testsuite/gas/mmix/loc-4.d: Likewise.
381 * testsuite/gas/mmix/loc-5.d: Likewise.
382 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
384 2021-04-20 Clément Chigot <clement.chigot@atos.net>
387 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
388 (ppc_fix_adjustable): Manage fx_subsy part.
389 (tc_gen_reloc): Create second relocation when both
390 fx_addsy and fx_subsy are provided.
391 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
392 (MAX_RELOC_EXPANSION): Likewise.
393 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
394 (UNDEFINED_DIFFERENCE_OK): Likewise
395 * testsuite/gas/all/gas.exp: Skip difference between two
396 undefined symbols test.
398 2021-04-19 Nick Clifton <nickc@redhat.com>
400 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
401 targets which should skip the undefined symbols test.
403 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
406 * testsuite/gas/aarch64/rme.d: Update test.
407 * testsuite/gas/aarch64/rme.s: Update test.
409 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
411 * testsuite/gas/aarch64/rme.d: Update test.
412 * testsuite/gas/aarch64/rme.s: Update test.
414 2021-04-19 Jan Beulich <jbeulich@suse.com>
416 * as.h (sprint_value): Delete.
417 * messages.c (sprint_value): Likewise.
418 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
419 place of sprint_value.
420 * config/tc-s390.c (s390_insert_operand): Likewise.
421 * doc/internals.texi (sprint_value): Delete section.
422 * write.c (fixup_segment): Likewise.
423 (relax_segment): Likewise.
425 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
427 * testsuite/gas/aarch64/rme-invalid.d: New test.
428 * testsuite/gas/aarch64/rme-invalid.l: New test.
429 * testsuite/gas/aarch64/rme-invalid.s: New test.
430 * testsuite/gas/aarch64/rme.d: New test.
431 * testsuite/gas/aarch64/rme.s: New test.
433 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
436 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
437 * testsuite/gas/riscv/shamt-32.d: New testcase.
438 * testsuite/gas/riscv/shamt-32.l: Likewise.
439 * testsuite/gas/riscv/shamt-32.s: Likewise.
440 * testsuite/gas/riscv/shamt-64.d: Likewise.
441 * testsuite/gas/riscv/shamt-64.l: Likewise.
442 * testsuite/gas/riscv/shamt-64.s: Likewise.
444 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
446 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
448 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
450 2021-04-14 Alan Modra <amodra@gmail.com>
453 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
454 (select_cie_for_fde): ..here. Simplify.
456 2021-04-14 Alan Modra <amodra@gmail.com>
459 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
460 DW_CFA_GNU_window_save and DW_CFA_restore_state.
462 2021-04-13 Alan Modra <amodra@gmail.com>
464 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
465 write to $srcdir. Use gas_host_run and read output file rather
466 than gas_start/gas_finish.
468 2021-04-12 Alan Modra <amodra@gmail.com>
470 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
471 (md_assemble): Likewise. Handle bignum operands.
472 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
474 * expr.c: Delete unnecessary forward declarations.
475 (generic_bignum_to_int32): Return uint32_t.
476 (generic_bignum_to_int64): Return uint64_t. Compile always.
477 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
478 clear X_extrabit for unary '!'.
479 * expr.h (generic_bignum_to_int32): Declare.
480 (generic_bignum_to_int64): Declare.
481 * testsuite/gas/ppc/prefix-pcrel.s,
482 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
484 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
486 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
487 march-fail-porder-x-std.d.
488 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
489 march-fail-porder-z-std.d.
490 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
491 march-fail-porder-x-z.d.
492 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
494 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
495 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
496 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
497 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
498 march-fail-single-char-h.d.
499 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
500 march-fail-single-char-s.d.
501 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
502 march-fail-single-char-x.d.
503 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
504 march-fail-single-char-z.d.
505 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
506 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
507 march-fail-single-prefix.l.
508 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
509 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
510 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
512 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
514 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
515 diagnostic messages for LD/ST Exclusive instructions.
516 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
517 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
520 2021-04-09 Alan Modra <amodra@gmail.com>
522 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
523 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
524 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
526 2021-04-08 Alan Modra <amodra@gmail.com>
528 * testsuite/gas/ppc/pr27676.d,
529 * testsuite/gas/ppc/pr27676.s: New test.
530 * testsuite/gas/ppc/ppc.exp: Run it.
531 * testsuite/gas/ppc/dcbt.d: Update.
532 * testsuite/gas/ppc/power4_32.d: Update.
534 2021-04-07 Alan Modra <amodra@gmail.com>
537 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
539 2021-04-06 Nick Clifton <nickc@redhat.com>
542 * config/tc-aarch64.c (my_get_expression): Rename to
543 aarch64_get_expression. Add a fifth argument to enable deferring
544 of expression resolution.
545 (parse_typed_reg): Update calls to my_get_expression.
546 (parse_vector_reg_list): Likewise.
547 (parse_immediate_expression): Likewise.
548 (parse_big_immediate): Likewise.
549 (parse_shift): Likewise.
550 (parse_shifter_operand_imm): Likewise.
551 (parse_operands): Likewise.
552 (parse_shifter_operand_reloc): Update calls to my_get_expression
553 and call aarch64_force_reloc to determine the value of the new
555 (parse_address_main): Likewise.
556 (parse_half): Likewise.
557 (parse_adrp): Likewise.
558 (aarch64_force_reloc): New function. Contains code extracted from...
559 (aarch64_force_relocation): ... here.
560 * testsuite/gas/aarch64/pr27217.s: New test case.
561 * testsuite/gas/aarch64/pr27217.d: New test driver.
563 2021-04-06 Jan Beulich <jbeulich@suse.com>
565 * write.c (fixup_segment): Move add_symbol_segment declaration
568 2021-04-05 Alan Modra <amodra@gmail.com>
570 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
571 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
572 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
573 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
574 strstr, or vsnprintf declarations.
575 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
576 * as.h: Don't include alloca-conf.h, include config.h instead.
577 Include string.h, stdlib.h, errno.h unconditionally. Remove
578 various fallback declarations.
579 * asintl.h: Don't test HAVE_LOCALE_H.
580 * as.c: Don't test HAVE_SETLOCALE.
581 * dwarf2dbg.c: Include limits.h unconditionally.
584 * symbols.c: Likewise.
585 * config/tc-cr16.c: Likewise.
586 * config/tc-d30v.c: Likewise.
587 * config/tc-i386.c: Likewise.
588 * config/tc-ia64.c: Likewise.
589 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
590 * config.in: Regenerate.
591 * configure: Regenerate.
592 * Makefile.in: Regenerate.
593 * doc/Makefile.in: Regenerate.
595 2021-04-01 Martin Liska <mliska@suse.cz>
597 * config/obj-coff.c (strneq): Remove strneq and use startswith.
598 (weak_is_altname): Likewise.
599 (obj_coff_section): Likewise.
600 * config/tc-cr16.c (process_label_constant): Likewise.
601 * config/tc-crx.c (strneq): Likewise.
603 2021-04-01 Martin Liska <mliska@suse.cz>
605 * as.c (select_emulation_mode): Use startswith.
606 * config/m68k-parse.y: Likewise.
607 * config/obj-aout.c (obj_aout_type): Likewise.
608 * config/obj-elf.c (elf_common_parse): Likewise.
609 (obj_elf_section_type): Likewise.
610 (obj_elf_section_word): Likewise.
611 (obj_elf_section): Likewise.
612 (obj_elf_symver): Likewise.
613 (adjust_stab_sections): Likewise.
614 * config/obj-evax.c (evax_shorten_name): Likewise.
615 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
616 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
617 (aarch64_parse_features): Likewise.
618 (create_register_alias): Likewise.
619 (aarch64_data_in_code): Likewise.
620 (md_parse_option): Likewise.
621 * config/tc-alpha.c (s_alpha_section_word): Likewise.
622 (s_alpha_pdesc): Likewise.
623 * config/tc-arc.c (tokenize_extregister): Likewise.
624 * config/tc-arm.c (create_register_alias): Likewise.
625 (create_neon_reg_alias): Likewise.
626 (parse_ifimm_zero): Likewise.
627 (parse_qfloat_immediate): Likewise.
628 (arm_elf_section_type): Likewise.
629 (arm_parse_extension): Likewise.
630 (aeabi_set_public_attributes): Likewise.
631 (s_arm_arch_extension): Likewise.
632 (arm_data_in_code): Likewise.
633 (start_unwind_section): Likewise.
634 * config/tc-avr.c (avr_ldi_expression): Likewise.
635 * config/tc-csky.c (is_freglist_legal): Likewise.
636 (csky_s_section): Likewise.
637 * config/tc-d30v.c (do_assemble): Likewise.
638 * config/tc-dlx.c (parse_operand): Likewise.
639 * config/tc-epiphany.c (md_assemble): Likewise.
640 * config/tc-h8300.c (h8300_elf_section): Likewise.
641 (get_operand): Likewise.
642 * config/tc-hppa.c (pa_ip): Likewise.
643 (pa_level): Likewise.
644 (pa_space): Likewise.
645 * config/tc-i386.c (i386_mach): Likewise.
646 (md_assemble): Likewise.
647 (check_VecOperations): Likewise.
648 (i386_target_format): Likewise.
649 (i386_elf_section_type): Likewise.
650 * config/tc-ia64.c (start_unwind_section): Likewise.
651 (md_parse_option): Likewise.
652 (is_taken_branch): Likewise.
653 (idesc->name,): Likewise.
654 (note_register_values): Likewise.
655 (do_alias): Likewise.
656 * config/tc-m32c.c (insn_to_subtype): Likewise.
657 * config/tc-m68hc11.c (get_operand): Likewise.
658 (md_assemble): Likewise.
659 * config/tc-m68k.c (m68k_ip): Likewise.
660 (m68k_elf_suffix): Likewise.
661 * config/tc-mcore.c (mcore_s_section): Likewise.
662 * config/tc-metag.c (parse_get_set): Likewise.
663 (md_parse_option): Likewise.
664 * config/tc-microblaze.c (parse_imm): Likewise.
665 (check_got): Likewise.
666 (md_apply_fix): Likewise.
667 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
668 (md_begin): Likewise.
669 (s_is_linkonce): Likewise.
670 (check_regno): Likewise.
671 (match_float_constant): Likewise.
672 (classify_vr4120_insn): Likewise.
673 (match_insn): Likewise.
674 (mips_after_parse_args): Likewise.
675 (s_change_sec): Likewise.
676 (s_option): Likewise.
677 (parse_code_option): Likewise.
678 (md_section_align): Likewise.
679 (nopic_need_relax): Likewise.
680 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
681 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
682 (mn10300_end_of_match): Likewise.
683 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
684 * config/tc-nds32.c (nds32_parse_option): Likewise.
685 * config/tc-nds32.h (md_do_align): Likewise.
686 * config/tc-nios2.c (strprefix): Likewise.
687 (nios2_special_relocation_p): Likewise.
688 (nios2_parse_base_register): Likewise.
689 (nios2_cons): Likewise.
690 * config/tc-ns32k.c (addr_mode): Likewise.
691 * config/tc-pdp11.c (set_option): Likewise.
692 (parse_reg): Likewise.
693 (parse_ac5): Likewise.
694 (parse_op_no_deferred): Likewise.
695 (set_cpu_model): Likewise.
696 (set_machine_model): Likewise.
697 * config/tc-pj.c (md_operand): Likewise.
698 * config/tc-ppc.c (ppc_set_cpu): Likewise.
699 (ppc_arch): Likewise.
700 (ppc_section_type): Likewise.
701 * config/tc-s12z.c (tb_reg_rel): Likewise.
702 (tb_opr_rel): Likewise.
703 * config/tc-s390.c (s390_parse_cpu): Likewise.
704 (md_parse_option): Likewise.
705 * config/tc-score.c (s3_nopic_need_relax): Likewise.
706 (s3_pic_need_relax): Likewise.
707 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
708 (s7_pic_need_relax): Likewise.
709 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
710 * config/tc-sparc.c (md_parse_option): Likewise.
711 (sparc_ip): Likewise.
712 (s_reserve): Likewise.
713 (s_common): Likewise.
715 (sparc_cons): Likewise.
716 * config/tc-tic54x.c (stag_add_field): Likewise.
717 (tic54x_endstruct): Likewise.
718 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
719 * config/tc-v850.c (v850_comm): Likewise.
720 (md_begin): Likewise.
721 (md_assemble): Likewise.
722 * config/tc-vax.c (vax_cons): Likewise.
723 * config/tc-wasm32.c (wasm32_leb128): Likewise.
724 * config/tc-xstormy16.c (md_operand): Likewise.
725 * config/tc-xtensa.c (get_directive): Likewise.
726 (xg_instruction_matches_option_term): Likewise.
727 (is_unaligned_label): Likewise.
728 (cache_literal_section): Likewise.
729 * config/xtensa-relax.c (parse_precond): Likewise.
730 (parse_option_cond): Likewise.
731 (transition_applies): Likewise.
732 (wide_branch_opcode): Likewise.
733 * dw2gencfi.c: Likewise.
734 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
735 * ehopt.c (get_cie_info): Likewise.
736 * input-file.c (input_file_open): Likewise.
737 * listing.c (listing_newline): Likewise.
738 (debugging_pseudo): Likewise.
739 * read.c (read_a_source_file): Likewise.
740 * write.c (adjust_reloc_syms): Likewise.
741 (compress_debug): Likewise.
742 (maybe_generate_build_notes): Likewise.
744 2021-03-31 Alan Modra <amodra@gmail.com>
746 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
747 * config/bfin-lex-wrapper.c: Likewise.
748 * itbl-lex.l: Don't include as.h.
749 * config/bfin-lex.l: Likewise.
751 2021-03-31 Alan Modra <amodra@gmail.com>
753 * as.h (POISON_BFD_BOOLEAN): Define.
754 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
755 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
756 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
757 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
758 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
759 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
760 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
761 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
762 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
763 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
764 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
765 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
766 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
767 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
768 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
769 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
770 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
771 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
772 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
773 * config/tc-metag.c, * config/tc-metag.h,
774 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
775 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
776 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
777 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
778 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
779 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
780 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
781 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
782 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
783 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
784 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
785 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
786 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
787 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
788 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
789 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
790 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
791 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
792 * config/tc-z8k.c, * config/xtensa-istack.h,
793 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
794 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
795 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
796 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
797 with bool, FALSE with false, and TRUE with true.
799 2021-03-31 Alan Modra <amodra@gmail.com>
801 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
802 * config/tc-crx.c: Likewise.
803 * config/tc-nds32.h: Likewise.
805 2021-03-30 Jan Beulich <jbeulich@suse.com>
807 * config/tc-i386.c (build_modrm_byte): Change return type.
808 Change type of "default_seg". Use NULL. Adjust setting of
810 (reg_ds, reg_es, reg_ss): New.
811 (struct _i386_insn): Change type of seg[].
812 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
813 (swap_operands): Change type of "temp_seg".
814 (check_string): Adjust %es check.
815 (process_operands): Change type of "default_seg". Use NULL.
816 Adjust segment override processing..
817 (i386_att_operand): Adjust segment override handling.
818 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
820 2021-03-30 Jan Beulich <jbeulich@suse.com>
822 * config/tc-i386.c (reg_eax): New.
823 (md_begin): Initialize reg_eax.
824 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
826 (i386_intel_simplify): Likewise.
828 2021-03-30 Jan Beulich <jbeulich@suse.com>
830 * config/tc-i386.c (reg_st0): New.
831 (md_begin): Convert to switch(). Initialize reg_st0. Don't
833 (parse_real_register): Adjust st(N) processing.
835 2021-03-30 Jan Beulich <jbeulich@suse.com>
837 * config/tc-i386.c (rc_op): Delete.
838 (struct Rounding_Operation): Move ...
839 (struct _i386_insn): ... here. Change field "rounding".
840 (build_evex_prefix): Adjust rounding processing.
841 (swap_2_operands): Likewise.
842 (check_VecOperands): Likewise.
843 (RC_SAE_immediate): Likewise.
844 (optimize_encoding): Adjust check for rounding.
845 (build_modrm_byte): Likewise.
846 (output_imm): Likewise.
847 (md_assemble): Initialize rounding type.
849 2021-03-30 Jan Beulich <jbeulich@suse.com>
851 * config/tc-i386.c (broadcast_op): Delete.
852 (struct Broadcast_Operation): Move ...
853 (struct _i386_insn): ... here. Change field "broadcast".
854 (match_mem_size): Adjust check for broadcast.
855 (optimize_encoding): Likewise.
856 (process_suffix): Likewise.
857 (build_evex_prefix): Adjust broadcast processing.
858 (swap_2_operands): Likewise.
859 (check_VecOperations): Likewise.
860 (match_template): Likewise.
861 (check_VecOperands): Likewise.
863 2021-03-30 Jan Beulich <jbeulich@suse.com>
865 * config/tc-i386.c (reg_k0): New.
867 (struct Mask_Operation): Move ...
868 (struct _i386_insn): ... here. Change field "mask".
869 (md_begin): Initialize reg_k0.
870 (build_evex_prefix): Adjust mask processing.
871 (swap_2_operands): Likewise.
872 (check_VecOperands): Likewise.
873 (check_VecOperations): Likewise.
874 (optimize_encoding): Adjust checks for masking.
875 (output_insn): Likewise.
877 2021-03-30 Jan Beulich <jbeulich@suse.com>
879 * config/tc-i386.c (swap_2_operands): Switch parameters to
881 (struct RC_Operation): Switch operand field to unsigned.
882 (struct Mask_Operation): Likewise.
883 (struct Broadcast_Operation): Likewise.
884 (build_evex_prefix): Drop cast.
885 (check_VecOperands): Likewise.
886 (build_modrm_byte): Likewise.
887 (output_imm): Likewise.
888 (check_VecOperations): Add casts to unsigned.
890 2021-03-29 Jan Beulich <jbeulich@suse.com>
892 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
893 * testsuite/gas/i386/x86-64-avx-swap-2.d.
894 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
896 2021-03-29 Jan Beulich <jbeulich@suse.com>
898 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
899 checks by opcodespace ones.
900 (insert_lfence_before): Likewise.
901 (maybe_fused_with_jcc_p): Likewise.
902 (add_branch_padding_frag_p): Likewise.
903 (output_disp): Likewise.
904 (load_insn_p): Re-arrange checks to key applicable ones off of
905 an opcodespace check.
906 (md_assemble): Adjust opcode checks.
907 (check_byte_reg): Likewise.
908 (process_operands): Likewise.
909 (i386_index_check): Likewise.
910 (process_suffix): Likewise. New local variable is_movx. Adjust
911 movsx/movzx and crc32 handling.
912 (output_insn): Adjust opcode checks. Drop no longer reachable
913 case labels. Output legacy encoding prefixes in addition to the
914 base_opcode byte(s). Rework counting of prefixes for extended
916 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
919 2021-03-29 Alan Modra <amodra@gmail.com>
921 * atof-generic.c (FALSE, TRUE): Don't define.
922 * config/obj-elf.h (FALSE, TRUE): Don't define.
923 * config/obj-som.h (FALSE, TRUE): Don't define.
924 * config/tc-hppa.h (FALSE, TRUE): Don't define.
925 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
926 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
927 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
928 * config/tc-mt.h (obj_fix_adjustable): Delete.
929 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
930 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
931 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
932 (tokenize_extregister): Likewise.
933 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
934 (parse_operands_op, parse_operands, md_assemble): Likewise.
935 * config/tc-d10v.c (build_insn): Likewise.
936 * config/tc-score.c (s3_gen_insn_frag): Likewise.
937 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
938 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
939 * config/tc-z80.c (emit_byte): Likewise.
941 2021-03-29 Alan Modra <amodra@gmail.com>
943 * config/tc-arm.c (struct arm_long_option_table <func>): Return
945 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
946 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
948 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
949 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
950 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
952 (struct metag_long_option <func>): Return bfd_boolean.
953 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
954 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
955 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
956 (no_operands, lex_force_match, lex_reg_list): Likewise.
957 (size_from_suffix): Return int.
958 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
959 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
961 2021-03-26 Jan Beulich <jbeulich@suse.com>
963 * testsuite/gas/i386/x86-64-nosse2.s,
964 testsuite/gas/i386/x86-64-nosse2.l: New.
965 * testsuite/gas/i386/i386.exp: Run new test.
967 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
969 * testsuite/gas/nios2/brn.d: New.
970 * testsuite/gas/nios2/brn.d: New.
972 2021-03-25 Jan Beulich <jbeulich@suse.com>
974 * config/tc-i386.c (match_template): Use t instead of i.tm.
976 2021-03-25 Jan Beulich <jbeulich@suse.com>
978 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
979 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
980 colliding registers in the upper half of the space.
981 * testsuite/gas/i386/avx512f-nondef.d,
982 testsuite/gas/i386/vgather-check.d,
983 testsuite/gas/i386/x86-64-vgather-check.d,
984 testsuite/gas/i386/x86-64-vgather-check-error.l,
985 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
987 * testsuite/gas/i386/vgather-check-none.d,
988 testsuite/gas/i386/vgather-check-warn.d,
989 testsuite/gas/i386/x86-64-vgather-check-none.d,
990 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
991 tests for expected dump output.
993 2021-03-25 Jan Beulich <jbeulich@suse.com>
995 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
996 without mask register.
997 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
999 2021-03-25 Jan Beulich <jbeulich@suse.com>
1001 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
1002 swapping operands for.
1003 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
1005 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
1006 well as Intel syntax tests.
1007 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
1009 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
1010 Likewise. Drop passing --def-sym to as.
1012 2021-03-25 Jan Beulich <jbeulich@suse.com>
1015 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
1016 conversion to x32 mode.
1017 * testsuite/gas/i386/ilp32/enqcmd.s,
1018 testsuite/gas/i386/ilp32/enqcmd.d,
1019 testsuite/gas/i386/ilp32/movdir.s,
1020 testsuite/gas/i386/ilp32/movdir.d: New.
1021 * testsuite/gas/i386/x86-64-enqcmd.s,
1022 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
1024 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
1026 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
1027 * testsuite/gas/i386/x86-64-enqcmd.d,
1028 testsuite/gas/i386/x86-64-enqcmd-intel.d,
1029 testsuite/gas/i386/x86-64-enqcmd-inval.l,
1030 testsuite/gas/i386/x86-64-movdir.d,
1031 testsuite/gas/i386/x86-64-movdir-intel.d,
1032 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
1034 2021-03-25 Alan Modra <amodra@gmail.com>
1037 * testsuite/gas/ppc/a2.d: Update expected output.
1038 * testsuite/gas/ppc/power8.d: Likewise.
1040 2021-03-24 Jan Beulich <jbeulich@suse.com>
1042 * config/tc-i386.c (struct _i386_insn): New field
1044 (md_begin): Drop assertion.
1045 (install_template): New.
1046 (build_vex_prefix): Call install_template.
1047 (match_template): Likewise.
1048 (process_operands): Use new opcode_length field.
1049 (output_jump): Likewise.
1050 (output_insn): Likewise. Adjust psedo prefix check.
1052 2021-03-24 Jan Beulich <jbeulich@suse.com>
1054 * config/tc-i386.c (md_begin): Add assertion.
1055 (build_vex_prefix): Drop implied prefix calculation.
1056 (build_evex_prefix): Likewise.
1057 (optimize_encoding): Adjust opcode checks.
1058 (load_insn_p): Also check opcodeprefix.
1059 (match_template): Also check opcodespace.
1060 (process_suffix): Likewise.
1061 (process_operands): Likewise.
1062 (output_insn): Likewise. Also check isprefix when discaring
1064 * config/tc-i386-intel.c (i386_intel_operand): Also check
1067 2021-03-24 Jan Beulich <jbeulich@suse.com>
1069 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
1070 base_opcode and extension_opcode.
1072 2021-03-23 Jan Beulich <jbeulich@suse.com>
1074 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
1076 2021-03-23 Jan Beulich <jbeulich@suse.com>
1078 * config/tc-i386.c (output_i386_opcode): Invoke
1079 process_i386_cpu_flag() slightly later.
1080 (process_i386_opcodes): Likewise.
1082 2021-03-23 Jan Beulich <jbeulich@suse.com>
1084 * config/tc-i386.c (pte): Print prefix and encoding space.
1085 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
1086 (build_evex_prefix): Likewise.
1087 (load_insn_p): Likewise.
1089 2021-03-23 Jan Beulich <jbeulich@suse.com>
1091 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
1093 (match_template, output_insn): Use PREFIX_NONE.
1095 2021-03-23 Jan Beulich <jbeulich@suse.com>
1097 * config/tc-i386.c (i386_index_check): New local variable t.
1098 Correct MPX insn check.
1099 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
1101 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
1102 index scaling by other than 1.
1103 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1105 2021-03-22 Martin Liska <mliska@suse.cz>
1107 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
1108 (x86_64_section_word): Likewise.
1109 * config/tc-sparc.c (md_parse_option): Likewise.
1111 2021-03-19 Alan Modra <amodra@gmail.com>
1113 * app.c (do_scrub_chars): Don't lose spaces before a slash.
1115 2021-03-18 Christian Groessler <chris@groessler.org>
1117 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
1118 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
1120 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1122 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1123 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1124 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1125 * testsuite/gas/riscv/b-ext-64.d: Likewise.
1126 * testsuite/gas/riscv/b-ext.s: Likewise.
1127 * testsuite/gas/riscv/b-ext.d: Likewise.
1129 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1131 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1132 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1133 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1134 * testsuite/gas/aarch64/sysreg-7.d: New test.
1135 * testsuite/gas/aarch64/sysreg-7.s: New test.
1137 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1139 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1140 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1141 (ppc_xcoff_tbss_section): New variables.
1142 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1143 (ppc_data_csects): Removed.
1144 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1145 ppc_xcoff_parse_cons): New functions.
1146 (md_being): Initialize XCOFF sections.
1147 (ppc_xcoff_suffix): Add support for TLS relocations
1148 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1149 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1150 to .bss section. Handle new XCOFF section variables.
1151 (ppc_comm): Likewise.
1152 (ppc_toc): Likewise.
1153 (ppc_symbol_new_hook): Likewise.
1154 (ppc_frob_symbol): Likewise.
1155 (ppc_fix_adjustable): Add tbss support.
1156 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1157 (ppc_xcoff_parse_cons): Add prototype.
1158 (struct ppc_xcoff_section): New structure.
1160 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1162 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1163 (MAP, MAP32, MAP64): New macros for XCOFF.
1164 (ppc_xcoff_fixup_addis): New function.
1165 (ppc_is_toc_sym): Handle XMC_TE.
1166 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1167 BFD_RELOC_PPC_TOC16_LO.
1168 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1169 (ppc_change_csect): Handle XMC_TE.
1170 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1172 (ppc_symbol_new_hook): Handle XMC_TE.
1173 (ppc_frob_symbol): Likewise.
1174 (ppc_fix_adjustable): Likewise.
1175 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1176 BFD_RELOC_PPC_TOC16_LO.
1178 2021-03-10 Jan Beulich <jbeulich@suse.com>
1180 * testsuite/gas/i386/avx512f-intel.d,
1181 testsuite/gas/i386/avx512f_vl-intel.d,
1182 testsuite/gas/i386/avx512pf-intel.d,
1183 testsuite/gas/i386/x86-64-avx512f-intel.d,
1184 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1185 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1187 2021-03-10 Jan Beulich <jbeulich@suse.com>
1189 * testsuite/gas/i386/prefetch.d,
1190 testsuite/gas/i386/prefetch-intel.d,
1191 testsuite/gas/i386/x86-64-prefetch.d,
1192 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1193 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1194 * testsuite/gas/i386/i386.exp: Run new test.
1196 2021-03-09 Jan Beulich <jbeulich@suse.com>
1198 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1199 (md_assemble): Replace use of repprefixok, islockable, and
1201 (i386_index_check): Replace use of repprefixok.
1203 2021-03-09 Jan Beulich <jbeulich@suse.com>
1205 * testsuite/gas/i386/noreg64.s: Add sysexit.
1206 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1207 sysexitl and sysexitq.
1208 * testsuite/gas/i386/noreg-intel64.l,
1209 testsuite/gas/i386/noreg64-data16.d,
1210 testsuite/gas/i386/noreg64-data16.e,
1211 testsuite/gas/i386/noreg64-rex64.d,
1212 testsuite/gas/i386/noreg64.d,
1213 testsuite/gas/i386/noreg64.l,
1214 testsuite/gas/i386/x86-64-sysenter-amd.d,
1215 testsuite/gas/i386/x86-64-sysenter-amd.l,
1216 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1218 2021-02-26 Nick Clifton <nickc@redhat.com>
1221 * config/tc-arm.c (do_t_add_sub): Correct error message.
1222 * testsuite/gas/arm/pr27411.s: New test.
1223 * testsuite/gas/arm/pr27411.d: New test driver.
1224 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1226 2021-02-24 Alan Modra <amodra@gmail.com>
1229 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1230 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1231 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1232 and use alongside TARGET_CPU_CFILES.
1233 (EXTRA_DIST): Update location of generated .c files.
1234 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1235 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1236 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1237 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1239 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1240 (itbl-parse.c, itbl-parse.h): Tidy.
1241 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1242 * config/bfin-lex.l: Include config/bfin-parse.h.
1243 * configure.ac (extra_objects): Move object files corresponding
1244 to .y and .l files now in config/ to config/.
1245 * Makefile.in: Regenerate.
1246 * configure: Regenerate.
1247 * po/POTFILES.in: Regenerate.
1249 2021-02-19 Nick Clifton <nickc@redhat.com>
1251 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1252 misleading indentation.
1254 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1257 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1258 (md_apply_fix): Likewise.
1259 (md_convert_frag_branch): Likewise.
1260 (validate_riscv_insn): Likewise. Also arranged operands, including
1261 added C5 and C6 operands, and removed unused Ci and C< operands.
1262 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1263 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1264 * testsuite/gas/riscv/insn.s: Likewise.
1266 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1268 * config/tc-riscv.c: Included cpu-riscv.h.
1269 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1270 (struct riscv_csr_extra): Likewise.
1271 (struct riscv_ext_version): Likewise.
1272 (ext_version_table): Moved from opcodes/riscv-opc.c.
1273 (default_isa_spec): Updated type to riscv_spec_class.
1274 (default_priv_spec): Likewise.
1275 (riscv_set_default_isa_spec): Updated.
1276 (init_ext_version_hash): Likewise.
1277 (riscv_init_csr_hash): Likewise, also fixed indent.
1279 2021-02-17 Alan Modra <amodra@gmail.com>
1281 * testsuite/gas/elf/section28.d: xfail h8300.
1283 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1286 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1287 when checking incorrect section attributes.
1288 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1289 * testsuite/gas/elf/section28.d: New file.
1290 * testsuite/gas/elf/section28.s: Likewise.
1291 * testsuite/gas/elf/section29.d: Likewise.
1292 * testsuite/gas/elf/section29.s: Likewise.
1294 2021-02-16 Jan Beulich <jbeulich@suse.com>
1296 * testsuite/gas/i386/sse-check.s,
1297 testsuite/gas/i386/sse2avx.s,
1298 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1299 * testsuite/gas/i386/sse-check-error.l,
1300 testsuite/gas/i386/sse-check-warn.e,
1301 testsuite/gas/i386/sse-check.d,
1302 testsuite/gas/i386/sse2avx.d,
1303 testsuite/gas/i386/x86-64-sse-check-error.l,
1304 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1305 * testsuite/gas/i386/property-cvtpi2pd.s,
1306 testsuite/gas/i386/property-cvtpi2pd.d,
1307 testsuite/gas/i386/property-cvtpi2ps.s,
1308 testsuite/gas/i386/property-cvtpi2ps.d: New.
1309 * testsuite/gas/i386/i386.exp: Run new tests.
1311 2021-02-16 Jan Beulich <jbeulich@suse.com>
1313 * config/tc-i386.c (md_assemble): Use template rather than
1314 actuals when updating i.xstate.
1315 * testsuite/gas/i386/property-4.d,
1316 testsuite/gas/i386/property-5.d,
1317 testsuite/gas/i386/property-12.d: Adjust expectations.
1319 2021-02-16 Jan Beulich <jbeulich@suse.com>
1321 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1322 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1323 * testsuite/gas/i386/property-ldmxcsr.s,
1324 testsuite/gas/i386/property-ldmxcsr.d,
1325 testsuite/gas/i386/property-vldmxcsr.s,
1326 testsuite/gas/i386/property-vldmxcsr.d,
1327 testsuite/gas/i386/property-vzeroall.s,
1328 testsuite/gas/i386/property-vzeroall.d: New.
1329 * testsuite/gas/i386/i386.exp: Run new tests.
1331 2021-02-16 Jan Beulich <jbeulich@suse.com>
1333 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1334 tests to bitness independent section.
1335 * testsuite/gas/i386/x86-64-property-2.d,
1336 testsuite/gas/i386/x86-64-property-3.d,
1337 testsuite/gas/i386/x86-64-property-4.d,
1338 testsuite/gas/i386/x86-64-property-5.d,
1339 testsuite/gas/i386/x86-64-property-6.d,
1340 testsuite/gas/i386/x86-64-property-10.d,
1341 testsuite/gas/i386/x86-64-property-11.d,
1342 testsuite/gas/i386/x86-64-property-12.d,
1343 testsuite/gas/i386/x86-64-property-13.d: Delete.
1345 2021-02-16 Jan Beulich <jbeulich@suse.com>
1347 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1349 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1351 2021-02-16 Alan Modra <amodra@gmail.com>
1354 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1357 2021-02-16 Alan Modra <amodra@gmail.com>
1359 * read.c (demand_copy_C_string): Really check for embedded zeros.
1361 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1363 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1364 * doc/c-s390.texi: Document arch14 march option.
1365 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1366 * testsuite/gas/s390/zarch-arch14.d: New test.
1367 * testsuite/gas/s390/zarch-arch14.s: New test.
1369 2021-02-12 Nick Clifton <nickc@redhat.com>
1371 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1373 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1375 2021-02-12 Alan Modra <amodra@gmail.com>
1377 * testsuite/gas/all/pr27381.err: Don't match source file name.
1378 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1379 * testsuite/gas/all/pr27384.err: Don't match source file name.
1381 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1382 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1384 2021-02-11 Alan Modra <amodra@gmail.com>
1386 * NEWS: Mention arm-symbianelf removal.
1388 2021-02-10 Nick Clifton <nickc@redhat.com>
1390 * listing.c (buffer_line): Remove debugging code accidentally
1391 included with the fix for PR 27384.
1393 2021-02-09 Nick Clifton <nickc@redhat.com>
1396 * read.c (s_incbin): Check that the file to be included is a
1397 regular, non-directory file.
1398 * testsuite/gas/all/pr27381.s: New test source file.
1399 * testsuite/gas/all/pr27381.d: New test control file.
1400 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1401 * testsuite/gas/all/gas.exp: Run the new test.
1403 2021-02-09 Alan Modra <amodra@gmail.com>
1405 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1406 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1408 * config/te-symbian.h: Delete.
1409 * configure.tgt: Remove arm-*-symbianelf*.
1410 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1412 * testsuite/gas/arm/arch4t.d: Likewise.
1413 * testsuite/gas/arm/got_prel.d: Likewise.
1414 * testsuite/gas/arm/mapdir.d: Likewise.
1415 * testsuite/gas/arm/mapmisc.d: Likewise.
1416 * testsuite/gas/arm/mapsecs.d: Likewise.
1417 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1418 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1419 * testsuite/gas/arm/thumb.d: Likewise.
1420 * testsuite/gas/arm/thumbrel.d: Likewise.
1421 * Makefile.in: Regenerate.
1422 * po/POTFILES.in: Regenerate.
1424 2021-02-09 Nick Clifton <nickc@redhat.com>
1427 * listing.c (listing_psize): Check the result of the width
1428 expression before assigning it to paper_width.
1429 * testsuite/gas/all/pr27384.s: New test source file.
1430 * testsuite/gas/all/pr27384.d: New test control file.
1431 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1432 * testsuite/gas/all/gas.exp: Run the new test.
1434 2021-02-09 Nick Clifton <nickc@redhat.com>
1437 * testsuite/gas/elf/pr27355.s: New test source file.
1438 * testsuite/gas/elf/pr27355.d: New test control file.
1439 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1440 * testsuite/gas/elf/elf.exp: Run the new test.
1442 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1444 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1445 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1446 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1447 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1448 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1450 2021-02-08 Nick Clifton <nickc@redhat.com>
1453 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1454 if it has not already been created.
1456 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1458 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1460 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1461 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1462 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1464 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1466 * doc/c-s390.texi: Document vector instruction formats.
1468 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1470 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1472 2021-02-01 Alan Modra <amodra@gmail.com>
1475 * config/tc-alpha.c (insert_operand): Delete dead code.
1477 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1480 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1482 * testsuite/gas/nios2/relax.d: New file.
1483 * testsuite/gas/nios2/relax.s: Likewise.
1485 2021-01-26 Alan Modra <amodra@gmail.com>
1487 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1488 notarget all except hppa. Comment.
1489 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1490 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1491 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1492 * testsuite/gas/all/sleb128-7.d: Likewise.
1493 * testsuite/gas/all/sleb128-9.d: Likewise.
1494 * testsuite/gas/elf/bignums.d: Likewise.
1495 * testsuite/gas/elf/group0c.d: Likewise.
1496 * testsuite/gas/elf/group1a.d: Likewise.
1497 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1498 * testsuite/gas/elf/section15.d: Likewise.
1499 * testsuite/gas/elf/section4.d: Likewise.
1500 * testsuite/gas/elf/section7.d: Likewise.
1501 * testsuite/gas/macros/irp.d: Likewise.
1502 * testsuite/gas/macros/repeat.d: Likewise.
1503 * testsuite/gas/macros/rept.d: Likewise.
1504 * testsuite/gas/macros/test2.d: Likewise.
1505 * testsuite/gas/macros/vararg.d: Likewise.
1506 * testsuite/gas/all/string.d: Use xfail rather than skip.
1507 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1508 * testsuite/gas/elf/section0.d: Likewise.
1509 * testsuite/gas/elf/section1.d: Likewise.
1510 * testsuite/gas/elf/section10.d: Likewise.
1511 * testsuite/gas/elf/section11.d: Likewise.
1512 * testsuite/gas/elf/section6.d: Likewise.
1513 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1514 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1515 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1517 2021-01-26 Alan Modra <amodra@gmail.com>
1519 * testsuite/gas/all/byte.d,
1520 * testsuite/gas/all/byte.l,
1521 * testsuite/gas/all/byte.s: Delete.
1522 * testsuite/gas/all/gas.exp: Don't run byte test.
1524 2021-01-26 Alan Modra <amodra@gmail.com>
1527 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1528 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1530 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1533 * testsuite/gas/elf/elf.exp: Run pr27228.
1534 * testsuite/gas/elf/pr27228.d: New file.
1535 * testsuite/gas/elf/pr27228.s: Likewise.
1537 2021-01-24 Alan Modra <amodra@gmail.com>
1540 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1543 2021-01-21 Alan Modra <amodra@gmail.com>
1546 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1547 line number info when gas is generating it.
1548 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1549 * testsuite/gas/m68hc11/indexed12.d: Likewise.
1550 * testsuite/gas/elf/elf.exp: Don't run warn-2.
1551 * gas/testsuite/gas/elf/warn-2.s: Delete.
1553 2021-01-21 Alan Modra <amodra@gmail.com>
1556 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1557 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1558 error for negative file numbers.
1560 2021-01-20 Alan Modra <amodra@gmail.com>
1562 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1563 * testsuite/gas/ppc/test1elf32.d: Likewise.
1564 * testsuite/gas/ppc/test1elf64.d: Likewise.
1566 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
1569 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1571 (dwarf2_directive_filename): Likewise.
1572 (dwarf2_directive_loc): Likewise.
1573 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1574 * testsuite/gas/lns/lns-diag-1.l: Remove the
1575 "Error: file number less than one" errors.
1577 2021-01-18 Alan Modra <amodra@gmail.com>
1580 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1581 * testsuite/gas/i386/pr27198.d,
1582 * gas/testsuite/gas/i386/pr27198.err,
1583 * gas/testsuite/gas/i386/pr27198.s: New test.
1584 * gas/testsuite/gas/i386/i386.exp: Run it.
1586 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1588 * config/tc-riscv.c: Indent and GNU coding standards tidy,
1589 also aligned the code.
1590 * config/tc-riscv.h: Likewise.
1592 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1594 * config/tc-riscv.c: Error and warning messages tidy.
1595 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1596 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1597 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1598 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1599 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1600 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1601 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1603 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1605 * config/tc-riscv.c: Comments tidy and improvement. Also update
1606 comment "fallthru" to "Fall through" that end with a period and
1609 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1611 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1612 Delete warning that these are only available with ELF targets.
1613 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1614 * read.c (potable): ... here.
1616 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1618 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1619 * Makefile.in: Regenerated.
1621 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1623 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1624 (parse_int): Mark char_bag const.
1626 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1629 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1630 Don't generate GOT_symbol for PLT relocations.
1631 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1632 * testsuite/gas/i386/no-got.d: New file.
1633 * testsuite/gas/i386/no-got.s: Likewise.
1634 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1635 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1637 2021-01-13 Alan Modra <amodra@gmail.com>
1639 * Makefile.in: Regenerate.
1640 * Makefile.in: Regenerate.
1642 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1645 * configure.ac: Use GNU_MAKE_JOBSERVER.
1646 * aclocal.m4: Regenerated.
1647 * configure: Likewise.
1649 2021-01-12 Nick Clifton <nickc@redhat.com>
1651 * po/fr.po: Updated French translation.
1653 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1656 * configure: Regenerated.
1658 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1660 * NEWS: Remove CSRE.
1661 * config/tc-aarch64.c (parse_csr_operand): Delete.
1662 (parse_operands): Delete handling of
1663 AARCH64_OPND_CSRE_CSR.
1664 (aarch64_features): Remove csre.
1665 * doc/c-aarch64.texi: Remove CSRE.
1666 * testsuite/gas/aarch64/csre.d: Delete.
1667 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1668 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1669 * testsuite/gas/aarch64/csre_csr.s: Likewise.
1670 * testsuite/gas/aarch64/csre_csr.d: Likewise.
1671 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1672 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1673 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1675 2021-01-11 Nick Clifton <nickc@redhat.com>
1677 * po/uk.po: Updated Ukranian translation.
1679 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1681 * configure: Regenerated.
1683 2021-01-09 Nick Clifton <nickc@redhat.com>
1685 * configure: Regenerate.
1686 * po/gas.pot: Regenerate.
1688 2021-01-09 Nick Clifton <nickc@redhat.com>
1690 * 2.36 release branch crated.
1692 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
1694 * testsuite/gas/ppc/rop-checks.d,
1695 * testsuite/gas/ppc/rop-checks.l,
1696 * testsuite/gas/ppc/rop-checks.s,
1697 * testsuite/gas/ppc/rop.d,
1698 * testsuite/gas/ppc/rop.s: New tests.
1699 * testsuite/gas/ppc/ppc.exp: Run them.
1701 2021-01-09 Alan Modra <amodra@gmail.com>
1703 * configure: Regenerate.
1705 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1707 * configure: Regenerate.
1709 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1712 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1714 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1715 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1716 on the section symbol.
1717 (set_symtab): Don't generate unused section symbols.
1718 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1719 on the section symbol.
1720 * config/obj-elf.c (elf_adjust_symtab): Call
1721 symbol_mark_used_in_reloc on the group signature symbol.
1722 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1723 from expected output.
1724 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1725 is_elf_unused_section_symbols.
1726 * testsuite/gas/elf/section2.e: Updated.
1727 * testsuite/gas/elf/section2.e-unused: New file.
1728 * testsuite/gas/elf/symver.d: Remove unused section symbols.
1729 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1730 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1731 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1732 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1733 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1734 * testsuite/gas/i386/size-1.d: Likewise.
1735 * testsuite/gas/i386/size-3.d: Likewise.
1736 * testsuite/gas/i386/svr4.d: Likewise.
1737 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1738 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1739 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1740 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1742 2021-01-07 Philipp Tomsich <prt@gnu.org>
1744 * config/tc-riscv.c (riscv_multi_subset_supports): Added
1745 INSN_CLASS_ZIHINTPAUSE.
1746 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
1747 the pause hint instruction.
1748 * testsuite/gas/riscv/pause.s: Likewise.
1750 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1751 Jim Wilson <jimw@sifive.com>
1752 Andrew Waterman <andrew@sifive.com>
1753 Maxim Blinov <maxim.blinov@embecosm.com>
1754 Kito Cheng <kito.cheng@sifive.com>
1755 Nelson Chu <nelson.chu@sifive.com>
1757 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1758 (riscv_get_default_ext_version): Do not check the default_isa_spec when
1759 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1760 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1761 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1762 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1764 2021-01-06 Alan Modra <amodra@gmail.com>
1766 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1768 2021-01-06 Alan Modra <amodra@gmail.com>
1770 * testsuite/gas/macros/app1.d: xfail tic30.
1771 * testsuite/gas/macros/app2.d: Likewise.
1772 * testsuite/gas/macros/app3.d: Likewise.
1773 * testsuite/gas/macros/app4.d: Likewise.
1775 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1777 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1778 * doc/c-riscv.texi: Likewise.
1780 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1782 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1784 * testsuite/gas/riscv/li64.d: Likewise.
1785 * testsuite/gas/riscv/lla32.d: Likewise.
1786 * testsuite/gas/riscv/lla64.d: Likewise.
1787 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1788 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1789 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1790 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1791 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1792 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1793 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1795 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1797 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1799 (install_insn): Always write instructions as little endian.
1800 (riscv_make_nops): Likewise.
1801 (md_convert_frag_branch): Likewise.
1802 (md_number_to_chars): Write data in target endianness.
1803 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1804 (md_parse_option): Handle the endian options.
1805 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1807 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1809 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1812 * config/obj-elf.c (obj_elf_change_section): Also filter out
1815 2021-01-04 Alan Modra <amodra@gmail.com>
1818 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1819 message and register symbol error message.
1821 2021-01-04 Alan Modra <amodra@gmail.com>
1824 * read.c (s_align): Use a large enough type for "align" to hold
1825 the result of get_absolute_expression.
1827 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1829 * config/tc-i386.c: Correct comment spelling.
1830 * config/tc-riscv.c: Likewise.
1831 * config/tc-s390.c: Correct comment grammar.
1832 * doc/c-i386.texi: Correct spelling.
1833 * doc/c-s390.texi: Correct grammar.
1835 2021-01-01 Alan Modra <amodra@gmail.com>
1837 Update year range in copyright notice of all files.
1839 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1841 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1843 For older changes see ChangeLog-2020
1845 Copyright (C) 2021 Free Software Foundation, Inc.
1847 Copying and distribution of this file, with or without modification,
1848 are permitted in any medium without royalty provided the copyright
1849 notice and this notice are preserved.
1855 version-control: never