]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/ChangeLog
a5d5fbc64d89b8c46d8bb4c6d0ea221dd74393cb
[thirdparty/binutils-gdb.git] / gas / ChangeLog
1 2021-08-11 Darius Galis <darius.galis@cyberthorstudios.com>
2
3 * config/rx-parse.y (DECNT): Fixed typo.
4 * testsuite/gas/rx/dpopm.sm (DECNT): Fixed typo.
5 * testsuite/gas/rx/dpushm.sm (DECNT): Fixed typo.
6 * testsuite/gas/rx/macros.inc (DECNT): Fixed typo.
7
8 2021-08-11 Nick Clifton <nickc@redhat.com>
9
10 PR 28215
11 * config/tc-csky.c (md_apply_fix): Correctly handle a fixup that
12 involves an overlarge constant.
13
14 2021-08-11 Matt Jacobson <mhjacobson@me.com>
15
16 * config/tc-avr.c (enum options): Add option flag.
17 (struct option): Add option -mno-dollar-line-separator.
18 (md_parse_option): Adjust treatment of $ when option is present.
19 (usage): Mention the new option.
20 * config/tc-avr.h: Use avr_line_separator_chars.
21 * doc/c-avr.texi: Document the new option.
22
23 2021-08-11 Nick Clifton <nickc@redhat.com>
24
25 * config/tc-tic4x.c (tic4x_gen_to_words): Fix typo.
26
27 2021-08-10 Nick Clifton <nickc@redhat.com>
28
29 * po/ru.po: Updated Russian translation.
30
31 2021-08-09 Nick Clifton <nickc@redhat.com>
32
33 * dwarf2dbg.c (get_directory_table_entry): Ensure that dir[0]
34 contains current working directory.
35 (out_dir_and_file_list): Likewise.
36 * testsuite/gas/elf/dwarf-5-dir0.s: New test source file.
37 * testsuite/gas/elf/dwarf-5-dir0.d: New test driver.
38 * testsuite/gas/elf/elf.exp: Run the new test.
39 * testsuite/gas/elf/dwarf-5-file0.d: Adjust expected output.
40 * testsuite/gas/i386/dwarf5-line-1.d: Likewise.
41 * testsuite/gas/i386/dwarf5-line-2.d: Likewise.
42
43 2021-07-14 Alan Modra <amodra@gmail.com>
44
45 * write.c (TC_VALIDATE_FIX_SUB): Default to 0.
46 * config/tc-hppa.h (TC_VALIDATE_FIX_SUB): Define.
47 * config/tc-microblaze.h (TC_VALIDATE_FIX_SUB): Define.
48 * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define for ECOFF.
49 * config/tc-ppc.h (TC_VALIDATE_FIX_SUB): Don't define for ELF.
50 Do define for XCOFF.
51
52 2021-07-14 Clément Chigot <clement.chigot@atos.net>
53
54 * config/tc-ppc.c (ppc_change_debug_section): Update to
55 match new name's field.
56
57 2021-07-12 Tucker <tuckkern@sourceware@gmail.com>
58
59 PR 28054
60 * config/obj-elf.c (obj_elf_change_section): Set the
61 SEF_ELF_OCTETS flag on debug sections.
62
63 2021-06-07 Andreas Krebbel <krebbel@linux.ibm.com>
64
65 * testsuite/gas/s390/zarch-arch14.d: Add qpaci.
66 * testsuite/gas/s390/zarch-arch14.s: Add qpaci.
67
68 2021-07-07 Nick Clifton <nickc@redhat.com>
69
70 PR 28051
71 * config/tc-i386.c (offset_in_range): Reformat error messages in
72 order to fix problems when translating.
73 (md_assemble): Likewise.
74 * messages.c (as_internal_value_out_of_range): Likewise.
75 * read.c (emit_expr_with_reloc): Likewise.
76 * testsuite/gas/all/overflow.l Change expected output format.
77 * po/gas.pot: Regenerate.
78
79 2021-07-03 Nick Clifton <nickc@redhat.com>
80
81 * configure: Regenerate.
82 * po/gas.pot: Regenerate.
83
84 2021-07-03 Nick Clifton <nickc@redhat.com>
85
86 * 2.37 release branch created.
87
88 2021-07-02 Alan Modra <amodra@gmail.com>
89
90 * config/tc-nds32.c (nds32_keyword_gpr): Don't declare.
91 (md_begin): Constify k.
92
93 2021-07-02 Nick Clifton <nickc@redhat.com>
94
95 * config/tc-nds32.c: Change all references of keyword_gpr to
96 nds32_keyword_gpr.
97
98 2021-07-01 Mike Frysinger <vapier@gentoo.org>
99
100 * config/tc-microblaze.c (md_begin): Make opcode const. Rename
101 opcodes to microblaze_opcodes.
102
103 2021-07-01 Mike Frysinger <vapier@gentoo.org>
104
105 * config/tc-aarch64.c (struct templates): Make opcode const.
106 (md_assemble): Likewise.
107 (fill_instruction_hash_table): Likewise.
108
109 2021-06-24 Clément Chigot <clement.chigot@atos.net>
110
111 * config/tc-ppc.c (md_assemble): Update ppc_current_csect
112 alignment when finding prefixed instructions.
113
114 2021-06-22 Alan Modra <amodra@gmail.com>
115
116 * config/tc-pj.c (md_apply_fix): Apply PJ_CODE_REL32 relocs.
117 * testsuite/gas/pj/ops.s: Update jsr, ret, getstatic,
118 putstatic, getfield, putfield, invokevirtual, invokespecial,
119 invokestatic, invokeinterface, goto_w, jsr_w assembly. Delete
120 version 1 picojava opcodes.
121 * testsuite/gas/pj/ops.d: Match expected output.
122
123 2021-06-19 Alan Modra <amodra@gmail.com>
124
125 * config/tc-z80.c (signed_overflow, unsigned_overflow): Avoid UB.
126
127 2021-06-19 Alan Modra <amodra@gmail.com>
128
129 * testsuite/gas/ppc/raw.s: Use 0 as pli constant.
130 * testsuite/gas/ppc/raw.d: Update to suit.
131
132 2021-06-18 Jan Beulich <jbeulich@suse.com>
133
134 * expr.c (symbol_lookup_or_make): New.
135 (operand): Use it.
136 * testsuite/gas/elf/startof.s, testsuite/gas/elf/startof.d: New.
137 * testsuite/gas/elf/elf.exp: Run new test.
138
139 2021-06-17 Nick Clifton <nickc@redhat.com>
140
141 PR 27904
142 * config/tc-aarch64.c (ldst_lo12_determine_real_reloc_type):
143 Generate a syntax error message if the reloc qualifier does not
144 match the instruction's size.
145
146 2021-06-17 Clément Chigot <clement.chigot@atos.net>
147
148 * config/tc-ppc.c (md_begin): Create bss section with dummy
149 symbol.
150 (ppc_frob_symbol): Output XTY_CM for bss csects.
151 (ppc_fix_adjustable): Adjust condition to avoid bss csects.
152
153 2021-06-17 Clément Chigot <clement.chigot@atos.net>
154
155 * config/tc-ppc.c (md_apply_fix): Adjust addend to nullify
156 section contents for BFD_RELOC_PPC_TLSM or
157 BFD_RELOC_PPC64_TLSM.
158 * testsuite/gas/ppc/xcoff-tlsm-32.d: New test.
159 * testsuite/gas/ppc/xcoff-tlsm-64.d: New test.
160 * testsuite/gas/ppc/xcoff-tlsm.s: New test.
161 * testsuite/gas/ppc/aix.exp: Run new tests.
162
163 2021-06-16 Jan Beulich <jbeulich@suse.com>
164
165 * read.c (parse_one_float): New.
166 (s_float_space, float_cons): Use it.
167 * testsuite/gas/all/float.s: Add .dc.*, .dcb.*, and .ds.* cases.
168
169 2021-06-16 Jan Beulich <jbeulich@suse.com>
170
171 * read.c (emit_expr_with_reloc): Adjust overflow check. Drop
172 hibit local variable.
173 * write.c (fixup_segment): Differentiate signed and non-signed
174 relocs in overflow check.
175 * testsuite/gas/all/overflow.s,
176 testsuite/gas/all/overflow.l: New.
177 * testsuite/gas/all/gas.exp: Run new test.
178
179 2021-06-15 Jan Beulich <jbeulich@suse.com>
180
181 * config/tc-i386.c (md_show_usage): Split ELF and PE/COFF parts
182 of object format controlling option. Add Mach-O to the latter.
183 * testsuite/gas/i386/i386.exp (gas_bfd64_check): Adjust
184 accordingly.
185
186 2021-06-15 Jan Beulich <jbeulich@suse.com>
187
188 * config/tc-i386.c (disp16, disp32, disp32s): Delete.
189 (optimize_disp, i386_finalize_displacement): Use
190 operand_type_and_not.
191 (build_modrm_byte): Likewise. Eliminate local variable newdisp.
192
193 2021-06-15 Jan Beulich <jbeulich@suse.com>
194
195 * config/tc-i386.c (offset_in_range): Bail early when mask would
196 cover all bits anyway.
197
198 2021-06-15 Jan Beulich <jbeulich@suse.com>
199
200 * config/tc-i386.c (optimize_disp): Generalize disp32 part of
201 the BFD64-only logic to also apply to non-64-bit code.
202 (i386_finalize_displacement): Use extend_to_32bit_address for
203 non-64-bit code. Drop now redundant O_constant checks.
204 * testsuite/gas/i386/disp-imm-32.s,
205 testsuite/gas/i386/disp-imm-32.d: New.
206 * testsuite/gas/i386/i386.exp: Run new test.
207
208 2021-06-15 Jan Beulich <jbeulich@suse.com>
209
210 * config/tc-i386.c (offset_in_range): Replace uses of
211 bfd_sprintf_vma.
212
213 2021-06-15 Jan Beulich <jbeulich@suse.com>
214
215 * config/tc-i386.c (offset_in_range): Adjust conditional.
216 * testsuite/gas/i386/disp-imm-16.s,
217 testsuite/gas/i386/disp-imm-16.l,
218 testsuite/gas/i386/disp-imm-64.s,
219 testsuite/gas/i386/disp-imm-64.l: New.
220 * testsuite/gas/i386/i386.exp: Run new tests.
221
222 2021-06-15 Jan Beulich <jbeulich@suse.com>
223
224 * config/tc-i386.c (i386_att_operand): Re-introduce (now
225 properly named) parens_not_balanced.
226 * testsuite/gas/i386/sib.s: Add more cases.
227 * testsuite/gas/i386/sib.d, testsuite/gas/i386/sib-intel.d:
228 Adjust expectations.
229
230 2021-06-14 Jan Beulich <jbeulich@suse.com>
231
232 * read.c (emit_expr_with_reloc): Fold three as_warn().
233
234 2021-06-14 Jan Beulich <jbeulich@suse.com>
235
236 * doc/internals.texi (TC_ADDRESS_BYTES): Mention generic default.
237 * read.c (potable, cons_worker): Drop TC_ADDRESS_BYTES
238 conditional.
239
240 2021-06-11 H.J. Lu <hongjiu.lu@intel.com>
241
242 * config/tc-i386.c (x86_cons): Handle GOT/PLT relocations only
243 if needed.
244 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Always define.
245
246 2021-06-11 Nelson Chu <nelson.chu@sifive.com>
247
248 * config/tc-riscv.c (riscv_set_arch): Call riscv_set_rvc
249 and riscv_set_rve both for -march and elf attributes.
250 (riscv_after_parse_args): Likewise.
251
252 2021-06-10 Jan Beulich <jbeulich@suse.com>
253
254 * config/tc-arm.c (do_bfloat_vfma): Rename index to idx.
255 (do_vusdot): Likewise.
256 (do_vsudot): Likewise.
257 (check_cde_operand): Likewise.
258 (do_vdot): Likewise.
259
260 2021-06-10 Jan Beulich <jbeulich@suse.com>
261
262 * config/tc-arm.c (reg_expected_msgs): Add REG_TYPE_ZR entry.
263
264 2021-06-10 Jan Beulich <jbeulich@suse.com>
265
266 * config/tc-i386.c (optimize_encoding): Suppress LEA conversion
267 when it would grow code size in 16-bit mode.
268 * testsuite/gas/i386/lea16-optimize.d: Adjust expectations.
269 * testsuite/gas/i386/lea16-optimize2.d: New.
270 * testsuite/gas/i386/i386.exp: Run new test.
271
272 2021-06-08 Jan Beulich <jbeulich@suse.com>
273
274 * testsuite/gas/i386/quoted.d, testsuite/gas/i386/wrap32-text.d:
275 Adjust expectations.
276 * testsuite/gas/i386/wrap32-data.d: Likewise. Correct name.
277
278 2021-06-08 Jan Beulich <jbeulich@suse.com>
279
280 * config/tc-i386.c (optimize_imm): Use fits_in_unsigned_word
281 and fits_in_unsigned_long.
282
283 2021-06-08 Jan Beulich <jbeulich@suse.com>
284
285 * config/tc-i386.c (optimize_disp): Use fits_in_unsigned_word
286 and fits_in_unsigned_long. Combine if()s.
287
288 2021-06-08 Jan Beulich <jbeulich@suse.com>
289
290 * config/tc-i386.c (optimize_disp): Write back updated value.
291 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea64.s: New
292 cases.
293 * testsuite/gas/i386/lea16-optimize.d,
294 testsuite/gas/i386/lea64.d, testsuite/gas/i386/lea64-optimize.d:
295 Adjust expectations.
296 * testsuite/gas/i386/lea16.d: New.
297 * testsuite/gas/i386/i386.exp: Run new test.
298
299 2021-06-08 Jan Beulich <jbeulich@suse.com>
300
301 * config/tc-i386.c (optimize_disp): Drop redundant masking.
302 Re-order.
303
304 2021-06-07 Jan Beulich <jbeulich@suse.com>
305
306 * config/tc-i386.c (i386_att_operand): Re-write handling of
307 vector operations operand suffix.
308 * testsuite/gas/i386/unary.s: Add more cases.
309 * testsuite/gas/i386/unary.d: Adjust expectations.
310
311 2021-06-07 Jan Beulich <jbeulich@suse.com>
312
313 * config/tc-i386.c (parse_operands): Reduce scope of
314 paren_not_balanced, to match the new in_quotes. Skip over quoted
315 regions of operands.
316 (i386_att_operand): Remove (mis-named) parens_balanced. Respect
317 double quote.
318 * testsuite/gas/i386/unary.s: Add more cases.
319 * testsuite/gas/i386/unary.d: Adjust expectations.
320
321 2021-06-07 Jan Beulich <jbeulich@suse.com>
322
323 * config/tc-i386.c (digit_chars, is_digit_char): Delete.
324 (md_begin): Fold digit and lower-case letter handling.
325 (starts_memory_operand): Permit more characters.
326 * testsuite/gas/i386/unary.s, testsuite/gas/i386/unary.d: New.
327 * testsuite/gas/i386/i386.exp: Run new test.
328
329 2021-06-07 Jan Beulich <jbeulich@suse.com>
330
331 * config/tc-i386.c (starts_memory_operand): New.
332 (i386_att_operand): Use it.
333 * testsuite/gas/i386/quoted.s, testsuite/gas/i386/quoted.d: New.
334 * testsuite/gas/i386/i386.exp: Run new test.
335
336 2021-06-07 Jan Beulich <jbeulich@suse.com>
337
338 * config/tc-i386.c (i386_att_operand): Flip checking for '*' and
339 start-of-expression. Don't permit '*' when one was already seen.
340
341 2021-06-07 Jan Beulich <jbeulich@suse.com>
342
343 * config/tc-i386.c (parse_operands): Don't check for matched
344 square brackets.
345
346 2021-06-07 Jan Beulich <jbeulich@suse.com>
347
348 * config/tc-i386.c (check_VecOperations): Remove 2nd parameter.
349 (i386_att_operand): Adjust calls to check_VecOperations.
350 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
351
352 2021-06-07 Jan Beulich <jbeulich@suse.com>
353
354 * config/tc-i386.c (i386_immediate): Don't call check_VecOperations.
355
356 2021-06-07 Jan Beulich <jbeulich@suse.com>
357
358 * config/tc-i386.c (extend_to_32bit_address): New.
359 (x86_cons, i386_finalize_immediate, md_apply_fix): Use it.
360 (signed_cons): Use object_64bit.
361 * testsuite/gas/i386/wrap32.s, testsuite/gas/i386/wrap32-data.d,
362 testsuite/gas/i386/wrap32-text.d: New.
363 * testsuite/gas/i386/i386.exp: Run new tests.
364
365 2021-06-03 Alan Modra <amodra@gmail.com>
366
367 PR 1202
368 * testsuite/gas/mcore/allinsn.d: Correct loopt expected output.
369
370 2021-05-29 Alan Modra <amodra@gmail.com>
371
372 * testsuite/gas/ppc/raw.s,
373 * testsuite/gas/ppc/raw.d: New test.
374 * testsuite/gas/ppc/ppc.exp: Run it.
375
376 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
377
378 * testsuite/gas/mips/c0.d: New test.
379 * testsuite/gas/mips/mips1@c0.d: New test.
380 * testsuite/gas/mips/mips2@c0.d: New test.
381 * testsuite/gas/mips/mips3@c0.d: New test.
382 * testsuite/gas/mips/mips4@c0.d: New test.
383 * testsuite/gas/mips/mips5@c0.d: New test.
384 * testsuite/gas/mips/mips32@c0.d: New test.
385 * testsuite/gas/mips/mips64@c0.d: New test.
386 * testsuite/gas/mips/r3000@c0.d: New test.
387 * testsuite/gas/mips/r3900@c0.d: New test.
388 * testsuite/gas/mips/r4000@c0.d: New test.
389 * testsuite/gas/mips/vr5400@c0.d: New test.
390 * testsuite/gas/mips/r5900@c0.d: New test.
391 * testsuite/gas/mips/sb1@c0.d: New test.
392 * testsuite/gas/mips/interaptiv-mr2@c0.d: New test.
393 * testsuite/gas/mips/octeon@c0.d: New test.
394 * testsuite/gas/mips/xlr@c0.d: New test.
395 * testsuite/gas/mips/c1.d: New test.
396 * testsuite/gas/mips/mips1@c1.d: New test.
397 * testsuite/gas/mips/mips2@c1.d: New test.
398 * testsuite/gas/mips/mips3@c1.d: New test.
399 * testsuite/gas/mips/mips4@c1.d: New test.
400 * testsuite/gas/mips/mips5@c1.d: New test.
401 * testsuite/gas/mips/mips32@c1.d: New test.
402 * testsuite/gas/mips/mips64@c1.d: New test.
403 * testsuite/gas/mips/mipsr6@c1.d: New test.
404 * testsuite/gas/mips/r3000@c1.d: New test.
405 * testsuite/gas/mips/r3900@c1.d: New test.
406 * testsuite/gas/mips/r4000@c1.d: New test.
407 * testsuite/gas/mips/vr5400@c1.d: New test.
408 * testsuite/gas/mips/r5900@c1.d: New test.
409 * testsuite/gas/mips/sb1@c1.d: New test.
410 * testsuite/gas/mips/interaptiv-mr2@c1.d: New test.
411 * testsuite/gas/mips/octeon@c1.d: New test.
412 * testsuite/gas/mips/xlr@c1.d: New test.
413 * testsuite/gas/mips/c2.d: New test.
414 * testsuite/gas/mips/vr5400@c2.d: New test.
415 * testsuite/gas/mips/r5900@c2.d: New test.
416 * testsuite/gas/mips/octeon@c2.d: New test.
417 * testsuite/gas/mips/c3.d: New test.
418 * testsuite/gas/mips/mips1@c3.d: New test.
419 * testsuite/gas/mips/mips2@c3.d: New test.
420 * testsuite/gas/mips/mips32@c3.d: New test.
421 * testsuite/gas/mips/r3000@c3.d: New test.
422 * testsuite/gas/mips/r3900@c3.d: New test.
423 * testsuite/gas/mips/c0.l: New test stderr output.
424 * testsuite/gas/mips/c2.l: New test stderr output.
425 * testsuite/gas/mips/c3.l: New test stderr output.
426 * testsuite/gas/mips/c0.s: New test source.
427 * testsuite/gas/mips/c1.s: New test source.
428 * testsuite/gas/mips/c2.s: New test source.
429 * testsuite/gas/mips/c3.s: New test source.
430 * testsuite/gas/mips/mips.exp: Run the new tests.
431
432 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
433
434 * testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
435 * testsuite/gas/mips/rfe.d: Update for ISA exclusions.
436 * testsuite/gas/mips/mips1@rfe.d: New test.
437 * testsuite/gas/mips/mips2@rfe.d: New test.
438 * testsuite/gas/mips/r3000@rfe.d: New test.
439 * testsuite/gas/mips/r3900@rfe.d: New test.
440 * testsuite/gas/mips/rfe.l: New test stderr output.
441
442 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
443
444 * testsuite/gas/mips/mips.exp: Run coprocessor tests across all
445 ISAs.
446 * testsuite/gas/mips/cp0b.d: Update for ISA exclusions.
447 * testsuite/gas/mips/cp0bl.d: Update for ISA exclusions.
448 * testsuite/gas/mips/cp0c.d: Update for ISA exclusions.
449 * testsuite/gas/mips/cp0m.d: Update for ISA exclusions.
450 * testsuite/gas/mips/cp3.d: Update for ISA exclusions.
451 * testsuite/gas/mips/cp3b.d: Update for ISA exclusions.
452 * testsuite/gas/mips/cp3bl.d: Update for ISA exclusions.
453 * testsuite/gas/mips/cp3m.d: Update for ISA exclusions.
454 * testsuite/gas/mips/cp3d.d: Update for ISA exclusions.
455 * testsuite/gas/mips/mips1@cp0b.d: New test.
456 * testsuite/gas/mips/mips2@cp0b.d: New test.
457 * testsuite/gas/mips/mips3@cp0b.d: New test.
458 * testsuite/gas/mips/r3000@cp0b.d: New test.
459 * testsuite/gas/mips/r3900@cp0b.d: New test.
460 * testsuite/gas/mips/r4000@cp0b.d: New test.
461 * testsuite/gas/mips/r5900@cp0b.d: New test.
462 * testsuite/gas/mips/mips2@cp0bl.d: New test.
463 * testsuite/gas/mips/mips3@cp0bl.d: New test.
464 * testsuite/gas/mips/r3900@cp0bl.d: New test.
465 * testsuite/gas/mips/r4000@cp0bl.d: New test.
466 * testsuite/gas/mips/r5900@cp0bl.d: New test.
467 * testsuite/gas/mips/mips1@cp0c.d: New test.
468 * testsuite/gas/mips/mips2@cp0c.d: New test.
469 * testsuite/gas/mips/mips3@cp0c.d: New test.
470 * testsuite/gas/mips/mips4@cp0c.d: New test.
471 * testsuite/gas/mips/mips5@cp0c.d: New test.
472 * testsuite/gas/mips/r3000@cp0c.d: New test.
473 * testsuite/gas/mips/r3900@cp0c.d: New test.
474 * testsuite/gas/mips/r4000@cp0c.d: New test.
475 * testsuite/gas/mips/vr5400@cp0c.d: New test.
476 * testsuite/gas/mips/r5900@cp0c.d: New test.
477 * testsuite/gas/mips/mips1@cp0m.d: New test.
478 * testsuite/gas/mips/r3000@cp0m.d: New test.
479 * testsuite/gas/mips/octeon@cp2.d: New test.
480 * testsuite/gas/mips/mipsr6@cp2b.d: New test.
481 * testsuite/gas/mips/vr5400@cp2b.d: New test.
482 * testsuite/gas/mips/octeon@cp2b.d: New test.
483 * testsuite/gas/mips/mips1@cp2bl.d: New test.
484 * testsuite/gas/mips/mipsr6@cp2bl.d: New test.
485 * testsuite/gas/mips/r3000@cp2bl.d: New test.
486 * testsuite/gas/mips/vr5400@cp2bl.d: New test.
487 * testsuite/gas/mips/octeon@cp2bl.d: New test.
488 * testsuite/gas/mips/vr5400@cp2m.d: New test.
489 * testsuite/gas/mips/r5900@cp2m.d: New test.
490 * testsuite/gas/mips/octeon@cp2m.d: New test.
491 * testsuite/gas/mips/mips1@cp2d.d: New test.
492 * testsuite/gas/mips/r3000@cp2d.d: New test.
493 * testsuite/gas/mips/r3900@cp2d.d: New test.
494 * testsuite/gas/mips/vr5400@cp2d.d: New test.
495 * testsuite/gas/mips/r5900@cp2d.d: New test.
496 * testsuite/gas/mips/octeon@cp2d.d: New test.
497 * testsuite/gas/mips/mips1@cp2-64.d: New test.
498 * testsuite/gas/mips/mips2@cp2-64.d: New test.
499 * testsuite/gas/mips/mips32@cp2-64.d: New test.
500 * testsuite/gas/mips/mips32r2@cp2-64.d: New test.
501 * testsuite/gas/mips/mips32r3@cp2-64.d: New test.
502 * testsuite/gas/mips/mips32r5@cp2-64.d: New test.
503 * testsuite/gas/mips/mips32r6@cp2-64.d: New test.
504 * testsuite/gas/mips/r3000@cp2-64.d: New test.
505 * testsuite/gas/mips/r3900@cp2-64.d: New test.
506 * testsuite/gas/mips/interaptiv-mr2@cp2-64.d: New test.
507 * testsuite/gas/mips/mips1@cp3.d: New test.
508 * testsuite/gas/mips/mips2@cp3.d: New test.
509 * testsuite/gas/mips/mips32@cp3.d: New test.
510 * testsuite/gas/mips/r3000@cp3.d: New test.
511 * testsuite/gas/mips/r3900@cp3.d: New test.
512 * testsuite/gas/mips/mips1@cp3b.d: New test.
513 * testsuite/gas/mips/mips2@cp3b.d: New test.
514 * testsuite/gas/mips/mips32@cp3b.d: New test.
515 * testsuite/gas/mips/r3000@cp3b.d: New test.
516 * testsuite/gas/mips/r3900@cp3b.d: New test.
517 * testsuite/gas/mips/mips2@cp3bl.d: New test.
518 * testsuite/gas/mips/mips32@cp3bl.d: New test.
519 * testsuite/gas/mips/r3900@cp3bl.d: New test.
520 * testsuite/gas/mips/mips1@cp3m.d: New test.
521 * testsuite/gas/mips/mips2@cp3m.d: New test.
522 * testsuite/gas/mips/r3000@cp3m.d: New test.
523 * testsuite/gas/mips/r3900@cp3m.d: New test.
524 * testsuite/gas/mips/mips2@cp3d.d: New test.
525 * testsuite/gas/mips/cp0b.l: New test stderr output.
526 * testsuite/gas/mips/cp0bl.l: New test stderr output.
527 * testsuite/gas/mips/cp0c.l: New test stderr output.
528 * testsuite/gas/mips/cp0m.l: New test stderr output.
529 * testsuite/gas/mips/cp2.l: New test stderr output.
530 * testsuite/gas/mips/cp2-64.l: New test stderr output.
531 * testsuite/gas/mips/cp2b.l: New test stderr output.
532 * testsuite/gas/mips/cp2bl.l: New test stderr output.
533 * testsuite/gas/mips/cp2m.l: New test stderr output.
534 * testsuite/gas/mips/cp2d.l: New test stderr output.
535 * testsuite/gas/mips/cp3.l: New test stderr output.
536 * testsuite/gas/mips/cp3b.l: New test stderr output.
537 * testsuite/gas/mips/cp3bl.l: New test stderr output.
538 * testsuite/gas/mips/cp3m.l: New test stderr output.
539 * testsuite/gas/mips/cp3d.l: New test stderr output.
540
541 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
542
543 * testsuite/gas/mips/mips32@isa-override-1.d: Update for LDC3
544 instruction removal.
545 * testsuite/gas/mips/mips32r2@isa-override-1.d: Likewise.
546
547 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
548
549 * testsuite/gas/mips/cp0b.d: New test.
550 * testsuite/gas/mips/cp0bl.d: New test.
551 * testsuite/gas/mips/cp2b.d: New test.
552 * testsuite/gas/mips/micromips@cp2b.d: New test.
553 * testsuite/gas/mips/cp2bl.d: New test.
554 * testsuite/gas/mips/micromips@cp2bl.d: New test.
555 * testsuite/gas/mips/cp3b.d: New test.
556 * testsuite/gas/mips/cp3bl.d: New test.
557 * testsuite/gas/mips/cp0b.s: New test source.
558 * testsuite/gas/mips/cp0bl.s: New test source.
559 * testsuite/gas/mips/cp2b.s: New test source.
560 * testsuite/gas/mips/cp2bl.s: New test source.
561 * testsuite/gas/mips/cp3b.s: New test source.
562 * testsuite/gas/mips/cp3bl.s: New test source.
563 * testsuite/gas/mips/mips.exp: Run the new tests.
564
565 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
566
567 * testsuite/gas/mips/rfe.d: New test.
568 * testsuite/gas/mips/rfe.s: New test source.
569 * testsuite/gas/mips/mips.exp: Run the new test.
570
571 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
572
573 * testsuite/gas/mips/cp1-names-r3900.d: New test.
574 * testsuite/gas/mips/mips.exp: Run the new test.
575 * testsuite/gas/mips/branch-misc-3.d: Update disassembly
576 according to changes to opcodes.
577 * testsuite/gas/mips/cp1-names-r3000.d: Likewise.
578 * testsuite/gas/mips/cp1-names-r4000.d: Likewise.
579 * testsuite/gas/mips/relax-swap1-mips1.d: Likewise.
580 * testsuite/gas/mips/relax-swap1-mips2.d: Likewise.
581 * testsuite/gas/mips/trunc.d: Likewise.
582
583 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
584
585 * testsuite/gas/mips/cp0c.d: New test.
586 * testsuite/gas/mips/cp0m.d: New test.
587 * testsuite/gas/mips/r3900@cp0m.d: New test.
588 * testsuite/gas/mips/cp2.d: New test.
589 * testsuite/gas/mips/micromips@cp2.d: New test.
590 * testsuite/gas/mips/cp2m.d: New test.
591 * testsuite/gas/mips/mipsr6@cp2m.d: New test.
592 * testsuite/gas/mips/micromips@cp2m.d: New test.
593 * testsuite/gas/mips/cp2d.d: New test.
594 * testsuite/gas/mips/mipsr6@cp2d.d: New test.
595 * testsuite/gas/mips/micromips@cp2d.d: New test.
596 * testsuite/gas/mips/cp2-64.d: New test.
597 * testsuite/gas/mips/micromips@cp2-64.d: New test.
598 * testsuite/gas/mips/cp3.d: New test.
599 * testsuite/gas/mips/cp3m.d: New test.
600 * testsuite/gas/mips/cp3d.d: New test.
601 * testsuite/gas/mips/cp0c.s: New test source.
602 * testsuite/gas/mips/cp0m.s: New test source.
603 * testsuite/gas/mips/cp2.s: New test source.
604 * testsuite/gas/mips/cp2m.s: New test source.
605 * testsuite/gas/mips/cp2d.s: New test source.
606 * testsuite/gas/mips/cp2-64.s: New test source.
607 * testsuite/gas/mips/cp3.s: New test source.
608 * testsuite/gas/mips/cp3m.s: New test source.
609 * testsuite/gas/mips/cp3d.s: New test source.
610 * testsuite/gas/mips/mips.exp: Run the new tests.
611
612 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
613
614 * tc-mips.c (convert_reg_type) <OP_REG_CONTROL>: New case.
615 (macro) <M_TRUNCWS, M_TRUNCWD>: Use the `g' rather than `G'
616 operand code.
617
618 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
619
620 * testsuite/gas/mips/cp0-names-r3900.d: New test.
621 * testsuite/gas/mips/mips.exp: Run it.
622
623 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
624
625 * testsuite/gas/mips/micromips.d: Update disassembly according
626 to "dmtc1" entry fix with opcodes.
627 * testsuite/gas/mips/micromips-compact.d: Likewise.
628 * testsuite/gas/mips/micromips-insn32.d: Likewise.
629 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
630 * testsuite/gas/mips/micromips-trap.d: Likewise.
631 * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
632
633 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
634
635 * config/tc-mips.c (FCSR): New macro.
636 (macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
637
638 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
639
640 PR ld/27905
641 * config/tc-i386.c (set_code_flag): Revert commit 50c95a739c9.
642 (set_16bit_gcc_code_flag): Likewise.
643 (x86_cleanup): Likewise.
644 * testsuite/gas/i386/code16-2.d: Updated.
645 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
646
647 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
648
649 * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
650 * testsuite/gas/ppc/vsx.s: Likewise.
651
652 2021-05-27 Alan Modra <amodra@gmail.com>
653
654 * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
655 (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
656 error.
657
658 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
659
660 PR ld/27905
661 * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
662 with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
663 object.
664 (set_16bit_gcc_code_flag): Likewise.
665 (x86_cleanup): Always generate the GNU property note if
666 x86_feature_2_used isn't 0.
667 * testsuite/gas/i386/code16-2.d: New file.
668 * testsuite/gas/i386/code16-2.s: Likewise.
669 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
670 * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
671
672 2021-05-26 Sebastien Villemot <sebastien@debian.org>
673
674 PR gas/27906
675 * doc/c-i386.texi: Replace movsb with movsxb as an alias for
676 movsbq.
677
678 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
679
680 * config/tc-riscv.c (riscv_set_arch): Set
681 check_unknown_prefixed_ext to true for assembler.
682
683 2021-05-25 Tamar Christina <tamar.christina@arm.com>
684
685 PR gas/25235
686 * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
687 (relax_adr): Thumb symbols 4 bytes.
688 * testsuite/gas/arm/pr25235.d: New test.
689 * testsuite/gas/arm/pr25235.s: New test.
690
691 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
692
693 PR 25212
694 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
695 will choose ilp32e abi for rv32e. Besides, report errors for the
696 invalid march and mabi combinations.
697 * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
698 ilp32e abi for rve extension.
699 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
700 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
701 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
702 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
703 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
704 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
705 Renamed all mabi testcases to their march-mabi settings.
706
707 2021-05-22 Alan Modra <amodra@gmail.com>
708
709 PR 25599
710 * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
711 adjustment. Add assertion.
712 * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
713 for PCREL60B.
714
715 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
716
717 * config/tc-z80.c (emit_data_val): Warn on constant overflow.
718 (signed_overflow): New function.
719 (unsigned_overflow): New function.
720 (is_overflow): Use new functions.
721 (md_apply_fix): Use signed_overflow.
722 * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
723 * testsuite/gas/z80/ez80_isuf.s: Likewise.
724 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
725
726 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
727
728 PR 27888
729 * Makefile.am (ZLIB): Define.
730 (as_new_LDADD): Add it.
731 * Makefile.in: Regenerate.
732
733 2021-05-17 Alex Coplan <alex.coplan@arm.com>
734
735 * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
736 into the same GPR twice.
737 * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
738 * testsuite/gas/arm/mve-vmov-3.d: New test.
739 * testsuite/gas/arm/mve-vmov-3.s: New test.
740
741 2021-05-12 Alan Modra <amodra@gmail.com>
742
743 * testsuite/gas/elf/dwarf-5-file0.d: Update.
744 * testsuite/gas/i386/dwarf5-line-1.d: Update.
745
746 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
747
748 PR 27823
749 * config/tc-z80.c (emit_ld_r_m): Report an illegal load
750 instruction.
751 * testsuite/gas/z80/ill_ops.s: New test source file.
752 * testsuite/gas/z80/ill_ops.d: New test driver.
753 * testsuite/gas/z80/ill_ops.l: New test error output.
754
755 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
756
757 PR 27415
758 * config/tc-z80.c (emit_data_val): Add support for 8-bit and
759 24-bit shifts.
760 * testsuite/gas/z80/z80_reloc.a: Update tests.
761 * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
762
763 2021-05-08 Mike Frysinger <vapier@gentoo.org>
764
765 * doc/Makefile.am (html-local, as/index.html): New targets.
766 * doc/Makefile.in: Regenerate.
767
768 2021-05-08 Mike Frysinger <vapier@gentoo.org>
769
770 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
771 * doc/Makefile.in: Regenerate.
772
773 2021-05-07 Nick Clifton <nickc@redhat.com>
774
775 PR 3136
776 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
777 (obj_elf_bss): New function. Change to the .bss section.
778 Support an optional subsection number.
779 (obj_elf_change_section): Call obj_elf_section_change_hook.
780 (obj_elf_section): Likewise.
781 (obj_elf_data): Likewise.
782 (obj_elf_text): Likewise.
783 (obj_elf_struct): Likewise.
784 (obj_elf_subsection): Likewise.
785 (obj_elf_previous): Likewise.
786 * config/obj-elf.h (obj_elf_bss): Prototype.
787 * doc/as.texi (Bss): New node.
788
789 2021-05-07 Clément Chigot <clement.chigot@atos.net>
790
791 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
792 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
793 (coff_frob_section): Likewise.
794 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
795 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
796 SA_SET_SECT_NRELOC) New defines.
797 (SET_SECTION_RELOCS): Adjust for C_DWARF.
798 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
799 (ppc_adjust_symtab): Reorder C_DWARF symbols.
800 * testsuite/gas/ppc/aix.exp: New tests.
801 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
802 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
803 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
804
805 * config/tc-ppc.c (ppc_function): Update comment for
806 fifth argument.
807 (ppc_frob_symbol): Remove ppc_last_function check.
808 Make sure coff_last_function is reset.
809 Correctly set fsize when not provided in .function.
810 * testsuite/gas/ppc/aix.exp: New tests.
811 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
812 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
813 * testsuite/gas/ppc/xcoff-function-1.s: New test.
814
815 2021-05-07 Jan Beulich <jbeulich@suse.com>
816
817 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
818 * testsuite/gas/i386/i386.exp: Run new test.
819
820 2021-05-07 Jan Beulich <jbeulich@suse.com>
821
822 * config/tc-i386.c (output_disp): Use disps field instead of
823 imms one.
824
825 2021-05-07 Jan Beulich <jbeulich@suse.com>
826
827 * config/tc-i386.c (i386_finalize_immediate): Move register
828 check ...
829 (i386_immediate): ... here.
830
831 2021-05-07 Jan Beulich <jbeulich@suse.com>
832
833 * config/tc-i386.c (optimize_imm): Drop redundant masking.
834 Re-arrange operand type accumulation.
835
836 2021-05-06 Stafford Horne <shorne@gmail.com>
837
838 PR 21464
839 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
840 * testsuite/gas/or1k/reloc-1.d: Add test result for new
841 relocation.
842
843 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
844
845 PR 27764
846 * testsuite/gas/riscv/a-ext-64.d: New testcase.
847 * testsuite/gas/riscv/a-ext-64.s: Likewise.
848 * testsuite/gas/riscv/a-ext.d: Likewise.
849 * testsuite/gas/riscv/a-ext.s: Likewise.
850
851 2021-05-03 Jan Beulich <jbeulich@suse.com>
852
853 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
854 #if.
855 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
856 Add two further .long and an .equ.
857 * testsuite/gas/i386/secrel.d: Adjust expecations.
858
859 2021-05-03 Jan Beulich <jbeulich@suse.com>
860
861 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
862 Convert Windows to UNIX EOL.
863
864 2021-05-03 Jan Beulich <jbeulich@suse.com>
865
866 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
867 variant into ELF one.
868
869 2021-05-03 Alan Modra <amodra@gmail.com>
870
871 * testsuite/gas/elf/section25.s: Don't start directives in first
872 column.
873 * testsuite/gas/elf/section26.s: Likewise.
874
875 2021-04-29 Jan Beulich <jbeulich@suse.com>
876
877 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
878 * testsuite/gas/i386/lea64.d,
879 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
880 * testsuite/gas/i386/x86-64-rip-inval-1.s,
881 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
882
883 2021-04-29 Jan Beulich <jbeulich@suse.com>
884
885 * config/tc-i386.c (i386_validate_fix): Change return type to
886 int. Short-circuit BFD_RELOC_SIZE* handling.
887 (tc_gen_reloc): New local variable sym. Extend logic when
888 processing BFD_RELOC_SIZE*.
889 * config/tc-i386.f (i386_validate_fix): Change return type to
890 int.
891 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
892 returns zero.
893 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
894 testsuite/gas/i386/size-5b.d: New.
895 * testsuite/gas/i386/i386.exp: Run new tests.
896
897 2021-04-29 Jan Beulich <jbeulich@suse.com>
898
899 * config/tc-i386.c (tc_gen_reloc): Use section size for section
900 symbols when resolving BFD_RELOC_SIZE*.
901 * testsuite/gas/i386/size-2.s: Add section size cases.
902 * testsuite/gas/i386/size-2.d,
903 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
904
905 2021-04-28 Jan Beulich <jbeulich@suse.com>
906 H.J. Lu <hjl.tools@gmail.com>
907
908 PR gas/27763
909 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
910 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
911 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
912 (md_estimate_size_before_relax): Move local variable fixP. Set
913 it from fix_new() return values. Mark 4-byte relocs as signed
914 for 64-bit.
915 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
916 * testsuite/gas/i386/x86-64-rip-2.s,
917 * testsuite/gas/i386/x86-64-rip-2.d,
918 * testsuite/gas/i386/x86-64-rip-inval-1.s,
919 * testsuite/gas/i386/x86-64-rip-inval-1.l,
920 * testsuite/gas/i386/x86-64-rip-inval-2.s,
921 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
922 * testsuite/gas/i386/i386.exp: Run new tests.
923
924 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
925
926 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
927
928 2021-04-26 Jan Beulich <jbeulich@suse.com>
929
930 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
931 BFD_RELOC_SIZE*.
932
933 2021-04-26 Jan Beulich <jbeulich@suse.com>
934
935 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
936 overflow check to 64-bit objects.
937
938 2021-04-26 Jan Beulich <jbeulich@suse.com>
939
940 * config/tc-i386.c (want_disp32): Also check for SIZE32.
941 (optimize_encoding): Handle LEA.
942 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
943 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
944 Add many more forms.
945 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
946 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
947 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
948 New.
949 * testsuite/gas/i386/i386.exp: Run new tests.
950
951 2021-04-26 Jan Beulich <jbeulich@suse.com>
952
953 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
954 signed.
955 * testsuite/gas/i386/x86-64-addr32-bad.s,
956 testsuite/gas/i386/x86-64-addr32-bad.l: New.
957 * testsuite/gas/i386/i386.exp: Run new test.
958
959 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
960
961 * testsuite/gas/elf/section25.d: Run it everywhere.
962 * testsuite/gas/elf/section26.d: Likewise.
963 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
964
965 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
966
967 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
968 optional "code" argument.
969
970 2021-04-23 Jan Beulich <jbeulich@suse.com>
971
972 * config/tc-i386.c (want_disp32): New.
973 (md_assemble): Use it.
974 (optimize_disp): Likewise.
975 (build_modrm_byte): Likewise.
976
977 2021-04-23 Jan Beulich <jbeulich@suse.com>
978
979 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
980 check ...
981 (md_assemble): ... here.
982
983 2021-04-23 Jan Beulich <jbeulich@suse.com>
984
985 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
986 Move up setting of disp32.
987
988 2021-04-23 Jan Beulich <jbeulich@suse.com>
989
990 * config/tc-i386.c (pe): Don't truncate expression value.
991 (i386_finalize_displacement): Likewise.
992
993 2021-04-21 Nick Clifton <nickc@redhat.com>
994
995 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
996 for named section symbols.
997 * testsuite/gas/arm/thumbver.d: Likewise.
998 * testsuite/gas/bfin/loop_temps.d: Likewise.
999 * testsuite/gas/elf/section2.e-arc: Likewise.
1000 * testsuite/gas/elf/section2.e-arm: Likewise.
1001 * testsuite/gas/elf/section2.e-csky: Likewise.
1002 * testsuite/gas/elf/section2.e-m32r: Likewise.
1003 * testsuite/gas/elf/section2.e-mips: Likewise.
1004 * testsuite/gas/elf/section2.e-msp430: Likewise.
1005 * testsuite/gas/elf/section2.e-riscv: Likewise.
1006 * testsuite/gas/elf/section2.e-rl78: Likewise.
1007 * testsuite/gas/elf/section2.e-rx: Likewise.
1008 * testsuite/gas/elf/section2.e-score: Likewise.
1009 * testsuite/gas/elf/section2.e-tic6x: Likewise.
1010 * testsuite/gas/elf/section2.e-unused: Likewise.
1011 * testsuite/gas/elf/section2.e-v850: Likewise.
1012 * testsuite/gas/elf/section2.e-xtensa: Likewise.
1013 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
1014 * testsuite/gas/ia64/alias.d: Likewise.
1015 * testsuite/gas/ia64/global.d: Likewise.
1016 * testsuite/gas/microblaze/relax_size.elf: Likewise.
1017 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
1018 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
1019 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
1020 * testsuite/gas/mmix/bspec-1.d: Likewise.
1021 * testsuite/gas/mmix/byte-1.d: Likewise.
1022 * testsuite/gas/mmix/comment-1.d: Likewise.
1023 * testsuite/gas/mmix/loc-1.d: Likewise.
1024 * testsuite/gas/mmix/loc-2.d: Likewise.
1025 * testsuite/gas/mmix/loc-3.d: Likewise.
1026 * testsuite/gas/mmix/loc-4.d: Likewise.
1027 * testsuite/gas/mmix/loc-5.d: Likewise.
1028 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1029
1030 2021-04-20 Clément Chigot <clement.chigot@atos.net>
1031
1032 PR binutils/21700
1033 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
1034 (ppc_fix_adjustable): Manage fx_subsy part.
1035 (tc_gen_reloc): Create second relocation when both
1036 fx_addsy and fx_subsy are provided.
1037 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
1038 (MAX_RELOC_EXPANSION): Likewise.
1039 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
1040 (UNDEFINED_DIFFERENCE_OK): Likewise
1041 * testsuite/gas/all/gas.exp: Skip difference between two
1042 undefined symbols test.
1043
1044 2021-04-19 Nick Clifton <nickc@redhat.com>
1045
1046 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
1047 targets which should skip the undefined symbols test.
1048
1049 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1050
1051 * NEWS: Update news.
1052 * testsuite/gas/aarch64/rme.d: Update test.
1053 * testsuite/gas/aarch64/rme.s: Update test.
1054
1055 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1056
1057 * testsuite/gas/aarch64/rme.d: Update test.
1058 * testsuite/gas/aarch64/rme.s: Update test.
1059
1060 2021-04-19 Jan Beulich <jbeulich@suse.com>
1061
1062 * as.h (sprint_value): Delete.
1063 * messages.c (sprint_value): Likewise.
1064 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
1065 place of sprint_value.
1066 * config/tc-s390.c (s390_insert_operand): Likewise.
1067 * doc/internals.texi (sprint_value): Delete section.
1068 * write.c (fixup_segment): Likewise.
1069 (relax_segment): Likewise.
1070
1071 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1072
1073 * testsuite/gas/aarch64/rme-invalid.d: New test.
1074 * testsuite/gas/aarch64/rme-invalid.l: New test.
1075 * testsuite/gas/aarch64/rme-invalid.s: New test.
1076 * testsuite/gas/aarch64/rme.d: New test.
1077 * testsuite/gas/aarch64/rme.s: New test.
1078
1079 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
1080
1081 PR 27436
1082 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
1083 * testsuite/gas/riscv/shamt-32.d: New testcase.
1084 * testsuite/gas/riscv/shamt-32.l: Likewise.
1085 * testsuite/gas/riscv/shamt-32.s: Likewise.
1086 * testsuite/gas/riscv/shamt-64.d: Likewise.
1087 * testsuite/gas/riscv/shamt-64.l: Likewise.
1088 * testsuite/gas/riscv/shamt-64.s: Likewise.
1089
1090 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
1091
1092 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
1093 c.mv a4,a4.
1094 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
1095
1096 2021-04-14 Alan Modra <amodra@gmail.com>
1097
1098 PR 27723
1099 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
1100 (select_cie_for_fde): ..here. Simplify.
1101
1102 2021-04-14 Alan Modra <amodra@gmail.com>
1103
1104 PR 27723
1105 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
1106 DW_CFA_GNU_window_save and DW_CFA_restore_state.
1107
1108 2021-04-13 Alan Modra <amodra@gmail.com>
1109
1110 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
1111 write to $srcdir. Use gas_host_run and read output file rather
1112 than gas_start/gas_finish.
1113
1114 2021-04-12 Alan Modra <amodra@gmail.com>
1115
1116 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
1117 (md_assemble): Likewise. Handle bignum operands.
1118 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
1119 check.
1120 * expr.c: Delete unnecessary forward declarations.
1121 (generic_bignum_to_int32): Return uint32_t.
1122 (generic_bignum_to_int64): Return uint64_t. Compile always.
1123 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
1124 clear X_extrabit for unary '!'.
1125 * expr.h (generic_bignum_to_int32): Declare.
1126 (generic_bignum_to_int64): Declare.
1127 * testsuite/gas/ppc/prefix-pcrel.s,
1128 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
1129
1130 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
1131
1132 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
1133 march-fail-porder-x-std.d.
1134 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
1135 march-fail-porder-z-std.d.
1136 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
1137 march-fail-porder-x-z.d.
1138 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
1139 march-fail-porder.l.
1140 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
1141 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
1142 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
1143 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
1144 march-fail-single-char-h.d.
1145 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
1146 march-fail-single-char-s.d.
1147 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
1148 march-fail-single-char-x.d.
1149 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
1150 march-fail-single-char-z.d.
1151 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
1152 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
1153 march-fail-single-prefix.l.
1154 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
1155 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
1156 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
1157
1158 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
1159
1160 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
1161 diagnostic messages for LD/ST Exclusive instructions.
1162 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
1163 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
1164 clean-up.
1165
1166 2021-04-09 Alan Modra <amodra@gmail.com>
1167
1168 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
1169 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
1170 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
1171
1172 2021-04-08 Alan Modra <amodra@gmail.com>
1173
1174 * testsuite/gas/ppc/pr27676.d,
1175 * testsuite/gas/ppc/pr27676.s: New test.
1176 * testsuite/gas/ppc/ppc.exp: Run it.
1177 * testsuite/gas/ppc/dcbt.d: Update.
1178 * testsuite/gas/ppc/power4_32.d: Update.
1179
1180 2021-04-07 Alan Modra <amodra@gmail.com>
1181
1182 PR 27217
1183 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
1184
1185 2021-04-06 Nick Clifton <nickc@redhat.com>
1186
1187 PR 27217
1188 * config/tc-aarch64.c (my_get_expression): Rename to
1189 aarch64_get_expression. Add a fifth argument to enable deferring
1190 of expression resolution.
1191 (parse_typed_reg): Update calls to my_get_expression.
1192 (parse_vector_reg_list): Likewise.
1193 (parse_immediate_expression): Likewise.
1194 (parse_big_immediate): Likewise.
1195 (parse_shift): Likewise.
1196 (parse_shifter_operand_imm): Likewise.
1197 (parse_operands): Likewise.
1198 (parse_shifter_operand_reloc): Update calls to my_get_expression
1199 and call aarch64_force_reloc to determine the value of the new
1200 fifth argument.
1201 (parse_address_main): Likewise.
1202 (parse_half): Likewise.
1203 (parse_adrp): Likewise.
1204 (aarch64_force_reloc): New function. Contains code extracted from...
1205 (aarch64_force_relocation): ... here.
1206 * testsuite/gas/aarch64/pr27217.s: New test case.
1207 * testsuite/gas/aarch64/pr27217.d: New test driver.
1208
1209 2021-04-06 Jan Beulich <jbeulich@suse.com>
1210
1211 * write.c (fixup_segment): Move add_symbol_segment declaration
1212 into main loop.
1213
1214 2021-04-05 Alan Modra <amodra@gmail.com>
1215
1216 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
1217 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
1218 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
1219 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
1220 strstr, or vsnprintf declarations.
1221 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
1222 * as.h: Don't include alloca-conf.h, include config.h instead.
1223 Include string.h, stdlib.h, errno.h unconditionally. Remove
1224 various fallback declarations.
1225 * asintl.h: Don't test HAVE_LOCALE_H.
1226 * as.c: Don't test HAVE_SETLOCALE.
1227 * dwarf2dbg.c: Include limits.h unconditionally.
1228 * expr.c: Likewise.
1229 * sb.c: Likewise.
1230 * symbols.c: Likewise.
1231 * config/tc-cr16.c: Likewise.
1232 * config/tc-d30v.c: Likewise.
1233 * config/tc-i386.c: Likewise.
1234 * config/tc-ia64.c: Likewise.
1235 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
1236 * config.in: Regenerate.
1237 * configure: Regenerate.
1238 * Makefile.in: Regenerate.
1239 * doc/Makefile.in: Regenerate.
1240
1241 2021-04-01 Martin Liska <mliska@suse.cz>
1242
1243 * config/obj-coff.c (strneq): Remove strneq and use startswith.
1244 (weak_is_altname): Likewise.
1245 (obj_coff_section): Likewise.
1246 * config/tc-cr16.c (process_label_constant): Likewise.
1247 * config/tc-crx.c (strneq): Likewise.
1248
1249 2021-04-01 Martin Liska <mliska@suse.cz>
1250
1251 * as.c (select_emulation_mode): Use startswith.
1252 * config/m68k-parse.y: Likewise.
1253 * config/obj-aout.c (obj_aout_type): Likewise.
1254 * config/obj-elf.c (elf_common_parse): Likewise.
1255 (obj_elf_section_type): Likewise.
1256 (obj_elf_section_word): Likewise.
1257 (obj_elf_section): Likewise.
1258 (obj_elf_symver): Likewise.
1259 (adjust_stab_sections): Likewise.
1260 * config/obj-evax.c (evax_shorten_name): Likewise.
1261 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
1262 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
1263 (aarch64_parse_features): Likewise.
1264 (create_register_alias): Likewise.
1265 (aarch64_data_in_code): Likewise.
1266 (md_parse_option): Likewise.
1267 * config/tc-alpha.c (s_alpha_section_word): Likewise.
1268 (s_alpha_pdesc): Likewise.
1269 * config/tc-arc.c (tokenize_extregister): Likewise.
1270 * config/tc-arm.c (create_register_alias): Likewise.
1271 (create_neon_reg_alias): Likewise.
1272 (parse_ifimm_zero): Likewise.
1273 (parse_qfloat_immediate): Likewise.
1274 (arm_elf_section_type): Likewise.
1275 (arm_parse_extension): Likewise.
1276 (aeabi_set_public_attributes): Likewise.
1277 (s_arm_arch_extension): Likewise.
1278 (arm_data_in_code): Likewise.
1279 (start_unwind_section): Likewise.
1280 * config/tc-avr.c (avr_ldi_expression): Likewise.
1281 * config/tc-csky.c (is_freglist_legal): Likewise.
1282 (csky_s_section): Likewise.
1283 * config/tc-d30v.c (do_assemble): Likewise.
1284 * config/tc-dlx.c (parse_operand): Likewise.
1285 * config/tc-epiphany.c (md_assemble): Likewise.
1286 * config/tc-h8300.c (h8300_elf_section): Likewise.
1287 (get_operand): Likewise.
1288 * config/tc-hppa.c (pa_ip): Likewise.
1289 (pa_level): Likewise.
1290 (pa_space): Likewise.
1291 * config/tc-i386.c (i386_mach): Likewise.
1292 (md_assemble): Likewise.
1293 (check_VecOperations): Likewise.
1294 (i386_target_format): Likewise.
1295 (i386_elf_section_type): Likewise.
1296 * config/tc-ia64.c (start_unwind_section): Likewise.
1297 (md_parse_option): Likewise.
1298 (is_taken_branch): Likewise.
1299 (idesc->name,): Likewise.
1300 (note_register_values): Likewise.
1301 (do_alias): Likewise.
1302 * config/tc-m32c.c (insn_to_subtype): Likewise.
1303 * config/tc-m68hc11.c (get_operand): Likewise.
1304 (md_assemble): Likewise.
1305 * config/tc-m68k.c (m68k_ip): Likewise.
1306 (m68k_elf_suffix): Likewise.
1307 * config/tc-mcore.c (mcore_s_section): Likewise.
1308 * config/tc-metag.c (parse_get_set): Likewise.
1309 (md_parse_option): Likewise.
1310 * config/tc-microblaze.c (parse_imm): Likewise.
1311 (check_got): Likewise.
1312 (md_apply_fix): Likewise.
1313 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
1314 (md_begin): Likewise.
1315 (s_is_linkonce): Likewise.
1316 (check_regno): Likewise.
1317 (match_float_constant): Likewise.
1318 (classify_vr4120_insn): Likewise.
1319 (match_insn): Likewise.
1320 (mips_after_parse_args): Likewise.
1321 (s_change_sec): Likewise.
1322 (s_option): Likewise.
1323 (parse_code_option): Likewise.
1324 (md_section_align): Likewise.
1325 (nopic_need_relax): Likewise.
1326 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
1327 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
1328 (mn10300_end_of_match): Likewise.
1329 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
1330 * config/tc-nds32.c (nds32_parse_option): Likewise.
1331 * config/tc-nds32.h (md_do_align): Likewise.
1332 * config/tc-nios2.c (strprefix): Likewise.
1333 (nios2_special_relocation_p): Likewise.
1334 (nios2_parse_base_register): Likewise.
1335 (nios2_cons): Likewise.
1336 * config/tc-ns32k.c (addr_mode): Likewise.
1337 * config/tc-pdp11.c (set_option): Likewise.
1338 (parse_reg): Likewise.
1339 (parse_ac5): Likewise.
1340 (parse_op_no_deferred): Likewise.
1341 (set_cpu_model): Likewise.
1342 (set_machine_model): Likewise.
1343 * config/tc-pj.c (md_operand): Likewise.
1344 * config/tc-ppc.c (ppc_set_cpu): Likewise.
1345 (ppc_arch): Likewise.
1346 (ppc_section_type): Likewise.
1347 * config/tc-s12z.c (tb_reg_rel): Likewise.
1348 (tb_opr_rel): Likewise.
1349 * config/tc-s390.c (s390_parse_cpu): Likewise.
1350 (md_parse_option): Likewise.
1351 * config/tc-score.c (s3_nopic_need_relax): Likewise.
1352 (s3_pic_need_relax): Likewise.
1353 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
1354 (s7_pic_need_relax): Likewise.
1355 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1356 * config/tc-sparc.c (md_parse_option): Likewise.
1357 (sparc_ip): Likewise.
1358 (s_reserve): Likewise.
1359 (s_common): Likewise.
1360 (s_seg): Likewise.
1361 (sparc_cons): Likewise.
1362 * config/tc-tic54x.c (stag_add_field): Likewise.
1363 (tic54x_endstruct): Likewise.
1364 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1365 * config/tc-v850.c (v850_comm): Likewise.
1366 (md_begin): Likewise.
1367 (md_assemble): Likewise.
1368 * config/tc-vax.c (vax_cons): Likewise.
1369 * config/tc-wasm32.c (wasm32_leb128): Likewise.
1370 * config/tc-xstormy16.c (md_operand): Likewise.
1371 * config/tc-xtensa.c (get_directive): Likewise.
1372 (xg_instruction_matches_option_term): Likewise.
1373 (is_unaligned_label): Likewise.
1374 (cache_literal_section): Likewise.
1375 * config/xtensa-relax.c (parse_precond): Likewise.
1376 (parse_option_cond): Likewise.
1377 (transition_applies): Likewise.
1378 (wide_branch_opcode): Likewise.
1379 * dw2gencfi.c: Likewise.
1380 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
1381 * ehopt.c (get_cie_info): Likewise.
1382 * input-file.c (input_file_open): Likewise.
1383 * listing.c (listing_newline): Likewise.
1384 (debugging_pseudo): Likewise.
1385 * read.c (read_a_source_file): Likewise.
1386 * write.c (adjust_reloc_syms): Likewise.
1387 (compress_debug): Likewise.
1388 (maybe_generate_build_notes): Likewise.
1389
1390 2021-03-31 Alan Modra <amodra@gmail.com>
1391
1392 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
1393 * config/bfin-lex-wrapper.c: Likewise.
1394 * itbl-lex.l: Don't include as.h.
1395 * config/bfin-lex.l: Likewise.
1396
1397 2021-03-31 Alan Modra <amodra@gmail.com>
1398
1399 * as.h (POISON_BFD_BOOLEAN): Define.
1400 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
1401 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
1402 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
1403 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
1404 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
1405 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
1406 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
1407 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
1408 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
1409 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
1410 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
1411 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
1412 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
1413 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
1414 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
1415 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
1416 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
1417 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
1418 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
1419 * config/tc-metag.c, * config/tc-metag.h,
1420 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
1421 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
1422 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
1423 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
1424 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
1425 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
1426 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
1427 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
1428 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
1429 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
1430 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
1431 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
1432 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
1433 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
1434 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
1435 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
1436 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
1437 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
1438 * config/tc-z8k.c, * config/xtensa-istack.h,
1439 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
1440 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
1441 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
1442 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
1443 with bool, FALSE with false, and TRUE with true.
1444
1445 2021-03-31 Alan Modra <amodra@gmail.com>
1446
1447 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
1448 * config/tc-crx.c: Likewise.
1449 * config/tc-nds32.h: Likewise.
1450
1451 2021-03-30 Jan Beulich <jbeulich@suse.com>
1452
1453 * config/tc-i386.c (build_modrm_byte): Change return type.
1454 Change type of "default_seg". Use NULL. Adjust setting of
1455 "default_seg".
1456 (reg_ds, reg_es, reg_ss): New.
1457 (struct _i386_insn): Change type of seg[].
1458 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
1459 (swap_operands): Change type of "temp_seg".
1460 (check_string): Adjust %es check.
1461 (process_operands): Change type of "default_seg". Use NULL.
1462 Adjust segment override processing..
1463 (i386_att_operand): Adjust segment override handling.
1464 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1465
1466 2021-03-30 Jan Beulich <jbeulich@suse.com>
1467
1468 * config/tc-i386.c (reg_eax): New.
1469 (md_begin): Initialize reg_eax.
1470 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
1471 reg_eax.
1472 (i386_intel_simplify): Likewise.
1473
1474 2021-03-30 Jan Beulich <jbeulich@suse.com>
1475
1476 * config/tc-i386.c (reg_st0): New.
1477 (md_begin): Convert to switch(). Initialize reg_st0. Don't
1478 insert other st(N).
1479 (parse_real_register): Adjust st(N) processing.
1480
1481 2021-03-30 Jan Beulich <jbeulich@suse.com>
1482
1483 * config/tc-i386.c (rc_op): Delete.
1484 (struct Rounding_Operation): Move ...
1485 (struct _i386_insn): ... here. Change field "rounding".
1486 (build_evex_prefix): Adjust rounding processing.
1487 (swap_2_operands): Likewise.
1488 (check_VecOperands): Likewise.
1489 (RC_SAE_immediate): Likewise.
1490 (optimize_encoding): Adjust check for rounding.
1491 (build_modrm_byte): Likewise.
1492 (output_imm): Likewise.
1493 (md_assemble): Initialize rounding type.
1494
1495 2021-03-30 Jan Beulich <jbeulich@suse.com>
1496
1497 * config/tc-i386.c (broadcast_op): Delete.
1498 (struct Broadcast_Operation): Move ...
1499 (struct _i386_insn): ... here. Change field "broadcast".
1500 (match_mem_size): Adjust check for broadcast.
1501 (optimize_encoding): Likewise.
1502 (process_suffix): Likewise.
1503 (build_evex_prefix): Adjust broadcast processing.
1504 (swap_2_operands): Likewise.
1505 (check_VecOperations): Likewise.
1506 (match_template): Likewise.
1507 (check_VecOperands): Likewise.
1508
1509 2021-03-30 Jan Beulich <jbeulich@suse.com>
1510
1511 * config/tc-i386.c (reg_k0): New.
1512 (mask_op): Delete.
1513 (struct Mask_Operation): Move ...
1514 (struct _i386_insn): ... here. Change field "mask".
1515 (md_begin): Initialize reg_k0.
1516 (build_evex_prefix): Adjust mask processing.
1517 (swap_2_operands): Likewise.
1518 (check_VecOperands): Likewise.
1519 (check_VecOperations): Likewise.
1520 (optimize_encoding): Adjust checks for masking.
1521 (output_insn): Likewise.
1522
1523 2021-03-30 Jan Beulich <jbeulich@suse.com>
1524
1525 * config/tc-i386.c (swap_2_operands): Switch parameters to
1526 unsigned.
1527 (struct RC_Operation): Switch operand field to unsigned.
1528 (struct Mask_Operation): Likewise.
1529 (struct Broadcast_Operation): Likewise.
1530 (build_evex_prefix): Drop cast.
1531 (check_VecOperands): Likewise.
1532 (build_modrm_byte): Likewise.
1533 (output_imm): Likewise.
1534 (check_VecOperations): Add casts to unsigned.
1535
1536 2021-03-29 Jan Beulich <jbeulich@suse.com>
1537
1538 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
1539 * testsuite/gas/i386/x86-64-avx-swap-2.d.
1540 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1541
1542 2021-03-29 Jan Beulich <jbeulich@suse.com>
1543
1544 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
1545 checks by opcodespace ones.
1546 (insert_lfence_before): Likewise.
1547 (maybe_fused_with_jcc_p): Likewise.
1548 (add_branch_padding_frag_p): Likewise.
1549 (output_disp): Likewise.
1550 (load_insn_p): Re-arrange checks to key applicable ones off of
1551 an opcodespace check.
1552 (md_assemble): Adjust opcode checks.
1553 (check_byte_reg): Likewise.
1554 (process_operands): Likewise.
1555 (i386_index_check): Likewise.
1556 (process_suffix): Likewise. New local variable is_movx. Adjust
1557 movsx/movzx and crc32 handling.
1558 (output_insn): Adjust opcode checks. Drop no longer reachable
1559 case labels. Output legacy encoding prefixes in addition to the
1560 base_opcode byte(s). Rework counting of prefixes for extended
1561 opcode maps.
1562 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
1563 opcode checks.
1564
1565 2021-03-29 Alan Modra <amodra@gmail.com>
1566
1567 * atof-generic.c (FALSE, TRUE): Don't define.
1568 * config/obj-elf.h (FALSE, TRUE): Don't define.
1569 * config/obj-som.h (FALSE, TRUE): Don't define.
1570 * config/tc-hppa.h (FALSE, TRUE): Don't define.
1571 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
1572 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
1573 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
1574 * config/tc-mt.h (obj_fix_adjustable): Delete.
1575 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
1576 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
1577 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
1578 (tokenize_extregister): Likewise.
1579 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
1580 (parse_operands_op, parse_operands, md_assemble): Likewise.
1581 * config/tc-d10v.c (build_insn): Likewise.
1582 * config/tc-score.c (s3_gen_insn_frag): Likewise.
1583 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
1584 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
1585 * config/tc-z80.c (emit_byte): Likewise.
1586
1587 2021-03-29 Alan Modra <amodra@gmail.com>
1588
1589 * config/tc-arm.c (struct arm_long_option_table <func>): Return
1590 bfd_boolean.
1591 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
1592 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
1593 with bfd_boolean.
1594 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
1595 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
1596 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
1597 logical expressions.
1598 (struct metag_long_option <func>): Return bfd_boolean.
1599 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
1600 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
1601 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
1602 (no_operands, lex_force_match, lex_reg_list): Likewise.
1603 (size_from_suffix): Return int.
1604 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
1605 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
1606
1607 2021-03-26 Jan Beulich <jbeulich@suse.com>
1608
1609 * testsuite/gas/i386/x86-64-nosse2.s,
1610 testsuite/gas/i386/x86-64-nosse2.l: New.
1611 * testsuite/gas/i386/i386.exp: Run new test.
1612
1613 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
1614
1615 * testsuite/gas/nios2/brn.d: New.
1616 * testsuite/gas/nios2/brn.d: New.
1617
1618 2021-03-25 Jan Beulich <jbeulich@suse.com>
1619
1620 * config/tc-i386.c (match_template): Use t instead of i.tm.
1621
1622 2021-03-25 Jan Beulich <jbeulich@suse.com>
1623
1624 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
1625 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
1626 colliding registers in the upper half of the space.
1627 * testsuite/gas/i386/avx512f-nondef.d,
1628 testsuite/gas/i386/vgather-check.d,
1629 testsuite/gas/i386/x86-64-vgather-check.d,
1630 testsuite/gas/i386/x86-64-vgather-check-error.l,
1631 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
1632 expecations.
1633 * testsuite/gas/i386/vgather-check-none.d,
1634 testsuite/gas/i386/vgather-check-warn.d,
1635 testsuite/gas/i386/x86-64-vgather-check-none.d,
1636 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
1637 tests for expected dump output.
1638
1639 2021-03-25 Jan Beulich <jbeulich@suse.com>
1640
1641 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
1642 without mask register.
1643 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
1644
1645 2021-03-25 Jan Beulich <jbeulich@suse.com>
1646
1647 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
1648 swapping operands for.
1649 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
1650 syntax tests.
1651 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
1652 well as Intel syntax tests.
1653 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
1654 expectations.
1655 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
1656 Likewise. Drop passing --def-sym to as.
1657
1658 2021-03-25 Jan Beulich <jbeulich@suse.com>
1659
1660 PR/gas 27419
1661 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
1662 conversion to x32 mode.
1663 * testsuite/gas/i386/ilp32/enqcmd.s,
1664 testsuite/gas/i386/ilp32/enqcmd.d,
1665 testsuite/gas/i386/ilp32/movdir.s,
1666 testsuite/gas/i386/ilp32/movdir.d: New.
1667 * testsuite/gas/i386/x86-64-enqcmd.s,
1668 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
1669 cases.
1670 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
1671 (%eip) cases.
1672 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
1673 * testsuite/gas/i386/x86-64-enqcmd.d,
1674 testsuite/gas/i386/x86-64-enqcmd-intel.d,
1675 testsuite/gas/i386/x86-64-enqcmd-inval.l,
1676 testsuite/gas/i386/x86-64-movdir.d,
1677 testsuite/gas/i386/x86-64-movdir-intel.d,
1678 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
1679
1680 2021-03-25 Alan Modra <amodra@gmail.com>
1681
1682 PR 27647
1683 * testsuite/gas/ppc/a2.d: Update expected output.
1684 * testsuite/gas/ppc/power8.d: Likewise.
1685
1686 2021-03-24 Jan Beulich <jbeulich@suse.com>
1687
1688 * config/tc-i386.c (struct _i386_insn): New field
1689 opcode_length.
1690 (md_begin): Drop assertion.
1691 (install_template): New.
1692 (build_vex_prefix): Call install_template.
1693 (match_template): Likewise.
1694 (process_operands): Use new opcode_length field.
1695 (output_jump): Likewise.
1696 (output_insn): Likewise. Adjust psedo prefix check.
1697
1698 2021-03-24 Jan Beulich <jbeulich@suse.com>
1699
1700 * config/tc-i386.c (md_begin): Add assertion.
1701 (build_vex_prefix): Drop implied prefix calculation.
1702 (build_evex_prefix): Likewise.
1703 (optimize_encoding): Adjust opcode checks.
1704 (load_insn_p): Also check opcodeprefix.
1705 (match_template): Also check opcodespace.
1706 (process_suffix): Likewise.
1707 (process_operands): Likewise.
1708 (output_insn): Likewise. Also check isprefix when discaring
1709 standalone LOCK.
1710 * config/tc-i386-intel.c (i386_intel_operand): Also check
1711 opcodespace.
1712
1713 2021-03-24 Jan Beulich <jbeulich@suse.com>
1714
1715 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
1716 base_opcode and extension_opcode.
1717
1718 2021-03-23 Jan Beulich <jbeulich@suse.com>
1719
1720 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
1721
1722 2021-03-23 Jan Beulich <jbeulich@suse.com>
1723
1724 * config/tc-i386.c (output_i386_opcode): Invoke
1725 process_i386_cpu_flag() slightly later.
1726 (process_i386_opcodes): Likewise.
1727
1728 2021-03-23 Jan Beulich <jbeulich@suse.com>
1729
1730 * config/tc-i386.c (pte): Print prefix and encoding space.
1731 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
1732 (build_evex_prefix): Likewise.
1733 (load_insn_p): Likewise.
1734
1735 2021-03-23 Jan Beulich <jbeulich@suse.com>
1736
1737 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
1738 if()-s.
1739 (match_template, output_insn): Use PREFIX_NONE.
1740
1741 2021-03-23 Jan Beulich <jbeulich@suse.com>
1742
1743 * config/tc-i386.c (i386_index_check): New local variable t.
1744 Correct MPX insn check.
1745 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
1746 MPX insn check.
1747 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
1748 index scaling by other than 1.
1749 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1750
1751 2021-03-22 Martin Liska <mliska@suse.cz>
1752
1753 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
1754 (x86_64_section_word): Likewise.
1755 * config/tc-sparc.c (md_parse_option): Likewise.
1756
1757 2021-03-19 Alan Modra <amodra@gmail.com>
1758
1759 * app.c (do_scrub_chars): Don't lose spaces before a slash.
1760
1761 2021-03-18 Christian Groessler <chris@groessler.org>
1762
1763 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
1764 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
1765
1766 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1767
1768 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1769 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1770 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1771 * testsuite/gas/riscv/b-ext-64.d: Likewise.
1772 * testsuite/gas/riscv/b-ext.s: Likewise.
1773 * testsuite/gas/riscv/b-ext.d: Likewise.
1774
1775 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1776
1777 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1778 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1779 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1780 * testsuite/gas/aarch64/sysreg-7.d: New test.
1781 * testsuite/gas/aarch64/sysreg-7.s: New test.
1782
1783 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1784
1785 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1786 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1787 (ppc_xcoff_tbss_section): New variables.
1788 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1789 (ppc_data_csects): Removed.
1790 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1791 ppc_xcoff_parse_cons): New functions.
1792 (md_being): Initialize XCOFF sections.
1793 (ppc_xcoff_suffix): Add support for TLS relocations
1794 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1795 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1796 to .bss section. Handle new XCOFF section variables.
1797 (ppc_comm): Likewise.
1798 (ppc_toc): Likewise.
1799 (ppc_symbol_new_hook): Likewise.
1800 (ppc_frob_symbol): Likewise.
1801 (ppc_fix_adjustable): Add tbss support.
1802 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1803 (ppc_xcoff_parse_cons): Add prototype.
1804 (struct ppc_xcoff_section): New structure.
1805
1806 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1807
1808 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1809 (MAP, MAP32, MAP64): New macros for XCOFF.
1810 (ppc_xcoff_fixup_addis): New function.
1811 (ppc_is_toc_sym): Handle XMC_TE.
1812 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1813 BFD_RELOC_PPC_TOC16_LO.
1814 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1815 (ppc_change_csect): Handle XMC_TE.
1816 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1817 storage class.
1818 (ppc_symbol_new_hook): Handle XMC_TE.
1819 (ppc_frob_symbol): Likewise.
1820 (ppc_fix_adjustable): Likewise.
1821 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1822 BFD_RELOC_PPC_TOC16_LO.
1823
1824 2021-03-10 Jan Beulich <jbeulich@suse.com>
1825
1826 * testsuite/gas/i386/avx512f-intel.d,
1827 testsuite/gas/i386/avx512f_vl-intel.d,
1828 testsuite/gas/i386/avx512pf-intel.d,
1829 testsuite/gas/i386/x86-64-avx512f-intel.d,
1830 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1831 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1832
1833 2021-03-10 Jan Beulich <jbeulich@suse.com>
1834
1835 * testsuite/gas/i386/prefetch.d,
1836 testsuite/gas/i386/prefetch-intel.d,
1837 testsuite/gas/i386/x86-64-prefetch.d,
1838 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1839 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1840 * testsuite/gas/i386/i386.exp: Run new test.
1841
1842 2021-03-09 Jan Beulich <jbeulich@suse.com>
1843
1844 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1845 (md_assemble): Replace use of repprefixok, islockable, and
1846 notrackprefixok.
1847 (i386_index_check): Replace use of repprefixok.
1848
1849 2021-03-09 Jan Beulich <jbeulich@suse.com>
1850
1851 * testsuite/gas/i386/noreg64.s: Add sysexit.
1852 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1853 sysexitl and sysexitq.
1854 * testsuite/gas/i386/noreg-intel64.l,
1855 testsuite/gas/i386/noreg64-data16.d,
1856 testsuite/gas/i386/noreg64-data16.e,
1857 testsuite/gas/i386/noreg64-rex64.d,
1858 testsuite/gas/i386/noreg64.d,
1859 testsuite/gas/i386/noreg64.l,
1860 testsuite/gas/i386/x86-64-sysenter-amd.d,
1861 testsuite/gas/i386/x86-64-sysenter-amd.l,
1862 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1863
1864 2021-02-26 Nick Clifton <nickc@redhat.com>
1865
1866 PR 27411
1867 * config/tc-arm.c (do_t_add_sub): Correct error message.
1868 * testsuite/gas/arm/pr27411.s: New test.
1869 * testsuite/gas/arm/pr27411.d: New test driver.
1870 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1871
1872 2021-02-24 Alan Modra <amodra@gmail.com>
1873
1874 PR 23691
1875 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1876 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1877 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1878 and use alongside TARGET_CPU_CFILES.
1879 (EXTRA_DIST): Update location of generated .c files.
1880 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1881 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1882 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1883 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1884 dependencies.
1885 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1886 (itbl-parse.c, itbl-parse.h): Tidy.
1887 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1888 * config/bfin-lex.l: Include config/bfin-parse.h.
1889 * configure.ac (extra_objects): Move object files corresponding
1890 to .y and .l files now in config/ to config/.
1891 * Makefile.in: Regenerate.
1892 * configure: Regenerate.
1893 * po/POTFILES.in: Regenerate.
1894
1895 2021-02-19 Nick Clifton <nickc@redhat.com>
1896
1897 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1898 misleading indentation.
1899
1900 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1901
1902 PR 27158
1903 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1904 (md_apply_fix): Likewise.
1905 (md_convert_frag_branch): Likewise.
1906 (validate_riscv_insn): Likewise. Also arranged operands, including
1907 added C5 and C6 operands, and removed unused Ci and C< operands.
1908 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1909 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1910 * testsuite/gas/riscv/insn.s: Likewise.
1911
1912 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1913
1914 * config/tc-riscv.c: Included cpu-riscv.h.
1915 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1916 (struct riscv_csr_extra): Likewise.
1917 (struct riscv_ext_version): Likewise.
1918 (ext_version_table): Moved from opcodes/riscv-opc.c.
1919 (default_isa_spec): Updated type to riscv_spec_class.
1920 (default_priv_spec): Likewise.
1921 (riscv_set_default_isa_spec): Updated.
1922 (init_ext_version_hash): Likewise.
1923 (riscv_init_csr_hash): Likewise, also fixed indent.
1924
1925 2021-02-17 Alan Modra <amodra@gmail.com>
1926
1927 * testsuite/gas/elf/section28.d: xfail h8300.
1928
1929 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1930
1931 PR gas/27412
1932 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1933 when checking incorrect section attributes.
1934 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1935 * testsuite/gas/elf/section28.d: New file.
1936 * testsuite/gas/elf/section28.s: Likewise.
1937 * testsuite/gas/elf/section29.d: Likewise.
1938 * testsuite/gas/elf/section29.s: Likewise.
1939
1940 2021-02-16 Jan Beulich <jbeulich@suse.com>
1941
1942 * testsuite/gas/i386/sse-check.s,
1943 testsuite/gas/i386/sse2avx.s,
1944 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1945 * testsuite/gas/i386/sse-check-error.l,
1946 testsuite/gas/i386/sse-check-warn.e,
1947 testsuite/gas/i386/sse-check.d,
1948 testsuite/gas/i386/sse2avx.d,
1949 testsuite/gas/i386/x86-64-sse-check-error.l,
1950 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1951 * testsuite/gas/i386/property-cvtpi2pd.s,
1952 testsuite/gas/i386/property-cvtpi2pd.d,
1953 testsuite/gas/i386/property-cvtpi2ps.s,
1954 testsuite/gas/i386/property-cvtpi2ps.d: New.
1955 * testsuite/gas/i386/i386.exp: Run new tests.
1956
1957 2021-02-16 Jan Beulich <jbeulich@suse.com>
1958
1959 * config/tc-i386.c (md_assemble): Use template rather than
1960 actuals when updating i.xstate.
1961 * testsuite/gas/i386/property-4.d,
1962 testsuite/gas/i386/property-5.d,
1963 testsuite/gas/i386/property-12.d: Adjust expectations.
1964
1965 2021-02-16 Jan Beulich <jbeulich@suse.com>
1966
1967 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1968 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1969 * testsuite/gas/i386/property-ldmxcsr.s,
1970 testsuite/gas/i386/property-ldmxcsr.d,
1971 testsuite/gas/i386/property-vldmxcsr.s,
1972 testsuite/gas/i386/property-vldmxcsr.d,
1973 testsuite/gas/i386/property-vzeroall.s,
1974 testsuite/gas/i386/property-vzeroall.d: New.
1975 * testsuite/gas/i386/i386.exp: Run new tests.
1976
1977 2021-02-16 Jan Beulich <jbeulich@suse.com>
1978
1979 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1980 tests to bitness independent section.
1981 * testsuite/gas/i386/x86-64-property-2.d,
1982 testsuite/gas/i386/x86-64-property-3.d,
1983 testsuite/gas/i386/x86-64-property-4.d,
1984 testsuite/gas/i386/x86-64-property-5.d,
1985 testsuite/gas/i386/x86-64-property-6.d,
1986 testsuite/gas/i386/x86-64-property-10.d,
1987 testsuite/gas/i386/x86-64-property-11.d,
1988 testsuite/gas/i386/x86-64-property-12.d,
1989 testsuite/gas/i386/x86-64-property-13.d: Delete.
1990
1991 2021-02-16 Jan Beulich <jbeulich@suse.com>
1992
1993 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1994 movdir.s.
1995 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1996
1997 2021-02-16 Alan Modra <amodra@gmail.com>
1998
1999 PR 27426
2000 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
2001 in another place.
2002
2003 2021-02-16 Alan Modra <amodra@gmail.com>
2004
2005 * read.c (demand_copy_C_string): Really check for embedded zeros.
2006
2007 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
2008
2009 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
2010 * doc/c-s390.texi: Document arch14 march option.
2011 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
2012 * testsuite/gas/s390/zarch-arch14.d: New test.
2013 * testsuite/gas/s390/zarch-arch14.s: New test.
2014
2015 2021-02-12 Nick Clifton <nickc@redhat.com>
2016
2017 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
2018 following.
2019 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
2020
2021 2021-02-12 Alan Modra <amodra@gmail.com>
2022
2023 * testsuite/gas/all/pr27381.err: Don't match source file name.
2024 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
2025 * testsuite/gas/all/pr27384.err: Don't match source file name.
2026 Adjust line number.
2027 * testsuite/gas/all/pr27384.s: Add ".text" directive.
2028 * testsuite/gas/elf/pr27355.err: Don't match source file name.
2029
2030 2021-02-11 Alan Modra <amodra@gmail.com>
2031
2032 * NEWS: Mention arm-symbianelf removal.
2033
2034 2021-02-10 Nick Clifton <nickc@redhat.com>
2035
2036 * listing.c (buffer_line): Remove debugging code accidentally
2037 included with the fix for PR 27384.
2038
2039 2021-02-09 Nick Clifton <nickc@redhat.com>
2040
2041 PR 27381
2042 * read.c (s_incbin): Check that the file to be included is a
2043 regular, non-directory file.
2044 * testsuite/gas/all/pr27381.s: New test source file.
2045 * testsuite/gas/all/pr27381.d: New test control file.
2046 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
2047 * testsuite/gas/all/gas.exp: Run the new test.
2048
2049 2021-02-09 Alan Modra <amodra@gmail.com>
2050
2051 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
2052 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
2053 support.
2054 * config/te-symbian.h: Delete.
2055 * configure.tgt: Remove arm-*-symbianelf*.
2056 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
2057 target selection.
2058 * testsuite/gas/arm/arch4t.d: Likewise.
2059 * testsuite/gas/arm/got_prel.d: Likewise.
2060 * testsuite/gas/arm/mapdir.d: Likewise.
2061 * testsuite/gas/arm/mapmisc.d: Likewise.
2062 * testsuite/gas/arm/mapsecs.d: Likewise.
2063 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
2064 * testsuite/gas/arm/thumb-eabi.d: Likewise.
2065 * testsuite/gas/arm/thumb.d: Likewise.
2066 * testsuite/gas/arm/thumbrel.d: Likewise.
2067 * Makefile.in: Regenerate.
2068 * po/POTFILES.in: Regenerate.
2069
2070 2021-02-09 Nick Clifton <nickc@redhat.com>
2071
2072 PR 27384
2073 * listing.c (listing_psize): Check the result of the width
2074 expression before assigning it to paper_width.
2075 * testsuite/gas/all/pr27384.s: New test source file.
2076 * testsuite/gas/all/pr27384.d: New test control file.
2077 * testsuite/gas/all/pr27384.err: Expected errors from new test.
2078 * testsuite/gas/all/gas.exp: Run the new test.
2079
2080 2021-02-09 Nick Clifton <nickc@redhat.com>
2081
2082 PR 27355
2083 * testsuite/gas/elf/pr27355.s: New test source file.
2084 * testsuite/gas/elf/pr27355.d: New test control file.
2085 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
2086 * testsuite/gas/elf/elf.exp: Run the new test.
2087
2088 2021-02-08 Mike Frysinger <vapier@gentoo.org>
2089
2090 * config/tc-tic54x (tic54x_mmregs): Rename to ...
2091 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
2092 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
2093 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
2094 cc2_codes, cc3_codes, status_bits, and misc_symbols.
2095
2096 2021-02-08 Nick Clifton <nickc@redhat.com>
2097
2098 PR 27355
2099 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
2100 if it has not already been created.
2101
2102 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
2103
2104 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
2105 INSN_CLASS_ZB*.
2106 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
2107 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
2108 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
2109
2110 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
2111
2112 * doc/c-s390.texi: Document vector instruction formats.
2113
2114 2021-02-01 Emery Hemingway <ehmry@posteo.net>
2115
2116 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
2117
2118 2021-02-01 Alan Modra <amodra@gmail.com>
2119
2120 PR 27283
2121 * config/tc-alpha.c (insert_operand): Delete dead code.
2122
2123 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
2124
2125 PR gas/27243
2126 * config/tc-nios2.c (md_begin): Don't disable relaxation with
2127 --gdwarf-N.
2128 * testsuite/gas/nios2/relax.d: New file.
2129 * testsuite/gas/nios2/relax.s: Likewise.
2130
2131 2021-01-26 Alan Modra <amodra@gmail.com>
2132
2133 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
2134 notarget all except hppa. Comment.
2135 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
2136 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
2137 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
2138 * testsuite/gas/all/sleb128-7.d: Likewise.
2139 * testsuite/gas/all/sleb128-9.d: Likewise.
2140 * testsuite/gas/elf/bignums.d: Likewise.
2141 * testsuite/gas/elf/group0c.d: Likewise.
2142 * testsuite/gas/elf/group1a.d: Likewise.
2143 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
2144 * testsuite/gas/elf/section15.d: Likewise.
2145 * testsuite/gas/elf/section4.d: Likewise.
2146 * testsuite/gas/elf/section7.d: Likewise.
2147 * testsuite/gas/macros/irp.d: Likewise.
2148 * testsuite/gas/macros/repeat.d: Likewise.
2149 * testsuite/gas/macros/rept.d: Likewise.
2150 * testsuite/gas/macros/test2.d: Likewise.
2151 * testsuite/gas/macros/vararg.d: Likewise.
2152 * testsuite/gas/all/string.d: Use xfail rather than skip.
2153 * testsuite/gas/elf/missing-build-notes.d: Likewise.
2154 * testsuite/gas/elf/section0.d: Likewise.
2155 * testsuite/gas/elf/section1.d: Likewise.
2156 * testsuite/gas/elf/section10.d: Likewise.
2157 * testsuite/gas/elf/section11.d: Likewise.
2158 * testsuite/gas/elf/section6.d: Likewise.
2159 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
2160 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
2161 * testsuite/gas/macros/test3.d: Don't notarget nds32.
2162
2163 2021-01-26 Alan Modra <amodra@gmail.com>
2164
2165 * testsuite/gas/all/byte.d,
2166 * testsuite/gas/all/byte.l,
2167 * testsuite/gas/all/byte.s: Delete.
2168 * testsuite/gas/all/gas.exp: Don't run byte test.
2169
2170 2021-01-26 Alan Modra <amodra@gmail.com>
2171
2172 PR 27282
2173 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
2174 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
2175
2176 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
2177
2178 PR gas/27228
2179 * testsuite/gas/elf/elf.exp: Run pr27228.
2180 * testsuite/gas/elf/pr27228.d: New file.
2181 * testsuite/gas/elf/pr27228.s: Likewise.
2182
2183 2021-01-24 Alan Modra <amodra@gmail.com>
2184
2185 PR 27228
2186 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
2187 is defined.
2188
2189 2021-01-21 Alan Modra <amodra@gmail.com>
2190
2191 PR 27221
2192 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
2193 line number info when gas is generating it.
2194 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
2195 * testsuite/gas/m68hc11/indexed12.d: Likewise.
2196 * testsuite/gas/elf/elf.exp: Don't run warn-2.
2197 * gas/testsuite/gas/elf/warn-2.s: Delete.
2198
2199 2021-01-21 Alan Modra <amodra@gmail.com>
2200
2201 PR 27218
2202 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
2203 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
2204 error for negative file numbers.
2205
2206 2021-01-20 Alan Modra <amodra@gmail.com>
2207
2208 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
2209 * testsuite/gas/ppc/test1elf32.d: Likewise.
2210 * testsuite/gas/ppc/test1elf64.d: Likewise.
2211
2212 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
2213
2214 PR gas/27195
2215 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
2216 needed.
2217 (dwarf2_directive_filename): Likewise.
2218 (dwarf2_directive_loc): Likewise.
2219 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
2220 * testsuite/gas/lns/lns-diag-1.l: Remove the
2221 "Error: file number less than one" errors.
2222
2223 2021-01-18 Alan Modra <amodra@gmail.com>
2224
2225 PR 27198
2226 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
2227 * testsuite/gas/i386/pr27198.d,
2228 * gas/testsuite/gas/i386/pr27198.err,
2229 * gas/testsuite/gas/i386/pr27198.s: New test.
2230 * gas/testsuite/gas/i386/i386.exp: Run it.
2231
2232 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2233
2234 * config/tc-riscv.c: Indent and GNU coding standards tidy,
2235 also aligned the code.
2236 * config/tc-riscv.h: Likewise.
2237
2238 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2239
2240 * config/tc-riscv.c: Error and warning messages tidy.
2241 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
2242 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2243 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
2244 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2245 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2246 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2247 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2248
2249 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2250
2251 * config/tc-riscv.c: Comments tidy and improvement. Also update
2252 comment "fallthru" to "Fall through" that end with a period and
2253 two spaces.
2254
2255 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2256
2257 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
2258 Delete warning that these are only available with ELF targets.
2259 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
2260 * read.c (potable): ... here.
2261
2262 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2263
2264 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
2265 * Makefile.in: Regenerated.
2266
2267 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2268
2269 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
2270 (parse_int): Mark char_bag const.
2271
2272 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
2273
2274 PR gas/27178
2275 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
2276 Don't generate GOT_symbol for PLT relocations.
2277 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
2278 * testsuite/gas/i386/no-got.d: New file.
2279 * testsuite/gas/i386/no-got.s: Likewise.
2280 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
2281 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
2282
2283 2021-01-13 Alan Modra <amodra@gmail.com>
2284
2285 * Makefile.in: Regenerate.
2286 * Makefile.in: Regenerate.
2287
2288 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2289
2290 PR binutils/26792
2291 * configure.ac: Use GNU_MAKE_JOBSERVER.
2292 * aclocal.m4: Regenerated.
2293 * configure: Likewise.
2294
2295 2021-01-12 Nick Clifton <nickc@redhat.com>
2296
2297 * po/fr.po: Updated French translation.
2298
2299 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2300
2301 PR ld/27173
2302 * configure: Regenerated.
2303
2304 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2305
2306 * NEWS: Remove CSRE.
2307 * config/tc-aarch64.c (parse_csr_operand): Delete.
2308 (parse_operands): Delete handling of
2309 AARCH64_OPND_CSRE_CSR.
2310 (aarch64_features): Remove csre.
2311 * doc/c-aarch64.texi: Remove CSRE.
2312 * testsuite/gas/aarch64/csre.d: Delete.
2313 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
2314 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
2315 * testsuite/gas/aarch64/csre_csr.s: Likewise.
2316 * testsuite/gas/aarch64/csre_csr.d: Likewise.
2317 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
2318 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
2319 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
2320
2321 2021-01-11 Nick Clifton <nickc@redhat.com>
2322
2323 * po/uk.po: Updated Ukranian translation.
2324
2325 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2326
2327 * configure: Regenerated.
2328
2329 2021-01-09 Nick Clifton <nickc@redhat.com>
2330
2331 * configure: Regenerate.
2332 * po/gas.pot: Regenerate.
2333
2334 2021-01-09 Nick Clifton <nickc@redhat.com>
2335
2336 * 2.36 release branch crated.
2337
2338 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
2339
2340 * testsuite/gas/ppc/rop-checks.d,
2341 * testsuite/gas/ppc/rop-checks.l,
2342 * testsuite/gas/ppc/rop-checks.s,
2343 * testsuite/gas/ppc/rop.d,
2344 * testsuite/gas/ppc/rop.s: New tests.
2345 * testsuite/gas/ppc/ppc.exp: Run them.
2346
2347 2021-01-09 Alan Modra <amodra@gmail.com>
2348
2349 * configure: Regenerate.
2350
2351 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2352
2353 * configure: Regenerate.
2354
2355 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2356
2357 PR 27109
2358 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
2359 section symbol.
2360 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
2361 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
2362 on the section symbol.
2363 (set_symtab): Don't generate unused section symbols.
2364 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
2365 on the section symbol.
2366 * config/obj-elf.c (elf_adjust_symtab): Call
2367 symbol_mark_used_in_reloc on the group signature symbol.
2368 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
2369 from expected output.
2370 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
2371 is_elf_unused_section_symbols.
2372 * testsuite/gas/elf/section2.e: Updated.
2373 * testsuite/gas/elf/section2.e-unused: New file.
2374 * testsuite/gas/elf/symver.d: Remove unused section symbols.
2375 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
2376 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
2377 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
2378 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
2379 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
2380 * testsuite/gas/i386/size-1.d: Likewise.
2381 * testsuite/gas/i386/size-3.d: Likewise.
2382 * testsuite/gas/i386/svr4.d: Likewise.
2383 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
2384 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
2385 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
2386 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
2387
2388 2021-01-07 Philipp Tomsich <prt@gnu.org>
2389
2390 * config/tc-riscv.c (riscv_multi_subset_supports): Added
2391 INSN_CLASS_ZIHINTPAUSE.
2392 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
2393 the pause hint instruction.
2394 * testsuite/gas/riscv/pause.s: Likewise.
2395
2396 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2397 Jim Wilson <jimw@sifive.com>
2398 Andrew Waterman <andrew@sifive.com>
2399 Maxim Blinov <maxim.blinov@embecosm.com>
2400 Kito Cheng <kito.cheng@sifive.com>
2401 Nelson Chu <nelson.chu@sifive.com>
2402
2403 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
2404 (riscv_get_default_ext_version): Do not check the default_isa_spec when
2405 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
2406 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
2407 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
2408 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
2409
2410 2021-01-06 Alan Modra <amodra@gmail.com>
2411
2412 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
2413
2414 2021-01-06 Alan Modra <amodra@gmail.com>
2415
2416 * testsuite/gas/macros/app1.d: xfail tic30.
2417 * testsuite/gas/macros/app2.d: Likewise.
2418 * testsuite/gas/macros/app3.d: Likewise.
2419 * testsuite/gas/macros/app4.d: Likewise.
2420
2421 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2422
2423 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
2424 * doc/c-riscv.texi: Likewise.
2425
2426 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2427
2428 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
2429 to littleriscv.
2430 * testsuite/gas/riscv/li64.d: Likewise.
2431 * testsuite/gas/riscv/lla32.d: Likewise.
2432 * testsuite/gas/riscv/lla64.d: Likewise.
2433 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
2434 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
2435 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
2436 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
2437 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
2438 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
2439 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
2440
2441 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2442
2443 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
2444 elf32-bigriscv.
2445 (install_insn): Always write instructions as little endian.
2446 (riscv_make_nops): Likewise.
2447 (md_convert_frag_branch): Likewise.
2448 (md_number_to_chars): Write data in target endianness.
2449 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
2450 (md_parse_option): Handle the endian options.
2451 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
2452 already defined.
2453 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
2454
2455 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2456
2457 PR ld/26256
2458 * config/obj-elf.c (obj_elf_change_section): Also filter out
2459 SHF_LINK_ORDER.
2460
2461 2021-01-04 Alan Modra <amodra@gmail.com>
2462
2463 PR 27102
2464 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
2465 message and register symbol error message.
2466
2467 2021-01-04 Alan Modra <amodra@gmail.com>
2468
2469 PR 27101
2470 * read.c (s_align): Use a large enough type for "align" to hold
2471 the result of get_absolute_expression.
2472
2473 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2474
2475 * config/tc-i386.c: Correct comment spelling.
2476 * config/tc-riscv.c: Likewise.
2477 * config/tc-s390.c: Correct comment grammar.
2478 * doc/c-i386.texi: Correct spelling.
2479 * doc/c-s390.texi: Correct grammar.
2480
2481 2021-01-01 Alan Modra <amodra@gmail.com>
2482
2483 Update year range in copyright notice of all files.
2484
2485 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
2486
2487 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
2488
2489 For older changes see ChangeLog-2020
2490 \f
2491 Copyright (C) 2021 Free Software Foundation, Inc.
2492
2493 Copying and distribution of this file, with or without modification,
2494 are permitted in any medium without royalty provided the copyright
2495 notice and this notice are preserved.
2496
2497 Local Variables:
2498 mode: change-log
2499 left-margin: 8
2500 fill-column: 74
2501 version-control: never
2502 End: