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