]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/ChangeLog
x86: move register check in immediate operand parsing
[thirdparty/binutils-gdb.git] / gas / ChangeLog
CommitLineData
9aac24b1
JB
12021-05-07 Jan Beulich <jbeulich@suse.com>
2
3 * config/tc-i386.c (i386_finalize_immediate): Move register
4 check ...
5 (i386_immediate): ... here.
6
87ed972d
JB
72021-05-07 Jan Beulich <jbeulich@suse.com>
8
9 * config/tc-i386.c (optimize_imm): Drop redundant masking.
10 Re-arrange operand type accumulation.
11
0b3e14c9
SH
122021-05-06 Stafford Horne <shorne@gmail.com>
13
14 PR 21464
15 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
16 * testsuite/gas/or1k/reloc-1.d: Add test result for new
17 relocation.
18
7b06fcf5
JW
192021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
20
21 PR 27764
22 * testsuite/gas/riscv/a-ext-64.d: New testcase.
23 * testsuite/gas/riscv/a-ext-64.s: Likewise.
24 * testsuite/gas/riscv/a-ext.d: Likewise.
25 * testsuite/gas/riscv/a-ext.s: Likewise.
26
5e0a033b
JB
272021-05-03 Jan Beulich <jbeulich@suse.com>
28
29 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
30 #if.
31 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
32 Add two further .long and an .equ.
33 * testsuite/gas/i386/secrel.d: Adjust expecations.
34
3e301ce0
JB
352021-05-03 Jan Beulich <jbeulich@suse.com>
36
37 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
38 Convert Windows to UNIX EOL.
39
deea4973
JB
402021-05-03 Jan Beulich <jbeulich@suse.com>
41
42 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
43 variant into ELF one.
44
db543a7d
AM
452021-05-03 Alan Modra <amodra@gmail.com>
46
47 * testsuite/gas/elf/section25.s: Don't start directives in first
48 column.
49 * testsuite/gas/elf/section26.s: Likewise.
50
a2443c89
JB
512021-04-29 Jan Beulich <jbeulich@suse.com>
52
53 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
54 * testsuite/gas/i386/lea64.d,
55 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
56 * testsuite/gas/i386/x86-64-rip-inval-1.s,
57 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
58
3abbafc2
JB
592021-04-29 Jan Beulich <jbeulich@suse.com>
60
61 * config/tc-i386.c (i386_validate_fix): Change return type to
62 int. Short-circuit BFD_RELOC_SIZE* handling.
63 (tc_gen_reloc): New local variable sym. Extend logic when
64 processing BFD_RELOC_SIZE*.
65 * config/tc-i386.f (i386_validate_fix): Change return type to
66 int.
67 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
68 returns zero.
69 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
70 testsuite/gas/i386/size-5b.d: New.
71 * testsuite/gas/i386/i386.exp: Run new tests.
72
44f87162
JB
732021-04-29 Jan Beulich <jbeulich@suse.com>
74
75 * config/tc-i386.c (tc_gen_reloc): Use section size for section
76 symbols when resolving BFD_RELOC_SIZE*.
77 * testsuite/gas/i386/size-2.s: Add section size cases.
78 * testsuite/gas/i386/size-2.d,
79 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
80
eb19308f
JB
812021-04-28 Jan Beulich <jbeulich@suse.com>
82 H.J. Lu <hjl.tools@gmail.com>
83
84 PR gas/27763
85 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
86 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
87 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
88 (md_estimate_size_before_relax): Move local variable fixP. Set
89 it from fix_new() return values. Mark 4-byte relocs as signed
90 for 64-bit.
91 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
92 * testsuite/gas/i386/x86-64-rip-2.s,
93 * testsuite/gas/i386/x86-64-rip-2.d,
94 * testsuite/gas/i386/x86-64-rip-inval-1.s,
95 * testsuite/gas/i386/x86-64-rip-inval-1.l,
96 * testsuite/gas/i386/x86-64-rip-inval-2.s,
97 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
98 * testsuite/gas/i386/i386.exp: Run new tests.
99
60cfa10c
L
1002021-04-27 H.J. Lu <hongjiu.lu@intel.com>
101
102 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
103
8fb88245
JB
1042021-04-26 Jan Beulich <jbeulich@suse.com>
105
106 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
107 BFD_RELOC_SIZE*.
108
d965814f
JB
1092021-04-26 Jan Beulich <jbeulich@suse.com>
110
111 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
112 overflow check to 64-bit objects.
113
fe134c65
JB
1142021-04-26 Jan Beulich <jbeulich@suse.com>
115
116 * config/tc-i386.c (want_disp32): Also check for SIZE32.
117 (optimize_encoding): Handle LEA.
118 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
119 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
120 Add many more forms.
121 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
122 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
123 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
124 New.
125 * testsuite/gas/i386/i386.exp: Run new tests.
126
b8188555
JB
1272021-04-26 Jan Beulich <jbeulich@suse.com>
128
129 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
130 signed.
131 * testsuite/gas/i386/x86-64-addr32-bad.s,
132 testsuite/gas/i386/x86-64-addr32-bad.l: New.
133 * testsuite/gas/i386/i386.exp: Run new test.
134
f5e98b7d
EB
1352021-04-23 Eric Botcazou<ebotcazou@adacore.com>
136
137 * testsuite/gas/elf/section25.d: Run it everywhere.
138 * testsuite/gas/elf/section26.d: Likewise.
139 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
140
d039200a
G
1412021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
142
143 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
144 optional "code" argument.
145
a9aabc23
JB
1462021-04-23 Jan Beulich <jbeulich@suse.com>
147
148 * config/tc-i386.c (want_disp32): New.
149 (md_assemble): Use it.
150 (optimize_disp): Likewise.
151 (build_modrm_byte): Likewise.
152
cce08655
JB
1532021-04-23 Jan Beulich <jbeulich@suse.com>
154
155 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
156 check ...
157 (md_assemble): ... here.
158
28a167a4
JB
1592021-04-23 Jan Beulich <jbeulich@suse.com>
160
161 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
162 Move up setting of disp32.
163
7b025ee8
JB
1642021-04-23 Jan Beulich <jbeulich@suse.com>
165
166 * config/tc-i386.c (pe): Don't truncate expression value.
167 (i386_finalize_displacement): Likewise.
168
23356397
NC
1692021-04-21 Nick Clifton <nickc@redhat.com>
170
171 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
172 for named section symbols.
173 * testsuite/gas/arm/thumbver.d: Likewise.
174 * testsuite/gas/bfin/loop_temps.d: Likewise.
175 * testsuite/gas/elf/section2.e-arc: Likewise.
176 * testsuite/gas/elf/section2.e-arm: Likewise.
177 * testsuite/gas/elf/section2.e-csky: Likewise.
178 * testsuite/gas/elf/section2.e-m32r: Likewise.
179 * testsuite/gas/elf/section2.e-mips: Likewise.
180 * testsuite/gas/elf/section2.e-msp430: Likewise.
181 * testsuite/gas/elf/section2.e-riscv: Likewise.
182 * testsuite/gas/elf/section2.e-rl78: Likewise.
183 * testsuite/gas/elf/section2.e-rx: Likewise.
184 * testsuite/gas/elf/section2.e-score: Likewise.
185 * testsuite/gas/elf/section2.e-tic6x: Likewise.
186 * testsuite/gas/elf/section2.e-unused: Likewise.
187 * testsuite/gas/elf/section2.e-v850: Likewise.
188 * testsuite/gas/elf/section2.e-xtensa: Likewise.
189 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
190 * testsuite/gas/ia64/alias.d: Likewise.
191 * testsuite/gas/ia64/global.d: Likewise.
192 * testsuite/gas/microblaze/relax_size.elf: Likewise.
193 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
194 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
195 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
196 * testsuite/gas/mmix/bspec-1.d: Likewise.
197 * testsuite/gas/mmix/byte-1.d: Likewise.
198 * testsuite/gas/mmix/comment-1.d: Likewise.
199 * testsuite/gas/mmix/loc-1.d: Likewise.
200 * testsuite/gas/mmix/loc-2.d: Likewise.
201 * testsuite/gas/mmix/loc-3.d: Likewise.
202 * testsuite/gas/mmix/loc-4.d: Likewise.
203 * testsuite/gas/mmix/loc-5.d: Likewise.
204 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
205
c5df7e44
CC
2062021-04-20 Clément Chigot <clement.chigot@atos.net>
207
208 PR binutils/21700
209 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
210 (ppc_fix_adjustable): Manage fx_subsy part.
211 (tc_gen_reloc): Create second relocation when both
212 fx_addsy and fx_subsy are provided.
213 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
214 (MAX_RELOC_EXPANSION): Likewise.
215 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
216 (UNDEFINED_DIFFERENCE_OK): Likewise
217 * testsuite/gas/all/gas.exp: Skip difference between two
218 undefined symbols test.
219
8d6502d2
NC
2202021-04-19 Nick Clifton <nickc@redhat.com>
221
222 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
223 targets which should skip the undefined symbols test.
224
02202574
PW
2252021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
226
227 * NEWS: Update news.
228 * testsuite/gas/aarch64/rme.d: Update test.
229 * testsuite/gas/aarch64/rme.s: Update test.
230
cd6608e4
PW
2312021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
232
233 * testsuite/gas/aarch64/rme.d: Update test.
234 * testsuite/gas/aarch64/rme.s: Update test.
235
9a8041fd
JB
2362021-04-19 Jan Beulich <jbeulich@suse.com>
237
238 * as.h (sprint_value): Delete.
239 * messages.c (sprint_value): Likewise.
240 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
241 place of sprint_value.
242 * config/tc-s390.c (s390_insert_operand): Likewise.
243 * doc/internals.texi (sprint_value): Delete section.
244 * write.c (fixup_segment): Likewise.
245 (relax_segment): Likewise.
246
100e914d
PW
2472021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
248
249 * testsuite/gas/aarch64/rme-invalid.d: New test.
250 * testsuite/gas/aarch64/rme-invalid.l: New test.
251 * testsuite/gas/aarch64/rme-invalid.s: New test.
252 * testsuite/gas/aarch64/rme.d: New test.
253 * testsuite/gas/aarch64/rme.s: New test.
254
768589d1
NC
2552021-04-16 Nelson Chu <nelson.chu@sifive.com>
256
257 PR 27436
258 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
259 * testsuite/gas/riscv/shamt-32.d: New testcase.
260 * testsuite/gas/riscv/shamt-32.l: Likewise.
261 * testsuite/gas/riscv/shamt-32.s: Likewise.
262 * testsuite/gas/riscv/shamt-64.d: Likewise.
263 * testsuite/gas/riscv/shamt-64.l: Likewise.
264 * testsuite/gas/riscv/shamt-64.s: Likewise.
265
a21b96dd
NC
2662021-04-16 Lifang Xia <lifang_xia@c-sky.com>
267
268 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
269 c.mv a4,a4.
270 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
271
d20eb466
AM
2722021-04-14 Alan Modra <amodra@gmail.com>
273
274 PR 27723
275 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
276 (select_cie_for_fde): ..here. Simplify.
277
c159f352
AM
2782021-04-14 Alan Modra <amodra@gmail.com>
279
280 PR 27723
281 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
282 DW_CFA_GNU_window_save and DW_CFA_restore_state.
283
4bb920c6
AM
2842021-04-13 Alan Modra <amodra@gmail.com>
285
286 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
287 write to $srcdir. Use gas_host_run and read output file rather
288 than gas_start/gas_finish.
289
32d71569
AM
2902021-04-12 Alan Modra <amodra@gmail.com>
291
292 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
293 (md_assemble): Likewise. Handle bignum operands.
294 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
295 check.
296 * expr.c: Delete unnecessary forward declarations.
297 (generic_bignum_to_int32): Return uint32_t.
298 (generic_bignum_to_int64): Return uint64_t. Compile always.
299 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
300 clear X_extrabit for unary '!'.
301 * expr.h (generic_bignum_to_int32): Declare.
302 (generic_bignum_to_int64): Declare.
303 * testsuite/gas/ppc/prefix-pcrel.s,
304 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
305
e601909a
NC
3062021-04-12 Nelson Chu <nelson.chu@sifive.com>
307
308 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
309 march-fail-porder-x-std.d.
310 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
311 march-fail-porder-z-std.d.
312 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
313 march-fail-porder-x-z.d.
314 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
315 march-fail-porder.l.
316 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
317 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
318 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
319 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
320 march-fail-single-char-h.d.
321 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
322 march-fail-single-char-s.d.
323 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
324 march-fail-single-char-x.d.
325 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
326 march-fail-single-char-z.d.
327 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
328 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
329 march-fail-single-prefix.l.
330 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
331 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
332 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
333
dd170203
TB
3342021-04-09 Tejas Belagod <tejas.belagod@arm.com>
335
32d71569
AM
336 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
337 diagnostic messages for LD/ST Exclusive instructions.
dd170203 338 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
32d71569
AM
339 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
340 clean-up.
dd170203 341
c3f72de4
AM
3422021-04-09 Alan Modra <amodra@gmail.com>
343
344 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
345 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
346 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
347
97bf40d8
AM
3482021-04-08 Alan Modra <amodra@gmail.com>
349
350 * testsuite/gas/ppc/pr27676.d,
351 * testsuite/gas/ppc/pr27676.s: New test.
352 * testsuite/gas/ppc/ppc.exp: Run it.
353 * testsuite/gas/ppc/dcbt.d: Update.
354 * testsuite/gas/ppc/power4_32.d: Update.
355
b12389f2
AM
3562021-04-07 Alan Modra <amodra@gmail.com>
357
358 PR 27217
359 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
360
eac4eb8e
NC
3612021-04-06 Nick Clifton <nickc@redhat.com>
362
363 PR 27217
364 * config/tc-aarch64.c (my_get_expression): Rename to
365 aarch64_get_expression. Add a fifth argument to enable deferring
366 of expression resolution.
367 (parse_typed_reg): Update calls to my_get_expression.
368 (parse_vector_reg_list): Likewise.
369 (parse_immediate_expression): Likewise.
370 (parse_big_immediate): Likewise.
371 (parse_shift): Likewise.
372 (parse_shifter_operand_imm): Likewise.
373 (parse_operands): Likewise.
374 (parse_shifter_operand_reloc): Update calls to my_get_expression
375 and call aarch64_force_reloc to determine the value of the new
376 fifth argument.
377 (parse_address_main): Likewise.
378 (parse_half): Likewise.
379 (parse_adrp): Likewise.
380 (aarch64_force_reloc): New function. Contains code extracted from...
381 (aarch64_force_relocation): ... here.
382 * testsuite/gas/aarch64/pr27217.s: New test case.
383 * testsuite/gas/aarch64/pr27217.d: New test driver.
384
da0835ae
JB
3852021-04-06 Jan Beulich <jbeulich@suse.com>
386
387 * write.c (fixup_segment): Move add_symbol_segment declaration
388 into main loop.
389
23d61380
AM
3902021-04-05 Alan Modra <amodra@gmail.com>
391
392 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
393 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
394 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
395 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
396 strstr, or vsnprintf declarations.
397 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
398 * as.h: Don't include alloca-conf.h, include config.h instead.
399 Include string.h, stdlib.h, errno.h unconditionally. Remove
400 various fallback declarations.
401 * asintl.h: Don't test HAVE_LOCALE_H.
402 * as.c: Don't test HAVE_SETLOCALE.
403 * dwarf2dbg.c: Include limits.h unconditionally.
404 * expr.c: Likewise.
405 * sb.c: Likewise.
406 * symbols.c: Likewise.
407 * config/tc-cr16.c: Likewise.
408 * config/tc-d30v.c: Likewise.
409 * config/tc-i386.c: Likewise.
410 * config/tc-ia64.c: Likewise.
411 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
412 * config.in: Regenerate.
413 * configure: Regenerate.
414 * Makefile.in: Regenerate.
415 * doc/Makefile.in: Regenerate.
416
e9b095a5
ML
4172021-04-01 Martin Liska <mliska@suse.cz>
418
419 * config/obj-coff.c (strneq): Remove strneq and use startswith.
420 (weak_is_altname): Likewise.
421 (obj_coff_section): Likewise.
422 * config/tc-cr16.c (process_label_constant): Likewise.
423 * config/tc-crx.c (strneq): Likewise.
424
d34049e8
ML
4252021-04-01 Martin Liska <mliska@suse.cz>
426
427 * as.c (select_emulation_mode): Use startswith.
428 * config/m68k-parse.y: Likewise.
429 * config/obj-aout.c (obj_aout_type): Likewise.
430 * config/obj-elf.c (elf_common_parse): Likewise.
431 (obj_elf_section_type): Likewise.
432 (obj_elf_section_word): Likewise.
433 (obj_elf_section): Likewise.
434 (obj_elf_symver): Likewise.
435 (adjust_stab_sections): Likewise.
436 * config/obj-evax.c (evax_shorten_name): Likewise.
437 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
438 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
439 (aarch64_parse_features): Likewise.
440 (create_register_alias): Likewise.
441 (aarch64_data_in_code): Likewise.
442 (md_parse_option): Likewise.
443 * config/tc-alpha.c (s_alpha_section_word): Likewise.
444 (s_alpha_pdesc): Likewise.
445 * config/tc-arc.c (tokenize_extregister): Likewise.
446 * config/tc-arm.c (create_register_alias): Likewise.
447 (create_neon_reg_alias): Likewise.
448 (parse_ifimm_zero): Likewise.
449 (parse_qfloat_immediate): Likewise.
450 (arm_elf_section_type): Likewise.
451 (arm_parse_extension): Likewise.
452 (aeabi_set_public_attributes): Likewise.
453 (s_arm_arch_extension): Likewise.
454 (arm_data_in_code): Likewise.
455 (start_unwind_section): Likewise.
456 * config/tc-avr.c (avr_ldi_expression): Likewise.
457 * config/tc-csky.c (is_freglist_legal): Likewise.
458 (csky_s_section): Likewise.
459 * config/tc-d30v.c (do_assemble): Likewise.
460 * config/tc-dlx.c (parse_operand): Likewise.
461 * config/tc-epiphany.c (md_assemble): Likewise.
462 * config/tc-h8300.c (h8300_elf_section): Likewise.
463 (get_operand): Likewise.
464 * config/tc-hppa.c (pa_ip): Likewise.
465 (pa_level): Likewise.
466 (pa_space): Likewise.
467 * config/tc-i386.c (i386_mach): Likewise.
468 (md_assemble): Likewise.
469 (check_VecOperations): Likewise.
470 (i386_target_format): Likewise.
471 (i386_elf_section_type): Likewise.
472 * config/tc-ia64.c (start_unwind_section): Likewise.
473 (md_parse_option): Likewise.
474 (is_taken_branch): Likewise.
475 (idesc->name,): Likewise.
476 (note_register_values): Likewise.
477 (do_alias): Likewise.
478 * config/tc-m32c.c (insn_to_subtype): Likewise.
479 * config/tc-m68hc11.c (get_operand): Likewise.
480 (md_assemble): Likewise.
481 * config/tc-m68k.c (m68k_ip): Likewise.
482 (m68k_elf_suffix): Likewise.
483 * config/tc-mcore.c (mcore_s_section): Likewise.
484 * config/tc-metag.c (parse_get_set): Likewise.
485 (md_parse_option): Likewise.
486 * config/tc-microblaze.c (parse_imm): Likewise.
487 (check_got): Likewise.
488 (md_apply_fix): Likewise.
489 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
490 (md_begin): Likewise.
491 (s_is_linkonce): Likewise.
492 (check_regno): Likewise.
493 (match_float_constant): Likewise.
494 (classify_vr4120_insn): Likewise.
495 (match_insn): Likewise.
496 (mips_after_parse_args): Likewise.
497 (s_change_sec): Likewise.
498 (s_option): Likewise.
499 (parse_code_option): Likewise.
500 (md_section_align): Likewise.
501 (nopic_need_relax): Likewise.
502 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
503 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
504 (mn10300_end_of_match): Likewise.
505 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
506 * config/tc-nds32.c (nds32_parse_option): Likewise.
507 * config/tc-nds32.h (md_do_align): Likewise.
508 * config/tc-nios2.c (strprefix): Likewise.
509 (nios2_special_relocation_p): Likewise.
510 (nios2_parse_base_register): Likewise.
511 (nios2_cons): Likewise.
512 * config/tc-ns32k.c (addr_mode): Likewise.
513 * config/tc-pdp11.c (set_option): Likewise.
514 (parse_reg): Likewise.
515 (parse_ac5): Likewise.
516 (parse_op_no_deferred): Likewise.
517 (set_cpu_model): Likewise.
518 (set_machine_model): Likewise.
519 * config/tc-pj.c (md_operand): Likewise.
520 * config/tc-ppc.c (ppc_set_cpu): Likewise.
521 (ppc_arch): Likewise.
522 (ppc_section_type): Likewise.
523 * config/tc-s12z.c (tb_reg_rel): Likewise.
524 (tb_opr_rel): Likewise.
525 * config/tc-s390.c (s390_parse_cpu): Likewise.
526 (md_parse_option): Likewise.
527 * config/tc-score.c (s3_nopic_need_relax): Likewise.
528 (s3_pic_need_relax): Likewise.
529 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
530 (s7_pic_need_relax): Likewise.
531 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
532 * config/tc-sparc.c (md_parse_option): Likewise.
533 (sparc_ip): Likewise.
534 (s_reserve): Likewise.
535 (s_common): Likewise.
536 (s_seg): Likewise.
537 (sparc_cons): Likewise.
538 * config/tc-tic54x.c (stag_add_field): Likewise.
539 (tic54x_endstruct): Likewise.
540 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
541 * config/tc-v850.c (v850_comm): Likewise.
542 (md_begin): Likewise.
543 (md_assemble): Likewise.
544 * config/tc-vax.c (vax_cons): Likewise.
545 * config/tc-wasm32.c (wasm32_leb128): Likewise.
546 * config/tc-xstormy16.c (md_operand): Likewise.
547 * config/tc-xtensa.c (get_directive): Likewise.
548 (xg_instruction_matches_option_term): Likewise.
549 (is_unaligned_label): Likewise.
550 (cache_literal_section): Likewise.
551 * config/xtensa-relax.c (parse_precond): Likewise.
552 (parse_option_cond): Likewise.
553 (transition_applies): Likewise.
554 (wide_branch_opcode): Likewise.
555 * dw2gencfi.c: Likewise.
556 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
557 * ehopt.c (get_cie_info): Likewise.
558 * input-file.c (input_file_open): Likewise.
559 * listing.c (listing_newline): Likewise.
560 (debugging_pseudo): Likewise.
561 * read.c (read_a_source_file): Likewise.
562 * write.c (adjust_reloc_syms): Likewise.
563 (compress_debug): Likewise.
564 (maybe_generate_build_notes): Likewise.
565
fdb21288
AM
5662021-03-31 Alan Modra <amodra@gmail.com>
567
568 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
569 * config/bfin-lex-wrapper.c: Likewise.
570 * itbl-lex.l: Don't include as.h.
571 * config/bfin-lex.l: Likewise.
572
5b7c81bd
AM
5732021-03-31 Alan Modra <amodra@gmail.com>
574
575 * as.h (POISON_BFD_BOOLEAN): Define.
576 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
577 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
578 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
579 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
580 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
581 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
582 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
583 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
584 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
585 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
586 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
587 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
588 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
589 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
590 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
591 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
592 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
593 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
594 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
595 * config/tc-metag.c, * config/tc-metag.h,
596 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
597 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
598 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
599 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
600 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
601 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
602 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
603 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
604 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
605 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
606 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
607 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
608 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
609 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
610 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
611 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
612 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
613 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
614 * config/tc-z8k.c, * config/xtensa-istack.h,
615 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
616 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
617 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
618 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
619 with bool, FALSE with false, and TRUE with true.
620
3dfb1b6d
AM
6212021-03-31 Alan Modra <amodra@gmail.com>
622
623 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
624 * config/tc-crx.c: Likewise.
625 * config/tc-nds32.h: Likewise.
626
5e042380
JB
6272021-03-30 Jan Beulich <jbeulich@suse.com>
628
629 * config/tc-i386.c (build_modrm_byte): Change return type.
630 Change type of "default_seg". Use NULL. Adjust setting of
631 "default_seg".
632 (reg_ds, reg_es, reg_ss): New.
633 (struct _i386_insn): Change type of seg[].
634 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
635 (swap_operands): Change type of "temp_seg".
636 (check_string): Adjust %es check.
637 (process_operands): Change type of "default_seg". Use NULL.
638 Adjust segment override processing..
639 (i386_att_operand): Adjust segment override handling.
640 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
641
34684862
JB
6422021-03-30 Jan Beulich <jbeulich@suse.com>
643
644 * config/tc-i386.c (reg_eax): New.
645 (md_begin): Initialize reg_eax.
646 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
647 reg_eax.
648 (i386_intel_simplify): Likewise.
649
6288d05f
JB
6502021-03-30 Jan Beulich <jbeulich@suse.com>
651
652 * config/tc-i386.c (reg_st0): New.
653 (md_begin): Convert to switch(). Initialize reg_st0. Don't
654 insert other st(N).
655 (parse_real_register): Adjust st(N) processing.
656
ca5312a2
JB
6572021-03-30 Jan Beulich <jbeulich@suse.com>
658
659 * config/tc-i386.c (rc_op): Delete.
660 (struct Rounding_Operation): Move ...
661 (struct _i386_insn): ... here. Change field "rounding".
662 (build_evex_prefix): Adjust rounding processing.
663 (swap_2_operands): Likewise.
664 (check_VecOperands): Likewise.
665 (RC_SAE_immediate): Likewise.
666 (optimize_encoding): Adjust check for rounding.
667 (build_modrm_byte): Likewise.
668 (output_imm): Likewise.
669 (md_assemble): Initialize rounding type.
670
5273a3cd
JB
6712021-03-30 Jan Beulich <jbeulich@suse.com>
672
673 * config/tc-i386.c (broadcast_op): Delete.
674 (struct Broadcast_Operation): Move ...
675 (struct _i386_insn): ... here. Change field "broadcast".
676 (match_mem_size): Adjust check for broadcast.
677 (optimize_encoding): Likewise.
678 (process_suffix): Likewise.
679 (build_evex_prefix): Adjust broadcast processing.
680 (swap_2_operands): Likewise.
681 (check_VecOperations): Likewise.
682 (match_template): Likewise.
683 (check_VecOperands): Likewise.
684
6225c532
JB
6852021-03-30 Jan Beulich <jbeulich@suse.com>
686
687 * config/tc-i386.c (reg_k0): New.
688 (mask_op): Delete.
689 (struct Mask_Operation): Move ...
690 (struct _i386_insn): ... here. Change field "mask".
691 (md_begin): Initialize reg_k0.
692 (build_evex_prefix): Adjust mask processing.
693 (swap_2_operands): Likewise.
694 (check_VecOperands): Likewise.
695 (check_VecOperations): Likewise.
696 (optimize_encoding): Adjust checks for masking.
697 (output_insn): Likewise.
698
783c187b
JB
6992021-03-30 Jan Beulich <jbeulich@suse.com>
700
701 * config/tc-i386.c (swap_2_operands): Switch parameters to
702 unsigned.
703 (struct RC_Operation): Switch operand field to unsigned.
704 (struct Mask_Operation): Likewise.
705 (struct Broadcast_Operation): Likewise.
706 (build_evex_prefix): Drop cast.
707 (check_VecOperands): Likewise.
708 (build_modrm_byte): Likewise.
709 (output_imm): Likewise.
710 (check_VecOperations): Add casts to unsigned.
711
c8cad9d3
JB
7122021-03-29 Jan Beulich <jbeulich@suse.com>
713
714 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
715 * testsuite/gas/i386/x86-64-avx-swap-2.d.
716 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
717
389d00a5
JB
7182021-03-29 Jan Beulich <jbeulich@suse.com>
719
720 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
721 checks by opcodespace ones.
722 (insert_lfence_before): Likewise.
723 (maybe_fused_with_jcc_p): Likewise.
724 (add_branch_padding_frag_p): Likewise.
725 (output_disp): Likewise.
726 (load_insn_p): Re-arrange checks to key applicable ones off of
727 an opcodespace check.
728 (md_assemble): Adjust opcode checks.
729 (check_byte_reg): Likewise.
730 (process_operands): Likewise.
731 (i386_index_check): Likewise.
732 (process_suffix): Likewise. New local variable is_movx. Adjust
733 movsx/movzx and crc32 handling.
734 (output_insn): Adjust opcode checks. Drop no longer reachable
735 case labels. Output legacy encoding prefixes in addition to the
736 base_opcode byte(s). Rework counting of prefixes for extended
737 opcode maps.
738 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
739 opcode checks.
740
63b4cc53
AM
7412021-03-29 Alan Modra <amodra@gmail.com>
742
743 * atof-generic.c (FALSE, TRUE): Don't define.
744 * config/obj-elf.h (FALSE, TRUE): Don't define.
745 * config/obj-som.h (FALSE, TRUE): Don't define.
746 * config/tc-hppa.h (FALSE, TRUE): Don't define.
747 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
748 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
749 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
750 * config/tc-mt.h (obj_fix_adjustable): Delete.
751 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
752 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
753 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
754 (tokenize_extregister): Likewise.
755 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
756 (parse_operands_op, parse_operands, md_assemble): Likewise.
757 * config/tc-d10v.c (build_insn): Likewise.
758 * config/tc-score.c (s3_gen_insn_frag): Likewise.
759 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
760 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
761 * config/tc-z80.c (emit_byte): Likewise.
762
854f1e4b
AM
7632021-03-29 Alan Modra <amodra@gmail.com>
764
765 * config/tc-arm.c (struct arm_long_option_table <func>): Return
766 bfd_boolean.
767 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
768 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
769 with bfd_boolean.
770 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
771 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
772 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
773 logical expressions.
774 (struct metag_long_option <func>): Return bfd_boolean.
775 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
776 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
777 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
778 (no_operands, lex_force_match, lex_reg_list): Likewise.
779 (size_from_suffix): Return int.
780 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
781 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
782
c3344b62
JB
7832021-03-26 Jan Beulich <jbeulich@suse.com>
784
785 * testsuite/gas/i386/x86-64-nosse2.s,
786 testsuite/gas/i386/x86-64-nosse2.l: New.
787 * testsuite/gas/i386/i386.exp: Run new test.
788
efa30ac3
HAQ
7892021-03-25 Abid Qadeer <abidh@codesourcery.com>
790
791 * testsuite/gas/nios2/brn.d: New.
792 * testsuite/gas/nios2/brn.d: New.
793
5e74b495
JB
7942021-03-25 Jan Beulich <jbeulich@suse.com>
795
796 * config/tc-i386.c (match_template): Use t instead of i.tm.
797
596a02ff
JB
7982021-03-25 Jan Beulich <jbeulich@suse.com>
799
800 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
801 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
802 colliding registers in the upper half of the space.
803 * testsuite/gas/i386/avx512f-nondef.d,
804 testsuite/gas/i386/vgather-check.d,
805 testsuite/gas/i386/x86-64-vgather-check.d,
806 testsuite/gas/i386/x86-64-vgather-check-error.l,
807 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
808 expecations.
809 * testsuite/gas/i386/vgather-check-none.d,
810 testsuite/gas/i386/vgather-check-warn.d,
811 testsuite/gas/i386/x86-64-vgather-check-none.d,
812 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
813 tests for expected dump output.
814
53642852
JB
8152021-03-25 Jan Beulich <jbeulich@suse.com>
816
817 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
818 without mask register.
819 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
820
c0e54661
JB
8212021-03-25 Jan Beulich <jbeulich@suse.com>
822
823 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
824 swapping operands for.
825 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
826 syntax tests.
827 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
828 well as Intel syntax tests.
829 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
830 expectations.
32d71569 831 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
c0e54661
JB
832 Likewise. Drop passing --def-sym to as.
833
829f3fe1
JB
8342021-03-25 Jan Beulich <jbeulich@suse.com>
835
836 PR/gas 27419
837 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
838 conversion to x32 mode.
839 * testsuite/gas/i386/ilp32/enqcmd.s,
840 testsuite/gas/i386/ilp32/enqcmd.d,
841 testsuite/gas/i386/ilp32/movdir.s,
842 testsuite/gas/i386/ilp32/movdir.d: New.
843 * testsuite/gas/i386/x86-64-enqcmd.s,
844 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
845 cases.
846 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
847 (%eip) cases.
848 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
849 * testsuite/gas/i386/x86-64-enqcmd.d,
850 testsuite/gas/i386/x86-64-enqcmd-intel.d,
851 testsuite/gas/i386/x86-64-enqcmd-inval.l,
852 testsuite/gas/i386/x86-64-movdir.d,
853 testsuite/gas/i386/x86-64-movdir-intel.d,
854 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
855
5a403766
AM
8562021-03-25 Alan Modra <amodra@gmail.com>
857
858 PR 27647
859 * testsuite/gas/ppc/a2.d: Update expected output.
860 * testsuite/gas/ppc/power8.d: Likewise.
861
9a182d04
JB
8622021-03-24 Jan Beulich <jbeulich@suse.com>
863
864 * config/tc-i386.c (struct _i386_insn): New field
865 opcode_length.
866 (md_begin): Drop assertion.
867 (install_template): New.
868 (build_vex_prefix): Call install_template.
869 (match_template): Likewise.
870 (process_operands): Use new opcode_length field.
871 (output_jump): Likewise.
872 (output_insn): Likewise. Adjust psedo prefix check.
873
35648716
JB
8742021-03-24 Jan Beulich <jbeulich@suse.com>
875
876 * config/tc-i386.c (md_begin): Add assertion.
877 (build_vex_prefix): Drop implied prefix calculation.
878 (build_evex_prefix): Likewise.
879 (optimize_encoding): Adjust opcode checks.
880 (load_insn_p): Also check opcodeprefix.
881 (match_template): Also check opcodespace.
882 (process_suffix): Likewise.
883 (process_operands): Likewise.
884 (output_insn): Likewise. Also check isprefix when discaring
885 standalone LOCK.
886 * config/tc-i386-intel.c (i386_intel_operand): Also check
887 opcodespace.
888
31184569
JB
8892021-03-24 Jan Beulich <jbeulich@suse.com>
890
891 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
892 base_opcode and extension_opcode.
893
b933fa4b
JB
8942021-03-23 Jan Beulich <jbeulich@suse.com>
895
896 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
897
dac10fb0
JB
8982021-03-23 Jan Beulich <jbeulich@suse.com>
899
900 * config/tc-i386.c (output_i386_opcode): Invoke
901 process_i386_cpu_flag() slightly later.
902 (process_i386_opcodes): Likewise.
903
441f6aca
JB
9042021-03-23 Jan Beulich <jbeulich@suse.com>
905
906 * config/tc-i386.c (pte): Print prefix and encoding space.
907 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
908 (build_evex_prefix): Likewise.
909 (load_insn_p): Likewise.
910
70e95837
JB
9112021-03-23 Jan Beulich <jbeulich@suse.com>
912
913 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
914 if()-s.
915 (match_template, output_insn): Use PREFIX_NONE.
916
a152332d
JB
9172021-03-23 Jan Beulich <jbeulich@suse.com>
918
919 * config/tc-i386.c (i386_index_check): New local variable t.
920 Correct MPX insn check.
921 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
922 MPX insn check.
923 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
924 index scaling by other than 1.
925 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
926
08dedd66
ML
9272021-03-22 Martin Liska <mliska@suse.cz>
928
929 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
930 (x86_64_section_word): Likewise.
931 * config/tc-sparc.c (md_parse_option): Likewise.
932
826b97d4
AM
9332021-03-19 Alan Modra <amodra@gmail.com>
934
935 * app.c (do_scrub_chars): Don't lose spaces before a slash.
936
3273f9a1
CG
9372021-03-18 Christian Groessler <chris@groessler.org>
938
939 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
940 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
941
80d49d6a
KLC
9422021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
943
944 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
945 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
946 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
947 * testsuite/gas/riscv/b-ext-64.d: Likewise.
948 * testsuite/gas/riscv/b-ext.s: Likewise.
949 * testsuite/gas/riscv/b-ext.d: Likewise.
950
7fce7ea9
PW
9512021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
952
953 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
954 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
955 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
956 * testsuite/gas/aarch64/sysreg-7.d: New test.
957 * testsuite/gas/aarch64/sysreg-7.s: New test.
958
1b2cb8e2
CC
9592021-03-12 Clément Chigot <clement.chigot@atos.net>
960
961 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
962 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
963 (ppc_xcoff_tbss_section): New variables.
964 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
965 (ppc_data_csects): Removed.
966 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
967 ppc_xcoff_parse_cons): New functions.
968 (md_being): Initialize XCOFF sections.
969 (ppc_xcoff_suffix): Add support for TLS relocations
970 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
971 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
972 to .bss section. Handle new XCOFF section variables.
973 (ppc_comm): Likewise.
974 (ppc_toc): Likewise.
975 (ppc_symbol_new_hook): Likewise.
976 (ppc_frob_symbol): Likewise.
977 (ppc_fix_adjustable): Add tbss support.
978 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
979 (ppc_xcoff_parse_cons): Add prototype.
980 (struct ppc_xcoff_section): New structure.
981
4a403be0
CC
9822021-03-12 Clément Chigot <clement.chigot@atos.net>
983
984 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
985 (MAP, MAP32, MAP64): New macros for XCOFF.
986 (ppc_xcoff_fixup_addis): New function.
987 (ppc_is_toc_sym): Handle XMC_TE.
988 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
989 BFD_RELOC_PPC_TOC16_LO.
990 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
991 (ppc_change_csect): Handle XMC_TE.
992 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
993 storage class.
994 (ppc_symbol_new_hook): Handle XMC_TE.
995 (ppc_frob_symbol): Likewise.
996 (ppc_fix_adjustable): Likewise.
997 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
998 BFD_RELOC_PPC_TOC16_LO.
999
b763d508
JB
10002021-03-10 Jan Beulich <jbeulich@suse.com>
1001
1002 * testsuite/gas/i386/avx512f-intel.d,
1003 testsuite/gas/i386/avx512f_vl-intel.d,
1004 testsuite/gas/i386/avx512pf-intel.d,
1005 testsuite/gas/i386/x86-64-avx512f-intel.d,
1006 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1007 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1008
31941983
JB
10092021-03-10 Jan Beulich <jbeulich@suse.com>
1010
1011 * testsuite/gas/i386/prefetch.d,
1012 testsuite/gas/i386/prefetch-intel.d,
1013 testsuite/gas/i386/x86-64-prefetch.d,
1014 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1015 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1016 * testsuite/gas/i386/i386.exp: Run new test.
1017
742732c7
JB
10182021-03-09 Jan Beulich <jbeulich@suse.com>
1019
1020 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1021 (md_assemble): Replace use of repprefixok, islockable, and
1022 notrackprefixok.
1023 (i386_index_check): Replace use of repprefixok.
1024
e93a3b27
JB
10252021-03-09 Jan Beulich <jbeulich@suse.com>
1026
1027 * testsuite/gas/i386/noreg64.s: Add sysexit.
1028 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1029 sysexitl and sysexitq.
1030 * testsuite/gas/i386/noreg-intel64.l,
1031 testsuite/gas/i386/noreg64-data16.d,
1032 testsuite/gas/i386/noreg64-data16.e,
1033 testsuite/gas/i386/noreg64-rex64.d,
1034 testsuite/gas/i386/noreg64.d,
1035 testsuite/gas/i386/noreg64.l,
1036 testsuite/gas/i386/x86-64-sysenter-amd.d,
1037 testsuite/gas/i386/x86-64-sysenter-amd.l,
1038 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1039
fe0171d2
NC
10402021-02-26 Nick Clifton <nickc@redhat.com>
1041
1042 PR 27411
1043 * config/tc-arm.c (do_t_add_sub): Correct error message.
1044 * testsuite/gas/arm/pr27411.s: New test.
1045 * testsuite/gas/arm/pr27411.d: New test driver.
1046 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1047
55add51e
AM
10482021-02-24 Alan Modra <amodra@gmail.com>
1049
1050 PR 23691
1051 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1052 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1053 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1054 and use alongside TARGET_CPU_CFILES.
1055 (EXTRA_DIST): Update location of generated .c files.
1056 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1057 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1058 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1059 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1060 dependencies.
1061 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1062 (itbl-parse.c, itbl-parse.h): Tidy.
1063 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1064 * config/bfin-lex.l: Include config/bfin-parse.h.
1065 * configure.ac (extra_objects): Move object files corresponding
1066 to .y and .l files now in config/ to config/.
1067 * Makefile.in: Regenerate.
1068 * configure: Regenerate.
1069 * po/POTFILES.in: Regenerate.
1070
0257c2ff
NC
10712021-02-19 Nick Clifton <nickc@redhat.com>
1072
1073 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1074 misleading indentation.
1075
5a9f5403
NC
10762021-02-19 Nelson Chu <nelson.chu@sifive.com>
1077
1078 PR 27158
1079 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1080 (md_apply_fix): Likewise.
1081 (md_convert_frag_branch): Likewise.
1082 (validate_riscv_insn): Likewise. Also arranged operands, including
1083 added C5 and C6 operands, and removed unused Ci and C< operands.
1084 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1085 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1086 * testsuite/gas/riscv/insn.s: Likewise.
1087
3d73d29e
NC
10882021-02-18 Nelson Chu <nelson.chu@sifive.com>
1089
1090 * config/tc-riscv.c: Included cpu-riscv.h.
1091 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1092 (struct riscv_csr_extra): Likewise.
1093 (struct riscv_ext_version): Likewise.
1094 (ext_version_table): Moved from opcodes/riscv-opc.c.
1095 (default_isa_spec): Updated type to riscv_spec_class.
1096 (default_priv_spec): Likewise.
1097 (riscv_set_default_isa_spec): Updated.
1098 (init_ext_version_hash): Likewise.
1099 (riscv_init_csr_hash): Likewise, also fixed indent.
1100
089485ff
AM
11012021-02-17 Alan Modra <amodra@gmail.com>
1102
1103 * testsuite/gas/elf/section28.d: xfail h8300.
1104
ca1289b9
L
11052021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1106
1107 PR gas/27412
1108 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1109 when checking incorrect section attributes.
1110 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1111 * testsuite/gas/elf/section28.d: New file.
1112 * testsuite/gas/elf/section28.s: Likewise.
1113 * testsuite/gas/elf/section29.d: Likewise.
1114 * testsuite/gas/elf/section29.s: Likewise.
1115
394ae71f
JB
11162021-02-16 Jan Beulich <jbeulich@suse.com>
1117
1118 * testsuite/gas/i386/sse-check.s,
1119 testsuite/gas/i386/sse2avx.s,
1120 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1121 * testsuite/gas/i386/sse-check-error.l,
1122 testsuite/gas/i386/sse-check-warn.e,
1123 testsuite/gas/i386/sse-check.d,
1124 testsuite/gas/i386/sse2avx.d,
1125 testsuite/gas/i386/x86-64-sse-check-error.l,
1126 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1127 * testsuite/gas/i386/property-cvtpi2pd.s,
1128 testsuite/gas/i386/property-cvtpi2pd.d,
1129 testsuite/gas/i386/property-cvtpi2ps.s,
1130 testsuite/gas/i386/property-cvtpi2ps.d: New.
1131 * testsuite/gas/i386/i386.exp: Run new tests.
1132
3d70986f
JB
11332021-02-16 Jan Beulich <jbeulich@suse.com>
1134
1135 * config/tc-i386.c (md_assemble): Use template rather than
1136 actuals when updating i.xstate.
1137 * testsuite/gas/i386/property-4.d,
1138 testsuite/gas/i386/property-5.d,
1139 testsuite/gas/i386/property-12.d: Adjust expectations.
1140
014d61ea
JB
11412021-02-16 Jan Beulich <jbeulich@suse.com>
1142
1143 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1144 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1145 * testsuite/gas/i386/property-ldmxcsr.s,
1146 testsuite/gas/i386/property-ldmxcsr.d,
1147 testsuite/gas/i386/property-vldmxcsr.s,
1148 testsuite/gas/i386/property-vldmxcsr.d,
1149 testsuite/gas/i386/property-vzeroall.s,
1150 testsuite/gas/i386/property-vzeroall.d: New.
1151 * testsuite/gas/i386/i386.exp: Run new tests.
1152
cbe68696
JB
11532021-02-16 Jan Beulich <jbeulich@suse.com>
1154
1155 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1156 tests to bitness independent section.
1157 * testsuite/gas/i386/x86-64-property-2.d,
1158 testsuite/gas/i386/x86-64-property-3.d,
1159 testsuite/gas/i386/x86-64-property-4.d,
1160 testsuite/gas/i386/x86-64-property-5.d,
1161 testsuite/gas/i386/x86-64-property-6.d,
1162 testsuite/gas/i386/x86-64-property-10.d,
1163 testsuite/gas/i386/x86-64-property-11.d,
1164 testsuite/gas/i386/x86-64-property-12.d,
1165 testsuite/gas/i386/x86-64-property-13.d: Delete.
1166
c2f1204d
JB
11672021-02-16 Jan Beulich <jbeulich@suse.com>
1168
1169 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1170 movdir.s.
1171 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1172
9a12b194
AM
11732021-02-16 Alan Modra <amodra@gmail.com>
1174
1175 PR 27426
1176 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1177 in another place.
1178
70433886
AM
11792021-02-16 Alan Modra <amodra@gmail.com>
1180
1181 * read.c (demand_copy_C_string): Really check for embedded zeros.
1182
ba2b480f
AK
11832021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1184
1185 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1186 * doc/c-s390.texi: Document arch14 march option.
1187 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1188 * testsuite/gas/s390/zarch-arch14.d: New test.
1189 * testsuite/gas/s390/zarch-arch14.s: New test.
1190
c46b7066
NC
11912021-02-12 Nick Clifton <nickc@redhat.com>
1192
1193 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
32d71569 1194 following.
c46b7066
NC
1195 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1196
3c1d4101
AM
11972021-02-12 Alan Modra <amodra@gmail.com>
1198
1199 * testsuite/gas/all/pr27381.err: Don't match source file name.
1200 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1201 * testsuite/gas/all/pr27384.err: Don't match source file name.
1202 Adjust line number.
1203 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1204 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1205
933feaf3
AM
12062021-02-11 Alan Modra <amodra@gmail.com>
1207
1208 * NEWS: Mention arm-symbianelf removal.
1209
01e8b831
NC
12102021-02-10 Nick Clifton <nickc@redhat.com>
1211
1212 * listing.c (buffer_line): Remove debugging code accidentally
1213 included with the fix for PR 27384.
1214
284beb43
NC
12152021-02-09 Nick Clifton <nickc@redhat.com>
1216
1217 PR 27381
1218 * read.c (s_incbin): Check that the file to be included is a
1219 regular, non-directory file.
1220 * testsuite/gas/all/pr27381.s: New test source file.
1221 * testsuite/gas/all/pr27381.d: New test control file.
1222 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1223 * testsuite/gas/all/gas.exp: Run the new test.
1224
a57d1773
AM
12252021-02-09 Alan Modra <amodra@gmail.com>
1226
1227 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1228 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1229 support.
1230 * config/te-symbian.h: Delete.
1231 * configure.tgt: Remove arm-*-symbianelf*.
1232 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1233 target selection.
1234 * testsuite/gas/arm/arch4t.d: Likewise.
1235 * testsuite/gas/arm/got_prel.d: Likewise.
1236 * testsuite/gas/arm/mapdir.d: Likewise.
1237 * testsuite/gas/arm/mapmisc.d: Likewise.
1238 * testsuite/gas/arm/mapsecs.d: Likewise.
1239 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1240 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1241 * testsuite/gas/arm/thumb.d: Likewise.
1242 * testsuite/gas/arm/thumbrel.d: Likewise.
1243 * Makefile.in: Regenerate.
1244 * po/POTFILES.in: Regenerate.
1245
4a68fcd7
NC
12462021-02-09 Nick Clifton <nickc@redhat.com>
1247
1248 PR 27384
1249 * listing.c (listing_psize): Check the result of the width
1250 expression before assigning it to paper_width.
1251 * testsuite/gas/all/pr27384.s: New test source file.
1252 * testsuite/gas/all/pr27384.d: New test control file.
1253 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1254 * testsuite/gas/all/gas.exp: Run the new test.
1255
52563b0f
NC
12562021-02-09 Nick Clifton <nickc@redhat.com>
1257
1258 PR 27355
1259 * testsuite/gas/elf/pr27355.s: New test source file.
1260 * testsuite/gas/elf/pr27355.d: New test control file.
1261 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1262 * testsuite/gas/elf/elf.exp: Run the new test.
1263
bfd428bc
MF
12642021-02-08 Mike Frysinger <vapier@gentoo.org>
1265
1266 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1267 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
1268 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
1269 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
1270 cc2_codes, cc3_codes, status_bits, and misc_symbols.
1271
80b652ef
NC
12722021-02-08 Nick Clifton <nickc@redhat.com>
1273
1274 PR 27355
1275 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1276 if it has not already been created.
1277
24075dcc
NC
12782021-02-04 Nelson Chu <nelson.chu@sifive.com>
1279
1280 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
1281 INSN_CLASS_ZB*.
1282 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
1283 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
1284 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
1285
61ecbbae
AK
12862021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
1287
1288 * doc/c-s390.texi: Document vector instruction formats.
1289
1f568f9a
EH
12902021-02-01 Emery Hemingway <ehmry@posteo.net>
1291
1292 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1293
7bba67ec
AM
12942021-02-01 Alan Modra <amodra@gmail.com>
1295
1296 PR 27283
1297 * config/tc-alpha.c (insert_operand): Delete dead code.
1298
1f583bc2
L
12992021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 PR gas/27243
1302 * config/tc-nios2.c (md_begin): Don't disable relaxation with
1303 --gdwarf-N.
1304 * testsuite/gas/nios2/relax.d: New file.
1305 * testsuite/gas/nios2/relax.s: Likewise.
1306
a45ef9a3
AM
13072021-01-26 Alan Modra <amodra@gmail.com>
1308
1309 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
1310 notarget all except hppa. Comment.
1311 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
1312 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
1313 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
1314 * testsuite/gas/all/sleb128-7.d: Likewise.
1315 * testsuite/gas/all/sleb128-9.d: Likewise.
1316 * testsuite/gas/elf/bignums.d: Likewise.
1317 * testsuite/gas/elf/group0c.d: Likewise.
1318 * testsuite/gas/elf/group1a.d: Likewise.
1319 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
1320 * testsuite/gas/elf/section15.d: Likewise.
1321 * testsuite/gas/elf/section4.d: Likewise.
1322 * testsuite/gas/elf/section7.d: Likewise.
1323 * testsuite/gas/macros/irp.d: Likewise.
1324 * testsuite/gas/macros/repeat.d: Likewise.
1325 * testsuite/gas/macros/rept.d: Likewise.
1326 * testsuite/gas/macros/test2.d: Likewise.
1327 * testsuite/gas/macros/vararg.d: Likewise.
1328 * testsuite/gas/all/string.d: Use xfail rather than skip.
1329 * testsuite/gas/elf/missing-build-notes.d: Likewise.
1330 * testsuite/gas/elf/section0.d: Likewise.
1331 * testsuite/gas/elf/section1.d: Likewise.
1332 * testsuite/gas/elf/section10.d: Likewise.
1333 * testsuite/gas/elf/section11.d: Likewise.
1334 * testsuite/gas/elf/section6.d: Likewise.
1335 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
1336 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
1337 * testsuite/gas/macros/test3.d: Don't notarget nds32.
1338
9886ff03
AM
13392021-01-26 Alan Modra <amodra@gmail.com>
1340
1341 * testsuite/gas/all/byte.d,
1342 * testsuite/gas/all/byte.l,
1343 * testsuite/gas/all/byte.s: Delete.
1344 * testsuite/gas/all/gas.exp: Don't run byte test.
1345
4287950e
AM
13462021-01-26 Alan Modra <amodra@gmail.com>
1347
1348 PR 27282
1349 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
1350 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
1351
eea133e6
L
13522021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1353
1354 PR gas/27228
1355 * testsuite/gas/elf/elf.exp: Run pr27228.
1356 * testsuite/gas/elf/pr27228.d: New file.
1357 * testsuite/gas/elf/pr27228.s: Likewise.
1358
68fcee4f
AM
13592021-01-24 Alan Modra <amodra@gmail.com>
1360
1361 PR 27228
1362 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
1363 is defined.
1364
be07043e
AM
13652021-01-21 Alan Modra <amodra@gmail.com>
1366
1367 PR 27221
1368 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
1369 line number info when gas is generating it.
1370 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
1371 * testsuite/gas/m68hc11/indexed12.d: Likewise.
1372 * testsuite/gas/elf/elf.exp: Don't run warn-2.
1373 * gas/testsuite/gas/elf/warn-2.s: Delete.
1374
498ff032
AM
13752021-01-21 Alan Modra <amodra@gmail.com>
1376
1377 PR 27218
1378 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
1379 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
1380 error for negative file numbers.
1381
4bd7c902
AM
13822021-01-20 Alan Modra <amodra@gmail.com>
1383
1384 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
1385 * testsuite/gas/ppc/test1elf32.d: Likewise.
1386 * testsuite/gas/ppc/test1elf64.d: Likewise.
1387
705989f1
L
13882021-01-18 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 PR gas/27195
1391 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
1392 needed.
1393 (dwarf2_directive_filename): Likewise.
1394 (dwarf2_directive_loc): Likewise.
1395 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
1396 * testsuite/gas/lns/lns-diag-1.l: Remove the
1397 "Error: file number less than one" errors.
1398
44365e88
AM
13992021-01-18 Alan Modra <amodra@gmail.com>
1400
1401 PR 27198
1402 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
1403 * testsuite/gas/i386/pr27198.d,
1404 * gas/testsuite/gas/i386/pr27198.err,
1405 * gas/testsuite/gas/i386/pr27198.s: New test.
1406 * gas/testsuite/gas/i386/i386.exp: Run it.
1407
1942a048
NC
14082021-01-15 Nelson Chu <nelson.chu@sifive.com>
1409
1410 * config/tc-riscv.c: Indent and GNU coding standards tidy,
1411 also aligned the code.
1412 * config/tc-riscv.h: Likewise.
1413
b800637e
NC
14142021-01-15 Nelson Chu <nelson.chu@sifive.com>
1415
1416 * config/tc-riscv.c: Error and warning messages tidy.
1417 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
1418 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1419 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1420 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1421 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1422 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1423 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1424
dcd709e0
NC
14252021-01-15 Nelson Chu <nelson.chu@sifive.com>
1426
1427 * config/tc-riscv.c: Comments tidy and improvement. Also update
1428 comment "fallthru" to "Fall through" that end with a period and
1429 two spaces.
1430
5fda40b2
MF
14312021-01-14 Mike Frysinger <vapier@gentoo.org>
1432
1433 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
1434 Delete warning that these are only available with ELF targets.
1435 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
1436 * read.c (potable): ... here.
1437
abad2815
MF
14382021-01-14 Mike Frysinger <vapier@gentoo.org>
1439
1440 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
1441 * Makefile.in: Regenerated.
1442
adb0bd8f
MF
14432021-01-14 Mike Frysinger <vapier@gentoo.org>
1444
1445 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
1446 (parse_int): Mark char_bag const.
1447
844bf810
L
14482021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1449
1450 PR gas/27178
1451 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
1452 Don't generate GOT_symbol for PLT relocations.
1453 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
1454 * testsuite/gas/i386/no-got.d: New file.
1455 * testsuite/gas/i386/no-got.s: Likewise.
1456 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
1457 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
1458
5347ed60
AM
14592021-01-13 Alan Modra <amodra@gmail.com>
1460
1461 * Makefile.in: Regenerate.
1462 * Makefile.in: Regenerate.
1463
d546b610
L
14642021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1465
1466 PR binutils/26792
1467 * configure.ac: Use GNU_MAKE_JOBSERVER.
1468 * aclocal.m4: Regenerated.
1469 * configure: Likewise.
1470
6d104cac
NC
14712021-01-12 Nick Clifton <nickc@redhat.com>
1472
1473 * po/fr.po: Updated French translation.
1474
83b33c6c
L
14752021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1476
1477 PR ld/27173
1478 * configure: Regenerated.
1479
82c70b08
KT
14802021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1481
1482 * NEWS: Remove CSRE.
1483 * config/tc-aarch64.c (parse_csr_operand): Delete.
1484 (parse_operands): Delete handling of
1485 AARCH64_OPND_CSRE_CSR.
1486 (aarch64_features): Remove csre.
1487 * doc/c-aarch64.texi: Remove CSRE.
1488 * testsuite/gas/aarch64/csre.d: Delete.
1489 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
1490 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
1491 * testsuite/gas/aarch64/csre_csr.s: Likewise.
1492 * testsuite/gas/aarch64/csre_csr.d: Likewise.
1493 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
1494 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
1495 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
1496
a8aa72b9
NC
14972021-01-11 Nick Clifton <nickc@redhat.com>
1498
1499 * po/uk.po: Updated Ukranian translation.
1500
a4966cd9
L
15012021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1502
1503 * configure: Regenerated.
1504
573fe3fb
NC
15052021-01-09 Nick Clifton <nickc@redhat.com>
1506
1507 * configure: Regenerate.
1508 * po/gas.pot: Regenerate.
1509
055bc77a
NC
15102021-01-09 Nick Clifton <nickc@redhat.com>
1511
1512 * 2.36 release branch crated.
1513
aae7fcb8
PB
15142021-01-08 Peter Bergner <bergner@linux.ibm.com>
1515
1516 * testsuite/gas/ppc/rop-checks.d,
1517 * testsuite/gas/ppc/rop-checks.l,
1518 * testsuite/gas/ppc/rop-checks.s,
1519 * testsuite/gas/ppc/rop.d,
1520 * testsuite/gas/ppc/rop.s: New tests.
1521 * testsuite/gas/ppc/ppc.exp: Run them.
1522
64307045
AM
15232021-01-09 Alan Modra <amodra@gmail.com>
1524
1525 * configure: Regenerate.
1526
f4782128
ST
15272021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1528
1529 * configure: Regenerate.
1530
d1bcae83
L
15312021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1532
1533 PR 27109
1534 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
1535 section symbol.
1536 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
1537 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
1538 on the section symbol.
1539 (set_symtab): Don't generate unused section symbols.
1540 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
1541 on the section symbol.
1542 * config/obj-elf.c (elf_adjust_symtab): Call
1543 symbol_mark_used_in_reloc on the group signature symbol.
1544 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
1545 from expected output.
1546 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
1547 is_elf_unused_section_symbols.
1548 * testsuite/gas/elf/section2.e: Updated.
1549 * testsuite/gas/elf/section2.e-unused: New file.
1550 * testsuite/gas/elf/symver.d: Remove unused section symbols.
1551 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
1552 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1553 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1554 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1555 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1556 * testsuite/gas/i386/size-1.d: Likewise.
1557 * testsuite/gas/i386/size-3.d: Likewise.
1558 * testsuite/gas/i386/svr4.d: Likewise.
1559 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1560 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1561 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1562 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1563
aa881ecd
PT
15642021-01-07 Philipp Tomsich <prt@gnu.org>
1565
1566 * config/tc-riscv.c (riscv_multi_subset_supports): Added
1567 INSN_CLASS_ZIHINTPAUSE.
1568 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
1569 the pause hint instruction.
1570 * testsuite/gas/riscv/pause.s: Likewise.
1571
2652cfad
CXW
15722021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1573 Jim Wilson <jimw@sifive.com>
1574 Andrew Waterman <andrew@sifive.com>
1575 Maxim Blinov <maxim.blinov@embecosm.com>
1576 Kito Cheng <kito.cheng@sifive.com>
1577 Nelson Chu <nelson.chu@sifive.com>
1578
1579 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
1580 (riscv_get_default_ext_version): Do not check the default_isa_spec when
1581 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
1582 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
1583 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
1584 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
1585
85f55c2b
AM
15862021-01-06 Alan Modra <amodra@gmail.com>
1587
1588 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
1589
22206e84
AM
15902021-01-06 Alan Modra <amodra@gmail.com>
1591
1592 * testsuite/gas/macros/app1.d: xfail tic30.
1593 * testsuite/gas/macros/app2.d: Likewise.
1594 * testsuite/gas/macros/app3.d: Likewise.
1595 * testsuite/gas/macros/app4.d: Likewise.
1596
286d2f2c
MC
15972021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1598
1599 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
1600 * doc/c-riscv.texi: Likewise.
1601
f36ce378
MC
16022021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1603
1604 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
1605 to littleriscv.
1606 * testsuite/gas/riscv/li64.d: Likewise.
1607 * testsuite/gas/riscv/lla32.d: Likewise.
1608 * testsuite/gas/riscv/lla64.d: Likewise.
1609 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
1610 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
1611 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
1612 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
1613 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
1614 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
1615 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
1616
fbc09e7a
MC
16172021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1618
1619 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
1620 elf32-bigriscv.
1621 (install_insn): Always write instructions as little endian.
1622 (riscv_make_nops): Likewise.
1623 (md_convert_frag_branch): Likewise.
1624 (md_number_to_chars): Write data in target endianness.
1625 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
1626 (md_parse_option): Handle the endian options.
1627 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
1628 already defined.
1629 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
1630
cd6d537c
L
16312021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1632
1633 PR ld/26256
1634 * config/obj-elf.c (obj_elf_change_section): Also filter out
1635 SHF_LINK_ORDER.
1636
dd933805
AM
16372021-01-04 Alan Modra <amodra@gmail.com>
1638
1639 PR 27102
1640 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
1641 message and register symbol error message.
1642
90320e40
AM
16432021-01-04 Alan Modra <amodra@gmail.com>
1644
1645 PR 27101
1646 * read.c (s_align): Use a large enough type for "align" to hold
1647 the result of get_absolute_expression.
1648
f9a6a8f0
AM
16492021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1650
1651 * config/tc-i386.c: Correct comment spelling.
1652 * config/tc-riscv.c: Likewise.
1653 * config/tc-s390.c: Correct comment grammar.
1654 * doc/c-i386.texi: Correct spelling.
1655 * doc/c-s390.texi: Correct grammar.
1656
250d07de
AM
16572021-01-01 Alan Modra <amodra@gmail.com>
1658
1659 Update year range in copyright notice of all files.
1660
64d05a43
HPN
16612021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1662
1663 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
1664
c2795844 1665For older changes see ChangeLog-2020
3499769a 1666\f
c2795844 1667Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1668
1669Copying and distribution of this file, with or without modification,
1670are permitted in any medium without royalty provided the copyright
1671notice and this notice are preserved.
1672
1673Local Variables:
1674mode: change-log
1675left-margin: 8
1676fill-column: 74
1677version-control: never
1678End: