]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/ChangeLog
Update the ChangeLog, and add the missing entries.
[thirdparty/binutils-gdb.git] / gas / ChangeLog
1 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
2
3 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
4 c.mv a4,a4.
5 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
6
7 2021-04-14 Alan Modra <amodra@gmail.com>
8
9 PR 27723
10 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
11 (select_cie_for_fde): ..here. Simplify.
12
13 2021-04-14 Alan Modra <amodra@gmail.com>
14
15 PR 27723
16 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
17 DW_CFA_GNU_window_save and DW_CFA_restore_state.
18
19 2021-04-13 Alan Modra <amodra@gmail.com>
20
21 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
22 write to $srcdir. Use gas_host_run and read output file rather
23 than gas_start/gas_finish.
24
25 2021-04-12 Alan Modra <amodra@gmail.com>
26
27 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
28 (md_assemble): Likewise. Handle bignum operands.
29 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
30 check.
31 * expr.c: Delete unnecessary forward declarations.
32 (generic_bignum_to_int32): Return uint32_t.
33 (generic_bignum_to_int64): Return uint64_t. Compile always.
34 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
35 clear X_extrabit for unary '!'.
36 * expr.h (generic_bignum_to_int32): Declare.
37 (generic_bignum_to_int64): Declare.
38 * testsuite/gas/ppc/prefix-pcrel.s,
39 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
40
41 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
42
43 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
44 march-fail-porder-x-std.d.
45 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
46 march-fail-porder-z-std.d.
47 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
48 march-fail-porder-x-z.d.
49 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
50 march-fail-porder.l.
51 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
52 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
53 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
54 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
55 march-fail-single-char-h.d.
56 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
57 march-fail-single-char-s.d.
58 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
59 march-fail-single-char-x.d.
60 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
61 march-fail-single-char-z.d.
62 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
63 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
64 march-fail-single-prefix.l.
65 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
66 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
67 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
68
69 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
70
71 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
72 diagnostic messages for LD/ST Exclusive instructions.
73 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
74 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
75 clean-up.
76
77 2021-04-09 Alan Modra <amodra@gmail.com>
78
79 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
80 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
81 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
82
83 2021-04-08 Alan Modra <amodra@gmail.com>
84
85 * testsuite/gas/ppc/pr27676.d,
86 * testsuite/gas/ppc/pr27676.s: New test.
87 * testsuite/gas/ppc/ppc.exp: Run it.
88 * testsuite/gas/ppc/dcbt.d: Update.
89 * testsuite/gas/ppc/power4_32.d: Update.
90
91 2021-04-07 Alan Modra <amodra@gmail.com>
92
93 PR 27217
94 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
95
96 2021-04-06 Nick Clifton <nickc@redhat.com>
97
98 PR 27217
99 * config/tc-aarch64.c (my_get_expression): Rename to
100 aarch64_get_expression. Add a fifth argument to enable deferring
101 of expression resolution.
102 (parse_typed_reg): Update calls to my_get_expression.
103 (parse_vector_reg_list): Likewise.
104 (parse_immediate_expression): Likewise.
105 (parse_big_immediate): Likewise.
106 (parse_shift): Likewise.
107 (parse_shifter_operand_imm): Likewise.
108 (parse_operands): Likewise.
109 (parse_shifter_operand_reloc): Update calls to my_get_expression
110 and call aarch64_force_reloc to determine the value of the new
111 fifth argument.
112 (parse_address_main): Likewise.
113 (parse_half): Likewise.
114 (parse_adrp): Likewise.
115 (aarch64_force_reloc): New function. Contains code extracted from...
116 (aarch64_force_relocation): ... here.
117 * testsuite/gas/aarch64/pr27217.s: New test case.
118 * testsuite/gas/aarch64/pr27217.d: New test driver.
119
120 2021-04-06 Jan Beulich <jbeulich@suse.com>
121
122 * write.c (fixup_segment): Move add_symbol_segment declaration
123 into main loop.
124
125 2021-04-05 Alan Modra <amodra@gmail.com>
126
127 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
128 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
129 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
130 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
131 strstr, or vsnprintf declarations.
132 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
133 * as.h: Don't include alloca-conf.h, include config.h instead.
134 Include string.h, stdlib.h, errno.h unconditionally. Remove
135 various fallback declarations.
136 * asintl.h: Don't test HAVE_LOCALE_H.
137 * as.c: Don't test HAVE_SETLOCALE.
138 * dwarf2dbg.c: Include limits.h unconditionally.
139 * expr.c: Likewise.
140 * sb.c: Likewise.
141 * symbols.c: Likewise.
142 * config/tc-cr16.c: Likewise.
143 * config/tc-d30v.c: Likewise.
144 * config/tc-i386.c: Likewise.
145 * config/tc-ia64.c: Likewise.
146 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
147 * config.in: Regenerate.
148 * configure: Regenerate.
149 * Makefile.in: Regenerate.
150 * doc/Makefile.in: Regenerate.
151
152 2021-04-01 Martin Liska <mliska@suse.cz>
153
154 * config/obj-coff.c (strneq): Remove strneq and use startswith.
155 (weak_is_altname): Likewise.
156 (obj_coff_section): Likewise.
157 * config/tc-cr16.c (process_label_constant): Likewise.
158 * config/tc-crx.c (strneq): Likewise.
159
160 2021-04-01 Martin Liska <mliska@suse.cz>
161
162 * as.c (select_emulation_mode): Use startswith.
163 * config/m68k-parse.y: Likewise.
164 * config/obj-aout.c (obj_aout_type): Likewise.
165 * config/obj-elf.c (elf_common_parse): Likewise.
166 (obj_elf_section_type): Likewise.
167 (obj_elf_section_word): Likewise.
168 (obj_elf_section): Likewise.
169 (obj_elf_symver): Likewise.
170 (adjust_stab_sections): Likewise.
171 * config/obj-evax.c (evax_shorten_name): Likewise.
172 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
173 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
174 (aarch64_parse_features): Likewise.
175 (create_register_alias): Likewise.
176 (aarch64_data_in_code): Likewise.
177 (md_parse_option): Likewise.
178 * config/tc-alpha.c (s_alpha_section_word): Likewise.
179 (s_alpha_pdesc): Likewise.
180 * config/tc-arc.c (tokenize_extregister): Likewise.
181 * config/tc-arm.c (create_register_alias): Likewise.
182 (create_neon_reg_alias): Likewise.
183 (parse_ifimm_zero): Likewise.
184 (parse_qfloat_immediate): Likewise.
185 (arm_elf_section_type): Likewise.
186 (arm_parse_extension): Likewise.
187 (aeabi_set_public_attributes): Likewise.
188 (s_arm_arch_extension): Likewise.
189 (arm_data_in_code): Likewise.
190 (start_unwind_section): Likewise.
191 * config/tc-avr.c (avr_ldi_expression): Likewise.
192 * config/tc-csky.c (is_freglist_legal): Likewise.
193 (csky_s_section): Likewise.
194 * config/tc-d30v.c (do_assemble): Likewise.
195 * config/tc-dlx.c (parse_operand): Likewise.
196 * config/tc-epiphany.c (md_assemble): Likewise.
197 * config/tc-h8300.c (h8300_elf_section): Likewise.
198 (get_operand): Likewise.
199 * config/tc-hppa.c (pa_ip): Likewise.
200 (pa_level): Likewise.
201 (pa_space): Likewise.
202 * config/tc-i386.c (i386_mach): Likewise.
203 (md_assemble): Likewise.
204 (check_VecOperations): Likewise.
205 (i386_target_format): Likewise.
206 (i386_elf_section_type): Likewise.
207 * config/tc-ia64.c (start_unwind_section): Likewise.
208 (md_parse_option): Likewise.
209 (is_taken_branch): Likewise.
210 (idesc->name,): Likewise.
211 (note_register_values): Likewise.
212 (do_alias): Likewise.
213 * config/tc-m32c.c (insn_to_subtype): Likewise.
214 * config/tc-m68hc11.c (get_operand): Likewise.
215 (md_assemble): Likewise.
216 * config/tc-m68k.c (m68k_ip): Likewise.
217 (m68k_elf_suffix): Likewise.
218 * config/tc-mcore.c (mcore_s_section): Likewise.
219 * config/tc-metag.c (parse_get_set): Likewise.
220 (md_parse_option): Likewise.
221 * config/tc-microblaze.c (parse_imm): Likewise.
222 (check_got): Likewise.
223 (md_apply_fix): Likewise.
224 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
225 (md_begin): Likewise.
226 (s_is_linkonce): Likewise.
227 (check_regno): Likewise.
228 (match_float_constant): Likewise.
229 (classify_vr4120_insn): Likewise.
230 (match_insn): Likewise.
231 (mips_after_parse_args): Likewise.
232 (s_change_sec): Likewise.
233 (s_option): Likewise.
234 (parse_code_option): Likewise.
235 (md_section_align): Likewise.
236 (nopic_need_relax): Likewise.
237 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
238 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
239 (mn10300_end_of_match): Likewise.
240 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
241 * config/tc-nds32.c (nds32_parse_option): Likewise.
242 * config/tc-nds32.h (md_do_align): Likewise.
243 * config/tc-nios2.c (strprefix): Likewise.
244 (nios2_special_relocation_p): Likewise.
245 (nios2_parse_base_register): Likewise.
246 (nios2_cons): Likewise.
247 * config/tc-ns32k.c (addr_mode): Likewise.
248 * config/tc-pdp11.c (set_option): Likewise.
249 (parse_reg): Likewise.
250 (parse_ac5): Likewise.
251 (parse_op_no_deferred): Likewise.
252 (set_cpu_model): Likewise.
253 (set_machine_model): Likewise.
254 * config/tc-pj.c (md_operand): Likewise.
255 * config/tc-ppc.c (ppc_set_cpu): Likewise.
256 (ppc_arch): Likewise.
257 (ppc_section_type): Likewise.
258 * config/tc-s12z.c (tb_reg_rel): Likewise.
259 (tb_opr_rel): Likewise.
260 * config/tc-s390.c (s390_parse_cpu): Likewise.
261 (md_parse_option): Likewise.
262 * config/tc-score.c (s3_nopic_need_relax): Likewise.
263 (s3_pic_need_relax): Likewise.
264 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
265 (s7_pic_need_relax): Likewise.
266 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
267 * config/tc-sparc.c (md_parse_option): Likewise.
268 (sparc_ip): Likewise.
269 (s_reserve): Likewise.
270 (s_common): Likewise.
271 (s_seg): Likewise.
272 (sparc_cons): Likewise.
273 * config/tc-tic54x.c (stag_add_field): Likewise.
274 (tic54x_endstruct): Likewise.
275 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
276 * config/tc-v850.c (v850_comm): Likewise.
277 (md_begin): Likewise.
278 (md_assemble): Likewise.
279 * config/tc-vax.c (vax_cons): Likewise.
280 * config/tc-wasm32.c (wasm32_leb128): Likewise.
281 * config/tc-xstormy16.c (md_operand): Likewise.
282 * config/tc-xtensa.c (get_directive): Likewise.
283 (xg_instruction_matches_option_term): Likewise.
284 (is_unaligned_label): Likewise.
285 (cache_literal_section): Likewise.
286 * config/xtensa-relax.c (parse_precond): Likewise.
287 (parse_option_cond): Likewise.
288 (transition_applies): Likewise.
289 (wide_branch_opcode): Likewise.
290 * dw2gencfi.c: Likewise.
291 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
292 * ehopt.c (get_cie_info): Likewise.
293 * input-file.c (input_file_open): Likewise.
294 * listing.c (listing_newline): Likewise.
295 (debugging_pseudo): Likewise.
296 * read.c (read_a_source_file): Likewise.
297 * write.c (adjust_reloc_syms): Likewise.
298 (compress_debug): Likewise.
299 (maybe_generate_build_notes): Likewise.
300
301 2021-03-31 Alan Modra <amodra@gmail.com>
302
303 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
304 * config/bfin-lex-wrapper.c: Likewise.
305 * itbl-lex.l: Don't include as.h.
306 * config/bfin-lex.l: Likewise.
307
308 2021-03-31 Alan Modra <amodra@gmail.com>
309
310 * as.h (POISON_BFD_BOOLEAN): Define.
311 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
312 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
313 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
314 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
315 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
316 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
317 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
318 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
319 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
320 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
321 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
322 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
323 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
324 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
325 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
326 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
327 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
328 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
329 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
330 * config/tc-metag.c, * config/tc-metag.h,
331 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
332 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
333 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
334 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
335 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
336 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
337 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
338 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
339 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
340 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
341 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
342 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
343 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
344 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
345 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
346 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
347 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
348 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
349 * config/tc-z8k.c, * config/xtensa-istack.h,
350 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
351 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
352 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
353 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
354 with bool, FALSE with false, and TRUE with true.
355
356 2021-03-31 Alan Modra <amodra@gmail.com>
357
358 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
359 * config/tc-crx.c: Likewise.
360 * config/tc-nds32.h: Likewise.
361
362 2021-03-30 Jan Beulich <jbeulich@suse.com>
363
364 * config/tc-i386.c (build_modrm_byte): Change return type.
365 Change type of "default_seg". Use NULL. Adjust setting of
366 "default_seg".
367 (reg_ds, reg_es, reg_ss): New.
368 (struct _i386_insn): Change type of seg[].
369 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
370 (swap_operands): Change type of "temp_seg".
371 (check_string): Adjust %es check.
372 (process_operands): Change type of "default_seg". Use NULL.
373 Adjust segment override processing..
374 (i386_att_operand): Adjust segment override handling.
375 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
376
377 2021-03-30 Jan Beulich <jbeulich@suse.com>
378
379 * config/tc-i386.c (reg_eax): New.
380 (md_begin): Initialize reg_eax.
381 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
382 reg_eax.
383 (i386_intel_simplify): Likewise.
384
385 2021-03-30 Jan Beulich <jbeulich@suse.com>
386
387 * config/tc-i386.c (reg_st0): New.
388 (md_begin): Convert to switch(). Initialize reg_st0. Don't
389 insert other st(N).
390 (parse_real_register): Adjust st(N) processing.
391
392 2021-03-30 Jan Beulich <jbeulich@suse.com>
393
394 * config/tc-i386.c (rc_op): Delete.
395 (struct Rounding_Operation): Move ...
396 (struct _i386_insn): ... here. Change field "rounding".
397 (build_evex_prefix): Adjust rounding processing.
398 (swap_2_operands): Likewise.
399 (check_VecOperands): Likewise.
400 (RC_SAE_immediate): Likewise.
401 (optimize_encoding): Adjust check for rounding.
402 (build_modrm_byte): Likewise.
403 (output_imm): Likewise.
404 (md_assemble): Initialize rounding type.
405
406 2021-03-30 Jan Beulich <jbeulich@suse.com>
407
408 * config/tc-i386.c (broadcast_op): Delete.
409 (struct Broadcast_Operation): Move ...
410 (struct _i386_insn): ... here. Change field "broadcast".
411 (match_mem_size): Adjust check for broadcast.
412 (optimize_encoding): Likewise.
413 (process_suffix): Likewise.
414 (build_evex_prefix): Adjust broadcast processing.
415 (swap_2_operands): Likewise.
416 (check_VecOperations): Likewise.
417 (match_template): Likewise.
418 (check_VecOperands): Likewise.
419
420 2021-03-30 Jan Beulich <jbeulich@suse.com>
421
422 * config/tc-i386.c (reg_k0): New.
423 (mask_op): Delete.
424 (struct Mask_Operation): Move ...
425 (struct _i386_insn): ... here. Change field "mask".
426 (md_begin): Initialize reg_k0.
427 (build_evex_prefix): Adjust mask processing.
428 (swap_2_operands): Likewise.
429 (check_VecOperands): Likewise.
430 (check_VecOperations): Likewise.
431 (optimize_encoding): Adjust checks for masking.
432 (output_insn): Likewise.
433
434 2021-03-30 Jan Beulich <jbeulich@suse.com>
435
436 * config/tc-i386.c (swap_2_operands): Switch parameters to
437 unsigned.
438 (struct RC_Operation): Switch operand field to unsigned.
439 (struct Mask_Operation): Likewise.
440 (struct Broadcast_Operation): Likewise.
441 (build_evex_prefix): Drop cast.
442 (check_VecOperands): Likewise.
443 (build_modrm_byte): Likewise.
444 (output_imm): Likewise.
445 (check_VecOperations): Add casts to unsigned.
446
447 2021-03-29 Jan Beulich <jbeulich@suse.com>
448
449 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
450 * testsuite/gas/i386/x86-64-avx-swap-2.d.
451 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
452
453 2021-03-29 Jan Beulich <jbeulich@suse.com>
454
455 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
456 checks by opcodespace ones.
457 (insert_lfence_before): Likewise.
458 (maybe_fused_with_jcc_p): Likewise.
459 (add_branch_padding_frag_p): Likewise.
460 (output_disp): Likewise.
461 (load_insn_p): Re-arrange checks to key applicable ones off of
462 an opcodespace check.
463 (md_assemble): Adjust opcode checks.
464 (check_byte_reg): Likewise.
465 (process_operands): Likewise.
466 (i386_index_check): Likewise.
467 (process_suffix): Likewise. New local variable is_movx. Adjust
468 movsx/movzx and crc32 handling.
469 (output_insn): Adjust opcode checks. Drop no longer reachable
470 case labels. Output legacy encoding prefixes in addition to the
471 base_opcode byte(s). Rework counting of prefixes for extended
472 opcode maps.
473 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
474 opcode checks.
475
476 2021-03-29 Alan Modra <amodra@gmail.com>
477
478 * atof-generic.c (FALSE, TRUE): Don't define.
479 * config/obj-elf.h (FALSE, TRUE): Don't define.
480 * config/obj-som.h (FALSE, TRUE): Don't define.
481 * config/tc-hppa.h (FALSE, TRUE): Don't define.
482 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
483 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
484 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
485 * config/tc-mt.h (obj_fix_adjustable): Delete.
486 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
487 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
488 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
489 (tokenize_extregister): Likewise.
490 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
491 (parse_operands_op, parse_operands, md_assemble): Likewise.
492 * config/tc-d10v.c (build_insn): Likewise.
493 * config/tc-score.c (s3_gen_insn_frag): Likewise.
494 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
495 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
496 * config/tc-z80.c (emit_byte): Likewise.
497
498 2021-03-29 Alan Modra <amodra@gmail.com>
499
500 * config/tc-arm.c (struct arm_long_option_table <func>): Return
501 bfd_boolean.
502 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
503 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
504 with bfd_boolean.
505 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
506 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
507 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
508 logical expressions.
509 (struct metag_long_option <func>): Return bfd_boolean.
510 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
511 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
512 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
513 (no_operands, lex_force_match, lex_reg_list): Likewise.
514 (size_from_suffix): Return int.
515 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
516 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
517
518 2021-03-26 Jan Beulich <jbeulich@suse.com>
519
520 * testsuite/gas/i386/x86-64-nosse2.s,
521 testsuite/gas/i386/x86-64-nosse2.l: New.
522 * testsuite/gas/i386/i386.exp: Run new test.
523
524 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
525
526 * testsuite/gas/nios2/brn.d: New.
527 * testsuite/gas/nios2/brn.d: New.
528
529 2021-03-25 Jan Beulich <jbeulich@suse.com>
530
531 * config/tc-i386.c (match_template): Use t instead of i.tm.
532
533 2021-03-25 Jan Beulich <jbeulich@suse.com>
534
535 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
536 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
537 colliding registers in the upper half of the space.
538 * testsuite/gas/i386/avx512f-nondef.d,
539 testsuite/gas/i386/vgather-check.d,
540 testsuite/gas/i386/x86-64-vgather-check.d,
541 testsuite/gas/i386/x86-64-vgather-check-error.l,
542 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
543 expecations.
544 * testsuite/gas/i386/vgather-check-none.d,
545 testsuite/gas/i386/vgather-check-warn.d,
546 testsuite/gas/i386/x86-64-vgather-check-none.d,
547 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
548 tests for expected dump output.
549
550 2021-03-25 Jan Beulich <jbeulich@suse.com>
551
552 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
553 without mask register.
554 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
555
556 2021-03-25 Jan Beulich <jbeulich@suse.com>
557
558 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
559 swapping operands for.
560 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
561 syntax tests.
562 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
563 well as Intel syntax tests.
564 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
565 expectations.
566 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
567 Likewise. Drop passing --def-sym to as.
568
569 2021-03-25 Jan Beulich <jbeulich@suse.com>
570
571 PR/gas 27419
572 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
573 conversion to x32 mode.
574 * testsuite/gas/i386/ilp32/enqcmd.s,
575 testsuite/gas/i386/ilp32/enqcmd.d,
576 testsuite/gas/i386/ilp32/movdir.s,
577 testsuite/gas/i386/ilp32/movdir.d: New.
578 * testsuite/gas/i386/x86-64-enqcmd.s,
579 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
580 cases.
581 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
582 (%eip) cases.
583 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
584 * testsuite/gas/i386/x86-64-enqcmd.d,
585 testsuite/gas/i386/x86-64-enqcmd-intel.d,
586 testsuite/gas/i386/x86-64-enqcmd-inval.l,
587 testsuite/gas/i386/x86-64-movdir.d,
588 testsuite/gas/i386/x86-64-movdir-intel.d,
589 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
590
591 2021-03-25 Alan Modra <amodra@gmail.com>
592
593 PR 27647
594 * testsuite/gas/ppc/a2.d: Update expected output.
595 * testsuite/gas/ppc/power8.d: Likewise.
596
597 2021-03-24 Jan Beulich <jbeulich@suse.com>
598
599 * config/tc-i386.c (struct _i386_insn): New field
600 opcode_length.
601 (md_begin): Drop assertion.
602 (install_template): New.
603 (build_vex_prefix): Call install_template.
604 (match_template): Likewise.
605 (process_operands): Use new opcode_length field.
606 (output_jump): Likewise.
607 (output_insn): Likewise. Adjust psedo prefix check.
608
609 2021-03-24 Jan Beulich <jbeulich@suse.com>
610
611 * config/tc-i386.c (md_begin): Add assertion.
612 (build_vex_prefix): Drop implied prefix calculation.
613 (build_evex_prefix): Likewise.
614 (optimize_encoding): Adjust opcode checks.
615 (load_insn_p): Also check opcodeprefix.
616 (match_template): Also check opcodespace.
617 (process_suffix): Likewise.
618 (process_operands): Likewise.
619 (output_insn): Likewise. Also check isprefix when discaring
620 standalone LOCK.
621 * config/tc-i386-intel.c (i386_intel_operand): Also check
622 opcodespace.
623
624 2021-03-24 Jan Beulich <jbeulich@suse.com>
625
626 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
627 base_opcode and extension_opcode.
628
629 2021-03-23 Jan Beulich <jbeulich@suse.com>
630
631 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
632
633 2021-03-23 Jan Beulich <jbeulich@suse.com>
634
635 * config/tc-i386.c (output_i386_opcode): Invoke
636 process_i386_cpu_flag() slightly later.
637 (process_i386_opcodes): Likewise.
638
639 2021-03-23 Jan Beulich <jbeulich@suse.com>
640
641 * config/tc-i386.c (pte): Print prefix and encoding space.
642 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
643 (build_evex_prefix): Likewise.
644 (load_insn_p): Likewise.
645
646 2021-03-23 Jan Beulich <jbeulich@suse.com>
647
648 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
649 if()-s.
650 (match_template, output_insn): Use PREFIX_NONE.
651
652 2021-03-23 Jan Beulich <jbeulich@suse.com>
653
654 * config/tc-i386.c (i386_index_check): New local variable t.
655 Correct MPX insn check.
656 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
657 MPX insn check.
658 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
659 index scaling by other than 1.
660 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
661
662 2021-03-22 Martin Liska <mliska@suse.cz>
663
664 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
665 (x86_64_section_word): Likewise.
666 * config/tc-sparc.c (md_parse_option): Likewise.
667
668 2021-03-19 Alan Modra <amodra@gmail.com>
669
670 * app.c (do_scrub_chars): Don't lose spaces before a slash.
671
672 2021-03-18 Christian Groessler <chris@groessler.org>
673
674 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
675 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
676
677 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
678
679 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
680 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
681 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
682 * testsuite/gas/riscv/b-ext-64.d: Likewise.
683 * testsuite/gas/riscv/b-ext.s: Likewise.
684 * testsuite/gas/riscv/b-ext.d: Likewise.
685
686 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
687
688 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
689 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
690 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
691 * testsuite/gas/aarch64/sysreg-7.d: New test.
692 * testsuite/gas/aarch64/sysreg-7.s: New test.
693
694 2021-03-12 Clément Chigot <clement.chigot@atos.net>
695
696 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
697 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
698 (ppc_xcoff_tbss_section): New variables.
699 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
700 (ppc_data_csects): Removed.
701 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
702 ppc_xcoff_parse_cons): New functions.
703 (md_being): Initialize XCOFF sections.
704 (ppc_xcoff_suffix): Add support for TLS relocations
705 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
706 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
707 to .bss section. Handle new XCOFF section variables.
708 (ppc_comm): Likewise.
709 (ppc_toc): Likewise.
710 (ppc_symbol_new_hook): Likewise.
711 (ppc_frob_symbol): Likewise.
712 (ppc_fix_adjustable): Add tbss support.
713 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
714 (ppc_xcoff_parse_cons): Add prototype.
715 (struct ppc_xcoff_section): New structure.
716
717 2021-03-12 Clément Chigot <clement.chigot@atos.net>
718
719 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
720 (MAP, MAP32, MAP64): New macros for XCOFF.
721 (ppc_xcoff_fixup_addis): New function.
722 (ppc_is_toc_sym): Handle XMC_TE.
723 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
724 BFD_RELOC_PPC_TOC16_LO.
725 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
726 (ppc_change_csect): Handle XMC_TE.
727 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
728 storage class.
729 (ppc_symbol_new_hook): Handle XMC_TE.
730 (ppc_frob_symbol): Likewise.
731 (ppc_fix_adjustable): Likewise.
732 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
733 BFD_RELOC_PPC_TOC16_LO.
734
735 2021-03-10 Jan Beulich <jbeulich@suse.com>
736
737 * testsuite/gas/i386/avx512f-intel.d,
738 testsuite/gas/i386/avx512f_vl-intel.d,
739 testsuite/gas/i386/avx512pf-intel.d,
740 testsuite/gas/i386/x86-64-avx512f-intel.d,
741 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
742 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
743
744 2021-03-10 Jan Beulich <jbeulich@suse.com>
745
746 * testsuite/gas/i386/prefetch.d,
747 testsuite/gas/i386/prefetch-intel.d,
748 testsuite/gas/i386/x86-64-prefetch.d,
749 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
750 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
751 * testsuite/gas/i386/i386.exp: Run new test.
752
753 2021-03-09 Jan Beulich <jbeulich@suse.com>
754
755 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
756 (md_assemble): Replace use of repprefixok, islockable, and
757 notrackprefixok.
758 (i386_index_check): Replace use of repprefixok.
759
760 2021-03-09 Jan Beulich <jbeulich@suse.com>
761
762 * testsuite/gas/i386/noreg64.s: Add sysexit.
763 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
764 sysexitl and sysexitq.
765 * testsuite/gas/i386/noreg-intel64.l,
766 testsuite/gas/i386/noreg64-data16.d,
767 testsuite/gas/i386/noreg64-data16.e,
768 testsuite/gas/i386/noreg64-rex64.d,
769 testsuite/gas/i386/noreg64.d,
770 testsuite/gas/i386/noreg64.l,
771 testsuite/gas/i386/x86-64-sysenter-amd.d,
772 testsuite/gas/i386/x86-64-sysenter-amd.l,
773 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
774
775 2021-02-26 Nick Clifton <nickc@redhat.com>
776
777 PR 27411
778 * config/tc-arm.c (do_t_add_sub): Correct error message.
779 * testsuite/gas/arm/pr27411.s: New test.
780 * testsuite/gas/arm/pr27411.d: New test driver.
781 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
782
783 2021-02-24 Alan Modra <amodra@gmail.com>
784
785 PR 23691
786 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
787 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
788 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
789 and use alongside TARGET_CPU_CFILES.
790 (EXTRA_DIST): Update location of generated .c files.
791 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
792 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
793 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
794 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
795 dependencies.
796 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
797 (itbl-parse.c, itbl-parse.h): Tidy.
798 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
799 * config/bfin-lex.l: Include config/bfin-parse.h.
800 * configure.ac (extra_objects): Move object files corresponding
801 to .y and .l files now in config/ to config/.
802 * Makefile.in: Regenerate.
803 * configure: Regenerate.
804 * po/POTFILES.in: Regenerate.
805
806 2021-02-19 Nick Clifton <nickc@redhat.com>
807
808 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
809 misleading indentation.
810
811 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
812
813 PR 27158
814 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
815 (md_apply_fix): Likewise.
816 (md_convert_frag_branch): Likewise.
817 (validate_riscv_insn): Likewise. Also arranged operands, including
818 added C5 and C6 operands, and removed unused Ci and C< operands.
819 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
820 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
821 * testsuite/gas/riscv/insn.s: Likewise.
822
823 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
824
825 * config/tc-riscv.c: Included cpu-riscv.h.
826 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
827 (struct riscv_csr_extra): Likewise.
828 (struct riscv_ext_version): Likewise.
829 (ext_version_table): Moved from opcodes/riscv-opc.c.
830 (default_isa_spec): Updated type to riscv_spec_class.
831 (default_priv_spec): Likewise.
832 (riscv_set_default_isa_spec): Updated.
833 (init_ext_version_hash): Likewise.
834 (riscv_init_csr_hash): Likewise, also fixed indent.
835
836 2021-02-17 Alan Modra <amodra@gmail.com>
837
838 * testsuite/gas/elf/section28.d: xfail h8300.
839
840 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
841
842 PR gas/27412
843 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
844 when checking incorrect section attributes.
845 * testsuite/gas/elf/elf.exp: Run section28 and section29.
846 * testsuite/gas/elf/section28.d: New file.
847 * testsuite/gas/elf/section28.s: Likewise.
848 * testsuite/gas/elf/section29.d: Likewise.
849 * testsuite/gas/elf/section29.s: Likewise.
850
851 2021-02-16 Jan Beulich <jbeulich@suse.com>
852
853 * testsuite/gas/i386/sse-check.s,
854 testsuite/gas/i386/sse2avx.s,
855 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
856 * testsuite/gas/i386/sse-check-error.l,
857 testsuite/gas/i386/sse-check-warn.e,
858 testsuite/gas/i386/sse-check.d,
859 testsuite/gas/i386/sse2avx.d,
860 testsuite/gas/i386/x86-64-sse-check-error.l,
861 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
862 * testsuite/gas/i386/property-cvtpi2pd.s,
863 testsuite/gas/i386/property-cvtpi2pd.d,
864 testsuite/gas/i386/property-cvtpi2ps.s,
865 testsuite/gas/i386/property-cvtpi2ps.d: New.
866 * testsuite/gas/i386/i386.exp: Run new tests.
867
868 2021-02-16 Jan Beulich <jbeulich@suse.com>
869
870 * config/tc-i386.c (md_assemble): Use template rather than
871 actuals when updating i.xstate.
872 * testsuite/gas/i386/property-4.d,
873 testsuite/gas/i386/property-5.d,
874 testsuite/gas/i386/property-12.d: Adjust expectations.
875
876 2021-02-16 Jan Beulich <jbeulich@suse.com>
877
878 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
879 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
880 * testsuite/gas/i386/property-ldmxcsr.s,
881 testsuite/gas/i386/property-ldmxcsr.d,
882 testsuite/gas/i386/property-vldmxcsr.s,
883 testsuite/gas/i386/property-vldmxcsr.d,
884 testsuite/gas/i386/property-vzeroall.s,
885 testsuite/gas/i386/property-vzeroall.d: New.
886 * testsuite/gas/i386/i386.exp: Run new tests.
887
888 2021-02-16 Jan Beulich <jbeulich@suse.com>
889
890 * testsuite/gas/i386/i386.exp: Move bitness-independent property
891 tests to bitness independent section.
892 * testsuite/gas/i386/x86-64-property-2.d,
893 testsuite/gas/i386/x86-64-property-3.d,
894 testsuite/gas/i386/x86-64-property-4.d,
895 testsuite/gas/i386/x86-64-property-5.d,
896 testsuite/gas/i386/x86-64-property-6.d,
897 testsuite/gas/i386/x86-64-property-10.d,
898 testsuite/gas/i386/x86-64-property-11.d,
899 testsuite/gas/i386/x86-64-property-12.d,
900 testsuite/gas/i386/x86-64-property-13.d: Delete.
901
902 2021-02-16 Jan Beulich <jbeulich@suse.com>
903
904 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
905 movdir.s.
906 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
907
908 2021-02-16 Alan Modra <amodra@gmail.com>
909
910 PR 27426
911 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
912 in another place.
913
914 2021-02-16 Alan Modra <amodra@gmail.com>
915
916 * read.c (demand_copy_C_string): Really check for embedded zeros.
917
918 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
919
920 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
921 * doc/c-s390.texi: Document arch14 march option.
922 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
923 * testsuite/gas/s390/zarch-arch14.d: New test.
924 * testsuite/gas/s390/zarch-arch14.s: New test.
925
926 2021-02-12 Nick Clifton <nickc@redhat.com>
927
928 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
929 following.
930 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
931
932 2021-02-12 Alan Modra <amodra@gmail.com>
933
934 * testsuite/gas/all/pr27381.err: Don't match source file name.
935 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
936 * testsuite/gas/all/pr27384.err: Don't match source file name.
937 Adjust line number.
938 * testsuite/gas/all/pr27384.s: Add ".text" directive.
939 * testsuite/gas/elf/pr27355.err: Don't match source file name.
940
941 2021-02-11 Alan Modra <amodra@gmail.com>
942
943 * NEWS: Mention arm-symbianelf removal.
944
945 2021-02-10 Nick Clifton <nickc@redhat.com>
946
947 * listing.c (buffer_line): Remove debugging code accidentally
948 included with the fix for PR 27384.
949
950 2021-02-09 Nick Clifton <nickc@redhat.com>
951
952 PR 27381
953 * read.c (s_incbin): Check that the file to be included is a
954 regular, non-directory file.
955 * testsuite/gas/all/pr27381.s: New test source file.
956 * testsuite/gas/all/pr27381.d: New test control file.
957 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
958 * testsuite/gas/all/gas.exp: Run the new test.
959
960 2021-02-09 Alan Modra <amodra@gmail.com>
961
962 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
963 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
964 support.
965 * config/te-symbian.h: Delete.
966 * configure.tgt: Remove arm-*-symbianelf*.
967 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
968 target selection.
969 * testsuite/gas/arm/arch4t.d: Likewise.
970 * testsuite/gas/arm/got_prel.d: Likewise.
971 * testsuite/gas/arm/mapdir.d: Likewise.
972 * testsuite/gas/arm/mapmisc.d: Likewise.
973 * testsuite/gas/arm/mapsecs.d: Likewise.
974 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
975 * testsuite/gas/arm/thumb-eabi.d: Likewise.
976 * testsuite/gas/arm/thumb.d: Likewise.
977 * testsuite/gas/arm/thumbrel.d: Likewise.
978 * Makefile.in: Regenerate.
979 * po/POTFILES.in: Regenerate.
980
981 2021-02-09 Nick Clifton <nickc@redhat.com>
982
983 PR 27384
984 * listing.c (listing_psize): Check the result of the width
985 expression before assigning it to paper_width.
986 * testsuite/gas/all/pr27384.s: New test source file.
987 * testsuite/gas/all/pr27384.d: New test control file.
988 * testsuite/gas/all/pr27384.err: Expected errors from new test.
989 * testsuite/gas/all/gas.exp: Run the new test.
990
991 2021-02-09 Nick Clifton <nickc@redhat.com>
992
993 PR 27355
994 * testsuite/gas/elf/pr27355.s: New test source file.
995 * testsuite/gas/elf/pr27355.d: New test control file.
996 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
997 * testsuite/gas/elf/elf.exp: Run the new test.
998
999 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1000
1001 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1002 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1003 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1004 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1005 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1006
1007 2021-02-08 Nick Clifton <nickc@redhat.com>
1008
1009 PR 27355
1010 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1011 if it has not already been created.
1012
1013 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1014
1015 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1016 INSN_CLASS_ZB*.
1017 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1018 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1019 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1020
1021 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1022
1023 * doc/c-s390.texi: Document vector instruction formats.
1024
1025 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1026
1027 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1028
1029 2021-02-01 Alan Modra <amodra@gmail.com>
1030
1031 PR 27283
1032 * config/tc-alpha.c (insert_operand): Delete dead code.
1033
1034 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1035
1036 PR gas/27243
1037 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1038 --gdwarf-N.
1039 * testsuite/gas/nios2/relax.d: New file.
1040 * testsuite/gas/nios2/relax.s: Likewise.
1041
1042 2021-01-26 Alan Modra <amodra@gmail.com>
1043
1044 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1045 notarget all except hppa. Comment.
1046 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1047 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1048 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1049 * testsuite/gas/all/sleb128-7.d: Likewise.
1050 * testsuite/gas/all/sleb128-9.d: Likewise.
1051 * testsuite/gas/elf/bignums.d: Likewise.
1052 * testsuite/gas/elf/group0c.d: Likewise.
1053 * testsuite/gas/elf/group1a.d: Likewise.
1054 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1055 * testsuite/gas/elf/section15.d: Likewise.
1056 * testsuite/gas/elf/section4.d: Likewise.
1057 * testsuite/gas/elf/section7.d: Likewise.
1058 * testsuite/gas/macros/irp.d: Likewise.
1059 * testsuite/gas/macros/repeat.d: Likewise.
1060 * testsuite/gas/macros/rept.d: Likewise.
1061 * testsuite/gas/macros/test2.d: Likewise.
1062 * testsuite/gas/macros/vararg.d: Likewise.
1063 * testsuite/gas/all/string.d: Use xfail rather than skip.
1064 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1065 * testsuite/gas/elf/section0.d: Likewise.
1066 * testsuite/gas/elf/section1.d: Likewise.
1067 * testsuite/gas/elf/section10.d: Likewise.
1068 * testsuite/gas/elf/section11.d: Likewise.
1069 * testsuite/gas/elf/section6.d: Likewise.
1070 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1071 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1072 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1073
1074 2021-01-26 Alan Modra <amodra@gmail.com>
1075
1076 * testsuite/gas/all/byte.d,
1077 * testsuite/gas/all/byte.l,
1078 * testsuite/gas/all/byte.s: Delete.
1079 * testsuite/gas/all/gas.exp: Don't run byte test.
1080
1081 2021-01-26 Alan Modra <amodra@gmail.com>
1082
1083 PR 27282
1084 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1085 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1086
1087 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 PR gas/27228
1090 * testsuite/gas/elf/elf.exp: Run pr27228.
1091 * testsuite/gas/elf/pr27228.d: New file.
1092 * testsuite/gas/elf/pr27228.s: Likewise.
1093
1094 2021-01-24 Alan Modra <amodra@gmail.com>
1095
1096 PR 27228
1097 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1098 is defined.
1099
1100 2021-01-21 Alan Modra <amodra@gmail.com>
1101
1102 PR 27221
1103 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1104 line number info when gas is generating it.
1105 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1106 * testsuite/gas/m68hc11/indexed12.d: Likewise.
1107 * testsuite/gas/elf/elf.exp: Don't run warn-2.
1108 * gas/testsuite/gas/elf/warn-2.s: Delete.
1109
1110 2021-01-21 Alan Modra <amodra@gmail.com>
1111
1112 PR 27218
1113 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1114 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1115 error for negative file numbers.
1116
1117 2021-01-20 Alan Modra <amodra@gmail.com>
1118
1119 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1120 * testsuite/gas/ppc/test1elf32.d: Likewise.
1121 * testsuite/gas/ppc/test1elf64.d: Likewise.
1122
1123 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
1124
1125 PR gas/27195
1126 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1127 needed.
1128 (dwarf2_directive_filename): Likewise.
1129 (dwarf2_directive_loc): Likewise.
1130 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1131 * testsuite/gas/lns/lns-diag-1.l: Remove the
1132 "Error: file number less than one" errors.
1133
1134 2021-01-18 Alan Modra <amodra@gmail.com>
1135
1136 PR 27198
1137 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1138 * testsuite/gas/i386/pr27198.d,
1139 * gas/testsuite/gas/i386/pr27198.err,
1140 * gas/testsuite/gas/i386/pr27198.s: New test.
1141 * gas/testsuite/gas/i386/i386.exp: Run it.
1142
1143 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1144
1145 * config/tc-riscv.c: Indent and GNU coding standards tidy,
1146 also aligned the code.
1147 * config/tc-riscv.h: Likewise.
1148
1149 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1150
1151 * config/tc-riscv.c: Error and warning messages tidy.
1152 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1153 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1154 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1155 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1156 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1157 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1158 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1159
1160 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1161
1162 * config/tc-riscv.c: Comments tidy and improvement. Also update
1163 comment "fallthru" to "Fall through" that end with a period and
1164 two spaces.
1165
1166 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1167
1168 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1169 Delete warning that these are only available with ELF targets.
1170 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1171 * read.c (potable): ... here.
1172
1173 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1174
1175 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1176 * Makefile.in: Regenerated.
1177
1178 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1179
1180 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1181 (parse_int): Mark char_bag const.
1182
1183 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1184
1185 PR gas/27178
1186 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1187 Don't generate GOT_symbol for PLT relocations.
1188 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1189 * testsuite/gas/i386/no-got.d: New file.
1190 * testsuite/gas/i386/no-got.s: Likewise.
1191 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1192 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1193
1194 2021-01-13 Alan Modra <amodra@gmail.com>
1195
1196 * Makefile.in: Regenerate.
1197 * Makefile.in: Regenerate.
1198
1199 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1200
1201 PR binutils/26792
1202 * configure.ac: Use GNU_MAKE_JOBSERVER.
1203 * aclocal.m4: Regenerated.
1204 * configure: Likewise.
1205
1206 2021-01-12 Nick Clifton <nickc@redhat.com>
1207
1208 * po/fr.po: Updated French translation.
1209
1210 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1211
1212 PR ld/27173
1213 * configure: Regenerated.
1214
1215 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1216
1217 * NEWS: Remove CSRE.
1218 * config/tc-aarch64.c (parse_csr_operand): Delete.
1219 (parse_operands): Delete handling of
1220 AARCH64_OPND_CSRE_CSR.
1221 (aarch64_features): Remove csre.
1222 * doc/c-aarch64.texi: Remove CSRE.
1223 * testsuite/gas/aarch64/csre.d: Delete.
1224 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1225 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1226 * testsuite/gas/aarch64/csre_csr.s: Likewise.
1227 * testsuite/gas/aarch64/csre_csr.d: Likewise.
1228 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1229 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1230 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1231
1232 2021-01-11 Nick Clifton <nickc@redhat.com>
1233
1234 * po/uk.po: Updated Ukranian translation.
1235
1236 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1237
1238 * configure: Regenerated.
1239
1240 2021-01-09 Nick Clifton <nickc@redhat.com>
1241
1242 * configure: Regenerate.
1243 * po/gas.pot: Regenerate.
1244
1245 2021-01-09 Nick Clifton <nickc@redhat.com>
1246
1247 * 2.36 release branch crated.
1248
1249 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
1250
1251 * testsuite/gas/ppc/rop-checks.d,
1252 * testsuite/gas/ppc/rop-checks.l,
1253 * testsuite/gas/ppc/rop-checks.s,
1254 * testsuite/gas/ppc/rop.d,
1255 * testsuite/gas/ppc/rop.s: New tests.
1256 * testsuite/gas/ppc/ppc.exp: Run them.
1257
1258 2021-01-09 Alan Modra <amodra@gmail.com>
1259
1260 * configure: Regenerate.
1261
1262 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1263
1264 * configure: Regenerate.
1265
1266 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1267
1268 PR 27109
1269 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1270 section symbol.
1271 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1272 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1273 on the section symbol.
1274 (set_symtab): Don't generate unused section symbols.
1275 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1276 on the section symbol.
1277 * config/obj-elf.c (elf_adjust_symtab): Call
1278 symbol_mark_used_in_reloc on the group signature symbol.
1279 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1280 from expected output.
1281 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1282 is_elf_unused_section_symbols.
1283 * testsuite/gas/elf/section2.e: Updated.
1284 * testsuite/gas/elf/section2.e-unused: New file.
1285 * testsuite/gas/elf/symver.d: Remove unused section symbols.
1286 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1287 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1288 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1289 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1290 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1291 * testsuite/gas/i386/size-1.d: Likewise.
1292 * testsuite/gas/i386/size-3.d: Likewise.
1293 * testsuite/gas/i386/svr4.d: Likewise.
1294 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1295 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1296 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1297 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1298
1299 2021-01-07 Philipp Tomsich <prt@gnu.org>
1300
1301 * config/tc-riscv.c (riscv_multi_subset_supports): Added
1302 INSN_CLASS_ZIHINTPAUSE.
1303 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
1304 the pause hint instruction.
1305 * testsuite/gas/riscv/pause.s: Likewise.
1306
1307 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1308 Jim Wilson <jimw@sifive.com>
1309 Andrew Waterman <andrew@sifive.com>
1310 Maxim Blinov <maxim.blinov@embecosm.com>
1311 Kito Cheng <kito.cheng@sifive.com>
1312 Nelson Chu <nelson.chu@sifive.com>
1313
1314 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1315 (riscv_get_default_ext_version): Do not check the default_isa_spec when
1316 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1317 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1318 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1319 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1320
1321 2021-01-06 Alan Modra <amodra@gmail.com>
1322
1323 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1324
1325 2021-01-06 Alan Modra <amodra@gmail.com>
1326
1327 * testsuite/gas/macros/app1.d: xfail tic30.
1328 * testsuite/gas/macros/app2.d: Likewise.
1329 * testsuite/gas/macros/app3.d: Likewise.
1330 * testsuite/gas/macros/app4.d: Likewise.
1331
1332 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1333
1334 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1335 * doc/c-riscv.texi: Likewise.
1336
1337 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1338
1339 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1340 to littleriscv.
1341 * testsuite/gas/riscv/li64.d: Likewise.
1342 * testsuite/gas/riscv/lla32.d: Likewise.
1343 * testsuite/gas/riscv/lla64.d: Likewise.
1344 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1345 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1346 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1347 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1348 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1349 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1350 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1351
1352 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1353
1354 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1355 elf32-bigriscv.
1356 (install_insn): Always write instructions as little endian.
1357 (riscv_make_nops): Likewise.
1358 (md_convert_frag_branch): Likewise.
1359 (md_number_to_chars): Write data in target endianness.
1360 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1361 (md_parse_option): Handle the endian options.
1362 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1363 already defined.
1364 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1365
1366 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1367
1368 PR ld/26256
1369 * config/obj-elf.c (obj_elf_change_section): Also filter out
1370 SHF_LINK_ORDER.
1371
1372 2021-01-04 Alan Modra <amodra@gmail.com>
1373
1374 PR 27102
1375 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1376 message and register symbol error message.
1377
1378 2021-01-04 Alan Modra <amodra@gmail.com>
1379
1380 PR 27101
1381 * read.c (s_align): Use a large enough type for "align" to hold
1382 the result of get_absolute_expression.
1383
1384 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1385
1386 * config/tc-i386.c: Correct comment spelling.
1387 * config/tc-riscv.c: Likewise.
1388 * config/tc-s390.c: Correct comment grammar.
1389 * doc/c-i386.texi: Correct spelling.
1390 * doc/c-s390.texi: Correct grammar.
1391
1392 2021-01-01 Alan Modra <amodra@gmail.com>
1393
1394 Update year range in copyright notice of all files.
1395
1396 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1397
1398 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1399
1400 For older changes see ChangeLog-2020
1401 \f
1402 Copyright (C) 2021 Free Software Foundation, Inc.
1403
1404 Copying and distribution of this file, with or without modification,
1405 are permitted in any medium without royalty provided the copyright
1406 notice and this notice are preserved.
1407
1408 Local Variables:
1409 mode: change-log
1410 left-margin: 8
1411 fill-column: 74
1412 version-control: never
1413 End: