RISC-V: Add new option -mrelax/-mno-relax.
[external/binutils.git] / gas / ChangeLog
1 2018-04-20  Kito Cheng  <kito.cheng@gmail.com>
2
3         * config/tc-riscv.c (options): Add OPTION_RELAX and
4         OPTION_NO_RELAX.
5         (md_longopts): New option -mrelax and -mno-relax.
6         (md_parse_option): Handle -mrelax and -mno-relax.
7         * doc/c-riscv.texi: Document for -mrelax and -mno-relax.
8         * testsuite/gas/riscv/no-relax-reloc.d: New.
9         * testsuite/gas/riscv/no-relax-reloc.s: New.
10         * testsuite/gas/riscv/relax-reloc.d: New.
11         * testsuite/gas/riscv/relax-reloc.s: New.
12
13 2018-04-20  Nick Clifton  <nickc@redhat.com>
14
15         * po/es.po: Updated Spanish translation.
16
17 2018-04-18  Alan Modra  <amodra@gmail.com>
18
19         * Makefile.am: Remove support for assorted i386 aout and coff targets.
20         * config/obj-elf.c: Likewise.
21         * config/tc-i386.h: Likewise.
22         * configure.ac: Likewise.
23         * configure.tgt: Likewise.
24         * config/te-dynix.h: Delete.
25         * config/te-i386aix.h: Delete.
26         * config/te-mach.h: Delete.
27         * Makefile.in: Regenerate.
28         * config.in: Regenerate.
29         * configure: Regenerate.
30         * po/POTFILES.in: Regenerate.
31
32 2018-04-18  Alan Modra  <amodra@gmail.com>
33
34         * configure.tgt: Remove *-*-bsd* entry.
35
36 2018-04-17 Andrew Sadek  <andrew.sadek.se@gmail.com>
37
38         Microblaze Target: PIC data text relative
39
40         * gas/config/tc-microblaze.c (Handle new relocs directives in
41         assembler): Handle new relocs from compiler output.
42         (imm_types): add new imm types for data text relative addressing
43         TEXT_OFFSET, TEXT_PC_OFFSET
44         (md_convert_frag): conversion for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
45         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
46         (md_apply_fix): apply fix for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
47         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
48         (md_estimate_size_before_relax): estimate size for
49         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
50         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
51         (tc_gen_reloc): generate relocations for
52         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
53         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
54
55 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
56
57         * testsuite/gas/i386/nops.s: Revert back deleted lines and
58         change encoding to 0x0f1c /1 to map to NOP.
59         * testsuite/gas/i386/x86-64-nops.s: Likewise.
60         * testsuite/gas/i386/nops.d: Likewise.
61         * testsuite/gas/i386/x86-64-nops.d: Likewise.
62         * testsuite/gas/i386/ilp32/x86-64-nops.d: Likewis.
63
64 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
65
66         * config/tc-i386.c (cpu_arch): Add .cldemote.
67         * doc/c-i386.texi: Document cldemote/.cldemote.
68         * testsuite/gas/i386/cldemote-intel.d: New.
69         * testsuite/gas/i386/cldemote.d: Likewise.
70         * testsuite/gas/i386/cldemote.s: Likewise.
71         * testsuite/gas/i386/i386.exp: Run new tests.
72         * testsuite/gas/i386/x86-64-cldemote-intel.d: New.
73         * testsuite/gas/i386/x86-64-cldemote.d: Likewise.
74         * testsuite/gas/i386/x86-64-cldemote.s: Likewise.
75         * testsuite/gas/i386/ilp32/x86-64-nops.d: Remove 0x0f1c
76         NOP encoding that maps to cldemote.
77         * testsuite/gas/i386/nops.d: Likewise.
78         * testsuite/gas/i386/nops.s: Likewise.
79         * testsuite/gas/i386/x86-64-nops.d: Likewise.
80         * testsuite/gas/i386/x86-64-nops.s: Likewise.
81
82 2018-04-16  Nick Clifton  <nickc@redhat.com>
83
84         PR 23054
85         * cond.c (s_ifsef): Replace use of obstack_copy with obstack_alloc
86         followed by memcpy.
87         (s_if, s_ifb, s_ifc, s_ifeqs): Likewise.
88         * obj-elf.c (elf_adjust_symtab): Check for local symbols before
89         attempting to dereference the sy_next field of a symbol.
90         * stabs.c (get_stab_string_offset): Fail if there is no string
91         following the stab directive.
92
93 2018-04-16  Alan Modra  <amodra@gmail.com>
94
95         * Makefile.am: Remove arm-epoc-pe support.
96         * config/tc-arm.h: Likewise.
97         * configure.tgt: Likewise.
98         * testsuite/gas/all/gas.exp: Likewise.
99         * testsuite/gas/arm/local_label_coff.d: Likewise.
100         * testsuite/gas/arm/undefined.d: Likewise.
101         * testsuite/gas/arm/undefined_coff.d: Likewise.
102         * config/te-epoc-pe.h: Delete.
103         * Makefile.in: Regenerate.
104         * po/POTFILES.in: Regenerate.
105
106 2018-04-16  Alan Modra  <amodra@gmail.com>
107
108         * Makefile.am: Remove sparc-aout and sparc-coff support.
109         * config/obj-coff.h: Likewise.
110         * config/tc-sparc.c: Likewise.
111         * config/tc-sparc.h: Likewise.
112         * configure.tgt: Likewise.
113         * config/te-sparcaout.h: Delete.
114         * testsuite/gas/sun4/addend.d: Delete.
115         * testsuite/gas/sun4/addend.exp: Delete.
116         * testsuite/gas/sun4/addend.s: Delete.
117         * Makefile.in: Regenerate.
118         * po/POTFILES.in: Regenerate.
119
120 2018-04-16  Alan Modra  <amodra@gmail.com>
121
122         * Makefile.am: Remove m68k-aout and m68k-coff support.
123         * config/tc-m68k.c: Likewise.
124         * config/tc-m68k.h: Likewise.
125         * configure.ac: Likewise.
126         * configure.tgt: Likewise.
127         * testsuite/gas/all/weakref1u.d: Likewise.
128         * testsuite/gas/m68k/all.exp: Likewise.
129         * testsuite/gas/m68k/br-isaa.d: Likewise.
130         * testsuite/gas/m68k/br-isab.d: Likewise.
131         * testsuite/gas/m68k/br-isac.d: Likewise.
132         * config/te-psos.h: Delete.
133         * config/te-sun3.h: Delete.
134         * testsuite/gas/m68k-coff/gas.exp: Delete.
135         * testsuite/gas/m68k-coff/p2389.s: Delete.
136         * testsuite/gas/m68k-coff/p2389a.s: Delete.
137         * testsuite/gas/m68k-coff/p2430.s: Delete.
138         * testsuite/gas/m68k-coff/p2430a.s: Delete.
139         * testsuite/gas/m68k-coff/t1.s: Delete.
140         * testsuite/gas/m68k/p3041.d: Delete.
141         * testsuite/gas/m68k/p3041.s: Delete.
142         * testsuite/gas/m68k/p3041data.d: Delete.
143         * testsuite/gas/m68k/p3041data.s: Delete.
144         * testsuite/gas/m68k/p3041pcrel.d: Delete.
145         * testsuite/gas/m68k/p3041pcrel.s: Delete.
146         * testsuite/gas/m68k/t2.d: Delete.
147         * Makefile.in: Regenerate.
148         * config.in: Regenerate.
149         * configure: Regenerate.
150         * po/POTFILES.in: Regenerate.
151
152 2018-04-16  Alan Modra  <amodra@gmail.com>
153
154         * Makefile.am: Remove sh5 and sh64 support.
155         * config/tc-sh.c: Likewise.
156         * configure.tgt: Likewise.
157         * doc/Makefile.am: Likewise.
158         * doc/as.texinfo: Likewise.
159         * testsuite/gas/cfi/cfi.exp: Likewise.
160         * testsuite/gas/sh/basic.exp: Likewise.
161         * config/tc-sh64.c: Delete.
162         * config/tc-sh64.h: Delete.
163         * doc/c-sh64.texi: Delete.
164         * testsuite/gas/sh/sh64/abi-32.d: Delete.
165         * testsuite/gas/sh/sh64/abi-32.s: Delete.
166         * testsuite/gas/sh/sh64/abi-64.d: Delete.
167         * testsuite/gas/sh/sh64/abi-64.s: Delete.
168         * testsuite/gas/sh/sh64/basic-1.d: Delete.
169         * testsuite/gas/sh/sh64/basic-1.s: Delete.
170         * testsuite/gas/sh/sh64/case-1.d: Delete.
171         * testsuite/gas/sh/sh64/case-1.s: Delete.
172         * testsuite/gas/sh/sh64/case-noexp-1.d: Delete.
173         * testsuite/gas/sh/sh64/crange1-1.d: Delete.
174         * testsuite/gas/sh/sh64/crange1-2.d: Delete.
175         * testsuite/gas/sh/sh64/crange1.s: Delete.
176         * testsuite/gas/sh/sh64/crange2-1.d: Delete.
177         * testsuite/gas/sh/sh64/crange2-2.d: Delete.
178         * testsuite/gas/sh/sh64/crange2-noexp-1.d: Delete.
179         * testsuite/gas/sh/sh64/crange2.s: Delete.
180         * testsuite/gas/sh/sh64/crange3-1.d: Delete.
181         * testsuite/gas/sh/sh64/crange3.s: Delete.
182         * testsuite/gas/sh/sh64/crange4-1.d: Delete.
183         * testsuite/gas/sh/sh64/crange4.s: Delete.
184         * testsuite/gas/sh/sh64/crange5-1.d: Delete.
185         * testsuite/gas/sh/sh64/crange5.s: Delete.
186         * testsuite/gas/sh/sh64/creg-1.d: Delete.
187         * testsuite/gas/sh/sh64/creg-1.s: Delete.
188         * testsuite/gas/sh/sh64/creg-2.d: Delete.
189         * testsuite/gas/sh/sh64/creg-2.s: Delete.
190         * testsuite/gas/sh/sh64/datal-1.s: Delete.
191         * testsuite/gas/sh/sh64/datal-2.d: Delete.
192         * testsuite/gas/sh/sh64/datal-2.s: Delete.
193         * testsuite/gas/sh/sh64/datal-3.s: Delete.
194         * testsuite/gas/sh/sh64/datal32-1.d: Delete.
195         * testsuite/gas/sh/sh64/datal32-3.d: Delete.
196         * testsuite/gas/sh/sh64/datal64-1.d: Delete.
197         * testsuite/gas/sh/sh64/datal64-3.d: Delete.
198         * testsuite/gas/sh/sh64/eh-1.d: Delete.
199         * testsuite/gas/sh/sh64/eh-1.s: Delete.
200         * testsuite/gas/sh/sh64/endian-1.d: Delete.
201         * testsuite/gas/sh/sh64/endian-1.s: Delete.
202         * testsuite/gas/sh/sh64/endian-2.d: Delete.
203         * testsuite/gas/sh/sh64/endian-2.s: Delete.
204         * testsuite/gas/sh/sh64/err-1.s: Delete.
205         * testsuite/gas/sh/sh64/err-2.s: Delete.
206         * testsuite/gas/sh/sh64/err-3.s: Delete.
207         * testsuite/gas/sh/sh64/err-4.s: Delete.
208         * testsuite/gas/sh/sh64/err-abi-32.s: Delete.
209         * testsuite/gas/sh/sh64/err-abi-64.s: Delete.
210         * testsuite/gas/sh/sh64/err-dsp.s: Delete.
211         * testsuite/gas/sh/sh64/err-movi-noexp-1.s: Delete.
212         * testsuite/gas/sh/sh64/err-noexp-cmd1.s: Delete.
213         * testsuite/gas/sh/sh64/err-pt-1.s: Delete.
214         * testsuite/gas/sh/sh64/err-pt32-cmd1.s: Delete.
215         * testsuite/gas/sh/sh64/err-pt32-cmd2.s: Delete.
216         * testsuite/gas/sh/sh64/err-pt32-cmd3.s: Delete.
217         * testsuite/gas/sh/sh64/err-ptb-1.s: Delete.
218         * testsuite/gas/sh/sh64/err-ptb-2.s: Delete.
219         * testsuite/gas/sh/sh64/err.exp: Delete.
220         * testsuite/gas/sh/sh64/immexpr1.s: Delete.
221         * testsuite/gas/sh/sh64/immexpr2.s: Delete.
222         * testsuite/gas/sh/sh64/immexpr32-1.d: Delete.
223         * testsuite/gas/sh/sh64/immexpr32-2.d: Delete.
224         * testsuite/gas/sh/sh64/immexpr64-1.d: Delete.
225         * testsuite/gas/sh/sh64/immexpr64-2.d: Delete.
226         * testsuite/gas/sh/sh64/lineno.d: Delete.
227         * testsuite/gas/sh/sh64/lineno.s: Delete.
228         * testsuite/gas/sh/sh64/localcom-1.d: Delete.
229         * testsuite/gas/sh/sh64/localcom-1.s: Delete.
230         * testsuite/gas/sh/sh64/mix-1.d: Delete.
231         * testsuite/gas/sh/sh64/mix-1.s: Delete.
232         * testsuite/gas/sh/sh64/mix-noexp-1.d: Delete.
233         * testsuite/gas/sh/sh64/movi-1.s: Delete.
234         * testsuite/gas/sh/sh64/movi-2.s: Delete.
235         * testsuite/gas/sh/sh64/movi-3.d: Delete.
236         * testsuite/gas/sh/sh64/movi-3.s: Delete.
237         * testsuite/gas/sh/sh64/movi32-1.d: Delete.
238         * testsuite/gas/sh/sh64/movi32-2.d: Delete.
239         * testsuite/gas/sh/sh64/movi32-noexp-2.d: Delete.
240         * testsuite/gas/sh/sh64/movi64-1.d: Delete.
241         * testsuite/gas/sh/sh64/movi64-2.d: Delete.
242         * testsuite/gas/sh/sh64/movi64-2.s: Delete.
243         * testsuite/gas/sh/sh64/movi64-3.d: Delete.
244         * testsuite/gas/sh/sh64/movi64-noexp-2.d: Delete.
245         * testsuite/gas/sh/sh64/pt-1.d: Delete.
246         * testsuite/gas/sh/sh64/pt-1.s: Delete.
247         * testsuite/gas/sh/sh64/pt-2.s: Delete.
248         * testsuite/gas/sh/sh64/pt-noexp-1.d: Delete.
249         * testsuite/gas/sh/sh64/pt32-1.d: Delete.
250         * testsuite/gas/sh/sh64/pt32-noexp-2.d: Delete.
251         * testsuite/gas/sh/sh64/pt64-1.d: Delete.
252         * testsuite/gas/sh/sh64/pt64-32-1.d: Delete.
253         * testsuite/gas/sh/sh64/pt64-32-2.d: Delete.
254         * testsuite/gas/sh/sh64/pt64-noexp-2.d: Delete.
255         * testsuite/gas/sh/sh64/ptc-1.s: Delete.
256         * testsuite/gas/sh/sh64/ptc32-1.d: Delete.
257         * testsuite/gas/sh/sh64/ptc32-noexp-1.d: Delete.
258         * testsuite/gas/sh/sh64/ptc64-1.d: Delete.
259         * testsuite/gas/sh/sh64/ptc64-32-1.d: Delete.
260         * testsuite/gas/sh/sh64/ptc64-noexp-1.d: Delete.
261         * testsuite/gas/sh/sh64/ptext-1.s: Delete.
262         * testsuite/gas/sh/sh64/ptext32-1.d: Delete.
263         * testsuite/gas/sh/sh64/ptext32-noexp-1.d: Delete.
264         * testsuite/gas/sh/sh64/ptext64-1.d: Delete.
265         * testsuite/gas/sh/sh64/ptext64-32-1.d: Delete.
266         * testsuite/gas/sh/sh64/ptext64-noexp-1.d: Delete.
267         * testsuite/gas/sh/sh64/rel-1.s: Delete.
268         * testsuite/gas/sh/sh64/rel-2.s: Delete.
269         * testsuite/gas/sh/sh64/rel-3.s: Delete.
270         * testsuite/gas/sh/sh64/rel-4.s: Delete.
271         * testsuite/gas/sh/sh64/rel-5.s: Delete.
272         * testsuite/gas/sh/sh64/rel32-1.d: Delete.
273         * testsuite/gas/sh/sh64/rel32-2.d: Delete.
274         * testsuite/gas/sh/sh64/rel32-3.d: Delete.
275         * testsuite/gas/sh/sh64/rel32-4.d: Delete.
276         * testsuite/gas/sh/sh64/rel32-5.d: Delete.
277         * testsuite/gas/sh/sh64/rel64-1.d: Delete.
278         * testsuite/gas/sh/sh64/rel64-2.d: Delete.
279         * testsuite/gas/sh/sh64/rel64-3.d: Delete.
280         * testsuite/gas/sh/sh64/rel64-4.d: Delete.
281         * testsuite/gas/sh/sh64/rel64-5.d: Delete.
282         * testsuite/gas/sh/sh64/relax-1.d: Delete.
283         * testsuite/gas/sh/sh64/relax-1.s: Delete.
284         * testsuite/gas/sh/sh64/relax-2.d: Delete.
285         * testsuite/gas/sh/sh64/relax-2.s: Delete.
286         * testsuite/gas/sh/sh64/relax-3.d: Delete.
287         * testsuite/gas/sh/sh64/relax-3.s: Delete.
288         * testsuite/gas/sh/sh64/sh64.exp: Delete.
289         * testsuite/gas/sh/sh64/shift-1.s: Delete.
290         * testsuite/gas/sh/sh64/shift-2.s: Delete.
291         * testsuite/gas/sh/sh64/shift-3.s: Delete.
292         * testsuite/gas/sh/sh64/shift32-1.d: Delete.
293         * testsuite/gas/sh/sh64/shift32-3.d: Delete.
294         * testsuite/gas/sh/sh64/shift32-noexp-3.d: Delete.
295         * testsuite/gas/sh/sh64/shift64-1.d: Delete.
296         * testsuite/gas/sh/sh64/shift64-2.d: Delete.
297         * testsuite/gas/sh/sh64/shift64-3.d: Delete.
298         * testsuite/gas/sh/sh64/shift64-noexp-3.d: Delete.
299         * testsuite/gas/sh/sh64/syntax-1.d: Delete.
300         * testsuite/gas/sh/sh64/syntax-1.s: Delete.
301         * testsuite/gas/sh/sh64/syntax-2.d: Delete.
302         * testsuite/gas/sh/sh64/syntax-2.s: Delete.
303         * testsuite/gas/sh/sh64/ua-1.s: Delete.
304         * testsuite/gas/sh/sh64/ua32-1.d: Delete.
305         * testsuite/gas/sh/sh64/ua64-1.d: Delete.
306         * Makefile.in: Regenerate.
307         * doc/Makefile.in: Regenerate.
308         * po/POTFILES.in: Regenerate.
309
310 2018-04-16  Alan Modra  <amodra@gmail.com>
311
312         * config/tc-sh.c: Remove sh-symbianelf support.
313         * config/tc-sh.h: Likewise.
314         * configure.ac: Likewise.
315         * configure.tgt: Likewise.
316         * testsuite/gas/sh/reg-prefix.d: Likewise.
317         * testsuite/gas/sh/sh2a-pic.d: Likewise.
318         * config.in: Regenerate.
319         * configure: Regenerate.
320
321 2018-04-16  Alan Modra  <amodra@gmail.com>
322
323         * configure.ac: Remove m88k support.
324         * config.in: Regenerate.
325         * configure: Regenerate.
326
327 2018-04-16  Alan Modra  <amodra@gmail.com>
328
329         * Makefile.am: Remove i370 support.
330         * app.c: Likewise.
331         * config/obj-elf.c: Likewise.
332         * configure.tgt: Likewise.
333         * doc/Makefile.am: Likewise.
334         * doc/as.texinfo: Likewise.
335         * testsuite/gas/all/gas.exp: Likewise.
336         * testsuite/gas/elf/warn-2.s: Likewise.
337         * testsuite/gas/lns/lns.exp: Likewise.
338         * config/tc-i370.c: Delete.
339         * config/tc-i370.h: Delete.
340         * doc/c-i370.texi: Delete.
341         * Makefile.in: Regenerate.
342         * doc/Makefile.in: Regenerate.
343         * po/POTFILES.in: Regenerate.
344
345 2018-04-16  Alan Modra  <amodra@gmail.com>
346
347         * config/obj-coff.h: Remove h8500 support.
348
349 2018-04-16  Alan Modra  <amodra@gmail.com>
350
351         * config/obj-coff.h: Remove h8300-coff support.
352         * config/tc-h8300.c: Likewise.
353         * config/tc-h8300.h: Likewise.
354         * testsuite/gas/h8300/h8300.exp: Likewise.
355         * testsuite/gas/h8300/branch-coff.s: Delete.
356         * testsuite/gas/h8300/branchh-coff.s: Delete.
357         * testsuite/gas/h8300/branchs-coff.s: Delete.
358         * testsuite/gas/h8300/ffxx1-coff.d: Delete.
359         * testsuite/gas/h8300/ffxx1-coff.s: Delete.
360         * testsuite/gas/h8300/h8300-coff.exp: Delete.
361
362 2018-04-16  Alan Modra  <amodra@gmail.com>
363
364         * app.c: Remove IEEE 695 support.
365         * symbols.c: Likewise.
366
367 2018-04-16  Alan Modra  <amodra@gmail.com>
368
369         * Makefile.am: Remove netware support.
370         * config/tc-i386.c: Likewise.
371         * configure.tgt: Likewise.
372         * config/te-netware.h: Delete.
373         * Makefile.in: Regenerate.
374         * po/POTFILES.in: Regenerate.
375
376 2018-04-15  H.J. Lu  <hongjiu.lu@intel.com>
377
378         * testsuite/gas/i386/x86-64-waitpkg.s: Add 32-bit registers
379         tests for tpause and umwait.
380         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Updated.
381         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
382
383 2018-04-12  John Darrington  <john@darrington.wattle.id.au>
384
385         * as.c (main): Fail if the output is the same as one of the input
386         files.
387         * testsuite/gas/all/gas.exp: Test the new feature.
388
389 2018-04-12  Nick Clifton  <nickc@redhat.com>
390
391         * po/es.po: Updated Spanish translation.
392         * po/ru.po: Updated Russian translation.
393
394 2018-04-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
395
396         * config/tc-i386.c (cpu_arch): Add WAITPKG.
397         (cpu_noarch): Likewise.
398         * doc/c-i386.texi: Document WAITPKG.
399         * i386/i386.exp: Run WAITPKG tests.
400         * testsuite/gas/i386/waitpkg-intel.d: New test.
401         * testsuite/gas/i386/waitpkg.d: Likewise.
402         * testsuite/gas/i386/waitpkg.s: Likewise.
403         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Likewise.
404         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
405         * testsuite/gas/i386/x86-64-waitpkg.s: Likewise.
406
407 2018-04-11  Alan Modra  <amodra@gmail.com>
408
409         * config/aout_gnu.h: Delete.
410         * config/tc-i860.c: Delete.
411         * config/tc-i860.h: Delete.
412         * config/tc-i960.c: Delete.
413         * config/tc-i960.h: Delete.
414         * doc/c-i860.texi: Delete.
415         * doc/c-i960.texi: Delete.
416         * testsuite/gas/i860/README.i860: Delete.
417         * testsuite/gas/i860/bitwise.d: Delete.
418         * testsuite/gas/i860/bitwise.s: Delete.
419         * testsuite/gas/i860/branch.d: Delete.
420         * testsuite/gas/i860/branch.s: Delete.
421         * testsuite/gas/i860/bte.d: Delete.
422         * testsuite/gas/i860/bte.s: Delete.
423         * testsuite/gas/i860/dir-align01.d: Delete.
424         * testsuite/gas/i860/dir-align01.s: Delete.
425         * testsuite/gas/i860/dir-intel01.d: Delete.
426         * testsuite/gas/i860/dir-intel01.s: Delete.
427         * testsuite/gas/i860/dir-intel02.d: Delete.
428         * testsuite/gas/i860/dir-intel02.s: Delete.
429         * testsuite/gas/i860/dir-intel03-err.l: Delete.
430         * testsuite/gas/i860/dir-intel03-err.s: Delete.
431         * testsuite/gas/i860/dual01.d: Delete.
432         * testsuite/gas/i860/dual01.s: Delete.
433         * testsuite/gas/i860/dual02-err.l: Delete.
434         * testsuite/gas/i860/dual02-err.s: Delete.
435         * testsuite/gas/i860/dual03.d: Delete.
436         * testsuite/gas/i860/dual03.s: Delete.
437         * testsuite/gas/i860/fldst01.d: Delete.
438         * testsuite/gas/i860/fldst01.s: Delete.
439         * testsuite/gas/i860/fldst02.d: Delete.
440         * testsuite/gas/i860/fldst02.s: Delete.
441         * testsuite/gas/i860/fldst03.d: Delete.
442         * testsuite/gas/i860/fldst03.s: Delete.
443         * testsuite/gas/i860/fldst04.d: Delete.
444         * testsuite/gas/i860/fldst04.s: Delete.
445         * testsuite/gas/i860/fldst05.d: Delete.
446         * testsuite/gas/i860/fldst05.s: Delete.
447         * testsuite/gas/i860/fldst06.d: Delete.
448         * testsuite/gas/i860/fldst06.s: Delete.
449         * testsuite/gas/i860/fldst07.d: Delete.
450         * testsuite/gas/i860/fldst07.s: Delete.
451         * testsuite/gas/i860/fldst08.d: Delete.
452         * testsuite/gas/i860/fldst08.s: Delete.
453         * testsuite/gas/i860/float01.d: Delete.
454         * testsuite/gas/i860/float01.s: Delete.
455         * testsuite/gas/i860/float02.d: Delete.
456         * testsuite/gas/i860/float02.s: Delete.
457         * testsuite/gas/i860/float03.d: Delete.
458         * testsuite/gas/i860/float03.s: Delete.
459         * testsuite/gas/i860/float04.d: Delete.
460         * testsuite/gas/i860/float04.s: Delete.
461         * testsuite/gas/i860/form.d: Delete.
462         * testsuite/gas/i860/form.s: Delete.
463         * testsuite/gas/i860/i860.exp: Delete.
464         * testsuite/gas/i860/iarith.d: Delete.
465         * testsuite/gas/i860/iarith.s: Delete.
466         * testsuite/gas/i860/ldst01.d: Delete.
467         * testsuite/gas/i860/ldst01.s: Delete.
468         * testsuite/gas/i860/ldst02.d: Delete.
469         * testsuite/gas/i860/ldst02.s: Delete.
470         * testsuite/gas/i860/ldst03.d: Delete.
471         * testsuite/gas/i860/ldst03.s: Delete.
472         * testsuite/gas/i860/ldst04.d: Delete.
473         * testsuite/gas/i860/ldst04.s: Delete.
474         * testsuite/gas/i860/ldst05.d: Delete.
475         * testsuite/gas/i860/ldst05.s: Delete.
476         * testsuite/gas/i860/ldst06.d: Delete.
477         * testsuite/gas/i860/ldst06.s: Delete.
478         * testsuite/gas/i860/pfam.d: Delete.
479         * testsuite/gas/i860/pfam.s: Delete.
480         * testsuite/gas/i860/pfmam.d: Delete.
481         * testsuite/gas/i860/pfmam.s: Delete.
482         * testsuite/gas/i860/pfmsm.d: Delete.
483         * testsuite/gas/i860/pfmsm.s: Delete.
484         * testsuite/gas/i860/pfsm.d: Delete.
485         * testsuite/gas/i860/pfsm.s: Delete.
486         * testsuite/gas/i860/pseudo-ops01.d: Delete.
487         * testsuite/gas/i860/pseudo-ops01.s: Delete.
488         * testsuite/gas/i860/regress01.d: Delete.
489         * testsuite/gas/i860/regress01.s: Delete.
490         * testsuite/gas/i860/shift.d: Delete.
491         * testsuite/gas/i860/shift.s: Delete.
492         * testsuite/gas/i860/simd.d: Delete.
493         * testsuite/gas/i860/simd.s: Delete.
494         * testsuite/gas/i860/system.d: Delete.
495         * testsuite/gas/i860/system.s: Delete.
496         * testsuite/gas/i860/xp.d: Delete.
497         * testsuite/gas/i860/xp.s: Delete.
498         * Makefile.am: Remove i860 and i960 support.
499         * configure.tgt: Likewise.
500         * doc/Makefile.am: Likewise.
501         * doc/all.texi: Likewise.
502         * testsuite/gas/all/gas.exp
503         * config/obj-coff.h: Remove i960 support.
504         * doc/internals.texi: Likewise.
505         * expr.c: Likewise.
506         * read.c: Likewise.
507         * write.c: Likewise.
508         * write.h: Likewise.
509         * testsuite/gas/lns/lns.exp: Likewise.
510         * testsuite/gas/symver/symver.exp: Likewise.
511         * config/tc-m68k.c: Remove BOUT support.
512         * config/tc-score.c: Likewise.
513         * config/tc-score7.c: Likewise.
514         * config/tc-sparc.c: Likewise.
515         * symbols.c: Likewise.
516         * doc/h8.texi: Likewise.
517         * configure.ac: Remove BOUT and i860 support.
518         * doc/as.texinfo: Remove BOUT, i860 and i960 support
519         * Makefile.in: Regenerate.
520         * config.in: Regenerate.
521         * configure: Regenerate.
522         * doc/Makefile.in: Regenerate.
523         * po/POTFILES.in: Regenerate.
524
525 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
526
527         PR gas/22318
528         * configure: Regenerated.
529
530 2018-04-04  H.J. Lu  <hongjiu.lu@intel.com>
531
532         PR binutils/23025
533         * testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
534         VEX and EVEX prefixes.
535         * testsuite/gas/i386/prefix.d: Updated.
536
537 2018-03-30  Peter Bergner <bergner@vnet.ibm.com>
538
539         PR binutils/23013
540         * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64
541         and little endian.
542
543 2018-03-28  Renlin Li  <renlin.li@arm.com>
544
545         PR ld/22970
546         * config/tc-aarch64.c (reloc_table): Update entry for tprel_lo12 and
547         tprel_lo12_nc with pseudo relocations.
548         (ldst_lo12_determine_real_reloc_type): Add new relocations support.
549         (parse_operands): Handle BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 and
550         BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC pseudo relocations.
551         (md_apply_fix): Add handling for new relocation.
552         (aarch64_force_relocation): Likewise.
553         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.d: New.
554         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.s: New.
555         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.d: New.
556         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.s: New.
557         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.d: New.
558         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.s: New.
559         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.d: New.
560         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.s: New.
561         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.d: New.
562         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.s: New.
563         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.d: New.
564         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.s: New.
565         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.d: New.
566         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.s: New.
567         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.d: New.
568         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.s: New.
569         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16-ilp32.d: New.
570         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32-ilp32.d: New.
571         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64-ilp32.d: New.
572         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8-ilp32.d: New.
573         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16-ilp32.d: New.
574         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32-ilp32.d: New.
575         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64-ilp32.d: New.
576         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8-ilp32.d: New.
577
578 2018-03-28  Jan Beulich  <jbeulich@suse.com>
579
580         * config/tc-i386.c (check_VecOperands): Replace uses of
581         .vecesize. Always initialize op.
582         * testsuite/gas/i386/avx512_vpopcntdq.s,
583         testsuite/gas/i386/avx512bitalg_vl.s: Add Intel syntax vpopcnt
584         broadcast cases with explicit operand size.
585         * testsuite/gas/i386/avx512_vpopcntdq.d,
586         testsuite/gas/i386/avx512_vpopcntdq-intel.d,
587         testsuite/gas/i386/avx512bitalg_vl.d
588         testsuite/gas/i386/avx512bitalg_vl-intel.d: Adjust expectations.
589
590 2018-03-28  Jan Beulich  <jbeulich@suse.com>
591
592         * config/tc-i386.c (struct Broadcast_Operation): Adjust comment.
593         (check_VecOperands): Re-write broadcast validation code.
594         (check_VecOperations): Replace BROADCAST_1TO* uses.
595         * testsuite/gas/i386/inval-avx512f.s: Add various broadcast
596         cases.
597         * testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
598
599 2018-03-28  Jan Beulich  <jbeulich@suse.com>
600
601         * config/tc-i386.c (process_suffix): Check .todword/.toqword
602         before zapping suffix.
603
604 2018-03-28  Jan Beulich  <jbeulich@suse.com>
605
606         * testsuite/gas/i386/ilp32/x86-64-simd-suffix.d,
607         testsuite/gas/i386/x86-64-simd-suffix.d: Drop q suffix from
608         cvt*2si.
609
610 2018-03-28  Nick Clifton  <nickc@redhat.com>
611
612         PR 22988
613         * config/tc-aarch64.c (parse_operands): Add code to handle
614         AARCH64_OPN_SVE_ADDR_R.
615         * testsuite/gas/aarch64/sve.s: Add tests for LDFF1xx instructions
616         with an assumed XZR offset address register.
617         * testsuite/gas/aarch64/sve.d: Update expected disassembly.
618
619 2018-03-22  Jan Beulich  <jbeulich@suse.com>
620
621         * config/tc-i386.c (check_VecOperands): Latch
622         i.broadcast->operand into op.
623
624 2018-03-22  Jan Beulich  <jbeulich@suse.com>
625
626         * config/tc-i386.c (match_template): Special case base opcode
627         0xa0 with HLE prefix.
628         * testsuite/gas/i386/hle.s: Add mov-accumulator-to-disp cases.
629         * testsuite/gas/i386/hle.d, testsuite/gas/i386/hle-intel.d:
630         Adjust expectations.
631
632 2018-03-22  Jan Beulich  <jbeulich@suse.com>
633
634         * testsuite/gas/i386/opts.s: Add bndmov cases.
635         * testsuite/gas/i386/opts.d, testsuite/gas/i386/opts-intel.d,
636         testsuite/gas/i386/sse2avx-opts.d,
637         testsuite/gas/i386/sse2avx-opts-intel.d: Adjust expectations.
638
639 2018-03-22  Jan Beulich  <jbeulich@suse.com>
640
641         * config/tc-i386.c (match_mem_size): Extend sub-xmmword
642         exceptions.
643         * testsuite/gas/i386/xmmword.l, testsuite/gas/i386/xmmword.s:
644         New.
645         * testsuite/gas/i386/i386.exp: Run new test.
646
647 2018-03-22  Jan Beulich  <jbeulich@suse.com>
648
649         * config/tc-i386.c (match_template): Also match 2nd and 4th
650         operand's register sizes.
651         * testsuite/gas/i386/unspec.l, testsuite/gas/i386/unspec.s: New.
652         * testsuite/gas/i386/i386.exp: Run new test.
653
654 2018-03-19  Nick Clifton  <nickc@redhat.com>
655
656         * po/uk.po: Updated Ukranian translation.
657
658 2018-03-16  Jim Wilson  <jimw@sifive.com>
659
660         * config/tc-riscv.c (check_absolute_expr): Expand comment.  New
661         parameter maybe_csr.  If maybe_csr and O_symbol, print CSR name.
662         (riscv_ip): Add new argument to check_absolute_expr calls.
663         * testsuite/gas/riscv/bad-csr.d: New.
664         * testsuite/gas/riscv/bad-csr.l: New.
665         * testsuite/gas/riscv/bad-csr.s: New.
666
667 2018-03-14  Kito Cheng  <kito.cheng@gmail.com>
668
669         * config/tc-riscv.c (opcode_name_list): New.
670         (opcode_names_hash): Likewise.
671         (init_opcode_names_hash): Likewise.
672         (opcode_name_lookup): Likewise.
673         (validate_riscv_insn): New argument length, and add new format
674         which used in .insn directive.
675         (md_begin): Refine hash table initialization logic into
676         init_opcode_hash.
677         (init_opcode_hash): New.
678         (my_getOpcodeExpression): Parse opcode name for .insn.
679         (riscv_ip): New argument hash, able to handle .insn directive.
680         (s_riscv_insn): Handler for .insn directive.
681         (riscv_pseudo_table): New entry for .insn.
682         * doc/c-riscv.texi: Add documentation for .insn directive.
683         * testsuite/gas/riscv/insn.d: Add testcase for .insn directive.
684         * testsuite/gas/riscv/insn.s: Likewise.
685
686 2018-03-13  Nick Clifton  <nickc@redhat.com>
687
688         * po/ru.po: Updated Russian translation.
689
690 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
691
692         * config/tc-i386.c (optimize_encoding): Encode EVEX instructions
693         with VEX128 if EVEX encoding isn't required.
694         * testsuite/gas/i386/optimize-1.d: Updated.
695         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
696
697 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
698
699         * config/tc-i386.c (check_VecOperations): Strip whitespace.
700         * testsuite/gas/i386/optimize-1.s: Add whitespaces before
701         {%k7} and {z},
702         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
703
704 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
705
706         * config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
707         (md_parse_option): Likewise.
708         (optimize_encoding): Check i.tm.cpu_flags and cpu_arch_isa_flags
709         for cpuavx512vl instead of cpu_arch_flags.  Optimize EVEX with
710         EVEX128 when EVEX encoding is required.
711         * testsuite/gas/i386/i386.exp: Run optimize-4, optimize-5,
712         x86-64-optimize-5 and x86-64-optimize-6.
713         * testsuite/gas/i386/optimize-1.d: Updated.
714         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
715         * testsuite/gas/i386/optimize-4.d: New file.
716         * testsuite/gas/i386/optimize-4.s: Likewise.
717         * testsuite/gas/i386/optimize-5.d: Likewise.
718         * testsuite/gas/i386/optimize-5.s: Likewise.
719         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
720         * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
721         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
722         * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
723
724 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
725
726         * config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
727         as "xor reg32, reg32".
728         * testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
729         * testsuite/gas/i386/x86-64-optimize-1.d: Updated.
730
731 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
732
733         * NEWS: Mention -mold-gcc removal.
734         * config/tc-i386.c (i386_error): Remove old_gcc_only.
735         (old_gcc): Removed.
736         (match_template): Remove old gcc support.
737         (OPTION_MOLD_GCC): Removed.
738         (OPTION_MRELAX_RELOCATIONS): Updated.
739         (md_longopts): Remove OPTION_MOLD_GCC.
740         (md_parse_option): Likewise.
741         (md_show_usage): Remove -mold-gcc.
742         * testsuite/gas/i386/general.s: Convert fsub/fdiv tests for old
743         (<= 2.8.1) versions of gcc.
744         * testsuite/gas/i386/intel.s: Likewise.
745         * testsuite/gas/i386/general.l: Updated.
746         * testsuite/gas/i386/intel-intel.d: Likewise.
747         * testsuite/gas/i386/intel.d: Likewise.
748         * testsuite/gas/i386/intel.e: Likewise.
749         * testsuite/gas/i386/i386.exp: Don't pass -mold-gcc to general.
750
751 2018-03-08  Jan Beulich  <jbeulich@suse.com>
752
753         * config/tc-i386.c (is_evex_encoding): New.
754         (optimize_encoding, md_assemble, md_assemble,
755         VEX_check_operands, build_modrm_byte): Use is_evex_encoding.
756         (build_evex_prefix): Derive EVEX length field from actual
757         operands if the template allows multiple ones.
758
759 2018-03-08  Jan Beulich  <jbeulich@suse.com>
760
761         * config/tc-i386.c (build_modrm_byte): Make VexNDD handling cope
762         with 3rd (immediate) operand.
763
764 2018-03-08  Jan Beulich  <jbeulich@suse.com>
765
766         * config/tc-i386.c (XMMWORD_MNEM_SUFFIX, YMMWORD_MNEM_SUFFIX,
767         ZMMWORD_MNEM_SUFFIX): Delete.
768         (process_suffix): Drop their uses. Re-arrange final part of
769         logic into a switch() statement. Drop special casing of
770         cmpxchg8b.
771
772 2018-03-08  Jan Beulich  <jbeulich@suse.com>
773
774         * config/tc-i386.c (match_template): Also match register
775         operands 0 and 2 for 3-operand forms.
776         * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
777         New.
778         * testsuite/gas/i386/i386.exp: Run new test.
779
780 2018-03-08  Jan Beulich  <jbeulich@suse.com>
781
782         * config/tc-i386.c (process_suffix): Do common part of register
783         checks first.
784
785 2018-03-08  Jan Beulich  <jbeulich@suse.com>
786
787         * config/tc-i386.c (parse_insn): Move success return up. Combine
788         failure returns.
789
790 2018-03-08  Jan Beulich  <jbeulich@suse.com>
791
792         * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
793         logic. Add respective logic for AVX512F.
794         * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
795         testsuite/gas/i386/arch-avx-1.d,
796         testsuite/gas/i386/arch-avx-1-1.l,
797         testsuite/gas/i386/arch-avx-1-2.l,
798         testsuite/gas/i386/arch-avx-1-3.l,
799         testsuite/gas/i386/arch-avx-1-4.l,
800         testsuite/gas/i386/arch-avx-1-5.l,
801         testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
802         * testsuite/gas/i386/arch-avx-1-7.l,
803         testsuite/gas/i386/arch-avx-1-7.s,
804         testsuite/gas/i386/arch-avx-1-8.l,
805         testsuite/gas/i386/arch-avx-1-8.s,
806         testsuite/gas/i386/avx512f-plain.l,
807         testsuite/gas/i386/avx512f-plain.s,
808         testsuite/gas/i386/avx512vl-plain.l,
809         testsuite/gas/i386/avx512vl-plain.s: New.
810         * testsuite/gas/i386/i386.exp: Run new tests.
811
812 2018-03-08  Jan Beulich  <jbeulich@suse.com>
813
814         * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
815
816 2018-03-08  Jan Beulich  <jbeulich@suse.com>
817
818         * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
819         (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
820         CPU_FLAGS_32BIT_MATCH.
821
822 2018-03-08  Jan Beulich  <jbeulich@suse.com>
823
824         * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
825         CPU_FLAGS_PCLMUL_MATCH): Delete.
826         (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
827         (cpu_flags_match): Combine AVX checks into
828         single if().
829
830 2018-03-08  Jan Beulich  <jbeulich@suse.com>
831
832         * config/tc-i386.c (cpu_flags_match): Drop "else" branches
833         setting CPU_FLAGS_ARCH_MATCH.
834
835 2018-03-08  Jan Beulich  <jbeulich@suse.com>
836
837         * config/tc-i386.c (md_assemble): Extend SSE check conditional.
838         * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
839         testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
840         testsuite/gas/i386/ilp32/x86-64-sse-check.d,
841         testsuite/gas/i386/sse-check-none.d,
842         testsuite/gas/i386/sse-check-warn.d,
843         testsuite/gas/i386/x86-64-sse-check.d,
844         testsuite/gas/i386/x86-64-sse-check-none.d,
845         testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
846         * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
847         tests.
848         * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
849         of sse-check.s.
850         * testsuite/gas/i386/sse-check.d: Adjust expectations.
851         * testsuite/gas/i386/sse-check-error.l,
852         testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
853         * testsuite/gas/i386/sse-check-warn.e: Likewise.
854
855 2018-03-08  Jan Beulich  <jbeulich@suse.com>
856
857         * config/tc-i386.c (operand_size_match): Drop / replace uses of
858         .floatd.
859
860 2018-03-08  Jan Beulich  <jbeulich@suse.com>
861
862         * testsuite/gas/i386/intel-intel.d: New.
863         * testsuite/gas/i386/i386.exp: Run new test.
864
865 2018-03-08  Jan Beulich  <jbeulich@suse.com>
866
867         * config/tc-i386.c (process_operands): Access operands only
868         after operand count assertion. Sanitize warning text. Fix
869         indentation.
870         * testsuite/gas/i386/avx512_4fmaps-warn.l,
871         gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
872
873 2018-03-08  Jan Beulich  <jbeulich@suse.com>
874
875         * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
876         * testsuite/gas/i386/x86-64-movd.d,
877         testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
878
879 2018-03-08  Jan Beulich  <jbeulich@suse.com>
880
881         * config/tc-i386.c (operand_type_and_not): New.
882         (build_modrm_byte): Use it to prevent clearing unrelated bits.
883
884 2018-03-08  Alan Modra  <amodra@gmail.com>
885
886         * config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
887         don't emit a group terminating nop for power9.  Simplify cpu
888         tests.
889
890 2018-03-08  Alan Modra  <amodra@gmail.com>
891
892         * config/tc-ppc.c (ppc_handle_align): Don't emit a group
893         terminating nop for power9.
894
895 2018-03-07  H.J. Lu  <hongjiu.lu@intel.com>
896
897         PR gas/22874
898         * config/tc-i386.c (f32_5): Removed.
899         (f32_8): Likewise.
900         (f32_9): Likewise.
901         (f32_10): Likewise.
902         (f32_11): Likewise.
903         (f32_12): Likewise.
904         (f32_13): Likewise.
905         (f32_14): Likewise.
906         (f16_5): Likewise.
907         (f16_6): Likewise.
908         (f16_7): Likewise.
909         (f16_8): Likewise.
910         (jump_31): Likewise.
911         (alt64_11): Likewise.
912         (alt64_patt): Likewise.
913         (jump_disp8): New.
914         (jump32_disp32): Likewise.
915         (jump16_disp32): Likewise.
916         (alt_11): Likewise.
917         (f32_patt): Updated.
918         (f16_patt): Likewise.
919         (alt_patt): Add alt_11.
920         (i386_align_code): Merged with ...
921         (i386_generate_nops): This.  Rewritten.
922         (fits_in_imm7): Moved before i386_generate_nops.
923         (fits_in_imm31): Likewise.
924         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
925         4095.
926         (i386_align_code): Removed.
927         (HANDLE_ALIGN): Rewritten with i386_generate_nops.
928         * doc/as.texinfo: Update limits of control byte for x86 .nops
929         directive.
930         * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
931         * gas/testsuite/gas/i386/noavx-3.l: Updated.
932         * gas/testsuite/gas/i386/nop-1.d: Likewise.
933         * gas/testsuite/gas/i386/nop-1.s: Likewise.
934         * gas/testsuite/gas/i386/nop-2.d: Likewise.
935         * gas/testsuite/gas/i386/nop-2.s: Likewise.
936         * gas/testsuite/gas/i386/nop-3.d: Likewise.
937         * gas/testsuite/gas/i386/nop-4.d: Likewise.
938         * gas/testsuite/gas/i386/nop-5.d: Likewise.
939         * gas/testsuite/gas/i386/nop-5.s: Likewise.
940         * gas/testsuite/gas/i386/nop-6.d: Likewise.
941         * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
942         * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
943         * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
944         * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
945         * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
946         * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
947         * gas/testsuite/gas/i386/nops-1.d: Likewise.
948         * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
949         * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
950         * gas/testsuite/gas/i386/nops-2.d: Likewise.
951         * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
952         * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
953         * gas/testsuite/gas/i386/nops-3.d: Likewise.
954         * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
955         * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
956         * gas/testsuite/gas/i386/nops-4.d: Likewise.
957         * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
958         * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
959         * gas/testsuite/gas/i386/nops-5.d: Likewise.
960         * gas/testsuite/gas/i386/nops-6.d: Likewise.
961         * gas/testsuite/gas/i386/nops16-1.d: Likewise.
962         * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
963         * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
964         * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
965         * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
966         * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
967         * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
968         * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
969         * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
970         * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
971         * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
972         * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
973         * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
974         * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
975         * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
976         * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
977         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
978         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
979         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
980         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
981         * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
982         * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
983         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
984         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
985         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
986         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
987         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
988         * gas/testsuite/gas/i386/nops-7.d: New file.
989         * gas/testsuite/gas/i386/nops-7.s: Likewise.
990         * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
991
992 2018-03-07  Alan Modra  <amodra@gmail.com>
993
994         * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
995         * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
996         * testsuite/gas/ppc/machine.d: Don't run for PE targets.
997
998 2018-03-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
999
1000         * config/tc-arm.c (md_begin): Add NULL pointer check before
1001         dereferencing march_ext_opt.
1002
1003 2018-03-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1004
1005         * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
1006         legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
1007         mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
1008         mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
1009         (dyn_mcpu_ext_opt): Also rename into ...
1010         (mcpu_ext_opt): This.
1011         (dyn_march_ext_opt): Also rename into ...
1012         (march_ext_opt): This.
1013         (object_arch): Also rename into ...
1014         (selected_object_arch): This and make it a plain arm_feature_set
1015         structure.
1016         (selected_arch, selected_ext, selected_fpu): New static variables.
1017         (mark_feature_used): Fix comments, feature is marked as used iff it is
1018         currently allowed.
1019         (do_bx): Adapt to change in name and type of object_arch.
1020         (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
1021         rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
1022         Remove dead code to set default FPU if architecture version is greater
1023         than 5.  Set all CPU bits of cpu_variant directly in autodection
1024         leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
1025         (arm_parse_extension): Take extension feature set pointer parameter by
1026         value rather than by pointer.  Remove allocation code.  Adapt code
1027         accordingly.
1028         (arm_parse_cpu): Adapt to variable renaming and changes in
1029         arm_parse_extension () signature.
1030         (arm_parse_arch): Likewise.
1031         (aeabi_set_public_attributes): Also set selected_arch and selected_ext
1032         in addition to selected_cpu.  Set flags_arch and flags_ext from them
1033         instead of selected_cpu.  Adapt to variables renaming and type change.
1034         (arm_md_post_relax): Adapt to variable renaming.
1035         (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
1036         mcpu_cpu_opt and dyn_mcpu_ext_opt.  Set selected_cpu from them and
1037         cpu_variant from selected_cpu and selected_fpu.
1038         (s_arm_arch): Likewise.
1039         (s_arm_object_arch): Adapt to variable renaming.
1040         (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
1041         set against arm_any.  Check selected_arch rather than *mcpu_cpu_opt.
1042         Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
1043         code.
1044         (s_arm_fpu): Set selected_fpu instead of mfpu_opt.  Set all CPU feature
1045         bits if in autodetection mode.
1046
1047 2018-03-01  H.J. Lu  <hongjiu.lu@intel.com>
1048
1049         * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
1050         AVX512 vpsub[bwdq] instructions.
1051         * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
1052         AVX512 vpsub[bwdq] instructions.
1053         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1054         * testsuite/gas/i386/optimize-1.d: Updated.
1055         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1056
1057 2018-03-01  Alan Modra  <amodra@gmail.com>
1058
1059         * configure.ac (ALL_LINGUAS): Add uk.  Sort.
1060         * configure: Regenerate.
1061
1062 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1063
1064         * NEWS: Rename .nop to .nops.
1065         * doc/as.texinfo: Likewise.
1066         * read.c (potable): Add "nops".  Remove "nop".
1067         (s_nop): Renamed to ...
1068         (s_nops): This.
1069         * read.h (s_nop): Renamed to ...
1070         (s_nops): This.
1071         * write.c (cvt_frag_to_fill): Rename .nop to .nops.
1072         (md_generate_nops): Likewise.
1073         (relax_segment): Likewise.
1074         * testsuite/gas/i386/nop-1.d: Updated.
1075         * testsuite/gas/i386/nop-1.s: Likewise.
1076         * testsuite/gas/i386/nop-2.d: Likewise.
1077         * testsuite/gas/i386/nop-2.s: Likewise.
1078         * testsuite/gas/i386/nop-3.d: Likewise.
1079         * testsuite/gas/i386/nop-3.s: Likewise.
1080         * testsuite/gas/i386/nop-4.d: Likewise.
1081         * testsuite/gas/i386/nop-4.s: Likewise.
1082         * testsuite/gas/i386/nop-5.d: Likewise.
1083         * testsuite/gas/i386/nop-5.s: Likewise.
1084         * testsuite/gas/i386/nop-6.d: Likewise.
1085         * testsuite/gas/i386/nop-6.s: Likewise.
1086         * testsuite/gas/i386/nop-bad-1.l: Likewise.
1087         * testsuite/gas/i386/nop-bad-1.s: Likewise.
1088         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
1089         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
1090         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
1091         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
1092         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
1093         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
1094
1095 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
1096
1097         PR gas/22871
1098         * NEWS: Mention -O[2|s].
1099         * config/tc-i386.c (_i386_insn): Add no_optimize.
1100         (optimize): New.
1101         (optimize_for_space): Likewise.
1102         (fits_in_imm7): New function.
1103         (fits_in_imm31): Likewise.
1104         (optimize_encoding): Likewise.
1105         (md_assemble): Call optimize_encoding to optimize encoding.
1106         (parse_insn): Handle {nooptimize}.
1107         (md_shortopts): Append "O::".
1108         (md_parse_option): Handle -On.
1109         * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
1110         as {nooptimize}.
1111         * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
1112         * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
1113         * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
1114         optimize-3, x86-64-optimize-1, x86-64-optimize-2,
1115         x86-64-optimize-3 and x86-64-optimize-4.
1116         * testsuite/gas/i386/optimize-1.d: New file.
1117         * testsuite/gas/i386/optimize-1.s: Likewise.
1118         * testsuite/gas/i386/optimize-2.d: Likewise.
1119         * testsuite/gas/i386/optimize-2.s: Likewise.
1120         * testsuite/gas/i386/optimize-3.d: Likewise.
1121         * testsuite/gas/i386/optimize-3.s: Likewise.
1122         * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
1123         * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
1124         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1125         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1126         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1127         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1128         * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
1129         * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
1130
1131 2018-02-27  Nick Clifton  <nickc@redhat.com>
1132
1133         * po/ru.po: Updated Russian translation.
1134
1135 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
1136
1137         * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
1138         descriptions.
1139
1140 2018-02-26  Nick Clifton  <nickc@redhat.com>
1141
1142         * doc/as.texinfo (Dc): Fix typo.
1143
1144 2018-02-26  Alan Modra  <amodra@gmail.com>
1145
1146         * testsuite/gas/mips/reginfo-2.l: Update.
1147
1148 2018-02-23  Alan Modra  <amodra@gmail.com>
1149
1150         * testsuite/gas/mips/reginfo-2.l: Update.
1151
1152 2018-02-23  Nick Clifton  <nickc@redhat.com>
1153
1154         * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
1155
1156 2018-02-23  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
1157
1158         * config/tc-nds32.c (ict_model): New function. Hook new
1159         directive .ict_model.
1160         (nds32_insert_relax_entry): Tag the bits of entry relocation
1161         for .ict_model.
1162
1163 2018-02-22  H.J. Lu  <hongjiu.lu@intel.com>
1164
1165         * config/tc-i386.c (_i386_insn): Add rex_encoding.
1166         (md_assemble): When i.rex_encoding is true, generate a REX byte
1167         if possible.
1168         (parse_insn): Set i.rex_encoding for {rex}.
1169         * doc/c-i386.texi: Document {rex}.
1170         * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
1171         * testsuite/gas/i386/x86-64-pseudos.d: Updated.
1172
1173 2018-02-22  A. Wilcox  <awilfox@adelielinux.org>
1174
1175         PR 22014
1176         * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
1177         instruction size suffix.
1178
1179 2018-02-20  Maciej W. Rozycki  <macro@mips.com>
1180
1181         * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
1182         * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
1183         * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
1184         * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
1185         * testsuite/gas/mips/mips.exp: Run the new tests.
1186
1187 2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>
1188
1189         * config/tc-xtensa.c (struct litpool_frag): Add new field
1190         literal_count.
1191         (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
1192         (MAX_POOL_LITERALS): New macro definitions.
1193         (auto_litpool_limit): Initialize to 0.
1194         (md_parse_option): Set auto_litpool_limit in the presence of
1195         --auto-litpools option.
1196         (xtensa_maybe_create_literal_pool_frag): Zero-initialize
1197         literal_count field.
1198         (xg_find_litpool): New function. Make sure that found literal
1199         pool size is within the limit.
1200         (xtensa_move_literals): Extract literal pool search code into
1201         the new function.
1202         * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
1203         * testsuite/gas/xtensa/auto-litpools-2.d: New file.
1204         * testsuite/gas/xtensa/auto-litpools-2.s: New file.
1205         * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
1206         addresses.
1207         * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
1208         that objdump doesn't get out of sync.
1209
1210 2018-02-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1211
1212         * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
1213         also the same as -march.
1214
1215 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
1216
1217         * NEWS: Mention .nop directive.
1218         * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
1219         * read.c (potable): Add .nop.
1220         (s_nop): New function.
1221         * read.h (s_nop): New prototype.
1222         * write.c (cvt_frag_to_fill): Handle rs_space_nop and
1223         rs_fill_nop.
1224         (md_generate_nops): New function.
1225         (relax_segment): Likewise.
1226         (write_contents): Use md_generate_nops for rs_fill_nop.
1227         * config/tc-i386.c (alt64_11): New.
1228         (alt64_patt): Likewise.
1229         (md_convert_frag): Handle rs_space_nop.
1230         (i386_output_nops): New function.
1231         (i386_generate_nops): Likewise.
1232         (i386_align_code): Call i386_output_nops.
1233         * config/tc-i386.h (i386_generate_nops): New.
1234         (md_generate_nops): Likewise.
1235         * doc/as.texinfo: Document .nop directive.
1236         * testsuite/gas/i386/i386.exp: Run .nop directive tests.
1237         * testsuite/gas/i386/nop-1.d: New file.
1238         * testsuite/gas/i386/nop-1.s: Likewise.
1239         * testsuite/gas/i386/nop-2.d: Likewise.
1240         * testsuite/gas/i386/nop-2.s: Likewise.
1241         * testsuite/gas/i386/nop-3.d: Likewise.
1242         * testsuite/gas/i386/nop-3.s: Likewise.
1243         * testsuite/gas/i386/nop-4.d: Likewise.
1244         * testsuite/gas/i386/nop-4.s: Likewise.
1245         * testsuite/gas/i386/nop-5.d: Likewise.
1246         * testsuite/gas/i386/nop-5.s: Likewise.
1247         * testsuite/gas/i386/nop-6.d: Likewise.
1248         * testsuite/gas/i386/nop-6.s: Likewise.
1249         * testsuite/gas/i386/nop-bad-1.l: Likewise.
1250         * testsuite/gas/i386/nop-bad-1.s: Likewise.
1251         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
1252         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
1253         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
1254         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
1255         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
1256         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
1257
1258 2018-02-15  Tamar Christina  <tamar.christina@arm.com>
1259
1260         * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
1261         * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
1262
1263 2018-02-13  Max Filippov  <jcmvbkbc@gmail.com>
1264
1265         * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
1266         frag that contains source address.
1267
1268 2018-02-13  Nick Clifton  <nickc@redhat.com>
1269
1270         PR 22773
1271         * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
1272         instruction before assuming that it is a MOV instruction.
1273         * testsuite/gas/arm/pr22773.s: New test.
1274         * testsuite/gas/arm/pr22773.d: New test driver.
1275         * testsuite/gas/arm/pr22773.l: New expected output.
1276
1277 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
1278
1279         PR gas/22791
1280         * config/tc-i386.c (need_plt32_p): New function.
1281         (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
1282         (md_estimate_size_before_relax): Likewise.
1283         * testsuite/gas/i386/reloc64.d: Updated.
1284         * testsuite/gas/i386/x86-64-jump.d: Likewise.
1285         * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
1286         * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
1287         * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
1288         * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
1289         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
1290         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
1291
1292 2018-02-13  Maciej W. Rozycki  <macro@mips.com>
1293
1294         * testsuite/gas/mips/loongson-3a-2.d: Rename test.
1295
1296 2018-02-13  Nick Clifton  <nickc@redhat.com>
1297
1298         PR 22823
1299         * config/obj-elf.c (elf_pseudo_table): Remove now redundant
1300         casts.
1301         (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
1302         (obj_elf_vtable_inherit): New stub function that calls
1303         obj_elf_get_vtable_inherit.
1304         (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
1305         (obj_elf_vtable_entry): New stub function that calls
1306         obj_elf_get_vtable_entry.
1307         * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
1308         (obj_elf_vtable_entry) Likewise.
1309         (obj_elf_get_vtable_inherit) Likewise.
1310         (obj_elf_get_vtable_entry) Likewise.
1311         * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
1312         * config/tc-i386c (md_pseudo_table): Likewise.
1313         * config/tc-hppa.c (pa_vtable_entry): Call
1314         obj_elf_get_vtable_entry.
1315         (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
1316         * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
1317         with call to dwarf2_get_filename.
1318         * dwarf2dbg.c (dwarf2_directive_file): Rename to
1319         dwarf2_directive_filename.
1320         (dwarf2_directive_file): New stub function that calls
1321         dwarf2_directive_filename.
1322         * dwarf2dbg.h: Prototype dwarf2_directive_filename.
1323
1324 2018-02-12  Maciej W. Rozycki  <macro@mips.com>
1325
1326         * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
1327         `as' flags.
1328
1329 2018-02-12  Henry Wong <henry@stuffedcow.net>
1330
1331         * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
1332         * testsuite/gas/mips/r6-n32.d: Likewise.
1333         * testsuite/gas/mips/r6-n64.d: Likewise.
1334
1335 2018-02-12  Nick Clifton  <nickc@redhat.com>
1336
1337         * po/ru.po: Updated Russian translation.
1338
1339 2018-02-08  Alan Modra  <amodra@gmail.com>
1340
1341         PR 22819
1342         * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
1343         (ppc_frag_check): Likewise.
1344         * testsuite/gas/ppc/misalign.d,
1345         * testsuite/gas/ppc/misalign.l,
1346         * testsuite/gas/ppc/misalign.s: New test.
1347         * testsuite/gas/ppc/misalign2.d,
1348         * testsuite/gas/ppc/misalign2.s: New test.
1349         * testsuite/gas/ppc/ppc.exp: Run them.
1350
1351 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1352
1353         * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
1354         `expr' parameter to `ep'.
1355
1356 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1357
1358         * testsuite/gas/mips/reginfo-2.d: New test.
1359         * testsuite/gas/mips/reginfo-2-n32.d: New test.
1360         * testsuite/gas/mips/reginfo-2.l: New test stderr output.
1361         * testsuite/gas/mips/reginfo-2.s: New test source.
1362         * testsuite/gas/mips/mips.exp: Run the new tests.
1363
1364 2018-02-05  Nick Clifton  <nickc@redhat.com>
1365
1366         * po/ru.po: Updated Russian translation.
1367
1368 2018-01-31  Alan Modra  <amodra@gmail.com>
1369
1370         PR 22714
1371         * app.c (last_char): New static var.
1372         (struct app_save): Add last_char field.
1373         (app_push, app_pop): Handle it.
1374         (do_scrub_chars): Use last_char in test for "\@".  Set last_char.
1375
1376 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
1377
1378         PR gas/22738
1379         * config/tc-sparc.h (sparc_mach): Declare.
1380         (TARGET_MACH): Define to above.
1381         * config/tc-sparc.c (sparc_mach): New function.
1382         (sparc_md_end): Minor tweak.
1383
1384 2018-01-29  Nick Clifton  <nickc@redhat.com>
1385
1386         * po/ru.po: Updated Russian translation.
1387
1388 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1389
1390         * configure.tgt: Use generic emulation for `mips-*-windiss',
1391         overriding the blanket choice made for `*-*-windiss'.
1392
1393 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1394
1395         * configure.tgt: Use `mips-*-sysv4*' rather than
1396         `mips-*-sysv4*MP*'.
1397
1398 2018-01-24  Renlin Li  <renlin.li@arm.com>
1399
1400         * config/tc-aarch64.c (reloc_table): add entries for
1401         BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1402         BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1403         BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1404         BFD_RELOC_AARCH64_MOVW_PREL_G3.
1405         (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
1406         (md_apply_fix): Likewise
1407         * testsuite/gas/aarch64/prel_g0.s: New.
1408         * testsuite/gas/aarch64/prel_g0.d: New.
1409         * testsuite/gas/aarch64/prel_g0_nc.s: New.
1410         * testsuite/gas/aarch64/prel_g0_nc.d: New.
1411         * testsuite/gas/aarch64/prel_g1.s: New.
1412         * testsuite/gas/aarch64/prel_g1.d: New.
1413         * testsuite/gas/aarch64/prel_g1_nc.s: New.
1414         * testsuite/gas/aarch64/prel_g1_nc.d: New.
1415         * testsuite/gas/aarch64/prel_g2.s: New.
1416         * testsuite/gas/aarch64/prel_g2.d: New.
1417         * testsuite/gas/aarch64/prel_g2_nc.s: New.
1418         * testsuite/gas/aarch64/prel_g2_nc.d: New.
1419         * testsuite/gas/aarch64/prel_g3.s: New.
1420         * testsuite/gas/aarch64/prel_g3.d: New.
1421
1422 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1423
1424         * configure.ac: Also set `mips_default_abi' to N32_ABI for
1425         `mips64*-ps2-elf*'.
1426         * configure: Regenerate.
1427
1428 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1429
1430         * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
1431         enum value.
1432
1433 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1434
1435         * config/tc-i386.c (cpu_arch): Add .pconfig.
1436         * doc/c-i386.texi: Document .pconfig.
1437         * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
1438         * testsuite/gas/i386/pconfig-intel.d: New test.
1439         * testsuite/gas/i386/pconfig.d: Likewise.
1440         * testsuite/gas/i386/pconfig.s: Likewise.
1441         * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
1442         * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
1443         * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
1444
1445 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1446
1447         * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
1448         * doc/c-i386.texi: Document .wbnoinvd.
1449         * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
1450         * testsuite/gas/i386/wbnoinvd-intel.d: New test.
1451         * testsuite/gas/i386/wbnoinvd.d: Likewise.
1452         * testsuite/gas/i386/wbnoinvd.s: Likewise.
1453         * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
1454         * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
1455         * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
1456
1457 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1458
1459         * config/tc-mips.c (md_show_usage): Correctly indicate the
1460         configuration-specific default ABI.
1461
1462 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1463
1464         * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
1465         `-mno-mips16e2' options.
1466
1467 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
1468
1469         * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
1470         Correct syntax of the `.set nomips16e2' directive description.
1471
1472 2018-01-22  Oleg Endo  <olegendo@gcc.gnu.org>
1473
1474         PR 22737
1475         * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
1476         * testsuite/gas/rx/pr22737.s: New test.
1477         * testsuite/gas/rx/pr22737.d: Likewise.
1478         * testsuite/gas/rx/rx.exp: Run the new test.
1479
1480 2018-01-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1481
1482         * config/tc-arm.c (ToC macro): Remove spurious comment.
1483         (ToU macro): Likewise.
1484
1485 2018-01-17  Jim Wilson  <jimw@sifive.com>
1486
1487         * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
1488         (riscv_ip) <'z'>: New.
1489
1490 2018-01-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1491
1492         * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
1493         (cpu_noarch): Add noibt, noshstk.
1494         (parse_insn): Change cpucet to cpuibt.
1495         * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
1496         * testsuite/gas/i386/cet-ibt-inval.l: New test.
1497         * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
1498         * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
1499         * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
1500         * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
1501         * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
1502         * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
1503         * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
1504
1505 2018-01-16  Nick Clifton  <nickc@redhat.com>
1506
1507         * po/fr.po: Updated French translation.
1508
1509 2018-01-15  Jim Wilson  <jimw@sifive.com>
1510
1511         * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
1512         * testsuite/gas/riscv/c-zero-imm.d: Likewise.
1513
1514 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1515
1516         * config/tc-arm.c (ToC): Define macro.
1517         (ToU): Likewise.
1518         (insns): Make use of above macros for new instructions introduced in
1519         Armv8-M.
1520
1521 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1522
1523         * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
1524         and vlstm conditionally executable and reindent parameters.
1525         * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
1526         aforementionned instructions.
1527
1528 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1529
1530         * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
1531         profile architecture or if in autodetection mode.  Clarify that
1532         deprecation is for performance reason and concerns Armv8-A and Armv8-R.
1533         * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
1534         message.
1535         * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
1536         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
1537         * testsuite/gas/arm/udf.l: Likewise.
1538         * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
1539
1540 2018-01-15  Nick Clifton  <nickc@redhat.com>
1541
1542         * po/uk.po: Updated Ukranian translation.
1543
1544 2018-01-13  Nick Clifton  <nickc@redhat.com>
1545
1546         * po/gas.pot: Regenerated.
1547
1548 2018-01-13  Nick Clifton  <nickc@redhat.com>
1549
1550         * configure: Regenerate.
1551
1552 2018-01-13  Nick Clifton  <nickc@redhat.com>
1553
1554         2.30 branch created.
1555         * NEWS: Add marker for 2.30.
1556
1557 2018-01-12  Gunther Nikl  <gnikl@users.sourceforge.net>
1558
1559         * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
1560         define to 0 and 1. Remove a dangling reference to "AMD 29000"
1561         in a comment.
1562
1563 2018-01-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1564
1565         * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
1566         * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
1567         * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
1568         * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
1569         * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
1570         * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
1571         * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
1572         * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
1573         tests.
1574         * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
1575         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
1576         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
1577         * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
1578         * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
1579         * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
1580         * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
1581         * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
1582
1583 2018-01-11  Alan Modra  <amodra@gmail.com>
1584
1585         * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
1586         positive "‘profile’ may be used uninitialized".
1587
1588 2018-01-10  Jan Beulich  <jbeulich@suse.com>
1589
1590         * testsuite/gas/i386/avx512_4fmaps.s,
1591         testsuite/gas/i386/avx512_4fmaps_vl.s,
1592         testsuite/gas/i386/x86-64-avx512_4fmaps.s,
1593         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
1594         Disp8 forms (and the transition happening at the right
1595         boundary).
1596         * testsuite/gas/i386/avx512_4fmaps.d,
1597         testsuite/gas/i386/avx512_4fmaps-intel.d,
1598         testsuite/gas/i386/avx512_4fmaps_vl.d,
1599         testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
1600         testsuite/gas/i386/x86-64-avx512_4fmaps.d,
1601         testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
1602         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
1603         testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
1604         expectations.
1605
1606 2018-01-10  Jan Beulich  <jbeulich@suse.com>
1607
1608         * testsuite/gas/i386/avx512bw.s,
1609         testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
1610         operands.
1611         * testsuite/gas/i386/avx512bw-intel.d,
1612         testsuite/gas/i386/avx512bw.d,
1613         testsuite/gas/i386/avx512bw_vl-intel.d.
1614         testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
1615
1616 2018-01-09  Jim Wilson  <jimw@sifive.com>
1617
1618         * testsuite/gas/riscv/auipc-x0.d: New.
1619         * testsuite/gas/riscv/auipc-x0.s: New.
1620
1621 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
1622
1623         * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
1624         in Arm execution state, and Armv6T2 and above in Thumb execution
1625         state.
1626         * testsuite/gas/arm/csdb.s: New.
1627         * testsuite/gas/arm/csdb.d: New.
1628         * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
1629         * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
1630
1631 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
1632
1633         * testsuite/gas/aarch64/system.d: Update expected results to expect
1634         CSDB for hint 0x14.
1635
1636 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1637
1638         PR gas/22681
1639         * testsuite/gas/i386/i386.exp: Run x86-64-movd and
1640         x86-64-movd-intel.
1641         * testsuite/gas/i386/x86-64-movd-intel.d: New file.
1642         * testsuite/gas/i386/x86-64-movd.d: Likewise.
1643         * testsuite/gas/i386/x86-64-movd.s: Likewise.
1644
1645 2018-01-08  Nick Clifton  <nickc@redhat.com>
1646
1647         PR 22553
1648         * doc/c-i386.texi (i386-Directives): Document the .largecomm
1649         directive.
1650
1651 2018-01-04  Jim Wilson  <jimw@sifive.com>
1652
1653         * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
1654         * testsuite/gas/riscv/priv-reg.d: Likewise.
1655
1656 2018-01-03  Alan Modra  <amodra@gmail.com>
1657
1658         Update year range in copyright notice of all files.
1659
1660 2018-01-02  Nick Clifton  <nickc@redhat.com>
1661
1662         PR 18119
1663         * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
1664         version of ARM MRS instruction.
1665
1666 For older changes see ChangeLog-2017
1667 \f
1668 Copyright (C) 2018 Free Software Foundation, Inc.
1669
1670 Copying and distribution of this file, with or without modification,
1671 are permitted in any medium without royalty provided the copyright
1672 notice and this notice are preserved.
1673
1674 Local Variables:
1675 mode: change-log
1676 left-margin: 8
1677 fill-column: 74
1678 version-control: never
1679 End: