Fix ARm assembler so that it rejects invalid immediate values for the Thumb ORR instr...
[external/binutils.git] / gas / ChangeLog
1 2018-02-13  Nick Clifton  <nickc@redhat.com>
2
3         PR 22773
4         * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
5         instruction before assuming that it is a MOV instruction.
6         * testsuite/gas/arm/pr22773.s: New test.
7         * testsuite/gas/arm/pr22773.d: New test driver.
8         * testsuite/gas/arm/pr22773.l: New expected output.
9
10 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
11
12         PR gas/22791
13         * config/tc-i386.c (need_plt32_p): New function.
14         (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
15         (md_estimate_size_before_relax): Likewise.
16         * testsuite/gas/i386/reloc64.d: Updated.
17         * testsuite/gas/i386/x86-64-jump.d: Likewise.
18         * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
19         * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
20         * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
21         * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
22         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
23         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
24
25 2018-02-13  Maciej W. Rozycki  <macro@mips.com>
26
27         * testsuite/gas/mips/loongson-3a-2.d: Rename test.
28
29 2018-02-13  Nick Clifton  <nickc@redhat.com>
30
31         PR 22823
32         * config/obj-elf.c (elf_pseudo_table): Remove now redundant
33         casts.
34         (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
35         (obj_elf_vtable_inherit): New stub function that calls
36         obj_elf_get_vtable_inherit.
37         (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
38         (obj_elf_vtable_entry): New stub function that calls
39         obj_elf_get_vtable_entry.
40         * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
41         (obj_elf_vtable_entry) Likewise.
42         (obj_elf_get_vtable_inherit) Likewise.
43         (obj_elf_get_vtable_entry) Likewise.
44         * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
45         * config/tc-i386c (md_pseudo_table): Likewise.
46         * config/tc-hppa.c (pa_vtable_entry): Call
47         obj_elf_get_vtable_entry.
48         (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
49         * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
50         with call to dwarf2_get_filename.
51         * dwarf2dbg.c (dwarf2_directive_file): Rename to
52         dwarf2_directive_filename.
53         (dwarf2_directive_file): New stub function that calls
54         dwarf2_directive_filename.
55         * dwarf2dbg.h: Prototype dwarf2_directive_filename.
56
57 2018-02-12  Maciej W. Rozycki  <macro@mips.com>
58
59         * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
60         `as' flags.
61
62 2018-02-12  Henry Wong <henry@stuffedcow.net>
63
64         * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
65         * testsuite/gas/mips/r6-n32.d: Likewise.
66         * testsuite/gas/mips/r6-n64.d: Likewise.
67
68 2018-02-12  Nick Clifton  <nickc@redhat.com>
69
70         * po/ru.po: Updated Russian translation.
71
72 2018-02-08  Alan Modra  <amodra@gmail.com>
73
74         PR 22819
75         * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
76         (ppc_frag_check): Likewise.
77         * testsuite/gas/ppc/misalign.d,
78         * testsuite/gas/ppc/misalign.l,
79         * testsuite/gas/ppc/misalign.s: New test.
80         * testsuite/gas/ppc/misalign2.d,
81         * testsuite/gas/ppc/misalign2.s: New test.
82         * testsuite/gas/ppc/ppc.exp: Run them.
83
84 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
85
86         * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
87         `expr' parameter to `ep'.
88
89 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
90
91         * testsuite/gas/mips/reginfo-2.d: New test.
92         * testsuite/gas/mips/reginfo-2-n32.d: New test.
93         * testsuite/gas/mips/reginfo-2.l: New test stderr output.
94         * testsuite/gas/mips/reginfo-2.s: New test source.
95         * testsuite/gas/mips/mips.exp: Run the new tests.
96
97 2018-02-05  Nick Clifton  <nickc@redhat.com>
98
99         * po/ru.po: Updated Russian translation.
100
101 2018-01-31  Alan Modra  <amodra@gmail.com>
102
103         PR 22714
104         * app.c (last_char): New static var.
105         (struct app_save): Add last_char field.
106         (app_push, app_pop): Handle it.
107         (do_scrub_chars): Use last_char in test for "\@".  Set last_char.
108
109 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
110
111         PR gas/22738
112         * config/tc-sparc.h (sparc_mach): Declare.
113         (TARGET_MACH): Define to above.
114         * config/tc-sparc.c (sparc_mach): New function.
115         (sparc_md_end): Minor tweak.
116
117 2018-01-29  Nick Clifton  <nickc@redhat.com>
118
119         * po/ru.po: Updated Russian translation.
120
121 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
122
123         * configure.tgt: Use generic emulation for `mips-*-windiss',
124         overriding the blanket choice made for `*-*-windiss'.
125
126 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
127
128         * configure.tgt: Use `mips-*-sysv4*' rather than
129         `mips-*-sysv4*MP*'.
130
131 2018-01-24  Renlin Li  <renlin.li@arm.com>
132
133         * config/tc-aarch64.c (reloc_table): add entries for
134         BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
135         BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
136         BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
137         BFD_RELOC_AARCH64_MOVW_PREL_G3.
138         (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
139         (md_apply_fix): Likewise
140         * testsuite/gas/aarch64/prel_g0.s: New.
141         * testsuite/gas/aarch64/prel_g0.d: New.
142         * testsuite/gas/aarch64/prel_g0_nc.s: New.
143         * testsuite/gas/aarch64/prel_g0_nc.d: New.
144         * testsuite/gas/aarch64/prel_g1.s: New.
145         * testsuite/gas/aarch64/prel_g1.d: New.
146         * testsuite/gas/aarch64/prel_g1_nc.s: New.
147         * testsuite/gas/aarch64/prel_g1_nc.d: New.
148         * testsuite/gas/aarch64/prel_g2.s: New.
149         * testsuite/gas/aarch64/prel_g2.d: New.
150         * testsuite/gas/aarch64/prel_g2_nc.s: New.
151         * testsuite/gas/aarch64/prel_g2_nc.d: New.
152         * testsuite/gas/aarch64/prel_g3.s: New.
153         * testsuite/gas/aarch64/prel_g3.d: New.
154
155 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
156
157         * configure.ac: Also set `mips_default_abi' to N32_ABI for
158         `mips64*-ps2-elf*'.
159         * configure: Regenerate.
160
161 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
162
163         * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
164         enum value.
165
166 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
167
168         * config/tc-i386.c (cpu_arch): Add .pconfig.
169         * doc/c-i386.texi: Document .pconfig.
170         * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
171         * testsuite/gas/i386/pconfig-intel.d: New test.
172         * testsuite/gas/i386/pconfig.d: Likewise.
173         * testsuite/gas/i386/pconfig.s: Likewise.
174         * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
175         * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
176         * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
177
178 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
179
180         * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
181         * doc/c-i386.texi: Document .wbnoinvd.
182         * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
183         * testsuite/gas/i386/wbnoinvd-intel.d: New test.
184         * testsuite/gas/i386/wbnoinvd.d: Likewise.
185         * testsuite/gas/i386/wbnoinvd.s: Likewise.
186         * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
187         * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
188         * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
189
190 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
191
192         * config/tc-mips.c (md_show_usage): Correctly indicate the
193         configuration-specific default ABI.
194
195 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
196
197         * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
198         `-mno-mips16e2' options.
199
200 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
201
202         * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
203         Correct syntax of the `.set nomips16e2' directive description.
204
205 2018-01-22  Oleg Endo  <olegendo@gcc.gnu.org>
206
207         PR 22737
208         * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
209         * testsuite/gas/rx/pr22737.s: New test.
210         * testsuite/gas/rx/pr22737.d: Likewise.
211         * testsuite/gas/rx/rx.exp: Run the new test.
212
213 2018-01-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
214
215         * config/tc-arm.c (ToC macro): Remove spurious comment.
216         (ToU macro): Likewise.
217
218 2018-01-17  Jim Wilson  <jimw@sifive.com>
219
220         * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
221         (riscv_ip) <'z'>: New.
222
223 2018-01-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
224
225         * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
226         (cpu_noarch): Add noibt, noshstk.
227         (parse_insn): Change cpucet to cpuibt.
228         * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
229         * testsuite/gas/i386/cet-ibt-inval.l: New test.
230         * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
231         * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
232         * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
233         * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
234         * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
235         * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
236         * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
237
238 2018-01-16  Nick Clifton  <nickc@redhat.com>
239
240         * po/fr.po: Updated French translation.
241
242 2018-01-15  Jim Wilson  <jimw@sifive.com>
243
244         * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
245         * testsuite/gas/riscv/c-zero-imm.d: Likewise.
246
247 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
248
249         * config/tc-arm.c (ToC): Define macro.
250         (ToU): Likewise.
251         (insns): Make use of above macros for new instructions introduced in
252         Armv8-M.
253
254 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
255
256         * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
257         and vlstm conditionally executable and reindent parameters.
258         * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
259         aforementionned instructions.
260
261 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
262
263         * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
264         profile architecture or if in autodetection mode.  Clarify that
265         deprecation is for performance reason and concerns Armv8-A and Armv8-R.
266         * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
267         message.
268         * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
269         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
270         * testsuite/gas/arm/udf.l: Likewise.
271         * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
272
273 2018-01-15  Nick Clifton  <nickc@redhat.com>
274
275         * po/uk.po: Updated Ukranian translation.
276
277 2018-01-13  Nick Clifton  <nickc@redhat.com>
278
279         * po/gas.pot: Regenerated.
280
281 2018-01-13  Nick Clifton  <nickc@redhat.com>
282
283         * configure: Regenerate.
284
285 2018-01-13  Nick Clifton  <nickc@redhat.com>
286
287         2.30 branch created.
288         * NEWS: Add marker for 2.30.
289
290 2018-01-12  Gunther Nikl  <gnikl@users.sourceforge.net>
291
292         * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
293         define to 0 and 1. Remove a dangling reference to "AMD 29000"
294         in a comment.
295
296 2018-01-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
297
298         * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
299         * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
300         * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
301         * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
302         * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
303         * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
304         * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
305         * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
306         tests.
307         * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
308         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
309         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
310         * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
311         * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
312         * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
313         * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
314         * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
315
316 2018-01-11  Alan Modra  <amodra@gmail.com>
317
318         * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
319         positive "‘profile’ may be used uninitialized".
320
321 2018-01-10  Jan Beulich  <jbeulich@suse.com>
322
323         * testsuite/gas/i386/avx512_4fmaps.s,
324         testsuite/gas/i386/avx512_4fmaps_vl.s,
325         testsuite/gas/i386/x86-64-avx512_4fmaps.s,
326         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
327         Disp8 forms (and the transition happening at the right
328         boundary).
329         * testsuite/gas/i386/avx512_4fmaps.d,
330         testsuite/gas/i386/avx512_4fmaps-intel.d,
331         testsuite/gas/i386/avx512_4fmaps_vl.d,
332         testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
333         testsuite/gas/i386/x86-64-avx512_4fmaps.d,
334         testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
335         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
336         testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
337         expectations.
338
339 2018-01-10  Jan Beulich  <jbeulich@suse.com>
340
341         * testsuite/gas/i386/avx512bw.s,
342         testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
343         operands.
344         * testsuite/gas/i386/avx512bw-intel.d,
345         testsuite/gas/i386/avx512bw.d,
346         testsuite/gas/i386/avx512bw_vl-intel.d.
347         testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
348
349 2018-01-09  Jim Wilson  <jimw@sifive.com>
350
351         * testsuite/gas/riscv/auipc-x0.d: New.
352         * testsuite/gas/riscv/auipc-x0.s: New.
353
354 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
355
356         * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
357         in Arm execution state, and Armv6T2 and above in Thumb execution
358         state.
359         * testsuite/gas/arm/csdb.s: New.
360         * testsuite/gas/arm/csdb.d: New.
361         * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
362         * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
363
364 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
365
366         * testsuite/gas/aarch64/system.d: Update expected results to expect
367         CSDB for hint 0x14.
368
369 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
370
371         PR gas/22681
372         * testsuite/gas/i386/i386.exp: Run x86-64-movd and
373         x86-64-movd-intel.
374         * testsuite/gas/i386/x86-64-movd-intel.d: New file.
375         * testsuite/gas/i386/x86-64-movd.d: Likewise.
376         * testsuite/gas/i386/x86-64-movd.s: Likewise.
377
378 2018-01-08  Nick Clifton  <nickc@redhat.com>
379
380         PR 22553
381         * doc/c-i386.texi (i386-Directives): Document the .largecomm
382         directive.
383
384 2018-01-04  Jim Wilson  <jimw@sifive.com>
385
386         * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
387         * testsuite/gas/riscv/priv-reg.d: Likewise.
388
389 2018-01-03  Alan Modra  <amodra@gmail.com>
390
391         Update year range in copyright notice of all files.
392
393 2018-01-02  Nick Clifton  <nickc@redhat.com>
394
395         PR 18119
396         * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
397         version of ARM MRS instruction.
398
399 For older changes see ChangeLog-2017
400 \f
401 Copyright (C) 2018 Free Software Foundation, Inc.
402
403 Copying and distribution of this file, with or without modification,
404 are permitted in any medium without royalty provided the copyright
405 notice and this notice are preserved.
406
407 Local Variables:
408 mode: change-log
409 left-margin: 8
410 fill-column: 74
411 version-control: never
412 End: