1 2021-05-08 Mike Frysinger <vapier@gentoo.org>
3 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
4 * doc/Makefile.in: Regenerate.
6 2021-05-07 Nick Clifton <nickc@redhat.com>
9 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
10 (obj_elf_bss): New function. Change to the .bss section.
11 Support an optional subsection number.
12 (obj_elf_change_section): Call obj_elf_section_change_hook.
13 (obj_elf_section): Likewise.
14 (obj_elf_data): Likewise.
15 (obj_elf_text): Likewise.
16 (obj_elf_struct): Likewise.
17 (obj_elf_subsection): Likewise.
18 (obj_elf_previous): Likewise.
19 * config/obj-elf.h (obj_elf_bss): Prototype.
20 * doc/as.texi (Bss): New node.
22 2021-05-07 Clément Chigot <clement.chigot@atos.net>
24 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
25 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
26 (coff_frob_section): Likewise.
27 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
28 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
29 SA_SET_SECT_NRELOC) New defines.
30 (SET_SECTION_RELOCS): Adjust for C_DWARF.
31 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
32 (ppc_adjust_symtab): Reorder C_DWARF symbols.
33 * testsuite/gas/ppc/aix.exp: New tests.
34 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
35 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
36 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
38 * config/tc-ppc.c (ppc_function): Update comment for
40 (ppc_frob_symbol): Remove ppc_last_function check.
41 Make sure coff_last_function is reset.
42 Correctly set fsize when not provided in .function.
43 * testsuite/gas/ppc/aix.exp: New tests.
44 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
45 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
46 * testsuite/gas/ppc/xcoff-function-1.s: New test.
48 2021-05-07 Jan Beulich <jbeulich@suse.com>
50 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
51 * testsuite/gas/i386/i386.exp: Run new test.
53 2021-05-07 Jan Beulich <jbeulich@suse.com>
55 * config/tc-i386.c (output_disp): Use disps field instead of
58 2021-05-07 Jan Beulich <jbeulich@suse.com>
60 * config/tc-i386.c (i386_finalize_immediate): Move register
62 (i386_immediate): ... here.
64 2021-05-07 Jan Beulich <jbeulich@suse.com>
66 * config/tc-i386.c (optimize_imm): Drop redundant masking.
67 Re-arrange operand type accumulation.
69 2021-05-06 Stafford Horne <shorne@gmail.com>
72 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
73 * testsuite/gas/or1k/reloc-1.d: Add test result for new
76 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
79 * testsuite/gas/riscv/a-ext-64.d: New testcase.
80 * testsuite/gas/riscv/a-ext-64.s: Likewise.
81 * testsuite/gas/riscv/a-ext.d: Likewise.
82 * testsuite/gas/riscv/a-ext.s: Likewise.
84 2021-05-03 Jan Beulich <jbeulich@suse.com>
86 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
88 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
89 Add two further .long and an .equ.
90 * testsuite/gas/i386/secrel.d: Adjust expecations.
92 2021-05-03 Jan Beulich <jbeulich@suse.com>
94 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
95 Convert Windows to UNIX EOL.
97 2021-05-03 Jan Beulich <jbeulich@suse.com>
99 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
100 variant into ELF one.
102 2021-05-03 Alan Modra <amodra@gmail.com>
104 * testsuite/gas/elf/section25.s: Don't start directives in first
106 * testsuite/gas/elf/section26.s: Likewise.
108 2021-04-29 Jan Beulich <jbeulich@suse.com>
110 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
111 * testsuite/gas/i386/lea64.d,
112 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
113 * testsuite/gas/i386/x86-64-rip-inval-1.s,
114 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
116 2021-04-29 Jan Beulich <jbeulich@suse.com>
118 * config/tc-i386.c (i386_validate_fix): Change return type to
119 int. Short-circuit BFD_RELOC_SIZE* handling.
120 (tc_gen_reloc): New local variable sym. Extend logic when
121 processing BFD_RELOC_SIZE*.
122 * config/tc-i386.f (i386_validate_fix): Change return type to
124 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
126 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
127 testsuite/gas/i386/size-5b.d: New.
128 * testsuite/gas/i386/i386.exp: Run new tests.
130 2021-04-29 Jan Beulich <jbeulich@suse.com>
132 * config/tc-i386.c (tc_gen_reloc): Use section size for section
133 symbols when resolving BFD_RELOC_SIZE*.
134 * testsuite/gas/i386/size-2.s: Add section size cases.
135 * testsuite/gas/i386/size-2.d,
136 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
138 2021-04-28 Jan Beulich <jbeulich@suse.com>
139 H.J. Lu <hjl.tools@gmail.com>
142 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
143 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
144 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
145 (md_estimate_size_before_relax): Move local variable fixP. Set
146 it from fix_new() return values. Mark 4-byte relocs as signed
148 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
149 * testsuite/gas/i386/x86-64-rip-2.s,
150 * testsuite/gas/i386/x86-64-rip-2.d,
151 * testsuite/gas/i386/x86-64-rip-inval-1.s,
152 * testsuite/gas/i386/x86-64-rip-inval-1.l,
153 * testsuite/gas/i386/x86-64-rip-inval-2.s,
154 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
155 * testsuite/gas/i386/i386.exp: Run new tests.
157 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
159 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
161 2021-04-26 Jan Beulich <jbeulich@suse.com>
163 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
166 2021-04-26 Jan Beulich <jbeulich@suse.com>
168 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
169 overflow check to 64-bit objects.
171 2021-04-26 Jan Beulich <jbeulich@suse.com>
173 * config/tc-i386.c (want_disp32): Also check for SIZE32.
174 (optimize_encoding): Handle LEA.
175 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
176 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
178 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
179 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
180 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
182 * testsuite/gas/i386/i386.exp: Run new tests.
184 2021-04-26 Jan Beulich <jbeulich@suse.com>
186 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
188 * testsuite/gas/i386/x86-64-addr32-bad.s,
189 testsuite/gas/i386/x86-64-addr32-bad.l: New.
190 * testsuite/gas/i386/i386.exp: Run new test.
192 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
194 * testsuite/gas/elf/section25.d: Run it everywhere.
195 * testsuite/gas/elf/section26.d: Likewise.
196 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
198 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
200 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
201 optional "code" argument.
203 2021-04-23 Jan Beulich <jbeulich@suse.com>
205 * config/tc-i386.c (want_disp32): New.
206 (md_assemble): Use it.
207 (optimize_disp): Likewise.
208 (build_modrm_byte): Likewise.
210 2021-04-23 Jan Beulich <jbeulich@suse.com>
212 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
214 (md_assemble): ... here.
216 2021-04-23 Jan Beulich <jbeulich@suse.com>
218 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
219 Move up setting of disp32.
221 2021-04-23 Jan Beulich <jbeulich@suse.com>
223 * config/tc-i386.c (pe): Don't truncate expression value.
224 (i386_finalize_displacement): Likewise.
226 2021-04-21 Nick Clifton <nickc@redhat.com>
228 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
229 for named section symbols.
230 * testsuite/gas/arm/thumbver.d: Likewise.
231 * testsuite/gas/bfin/loop_temps.d: Likewise.
232 * testsuite/gas/elf/section2.e-arc: Likewise.
233 * testsuite/gas/elf/section2.e-arm: Likewise.
234 * testsuite/gas/elf/section2.e-csky: Likewise.
235 * testsuite/gas/elf/section2.e-m32r: Likewise.
236 * testsuite/gas/elf/section2.e-mips: Likewise.
237 * testsuite/gas/elf/section2.e-msp430: Likewise.
238 * testsuite/gas/elf/section2.e-riscv: Likewise.
239 * testsuite/gas/elf/section2.e-rl78: Likewise.
240 * testsuite/gas/elf/section2.e-rx: Likewise.
241 * testsuite/gas/elf/section2.e-score: Likewise.
242 * testsuite/gas/elf/section2.e-tic6x: Likewise.
243 * testsuite/gas/elf/section2.e-unused: Likewise.
244 * testsuite/gas/elf/section2.e-v850: Likewise.
245 * testsuite/gas/elf/section2.e-xtensa: Likewise.
246 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
247 * testsuite/gas/ia64/alias.d: Likewise.
248 * testsuite/gas/ia64/global.d: Likewise.
249 * testsuite/gas/microblaze/relax_size.elf: Likewise.
250 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
251 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
252 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
253 * testsuite/gas/mmix/bspec-1.d: Likewise.
254 * testsuite/gas/mmix/byte-1.d: Likewise.
255 * testsuite/gas/mmix/comment-1.d: Likewise.
256 * testsuite/gas/mmix/loc-1.d: Likewise.
257 * testsuite/gas/mmix/loc-2.d: Likewise.
258 * testsuite/gas/mmix/loc-3.d: Likewise.
259 * testsuite/gas/mmix/loc-4.d: Likewise.
260 * testsuite/gas/mmix/loc-5.d: Likewise.
261 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
263 2021-04-20 Clément Chigot <clement.chigot@atos.net>
266 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
267 (ppc_fix_adjustable): Manage fx_subsy part.
268 (tc_gen_reloc): Create second relocation when both
269 fx_addsy and fx_subsy are provided.
270 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
271 (MAX_RELOC_EXPANSION): Likewise.
272 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
273 (UNDEFINED_DIFFERENCE_OK): Likewise
274 * testsuite/gas/all/gas.exp: Skip difference between two
275 undefined symbols test.
277 2021-04-19 Nick Clifton <nickc@redhat.com>
279 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
280 targets which should skip the undefined symbols test.
282 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
285 * testsuite/gas/aarch64/rme.d: Update test.
286 * testsuite/gas/aarch64/rme.s: Update test.
288 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
290 * testsuite/gas/aarch64/rme.d: Update test.
291 * testsuite/gas/aarch64/rme.s: Update test.
293 2021-04-19 Jan Beulich <jbeulich@suse.com>
295 * as.h (sprint_value): Delete.
296 * messages.c (sprint_value): Likewise.
297 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
298 place of sprint_value.
299 * config/tc-s390.c (s390_insert_operand): Likewise.
300 * doc/internals.texi (sprint_value): Delete section.
301 * write.c (fixup_segment): Likewise.
302 (relax_segment): Likewise.
304 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
306 * testsuite/gas/aarch64/rme-invalid.d: New test.
307 * testsuite/gas/aarch64/rme-invalid.l: New test.
308 * testsuite/gas/aarch64/rme-invalid.s: New test.
309 * testsuite/gas/aarch64/rme.d: New test.
310 * testsuite/gas/aarch64/rme.s: New test.
312 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
315 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
316 * testsuite/gas/riscv/shamt-32.d: New testcase.
317 * testsuite/gas/riscv/shamt-32.l: Likewise.
318 * testsuite/gas/riscv/shamt-32.s: Likewise.
319 * testsuite/gas/riscv/shamt-64.d: Likewise.
320 * testsuite/gas/riscv/shamt-64.l: Likewise.
321 * testsuite/gas/riscv/shamt-64.s: Likewise.
323 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
325 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
327 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
329 2021-04-14 Alan Modra <amodra@gmail.com>
332 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
333 (select_cie_for_fde): ..here. Simplify.
335 2021-04-14 Alan Modra <amodra@gmail.com>
338 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
339 DW_CFA_GNU_window_save and DW_CFA_restore_state.
341 2021-04-13 Alan Modra <amodra@gmail.com>
343 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
344 write to $srcdir. Use gas_host_run and read output file rather
345 than gas_start/gas_finish.
347 2021-04-12 Alan Modra <amodra@gmail.com>
349 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
350 (md_assemble): Likewise. Handle bignum operands.
351 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
353 * expr.c: Delete unnecessary forward declarations.
354 (generic_bignum_to_int32): Return uint32_t.
355 (generic_bignum_to_int64): Return uint64_t. Compile always.
356 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
357 clear X_extrabit for unary '!'.
358 * expr.h (generic_bignum_to_int32): Declare.
359 (generic_bignum_to_int64): Declare.
360 * testsuite/gas/ppc/prefix-pcrel.s,
361 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
363 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
365 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
366 march-fail-porder-x-std.d.
367 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
368 march-fail-porder-z-std.d.
369 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
370 march-fail-porder-x-z.d.
371 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
373 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
374 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
375 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
376 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
377 march-fail-single-char-h.d.
378 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
379 march-fail-single-char-s.d.
380 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
381 march-fail-single-char-x.d.
382 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
383 march-fail-single-char-z.d.
384 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
385 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
386 march-fail-single-prefix.l.
387 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
388 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
389 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
391 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
393 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
394 diagnostic messages for LD/ST Exclusive instructions.
395 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
396 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
399 2021-04-09 Alan Modra <amodra@gmail.com>
401 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
402 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
403 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
405 2021-04-08 Alan Modra <amodra@gmail.com>
407 * testsuite/gas/ppc/pr27676.d,
408 * testsuite/gas/ppc/pr27676.s: New test.
409 * testsuite/gas/ppc/ppc.exp: Run it.
410 * testsuite/gas/ppc/dcbt.d: Update.
411 * testsuite/gas/ppc/power4_32.d: Update.
413 2021-04-07 Alan Modra <amodra@gmail.com>
416 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
418 2021-04-06 Nick Clifton <nickc@redhat.com>
421 * config/tc-aarch64.c (my_get_expression): Rename to
422 aarch64_get_expression. Add a fifth argument to enable deferring
423 of expression resolution.
424 (parse_typed_reg): Update calls to my_get_expression.
425 (parse_vector_reg_list): Likewise.
426 (parse_immediate_expression): Likewise.
427 (parse_big_immediate): Likewise.
428 (parse_shift): Likewise.
429 (parse_shifter_operand_imm): Likewise.
430 (parse_operands): Likewise.
431 (parse_shifter_operand_reloc): Update calls to my_get_expression
432 and call aarch64_force_reloc to determine the value of the new
434 (parse_address_main): Likewise.
435 (parse_half): Likewise.
436 (parse_adrp): Likewise.
437 (aarch64_force_reloc): New function. Contains code extracted from...
438 (aarch64_force_relocation): ... here.
439 * testsuite/gas/aarch64/pr27217.s: New test case.
440 * testsuite/gas/aarch64/pr27217.d: New test driver.
442 2021-04-06 Jan Beulich <jbeulich@suse.com>
444 * write.c (fixup_segment): Move add_symbol_segment declaration
447 2021-04-05 Alan Modra <amodra@gmail.com>
449 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
450 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
451 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
452 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
453 strstr, or vsnprintf declarations.
454 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
455 * as.h: Don't include alloca-conf.h, include config.h instead.
456 Include string.h, stdlib.h, errno.h unconditionally. Remove
457 various fallback declarations.
458 * asintl.h: Don't test HAVE_LOCALE_H.
459 * as.c: Don't test HAVE_SETLOCALE.
460 * dwarf2dbg.c: Include limits.h unconditionally.
463 * symbols.c: Likewise.
464 * config/tc-cr16.c: Likewise.
465 * config/tc-d30v.c: Likewise.
466 * config/tc-i386.c: Likewise.
467 * config/tc-ia64.c: Likewise.
468 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
469 * config.in: Regenerate.
470 * configure: Regenerate.
471 * Makefile.in: Regenerate.
472 * doc/Makefile.in: Regenerate.
474 2021-04-01 Martin Liska <mliska@suse.cz>
476 * config/obj-coff.c (strneq): Remove strneq and use startswith.
477 (weak_is_altname): Likewise.
478 (obj_coff_section): Likewise.
479 * config/tc-cr16.c (process_label_constant): Likewise.
480 * config/tc-crx.c (strneq): Likewise.
482 2021-04-01 Martin Liska <mliska@suse.cz>
484 * as.c (select_emulation_mode): Use startswith.
485 * config/m68k-parse.y: Likewise.
486 * config/obj-aout.c (obj_aout_type): Likewise.
487 * config/obj-elf.c (elf_common_parse): Likewise.
488 (obj_elf_section_type): Likewise.
489 (obj_elf_section_word): Likewise.
490 (obj_elf_section): Likewise.
491 (obj_elf_symver): Likewise.
492 (adjust_stab_sections): Likewise.
493 * config/obj-evax.c (evax_shorten_name): Likewise.
494 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
495 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
496 (aarch64_parse_features): Likewise.
497 (create_register_alias): Likewise.
498 (aarch64_data_in_code): Likewise.
499 (md_parse_option): Likewise.
500 * config/tc-alpha.c (s_alpha_section_word): Likewise.
501 (s_alpha_pdesc): Likewise.
502 * config/tc-arc.c (tokenize_extregister): Likewise.
503 * config/tc-arm.c (create_register_alias): Likewise.
504 (create_neon_reg_alias): Likewise.
505 (parse_ifimm_zero): Likewise.
506 (parse_qfloat_immediate): Likewise.
507 (arm_elf_section_type): Likewise.
508 (arm_parse_extension): Likewise.
509 (aeabi_set_public_attributes): Likewise.
510 (s_arm_arch_extension): Likewise.
511 (arm_data_in_code): Likewise.
512 (start_unwind_section): Likewise.
513 * config/tc-avr.c (avr_ldi_expression): Likewise.
514 * config/tc-csky.c (is_freglist_legal): Likewise.
515 (csky_s_section): Likewise.
516 * config/tc-d30v.c (do_assemble): Likewise.
517 * config/tc-dlx.c (parse_operand): Likewise.
518 * config/tc-epiphany.c (md_assemble): Likewise.
519 * config/tc-h8300.c (h8300_elf_section): Likewise.
520 (get_operand): Likewise.
521 * config/tc-hppa.c (pa_ip): Likewise.
522 (pa_level): Likewise.
523 (pa_space): Likewise.
524 * config/tc-i386.c (i386_mach): Likewise.
525 (md_assemble): Likewise.
526 (check_VecOperations): Likewise.
527 (i386_target_format): Likewise.
528 (i386_elf_section_type): Likewise.
529 * config/tc-ia64.c (start_unwind_section): Likewise.
530 (md_parse_option): Likewise.
531 (is_taken_branch): Likewise.
532 (idesc->name,): Likewise.
533 (note_register_values): Likewise.
534 (do_alias): Likewise.
535 * config/tc-m32c.c (insn_to_subtype): Likewise.
536 * config/tc-m68hc11.c (get_operand): Likewise.
537 (md_assemble): Likewise.
538 * config/tc-m68k.c (m68k_ip): Likewise.
539 (m68k_elf_suffix): Likewise.
540 * config/tc-mcore.c (mcore_s_section): Likewise.
541 * config/tc-metag.c (parse_get_set): Likewise.
542 (md_parse_option): Likewise.
543 * config/tc-microblaze.c (parse_imm): Likewise.
544 (check_got): Likewise.
545 (md_apply_fix): Likewise.
546 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
547 (md_begin): Likewise.
548 (s_is_linkonce): Likewise.
549 (check_regno): Likewise.
550 (match_float_constant): Likewise.
551 (classify_vr4120_insn): Likewise.
552 (match_insn): Likewise.
553 (mips_after_parse_args): Likewise.
554 (s_change_sec): Likewise.
555 (s_option): Likewise.
556 (parse_code_option): Likewise.
557 (md_section_align): Likewise.
558 (nopic_need_relax): Likewise.
559 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
560 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
561 (mn10300_end_of_match): Likewise.
562 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
563 * config/tc-nds32.c (nds32_parse_option): Likewise.
564 * config/tc-nds32.h (md_do_align): Likewise.
565 * config/tc-nios2.c (strprefix): Likewise.
566 (nios2_special_relocation_p): Likewise.
567 (nios2_parse_base_register): Likewise.
568 (nios2_cons): Likewise.
569 * config/tc-ns32k.c (addr_mode): Likewise.
570 * config/tc-pdp11.c (set_option): Likewise.
571 (parse_reg): Likewise.
572 (parse_ac5): Likewise.
573 (parse_op_no_deferred): Likewise.
574 (set_cpu_model): Likewise.
575 (set_machine_model): Likewise.
576 * config/tc-pj.c (md_operand): Likewise.
577 * config/tc-ppc.c (ppc_set_cpu): Likewise.
578 (ppc_arch): Likewise.
579 (ppc_section_type): Likewise.
580 * config/tc-s12z.c (tb_reg_rel): Likewise.
581 (tb_opr_rel): Likewise.
582 * config/tc-s390.c (s390_parse_cpu): Likewise.
583 (md_parse_option): Likewise.
584 * config/tc-score.c (s3_nopic_need_relax): Likewise.
585 (s3_pic_need_relax): Likewise.
586 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
587 (s7_pic_need_relax): Likewise.
588 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
589 * config/tc-sparc.c (md_parse_option): Likewise.
590 (sparc_ip): Likewise.
591 (s_reserve): Likewise.
592 (s_common): Likewise.
594 (sparc_cons): Likewise.
595 * config/tc-tic54x.c (stag_add_field): Likewise.
596 (tic54x_endstruct): Likewise.
597 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
598 * config/tc-v850.c (v850_comm): Likewise.
599 (md_begin): Likewise.
600 (md_assemble): Likewise.
601 * config/tc-vax.c (vax_cons): Likewise.
602 * config/tc-wasm32.c (wasm32_leb128): Likewise.
603 * config/tc-xstormy16.c (md_operand): Likewise.
604 * config/tc-xtensa.c (get_directive): Likewise.
605 (xg_instruction_matches_option_term): Likewise.
606 (is_unaligned_label): Likewise.
607 (cache_literal_section): Likewise.
608 * config/xtensa-relax.c (parse_precond): Likewise.
609 (parse_option_cond): Likewise.
610 (transition_applies): Likewise.
611 (wide_branch_opcode): Likewise.
612 * dw2gencfi.c: Likewise.
613 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
614 * ehopt.c (get_cie_info): Likewise.
615 * input-file.c (input_file_open): Likewise.
616 * listing.c (listing_newline): Likewise.
617 (debugging_pseudo): Likewise.
618 * read.c (read_a_source_file): Likewise.
619 * write.c (adjust_reloc_syms): Likewise.
620 (compress_debug): Likewise.
621 (maybe_generate_build_notes): Likewise.
623 2021-03-31 Alan Modra <amodra@gmail.com>
625 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
626 * config/bfin-lex-wrapper.c: Likewise.
627 * itbl-lex.l: Don't include as.h.
628 * config/bfin-lex.l: Likewise.
630 2021-03-31 Alan Modra <amodra@gmail.com>
632 * as.h (POISON_BFD_BOOLEAN): Define.
633 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
634 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
635 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
636 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
637 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
638 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
639 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
640 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
641 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
642 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
643 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
644 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
645 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
646 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
647 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
648 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
649 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
650 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
651 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
652 * config/tc-metag.c, * config/tc-metag.h,
653 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
654 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
655 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
656 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
657 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
658 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
659 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
660 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
661 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
662 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
663 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
664 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
665 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
666 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
667 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
668 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
669 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
670 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
671 * config/tc-z8k.c, * config/xtensa-istack.h,
672 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
673 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
674 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
675 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
676 with bool, FALSE with false, and TRUE with true.
678 2021-03-31 Alan Modra <amodra@gmail.com>
680 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
681 * config/tc-crx.c: Likewise.
682 * config/tc-nds32.h: Likewise.
684 2021-03-30 Jan Beulich <jbeulich@suse.com>
686 * config/tc-i386.c (build_modrm_byte): Change return type.
687 Change type of "default_seg". Use NULL. Adjust setting of
689 (reg_ds, reg_es, reg_ss): New.
690 (struct _i386_insn): Change type of seg[].
691 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
692 (swap_operands): Change type of "temp_seg".
693 (check_string): Adjust %es check.
694 (process_operands): Change type of "default_seg". Use NULL.
695 Adjust segment override processing..
696 (i386_att_operand): Adjust segment override handling.
697 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
699 2021-03-30 Jan Beulich <jbeulich@suse.com>
701 * config/tc-i386.c (reg_eax): New.
702 (md_begin): Initialize reg_eax.
703 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
705 (i386_intel_simplify): Likewise.
707 2021-03-30 Jan Beulich <jbeulich@suse.com>
709 * config/tc-i386.c (reg_st0): New.
710 (md_begin): Convert to switch(). Initialize reg_st0. Don't
712 (parse_real_register): Adjust st(N) processing.
714 2021-03-30 Jan Beulich <jbeulich@suse.com>
716 * config/tc-i386.c (rc_op): Delete.
717 (struct Rounding_Operation): Move ...
718 (struct _i386_insn): ... here. Change field "rounding".
719 (build_evex_prefix): Adjust rounding processing.
720 (swap_2_operands): Likewise.
721 (check_VecOperands): Likewise.
722 (RC_SAE_immediate): Likewise.
723 (optimize_encoding): Adjust check for rounding.
724 (build_modrm_byte): Likewise.
725 (output_imm): Likewise.
726 (md_assemble): Initialize rounding type.
728 2021-03-30 Jan Beulich <jbeulich@suse.com>
730 * config/tc-i386.c (broadcast_op): Delete.
731 (struct Broadcast_Operation): Move ...
732 (struct _i386_insn): ... here. Change field "broadcast".
733 (match_mem_size): Adjust check for broadcast.
734 (optimize_encoding): Likewise.
735 (process_suffix): Likewise.
736 (build_evex_prefix): Adjust broadcast processing.
737 (swap_2_operands): Likewise.
738 (check_VecOperations): Likewise.
739 (match_template): Likewise.
740 (check_VecOperands): Likewise.
742 2021-03-30 Jan Beulich <jbeulich@suse.com>
744 * config/tc-i386.c (reg_k0): New.
746 (struct Mask_Operation): Move ...
747 (struct _i386_insn): ... here. Change field "mask".
748 (md_begin): Initialize reg_k0.
749 (build_evex_prefix): Adjust mask processing.
750 (swap_2_operands): Likewise.
751 (check_VecOperands): Likewise.
752 (check_VecOperations): Likewise.
753 (optimize_encoding): Adjust checks for masking.
754 (output_insn): Likewise.
756 2021-03-30 Jan Beulich <jbeulich@suse.com>
758 * config/tc-i386.c (swap_2_operands): Switch parameters to
760 (struct RC_Operation): Switch operand field to unsigned.
761 (struct Mask_Operation): Likewise.
762 (struct Broadcast_Operation): Likewise.
763 (build_evex_prefix): Drop cast.
764 (check_VecOperands): Likewise.
765 (build_modrm_byte): Likewise.
766 (output_imm): Likewise.
767 (check_VecOperations): Add casts to unsigned.
769 2021-03-29 Jan Beulich <jbeulich@suse.com>
771 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
772 * testsuite/gas/i386/x86-64-avx-swap-2.d.
773 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
775 2021-03-29 Jan Beulich <jbeulich@suse.com>
777 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
778 checks by opcodespace ones.
779 (insert_lfence_before): Likewise.
780 (maybe_fused_with_jcc_p): Likewise.
781 (add_branch_padding_frag_p): Likewise.
782 (output_disp): Likewise.
783 (load_insn_p): Re-arrange checks to key applicable ones off of
784 an opcodespace check.
785 (md_assemble): Adjust opcode checks.
786 (check_byte_reg): Likewise.
787 (process_operands): Likewise.
788 (i386_index_check): Likewise.
789 (process_suffix): Likewise. New local variable is_movx. Adjust
790 movsx/movzx and crc32 handling.
791 (output_insn): Adjust opcode checks. Drop no longer reachable
792 case labels. Output legacy encoding prefixes in addition to the
793 base_opcode byte(s). Rework counting of prefixes for extended
795 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
798 2021-03-29 Alan Modra <amodra@gmail.com>
800 * atof-generic.c (FALSE, TRUE): Don't define.
801 * config/obj-elf.h (FALSE, TRUE): Don't define.
802 * config/obj-som.h (FALSE, TRUE): Don't define.
803 * config/tc-hppa.h (FALSE, TRUE): Don't define.
804 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
805 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
806 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
807 * config/tc-mt.h (obj_fix_adjustable): Delete.
808 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
809 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
810 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
811 (tokenize_extregister): Likewise.
812 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
813 (parse_operands_op, parse_operands, md_assemble): Likewise.
814 * config/tc-d10v.c (build_insn): Likewise.
815 * config/tc-score.c (s3_gen_insn_frag): Likewise.
816 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
817 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
818 * config/tc-z80.c (emit_byte): Likewise.
820 2021-03-29 Alan Modra <amodra@gmail.com>
822 * config/tc-arm.c (struct arm_long_option_table <func>): Return
824 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
825 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
827 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
828 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
829 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
831 (struct metag_long_option <func>): Return bfd_boolean.
832 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
833 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
834 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
835 (no_operands, lex_force_match, lex_reg_list): Likewise.
836 (size_from_suffix): Return int.
837 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
838 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
840 2021-03-26 Jan Beulich <jbeulich@suse.com>
842 * testsuite/gas/i386/x86-64-nosse2.s,
843 testsuite/gas/i386/x86-64-nosse2.l: New.
844 * testsuite/gas/i386/i386.exp: Run new test.
846 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
848 * testsuite/gas/nios2/brn.d: New.
849 * testsuite/gas/nios2/brn.d: New.
851 2021-03-25 Jan Beulich <jbeulich@suse.com>
853 * config/tc-i386.c (match_template): Use t instead of i.tm.
855 2021-03-25 Jan Beulich <jbeulich@suse.com>
857 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
858 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
859 colliding registers in the upper half of the space.
860 * testsuite/gas/i386/avx512f-nondef.d,
861 testsuite/gas/i386/vgather-check.d,
862 testsuite/gas/i386/x86-64-vgather-check.d,
863 testsuite/gas/i386/x86-64-vgather-check-error.l,
864 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
866 * testsuite/gas/i386/vgather-check-none.d,
867 testsuite/gas/i386/vgather-check-warn.d,
868 testsuite/gas/i386/x86-64-vgather-check-none.d,
869 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
870 tests for expected dump output.
872 2021-03-25 Jan Beulich <jbeulich@suse.com>
874 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
875 without mask register.
876 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
878 2021-03-25 Jan Beulich <jbeulich@suse.com>
880 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
881 swapping operands for.
882 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
884 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
885 well as Intel syntax tests.
886 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
888 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
889 Likewise. Drop passing --def-sym to as.
891 2021-03-25 Jan Beulich <jbeulich@suse.com>
894 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
895 conversion to x32 mode.
896 * testsuite/gas/i386/ilp32/enqcmd.s,
897 testsuite/gas/i386/ilp32/enqcmd.d,
898 testsuite/gas/i386/ilp32/movdir.s,
899 testsuite/gas/i386/ilp32/movdir.d: New.
900 * testsuite/gas/i386/x86-64-enqcmd.s,
901 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
903 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
905 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
906 * testsuite/gas/i386/x86-64-enqcmd.d,
907 testsuite/gas/i386/x86-64-enqcmd-intel.d,
908 testsuite/gas/i386/x86-64-enqcmd-inval.l,
909 testsuite/gas/i386/x86-64-movdir.d,
910 testsuite/gas/i386/x86-64-movdir-intel.d,
911 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
913 2021-03-25 Alan Modra <amodra@gmail.com>
916 * testsuite/gas/ppc/a2.d: Update expected output.
917 * testsuite/gas/ppc/power8.d: Likewise.
919 2021-03-24 Jan Beulich <jbeulich@suse.com>
921 * config/tc-i386.c (struct _i386_insn): New field
923 (md_begin): Drop assertion.
924 (install_template): New.
925 (build_vex_prefix): Call install_template.
926 (match_template): Likewise.
927 (process_operands): Use new opcode_length field.
928 (output_jump): Likewise.
929 (output_insn): Likewise. Adjust psedo prefix check.
931 2021-03-24 Jan Beulich <jbeulich@suse.com>
933 * config/tc-i386.c (md_begin): Add assertion.
934 (build_vex_prefix): Drop implied prefix calculation.
935 (build_evex_prefix): Likewise.
936 (optimize_encoding): Adjust opcode checks.
937 (load_insn_p): Also check opcodeprefix.
938 (match_template): Also check opcodespace.
939 (process_suffix): Likewise.
940 (process_operands): Likewise.
941 (output_insn): Likewise. Also check isprefix when discaring
943 * config/tc-i386-intel.c (i386_intel_operand): Also check
946 2021-03-24 Jan Beulich <jbeulich@suse.com>
948 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
949 base_opcode and extension_opcode.
951 2021-03-23 Jan Beulich <jbeulich@suse.com>
953 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
955 2021-03-23 Jan Beulich <jbeulich@suse.com>
957 * config/tc-i386.c (output_i386_opcode): Invoke
958 process_i386_cpu_flag() slightly later.
959 (process_i386_opcodes): Likewise.
961 2021-03-23 Jan Beulich <jbeulich@suse.com>
963 * config/tc-i386.c (pte): Print prefix and encoding space.
964 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
965 (build_evex_prefix): Likewise.
966 (load_insn_p): Likewise.
968 2021-03-23 Jan Beulich <jbeulich@suse.com>
970 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
972 (match_template, output_insn): Use PREFIX_NONE.
974 2021-03-23 Jan Beulich <jbeulich@suse.com>
976 * config/tc-i386.c (i386_index_check): New local variable t.
977 Correct MPX insn check.
978 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
980 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
981 index scaling by other than 1.
982 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
984 2021-03-22 Martin Liska <mliska@suse.cz>
986 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
987 (x86_64_section_word): Likewise.
988 * config/tc-sparc.c (md_parse_option): Likewise.
990 2021-03-19 Alan Modra <amodra@gmail.com>
992 * app.c (do_scrub_chars): Don't lose spaces before a slash.
994 2021-03-18 Christian Groessler <chris@groessler.org>
996 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
997 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
999 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1001 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1002 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1003 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1004 * testsuite/gas/riscv/b-ext-64.d: Likewise.
1005 * testsuite/gas/riscv/b-ext.s: Likewise.
1006 * testsuite/gas/riscv/b-ext.d: Likewise.
1008 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1010 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1011 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1012 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1013 * testsuite/gas/aarch64/sysreg-7.d: New test.
1014 * testsuite/gas/aarch64/sysreg-7.s: New test.
1016 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1018 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1019 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1020 (ppc_xcoff_tbss_section): New variables.
1021 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1022 (ppc_data_csects): Removed.
1023 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1024 ppc_xcoff_parse_cons): New functions.
1025 (md_being): Initialize XCOFF sections.
1026 (ppc_xcoff_suffix): Add support for TLS relocations
1027 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1028 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1029 to .bss section. Handle new XCOFF section variables.
1030 (ppc_comm): Likewise.
1031 (ppc_toc): Likewise.
1032 (ppc_symbol_new_hook): Likewise.
1033 (ppc_frob_symbol): Likewise.
1034 (ppc_fix_adjustable): Add tbss support.
1035 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1036 (ppc_xcoff_parse_cons): Add prototype.
1037 (struct ppc_xcoff_section): New structure.
1039 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1041 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1042 (MAP, MAP32, MAP64): New macros for XCOFF.
1043 (ppc_xcoff_fixup_addis): New function.
1044 (ppc_is_toc_sym): Handle XMC_TE.
1045 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1046 BFD_RELOC_PPC_TOC16_LO.
1047 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1048 (ppc_change_csect): Handle XMC_TE.
1049 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1051 (ppc_symbol_new_hook): Handle XMC_TE.
1052 (ppc_frob_symbol): Likewise.
1053 (ppc_fix_adjustable): Likewise.
1054 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1055 BFD_RELOC_PPC_TOC16_LO.
1057 2021-03-10 Jan Beulich <jbeulich@suse.com>
1059 * testsuite/gas/i386/avx512f-intel.d,
1060 testsuite/gas/i386/avx512f_vl-intel.d,
1061 testsuite/gas/i386/avx512pf-intel.d,
1062 testsuite/gas/i386/x86-64-avx512f-intel.d,
1063 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1064 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1066 2021-03-10 Jan Beulich <jbeulich@suse.com>
1068 * testsuite/gas/i386/prefetch.d,
1069 testsuite/gas/i386/prefetch-intel.d,
1070 testsuite/gas/i386/x86-64-prefetch.d,
1071 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1072 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1073 * testsuite/gas/i386/i386.exp: Run new test.
1075 2021-03-09 Jan Beulich <jbeulich@suse.com>
1077 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1078 (md_assemble): Replace use of repprefixok, islockable, and
1080 (i386_index_check): Replace use of repprefixok.
1082 2021-03-09 Jan Beulich <jbeulich@suse.com>
1084 * testsuite/gas/i386/noreg64.s: Add sysexit.
1085 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1086 sysexitl and sysexitq.
1087 * testsuite/gas/i386/noreg-intel64.l,
1088 testsuite/gas/i386/noreg64-data16.d,
1089 testsuite/gas/i386/noreg64-data16.e,
1090 testsuite/gas/i386/noreg64-rex64.d,
1091 testsuite/gas/i386/noreg64.d,
1092 testsuite/gas/i386/noreg64.l,
1093 testsuite/gas/i386/x86-64-sysenter-amd.d,
1094 testsuite/gas/i386/x86-64-sysenter-amd.l,
1095 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1097 2021-02-26 Nick Clifton <nickc@redhat.com>
1100 * config/tc-arm.c (do_t_add_sub): Correct error message.
1101 * testsuite/gas/arm/pr27411.s: New test.
1102 * testsuite/gas/arm/pr27411.d: New test driver.
1103 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1105 2021-02-24 Alan Modra <amodra@gmail.com>
1108 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1109 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1110 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1111 and use alongside TARGET_CPU_CFILES.
1112 (EXTRA_DIST): Update location of generated .c files.
1113 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1114 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1115 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1116 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1118 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1119 (itbl-parse.c, itbl-parse.h): Tidy.
1120 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1121 * config/bfin-lex.l: Include config/bfin-parse.h.
1122 * configure.ac (extra_objects): Move object files corresponding
1123 to .y and .l files now in config/ to config/.
1124 * Makefile.in: Regenerate.
1125 * configure: Regenerate.
1126 * po/POTFILES.in: Regenerate.
1128 2021-02-19 Nick Clifton <nickc@redhat.com>
1130 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1131 misleading indentation.
1133 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1136 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1137 (md_apply_fix): Likewise.
1138 (md_convert_frag_branch): Likewise.
1139 (validate_riscv_insn): Likewise. Also arranged operands, including
1140 added C5 and C6 operands, and removed unused Ci and C< operands.
1141 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1142 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1143 * testsuite/gas/riscv/insn.s: Likewise.
1145 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1147 * config/tc-riscv.c: Included cpu-riscv.h.
1148 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1149 (struct riscv_csr_extra): Likewise.
1150 (struct riscv_ext_version): Likewise.
1151 (ext_version_table): Moved from opcodes/riscv-opc.c.
1152 (default_isa_spec): Updated type to riscv_spec_class.
1153 (default_priv_spec): Likewise.
1154 (riscv_set_default_isa_spec): Updated.
1155 (init_ext_version_hash): Likewise.
1156 (riscv_init_csr_hash): Likewise, also fixed indent.
1158 2021-02-17 Alan Modra <amodra@gmail.com>
1160 * testsuite/gas/elf/section28.d: xfail h8300.
1162 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1165 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1166 when checking incorrect section attributes.
1167 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1168 * testsuite/gas/elf/section28.d: New file.
1169 * testsuite/gas/elf/section28.s: Likewise.
1170 * testsuite/gas/elf/section29.d: Likewise.
1171 * testsuite/gas/elf/section29.s: Likewise.
1173 2021-02-16 Jan Beulich <jbeulich@suse.com>
1175 * testsuite/gas/i386/sse-check.s,
1176 testsuite/gas/i386/sse2avx.s,
1177 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1178 * testsuite/gas/i386/sse-check-error.l,
1179 testsuite/gas/i386/sse-check-warn.e,
1180 testsuite/gas/i386/sse-check.d,
1181 testsuite/gas/i386/sse2avx.d,
1182 testsuite/gas/i386/x86-64-sse-check-error.l,
1183 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1184 * testsuite/gas/i386/property-cvtpi2pd.s,
1185 testsuite/gas/i386/property-cvtpi2pd.d,
1186 testsuite/gas/i386/property-cvtpi2ps.s,
1187 testsuite/gas/i386/property-cvtpi2ps.d: New.
1188 * testsuite/gas/i386/i386.exp: Run new tests.
1190 2021-02-16 Jan Beulich <jbeulich@suse.com>
1192 * config/tc-i386.c (md_assemble): Use template rather than
1193 actuals when updating i.xstate.
1194 * testsuite/gas/i386/property-4.d,
1195 testsuite/gas/i386/property-5.d,
1196 testsuite/gas/i386/property-12.d: Adjust expectations.
1198 2021-02-16 Jan Beulich <jbeulich@suse.com>
1200 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1201 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1202 * testsuite/gas/i386/property-ldmxcsr.s,
1203 testsuite/gas/i386/property-ldmxcsr.d,
1204 testsuite/gas/i386/property-vldmxcsr.s,
1205 testsuite/gas/i386/property-vldmxcsr.d,
1206 testsuite/gas/i386/property-vzeroall.s,
1207 testsuite/gas/i386/property-vzeroall.d: New.
1208 * testsuite/gas/i386/i386.exp: Run new tests.
1210 2021-02-16 Jan Beulich <jbeulich@suse.com>
1212 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1213 tests to bitness independent section.
1214 * testsuite/gas/i386/x86-64-property-2.d,
1215 testsuite/gas/i386/x86-64-property-3.d,
1216 testsuite/gas/i386/x86-64-property-4.d,
1217 testsuite/gas/i386/x86-64-property-5.d,
1218 testsuite/gas/i386/x86-64-property-6.d,
1219 testsuite/gas/i386/x86-64-property-10.d,
1220 testsuite/gas/i386/x86-64-property-11.d,
1221 testsuite/gas/i386/x86-64-property-12.d,
1222 testsuite/gas/i386/x86-64-property-13.d: Delete.
1224 2021-02-16 Jan Beulich <jbeulich@suse.com>
1226 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1228 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1230 2021-02-16 Alan Modra <amodra@gmail.com>
1233 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1236 2021-02-16 Alan Modra <amodra@gmail.com>
1238 * read.c (demand_copy_C_string): Really check for embedded zeros.
1240 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1242 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1243 * doc/c-s390.texi: Document arch14 march option.
1244 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1245 * testsuite/gas/s390/zarch-arch14.d: New test.
1246 * testsuite/gas/s390/zarch-arch14.s: New test.
1248 2021-02-12 Nick Clifton <nickc@redhat.com>
1250 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1252 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1254 2021-02-12 Alan Modra <amodra@gmail.com>
1256 * testsuite/gas/all/pr27381.err: Don't match source file name.
1257 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1258 * testsuite/gas/all/pr27384.err: Don't match source file name.
1260 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1261 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1263 2021-02-11 Alan Modra <amodra@gmail.com>
1265 * NEWS: Mention arm-symbianelf removal.
1267 2021-02-10 Nick Clifton <nickc@redhat.com>
1269 * listing.c (buffer_line): Remove debugging code accidentally
1270 included with the fix for PR 27384.
1272 2021-02-09 Nick Clifton <nickc@redhat.com>
1275 * read.c (s_incbin): Check that the file to be included is a
1276 regular, non-directory file.
1277 * testsuite/gas/all/pr27381.s: New test source file.
1278 * testsuite/gas/all/pr27381.d: New test control file.
1279 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1280 * testsuite/gas/all/gas.exp: Run the new test.
1282 2021-02-09 Alan Modra <amodra@gmail.com>
1284 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1285 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1287 * config/te-symbian.h: Delete.
1288 * configure.tgt: Remove arm-*-symbianelf*.
1289 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1291 * testsuite/gas/arm/arch4t.d: Likewise.
1292 * testsuite/gas/arm/got_prel.d: Likewise.
1293 * testsuite/gas/arm/mapdir.d: Likewise.
1294 * testsuite/gas/arm/mapmisc.d: Likewise.
1295 * testsuite/gas/arm/mapsecs.d: Likewise.
1296 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1297 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1298 * testsuite/gas/arm/thumb.d: Likewise.
1299 * testsuite/gas/arm/thumbrel.d: Likewise.
1300 * Makefile.in: Regenerate.
1301 * po/POTFILES.in: Regenerate.
1303 2021-02-09 Nick Clifton <nickc@redhat.com>
1306 * listing.c (listing_psize): Check the result of the width
1307 expression before assigning it to paper_width.
1308 * testsuite/gas/all/pr27384.s: New test source file.
1309 * testsuite/gas/all/pr27384.d: New test control file.
1310 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1311 * testsuite/gas/all/gas.exp: Run the new test.
1313 2021-02-09 Nick Clifton <nickc@redhat.com>
1316 * testsuite/gas/elf/pr27355.s: New test source file.
1317 * testsuite/gas/elf/pr27355.d: New test control file.
1318 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1319 * testsuite/gas/elf/elf.exp: Run the new test.
1321 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1323 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1324 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1325 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1326 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1327 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1329 2021-02-08 Nick Clifton <nickc@redhat.com>
1332 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1333 if it has not already been created.
1335 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1337 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1339 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1340 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1341 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1343 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1345 * doc/c-s390.texi: Document vector instruction formats.
1347 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1349 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1351 2021-02-01 Alan Modra <amodra@gmail.com>
1354 * config/tc-alpha.c (insert_operand): Delete dead code.
1356 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1359 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1361 * testsuite/gas/nios2/relax.d: New file.
1362 * testsuite/gas/nios2/relax.s: Likewise.
1364 2021-01-26 Alan Modra <amodra@gmail.com>
1366 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1367 notarget all except hppa. Comment.
1368 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1369 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1370 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1371 * testsuite/gas/all/sleb128-7.d: Likewise.
1372 * testsuite/gas/all/sleb128-9.d: Likewise.
1373 * testsuite/gas/elf/bignums.d: Likewise.
1374 * testsuite/gas/elf/group0c.d: Likewise.
1375 * testsuite/gas/elf/group1a.d: Likewise.
1376 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1377 * testsuite/gas/elf/section15.d: Likewise.
1378 * testsuite/gas/elf/section4.d: Likewise.
1379 * testsuite/gas/elf/section7.d: Likewise.
1380 * testsuite/gas/macros/irp.d: Likewise.
1381 * testsuite/gas/macros/repeat.d: Likewise.
1382 * testsuite/gas/macros/rept.d: Likewise.
1383 * testsuite/gas/macros/test2.d: Likewise.
1384 * testsuite/gas/macros/vararg.d: Likewise.
1385 * testsuite/gas/all/string.d: Use xfail rather than skip.
1386 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1387 * testsuite/gas/elf/section0.d: Likewise.
1388 * testsuite/gas/elf/section1.d: Likewise.
1389 * testsuite/gas/elf/section10.d: Likewise.
1390 * testsuite/gas/elf/section11.d: Likewise.
1391 * testsuite/gas/elf/section6.d: Likewise.
1392 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1393 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1394 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1396 2021-01-26 Alan Modra <amodra@gmail.com>
1398 * testsuite/gas/all/byte.d,
1399 * testsuite/gas/all/byte.l,
1400 * testsuite/gas/all/byte.s: Delete.
1401 * testsuite/gas/all/gas.exp: Don't run byte test.
1403 2021-01-26 Alan Modra <amodra@gmail.com>
1406 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1407 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1409 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1412 * testsuite/gas/elf/elf.exp: Run pr27228.
1413 * testsuite/gas/elf/pr27228.d: New file.
1414 * testsuite/gas/elf/pr27228.s: Likewise.
1416 2021-01-24 Alan Modra <amodra@gmail.com>
1419 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1422 2021-01-21 Alan Modra <amodra@gmail.com>
1425 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1426 line number info when gas is generating it.
1427 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1428 * testsuite/gas/m68hc11/indexed12.d: Likewise.
1429 * testsuite/gas/elf/elf.exp: Don't run warn-2.
1430 * gas/testsuite/gas/elf/warn-2.s: Delete.
1432 2021-01-21 Alan Modra <amodra@gmail.com>
1435 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1436 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1437 error for negative file numbers.
1439 2021-01-20 Alan Modra <amodra@gmail.com>
1441 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1442 * testsuite/gas/ppc/test1elf32.d: Likewise.
1443 * testsuite/gas/ppc/test1elf64.d: Likewise.
1445 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
1448 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1450 (dwarf2_directive_filename): Likewise.
1451 (dwarf2_directive_loc): Likewise.
1452 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1453 * testsuite/gas/lns/lns-diag-1.l: Remove the
1454 "Error: file number less than one" errors.
1456 2021-01-18 Alan Modra <amodra@gmail.com>
1459 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1460 * testsuite/gas/i386/pr27198.d,
1461 * gas/testsuite/gas/i386/pr27198.err,
1462 * gas/testsuite/gas/i386/pr27198.s: New test.
1463 * gas/testsuite/gas/i386/i386.exp: Run it.
1465 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1467 * config/tc-riscv.c: Indent and GNU coding standards tidy,
1468 also aligned the code.
1469 * config/tc-riscv.h: Likewise.
1471 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1473 * config/tc-riscv.c: Error and warning messages tidy.
1474 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1475 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1476 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1477 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1478 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1479 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1480 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1482 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1484 * config/tc-riscv.c: Comments tidy and improvement. Also update
1485 comment "fallthru" to "Fall through" that end with a period and
1488 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1490 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1491 Delete warning that these are only available with ELF targets.
1492 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1493 * read.c (potable): ... here.
1495 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1497 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1498 * Makefile.in: Regenerated.
1500 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1502 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1503 (parse_int): Mark char_bag const.
1505 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1508 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1509 Don't generate GOT_symbol for PLT relocations.
1510 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1511 * testsuite/gas/i386/no-got.d: New file.
1512 * testsuite/gas/i386/no-got.s: Likewise.
1513 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1514 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1516 2021-01-13 Alan Modra <amodra@gmail.com>
1518 * Makefile.in: Regenerate.
1519 * Makefile.in: Regenerate.
1521 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1524 * configure.ac: Use GNU_MAKE_JOBSERVER.
1525 * aclocal.m4: Regenerated.
1526 * configure: Likewise.
1528 2021-01-12 Nick Clifton <nickc@redhat.com>
1530 * po/fr.po: Updated French translation.
1532 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1535 * configure: Regenerated.
1537 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1539 * NEWS: Remove CSRE.
1540 * config/tc-aarch64.c (parse_csr_operand): Delete.
1541 (parse_operands): Delete handling of
1542 AARCH64_OPND_CSRE_CSR.
1543 (aarch64_features): Remove csre.
1544 * doc/c-aarch64.texi: Remove CSRE.
1545 * testsuite/gas/aarch64/csre.d: Delete.
1546 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1547 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1548 * testsuite/gas/aarch64/csre_csr.s: Likewise.
1549 * testsuite/gas/aarch64/csre_csr.d: Likewise.
1550 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1551 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1552 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1554 2021-01-11 Nick Clifton <nickc@redhat.com>
1556 * po/uk.po: Updated Ukranian translation.
1558 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1560 * configure: Regenerated.
1562 2021-01-09 Nick Clifton <nickc@redhat.com>
1564 * configure: Regenerate.
1565 * po/gas.pot: Regenerate.
1567 2021-01-09 Nick Clifton <nickc@redhat.com>
1569 * 2.36 release branch crated.
1571 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
1573 * testsuite/gas/ppc/rop-checks.d,
1574 * testsuite/gas/ppc/rop-checks.l,
1575 * testsuite/gas/ppc/rop-checks.s,
1576 * testsuite/gas/ppc/rop.d,
1577 * testsuite/gas/ppc/rop.s: New tests.
1578 * testsuite/gas/ppc/ppc.exp: Run them.
1580 2021-01-09 Alan Modra <amodra@gmail.com>
1582 * configure: Regenerate.
1584 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1586 * configure: Regenerate.
1588 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1591 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1593 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1594 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1595 on the section symbol.
1596 (set_symtab): Don't generate unused section symbols.
1597 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1598 on the section symbol.
1599 * config/obj-elf.c (elf_adjust_symtab): Call
1600 symbol_mark_used_in_reloc on the group signature symbol.
1601 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1602 from expected output.
1603 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1604 is_elf_unused_section_symbols.
1605 * testsuite/gas/elf/section2.e: Updated.
1606 * testsuite/gas/elf/section2.e-unused: New file.
1607 * testsuite/gas/elf/symver.d: Remove unused section symbols.
1608 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1609 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1610 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1611 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1612 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1613 * testsuite/gas/i386/size-1.d: Likewise.
1614 * testsuite/gas/i386/size-3.d: Likewise.
1615 * testsuite/gas/i386/svr4.d: Likewise.
1616 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1617 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1618 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1619 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1621 2021-01-07 Philipp Tomsich <prt@gnu.org>
1623 * config/tc-riscv.c (riscv_multi_subset_supports): Added
1624 INSN_CLASS_ZIHINTPAUSE.
1625 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
1626 the pause hint instruction.
1627 * testsuite/gas/riscv/pause.s: Likewise.
1629 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1630 Jim Wilson <jimw@sifive.com>
1631 Andrew Waterman <andrew@sifive.com>
1632 Maxim Blinov <maxim.blinov@embecosm.com>
1633 Kito Cheng <kito.cheng@sifive.com>
1634 Nelson Chu <nelson.chu@sifive.com>
1636 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1637 (riscv_get_default_ext_version): Do not check the default_isa_spec when
1638 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1639 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1640 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1641 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1643 2021-01-06 Alan Modra <amodra@gmail.com>
1645 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1647 2021-01-06 Alan Modra <amodra@gmail.com>
1649 * testsuite/gas/macros/app1.d: xfail tic30.
1650 * testsuite/gas/macros/app2.d: Likewise.
1651 * testsuite/gas/macros/app3.d: Likewise.
1652 * testsuite/gas/macros/app4.d: Likewise.
1654 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1656 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1657 * doc/c-riscv.texi: Likewise.
1659 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1661 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1663 * testsuite/gas/riscv/li64.d: Likewise.
1664 * testsuite/gas/riscv/lla32.d: Likewise.
1665 * testsuite/gas/riscv/lla64.d: Likewise.
1666 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1667 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1668 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1669 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1670 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1671 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1672 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1674 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1676 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1678 (install_insn): Always write instructions as little endian.
1679 (riscv_make_nops): Likewise.
1680 (md_convert_frag_branch): Likewise.
1681 (md_number_to_chars): Write data in target endianness.
1682 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1683 (md_parse_option): Handle the endian options.
1684 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1686 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1688 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1691 * config/obj-elf.c (obj_elf_change_section): Also filter out
1694 2021-01-04 Alan Modra <amodra@gmail.com>
1697 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1698 message and register symbol error message.
1700 2021-01-04 Alan Modra <amodra@gmail.com>
1703 * read.c (s_align): Use a large enough type for "align" to hold
1704 the result of get_absolute_expression.
1706 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1708 * config/tc-i386.c: Correct comment spelling.
1709 * config/tc-riscv.c: Likewise.
1710 * config/tc-s390.c: Correct comment grammar.
1711 * doc/c-i386.texi: Correct spelling.
1712 * doc/c-s390.texi: Correct grammar.
1714 2021-01-01 Alan Modra <amodra@gmail.com>
1716 Update year range in copyright notice of all files.
1718 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1720 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1722 For older changes see ChangeLog-2020
1724 Copyright (C) 2021 Free Software Foundation, Inc.
1726 Copying and distribution of this file, with or without modification,
1727 are permitted in any medium without royalty provided the copyright
1728 notice and this notice are preserved.
1734 version-control: never