1 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
3 * testsuite/gas/mips/mips32@isa-override-1.d: Update for LDC3
5 * testsuite/gas/mips/mips32r2@isa-override-1.d: Likewise.
7 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
9 * testsuite/gas/mips/cp0b.d: New test.
10 * testsuite/gas/mips/cp0bl.d: New test.
11 * testsuite/gas/mips/cp2b.d: New test.
12 * testsuite/gas/mips/micromips@cp2b.d: New test.
13 * testsuite/gas/mips/cp2bl.d: New test.
14 * testsuite/gas/mips/micromips@cp2bl.d: New test.
15 * testsuite/gas/mips/cp3b.d: New test.
16 * testsuite/gas/mips/cp3bl.d: New test.
17 * testsuite/gas/mips/cp0b.s: New test source.
18 * testsuite/gas/mips/cp0bl.s: New test source.
19 * testsuite/gas/mips/cp2b.s: New test source.
20 * testsuite/gas/mips/cp2bl.s: New test source.
21 * testsuite/gas/mips/cp3b.s: New test source.
22 * testsuite/gas/mips/cp3bl.s: New test source.
23 * testsuite/gas/mips/mips.exp: Run the new tests.
25 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
27 * testsuite/gas/mips/rfe.d: New test.
28 * testsuite/gas/mips/rfe.s: New test source.
29 * testsuite/gas/mips/mips.exp: Run the new test.
31 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
33 * testsuite/gas/mips/cp1-names-r3900.d: New test.
34 * testsuite/gas/mips/mips.exp: Run the new test.
35 * testsuite/gas/mips/branch-misc-3.d: Update disassembly
36 according to changes to opcodes.
37 * testsuite/gas/mips/cp1-names-r3000.d: Likewise.
38 * testsuite/gas/mips/cp1-names-r4000.d: Likewise.
39 * testsuite/gas/mips/relax-swap1-mips1.d: Likewise.
40 * testsuite/gas/mips/relax-swap1-mips2.d: Likewise.
41 * testsuite/gas/mips/trunc.d: Likewise.
43 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
45 * testsuite/gas/mips/cp0c.d: New test.
46 * testsuite/gas/mips/cp0m.d: New test.
47 * testsuite/gas/mips/r3900@cp0m.d: New test.
48 * testsuite/gas/mips/cp2.d: New test.
49 * testsuite/gas/mips/micromips@cp2.d: New test.
50 * testsuite/gas/mips/cp2m.d: New test.
51 * testsuite/gas/mips/mipsr6@cp2m.d: New test.
52 * testsuite/gas/mips/micromips@cp2m.d: New test.
53 * testsuite/gas/mips/cp2d.d: New test.
54 * testsuite/gas/mips/mipsr6@cp2d.d: New test.
55 * testsuite/gas/mips/micromips@cp2d.d: New test.
56 * testsuite/gas/mips/cp2-64.d: New test.
57 * testsuite/gas/mips/micromips@cp2-64.d: New test.
58 * testsuite/gas/mips/cp3.d: New test.
59 * testsuite/gas/mips/cp3m.d: New test.
60 * testsuite/gas/mips/cp3d.d: New test.
61 * testsuite/gas/mips/cp0c.s: New test source.
62 * testsuite/gas/mips/cp0m.s: New test source.
63 * testsuite/gas/mips/cp2.s: New test source.
64 * testsuite/gas/mips/cp2m.s: New test source.
65 * testsuite/gas/mips/cp2d.s: New test source.
66 * testsuite/gas/mips/cp2-64.s: New test source.
67 * testsuite/gas/mips/cp3.s: New test source.
68 * testsuite/gas/mips/cp3m.s: New test source.
69 * testsuite/gas/mips/cp3d.s: New test source.
70 * testsuite/gas/mips/mips.exp: Run the new tests.
72 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
74 * tc-mips.c (convert_reg_type) <OP_REG_CONTROL>: New case.
75 (macro) <M_TRUNCWS, M_TRUNCWD>: Use the `g' rather than `G'
78 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
80 * testsuite/gas/mips/cp0-names-r3900.d: New test.
81 * testsuite/gas/mips/mips.exp: Run it.
83 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
85 * testsuite/gas/mips/micromips.d: Update disassembly according
86 to "dmtc1" entry fix with opcodes.
87 * testsuite/gas/mips/micromips-compact.d: Likewise.
88 * testsuite/gas/mips/micromips-insn32.d: Likewise.
89 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
90 * testsuite/gas/mips/micromips-trap.d: Likewise.
91 * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
93 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
95 * config/tc-mips.c (FCSR): New macro.
96 (macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
98 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
101 * config/tc-i386.c (set_code_flag): Revert commit 50c95a739c9.
102 (set_16bit_gcc_code_flag): Likewise.
103 (x86_cleanup): Likewise.
104 * testsuite/gas/i386/code16-2.d: Updated.
105 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
107 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
109 * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
110 * testsuite/gas/ppc/vsx.s: Likewise.
112 2021-05-27 Alan Modra <amodra@gmail.com>
114 * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
115 (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
118 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
121 * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
122 with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
124 (set_16bit_gcc_code_flag): Likewise.
125 (x86_cleanup): Always generate the GNU property note if
126 x86_feature_2_used isn't 0.
127 * testsuite/gas/i386/code16-2.d: New file.
128 * testsuite/gas/i386/code16-2.s: Likewise.
129 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
130 * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
132 2021-05-26 Sebastien Villemot <sebastien@debian.org>
135 * doc/c-i386.texi: Replace movsb with movsxb as an alias for
138 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
140 * config/tc-riscv.c (riscv_set_arch): Set
141 check_unknown_prefixed_ext to true for assembler.
143 2021-05-25 Tamar Christina <tamar.christina@arm.com>
146 * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
147 (relax_adr): Thumb symbols 4 bytes.
148 * testsuite/gas/arm/pr25235.d: New test.
149 * testsuite/gas/arm/pr25235.s: New test.
151 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
154 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
155 will choose ilp32e abi for rv32e. Besides, report errors for the
156 invalid march and mabi combinations.
157 * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
158 ilp32e abi for rve extension.
159 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
160 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
161 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
162 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
163 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
164 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
165 Renamed all mabi testcases to their march-mabi settings.
167 2021-05-22 Alan Modra <amodra@gmail.com>
170 * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
171 adjustment. Add assertion.
172 * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
175 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
177 * config/tc-z80.c (emit_data_val): Warn on constant overflow.
178 (signed_overflow): New function.
179 (unsigned_overflow): New function.
180 (is_overflow): Use new functions.
181 (md_apply_fix): Use signed_overflow.
182 * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
183 * testsuite/gas/z80/ez80_isuf.s: Likewise.
184 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
186 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
189 * Makefile.am (ZLIB): Define.
190 (as_new_LDADD): Add it.
191 * Makefile.in: Regenerate.
193 2021-05-17 Alex Coplan <alex.coplan@arm.com>
195 * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
196 into the same GPR twice.
197 * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
198 * testsuite/gas/arm/mve-vmov-3.d: New test.
199 * testsuite/gas/arm/mve-vmov-3.s: New test.
201 2021-05-12 Alan Modra <amodra@gmail.com>
203 * testsuite/gas/elf/dwarf-5-file0.d: Update.
204 * testsuite/gas/i386/dwarf5-line-1.d: Update.
206 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
209 * config/tc-z80.c (emit_ld_r_m): Report an illegal load
211 * testsuite/gas/z80/ill_ops.s: New test source file.
212 * testsuite/gas/z80/ill_ops.d: New test driver.
213 * testsuite/gas/z80/ill_ops.l: New test error output.
215 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
218 * config/tc-z80.c (emit_data_val): Add support for 8-bit and
220 * testsuite/gas/z80/z80_reloc.a: Update tests.
221 * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
223 2021-05-08 Mike Frysinger <vapier@gentoo.org>
225 * doc/Makefile.am (html-local, as/index.html): New targets.
226 * doc/Makefile.in: Regenerate.
228 2021-05-08 Mike Frysinger <vapier@gentoo.org>
230 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
231 * doc/Makefile.in: Regenerate.
233 2021-05-07 Nick Clifton <nickc@redhat.com>
236 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
237 (obj_elf_bss): New function. Change to the .bss section.
238 Support an optional subsection number.
239 (obj_elf_change_section): Call obj_elf_section_change_hook.
240 (obj_elf_section): Likewise.
241 (obj_elf_data): Likewise.
242 (obj_elf_text): Likewise.
243 (obj_elf_struct): Likewise.
244 (obj_elf_subsection): Likewise.
245 (obj_elf_previous): Likewise.
246 * config/obj-elf.h (obj_elf_bss): Prototype.
247 * doc/as.texi (Bss): New node.
249 2021-05-07 Clément Chigot <clement.chigot@atos.net>
251 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
252 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
253 (coff_frob_section): Likewise.
254 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
255 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
256 SA_SET_SECT_NRELOC) New defines.
257 (SET_SECTION_RELOCS): Adjust for C_DWARF.
258 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
259 (ppc_adjust_symtab): Reorder C_DWARF symbols.
260 * testsuite/gas/ppc/aix.exp: New tests.
261 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
262 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
263 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
265 * config/tc-ppc.c (ppc_function): Update comment for
267 (ppc_frob_symbol): Remove ppc_last_function check.
268 Make sure coff_last_function is reset.
269 Correctly set fsize when not provided in .function.
270 * testsuite/gas/ppc/aix.exp: New tests.
271 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
272 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
273 * testsuite/gas/ppc/xcoff-function-1.s: New test.
275 2021-05-07 Jan Beulich <jbeulich@suse.com>
277 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
278 * testsuite/gas/i386/i386.exp: Run new test.
280 2021-05-07 Jan Beulich <jbeulich@suse.com>
282 * config/tc-i386.c (output_disp): Use disps field instead of
285 2021-05-07 Jan Beulich <jbeulich@suse.com>
287 * config/tc-i386.c (i386_finalize_immediate): Move register
289 (i386_immediate): ... here.
291 2021-05-07 Jan Beulich <jbeulich@suse.com>
293 * config/tc-i386.c (optimize_imm): Drop redundant masking.
294 Re-arrange operand type accumulation.
296 2021-05-06 Stafford Horne <shorne@gmail.com>
299 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
300 * testsuite/gas/or1k/reloc-1.d: Add test result for new
303 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
306 * testsuite/gas/riscv/a-ext-64.d: New testcase.
307 * testsuite/gas/riscv/a-ext-64.s: Likewise.
308 * testsuite/gas/riscv/a-ext.d: Likewise.
309 * testsuite/gas/riscv/a-ext.s: Likewise.
311 2021-05-03 Jan Beulich <jbeulich@suse.com>
313 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
315 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
316 Add two further .long and an .equ.
317 * testsuite/gas/i386/secrel.d: Adjust expecations.
319 2021-05-03 Jan Beulich <jbeulich@suse.com>
321 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
322 Convert Windows to UNIX EOL.
324 2021-05-03 Jan Beulich <jbeulich@suse.com>
326 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
327 variant into ELF one.
329 2021-05-03 Alan Modra <amodra@gmail.com>
331 * testsuite/gas/elf/section25.s: Don't start directives in first
333 * testsuite/gas/elf/section26.s: Likewise.
335 2021-04-29 Jan Beulich <jbeulich@suse.com>
337 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
338 * testsuite/gas/i386/lea64.d,
339 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
340 * testsuite/gas/i386/x86-64-rip-inval-1.s,
341 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
343 2021-04-29 Jan Beulich <jbeulich@suse.com>
345 * config/tc-i386.c (i386_validate_fix): Change return type to
346 int. Short-circuit BFD_RELOC_SIZE* handling.
347 (tc_gen_reloc): New local variable sym. Extend logic when
348 processing BFD_RELOC_SIZE*.
349 * config/tc-i386.f (i386_validate_fix): Change return type to
351 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
353 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
354 testsuite/gas/i386/size-5b.d: New.
355 * testsuite/gas/i386/i386.exp: Run new tests.
357 2021-04-29 Jan Beulich <jbeulich@suse.com>
359 * config/tc-i386.c (tc_gen_reloc): Use section size for section
360 symbols when resolving BFD_RELOC_SIZE*.
361 * testsuite/gas/i386/size-2.s: Add section size cases.
362 * testsuite/gas/i386/size-2.d,
363 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
365 2021-04-28 Jan Beulich <jbeulich@suse.com>
366 H.J. Lu <hjl.tools@gmail.com>
369 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
370 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
371 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
372 (md_estimate_size_before_relax): Move local variable fixP. Set
373 it from fix_new() return values. Mark 4-byte relocs as signed
375 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
376 * testsuite/gas/i386/x86-64-rip-2.s,
377 * testsuite/gas/i386/x86-64-rip-2.d,
378 * testsuite/gas/i386/x86-64-rip-inval-1.s,
379 * testsuite/gas/i386/x86-64-rip-inval-1.l,
380 * testsuite/gas/i386/x86-64-rip-inval-2.s,
381 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
382 * testsuite/gas/i386/i386.exp: Run new tests.
384 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
386 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
388 2021-04-26 Jan Beulich <jbeulich@suse.com>
390 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
393 2021-04-26 Jan Beulich <jbeulich@suse.com>
395 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
396 overflow check to 64-bit objects.
398 2021-04-26 Jan Beulich <jbeulich@suse.com>
400 * config/tc-i386.c (want_disp32): Also check for SIZE32.
401 (optimize_encoding): Handle LEA.
402 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
403 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
405 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
406 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
407 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
409 * testsuite/gas/i386/i386.exp: Run new tests.
411 2021-04-26 Jan Beulich <jbeulich@suse.com>
413 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
415 * testsuite/gas/i386/x86-64-addr32-bad.s,
416 testsuite/gas/i386/x86-64-addr32-bad.l: New.
417 * testsuite/gas/i386/i386.exp: Run new test.
419 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
421 * testsuite/gas/elf/section25.d: Run it everywhere.
422 * testsuite/gas/elf/section26.d: Likewise.
423 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
425 2021-04-23 JĂ©rĂ´me Gardou <jerome.gardou@gmail.com>
427 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
428 optional "code" argument.
430 2021-04-23 Jan Beulich <jbeulich@suse.com>
432 * config/tc-i386.c (want_disp32): New.
433 (md_assemble): Use it.
434 (optimize_disp): Likewise.
435 (build_modrm_byte): Likewise.
437 2021-04-23 Jan Beulich <jbeulich@suse.com>
439 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
441 (md_assemble): ... here.
443 2021-04-23 Jan Beulich <jbeulich@suse.com>
445 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
446 Move up setting of disp32.
448 2021-04-23 Jan Beulich <jbeulich@suse.com>
450 * config/tc-i386.c (pe): Don't truncate expression value.
451 (i386_finalize_displacement): Likewise.
453 2021-04-21 Nick Clifton <nickc@redhat.com>
455 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
456 for named section symbols.
457 * testsuite/gas/arm/thumbver.d: Likewise.
458 * testsuite/gas/bfin/loop_temps.d: Likewise.
459 * testsuite/gas/elf/section2.e-arc: Likewise.
460 * testsuite/gas/elf/section2.e-arm: Likewise.
461 * testsuite/gas/elf/section2.e-csky: Likewise.
462 * testsuite/gas/elf/section2.e-m32r: Likewise.
463 * testsuite/gas/elf/section2.e-mips: Likewise.
464 * testsuite/gas/elf/section2.e-msp430: Likewise.
465 * testsuite/gas/elf/section2.e-riscv: Likewise.
466 * testsuite/gas/elf/section2.e-rl78: Likewise.
467 * testsuite/gas/elf/section2.e-rx: Likewise.
468 * testsuite/gas/elf/section2.e-score: Likewise.
469 * testsuite/gas/elf/section2.e-tic6x: Likewise.
470 * testsuite/gas/elf/section2.e-unused: Likewise.
471 * testsuite/gas/elf/section2.e-v850: Likewise.
472 * testsuite/gas/elf/section2.e-xtensa: Likewise.
473 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
474 * testsuite/gas/ia64/alias.d: Likewise.
475 * testsuite/gas/ia64/global.d: Likewise.
476 * testsuite/gas/microblaze/relax_size.elf: Likewise.
477 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
478 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
479 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
480 * testsuite/gas/mmix/bspec-1.d: Likewise.
481 * testsuite/gas/mmix/byte-1.d: Likewise.
482 * testsuite/gas/mmix/comment-1.d: Likewise.
483 * testsuite/gas/mmix/loc-1.d: Likewise.
484 * testsuite/gas/mmix/loc-2.d: Likewise.
485 * testsuite/gas/mmix/loc-3.d: Likewise.
486 * testsuite/gas/mmix/loc-4.d: Likewise.
487 * testsuite/gas/mmix/loc-5.d: Likewise.
488 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
490 2021-04-20 Clément Chigot <clement.chigot@atos.net>
493 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
494 (ppc_fix_adjustable): Manage fx_subsy part.
495 (tc_gen_reloc): Create second relocation when both
496 fx_addsy and fx_subsy are provided.
497 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
498 (MAX_RELOC_EXPANSION): Likewise.
499 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
500 (UNDEFINED_DIFFERENCE_OK): Likewise
501 * testsuite/gas/all/gas.exp: Skip difference between two
502 undefined symbols test.
504 2021-04-19 Nick Clifton <nickc@redhat.com>
506 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
507 targets which should skip the undefined symbols test.
509 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
512 * testsuite/gas/aarch64/rme.d: Update test.
513 * testsuite/gas/aarch64/rme.s: Update test.
515 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
517 * testsuite/gas/aarch64/rme.d: Update test.
518 * testsuite/gas/aarch64/rme.s: Update test.
520 2021-04-19 Jan Beulich <jbeulich@suse.com>
522 * as.h (sprint_value): Delete.
523 * messages.c (sprint_value): Likewise.
524 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
525 place of sprint_value.
526 * config/tc-s390.c (s390_insert_operand): Likewise.
527 * doc/internals.texi (sprint_value): Delete section.
528 * write.c (fixup_segment): Likewise.
529 (relax_segment): Likewise.
531 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
533 * testsuite/gas/aarch64/rme-invalid.d: New test.
534 * testsuite/gas/aarch64/rme-invalid.l: New test.
535 * testsuite/gas/aarch64/rme-invalid.s: New test.
536 * testsuite/gas/aarch64/rme.d: New test.
537 * testsuite/gas/aarch64/rme.s: New test.
539 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
542 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
543 * testsuite/gas/riscv/shamt-32.d: New testcase.
544 * testsuite/gas/riscv/shamt-32.l: Likewise.
545 * testsuite/gas/riscv/shamt-32.s: Likewise.
546 * testsuite/gas/riscv/shamt-64.d: Likewise.
547 * testsuite/gas/riscv/shamt-64.l: Likewise.
548 * testsuite/gas/riscv/shamt-64.s: Likewise.
550 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
552 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
554 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
556 2021-04-14 Alan Modra <amodra@gmail.com>
559 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
560 (select_cie_for_fde): ..here. Simplify.
562 2021-04-14 Alan Modra <amodra@gmail.com>
565 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
566 DW_CFA_GNU_window_save and DW_CFA_restore_state.
568 2021-04-13 Alan Modra <amodra@gmail.com>
570 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
571 write to $srcdir. Use gas_host_run and read output file rather
572 than gas_start/gas_finish.
574 2021-04-12 Alan Modra <amodra@gmail.com>
576 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
577 (md_assemble): Likewise. Handle bignum operands.
578 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
580 * expr.c: Delete unnecessary forward declarations.
581 (generic_bignum_to_int32): Return uint32_t.
582 (generic_bignum_to_int64): Return uint64_t. Compile always.
583 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
584 clear X_extrabit for unary '!'.
585 * expr.h (generic_bignum_to_int32): Declare.
586 (generic_bignum_to_int64): Declare.
587 * testsuite/gas/ppc/prefix-pcrel.s,
588 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
590 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
592 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
593 march-fail-porder-x-std.d.
594 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
595 march-fail-porder-z-std.d.
596 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
597 march-fail-porder-x-z.d.
598 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
600 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
601 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
602 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
603 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
604 march-fail-single-char-h.d.
605 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
606 march-fail-single-char-s.d.
607 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
608 march-fail-single-char-x.d.
609 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
610 march-fail-single-char-z.d.
611 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
612 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
613 march-fail-single-prefix.l.
614 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
615 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
616 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
618 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
620 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
621 diagnostic messages for LD/ST Exclusive instructions.
622 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
623 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
626 2021-04-09 Alan Modra <amodra@gmail.com>
628 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
629 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
630 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
632 2021-04-08 Alan Modra <amodra@gmail.com>
634 * testsuite/gas/ppc/pr27676.d,
635 * testsuite/gas/ppc/pr27676.s: New test.
636 * testsuite/gas/ppc/ppc.exp: Run it.
637 * testsuite/gas/ppc/dcbt.d: Update.
638 * testsuite/gas/ppc/power4_32.d: Update.
640 2021-04-07 Alan Modra <amodra@gmail.com>
643 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
645 2021-04-06 Nick Clifton <nickc@redhat.com>
648 * config/tc-aarch64.c (my_get_expression): Rename to
649 aarch64_get_expression. Add a fifth argument to enable deferring
650 of expression resolution.
651 (parse_typed_reg): Update calls to my_get_expression.
652 (parse_vector_reg_list): Likewise.
653 (parse_immediate_expression): Likewise.
654 (parse_big_immediate): Likewise.
655 (parse_shift): Likewise.
656 (parse_shifter_operand_imm): Likewise.
657 (parse_operands): Likewise.
658 (parse_shifter_operand_reloc): Update calls to my_get_expression
659 and call aarch64_force_reloc to determine the value of the new
661 (parse_address_main): Likewise.
662 (parse_half): Likewise.
663 (parse_adrp): Likewise.
664 (aarch64_force_reloc): New function. Contains code extracted from...
665 (aarch64_force_relocation): ... here.
666 * testsuite/gas/aarch64/pr27217.s: New test case.
667 * testsuite/gas/aarch64/pr27217.d: New test driver.
669 2021-04-06 Jan Beulich <jbeulich@suse.com>
671 * write.c (fixup_segment): Move add_symbol_segment declaration
674 2021-04-05 Alan Modra <amodra@gmail.com>
676 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
677 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
678 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
679 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
680 strstr, or vsnprintf declarations.
681 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
682 * as.h: Don't include alloca-conf.h, include config.h instead.
683 Include string.h, stdlib.h, errno.h unconditionally. Remove
684 various fallback declarations.
685 * asintl.h: Don't test HAVE_LOCALE_H.
686 * as.c: Don't test HAVE_SETLOCALE.
687 * dwarf2dbg.c: Include limits.h unconditionally.
690 * symbols.c: Likewise.
691 * config/tc-cr16.c: Likewise.
692 * config/tc-d30v.c: Likewise.
693 * config/tc-i386.c: Likewise.
694 * config/tc-ia64.c: Likewise.
695 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
696 * config.in: Regenerate.
697 * configure: Regenerate.
698 * Makefile.in: Regenerate.
699 * doc/Makefile.in: Regenerate.
701 2021-04-01 Martin Liska <mliska@suse.cz>
703 * config/obj-coff.c (strneq): Remove strneq and use startswith.
704 (weak_is_altname): Likewise.
705 (obj_coff_section): Likewise.
706 * config/tc-cr16.c (process_label_constant): Likewise.
707 * config/tc-crx.c (strneq): Likewise.
709 2021-04-01 Martin Liska <mliska@suse.cz>
711 * as.c (select_emulation_mode): Use startswith.
712 * config/m68k-parse.y: Likewise.
713 * config/obj-aout.c (obj_aout_type): Likewise.
714 * config/obj-elf.c (elf_common_parse): Likewise.
715 (obj_elf_section_type): Likewise.
716 (obj_elf_section_word): Likewise.
717 (obj_elf_section): Likewise.
718 (obj_elf_symver): Likewise.
719 (adjust_stab_sections): Likewise.
720 * config/obj-evax.c (evax_shorten_name): Likewise.
721 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
722 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
723 (aarch64_parse_features): Likewise.
724 (create_register_alias): Likewise.
725 (aarch64_data_in_code): Likewise.
726 (md_parse_option): Likewise.
727 * config/tc-alpha.c (s_alpha_section_word): Likewise.
728 (s_alpha_pdesc): Likewise.
729 * config/tc-arc.c (tokenize_extregister): Likewise.
730 * config/tc-arm.c (create_register_alias): Likewise.
731 (create_neon_reg_alias): Likewise.
732 (parse_ifimm_zero): Likewise.
733 (parse_qfloat_immediate): Likewise.
734 (arm_elf_section_type): Likewise.
735 (arm_parse_extension): Likewise.
736 (aeabi_set_public_attributes): Likewise.
737 (s_arm_arch_extension): Likewise.
738 (arm_data_in_code): Likewise.
739 (start_unwind_section): Likewise.
740 * config/tc-avr.c (avr_ldi_expression): Likewise.
741 * config/tc-csky.c (is_freglist_legal): Likewise.
742 (csky_s_section): Likewise.
743 * config/tc-d30v.c (do_assemble): Likewise.
744 * config/tc-dlx.c (parse_operand): Likewise.
745 * config/tc-epiphany.c (md_assemble): Likewise.
746 * config/tc-h8300.c (h8300_elf_section): Likewise.
747 (get_operand): Likewise.
748 * config/tc-hppa.c (pa_ip): Likewise.
749 (pa_level): Likewise.
750 (pa_space): Likewise.
751 * config/tc-i386.c (i386_mach): Likewise.
752 (md_assemble): Likewise.
753 (check_VecOperations): Likewise.
754 (i386_target_format): Likewise.
755 (i386_elf_section_type): Likewise.
756 * config/tc-ia64.c (start_unwind_section): Likewise.
757 (md_parse_option): Likewise.
758 (is_taken_branch): Likewise.
759 (idesc->name,): Likewise.
760 (note_register_values): Likewise.
761 (do_alias): Likewise.
762 * config/tc-m32c.c (insn_to_subtype): Likewise.
763 * config/tc-m68hc11.c (get_operand): Likewise.
764 (md_assemble): Likewise.
765 * config/tc-m68k.c (m68k_ip): Likewise.
766 (m68k_elf_suffix): Likewise.
767 * config/tc-mcore.c (mcore_s_section): Likewise.
768 * config/tc-metag.c (parse_get_set): Likewise.
769 (md_parse_option): Likewise.
770 * config/tc-microblaze.c (parse_imm): Likewise.
771 (check_got): Likewise.
772 (md_apply_fix): Likewise.
773 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
774 (md_begin): Likewise.
775 (s_is_linkonce): Likewise.
776 (check_regno): Likewise.
777 (match_float_constant): Likewise.
778 (classify_vr4120_insn): Likewise.
779 (match_insn): Likewise.
780 (mips_after_parse_args): Likewise.
781 (s_change_sec): Likewise.
782 (s_option): Likewise.
783 (parse_code_option): Likewise.
784 (md_section_align): Likewise.
785 (nopic_need_relax): Likewise.
786 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
787 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
788 (mn10300_end_of_match): Likewise.
789 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
790 * config/tc-nds32.c (nds32_parse_option): Likewise.
791 * config/tc-nds32.h (md_do_align): Likewise.
792 * config/tc-nios2.c (strprefix): Likewise.
793 (nios2_special_relocation_p): Likewise.
794 (nios2_parse_base_register): Likewise.
795 (nios2_cons): Likewise.
796 * config/tc-ns32k.c (addr_mode): Likewise.
797 * config/tc-pdp11.c (set_option): Likewise.
798 (parse_reg): Likewise.
799 (parse_ac5): Likewise.
800 (parse_op_no_deferred): Likewise.
801 (set_cpu_model): Likewise.
802 (set_machine_model): Likewise.
803 * config/tc-pj.c (md_operand): Likewise.
804 * config/tc-ppc.c (ppc_set_cpu): Likewise.
805 (ppc_arch): Likewise.
806 (ppc_section_type): Likewise.
807 * config/tc-s12z.c (tb_reg_rel): Likewise.
808 (tb_opr_rel): Likewise.
809 * config/tc-s390.c (s390_parse_cpu): Likewise.
810 (md_parse_option): Likewise.
811 * config/tc-score.c (s3_nopic_need_relax): Likewise.
812 (s3_pic_need_relax): Likewise.
813 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
814 (s7_pic_need_relax): Likewise.
815 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
816 * config/tc-sparc.c (md_parse_option): Likewise.
817 (sparc_ip): Likewise.
818 (s_reserve): Likewise.
819 (s_common): Likewise.
821 (sparc_cons): Likewise.
822 * config/tc-tic54x.c (stag_add_field): Likewise.
823 (tic54x_endstruct): Likewise.
824 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
825 * config/tc-v850.c (v850_comm): Likewise.
826 (md_begin): Likewise.
827 (md_assemble): Likewise.
828 * config/tc-vax.c (vax_cons): Likewise.
829 * config/tc-wasm32.c (wasm32_leb128): Likewise.
830 * config/tc-xstormy16.c (md_operand): Likewise.
831 * config/tc-xtensa.c (get_directive): Likewise.
832 (xg_instruction_matches_option_term): Likewise.
833 (is_unaligned_label): Likewise.
834 (cache_literal_section): Likewise.
835 * config/xtensa-relax.c (parse_precond): Likewise.
836 (parse_option_cond): Likewise.
837 (transition_applies): Likewise.
838 (wide_branch_opcode): Likewise.
839 * dw2gencfi.c: Likewise.
840 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
841 * ehopt.c (get_cie_info): Likewise.
842 * input-file.c (input_file_open): Likewise.
843 * listing.c (listing_newline): Likewise.
844 (debugging_pseudo): Likewise.
845 * read.c (read_a_source_file): Likewise.
846 * write.c (adjust_reloc_syms): Likewise.
847 (compress_debug): Likewise.
848 (maybe_generate_build_notes): Likewise.
850 2021-03-31 Alan Modra <amodra@gmail.com>
852 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
853 * config/bfin-lex-wrapper.c: Likewise.
854 * itbl-lex.l: Don't include as.h.
855 * config/bfin-lex.l: Likewise.
857 2021-03-31 Alan Modra <amodra@gmail.com>
859 * as.h (POISON_BFD_BOOLEAN): Define.
860 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
861 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
862 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
863 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
864 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
865 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
866 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
867 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
868 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
869 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
870 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
871 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
872 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
873 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
874 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
875 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
876 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
877 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
878 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
879 * config/tc-metag.c, * config/tc-metag.h,
880 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
881 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
882 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
883 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
884 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
885 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
886 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
887 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
888 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
889 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
890 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
891 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
892 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
893 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
894 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
895 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
896 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
897 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
898 * config/tc-z8k.c, * config/xtensa-istack.h,
899 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
900 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
901 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
902 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
903 with bool, FALSE with false, and TRUE with true.
905 2021-03-31 Alan Modra <amodra@gmail.com>
907 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
908 * config/tc-crx.c: Likewise.
909 * config/tc-nds32.h: Likewise.
911 2021-03-30 Jan Beulich <jbeulich@suse.com>
913 * config/tc-i386.c (build_modrm_byte): Change return type.
914 Change type of "default_seg". Use NULL. Adjust setting of
916 (reg_ds, reg_es, reg_ss): New.
917 (struct _i386_insn): Change type of seg[].
918 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
919 (swap_operands): Change type of "temp_seg".
920 (check_string): Adjust %es check.
921 (process_operands): Change type of "default_seg". Use NULL.
922 Adjust segment override processing..
923 (i386_att_operand): Adjust segment override handling.
924 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
926 2021-03-30 Jan Beulich <jbeulich@suse.com>
928 * config/tc-i386.c (reg_eax): New.
929 (md_begin): Initialize reg_eax.
930 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
932 (i386_intel_simplify): Likewise.
934 2021-03-30 Jan Beulich <jbeulich@suse.com>
936 * config/tc-i386.c (reg_st0): New.
937 (md_begin): Convert to switch(). Initialize reg_st0. Don't
939 (parse_real_register): Adjust st(N) processing.
941 2021-03-30 Jan Beulich <jbeulich@suse.com>
943 * config/tc-i386.c (rc_op): Delete.
944 (struct Rounding_Operation): Move ...
945 (struct _i386_insn): ... here. Change field "rounding".
946 (build_evex_prefix): Adjust rounding processing.
947 (swap_2_operands): Likewise.
948 (check_VecOperands): Likewise.
949 (RC_SAE_immediate): Likewise.
950 (optimize_encoding): Adjust check for rounding.
951 (build_modrm_byte): Likewise.
952 (output_imm): Likewise.
953 (md_assemble): Initialize rounding type.
955 2021-03-30 Jan Beulich <jbeulich@suse.com>
957 * config/tc-i386.c (broadcast_op): Delete.
958 (struct Broadcast_Operation): Move ...
959 (struct _i386_insn): ... here. Change field "broadcast".
960 (match_mem_size): Adjust check for broadcast.
961 (optimize_encoding): Likewise.
962 (process_suffix): Likewise.
963 (build_evex_prefix): Adjust broadcast processing.
964 (swap_2_operands): Likewise.
965 (check_VecOperations): Likewise.
966 (match_template): Likewise.
967 (check_VecOperands): Likewise.
969 2021-03-30 Jan Beulich <jbeulich@suse.com>
971 * config/tc-i386.c (reg_k0): New.
973 (struct Mask_Operation): Move ...
974 (struct _i386_insn): ... here. Change field "mask".
975 (md_begin): Initialize reg_k0.
976 (build_evex_prefix): Adjust mask processing.
977 (swap_2_operands): Likewise.
978 (check_VecOperands): Likewise.
979 (check_VecOperations): Likewise.
980 (optimize_encoding): Adjust checks for masking.
981 (output_insn): Likewise.
983 2021-03-30 Jan Beulich <jbeulich@suse.com>
985 * config/tc-i386.c (swap_2_operands): Switch parameters to
987 (struct RC_Operation): Switch operand field to unsigned.
988 (struct Mask_Operation): Likewise.
989 (struct Broadcast_Operation): Likewise.
990 (build_evex_prefix): Drop cast.
991 (check_VecOperands): Likewise.
992 (build_modrm_byte): Likewise.
993 (output_imm): Likewise.
994 (check_VecOperations): Add casts to unsigned.
996 2021-03-29 Jan Beulich <jbeulich@suse.com>
998 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
999 * testsuite/gas/i386/x86-64-avx-swap-2.d.
1000 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1002 2021-03-29 Jan Beulich <jbeulich@suse.com>
1004 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
1005 checks by opcodespace ones.
1006 (insert_lfence_before): Likewise.
1007 (maybe_fused_with_jcc_p): Likewise.
1008 (add_branch_padding_frag_p): Likewise.
1009 (output_disp): Likewise.
1010 (load_insn_p): Re-arrange checks to key applicable ones off of
1011 an opcodespace check.
1012 (md_assemble): Adjust opcode checks.
1013 (check_byte_reg): Likewise.
1014 (process_operands): Likewise.
1015 (i386_index_check): Likewise.
1016 (process_suffix): Likewise. New local variable is_movx. Adjust
1017 movsx/movzx and crc32 handling.
1018 (output_insn): Adjust opcode checks. Drop no longer reachable
1019 case labels. Output legacy encoding prefixes in addition to the
1020 base_opcode byte(s). Rework counting of prefixes for extended
1022 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
1025 2021-03-29 Alan Modra <amodra@gmail.com>
1027 * atof-generic.c (FALSE, TRUE): Don't define.
1028 * config/obj-elf.h (FALSE, TRUE): Don't define.
1029 * config/obj-som.h (FALSE, TRUE): Don't define.
1030 * config/tc-hppa.h (FALSE, TRUE): Don't define.
1031 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
1032 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
1033 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
1034 * config/tc-mt.h (obj_fix_adjustable): Delete.
1035 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
1036 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
1037 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
1038 (tokenize_extregister): Likewise.
1039 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
1040 (parse_operands_op, parse_operands, md_assemble): Likewise.
1041 * config/tc-d10v.c (build_insn): Likewise.
1042 * config/tc-score.c (s3_gen_insn_frag): Likewise.
1043 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
1044 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
1045 * config/tc-z80.c (emit_byte): Likewise.
1047 2021-03-29 Alan Modra <amodra@gmail.com>
1049 * config/tc-arm.c (struct arm_long_option_table <func>): Return
1051 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
1052 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
1054 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
1055 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
1056 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
1057 logical expressions.
1058 (struct metag_long_option <func>): Return bfd_boolean.
1059 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
1060 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
1061 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
1062 (no_operands, lex_force_match, lex_reg_list): Likewise.
1063 (size_from_suffix): Return int.
1064 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
1065 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
1067 2021-03-26 Jan Beulich <jbeulich@suse.com>
1069 * testsuite/gas/i386/x86-64-nosse2.s,
1070 testsuite/gas/i386/x86-64-nosse2.l: New.
1071 * testsuite/gas/i386/i386.exp: Run new test.
1073 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
1075 * testsuite/gas/nios2/brn.d: New.
1076 * testsuite/gas/nios2/brn.d: New.
1078 2021-03-25 Jan Beulich <jbeulich@suse.com>
1080 * config/tc-i386.c (match_template): Use t instead of i.tm.
1082 2021-03-25 Jan Beulich <jbeulich@suse.com>
1084 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
1085 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
1086 colliding registers in the upper half of the space.
1087 * testsuite/gas/i386/avx512f-nondef.d,
1088 testsuite/gas/i386/vgather-check.d,
1089 testsuite/gas/i386/x86-64-vgather-check.d,
1090 testsuite/gas/i386/x86-64-vgather-check-error.l,
1091 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
1093 * testsuite/gas/i386/vgather-check-none.d,
1094 testsuite/gas/i386/vgather-check-warn.d,
1095 testsuite/gas/i386/x86-64-vgather-check-none.d,
1096 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
1097 tests for expected dump output.
1099 2021-03-25 Jan Beulich <jbeulich@suse.com>
1101 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
1102 without mask register.
1103 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
1105 2021-03-25 Jan Beulich <jbeulich@suse.com>
1107 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
1108 swapping operands for.
1109 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
1111 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
1112 well as Intel syntax tests.
1113 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
1115 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
1116 Likewise. Drop passing --def-sym to as.
1118 2021-03-25 Jan Beulich <jbeulich@suse.com>
1121 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
1122 conversion to x32 mode.
1123 * testsuite/gas/i386/ilp32/enqcmd.s,
1124 testsuite/gas/i386/ilp32/enqcmd.d,
1125 testsuite/gas/i386/ilp32/movdir.s,
1126 testsuite/gas/i386/ilp32/movdir.d: New.
1127 * testsuite/gas/i386/x86-64-enqcmd.s,
1128 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
1130 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
1132 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
1133 * testsuite/gas/i386/x86-64-enqcmd.d,
1134 testsuite/gas/i386/x86-64-enqcmd-intel.d,
1135 testsuite/gas/i386/x86-64-enqcmd-inval.l,
1136 testsuite/gas/i386/x86-64-movdir.d,
1137 testsuite/gas/i386/x86-64-movdir-intel.d,
1138 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
1140 2021-03-25 Alan Modra <amodra@gmail.com>
1143 * testsuite/gas/ppc/a2.d: Update expected output.
1144 * testsuite/gas/ppc/power8.d: Likewise.
1146 2021-03-24 Jan Beulich <jbeulich@suse.com>
1148 * config/tc-i386.c (struct _i386_insn): New field
1150 (md_begin): Drop assertion.
1151 (install_template): New.
1152 (build_vex_prefix): Call install_template.
1153 (match_template): Likewise.
1154 (process_operands): Use new opcode_length field.
1155 (output_jump): Likewise.
1156 (output_insn): Likewise. Adjust psedo prefix check.
1158 2021-03-24 Jan Beulich <jbeulich@suse.com>
1160 * config/tc-i386.c (md_begin): Add assertion.
1161 (build_vex_prefix): Drop implied prefix calculation.
1162 (build_evex_prefix): Likewise.
1163 (optimize_encoding): Adjust opcode checks.
1164 (load_insn_p): Also check opcodeprefix.
1165 (match_template): Also check opcodespace.
1166 (process_suffix): Likewise.
1167 (process_operands): Likewise.
1168 (output_insn): Likewise. Also check isprefix when discaring
1170 * config/tc-i386-intel.c (i386_intel_operand): Also check
1173 2021-03-24 Jan Beulich <jbeulich@suse.com>
1175 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
1176 base_opcode and extension_opcode.
1178 2021-03-23 Jan Beulich <jbeulich@suse.com>
1180 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
1182 2021-03-23 Jan Beulich <jbeulich@suse.com>
1184 * config/tc-i386.c (output_i386_opcode): Invoke
1185 process_i386_cpu_flag() slightly later.
1186 (process_i386_opcodes): Likewise.
1188 2021-03-23 Jan Beulich <jbeulich@suse.com>
1190 * config/tc-i386.c (pte): Print prefix and encoding space.
1191 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
1192 (build_evex_prefix): Likewise.
1193 (load_insn_p): Likewise.
1195 2021-03-23 Jan Beulich <jbeulich@suse.com>
1197 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
1199 (match_template, output_insn): Use PREFIX_NONE.
1201 2021-03-23 Jan Beulich <jbeulich@suse.com>
1203 * config/tc-i386.c (i386_index_check): New local variable t.
1204 Correct MPX insn check.
1205 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
1207 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
1208 index scaling by other than 1.
1209 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1211 2021-03-22 Martin Liska <mliska@suse.cz>
1213 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
1214 (x86_64_section_word): Likewise.
1215 * config/tc-sparc.c (md_parse_option): Likewise.
1217 2021-03-19 Alan Modra <amodra@gmail.com>
1219 * app.c (do_scrub_chars): Don't lose spaces before a slash.
1221 2021-03-18 Christian Groessler <chris@groessler.org>
1223 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
1224 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
1226 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1228 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1229 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1230 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1231 * testsuite/gas/riscv/b-ext-64.d: Likewise.
1232 * testsuite/gas/riscv/b-ext.s: Likewise.
1233 * testsuite/gas/riscv/b-ext.d: Likewise.
1235 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1237 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1238 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1239 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1240 * testsuite/gas/aarch64/sysreg-7.d: New test.
1241 * testsuite/gas/aarch64/sysreg-7.s: New test.
1243 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1245 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1246 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1247 (ppc_xcoff_tbss_section): New variables.
1248 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1249 (ppc_data_csects): Removed.
1250 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1251 ppc_xcoff_parse_cons): New functions.
1252 (md_being): Initialize XCOFF sections.
1253 (ppc_xcoff_suffix): Add support for TLS relocations
1254 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1255 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1256 to .bss section. Handle new XCOFF section variables.
1257 (ppc_comm): Likewise.
1258 (ppc_toc): Likewise.
1259 (ppc_symbol_new_hook): Likewise.
1260 (ppc_frob_symbol): Likewise.
1261 (ppc_fix_adjustable): Add tbss support.
1262 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1263 (ppc_xcoff_parse_cons): Add prototype.
1264 (struct ppc_xcoff_section): New structure.
1266 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1268 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1269 (MAP, MAP32, MAP64): New macros for XCOFF.
1270 (ppc_xcoff_fixup_addis): New function.
1271 (ppc_is_toc_sym): Handle XMC_TE.
1272 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1273 BFD_RELOC_PPC_TOC16_LO.
1274 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1275 (ppc_change_csect): Handle XMC_TE.
1276 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1278 (ppc_symbol_new_hook): Handle XMC_TE.
1279 (ppc_frob_symbol): Likewise.
1280 (ppc_fix_adjustable): Likewise.
1281 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1282 BFD_RELOC_PPC_TOC16_LO.
1284 2021-03-10 Jan Beulich <jbeulich@suse.com>
1286 * testsuite/gas/i386/avx512f-intel.d,
1287 testsuite/gas/i386/avx512f_vl-intel.d,
1288 testsuite/gas/i386/avx512pf-intel.d,
1289 testsuite/gas/i386/x86-64-avx512f-intel.d,
1290 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1291 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1293 2021-03-10 Jan Beulich <jbeulich@suse.com>
1295 * testsuite/gas/i386/prefetch.d,
1296 testsuite/gas/i386/prefetch-intel.d,
1297 testsuite/gas/i386/x86-64-prefetch.d,
1298 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1299 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1300 * testsuite/gas/i386/i386.exp: Run new test.
1302 2021-03-09 Jan Beulich <jbeulich@suse.com>
1304 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1305 (md_assemble): Replace use of repprefixok, islockable, and
1307 (i386_index_check): Replace use of repprefixok.
1309 2021-03-09 Jan Beulich <jbeulich@suse.com>
1311 * testsuite/gas/i386/noreg64.s: Add sysexit.
1312 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1313 sysexitl and sysexitq.
1314 * testsuite/gas/i386/noreg-intel64.l,
1315 testsuite/gas/i386/noreg64-data16.d,
1316 testsuite/gas/i386/noreg64-data16.e,
1317 testsuite/gas/i386/noreg64-rex64.d,
1318 testsuite/gas/i386/noreg64.d,
1319 testsuite/gas/i386/noreg64.l,
1320 testsuite/gas/i386/x86-64-sysenter-amd.d,
1321 testsuite/gas/i386/x86-64-sysenter-amd.l,
1322 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1324 2021-02-26 Nick Clifton <nickc@redhat.com>
1327 * config/tc-arm.c (do_t_add_sub): Correct error message.
1328 * testsuite/gas/arm/pr27411.s: New test.
1329 * testsuite/gas/arm/pr27411.d: New test driver.
1330 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1332 2021-02-24 Alan Modra <amodra@gmail.com>
1335 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1336 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1337 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1338 and use alongside TARGET_CPU_CFILES.
1339 (EXTRA_DIST): Update location of generated .c files.
1340 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1341 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1342 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1343 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1345 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1346 (itbl-parse.c, itbl-parse.h): Tidy.
1347 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1348 * config/bfin-lex.l: Include config/bfin-parse.h.
1349 * configure.ac (extra_objects): Move object files corresponding
1350 to .y and .l files now in config/ to config/.
1351 * Makefile.in: Regenerate.
1352 * configure: Regenerate.
1353 * po/POTFILES.in: Regenerate.
1355 2021-02-19 Nick Clifton <nickc@redhat.com>
1357 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1358 misleading indentation.
1360 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1363 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1364 (md_apply_fix): Likewise.
1365 (md_convert_frag_branch): Likewise.
1366 (validate_riscv_insn): Likewise. Also arranged operands, including
1367 added C5 and C6 operands, and removed unused Ci and C< operands.
1368 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1369 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1370 * testsuite/gas/riscv/insn.s: Likewise.
1372 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1374 * config/tc-riscv.c: Included cpu-riscv.h.
1375 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1376 (struct riscv_csr_extra): Likewise.
1377 (struct riscv_ext_version): Likewise.
1378 (ext_version_table): Moved from opcodes/riscv-opc.c.
1379 (default_isa_spec): Updated type to riscv_spec_class.
1380 (default_priv_spec): Likewise.
1381 (riscv_set_default_isa_spec): Updated.
1382 (init_ext_version_hash): Likewise.
1383 (riscv_init_csr_hash): Likewise, also fixed indent.
1385 2021-02-17 Alan Modra <amodra@gmail.com>
1387 * testsuite/gas/elf/section28.d: xfail h8300.
1389 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1392 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1393 when checking incorrect section attributes.
1394 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1395 * testsuite/gas/elf/section28.d: New file.
1396 * testsuite/gas/elf/section28.s: Likewise.
1397 * testsuite/gas/elf/section29.d: Likewise.
1398 * testsuite/gas/elf/section29.s: Likewise.
1400 2021-02-16 Jan Beulich <jbeulich@suse.com>
1402 * testsuite/gas/i386/sse-check.s,
1403 testsuite/gas/i386/sse2avx.s,
1404 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1405 * testsuite/gas/i386/sse-check-error.l,
1406 testsuite/gas/i386/sse-check-warn.e,
1407 testsuite/gas/i386/sse-check.d,
1408 testsuite/gas/i386/sse2avx.d,
1409 testsuite/gas/i386/x86-64-sse-check-error.l,
1410 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1411 * testsuite/gas/i386/property-cvtpi2pd.s,
1412 testsuite/gas/i386/property-cvtpi2pd.d,
1413 testsuite/gas/i386/property-cvtpi2ps.s,
1414 testsuite/gas/i386/property-cvtpi2ps.d: New.
1415 * testsuite/gas/i386/i386.exp: Run new tests.
1417 2021-02-16 Jan Beulich <jbeulich@suse.com>
1419 * config/tc-i386.c (md_assemble): Use template rather than
1420 actuals when updating i.xstate.
1421 * testsuite/gas/i386/property-4.d,
1422 testsuite/gas/i386/property-5.d,
1423 testsuite/gas/i386/property-12.d: Adjust expectations.
1425 2021-02-16 Jan Beulich <jbeulich@suse.com>
1427 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1428 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1429 * testsuite/gas/i386/property-ldmxcsr.s,
1430 testsuite/gas/i386/property-ldmxcsr.d,
1431 testsuite/gas/i386/property-vldmxcsr.s,
1432 testsuite/gas/i386/property-vldmxcsr.d,
1433 testsuite/gas/i386/property-vzeroall.s,
1434 testsuite/gas/i386/property-vzeroall.d: New.
1435 * testsuite/gas/i386/i386.exp: Run new tests.
1437 2021-02-16 Jan Beulich <jbeulich@suse.com>
1439 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1440 tests to bitness independent section.
1441 * testsuite/gas/i386/x86-64-property-2.d,
1442 testsuite/gas/i386/x86-64-property-3.d,
1443 testsuite/gas/i386/x86-64-property-4.d,
1444 testsuite/gas/i386/x86-64-property-5.d,
1445 testsuite/gas/i386/x86-64-property-6.d,
1446 testsuite/gas/i386/x86-64-property-10.d,
1447 testsuite/gas/i386/x86-64-property-11.d,
1448 testsuite/gas/i386/x86-64-property-12.d,
1449 testsuite/gas/i386/x86-64-property-13.d: Delete.
1451 2021-02-16 Jan Beulich <jbeulich@suse.com>
1453 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1455 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1457 2021-02-16 Alan Modra <amodra@gmail.com>
1460 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1463 2021-02-16 Alan Modra <amodra@gmail.com>
1465 * read.c (demand_copy_C_string): Really check for embedded zeros.
1467 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1469 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1470 * doc/c-s390.texi: Document arch14 march option.
1471 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1472 * testsuite/gas/s390/zarch-arch14.d: New test.
1473 * testsuite/gas/s390/zarch-arch14.s: New test.
1475 2021-02-12 Nick Clifton <nickc@redhat.com>
1477 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1479 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1481 2021-02-12 Alan Modra <amodra@gmail.com>
1483 * testsuite/gas/all/pr27381.err: Don't match source file name.
1484 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1485 * testsuite/gas/all/pr27384.err: Don't match source file name.
1487 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1488 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1490 2021-02-11 Alan Modra <amodra@gmail.com>
1492 * NEWS: Mention arm-symbianelf removal.
1494 2021-02-10 Nick Clifton <nickc@redhat.com>
1496 * listing.c (buffer_line): Remove debugging code accidentally
1497 included with the fix for PR 27384.
1499 2021-02-09 Nick Clifton <nickc@redhat.com>
1502 * read.c (s_incbin): Check that the file to be included is a
1503 regular, non-directory file.
1504 * testsuite/gas/all/pr27381.s: New test source file.
1505 * testsuite/gas/all/pr27381.d: New test control file.
1506 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1507 * testsuite/gas/all/gas.exp: Run the new test.
1509 2021-02-09 Alan Modra <amodra@gmail.com>
1511 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1512 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1514 * config/te-symbian.h: Delete.
1515 * configure.tgt: Remove arm-*-symbianelf*.
1516 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1518 * testsuite/gas/arm/arch4t.d: Likewise.
1519 * testsuite/gas/arm/got_prel.d: Likewise.
1520 * testsuite/gas/arm/mapdir.d: Likewise.
1521 * testsuite/gas/arm/mapmisc.d: Likewise.
1522 * testsuite/gas/arm/mapsecs.d: Likewise.
1523 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1524 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1525 * testsuite/gas/arm/thumb.d: Likewise.
1526 * testsuite/gas/arm/thumbrel.d: Likewise.
1527 * Makefile.in: Regenerate.
1528 * po/POTFILES.in: Regenerate.
1530 2021-02-09 Nick Clifton <nickc@redhat.com>
1533 * listing.c (listing_psize): Check the result of the width
1534 expression before assigning it to paper_width.
1535 * testsuite/gas/all/pr27384.s: New test source file.
1536 * testsuite/gas/all/pr27384.d: New test control file.
1537 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1538 * testsuite/gas/all/gas.exp: Run the new test.
1540 2021-02-09 Nick Clifton <nickc@redhat.com>
1543 * testsuite/gas/elf/pr27355.s: New test source file.
1544 * testsuite/gas/elf/pr27355.d: New test control file.
1545 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1546 * testsuite/gas/elf/elf.exp: Run the new test.
1548 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1550 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1551 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1552 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1553 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1554 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1556 2021-02-08 Nick Clifton <nickc@redhat.com>
1559 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1560 if it has not already been created.
1562 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1564 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1566 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1567 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1568 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1570 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1572 * doc/c-s390.texi: Document vector instruction formats.
1574 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1576 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1578 2021-02-01 Alan Modra <amodra@gmail.com>
1581 * config/tc-alpha.c (insert_operand): Delete dead code.
1583 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1586 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1588 * testsuite/gas/nios2/relax.d: New file.
1589 * testsuite/gas/nios2/relax.s: Likewise.
1591 2021-01-26 Alan Modra <amodra@gmail.com>
1593 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1594 notarget all except hppa. Comment.
1595 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1596 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1597 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1598 * testsuite/gas/all/sleb128-7.d: Likewise.
1599 * testsuite/gas/all/sleb128-9.d: Likewise.
1600 * testsuite/gas/elf/bignums.d: Likewise.
1601 * testsuite/gas/elf/group0c.d: Likewise.
1602 * testsuite/gas/elf/group1a.d: Likewise.
1603 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1604 * testsuite/gas/elf/section15.d: Likewise.
1605 * testsuite/gas/elf/section4.d: Likewise.
1606 * testsuite/gas/elf/section7.d: Likewise.
1607 * testsuite/gas/macros/irp.d: Likewise.
1608 * testsuite/gas/macros/repeat.d: Likewise.
1609 * testsuite/gas/macros/rept.d: Likewise.
1610 * testsuite/gas/macros/test2.d: Likewise.
1611 * testsuite/gas/macros/vararg.d: Likewise.
1612 * testsuite/gas/all/string.d: Use xfail rather than skip.
1613 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1614 * testsuite/gas/elf/section0.d: Likewise.
1615 * testsuite/gas/elf/section1.d: Likewise.
1616 * testsuite/gas/elf/section10.d: Likewise.
1617 * testsuite/gas/elf/section11.d: Likewise.
1618 * testsuite/gas/elf/section6.d: Likewise.
1619 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1620 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1621 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1623 2021-01-26 Alan Modra <amodra@gmail.com>
1625 * testsuite/gas/all/byte.d,
1626 * testsuite/gas/all/byte.l,
1627 * testsuite/gas/all/byte.s: Delete.
1628 * testsuite/gas/all/gas.exp: Don't run byte test.
1630 2021-01-26 Alan Modra <amodra@gmail.com>
1633 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1634 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1636 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1639 * testsuite/gas/elf/elf.exp: Run pr27228.
1640 * testsuite/gas/elf/pr27228.d: New file.
1641 * testsuite/gas/elf/pr27228.s: Likewise.
1643 2021-01-24 Alan Modra <amodra@gmail.com>
1646 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1649 2021-01-21 Alan Modra <amodra@gmail.com>
1652 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1653 line number info when gas is generating it.
1654 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1655 * testsuite/gas/m68hc11/indexed12.d: Likewise.
1656 * testsuite/gas/elf/elf.exp: Don't run warn-2.
1657 * gas/testsuite/gas/elf/warn-2.s: Delete.
1659 2021-01-21 Alan Modra <amodra@gmail.com>
1662 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1663 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1664 error for negative file numbers.
1666 2021-01-20 Alan Modra <amodra@gmail.com>
1668 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1669 * testsuite/gas/ppc/test1elf32.d: Likewise.
1670 * testsuite/gas/ppc/test1elf64.d: Likewise.
1672 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
1675 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1677 (dwarf2_directive_filename): Likewise.
1678 (dwarf2_directive_loc): Likewise.
1679 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1680 * testsuite/gas/lns/lns-diag-1.l: Remove the
1681 "Error: file number less than one" errors.
1683 2021-01-18 Alan Modra <amodra@gmail.com>
1686 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1687 * testsuite/gas/i386/pr27198.d,
1688 * gas/testsuite/gas/i386/pr27198.err,
1689 * gas/testsuite/gas/i386/pr27198.s: New test.
1690 * gas/testsuite/gas/i386/i386.exp: Run it.
1692 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1694 * config/tc-riscv.c: Indent and GNU coding standards tidy,
1695 also aligned the code.
1696 * config/tc-riscv.h: Likewise.
1698 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1700 * config/tc-riscv.c: Error and warning messages tidy.
1701 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1702 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1703 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1704 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1705 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1706 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1707 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1709 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1711 * config/tc-riscv.c: Comments tidy and improvement. Also update
1712 comment "fallthru" to "Fall through" that end with a period and
1715 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1717 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1718 Delete warning that these are only available with ELF targets.
1719 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1720 * read.c (potable): ... here.
1722 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1724 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1725 * Makefile.in: Regenerated.
1727 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1729 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1730 (parse_int): Mark char_bag const.
1732 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1735 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1736 Don't generate GOT_symbol for PLT relocations.
1737 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1738 * testsuite/gas/i386/no-got.d: New file.
1739 * testsuite/gas/i386/no-got.s: Likewise.
1740 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1741 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1743 2021-01-13 Alan Modra <amodra@gmail.com>
1745 * Makefile.in: Regenerate.
1746 * Makefile.in: Regenerate.
1748 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1751 * configure.ac: Use GNU_MAKE_JOBSERVER.
1752 * aclocal.m4: Regenerated.
1753 * configure: Likewise.
1755 2021-01-12 Nick Clifton <nickc@redhat.com>
1757 * po/fr.po: Updated French translation.
1759 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1762 * configure: Regenerated.
1764 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1766 * NEWS: Remove CSRE.
1767 * config/tc-aarch64.c (parse_csr_operand): Delete.
1768 (parse_operands): Delete handling of
1769 AARCH64_OPND_CSRE_CSR.
1770 (aarch64_features): Remove csre.
1771 * doc/c-aarch64.texi: Remove CSRE.
1772 * testsuite/gas/aarch64/csre.d: Delete.
1773 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1774 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1775 * testsuite/gas/aarch64/csre_csr.s: Likewise.
1776 * testsuite/gas/aarch64/csre_csr.d: Likewise.
1777 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1778 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1779 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1781 2021-01-11 Nick Clifton <nickc@redhat.com>
1783 * po/uk.po: Updated Ukranian translation.
1785 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1787 * configure: Regenerated.
1789 2021-01-09 Nick Clifton <nickc@redhat.com>
1791 * configure: Regenerate.
1792 * po/gas.pot: Regenerate.
1794 2021-01-09 Nick Clifton <nickc@redhat.com>
1796 * 2.36 release branch crated.
1798 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
1800 * testsuite/gas/ppc/rop-checks.d,
1801 * testsuite/gas/ppc/rop-checks.l,
1802 * testsuite/gas/ppc/rop-checks.s,
1803 * testsuite/gas/ppc/rop.d,
1804 * testsuite/gas/ppc/rop.s: New tests.
1805 * testsuite/gas/ppc/ppc.exp: Run them.
1807 2021-01-09 Alan Modra <amodra@gmail.com>
1809 * configure: Regenerate.
1811 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1813 * configure: Regenerate.
1815 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1818 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1820 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1821 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1822 on the section symbol.
1823 (set_symtab): Don't generate unused section symbols.
1824 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1825 on the section symbol.
1826 * config/obj-elf.c (elf_adjust_symtab): Call
1827 symbol_mark_used_in_reloc on the group signature symbol.
1828 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1829 from expected output.
1830 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1831 is_elf_unused_section_symbols.
1832 * testsuite/gas/elf/section2.e: Updated.
1833 * testsuite/gas/elf/section2.e-unused: New file.
1834 * testsuite/gas/elf/symver.d: Remove unused section symbols.
1835 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1836 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1837 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1838 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1839 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1840 * testsuite/gas/i386/size-1.d: Likewise.
1841 * testsuite/gas/i386/size-3.d: Likewise.
1842 * testsuite/gas/i386/svr4.d: Likewise.
1843 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1844 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1845 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1846 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1848 2021-01-07 Philipp Tomsich <prt@gnu.org>
1850 * config/tc-riscv.c (riscv_multi_subset_supports): Added
1851 INSN_CLASS_ZIHINTPAUSE.
1852 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
1853 the pause hint instruction.
1854 * testsuite/gas/riscv/pause.s: Likewise.
1856 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1857 Jim Wilson <jimw@sifive.com>
1858 Andrew Waterman <andrew@sifive.com>
1859 Maxim Blinov <maxim.blinov@embecosm.com>
1860 Kito Cheng <kito.cheng@sifive.com>
1861 Nelson Chu <nelson.chu@sifive.com>
1863 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1864 (riscv_get_default_ext_version): Do not check the default_isa_spec when
1865 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1866 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1867 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1868 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1870 2021-01-06 Alan Modra <amodra@gmail.com>
1872 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1874 2021-01-06 Alan Modra <amodra@gmail.com>
1876 * testsuite/gas/macros/app1.d: xfail tic30.
1877 * testsuite/gas/macros/app2.d: Likewise.
1878 * testsuite/gas/macros/app3.d: Likewise.
1879 * testsuite/gas/macros/app4.d: Likewise.
1881 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1883 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1884 * doc/c-riscv.texi: Likewise.
1886 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1888 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1890 * testsuite/gas/riscv/li64.d: Likewise.
1891 * testsuite/gas/riscv/lla32.d: Likewise.
1892 * testsuite/gas/riscv/lla64.d: Likewise.
1893 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1894 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1895 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1896 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1897 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1898 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1899 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1901 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1903 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1905 (install_insn): Always write instructions as little endian.
1906 (riscv_make_nops): Likewise.
1907 (md_convert_frag_branch): Likewise.
1908 (md_number_to_chars): Write data in target endianness.
1909 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1910 (md_parse_option): Handle the endian options.
1911 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1913 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1915 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1918 * config/obj-elf.c (obj_elf_change_section): Also filter out
1921 2021-01-04 Alan Modra <amodra@gmail.com>
1924 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1925 message and register symbol error message.
1927 2021-01-04 Alan Modra <amodra@gmail.com>
1930 * read.c (s_align): Use a large enough type for "align" to hold
1931 the result of get_absolute_expression.
1933 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1935 * config/tc-i386.c: Correct comment spelling.
1936 * config/tc-riscv.c: Likewise.
1937 * config/tc-s390.c: Correct comment grammar.
1938 * doc/c-i386.texi: Correct spelling.
1939 * doc/c-s390.texi: Correct grammar.
1941 2021-01-01 Alan Modra <amodra@gmail.com>
1943 Update year range in copyright notice of all files.
1945 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1947 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1949 For older changes see ChangeLog-2020
1951 Copyright (C) 2021 Free Software Foundation, Inc.
1953 Copying and distribution of this file, with or without modification,
1954 are permitted in any medium without royalty provided the copyright
1955 notice and this notice are preserved.
1961 version-control: never