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