[AArch64] Add ARMv8.3 PACGA instruction
[external/binutils.git] / gas / ChangeLog
1 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2
3         * config/tc-aarch64.c (process_omitted_operand): Handle AARCH64_OPND_Rm_SP.
4         (parse_operands): Likewise.
5         * testsuite/gas/aarch64/pac.s: Add pacga.
6         * testsuite/gas/aarch64/pac.d: Add pacga.
7
8 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9
10         * testsuite/gas/aarch64/pac.s: New.
11         * testsuite/gas/aarch64/pac.d: New.
12
13 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14
15         * testsuite/gas/aarch64/sysreg-3.s: New.
16         * testsuite/gas/aarch64/sysreg-3.d: New.
17         * testsuite/gas/aarch64/illegal-sysreg-3.l: New.
18         * testsuite/gas/aarch64/illegal-sysreg-3.d: New.
19
20 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21
22         * testsuite/gas/aarch64/system-3.s: New.
23         * testsuite/gas/aarch64/system-3.d: New.
24         * testsuite/gas/aarch64/system.d: Update expected output.
25
26 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27
28         * config/tc-aarch64.c (aarch64_archs): Add "armv8.3-a".
29         * doc/c-aarch64.texi (-march): Likewise.
30
31 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32
33         * config/tc-aarch64.c (aarch64_features): Fix "simd" and "crypto".
34         * testsuite/gas/aarch64/illegal-crypto-nofp.d: New.
35         * testsuite/gas/aarch64/illegal-crypto-nofp.l: New.
36         * testsuite/gas/aarch64/illegal-fp16-nofp.d: New.
37         * testsuite/gas/aarch64/illegal-fp16-nofp.l: New.
38         * testsuite/gas/aarch64/illegal-fp16-nofp.s: New.
39
40 2016-11-09  H.J. Lu  <hongjiu.lu@intel.com>
41
42         PR binutils/20799
43         * testsuite/gas/i386/opcode.s: Add a test for EVEX vpextrw.
44         * testsuite/gas/i386/opcode-intel.d: Updated.
45         * testsuite/gas/i386/opcode-suffix.d: Likewise.
46         * testsuite/gas/i386/opcode.d: Likewise.
47         * testsuite/gas/i386/x86-64-avx512bw-opts.s: Remove vpextrw
48         tests.
49         * testsuite/gas/i386/x86-64-avx512bw-opts-intel.d: Updated.
50         * testsuite/gas/i386/x86-64-avx512bw-opts.d: Likewise.
51
52 2016-11-09  H.J. Lu  <hongjiu.lu@intel.com>
53
54         PR binutils/20754
55         * testsuite/gas/i386/opcode-suffix.d: Updated.
56
57 2016-11-07  H.J. Lu  <hongjiu.lu@intel.com>
58
59         PR binutils/20775
60         * testsuite/gas/i386/i386.exp: Run fpu-bad.
61         * testsuite/gas/i386/fpu-bad.d: New file.
62         * testsuite/gas/i386/fpu-bad.s: Likewise.
63
64 2016-11-04  Nathan Sidwell  <nathan@acm.org>
65
66         gas/
67         * input-scrub.c (partial_size): Make size_t.
68         (buffer_length): Likewise.  Adjust meaning.
69         (struct input_save): Adjust partial_size type.
70         (input_scrub_reinit): New.
71         (input_scrub_push, input_scrub_begin): Use it.
72         (input_scrub_next_buffer): Fix buffer extension logic. Only scan
73         newly read buffer for newline.
74
75 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
76
77         * config/tc-arc.c (find_opcode_match): Use insert function to
78         validate matching address type operands.
79         * testsuite/gas/arc/nps400-10.d: New file.
80         * testsuite/gas/arc/nps400-10.s: New file.
81
82 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
83
84         * config/tc-arm.c (cortex-m33): Declare new processor.
85         * doc/c-arm.texi (-mcpu ARM command line option): Document new
86         Cortex-M33 processor.
87         * NEWS: Mention ARM Cortex-M33 support.
88
89 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
90
91         * config/tc-arm.c (cortex-m23): Declare new processor.
92         * doc/c-arm.texi (-mcpu ARM command line option): Document new
93         Cortex-M23 processor.
94         * NEWS: Mention ARM Cortex-M23 support.
95
96 2016-11-04  Palmer Dabbelt  <palmer@dabbelt.com>
97             Andrew Waterman <andrew@sifive.com>
98
99         * Makefile.am (CPU_DOCS): Add c-riscv.texi.
100         * Makefile.in: Regenerate.
101         * doc/all.texi: Set RISCV.
102         * doc/as.texinfo: Add RISCV options.
103         Add RISC-V-Dependent node.
104         Include c-riscv.texi.
105         * doc/c-riscv.texi: Rename RISC-V Options to RISC-V-Opts.
106
107 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
108
109         * testsuite/gas/arc/nps400-6.s: Change ldbit tests so that limm
110         operands are out of the range of an s9, in order to fix the test.
111         * testsuite/gas/arc/nps400-6.d: Updated to match new expected output.
112
113 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
114
115         * testsuite/gas/arc/nps-400-9.d: Added.
116         * testsuite/gas/arc/nps-400-9.s: Added.
117
118 2016-11-03  Andrew Burgess  <andrew.burgess@embecosm.com>
119
120         * config/tc-arc.c (struct arc_insn): Change type of insn field.
121         (md_number_to_chars_midend): Support 6- and 8-byte values.
122         (emit_insn0): Update debug output.
123         (find_opcode_match): Likewise.
124         (build_fake_opcode_hash_entry): Delete.
125         (find_special_case_long_opcode): Delete.
126         (find_special_case): Remove long format special case handling.
127         (insert_operand): Change instruction type and update debug print
128         format.
129         (assemble_insn): Change instruction type, update debug print
130         formats, and remove unneeded assert.
131
132 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
133
134         * config/tc-arc.c (assemble_insn): Replace use of ARC_SHORT with
135         arc_opcode_len.
136
137 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
138
139         * config/tc-arc.c (struct arc_insn): Replace short_insn flag with
140         len field.
141         (apply_fixups): Update to use len field.
142         (emit_insn0): Simplify code, making use of len field.
143         (md_convert_frag): Update to use len field.
144         (assemble_insn): Update to use len field.
145
146 2016-11-03  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
147
148         * config/tc-aarch64.c (aarch64_cpus): Add falkor.
149         * config/tc-arm.c (arm_cpus): Likewise.
150         * doc/c-aarch64.texi: Likewise.
151         * doc/c-arm.texi: Likewise.
152
153 2016-11-03  H.J. Lu  <hongjiu.lu@intel.com>
154
155         PR binutils/20754
156         * testsuite/gas/i386/opcode.s: Add tests for opcode 0x82.
157         * testsuite/gas/i386/opcode-intel.d: Updated.
158         * testsuite/gas/i386/opcode.d: Likewise.
159
160 2016-11-02  Jiong Wang  <jiong.wang@arm.com>
161
162         * config/tc-arm.c (SBIT_SHIFT): New.
163         (T2_SBIT_SHIFT): Likewise.
164         (t32_insn_ok): Return TRUE for MOV in ARMv8-M Baseline.
165         (md_apply_fix): Try UINT16 encoding when ARM/Thumb modified immediate
166         encoding failed.
167         * testsuite/gas/arm/archv6t2-bad.s: New error case.
168         * testsuite/gas/arm/archv6t2-bad.l: New error match.
169         * testsuite/gas/arm/archv6t2.s: New testcase.
170         * testsuite/gas/arm/archv6t2.d: New expected result.
171         * testsuite/gas/arm/archv8m.s: New testcase.
172         * testsuite/gas/arm/archv8m-base.d: New expected result.
173         * testsuite/gas/arm/archv8m-main.d: Likewise.
174         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
175
176 2016-11-02  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
177
178         * config/tc-i386.c: (cpu_arch) Add .avx512_4vnniw.
179         (cpu_noarch): Add noavx512_4vnniw.
180         * doc/c-i386.texi: Document avx512_4vnniw, noavx512_4vnniw.
181         * testsuite/gas/i386/i386.exp: Run AVX512_4VNNIW tests.
182         * testsuite/gas/i386/avx512_4vnniwd_vl-intel.d: New test.
183         * testsuite/gas/i386/avx512_4vnniwd_vl.d: Ditto.
184         * testsuite/gas/i386/avx512_4vnniwd_vl.s: Ditto.
185         * testsuite/gas/i386/avx512_4vnniwd-intel.d: Ditto.
186         * testsuite/gas/i386/avx512_4vnniwd.d: Ditto.
187         * testsuite/gas/i386/avx512_4vnniwd.s: Ditto.
188         * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl-intel.d: Ditto.
189         * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.d: Ditto.
190         * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.s: Ditto.
191         * testsuite/gas/i386/x86-64-avx512_4vnniwd-intel.d: Ditto.
192         * testsuite/gas/i386/x86-64-avx512_4vnniwd.d: Ditto.
193         * testsuite/gas/i386/x86-64-avx512_4vnniwd.s: Ditto.
194
195 2016-11-02  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
196
197         * config/tc-i386.c (cpu_arch): Add .avx512_4fmaps.
198         (cpu_noarch): Add noavx512_4fmaps.
199         (process_operands): Handle implicit quad group.
200         * doc/c-i386.texi: Document avx512_4fmaps, noavx512_4fmaps.
201         * testsuite/gas/i386/i386.exp: Add AVX512_4FMAPS tests.
202         * testsuite/gas/i386/avx512_4fmaps_vl-intel.d: New test.
203         * testsuite/gas/i386/avx512_4fmaps_vl.d: Ditto.
204         * testsuite/gas/i386/avx512_4fmaps_vl.s: Ditto.
205         * testsuite/gas/i386/avx512_4fmaps-intel.d: Ditto.
206         * testsuite/gas/i386/avx512_4fmaps.d: Ditto.
207         * testsuite/gas/i386/avx512_4fmaps.s: Ditto.
208         * testsuite/gas/i386/avx512_4fmaps-warn.l: Ditto.
209         * testsuite/gas/i386/avx512_4fmaps-warn.s: Ditto.
210         * testsuite/gas/i386/avx512_4fmaps_vl-warn.l: Ditto.
211         * testsuite/gas/i386/avx512_4fmaps_vl-warn.s: Ditto.
212         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Ditto.
213         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d: Ditto.
214         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Ditto.
215         * testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d: Ditto.
216         * testsuite/gas/i386/x86-64-avx512_4fmaps.d: Ditto.
217         * testsuite/gas/i386/x86-64-avx512_4fmaps.s: Ditto.
218         * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.l: Ditto.
219         * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.s: Ditto.
220         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.l: Ditto.
221         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.s: Ditto.
222
223 2016-11-01  Palmer Dabbelt  <palmer@dabbelt.com>
224             Andrew Waterman <andrew@sifive.com>
225
226         Add support for RISC-V architecture.
227         * Makefile.am: Add riscv files.
228         * Makefile.in: Regenerate.
229         * NEWS: Mention the support for this architecture.
230         * configure.in: Define a default architecture.
231         * configure: Regenerate.
232         * configure.tgt: Add entries for riscv.
233         * doc/as.texinfo: Likewise.
234         * testsuite/gas/all/gas.exp: Expect the redef tests to fail.
235         * testsuite/gas/elf/elf.exp: Expect the groupauto tests to fail.
236         * config/tc-riscv.c: New file.
237         * config/tc-riscv.h: New file.
238         * doc/c-riscv.texi: New file.
239         * testsuite/gas/riscv: New directory.
240         * testsuite/gas/riscv/riscv.exp: New file.
241         * testsuite/gas/riscv/t_insns.d: New file.
242         * testsuite/gas/riscv/t_insns.s: New file.
243
244 2016-10-27  Andrew Burgess  <andrew.burgess@embecosm.com>
245
246         * config/tc-arc.c (arc_target): Delete.
247         (arc_target_name): Delete.
248         (arc_features): Delete.
249         (arc_mach_type): Delete.
250         (mach_type_specified_p): Delete.
251         (enum mach_selection_type): New enum.
252         (mach_selection_mode): New static global.
253         (selected_cpu): New static global.
254         (arc_eflag): Rename to ...
255         (arc_initial_eflag): ...this, and make const.
256         (arc_select_cpu): Update comment, new parameter, check how
257         previous machine type selection was made, and record this
258         selection.  Use selected_cpu instead of old globals.
259         (arc_option): Remove use of arc_get_mach, instead use
260         arc_select_cpu to validate machine type selection.  Use
261         selected_cpu over old globals.
262         (allocate_tok): Use selected_cpu over old globals.
263         (find_opcode_match): Likewise.
264         (assemble_tokens): Likewise.
265         (arc_cons_fix_new): Likewise.
266         (arc_extinsn): Likewise.
267         (arc_extcorereg): Likewise.
268         (md_begin): Update default machine type selection, use
269         selected_cpu over old globals.
270         (md_parse_option): Update machine type selection option handling,
271         use selected_cpu over old globals.
272         * testsuite/gas/arc/nps400-0.s: Add .cpu directive.
273
274 2016-10-26  Alan Modra  <amodra@gmail.com>
275
276         Revert 2016-10-06  Alan Modra  <amodra@gmail.com>
277         * config/rl78-parse.y: Do use old %name-prefix syntax.
278         * config/rx-parse.y: Likewise.
279
280 2016-10-21  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * config/tc-i386.c (cpu_arch): Remove .pcommit.
283         * doc/c-i386.texi: Likewise.
284         * testsuite/gas/i386/i386.exp: Remove pcommit tests.
285         * testsuite/gas/i386/pcommit-intel.d: Removed.
286         * testsuite/gas/i386/pcommit.d: Likewise.
287         * testsuite/gas/i386/pcommit.s: Likewise.
288         * testsuite/gas/i386/x86-64-pcommit-intel.d: Likewise.
289         * testsuite/gas/i386/x86-64-pcommit.d: Likewise.
290         * testsuite/gas/i386/x86-64-pcommit.s: Likewise.
291
292 2016-10-20  H.J. Lu  <hongjiu.lu@intel.com>
293
294         PR binutis/20705
295         * testsuite/gas/i386/i386.exp: Run x86-64-opcode-bad.
296         * testsuite/gas/i386/x86-64-opcode-bad.d: New file.
297         * testsuite/gas/i386/x86-64-opcode-bad.s: Likewise.
298
299 2016-10-19  Renlin Li  <renlin.li@arm.com>
300
301         * config/tc-arm.c (encode_arm_shift): Generate unpredictable warning
302         for register-shifted register instructions.
303         * testsuite/gas/arm/shift-bad-pc.d: New.
304         * testsuite/gas/arm/shift-bad-pc.l: New.
305         * testsuite/gas/arm/shift-bad-pc.s: New.
306
307 2016-10-17  Cupertino Miranda  <cmiranda@synopsys.com>
308
309         * testsuite/arc/dis-inv.d: Fixed matching.
310
311 2016-10-17  Cupertino Miranda  <cmiranda@synopsys.com>
312
313         * testsuite/arc/dis-inv.s: Test to validate patch.
314         * testsuite/arc/dis-inv.d: Likewise.
315
316 2016-10-14  Claudiu Zissulescu  <claziss@synopsys.com>
317
318         * testsuite/gas/arc/shortlimm_a7.d: New file.
319         * testsuite/gas/arc/shortlimm_a7.s: Likewise.
320         * testsuite/gas/arc/shortlimm_hs.d: Likewise.
321         * testsuite/gas/arc/shortlimm_hs.s: Likewise.
322
323 2016-10-11  Nick Clifton  <nickc@redhat.com>
324
325         * gas/arm/tls.d: Adjust output to match change in objdump.
326
327 2016-10-11  Jiong Wang  <jiong.wang@arm.com>
328
329         PR target/20666
330         * testsuite/gas/aarch64/alias-2.d: Update expected results.
331
332 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
333
334         * testsuite/gas/cfi/cfi-common-1.d: Adjust regexps for mips64.
335         * testsuite/gas/cfi/cfi-common-2.d: Likewise.
336         * testsuite/gas/cfi/cfi-common-3.d: Likewise.
337         * testsuite/gas/cfi/cfi-common-4.d: Likewise.
338         * testsuite/gas/cfi/cfi-common-5.d: Likewise.
339         * testsuite/gas/cfi/cfi-common-7.d: Likewise.
340         * testsuite/gas/cfi/cfi-common-8.d: Likewise.
341         * testsuite/gas/cfi/cfi-common-9.d: Likewise.
342         * testsuite/gas/cfi/cfi-mips-1.d: Likewise.
343
344 2016-10-08  Alan Modra  <amodra@gmail.com>
345
346         * Makefile.am (EXTRA_as_new_SOURCES): Add config/rl78-parse.y and
347         config/rx-parse.y.  Move config/bfin-parse.y.
348         (bfin-parse.@OBJEXT@, rl78-parse.@OBJEXT@, rx-parse.@OBJEXT@): Delete.
349         ($(srcdir)/config/rl78-defs.h): New rule.
350         * Makefile.in: Regenerate.
351
352 2016-10-07  Jiong Wang  <jiong.wang@arm.com>
353
354         PR target/20667
355         * testsuite/gas/aarch64/sys-rt-reg.s: Test source for instructions using
356         SYS_Rt reg.
357         * testsuite/gas/aarch64/sys-rt-reg.d: New testcase.
358
359 2016-10-06  Claudiu Zissulescu  <claziss@synopsys.com>
360
361         * testsuite/gas/arc/leave_enter.d: New file.
362         * testsuite/gas/arc/leave_enter.s: Likewise.
363         * testsuite/gas/arc/regnames.d: Likewise.
364         * testsuite/gas/arc/regnames.s: Likewise.
365         * config/tc-arc.c (arc_parse_name): Don't match reg names against
366         confirmed symbol names.
367
368 2016-10-06  Alan Modra  <amodra@gmail.com>
369
370         * app.c (do_scrub_chars): Move fall through comment.
371         * expr.c (operand): Likewise.
372
373 2016-10-06  Matthew Fortune  <matthew.fortune@imgtec.com>
374
375         PR gas/20648
376         * dw2gencfi.c (dot_cfi_sections): Refine the check for
377         inconsistent .cfi_sections to only consider compact vs non
378         compact forms.
379         * testsuite/gas/cfi/cfi-common-9.d: New file.
380         * testsuite/gas/cfi/cfi-common-9.s: New file.
381         * testsuite/gas/cfi/cfi.exp: Run new test.
382
383 2016-10-06  Alan Modra  <amodra@gmail.com>
384
385         * app.c: Add missing fall through comments.
386         * dw2gencfi.c: Likewise.
387         * expr.c: Likewise.
388         * config/tc-alpha.c: Likewise.
389         * config/tc-arc.c: Likewise.
390         * config/tc-arm.c: Likewise.
391         * config/tc-cr16.c: Likewise.
392         * config/tc-crx.c: Likewise.
393         * config/tc-dlx.c: Likewise.
394         * config/tc-h8300.c: Likewise.
395         * config/tc-hppa.c: Likewise.
396         * config/tc-i370.c: Likewise.
397         * config/tc-i386.c: Likewise.
398         * config/tc-i960.c: Likewise.
399         * config/tc-ia64.c: Likewise.
400         * config/tc-m68hc11.c: Likewise.
401         * config/tc-m68k.c: Likewise.
402         * config/tc-mep.c: Likewise.
403         * config/tc-metag.c: Likewise.
404         * config/tc-microblaze.c: Likewise.
405         * config/tc-mips.c: Likewise.
406         * config/tc-ns32k.c: Likewise.
407         * config/tc-rx.c: Likewise.
408         * config/tc-score.c: Likewise.
409         * config/tc-score7.c: Likewise.
410         * config/tc-sh.c: Likewise.
411         * config/tc-tic4x.c: Likewise.
412         * config/tc-vax.c: Likewise.
413         * config/tc-xstormy16.c: Likewise.
414         * config/tc-z80.c: Likewise.
415         * config/tc-z8k.c: Likewise.
416         * config/obj-elf.c: Likewise.
417         * config/tc-i386.c: Likewise.
418         * depend.c: Spell fall through comments consistently.
419         * config/tc-arm.c: Likewise.
420         * config/tc-d10v.c: Likewise.
421         * config/tc-i960.c: Likewise.
422         * config/tc-ia64.c: Likewise.
423         * config/tc-m68k.c: Likewise.
424         * config/tc-mcore.c: Likewise.
425         * config/tc-mep.c: Likewise.
426         * config/tc-ns32k.c: Likewise.
427         * config/tc-visium.c: Likewise.
428         * config/tc-xstormy16.c: Likewise.
429         * config/tc-z8k.c: Likewise.
430
431 2016-10-06  Alan Modra  <amodra@gmail.com>
432
433         * as.h (as_assert): Add ATTRIBUTE_NORETURN.
434
435 2016-10-06  Alan Modra  <amodra@gmail.com>
436
437         * config/tc-arc.c (find_opcode_match): Add missing break.
438         * config/tc-i960.c (get_cdisp): Likewise.
439         * config/tc-metag.c (parse_swap, md_apply_fix): Likewise.
440         * config/tc-mt.c (md_parse_option): Likewise.
441         * config/tc-nds32.c (nds32_apply_fix): Likewise.
442         * config/tc-hppa.c (pa_ip): Assert rather than testing last
443         condition of multiple if statements.
444         * config/tc-s390.c (s390_exp_compare): Return 0 on error.
445         * config/tc-tic4x.c (tic4x_operand_parse): Add as_bad and break
446         out of case rather than falling into next case.  Formatting.
447
448 2016-10-06  Alan Modra  <amodra@gmail.com>
449
450         * config/rl78-parse.y: Don't use deprecated %name-prefix.
451         * config/rx-parse.y: Likewise.
452
453 2016-09-29  Jiong Wang  <jiong.wang@arm.com>
454
455         PR target/20553
456         * testsuite/gas/aarch64/advsimd-fp16.s (indexed_elem): New high index
457         testcases for H and S variants.  New low index testcases for D variant.
458         * testsuite/gas/aarch64/advsimd-fp16.d: Update expected results.
459
460 2016-09-29  Alan Modra  <amodra@gmail.com>
461
462         * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_OPTIONAL32.
463         * testsuite/gas/ppc/power8.s: Provide tbegin. operand.
464         * testsuite/gas/ppc/power9.d: Update cmprb disassembly.
465
466 2016-09-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
467
468         * config/tc-xtensa.c (xg_reverse_shift_count): Pass cnt_arg instead of
469         cnt_argp to concat.
470
471 2016-09-26  Vlad Zakharov  <vzakhar@synopsys.com>
472
473         * Makefile.in: Regenerate.
474         * configure: Likewise.
475         * doc/Makefile.in: Likewise.
476
477 2016-09-26  Alan Modra  <amodra@gmail.com>
478
479         * config/tc-ppc.c (ppc_elf_gnu_attribute): New function.
480         (md_pseudo_table <ELF>): Handle "gnu_attribute".
481
482 2016-09-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
483
484         * config/tc-arm.c (v7m_psrs): Remove BASEPRI_MASK MRS/MSR special
485         register and redundant basepri_max.
486
487 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
488
489         * config/tc-aarch64.c (print_operands): Print spaces between
490         operands.
491         * testsuite/gas/aarch64/ilp32-basic.d: Expect spaces after ","
492         in addresses.
493         * testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
494         * testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
495         * testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
496         * testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
497         * testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
498         * testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
499         * testsuite/gas/aarch64/reloc-insn.d: Likewise.
500         * testsuite/gas/aarch64/sve.d: Likewise.
501         * testsuite/gas/aarch64/symbol.d: Likewise.
502         * testsuite/gas/aarch64/system.d: Likewise.
503         * testsuite/gas/aarch64/tls-desc.d: Likewise.
504         * testsuite/gas/aarch64/sve-invalid.l: Expect spaces after ","
505         in suggested alternatives.
506         * testsuite/gas/aarch64/verbose-error.l: Likewise.
507
508 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
509
510         * config/tc-aarch64.c (output_operand_error_record): Use "must be"
511         rather than "should be" or "expected to be" in error messages.
512         (parse_operands): Likewise.
513         * testsuite/gas/aarch64/diagnostic.l: Likewise.
514         * testsuite/gas/aarch64/legacy_reg_names.l: Likewise.
515         * testsuite/gas/aarch64/sve-invalid.l: Likewise.
516         * testsuite/gas/aarch64/sve-reg-diagnostic.l: Likewise.
517
518 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
519
520         * config/tc-aarch64.c (opcode_lookup): Search for the end of
521         a condition name, rather than assuming that it will have exactly
522         2 characters.
523         (parse_operands): Likewise.
524         * testsuite/gas/aarch64/alias.d: Add new condition-code comments
525         to the expected output.
526         * testsuite/gas/aarch64/beq_1.d: Likewise.
527         * testsuite/gas/aarch64/float-fp16.d: Likewise.
528         * testsuite/gas/aarch64/int-insns.d: Likewise.
529         * testsuite/gas/aarch64/no-aliases.d: Likewise.
530         * testsuite/gas/aarch64/programmer-friendly.d: Likewise.
531         * testsuite/gas/aarch64/reloc-insn.d: Likewise.
532         * testsuite/gas/aarch64/b_c_1.d, testsuite/gas/aarch64/b_c_1.s:
533         New test.
534
535 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
536
537         * testsuite/gas/aarch64/diagnostic.s,
538         testsuite/gas/aarch64/diagnostic.l: Add tests for
539         invalid uses of MUL VL and MUL in base AArch64 instructions.
540         * testsuite/gas/aarch64/sve-add.s, testsuite/gas/aarch64/sve-add.d,
541         testsuite/gas/aarch64/sve-dup.s, testsuite/gas/aarch64/sve-dup.d,
542         testsuite/gas/aarch64/sve-invalid.s,
543         testsuite/gas/aarch64/sve-invalid.d,
544         testsuite/gas/aarch64/sve-invalid.l,
545         testsuite/gas/aarch64/sve-reg-diagnostic.s,
546         testsuite/gas/aarch64/sve-reg-diagnostic.d,
547         testsuite/gas/aarch64/sve-reg-diagnostic.l,
548         testsuite/gas/aarch64/sve.s, testsuite/gas/aarch64/sve.d: New tests.
549
550 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
551
552         * doc/c-aarch64.texi: Document the "sve" feature.
553         * config/tc-aarch64.c (REG_TYPE_R_Z_BHSDQ_VZP): New register type.
554         (get_reg_expected_msg): Handle it.
555         (parse_operands): When parsing operands of an SVE instruction,
556         disallow immediates that match REG_TYPE_R_Z_BHSDQ_VZP.
557         (aarch64_features): Add an entry for SVE.
558
559 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
560
561         * config/tc-aarch64.c (parse_operands): Handle the new SVE core
562         and FP register operands.
563
564 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
565
566         * config/tc-aarch64.c (double_precision_operand_p): New function.
567         (parse_operands): Use it to calculate the dp_p input to
568         parse_aarch64_imm_float.  Handle the new SVE FP immediate operands.
569
570 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
571
572         * config/tc-aarch64.c (parse_operands): Handle the new SVE integer
573         immediate operands.
574
575 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
576
577         * config/tc-aarch64.c (SHIFTED_NONE, SHIFTED_MUL_VL): New
578         parse_shift_modes.
579         (parse_shift): Handle SHIFTED_MUL_VL.
580         (parse_address_main): Add an imm_shift_mode parameter.
581         (parse_address, parse_sve_address): Update accordingly.
582         (parse_operands): Handle MUL VL addressing modes.
583
584 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
585
586         * config/tc-aarch64.c (REG_TYPE_SVE_BASE, REG_TYPE_SVE_OFFSET): New
587         register types.
588         (get_reg_expected_msg): Handle them.
589         (aarch64_addr_reg_parse): New function, split out from
590         aarch64_reg_parse_32_64.  Handle Z registers too.
591         (aarch64_reg_parse_32_64): Call it.
592         (parse_address_main): Add base_qualifier, offset_qualifier,
593         base_type and offset_type parameters.  Handle SVE base and offset
594         registers.
595         (parse_address): Update call to parse_address_main.
596         (parse_sve_address): New function.
597         (parse_operands): Parse the new SVE address operands.
598
599 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
600
601         * config/tc-aarch64.c (SHIFTED_MUL): New parse_shift_mode.
602         (parse_shift): Handle it.  Reject AARCH64_MOD_MUL for all other
603         shift modes.  Skip range tests for AARCH64_MOD_MUL.
604         (process_omitted_operand): Handle AARCH64_OPND_SVE_PATTERN_SCALED.
605         (parse_operands): Likewise.
606
607 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
608
609         * config/tc-aarch64.c (parse_enum_string): New function.
610         (po_enum_or_fail): New macro.
611         (parse_operands): Handle AARCH64_OPND_SVE_PATTERN and
612         AARCH64_OPND_SVE_PRFOP.
613
614 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
615
616         * config/tc-aarch64.c (vector_el_type): Add NT_zero and NT_merge.
617         (parse_vector_type_for_operand): Assert that the skipped character
618         is a '.'.
619         (parse_predication_for_operand): New function.
620         (parse_typed_reg): Parse /z and /m suffixes for predicate registers.
621         (vectype_to_qualifier): Handle NT_zero and NT_merge.
622
623 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
624
625         * config/tc-aarch64.c (NTA_HASVARWIDTH): New macro.
626         (AARCH64_REG_TYPES): Add ZN and PN.
627         (get_reg_expected_msg): Handle them.
628         (parse_vector_type_for_operand): Add a reg_type parameter.
629         Skip the width for Zn and Pn registers.
630         (parse_typed_reg): Extend vector handling to Zn and Pn.  Update the
631         call to parse_vector_type_for_operand.  Set HASVARTYPE for Zn and Pn,
632         expecting the width to be 0.
633         (parse_vector_reg_list): Restrict error about [BHSD]nn operands to
634         REG_TYPE_VN.
635         (vectype_to_qualifier): Use S_[BHSD] qualifiers for NTA_HASVARWIDTH.
636         (parse_operands): Handle the new Zn and Pn operands.
637         (REGSET16): New macro, split out from...
638         (REGSET31): ...here.
639         (reg_names): Add Zn and Pn entries.
640
641 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
642
643         * config/tc-aarch64.c (output_operand_error_record): Handle
644         AARCH64_OPDE_UNTIED_OPERAND.
645
646 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
647
648         * config/tc-aarch64.c (find_best_match): Simplify, allowing an
649         instruction with all-NIL qualifiers to fail to match.
650
651 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
652
653         * config/tc-aarch64.c (parse_address_main): Remove reloc and
654         accept_reg_post_index parameters.  Parse relocations and register
655         post indexes unconditionally.
656         (parse_address): Remove accept_reg_post_index parameter.
657         Update call to parse_address_main.
658         (parse_address_reloc): Delete.
659         (parse_operands): Call parse_address instead of parse_address_main.
660         Update existing callers of parse_address and make them check
661         inst.reloc.type where appropriate.
662         * testsuite/gas/aarch64/diagnostic.s: Add tests for relocations
663         in ADDR_SIMPLE, SIMD_ADDR_SIMPLE, ADDR_SIMM7 and ADDR_SIMM9 addresses.
664         Also test for invalid uses of post-index register addressing.
665         * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
666
667 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
668
669         * config/tc-aarch64.c (REG_TYPE_R_Z, REG_TYPE_R_SP): New register
670         types.
671         (get_reg_expected_msg): Handle them and REG_TYPE_R64_SP.
672         (aarch64_check_reg_type): Simplify.
673         (aarch64_reg_parse_32_64): Return the reg_entry instead of the
674         register number.  Return the type as a qualifier rather than an
675         "isreg32" boolean.  Remove reject_sp, reject_rz and isregzero
676         parameters.
677         (parse_shifter_operand): Update call to aarch64_parse_32_64_reg.
678         Use get_reg_expected_msg.
679         (parse_address_main): Likewise.  Use aarch64_check_reg_type.
680         (po_int_reg_or_fail): Replace reject_sp and reject_rz parameters
681         with a reg_type parameter.  Update call to aarch64_parse_32_64_reg.
682         Use aarch64_check_reg_type to test the result.
683         (parse_operands): Update after the above changes.  Parse ADDR_SIMPLE
684         addresses normally before enforcing the syntax restrictions.
685         * testsuite/gas/aarch64/diagnostic.s: Add tests for a post-index
686         zero register and for a stack pointer index.
687         * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
688         Also update existing diagnostic messages after the above changes.
689         * testsuite/gas/aarch64/illegal-lse.l: Update the error message
690         for 32-bit register bases.
691
692 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
693
694         * config/tc-aarch64.c (parse_aarch64_imm_float): Remove range check.
695         (parse_operands): Check the range of 8-bit FP immediates here instead.
696
697 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
698
699         * config/tc-aarch64.c (parse_aarch64_imm_float): Report a specific
700         low-severity error for registers.
701         (parse_operands): Report an invalid floating point constant for
702         if parsing an FPIMM8 fails, and if no better error has been
703         recorded.
704         * testsuite/gas/aarch64/diagnostic.s,
705         testsuite/gas/aarch64/diagnostic.l: Add tests for integer operands
706         to FMOV.
707
708 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
709
710         * config/tc-aarch64.c (aarch64_double_precision_fmovable): Rename
711         to...
712         (can_convert_double_to_float): ...this.  Accept any double-precision
713         value that converts to single precision without loss of precision.
714         (parse_aarch64_imm_float): Update accordingly.
715
716 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
717
718         * config/tc-aarch64.c (parse_immediate_expression): Add a
719         reg_type parameter.
720         (parse_constant_immediate): Likewise, and update calls.
721         (parse_aarch64_imm_float): Likewise.
722         (parse_big_immediate): Likewise.
723         (po_imm_nc_or_fail): Update accordingly, passing down a new
724         imm_reg_type variable.
725         (po_imm_of_fail): Likewise.
726         (parse_operands): Likewise.
727
728 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
729
730         * config/tc-aarch64.c (parse_neon_reg_list): Rename to...
731         (parse_vector_reg_list): ...this and take a register type
732         as input.
733         (parse_operands): Update accordingly.
734
735 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
736
737         * config/tc-aarch64.c (parse_neon_type_for_operand): Rename to...
738         (parse_vector_type_for_operand): ...this.
739         (parse_typed_reg): Update accordingly.
740
741 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
742
743         * config/tc-aarch64.c (neon_type_el): Rename to...
744         (vector_type_el): ...this.
745         (parse_neon_type_for_operand): Update accordingly.
746         (parse_typed_reg): Likewise.
747         (aarch64_reg_parse): Likewise.
748         (vectype_to_qualifier): Likewise.
749         (parse_operands): Likewise.
750         (eq_neon_type_el): Likewise.  Rename to...
751         (eq_vector_type_el): ...this.
752         (parse_neon_reg_list): Update accordingly.
753
754 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
755
756         * config/tc-aarch64.c (neon_el_type: Rename to...
757         (vector_el_type): ...this.
758         (neon_type_el): Update accordingly.
759         (parse_neon_type_for_operand): Likewise.
760         (vectype_to_qualifier): Likewise.
761
762 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
763
764         * config/tc-aarch64.c (parse_neon_operand_type): Delete.
765         (parse_typed_reg): Call parse_neon_type_for_operand directly.
766
767 2016-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
768
769         * testsuite/gas/arc/textinsnxop.d: New file.
770         * testsuite/gas/arc/textinsnxop.s: Likewise.
771
772 2016-09-15  Jose E. Marchesi  <jose.marchesi@oracle.com>
773
774         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
775         dcti-couples-v9 only in ELF targets to avoid spurious failures in
776         sparc-aout and sparc-coff targets.
777
778 2016-09-14  Peter Bergner <bergner@vnet.ibm.com>
779
780         * testsuite/gas/ppc/power9.d <slbiag, cpabort> New tests.
781         <addex., brd, brh, brw, lwzmx, nandxor, rldixor, setbool,
782         xor3, cp_abort, copy_first, paste, paste_last, sync>: Remove tests.
783         <copy, paste.>: Update tests.
784         * testsuite/gas/ppc/power9.s: Likewise.
785
786 2016-09-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
787
788         * config/tc-sparc.c (sparc_ip): Print the instruction arguments
789         in "architecture mismatch" error messages.
790
791 2016-09-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
792
793         * config/tc-sparc.c (md_assemble): Detect and warning on
794         unpredictable DCTI couples in certain arches.
795         (dcti_couples_detect): New global.
796         (md_longopts): Add command line option -dcti-couples-detect.
797         (md_show_usage): Document -dcti-couples-detect.
798         (md_parse_option): Handle OPTION_DCTI_COUPLES_DETECT.
799         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
800         dcti-couples-v8, dcti-couples-v9 and dcti-couples-v9c tests.
801         * testsuite/gas/sparc/dcti-couples.s: New file.
802         * testsuite/gas/sparc/dcti-couples-v9c.d: Likewise.
803         * testsuite/gas/sparc/dcti-couples-v8.d: Likewise.
804         * testsuite/gas/sparc/dcti-couples-v9.d: Likewise.
805         * testsuite/gas/sparc/dcti-couples-v9c.l: Likewise.
806         * testsuite/gas/sparc/dcti-couples-v8.l: Likewise.
807         * doc/as.texinfo (Overview): Document --dcti-couples-detect.
808         * doc/c-sparc.texi (Sparc-Opts): Likewise.
809
810 2016-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
811
812         * testsuite/gas/arc/tls-relocs2.d: New file.
813         * testsuite/gas/arc/tls-relocs2.s: Likewise.
814         * config/tc-arc.c (tokenize_arguments): Accept offsets when base
815         is used.
816
817 2016-09-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
818
819         * config/tc-s390.c (s390_parse_cpu): Support alternate arch
820         strings.
821         * doc/as.texinfo: Document new arch strings.
822         * doc/c-s390.texi: Likewise.
823
824 2016-09-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
825
826         * config/tc-s390.c: Set all facitily bits by default
827
828 2016-09-12  Patrick Steuer  <steuer@linux.vnet.ibm.com>
829
830         * testsuite/gas/s390/zarch-z196.d: Adjust testcase.
831
832 2016-09-08  H.J. Lu  <hongjiu.lu@intel.com>
833
834         * config/tc-i386.c (i386_target_format): Allow PROCESSOR_IAMCU
835         for Intel MCU.
836
837 2016-09-07  H.J. Lu  <hongjiu.lu@intel.com>
838
839         * config/tc-i386.c (valid_iamcu_cpu_flags): Removed.
840         (set_cpu_arch): Updated.
841         (md_parse_option): Likewise.
842         * testsuite/gas/i386/i386.exp: Run iamcu-4 and iamcu-5.  Remove
843         iamcu-inval-2 and iamcu-inval-3.
844         * testsuite/gas/i386/iamcu-4.d: New file.
845         * testsuite/gas/i386/iamcu-4.s: Likewise.
846         * testsuite/gas/i386/iamcu-5.d: Likewise.
847         * testsuite/gas/i386/iamcu-5.s: Likewise.
848         * testsuite/gas/i386/iamcu-inval-2.l: Removed.
849         * testsuite/gas/i386/iamcu-inval-2.s: Likewise.
850         * testsuite/gas/i386/iamcu-inval-3.l: Likewise.
851         * testsuite/gas/i386/iamcu-inval-3.s: Likewise.
852
853 2016-09-07  Richard Earnshaw  <rearnsha@arm.com>
854
855         * config/tc-arm.c ((arm_cpus): Use ARM_ARCH_V8A_CRC for all
856         ARMv8-A CPUs except xgene1.
857
858 2016-08-31  Alan Modra  <amodra@gmail.com>
859
860         * config/tc-ppc.c (md_assemble): Set sh_flags for VLE.  Test
861         ppc_cpu rather than calling ppc_mach to determine VLE mode.
862         (ppc_frag_check, ppc_handle_align): Likewise use ppc_cpu.
863
864 2016-08-26  Jose E. Marchesi  <jose.marchesi@oracle.com>
865
866         * testsuite/gas/sparc/crypto.d: Rename invalid opcode camellia_fi
867         to camellia_fl.
868         * testsuite/gas/sparc/crypto.s: Likewise.
869
870 2016-08-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
871
872         * config/tc-arm.c (v7m_psrs): Add MSPLIM, PSPLIM, MSPLIM_NS,
873         PSPLIM_NS, PRIMASK_NS, BASEPRI_NS, FAULTMASK_NS, CONTROL_NS, SP_NS and
874         their lowecase counterpart special registers.  Write register
875         identifier in hex.
876         * testsuite/gas/arm/archv8m-cmse-msr.s: Reorganize tests per
877         operation, special register and then case.  Use different register for
878         each operation.  Add tests for new special registers.
879         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Adapt expected result
880         accordingly.
881         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
882         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
883
884 2016-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
885
886         * config/tc-arm.c (v7m_psrs): Remove msp_s, MSP_S, psp_s and PSP_S
887         special registers.
888         * testsuite/gas/arm/archv8m-cmse-msr.s: Remove test for above special
889         registers.
890         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
891         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
892         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
893
894 2016-08-24  H.J. Lu  <hongjiu.lu@intel.com>
895
896         * config/tc-i386.c (cpu_arch): Add .ptwrite.
897         * doc/c-i386.texi: Document ptwrite and .ptwrite.
898         * testsuite/gas/i386/i386.exp: Run ptwrite, ptwrite-intel,
899         x86-64-ptwrite and x86-64-ptwrite-intel.
900         * testsuite/gas/i386/ptwrite-intel.d: New file.
901         * testsuite/gas/i386/ptwrite.d: Likewise.
902         * testsuite/gas/i386/ptwrite.s: Likewise.
903         * testsuite/gas/i386/x86-64-ptwrite-intel.d: Likewise.
904         * testsuite/gas/i386/x86-64-ptwrite.d: Likewise.
905         * testsuite/gas/i386/x86-64-ptwrite.s: Likewise.
906
907 2016-08-19  Tamar Christina  <tamar.christina@arm.com>
908
909         * config/tc-arm.c (do_co_reg2c): Added constraint.
910         * testsuite/gas/arm/dest-unpredictable.s: New.
911         * testsuite/gas/arm/dest-unpredictable.l: New.
912         * testsuite/gas/arm/dest-unpredictable.d: New.
913
914 2016-08-19  Nick Clifton  <nickc@redhat.com>
915
916         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Adjust expected
917         ordering of sections.
918         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
919         * testsuite/gas/ia64/alias-ilp32.d: Likewise.
920         * testsuite/gas/ia64/alias.d: Likewise.
921         * testsuite/gas/ia64/group-1.d: Likewise.
922         * testsuite/gas/ia64/group-2.d: Likewise.
923         * testsuite/gas/ia64/secname-ilp32.d: Likewise.
924         * testsuite/gas/ia64/secname.d: Likewise.
925         * testsuite/gas/ia64/unwind-ilp32.d: Likewise.
926         * testsuite/gas/ia64/unwind.d: Likewise.
927         * testsuite/gas/ia64/xdata-ilp32.d: Likewise.
928         * testsuite/gas/ia64/xdata.d: Likewise.
929         * testsuite/gas/mmix/bspec-1.d: Likewise.
930         * testsuite/gas/mmix/bspec-2.d: Likewise.
931         * testsuite/gas/mmix/byte-1.d: Likewise.
932         * testsuite/gas/mmix/loc-1.d: Likewise.
933         * testsuite/gas/mmix/loc-2.d: Likewise.
934         * testsuite/gas/mmix/loc-3.d: Likewise.
935         * testsuite/gas/mmix/loc-4.d: Likewise.
936         * testsuite/gas/mmix/loc-5.d: Likewise.
937         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
938
939 2016-08-11  Richard Sandiford  <richard.sandiford@arm.com>
940
941         * config/tc-aarch64.c (parse_aarch64_imm_float): Reject -0.0.
942         * testsuite/gas/aarch64/illegal.s, testsuite/gas/aarch64/illegal.l:
943         Add tests for -0.0.  Add an end-of-file comment.
944
945 2016-08-05  Nick Clifton  <nickc@redhat.com>
946
947         PR gas/20429
948         * config/tc-arm.c (do_vfp_nsyn_push): Check that no more than 16
949         registers are pushed.
950         (do_vfp_nsyn_pop): Check that no more than 16 registers are
951         popped.
952         * testsuite/gas/arm/pr20429.s: New test.
953         * testsuite/gas/arm/pr20429.d: New test driver.
954         * testsuite/gas/arm/pr20429.1: Expected error output.
955
956         PR gas/20364
957         * config/tc-aarch64.c (s_ltorg): Change the mapping state after
958         aligning the frag.
959         (aarch64_init): Treat rs_align frags in code sections as
960         containing code, not data.
961         * testsuite/gas/aarch64/pr20364.s: New test.
962         * testsuite/gas/aarch64/pr20364.d: New test driver.
963
964 2016-08-04  Stefan Trleman  <stefan.teleman@oracle.com>
965
966         PR gas/20427
967         * config/tc-sparc.c (cons_fix_new_sparc): Prevent the generation
968         of 64-bit relocation types when assembling for a 32-bit Solaris
969         target.
970
971 2016-07-27  Jose E. Marchesi  <jose.marchesi@oracle.com>
972
973         * testsuite/gas/sparc/sparc.exp: Use is_elf_format to discriminate
974         ELF targets.
975         Run natural, natural-32, pr4587, ticc-imm-reg, v8-movwr-imm,
976         pause, save-args, cbcond, cfr, crypto edge, flush, hpcvis3, ima,
977         ld_st_fsr, ldtw_sttw, ldd_std, ldx_stx, ldx_efsr, mwait, mcdper,
978         sparc5vis4, xcrypto, v9branch1 and imm-plus-rreg only in ELF
979         targets.
980         (sparc_elf_setup): Delete.
981         * testsuite/gas/sparc/save-args.d: Fix a copy-paste typo in the
982         test's #name entry.
983
984 2016-07-27  Maciej W. Rozycki  <macro@imgtec.com>
985
986         * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `nods' flag.
987         (RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16)
988         (RELAX_MICROMIPS_MARK_TOOFAR16, RELAX_MICROMIPS_CLEAR_TOOFAR16)
989         (RELAX_MICROMIPS_TOOFAR32, RELAX_MICROMIPS_MARK_TOOFAR32)
990         (RELAX_MICROMIPS_CLEAR_TOOFAR32): Shift bits.
991         (get_append_method): Also return APPEND_ADD_COMPACT for
992         microMIPS instructions.
993         (find_altered_mips16_opcode): Exclude macros from matching.
994         Factor code out...
995         (find_altered_opcode): ... to this new function.
996         (find_altered_micromips_opcode): New function.
997         (frag_branch_delay_slot_size): Likewise.
998         (append_insn): Handle microMIPS branch/jump compaction.
999         (macro_start): Likewise.
1000         (relaxed_micromips_32bit_branch_length): Likewise.
1001         (md_convert_frag): Likewise.
1002         * testsuite/gas/mips/micromips.s: Add conditional explicit NOPs
1003         for delay slot filling.
1004         * testsuite/gas/mips/micromips-b16.s: Add explicit NOPs for
1005         delay slot filling.
1006         * testsuite/gas/mips/micromips-size-1.s: Likewise.
1007         * testsuite/gas/mips/micromips.l: Adjust line numbers.
1008         * testsuite/gas/mips/micromips-warn.l: Likewise.
1009         * testsuite/gas/mips/micromips-size-1.l: Likewise.
1010         * testsuite/gas/mips/micromips.d: Adjust padding.
1011         * testsuite/gas/mips/micromips-trap.d: Likewise.
1012         * testsuite/gas/mips/micromips-insn32.d: Likewise.
1013         * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1014         * testsuite/gas/mips/micromips@beq.d: Update patterns for
1015         branch/jump compaction.
1016         * testsuite/gas/mips/micromips@bge.d: Likewise.
1017         * testsuite/gas/mips/micromips@bgeu.d: Likewise.
1018         * testsuite/gas/mips/micromips@blt.d: Likewise.
1019         * testsuite/gas/mips/micromips@bltu.d: Likewise.
1020         * testsuite/gas/mips/micromips@branch-misc-4.d: Likewise.
1021         * testsuite/gas/mips/micromips@branch-misc-4-64.d: Likewise.
1022         * testsuite/gas/mips/micromips@branch-misc-5.d: Likewise.
1023         * testsuite/gas/mips/micromips@branch-misc-5pic.d: Likewise.
1024         * testsuite/gas/mips/micromips@branch-misc-5-64.d: Likewise.
1025         * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1026         * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
1027         * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d:
1028         Likewise.
1029         * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d:
1030         Likewise.
1031         * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
1032         * testsuite/gas/mips/micromips@loc-swap-dis.d: Likewise.
1033         * testsuite/gas/mips/micromips@relax.d: Likewise.
1034         * testsuite/gas/mips/micromips@relax-at.d: Likewise.
1035         * testsuite/gas/mips/micromips@relax-swap3.d: Likewise.
1036         * testsuite/gas/mips/branch-extern-2.d: Likewise.
1037         * testsuite/gas/mips/branch-extern-4.d: Likewise.
1038         * testsuite/gas/mips/branch-section-2.d: Likewise.
1039         * testsuite/gas/mips/branch-section-4.d: Likewise.
1040         * testsuite/gas/mips/branch-weak-2.d: Likewise.
1041         * testsuite/gas/mips/branch-weak-5.d: Likewise.
1042         * testsuite/gas/mips/micromips-branch-absolute.d: Likewise.
1043         * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
1044         * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
1045         * testsuite/gas/mips/micromips-branch-absolute-addend.d:
1046         Likewise.
1047         * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
1048         Likewise.
1049         * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
1050         Likewise.
1051         * testsuite/gas/mips/micromips-compact.d: New test.
1052         * testsuite/gas/mips/mips.exp: Run the new test.
1053
1054 2016-07-27  Graham Markall  <graham.markall@embecosm.com>
1055
1056         * config/tc-arc.c: Add new global arc_addrtype_hash.
1057         Define O_colon and O_addrtype.
1058         (debug_exp): Add O_colon and O_addrtype.
1059         (tokenize_arguments): Handle colon and address type
1060         tokens.
1061         (declare_addrtype): New function.
1062         (md_begin): Initialise arc_addrtype_hash.
1063         (arc_parse_name): Add lookup of address types.
1064         (assemble_insn): Handle colons and address types by
1065         ignoring them.
1066         * testsuite/gas/arc/nps400-8.s: New file.
1067         * testsuite/gas/arc/nps400-8.d: New file.
1068         * testsuite/gas/arc/nps400-8.s: Add PMU instruction tests.
1069         * testsuite/gas/arc/nps400-8.d: Add expected PMU
1070         instruction output.
1071
1072 2016-07-26  Maciej W. Rozycki  <macro@imgtec.com>
1073
1074         * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `insn32' flag.
1075         (RELAX_MICROMIPS_INSN32): New macro.
1076         (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
1077         (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_RELAX32)
1078         (RELAX_MICROMIPS_TOOFAR16, RELAX_MICROMIPS_MARK_TOOFAR16)
1079         (RELAX_MICROMIPS_CLEAR_TOOFAR16, RELAX_MICROMIPS_TOOFAR32)
1080         (RELAX_MICROMIPS_MARK_TOOFAR32, RELAX_MICROMIPS_CLEAR_TOOFAR32):
1081         Shift bits.
1082         (append_insn): Record `mips_opts.insn32' with relaxed microMIPS
1083         branches.
1084         (relaxed_micromips_32bit_branch_length): Handle the `insn32'
1085         mode.
1086         (md_convert_frag): Likewise.
1087         * testsuite/gas/mips/micromips-branch-relax.s: Add `insn32'
1088         conditionals.
1089         * testsuite/gas/mips/micromips-branch-relax.l: Update line
1090         numbers accordingly.
1091         * testsuite/gas/mips/micromips-branch-relax-pic.l: Likewise.
1092         * testsuite/gas/mips/micromips-branch-relax-insn32.d: New test.
1093         * testsuite/gas/mips/micromips-branch-relax-insn32-pic.d: New
1094         test.
1095         * testsuite/gas/mips/micromips-branch-relax-insn32.l: New
1096         stderr output.
1097         * testsuite/gas/mips/micromips-branch-relax-insn32-pic.l: New
1098         stderr output.
1099         * testsuite/gas/mips/mips.exp: Run the new tests.
1100
1101 2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1102
1103         * configure: Regenerated.
1104
1105 2016-07-20  Claudiu Zissulescu  <claziss@synopsys.com>
1106
1107         * testsuite/gas/arc/dsp.d: New file.
1108         * testsuite/gas/arc/dsp.s: Likewise.
1109         * testsuite/gas/arc/fpu.d: Likewise.
1110         * testsuite/gas/arc/fpu.s: Likewise.
1111         * testsuite/gas/arc/ext2op.d: Add specific disassembler option.
1112         * testsuite/gas/arc/ext3op.d: Likewise.
1113         * testsuite/gas/arc/tdpfp.d: Likewise.
1114         * testsuite/gas/arc/tfpuda.d: Likewise.
1115
1116 2016-07-20  Maciej W. Rozycki  <macro@imgtec.com>
1117
1118         * config/tc-mips.c (mips_force_relocation): Remove
1119         R_MIPS_PC26_S2 and R_MIPS_PC21_S2.
1120
1121 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
1122
1123         * config/tc-mips.c (mips_force_relocation, mips_fix_adjustable):
1124         Adjust comments for BAL to JALX linker conversion.
1125         (fix_bad_cross_mode_branch_p): Accept cross-mode BAL.
1126         * testsuite/gas/mips/unaligned-branch-1.l: Update error messages
1127         expected.
1128         * testsuite/gas/mips/unaligned-branch-micromips-1.l: Likewise.
1129         * testsuite/gas/mips/branch-local-4.d: New test.
1130         * testsuite/gas/mips/branch-local-n32-4.d: New test.
1131         * testsuite/gas/mips/branch-local-n64-4.d: New test.
1132         * testsuite/gas/mips/branch-addend.d: New test.
1133         * testsuite/gas/mips/branch-addend-n32.d: New test.
1134         * testsuite/gas/mips/branch-addend-n64.d: New test.
1135         * testsuite/gas/mips/branch-local-4.s: New test source.
1136         * testsuite/gas/mips/branch-addend.s: New test source.
1137         * testsuite/gas/mips/mips.exp: Run the new tests.
1138
1139 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
1140
1141         * config/tc-mips.c (mips_force_relocation): Also retain branch
1142         relocations against MIPS16 and microMIPS symbols.
1143         (fix_bad_cross_mode_jump_p): New function.
1144         (fix_bad_same_mode_jalx_p): Likewise.
1145         (fix_bad_misaligned_jump_p): Likewise.
1146         (fix_bad_cross_mode_branch_p): Likewise.
1147         (fix_bad_misaligned_branch_p): Likewise.
1148         (fix_validate_branch): Likewise.
1149         (md_apply_fix) <BFD_RELOC_MIPS_JMP, BFD_RELOC_MIPS16_JMP>
1150         <BFD_RELOC_MICROMIPS_JMP>: Separate from BFD_RELOC_MIPS_SHIFT5,
1151         etc.  Verify the ISA mode and alignment of the jump target.
1152         <BFD_RELOC_MIPS_21_PCREL_S2>: Replace the inline alignment check
1153         with a call to `fix_validate_branch'.
1154         <BFD_RELOC_MIPS_26_PCREL_S2>: Likewise.
1155         <BFD_RELOC_16_PCREL_S2>: Likewise.
1156         <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
1157         <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Retain the original addend.
1158         Verify the ISA mode and alignment of the branch target.
1159         (md_convert_frag): Verify the ISA mode and alignment of resolved
1160         MIPS16 branch targets.
1161         * testsuite/gas/mips/branch-misc-1.s: Annotate non-instruction
1162         branch targets with `.insn'.
1163         * testsuite/gas/mips/branch-misc-5.s: Likewise.
1164         * testsuite/gas/mips/micromips@branch-misc-5-64.d: Update
1165         accordingly.
1166         * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1167         * testsuite/gas/mips/micromips-branch-relax.s: Annotate
1168         non-instruction branch target with `.insn'.
1169         * testsuite/gas/mips/micromips.s: Replace microMIPS JALX targets
1170         with external symbols.
1171         * testsuite/gas/mips/micromips-insn32.d: Update accordingly.
1172         * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1173         * testsuite/gas/mips/micromips-trap.d: Likewise.
1174         * testsuite/gas/mips/micromips.d: Likewise.
1175         * testsuite/gas/mips/mips16.s: Annotate non-instruction branch
1176         targets with `.insn'.
1177         * testsuite/gas/mips/mips16.d: Update accordingly.
1178         * testsuite/gas/mips/mips16-64.d: Likewise.
1179         * testsuite/gas/mips/mips16-dwarf2.s: Annotate non-instruction
1180         branch target with `.insn'.
1181         * testsuite/gas/mips/relax-swap3.s: Likewise.
1182         * testsuite/gas/mips/branch-local-2.l: New list test.
1183         * testsuite/gas/mips/branch-local-3.l: New list test.
1184         * testsuite/gas/mips/branch-local-n32-2.l: New list test.
1185         * testsuite/gas/mips/branch-local-n32-3.l: New list test.
1186         * testsuite/gas/mips/branch-local-n64-2.l: New list test.
1187         * testsuite/gas/mips/branch-local-n64-3.l: New list test.
1188         * testsuite/gas/mips/unaligned-jump-1.l: New list test.
1189         * testsuite/gas/mips/unaligned-jump-2.l: New list test.
1190         * testsuite/gas/mips/unaligned-jump-3.d: New test.
1191         * testsuite/gas/mips/unaligned-jump-mips16-1.l: New list test.
1192         * testsuite/gas/mips/unaligned-jump-mips16-2.l: New list test.
1193         * testsuite/gas/mips/unaligned-jump-mips16-3.d: New test.
1194         * testsuite/gas/mips/unaligned-jump-micromips-1.l: New list
1195         test.
1196         * testsuite/gas/mips/unaligned-jump-micromips-2.l: New list
1197         test.
1198         * testsuite/gas/mips/unaligned-jump-micromips-3.d: New test.
1199         * testsuite/gas/mips/unaligned-branch-1.l: New list test.
1200         * testsuite/gas/mips/unaligned-branch-2.l: New list test.
1201         * testsuite/gas/mips/unaligned-branch-3.d: New test.
1202         * testsuite/gas/mips/unaligned-branch-r6-1.l: New list test.
1203         * testsuite/gas/mips/unaligned-branch-r6-2.l: New list test.
1204         * testsuite/gas/mips/unaligned-branch-r6-3.l: New list test.
1205         * testsuite/gas/mips/unaligned-branch-r6-4.l: New list test.
1206         * testsuite/gas/mips/unaligned-branch-r6-5.d: New test.
1207         * testsuite/gas/mips/unaligned-branch-r6-6.d: New test.
1208         * testsuite/gas/mips/unaligned-branch-mips16-1.l: New list test.
1209         * testsuite/gas/mips/unaligned-branch-mips16-2.l: New list test.
1210         * testsuite/gas/mips/unaligned-branch-mips16-3.d: New test.
1211         * testsuite/gas/mips/unaligned-branch-micromips-1.l: New list
1212         test.
1213         * testsuite/gas/mips/unaligned-branch-micromips-2.l: New list
1214         test.
1215         * testsuite/gas/mips/unaligned-branch-micromips-3.d: New test.
1216         * testsuite/gas/mips/branch-local-2.s: New test source.
1217         * testsuite/gas/mips/branch-local-3.s: New test source.
1218         * testsuite/gas/mips/branch-local-n32-2.s: New test source.
1219         * testsuite/gas/mips/branch-local-n32-3.s: New test source.
1220         * testsuite/gas/mips/branch-local-n64-2.s: New test source.
1221         * testsuite/gas/mips/branch-local-n64-3.s: New test source.
1222         * testsuite/gas/mips/unaligned-jump-1.s: New test source.
1223         * testsuite/gas/mips/unaligned-jump-2.s: New test source.
1224         * testsuite/gas/mips/unaligned-jump-mips16-1.s: New test source.
1225         * testsuite/gas/mips/unaligned-jump-mips16-2.s: New test source.
1226         * testsuite/gas/mips/unaligned-jump-micromips-1.s: New test
1227         source.
1228         * testsuite/gas/mips/unaligned-jump-micromips-2.s: New test
1229         source.
1230         * testsuite/gas/mips/unaligned-branch-1.s: New test source.
1231         * testsuite/gas/mips/unaligned-branch-2.s: New test source.
1232         * testsuite/gas/mips/unaligned-branch-r6-1.s: New test source.
1233         * testsuite/gas/mips/unaligned-branch-r6-2.s: New test source.
1234         * testsuite/gas/mips/unaligned-branch-r6-3.s: New test source.
1235         * testsuite/gas/mips/unaligned-branch-r6-4.s: New test source.
1236         * testsuite/gas/mips/unaligned-branch-mips16-1.s: New test
1237         source.
1238         * testsuite/gas/mips/unaligned-branch-mips16-2.s: New test
1239         source.
1240         * testsuite/gas/mips/unaligned-branch-micromips-1.s: New test
1241         source.
1242         * testsuite/gas/mips/unaligned-branch-micromips-2.s: New test
1243         source.
1244         * testsuite/gas/mips/mips.exp: Run the new tests.
1245
1246 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1247
1248         * config/tc-nds32.c (struct nds32_pseudo_opcode): Make pseudo_val
1249         unsigned int.
1250         (do_pseudo_b): Adjust.
1251         (do_pseudo_bal): Likewise.
1252         (do_pseudo_bge): Likewise.
1253         (do_pseudo_bges): Likewise.
1254         (do_pseudo_bgt): Likewise.
1255         (do_pseudo_bgts): Likewise.
1256         (do_pseudo_ble): Likewise.
1257         (do_pseudo_bles): Likewise.
1258         (do_pseudo_blt): Likewise.
1259         (do_pseudo_blts): Likewise.
1260         (do_pseudo_br): Likewise.
1261         (do_pseudo_bral): Likewise.
1262         (do_pseudo_la): Likewise.
1263         (do_pseudo_li): Likewise.
1264         (do_pseudo_ls_bhw): Likewise.
1265         (do_pseudo_ls_bhwp): Likewise.
1266         (do_pseudo_ls_bhwpc): Likewise.
1267         (do_pseudo_ls_bhwi): Likewise.
1268         (do_pseudo_move): Likewise.
1269         (do_pseudo_neg): Likewise.
1270         (do_pseudo_not): Likewise.
1271         (do_pseudo_pushpopm): Likewise.
1272         (do_pseudo_pushpop): Likewise.
1273         (do_pseudo_v3push): Likewise.
1274         (do_pseudo_v3pop): Likewise.
1275         (do_pseudo_pushpop_stack): Likewise.
1276         (do_pseudo_push_bhwd): Likewise.
1277         (do_pseudo_pop_bhwd): Likewise.
1278         (do_pseudo_pusha): Likewise.
1279         (do_pseudo_pushi): Likewise.
1280
1281 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1282
1283         * config/tc-sparc.c (struct pop_entry): Make the type of reloc
1284         bfd_reloc_code_real_type.
1285
1286 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1287
1288         * config/tc-sparc.c (pop_table): Remove sentinel.
1289         (NUM_PERC_ENTRIES): Use ARRAY_SIZE on pop_table.
1290         (md_begin): Adjust.
1291
1292 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1293
1294         * config/tc-z8k.c (newfix): Make type of type argument
1295         bfd_reloc_code_real_type.
1296         (apply_fix): Likewise.
1297
1298 2016-07-16  Alan Modra  <amodra@gmail.com>
1299
1300         * config/tc-epiphany.c: Don't include libbfd.h.
1301         * config/tc-frv.c: Likewise.
1302         * config/tc-ip2k.c: Likewise.
1303         * config/tc-iq2000.c: Likewise.
1304         * config/tc-m32c.c: Likewise.
1305         * config/tc-mep.c: Likewise.
1306         * config/tc-mt.c: Likewise.
1307         * config/tc-nios2.c: Likewise.
1308
1309 2016-07-16  Alan Modra  <amodra@gmail.com>
1310
1311         * config/bfin-parse.y: Don't include libbfd.h.
1312         * config/tc-bfin.c: Likewise.
1313         * config/tc-rl78.c: Likewise.
1314         * config/tc-rx.c: Likewise.
1315         * config/tc-metag.c: Likewise.
1316         (create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT.
1317         * Makefile.am: Update dependencies.
1318         * Makefile.in: Regenerate.
1319
1320 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
1321
1322         * config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro.
1323         (mips_force_relocation_abs): New prototype.
1324         * config/tc-mips.c (mips_force_relocation_abs): New function.
1325         * testsuite/gas/mips/branch-absolute.d: Adjust dump patterns.
1326         * testsuite/gas/mips/mips16-branch-absolute.d: Likewise.
1327         * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
1328         * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
1329         * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
1330         Likewise.
1331         * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
1332         Likewise.
1333         * testsuite/gas/mips/branch-absolute-addend.d: New test.
1334         * testsuite/gas/mips/mips16-branch-absolute-addend.d: New test.
1335         * testsuite/gas/mips/micromips-branch-absolute-addend.d: New
1336         test.
1337         * testsuite/gas/mips/mips.exp: Run the new tests.
1338
1339 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
1340
1341         * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_16_PCREL_S1>
1342         <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
1343         <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Keep the ISA bit in the
1344         addend calculated.
1345         * testsuite/gas/mips/mips16-branch-absolute.s: Set the ISA bit
1346         in `bar', export `foo'.
1347         * testsuite/gas/mips/mips16-branch-absolute.d: Adjust
1348         accordingly.
1349         * testsuite/gas/mips/mips16-branch-absolute-n32.d: Likewise.
1350         * testsuite/gas/mips/mips16-branch-absolute-n64.d: Likewise.
1351         * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d:
1352         Likewise.
1353         * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d:
1354         Likewise.
1355
1356 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
1357
1358         * testsuite/gas/mips/mips16-branch-absolute.d: Update patterns.
1359         * testsuite/gas/mips/branch-absolute.d: New test.
1360         * testsuite/gas/mips/branch-absolute-n32.d: New test.
1361         * testsuite/gas/mips/branch-absolute-n64.d: New test.
1362         * testsuite/gas/mips/branch-absolute-addend-n32.d: New test.
1363         * testsuite/gas/mips/branch-absolute-addend-n64.d: New test.
1364         * testsuite/gas/mips/mips16-branch-absolute-n32.d: New test.
1365         * testsuite/gas/mips/mips16-branch-absolute-n64.d: New test.
1366         * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d: New
1367         test.
1368         * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d: New
1369         test.
1370         * testsuite/gas/mips/micromips-branch-absolute.d: New test.
1371         * testsuite/gas/mips/micromips-branch-absolute-n32.d: New test.
1372         * testsuite/gas/mips/micromips-branch-absolute-n64.d: New test.
1373         * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d: New
1374         test.
1375         * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d: New
1376         test.
1377         * testsuite/gas/mips/branch-absolute.s: New test source.
1378         * testsuite/gas/mips/branch-absolute-addend.s: New test source.
1379         * testsuite/gas/mips/mips16-branch-absolute-addend.s: New test
1380         source.
1381         * testsuite/gas/mips/micromips-branch-absolute.s: New test
1382         source.
1383         * testsuite/gas/mips/micromips-branch-absolute-addend.s: New
1384         test source.
1385         * testsuite/gas/mips/mips.exp: Run the new tests.
1386
1387 2016-07-13  Maciej W. Rozycki  <macro@imgtec.com>
1388
1389         * testsuite/gas/mips/nal-1.d: New test.
1390         * testsuite/gas/mips/mipsr6@nal-1.d: New test.
1391         * testsuite/gas/mips/nal-2.d: New test.
1392         * testsuite/gas/mips/mipsr6@nal-2.d: New test.
1393         * testsuite/gas/mips/nal.s: New test source.
1394         * testsuite/gas/mips/mips.exp: Run the new tests.
1395
1396 2016-07-12  Jose E. Marchesi  <jose.marchesi@oracle.com>
1397
1398         * testsuite/gas/sparc/ldtxa.s: New file.
1399         * testsuite/gas/sparc/ldtxa.d: Likewise.
1400         * testsuite/gas/sparc/sparc.exp: Execute the ldtxa test.
1401
1402 2016-07-11  Claudiu Zissulescu  <claziss@synopsys.com>
1403
1404         * config/tc-arc.c (arc_reloc_op_tag): Allow complex ops for dtpoff.
1405         (tc_gen_reloc): Remove passing DTPOFF base info into reloc addendum
1406         as it is no longer needed.
1407
1408 2016-07-08  Maciej W. Rozycki  <macro@imgtec.com>
1409
1410         * config/tc-mips.c (append_insn): Remove extraneous
1411         `install_insn' call.
1412
1413 2016-07-04  Jan Beulich  <jbeulich@suse.com>
1414
1415         * config/tc-i386.c (check_qword_reg): Correct register kind
1416         checked.
1417         * testsuite/gas/i386/x86-64-suffix-bad.s: Add q-suffix with
1418         16-bit register cases.
1419         * testsuite/gas/i386/x86-64-suffix-bad.l: Adjust expectations.
1420
1421
1422 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
1423
1424         * testsuite/gas/mips/ecoff@ld.d: Remove test.
1425         * testsuite/gas/mips/ecoff@ld-forward.d: Remove test.
1426         * testsuite/gas/mips/ecoff@ld-zero-3.d: Remove test.
1427         * testsuite/gas/mips/ecoff@sd.d: Remove test.
1428         * testsuite/gas/mips/ecoff@sd-forward.d: Remove test.
1429         * testsuite/gas/mips/beq.d: Remove a.out and ECOFF support from
1430         reloc patterns.
1431         * testsuite/gas/mips/mipsr6@beq.d: Likewise.
1432         * testsuite/gas/mips/bge.d: Likewise.
1433         * testsuite/gas/mips/mipsr6@bge.d: Likewise.
1434         * testsuite/gas/mips/bgeu.d: Likewise.
1435         * testsuite/gas/mips/mipsr6@bgeu.d: Likewise.
1436         * testsuite/gas/mips/blt.d: Likewise.
1437         * testsuite/gas/mips/mipsr6@blt.d: Likewise.
1438         * testsuite/gas/mips/bltu.d: Likewise.
1439         * testsuite/gas/mips/mipsr6@bltu.d: Likewise.
1440         * testsuite/gas/mips/branch-likely.d: Likewise.
1441         * testsuite/gas/mips/la.d: Likewise.
1442         * testsuite/gas/mips/lb.d: Likewise.
1443         * testsuite/gas/mips/lifloat.d: Likewise.
1444         * testsuite/gas/mips/sb.d: Likewise.
1445         * testsuite/gas/mips/uld.d: Likewise.
1446         * testsuite/gas/mips/ulh.d: Likewise.
1447         * testsuite/gas/mips/ulw.d: Likewise.
1448         * testsuite/gas/mips/usd.d: Likewise.
1449         * testsuite/gas/mips/ush.d: Likewise.
1450         * testsuite/gas/mips/usw.d: Likewise.
1451
1452 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
1453
1454         * testsuite/gas/mips/branch-misc-2.s: Move non
1455         locally-defined-global symbol tests...
1456         * testsuite/gas/mips/branch-misc-5.s: ... to this new test.
1457         * testsuite/gas/mips/branch-misc-2.d: Update accordingly.
1458         * testsuite/gas/mips/branch-misc-2-64.d: Likewise.
1459         * testsuite/gas/mips/branch-misc-2pic.d: Likewise.
1460         * testsuite/gas/mips/branch-misc-2pic-64.d: Likewise.
1461         * testsuite/gas/mips/mipsr6@branch-misc-2-64.d: Likewise.
1462         * testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d: Likewise.
1463         * testsuite/gas/mips/micromips@branch-misc-2.d: Likewise.
1464         * testsuite/gas/mips/micromips@branch-misc-2-64.d: Likewise.
1465         * testsuite/gas/mips/micromips@branch-misc-2pic.d: Likewise.
1466         * testsuite/gas/mips/micromips@branch-misc-2pic-64.d: Likewise.
1467         * testsuite/gas/mips/branch-misc-5.d: New test.
1468         * testsuite/gas/mips/branch-misc-5pic.d: New test.
1469         * testsuite/gas/mips/branch-misc-5-64.d: New test.
1470         * testsuite/gas/mips/branch-misc-5pic-64.d: New test.
1471         * testsuite/gas/mips/mipsr6@branch-misc-5-64.d: New test.
1472         * testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d: New test.
1473         * testsuite/gas/mips/micromips@branch-misc-5.d: New test.
1474         * testsuite/gas/mips/micromips@branch-misc-5pic.d: New test.
1475         * testsuite/gas/mips/micromips@branch-misc-5-64.d: New test.
1476         * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: New test.
1477         * testsuite/gas/mips/mips.exp: Run the new tests.
1478
1479 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
1480
1481         * testsuite/gas/mips/beq.s: Uncomment branches to undefined
1482         symbols.
1483         * testsuite/gas/mips/beq.d: Update accordingly.
1484         * testsuite/gas/mips/mipsr6@beq.d: Likewise.
1485         * testsuite/gas/mips/micromips@beq.d: Likewise.
1486
1487 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
1488
1489         * testsuite/gas/mips/mips.exp: Restrict 64-bit `branch-mips'
1490         tests to NewABI targets.
1491
1492 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
1493
1494         * testsuite/gas/mips/mips.exp: Group `branch-misc' tests
1495         together.
1496
1497 2016-07-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1498
1499         * config/tc-aarch64.c (struct aarch64_option_cpu_value_table): Add
1500         require field.
1501         (aarch64_features): Initialize require fields.
1502         (aarch64_parse_features): Handle dependencies.
1503         (aarch64_feature_enable_set, aarch64_feature_disable_set): New.
1504         (md_assemble): Use AARCH64_CPU_HAS_ALL_FEATURES.
1505         * testsuite/gas/aarch64/illegal-nofp16.s: New.
1506         * testsuite/gas/aarch64/illegal-nofp16.l: New.
1507         * testsuite/gas/aarch64/illegal-nofp16.d: New.
1508
1509 2016-07-01  Nick Clifton  <nickc@redhat.com>
1510
1511         * macro.c (macro_expand_body): Use a buffer big enough to hold an
1512         extremely large integer.
1513
1514 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1515
1516         * testsuite/gas/i386/mpx-inval-2.l: Relax for COFF targets.
1517
1518 2016-07-01  Tristan Gingold  <gingold@adacore.com>
1519
1520         * NEWS: Add marker for 2.27.
1521
1522 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1523
1524         * tc-i386.c (i386_index_check): Add special checks for bndmk,
1525         bndldx, and bndstx.
1526         * testsuite/gas/i386/mpx-inval-2.s: Add %rip and %eip relative
1527         as well as scaling by other than 1 tests.
1528         * testsuite/gas/i386/mpx-inval-2.l: Adjust accordingly.
1529
1530 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1531
1532         * tc-i386.c (md_assemble): Alter address size checking for MPX
1533         instructions.
1534         * testsuite/gas/i386/mpx-inval-2.s: New.
1535         * testsuite/gas/i386/mpx-inval-2.l: New.
1536         * testsuite/gas/i386/i386.exp: Run new test.
1537
1538 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1539
1540         PR gas/20318
1541         * config/tc-i386.c (match_template): Add char parameter,
1542         consumed in Intel mode for an extra suffix check.
1543         (md_assemble): New local variable mnem_suffix.
1544         * testsuite/gas/i386/suffix-bad.s: New.
1545         * testsuite/gas/i386/suffix-bad.l: New.
1546         * testsuite/gas/i386/i386.exp: Run new test (twice).
1547
1548 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1549
1550         * testsuite/gas/i386/movz.s: New.
1551         * testsuite/gas/i386/movz32.d: New.
1552         * testsuite/gas/i386/movz64.d: New.
1553         * testsuite/gas/i386/i386.exp: Run new tests.
1554
1555 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1556
1557         * config/tc-i386.c (struct _i386_insn): New field memop1_string.
1558         (md_assemble): Free first memory operand string.
1559         (i386_index_check): Use repprefixok to distingush xlat from
1560         other (real) string ops.
1561         (maybe_adjust_templates): New.
1562         (i386_att_operand). Call it. Store first memory operand string.
1563         * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1564         * testsuite/gas/i386/intel-movs.s: New.
1565         * testsuite/gas/i386/intel-movs32.d: New.
1566         * testsuite/gas/i386/intel-movs64.d: New.
1567         * testsuite/gas/i386/i386.exp: Run new tests. Invoke as for
1568         64-bits tests with "--defsym x86_64=1 --strip-local-absolute".
1569
1570 2016-06-30  Maciej W. Rozycki  <macro@imgtec.com>
1571
1572         * config/tc-mips.c (get_append_method): Fix a comment typo.
1573
1574 2016-06-30  Matthew Fortune <Matthew.Fortune@imgtec.com>
1575             Maciej W. Rozycki  <macro@imgtec.com>
1576
1577         * config/tc-mips.c (append_insn) <APPEND_SWAP>: Do not special
1578         case MIPS16 handling.
1579         * testsuite/gas/mips/branch-swap-3.d: New test.
1580         * testsuite/gas/mips/branch-swap-4.d: New test.
1581         * testsuite/gas/mips/mips16@branch-swap-3.d: New test.
1582         * testsuite/gas/mips/mips16@branch-swap-4.d: New test.
1583         * testsuite/gas/mips/micromips@branch-swap-3.d: New test.
1584         * testsuite/gas/mips/micromips@branch-swap-4.d: New test.
1585         * testsuite/gas/mips/branch-swap-3.s: New test source.
1586         * testsuite/gas/mips/mips.exp: Run the new tests.
1587
1588 2016-06-30  Maciej W. Rozycki  <macro@imgtec.com>
1589
1590         * config/tc-mips.c (append_insn): Simplify non-MIPS16 branch
1591         swapping sequence.
1592
1593 2016-06-30  Maciej W. Rozycki  <macro@imgtec.com>
1594
1595         PR gas/20312
1596         * write.c (subsegs_finish_section): Force no section padding to
1597         alignment on failed assembly, always set last frag's alignment
1598         from section.
1599         * testsuite/gas/all/pr20312.l: New list test.
1600         * testsuite/gas/all/pr20312.s: New test source.
1601         * testsuite/gas/all/gas.exp: Run the new test
1602
1603 2016-06-30  Andrew Burgess  <andrew.burgess@embecosm.com>
1604
1605         * config.in (TARGET_WITH_CPU): Undefine.
1606         * configure.ac: Add --with-cpu support, and define in config.h.
1607         * configure: Regenerate.
1608         * config/tc-arc.c: Use TARGET_WITH_CPU to select default CPU.
1609         * NEWS: Mention new configure option.
1610
1611 2016-06-30  Matthew Wahab  <matthew.wahab@arm.com>
1612
1613         * testsuite/gas/arm/armv8_2+rdma.d: New.
1614
1615 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
1616
1617         * NEWS: Mention --enable-compressed-debug-sections=gas is the
1618         default for Linux/x86 targets.
1619         * configure.tgt (ac_default_compressed_debug_sections): Default
1620         to yes for Linux/x86 targets.
1621
1622 2016-06-29  Maciej W. Rozycki  <macro@imgtec.com>
1623
1624         * write.c: Remove "libbfd.h" inclusion.
1625
1626 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
1627
1628         * testsuite/gas/elf/elf.exp: Use `supports_gnu_unique' with the
1629         `type' test.
1630
1631 2016-06-28  Alan Modra  <amodra@gmail.com>
1632
1633         PR gas/20247
1634         * testsuite/gas/elf/section11.s: Don't start directives in first column.
1635
1636 2016-06-28  Richard Sandiford  <richard.sandiford@arm.com>
1637
1638         * testsuite/gas/aarch64/diagnostic.s,
1639         testsuite/gas/aarch64/diagnostic.l: Add tests for out-of-range indices.
1640
1641 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
1642
1643         * config/tc-mips.c (mips16_reloc_p): Handle
1644         BFD_RELOC_MIPS16_16_PCREL_S1.
1645         (b_reloc_p): Likewise.
1646         (limited_pcrel_reloc_p): Likewise.
1647         (md_pcrel_from): Likewise.
1648         (md_apply_fix): Likewise.
1649         (tc_gen_reloc): Likewise.
1650         (md_convert_frag): Likewise.
1651         (mips_fix_adjustable): Update comment.
1652         * testsuite/gas/mips/mips16-branch-reloc-2.d: Remove error
1653         output, add dump patterns.
1654         * testsuite/gas/mips/mips16-branch-reloc-3.d: Remove error
1655         output, add dump patterns.
1656         * testsuite/gas/mips/mips16-branch-addend-2.d: Remove error
1657         output, add dump patterns.
1658         * testsuite/gas/mips/mips16-branch-addend-3.d: Remove error
1659         output, add dump patterns.
1660         * testsuite/gas/mips/mips16-branch-absolute.d: Remove error
1661         output, add dump patterns.
1662         * testsuite/gas/mips/mips16-branch-reloc-2.l: Remove file.
1663         * testsuite/gas/mips/mips16-branch-reloc-3.l: Remove file.
1664         * testsuite/gas/mips/mips16-branch-addend-2.l: Remove file.
1665         * testsuite/gas/mips/mips16-branch-addend-3.l: Remove file.
1666         * testsuite/gas/mips/mips16-branch-absolute.l: Remove file.
1667         * testsuite/gas/mips/mips16-branch-addend-2.s: Add padding.
1668         * testsuite/gas/mips/branch-weak.s: Adjust alignment, avoid
1669         implicit instruction padding, avoid MIPS16 JR->JRC conversion.
1670         * testsuite/gas/mips/branch-weak-6.d: New test.
1671         * testsuite/gas/mips/branch-weak-7.d: New test.
1672         * testsuite/gas/mips/mips.exp: Run the new tests.
1673
1674 2016-06-27  Vineet Gupta  <vgupta@synopsys.com>
1675
1676         * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
1677         cfi_add_CFA_def_cfa to generate default CFA with offset
1678         * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
1679
1680 2016-06-27  Nick Clifton  <nickc@redhat.com>
1681
1682         PR gas/20247
1683         * as.h (do_not_pad_sections_to_alignment): New global variable.
1684         * as.c (show_usage): Add --no-pad-sections.
1685         (parse_args): Likewise.
1686         * write.c (size_seg): Skip padding the end of the section if
1687         requested from the command line.
1688         (SUB_SEGMENT_ALIGN): Likewise.
1689         * doc/as.texinfo: Document the new option.
1690         * NEWS: Mention the new feature.
1691         * testsuite/gas/elf/section11.s: New test.
1692         * testsuite/gas/elf/section11.d: New test driver.
1693         * testsuite/gas/elf/elf.exp: Run the new test.
1694
1695 2016-06-27  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1696
1697         * config/tc-dlx.c: Include bfd/elf32-dlx.h.
1698         * config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16.
1699
1700 2016-06-27  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1701
1702         * config/tc-xtensa.c (xtensa_elf_suffix): Use ARRAY_SIZE instead of a
1703         sentinal element.
1704         (map_suffix_reloc_to_operator): Likewise.
1705         (map_operator_to_reloc): Likewise.
1706
1707 2016-06-27  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1708
1709         * config/tc-nds32.c (md_begin): Use ARRAY_SIZE instead of a sentinal
1710         element in relax_table.
1711
1712 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1713
1714         * config/tc-aarch64.c: Make the type of reg_entry::type
1715         aarch_reg_type.
1716
1717 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1718
1719         * config/tc-bfin.c (bfin_cpus): Remove sentinal.
1720         (md_parse_option): Adjust.
1721         * config/tc-aarch64.c (aarch64_parse_abi): Replace use of a sentinal
1722         with iteration from 0 to ARRAY_SIZE.
1723         * config/tc-mcore.c (md_begin): Likewise.
1724         * config/tc-visium.c (visium_parse_arch): Likewise.
1725
1726 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1727
1728         * config/tc-tic54x.c (tic54x_set_default_include): remove argument
1729                                                            and simplify accordingly.
1730         (tic54x_include): Adjust.
1731         (tic54x_mlib): Likewise.
1732
1733 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1734
1735         * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype.
1736
1737 2016-06-24  Maciej W. Rozycki  <macro@imgtec.com>
1738
1739         * config/tc-mips.c (append_insn): Use any `O_symbol' expression
1740         unchanged with relaxed MIPS16 instructions.
1741         (mips16_extended_frag): Adjust accordingly.  Return 1 right
1742         away if a relocation will be required for the symbol requested.
1743         Remove dead first relaxation pass code.
1744         (mips_relax_frag): Pass `sec' down to `mips16_extended_frag'.
1745         (md_convert_frag): Adjust symbol value calculation.  Raise an
1746         error if a relocation is required for the symbol requested.
1747         * testsuite/gas/mips/mips16@relax-swap3.d: Remove dump patterns,
1748         add error output.
1749         * testsuite/gas/mips/mips16@relax-swap3.l: New error output.
1750         * testsuite/gas/mips/mips16-pcrel-relax-0.d: New test.
1751         * testsuite/gas/mips/mips16-pcrel-relax-1.d: New test.
1752         * testsuite/gas/mips/mips16-pcrel-relax-2.d: New test.
1753         * testsuite/gas/mips/mips16-pcrel-relax-3.d: New test.
1754         * testsuite/gas/mips/mips16-pcrel-reloc-0.d: New test.
1755         * testsuite/gas/mips/mips16-pcrel-reloc-1.d: New test.
1756         * testsuite/gas/mips/mips16-pcrel-reloc-2.d: New test.
1757         * testsuite/gas/mips/mips16-pcrel-reloc-3.d: New test.
1758         * testsuite/gas/mips/mips16-pcrel-reloc-4.d: New test.
1759         * testsuite/gas/mips/mips16-pcrel-reloc-5.d: New test.
1760         * testsuite/gas/mips/mips16-pcrel-reloc-6.d: New test.
1761         * testsuite/gas/mips/mips16-pcrel-reloc-7.d: New test.
1762         * testsuite/gas/mips/mips16-pcrel-addend-0.d: New test.
1763         * testsuite/gas/mips/mips16-pcrel-addend-1.d: New test.
1764         * testsuite/gas/mips/mips16-pcrel-addend-2.d: New test.
1765         * testsuite/gas/mips/mips16-pcrel-addend-3.d: New test.
1766         * testsuite/gas/mips/mips16-pcrel-absolute.d: New test.
1767         * testsuite/gas/mips/mips16-branch-reloc-0.d: New test.
1768         * testsuite/gas/mips/mips16-branch-reloc-1.d: New test.
1769         * testsuite/gas/mips/mips16-branch-reloc-2.d: New test.
1770         * testsuite/gas/mips/mips16-branch-reloc-3.d: New test.
1771         * testsuite/gas/mips/mips16-branch-addend-0.d: New test.
1772         * testsuite/gas/mips/mips16-branch-addend-1.d: New test.
1773         * testsuite/gas/mips/mips16-branch-addend-2.d: New test.
1774         * testsuite/gas/mips/mips16-branch-addend-3.d: New test.
1775         * testsuite/gas/mips/mips16-branch-absolute.d: New test.
1776         * testsuite/gas/mips/mips16-absolute-reloc-0.d: New test.
1777         * testsuite/gas/mips/mips16-absolute-reloc-1.d: New test.
1778         * testsuite/gas/mips/mips16-absolute-reloc-2.d: New test.
1779         * testsuite/gas/mips/mips16-absolute-reloc-3.d: New test.
1780         * testsuite/gas/mips/mips16-pcrel-reloc-2.l: New error output.
1781         * testsuite/gas/mips/mips16-pcrel-reloc-3.l: New error output.
1782         * testsuite/gas/mips/mips16-pcrel-reloc-6.l: New error output.
1783         * testsuite/gas/mips/mips16-pcrel-reloc-7.l: New error output.
1784         * testsuite/gas/mips/mips16-pcrel-addend-2.l: New error output.
1785         * testsuite/gas/mips/mips16-pcrel-addend-3.l: New error output.
1786         * testsuite/gas/mips/mips16-pcrel-absolute.l: New error output.
1787         * testsuite/gas/mips/mips16-branch-reloc-2.l: New error output.
1788         * testsuite/gas/mips/mips16-branch-reloc-3.l: New error output.
1789         * testsuite/gas/mips/mips16-branch-addend-2.l: New error output.
1790         * testsuite/gas/mips/mips16-branch-addend-3.l: New error output.
1791         * testsuite/gas/mips/mips16-branch-absolute.l: New error output.
1792         * testsuite/gas/mips/mips16-absolute-reloc-2.l: New error output.
1793         * testsuite/gas/mips/mips16-absolute-reloc-3.l: New error output.
1794         * testsuite/gas/mips/mips16-pcrel-relax-0.s: New test source.
1795         * testsuite/gas/mips/mips16-pcrel-relax-2.s: New test source.
1796         * testsuite/gas/mips/mips16-pcrel-reloc-0.s: New test source.
1797         * testsuite/gas/mips/mips16-pcrel-reloc-1.s: New test source.
1798         * testsuite/gas/mips/mips16-pcrel-reloc-2.s: New test source.
1799         * testsuite/gas/mips/mips16-pcrel-reloc-3.s: New test source.
1800         * testsuite/gas/mips/mips16-pcrel-reloc-4.s: New test source.
1801         * testsuite/gas/mips/mips16-pcrel-reloc-5.s: New test source.
1802         * testsuite/gas/mips/mips16-pcrel-reloc-6.s: New test source.
1803         * testsuite/gas/mips/mips16-pcrel-reloc-7.s: New test source.
1804         * testsuite/gas/mips/mips16-pcrel-addend-0.s: New test source.
1805         * testsuite/gas/mips/mips16-pcrel-addend-1.s: New test source.
1806         * testsuite/gas/mips/mips16-pcrel-addend-2.s: New test source.
1807         * testsuite/gas/mips/mips16-pcrel-addend-3.s: New test source.
1808         * testsuite/gas/mips/mips16-pcrel-absolute.s: New test source.
1809         * testsuite/gas/mips/mips16-branch-reloc-0.s: New test source.
1810         * testsuite/gas/mips/mips16-branch-reloc-1.s: New test source.
1811         * testsuite/gas/mips/mips16-branch-reloc-2.s: New test source.
1812         * testsuite/gas/mips/mips16-branch-reloc-3.s: New test source.
1813         * testsuite/gas/mips/mips16-branch-addend-0.s: New test source.
1814         * testsuite/gas/mips/mips16-branch-addend-1.s: New test source.
1815         * testsuite/gas/mips/mips16-branch-addend-2.s: New test source.
1816         * testsuite/gas/mips/mips16-branch-addend-3.s: New test source.
1817         * testsuite/gas/mips/mips16-branch-absolute.s: New test source.
1818         * testsuite/gas/mips/mips16-absolute-reloc-0.s: New test source.
1819         * testsuite/gas/mips/mips16-absolute-reloc-1.s: New test source.
1820         * testsuite/gas/mips/mips16-absolute-reloc-2.s: New test source.
1821         * testsuite/gas/mips/mips16-absolute-reloc-3.s: New test source.
1822         * testsuite/gas/mips/mips.exp: Run the new tests.
1823
1824 2016-06-24  Alan Modra  <amodra@gmail.com>
1825
1826         * configure.tgt (alpha-*-openbsd*): Use em=nbsd.
1827
1828 2016-06-23  Maciej W. Rozycki  <macro@imgtec.com>
1829
1830         * config/tc-mips.c (b_reloc_p): New function.
1831         (mips_fix_adjustable): Also keep the original microMIPS symbol
1832         referred from branch relocations.
1833         * testsuite/gas/mips/branch-local-1.d: New test.
1834         * testsuite/gas/mips/branch-local-n32-1.d: New test.
1835         * testsuite/gas/mips/branch-local-n64-1.d: New test.
1836         * testsuite/gas/mips/micromips@branch-misc-4-64.d: Update
1837         relocations.
1838         * testsuite/gas/mips/branch-local-1.s: New test source.
1839         * testsuite/gas/mips/mips.exp: Run the new cases.
1840
1841 2016-06-23  Graham Markall  <graham.markall@embecosm.com>
1842
1843         * config/tc-arc.c (options, md_longopts, md_parse_option): Move
1844         -mspfp, -mdpfp and -mfpuda out of the sections for dummy
1845         options. Correct erroneous enabling of SPFP instructions when
1846         using -mnps400.
1847
1848 2016-06-22  Peter Bergner <bergner@vnet.ibm.com>
1849
1850         * testsuite/gas/ppc/power9.d <brd, brh, brw, mffs, mffs., mffsce,
1851         mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl, nandxor, rldixor,
1852         setbool, xor3>: New tests.
1853         * testsuite/gas/ppc/power9.s: Likewise.
1854
1855 2016-06-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1856
1857         * config/tc-xtensa.c: Include elf/xtensa.h.
1858
1859 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
1860
1861         * config/tc-mips.c (calculate_reloc) <BFD_RELOC_HI16_S_PCREL>
1862         <BFD_RELOC_LO16_PCREL>: New switch cases.
1863         (md_apply_fix) <BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL>:
1864         Move switch cases along `BFD_RELOC_MIPS_JMP'.
1865         <BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2>
1866         <BFD_RELOC_MIPS_18_PCREL_S3, BFD_RELOC_MIPS_19_PCREL_S2>: Handle
1867         the resolved case.
1868         * testsuite/gas/mips/pcrel-reloc-4.d: New test.
1869         * testsuite/gas/mips/pcrel-reloc-4-r6.d: New test.
1870         * testsuite/gas/mips/pcrel-reloc-5.d: New test.
1871         * testsuite/gas/mips/pcrel-reloc-5-r6.d: New test.
1872         * testsuite/gas/mips/pcrel-reloc-6.d: New test.
1873         * testsuite/gas/mips/pcrel-reloc-6.l: New list test.
1874         * testsuite/gas/mips/pcrel-reloc-4.s: New test source.
1875         * testsuite/gas/mips/pcrel-reloc-6.s: New test source.
1876         * testsuite/gas/mips/mips.exp: Run the new tests.
1877
1878 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
1879
1880         * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS_18_PCREL_S3>
1881         <BFD_RELOC_MIPS_19_PCREL_S2>: Avoid null pointer dereferences
1882         via `fixP->fx_addsy'.
1883
1884 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
1885
1886         * config/tc-mips.c (md_pcrel_from) <BFD_RELOC_MIPS_18_PCREL_S3>:
1887         Calculate relocation from the containing aligned doubleword.
1888         (tc_gen_reloc) <BFD_RELOC_MIPS_18_PCREL_S3>: Calculate the
1889         addend from the containing aligned doubleword.
1890
1891 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
1892
1893         * config/tc-mips.c (mips_force_relocation): Use `file_mips_opts'
1894         rather than `mips_opts' for the R6 ISA check.
1895         (mips_fix_adjustable): Likewise.
1896         * testsuite/gas/mips/pcrel-reloc-1.d: New test.
1897         * testsuite/gas/mips/pcrel-reloc-1-r6.d: New test.
1898         * testsuite/gas/mips/pcrel-reloc-2.d: New test.
1899         * testsuite/gas/mips/pcrel-reloc-2-r6.d: New test.
1900         * testsuite/gas/mips/pcrel-reloc-3.d: New test.
1901         * testsuite/gas/mips/pcrel-reloc-3-r6.d: New test.
1902         * testsuite/gas/mips/pcrel-reloc-1.s: New test source.
1903         * testsuite/gas/mips/mips.exp: Run the new tests.
1904
1905 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
1906
1907         * config/tc-arc.c (check_cpu_feature, md_parse_option):
1908         Add nps400 option and feature. Add check for nps400
1909         feature. Refactor existing checks to check subclass before
1910         feature enablement.
1911         (md_show_usage): Document flags for NPS-400 and add some other
1912         undocumented flags.
1913         (cpu_type): Remove nps400 CPU type entry
1914         (check_zol): Remove bfd_mach_arc_nps400 case.
1915         (md_show_usage): Add help on -mcpu=nps400.
1916         (cpu_types): Add entry for nps400 as arc700 plus nps400 extension
1917         set.
1918         * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and
1919         -fpuda flags.  Document -mcpu=nps400.
1920         * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change
1921         expected flags to match ARC700 instead of NPS400.
1922         * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400.
1923         * testsuite/gas/arc/nps-400-2.d: Likewise.
1924         * testsuite/gas/arc/nps-400-3.d: Likewise.
1925         * testsuite/gas/arc/nps-400-4.d: Likewise.
1926         * testsuite/gas/arc/nps-400-5.d: Likewise.
1927         * testsuite/gas/arc/nps-400-6.d: Likewise.
1928         * testsuite/gas/arc/nps-400-7.d: Likewise.
1929         * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to
1930         avoid clash with cbba instruction.
1931         * testsuite/gas/arc/textinsn2op01.d: Likewise.
1932         * testsuite/gas/arc/textinsn3op.d: Likewise.
1933         * testsuite/gas/arc/textinsn3op.s: Likewise.
1934         * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using
1935         -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags.
1936
1937 2016-06-20  Maciej W. Rozycki  <macro@imgtec.com>
1938
1939         * testsuite/gas/mips/r6-64-n32.d: Change the `name' tag.
1940         * testsuite/gas/mips/r6-64-n64.d: Likewise.
1941
1942 2016-06-20  Maciej W. Rozycki  <macro@imgtec.com>
1943
1944         * config/tc-mips.c (mips_fix_adjustable): Update comment on jump
1945         reloc conversion.
1946
1947 2016-06-20  Virendra Pathak  <virendra.pathak@broadcom.com>
1948
1949         * config/tc-aarch64.c (aarch64_cpus): Update vulcan feature set.
1950
1951 2016-06-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
1952
1953         * config/tc-sparc.c (hpriv_reg_table): Add registers %hmcdper,
1954         %hmcddfr and %hva_mask_nz.
1955         (sparc_ip): New handling of asr/privileged/hyperprivileged
1956         registers, adapted to the new form of the sparc opcodes table.
1957         * testsuite/gas/sparc/rdasr.s: New file.
1958         * testsuite/gas/sparc/rdasr.d: Likewise.
1959         * testsuite/gas/sparc/wrasr.s: Likewise.
1960         * testsuite/gas/sparc/wrasr.d: Likewise.
1961         * testsuite/gas/sparc/sparc.exp (sparc_elf_setup): Add rdasr and
1962         wrasr tests.
1963         * testsuite/gas/sparc/rdpr.d: Use -Av9m, as some privileged
1964         registers require it.
1965         * testsuite/gas/sparc/wrpr.s: Complete to cover all privileged
1966         registers and write instruction modalities.
1967         * testsuite/gas/sparc/wrpr.d: Likewise.
1968         * testsuite/gas/sparc/rdhpr.s: Likewise for hyperprivileged
1969         registers.
1970         * testsuite/gas/sparc/rdhpr.d: Likewise.
1971         * testsuite/gas/sparc/wrhpr.s: Likewise.
1972         * testsuite/gas/sparc/wrhpr.d: Likewise.
1973
1974 2016-06-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
1975
1976         * config/tc-sparc.c (sparc_arch_table): adjust the GAS
1977         architectures to use the right opcode architecture.
1978         (sparc_md_end): Handle v9{c,d,e,v,m}.
1979         (sparc_ip): Fix some comments.
1980         * testsuite/gas/sparc/ldx_efsr.d: Fix the architecture of this
1981         instruction, which is v9d.
1982         * testsuite/gas/sparc/mwait.s: Remove the `rd %mwait,%g1'
1983         instruction from the test, as %mwait is not readable.
1984         * testsuite/gas/sparc/mwait.d: Likewise.
1985         * testsuite/gas/sparc/mism-1.s: Expand to check v9b and v9e
1986         mismatch architecture errors.
1987         * testsuite/gas/sparc/mism-2.s: New file.
1988
1989 2016-06-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
1990
1991         * config/tc-sparc.c (priv_reg_table): Use NULL instead of the
1992         empty string to mark the end of the array.
1993         (hpriv_reg_table): Likewise.
1994         (v9a_asr_table): Likewise.
1995         (cmp_reg_entry): Handle entries with NULL names.
1996         (F_POP_V9): Define.
1997         (F_POP_PCREL): Likewise.
1998         (F_POP_TLS_CALL): Likewise.
1999         (F_POP_POSTFIX): Likewise.
2000         (struct pop_entry): New type.
2001         (pop_table): New variable.
2002         (enum pop_entry_type): New type.
2003         (struct perc_entry): Likewise.
2004         (NUM_PERC_ENTRIES): Define.
2005         (perc_table): New variable.
2006         (cmp_perc_entry): New function.
2007         (md_begin): Sort hpriv_reg_table and v9a_asr_table, and initialize
2008         perc_table.
2009         (sparc_ip): Handle entries with NULL names in priv_reg_table,
2010         hpriv_reg_table and v9a_asr_table.  Use perc_table to handle
2011         %-pseudo-ops.
2012
2013 2016-06-15  Nick Clifton  <nickc@redhat.com>
2014
2015         * config/tc-ft32.c (md_assemble): Call dwarf2_emit_insn with the
2016         instruction size.
2017         * config/tc-mcore.c (md_assemble): Likewise.
2018         * config/tc-mn10200.c (md_assemble): Likewise.
2019         * config/tc-moxie.c (md_assemble): Likewise.
2020         * config/tc-pj.c (md_apply_fix): Handle BFD_RELOC_PJ_CODE_REL32.
2021         * testsuite/gas/all/gas.exp (diff1 test): Alpha sort list of
2022         exception targets.  Add alpha, hppa, microblaze and rl78 to list
2023         of exceptions.
2024         (forward): Add microblaze to list of exceptions.
2025         (fwdexp): Add alpha to list of exceptions.
2026         (redef2): Add arm-epoc-pe and rl78 to list of exceptions.
2027         (redef3): Add rl78 and x86_64 cygwin to list of exceptions.
2028         (do_930509a): Alpha sort list of exception targets.  Add h8300 and
2029         mn10200 to list of exceptions.
2030         (align2): Expect to fail for nds32.
2031         (cond): Add alpha and rl78 to list of exceptions.
2032         * testsuite/gas/all/none.d: Skip for ft32 and hppa.
2033         * testsuite/gas/all/string.d: Skip for tic4x.
2034         * testsuite/gas/alpha/alpha.exp: Note that the alpha-linuxecoff
2035         target does not support ELF.
2036         * testsuite/gas/arm/blx-bl-convert.dL Skip for the nto target.
2037         * testsuite/gas/cfi/cfi-alpha-2.d: All extended format names.
2038         * testsuite/gas/cfi/cfi.exp: Alpha sort list of targets.  Skip SH
2039         tests for sh-pe and sh-rtemscoff targets.
2040         * testsuite/gas/elf/elf.exp (redef): Add rl78, xgate and vax to
2041         list of exceptions.
2042         (type): Run the noifunc version for alpha-freebsd and visium.
2043         * testsuite/gas/elf/warn-2.s: Do not expect to fail on the mcore,
2044         mn10200 or moxie targets.
2045         * testsuite/gas/ft32/insn.d: Update expected disassembly.
2046         * testsuite/gas/i386/i386.exp (x86-64-pcrel): Skip for cygwin
2047         targets.
2048         * testsuite/gas/lns/lns.exp (lns-common-1): No longer skip for
2049         mcore and rx targets.
2050         * testsuite/gas/macros/macros.exp (dot): Add exceptions for ns32k,
2051         rl78 and vax.
2052         (purge): Expect to fail on the ns32k and vax.
2053         * testsuite/gas/nds32/alu-2.d: Update expected disassembly.
2054         * testsuite/gas/nds32/ls.d: Likewise.
2055         * testsuite/gas/nds32/sys-reg.d: Likewise.
2056         * testsuite/gas/nds32/usr-spe-reg.d: Likewise.
2057         * testsuite/gas/pe/aligncomm-d.d: Skip for the sh.
2058         * testsuite/gas/pe/section-align-3.d: Likewise.
2059         * testsuite/gas/pe/section-exclude.d: Likewise.
2060         * testsuite/gas/ppc/test2xcoff32.d: Pass once all the required
2061         data has been seen.
2062         * testsuite/gas/ppc/textalign-xcoff-001.d: Fix up regexp to allow
2063         for variations in whitespace.
2064         * testsuite/gas/tilepro/t_constants.d: Pass once all the required
2065         data has been seen.
2066         * testsuite/gas/tilepro/t_constants.s (.safe_word): New macro.
2067         Installs a 32-bit value without generating warnings on 64-bit
2068         hosts.
2069         Use the new macro to replace the .word directives.
2070
2071 2016-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
2072
2073         * testsuite/gas/arc/add_s.d: New file.
2074         * testsuite/gas/arc/add_s.s: New file.
2075
2076 2016-06-14  Graham Markall <graham.markall@embecosm.com>
2077
2078         * testsuite/gas/arc/nps400-6.s: Add tests of ldbit.
2079         * testsuite/gas/arc/nps400-6.d: Likewise.
2080
2081 2016-06-14  Graham Markall <graham.markall@embecosm.com>
2082
2083         * testsuite/gas/arc/nps400-6.s: Add tests of hash, tr, utf8, e4by, and
2084         addf.
2085         * testsuite/gas/arc/nps400-6.d: Likewise.
2086
2087 2016-06-14  Graham Markall <graham.markall@embecosm.com>
2088
2089         * testsuite/gas/arc/nps400-6.s: Add tests of calcbsd, calcbxd,
2090         calckey, calcxkey, mxb, imxb, addl, subl, andl, orl, xorl, andab, orab,
2091         lbdsize, bdlen, csms, csma, cbba, zncv, and hofs.
2092         * testsuite/gas/arc/nps400-6.d: Likewise.
2093
2094 2016-06-14  Nick Clifton  <nickc@redhat.com>
2095
2096         * config/tc-nds32.c (nds32_get_align): Avoid left shifting a
2097         signed constant.
2098
2099 2016-06-13  Maciej W. Rozycki  <macro@imgtec.com>
2100
2101         * config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
2102         JALR relocations on R6.
2103         * testsuite/gas/mips/jal-svr4pic-local.d: New test.
2104         * testsuite/gas/mips/mips1@jal-svr4pic-local.d: New test.
2105         * testsuite/gas/mips/r3000@jal-svr4pic-local.d: New test.
2106         * testsuite/gas/mips/micromips@jal-svr4pic-local.d: New test.
2107         * testsuite/gas/mips/jal-svr4pic-local-n32.d: New test.
2108         * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d: New
2109         test.
2110         * testsuite/gas/mips/jal-svr4pic-local-n64.d: New test.
2111         * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d: New
2112         test.
2113         * testsuite/gas/mips/jal-svr4pic-local.s: New test source.
2114         * testsuite/gas/mips/jal-svr4pic-local-newabi.s: New test
2115         source.
2116         * testsuite/gas/mips/mips.exp: Run the new tests.
2117
2118 2016-06-13  Virendra Pathak  <virendra.pathak@broadcom.com>
2119
2120         * config/tc-aarch64.c (aarch64_cpus): Add Broadcom Vulcan.
2121         * doc/c-aarch64.texi: Document that vulcan is a valid processor
2122         name.
2123
2124 2016-06-13  Nick Clifton  <nickc@redhat.com>
2125
2126         * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
2127         that are not supported.
2128
2129         * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
2130         constant.
2131         * config/tc-cr16.c (check_range): Likewise.
2132         * config/tc-nios2.c (nios2_check_overflow): Likewise.
2133
2134 2016-06-08  Renlin Li  <renlin.li@arm.com>
2135
2136         * config/tc-aarch64.c (print_operands): Substitute size.
2137         (output_operand_error_record): Likewise.
2138
2139 2016-06-07  Alan Modra  <amodra@gmail.com>
2140
2141         * config/tc-ppc.c (PPC_APUINFO_ISEL, PPC_APUINFO_PMR,
2142         PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE,
2143         PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK, PPC_APUINFO_VLE): Don't define.
2144         (ppc_setup_opcodes): Check vle disables powerpc_opcodes overridden
2145         by vle_opcodes, and that vle flag doesn't enable opcodes.  Don't
2146         add vle_opcodes twice.
2147         (ppc_cleanup): Use APUINFO_SECTION_NAME and APUINFO_LABEL.
2148
2149 2016-06-07  Matthew Wahab  <matthew.wahab@arm.com>
2150
2151         * config/tc-arm.c (arm_ext_v8_2): Rename to arm_ext_ras.
2152         (arm_ext_ras): Renamed from arm_ext_v8_2.
2153         (insns): Update for arm_ext_v8_2 renaming.
2154         (arm_extensions): Add "ras".
2155         * doc/c-arm.texi (ARM Options): Add an entry for "ras".
2156         * testsuite/gas/arm/armv8-a+ras.d: New.
2157         * testsuite/gas/arm/armv8_2-a.d: Add explicit command line
2158         options.
2159
2160 2016-06-05  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2161
2162         * itbl-parse.y (yyerror): Use modern argument declaration style.
2163
2164 2016-06-05  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2165
2166         * config/tc-sh.c (parse_reg): Change type of mode argument to
2167         sh_arg_type.
2168         (get_operand): Adjust.
2169         (insert): Change type of how to bfd_reloc_code_real_type.
2170         (insert4): Likewise.
2171         * config/tc-sh64.c (shmedia_get_operand): Adjust.
2172         (shmedia_parse_reg): Change type of mode to shmedia_arg_type.
2173
2174 2016-06-05  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2175
2176         * config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
2177         const char *.
2178
2179 2016-06-03  Peter Bergner <bergner@vnet.ibm.com>
2180
2181         PR binutils/20196
2182         * gas/testsuite/gas/ppc/e6500.s <lbarx, lharx, lwarx, ldarx,
2183         stbcx., sthcx., stwcx., stdcx.>: Add tests.
2184         * gas/testsuite/gas/ppc/e6500.d: Likewise.
2185         * gas/testsuite/gas/ppc/power8.s: Likewise.
2186         * gas/testsuite/gas/ppc/power8.d: Likewise.
2187         * gas/testsuite/gas/ppc/power4.s <lwarx, ldarx, stwcx.,
2188         stdcx.>: Add tests.
2189         * gas/testsuite/gas/ppc/power4.d: Likewise.
2190
2191 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2192
2193         PR binutis/18386
2194         * testsuite/gas/i386/i386.exp: Run x86-64-branch-4.
2195         * testsuite/gas/i386/x86-64-branch.d: Updated.
2196         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
2197         * testsuite/gas/i386/x86-64-branch-4.l: New file.
2198         * testsuite/gas/i386/x86-64-branch-4.s: Likewise.
2199
2200 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2201
2202         * config/tc-aarch64.c (aarch64_cpus): Add cortex-a73 entry.
2203         * doc/c-aarch64.texi (-mcpu): Document cortex-a73 value.
2204
2205 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2206
2207         * config/tc-arm.c (arm_cpus): Add cortex-a73 entry.
2208         * doc/c-arm.texi (-mcpu=): Document cortex-a73 value.
2209
2210 2016-06-02  Vineet Gupta  <Vineet.Gupta1@synopsys.com>
2211
2212         * configure.tgt: Replace -uclibc with *.
2213
2214 2016-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2215
2216         * config/tc-arc.c (parse_opcode_flags): New function.
2217         (find_opcode_match): Move flag parsing code out to new function.
2218         Ignore operands marked IGNORE.
2219         (build_fake_opcode_hash_entry): New function.
2220         (find_special_case_long_opcode): New function.
2221         (find_special_case): Lookup long opcodes.
2222         * testsuite/gas/arc/nps400-7.d: New file.
2223         * testsuite/gas/arc/nps400-7.s: New file.
2224
2225 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2226
2227         * config/tc-ns32k.c: Remove definition of input_line_pointer.
2228
2229 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2230
2231         * config/tc-avr.c (avr_parse_cons_expression): Replace iteration to
2232         sentinal with iteration to array size.
2233
2234 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2235
2236         * config/xtensa-relax.h: Move typedefs of enums to the enums
2237         definition.
2238
2239 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2240
2241         * config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
2242         macro.
2243
2244 2016-06-01  Graham Markall  <graham.markall@embecosm.com>
2245
2246         * testsuite/gas/arc/nps-400-1.s: Add rflt variants with
2247         operands of types a,b,u6, 0,b,u6, and 0,b,limm.
2248         * testsuite/gas/arc/nps-400-1.d: Likewise.
2249
2250 2016-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2251
2252         PR gas/20145
2253         * config/tc-i386.c (cpu_noarch): Add noavx512f, noavx512cd,
2254         noavx512er, noavx512pf, noavx512dq, noavx512bw, noavx512vl,
2255         noavx512ifma and noavx512vbmi.
2256         * doc/c-i386.texi: Mention noavx512f, noavx512cd, noavx512er,
2257         noavx512pf, noavx512dq, noavx512bw, noavx512vl, noavx512ifma
2258         and noavx512vbmi.
2259         * testsuite/gas/i386/i386.exp: Run noavx512-1 and noavx512-2.
2260         * testsuite/gas/i386/noavx512-1.l: New file.
2261         * testsuite/gas/i386/noavx512-1.s: Likewise.
2262         * testsuite/gas/i386/noavx512-2.l: Likewise.
2263         * testsuite/gas/i386/noavx512-2.s: Likewise.
2264
2265 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2266
2267         PR gas/20145
2268         * config/tc-i386.c (cpu_arch): Add 687.
2269         (cpu_noarch): Add no287, no387, no687, nosse2, nosse3, nossse3,
2270         nosse4.1, nosse4.2, nosse4 and noavx2.
2271         (parse_real_register): Check cpuregmmx instead of cpummx for MMX
2272         register.  Check cpuregxmm instead of cpusse for XMM register.
2273         Check cpuregymm instead of cpuavx for YMM register.  Check
2274         cpuregzmm/cpuregmask instead of cpuavx512f for ZMMM/mask register.
2275         * doc/c-i386.texi: Mention 687, no287, no387, no687, nosse2,
2276         nosse3, nossse3, nosse4.1, nosse4.2, nosse4 and noavx2.
2277         * testsuite/gas/i386/arch-10-prefetchw.d (as): Add mmx.
2278         * testsuite/gas/i386/arch-10.d (as): Likewise.
2279         * testsuite/gas/i386/arch-11.s: Add ".arch .mmx".
2280         * testsuite/gas/i386/i386.exp: Pass mmx to assembler for
2281         arch-10-3 and arch-10-4.  Run no87-3, nosse-4, nosse-5, noavx-3
2282         and noavx-4.
2283         * testsuite/gas/i386/no87-3.l: New file.
2284         * testsuite/gas/i386/no87-3.s: Likewise.
2285         * testsuite/gas/i386/noavx-3.l: Likewise.
2286         * testsuite/gas/i386/noavx-3.s: Likewise.
2287         * testsuite/gas/i386/noavx-4.d: Likewise.
2288         * testsuite/gas/i386/noavx-4.s: Likewise.
2289         * testsuite/gas/i386/nosse-4.l: Likewise.
2290         * testsuite/gas/i386/nosse-4.s: Likewise.
2291         * testsuite/gas/i386/nosse-5.d: Likewise.
2292         * testsuite/gas/i386/nosse-5.s: Likewise.
2293
2294 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2295
2296         PR gas/20154
2297         * config/tc-i386.c (cpu_flags_match): Don't set cpuamd64 nor
2298         cpuintel64.
2299         (match_template): Check Intel64/AMD64 ISA.
2300
2301 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2302
2303         PR gas/20154
2304         * config/tc-i386.c (intel64): New.
2305         (cpu_flags_match): Set cpuamd64 and cpuintel64.
2306         (md_parse_option): Set intel64 instead of cpuamd64 and
2307         cpuintel64.
2308
2309 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2310
2311         * config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
2312         cpuno64.
2313
2314 2016-05-26  Peter Bergner <bergner@vnet.ibm.com>
2315
2316         * testsuite/gas/ppc/altivec3.d <vmsumudm>: Add test.
2317         * testsuite/gas/ppc/altivec3.s: Likewise.
2318         * testsuite/gas/ppc/power9.d <addex[.], lwzmx, vmsumudm>: Add tests.
2319         * testsuite/gas/ppc/power9.s: Likewise.
2320
2321 2016-05-26  H.J. Lu  <hongjiu.lu@intel.com>
2322
2323         * testsuite/gas/i386/avx512vl-2.l: Append "#pass".
2324         * testsuite/gas/i386/noavx-1.l: Likewise.
2325         * testsuite/gas/i386/nommx-1.l: Likewise.
2326         * testsuite/gas/i386/nosse-1.l: Likewise.
2327         * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
2328         * testsuite/gas/i386/avx512vl-2.s: Append ".p2align 4".
2329         * testsuite/gas/i386/noavx-1.s: Likewise.
2330         * testsuite/gas/i386/nommx-1.s: Likewise.
2331         * testsuite/gas/i386/nosse-1.s: Likewise.
2332         * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
2333
2334 2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2335
2336         * config/tc-metag.c (metag_handle_align): Make the type of noop
2337         unsigned char.
2338
2339 2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2340
2341         * config/tc-rx.c (md_convert_frag): Make the type of reloc_type
2342         bfd_reloc_code_real_type.
2343
2344 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2345
2346         PR gas/20140
2347         * config/tc-i386.c (cpu_flags_match): Require another match
2348         for AVX512VL.
2349         * testsuite/gas/i386/i386.exp: Run avx512vl-1, avx512vl-2,
2350         x86-64-avx512vl-1 and x86-64-avx512vl-2.
2351         * testsuite/gas/i386/avx512vl-1.l: New file.
2352         * testsuite/gas/i386/avx512vl-1.s: Likewise.
2353         * testsuite/gas/i386/avx512vl-2.l: Likewise.
2354         * testsuite/gas/i386/avx512vl-2.s: Likewise.
2355         * testsuite/gas/i386/x86-64-avx512vl-1.l: Likewise.
2356         * testsuite/gas/i386/x86-64-avx512vl-1.s: Likewise.
2357         * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
2358         * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
2359
2360 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2361
2362         PR gas/20141
2363         * testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
2364         * testsuite/gas/i386/x86-64-pr20141.d: New file.
2365         * testsuite/gas/i386/x86-64-pr20141.s: Likewise.
2366
2367 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2368
2369         * config/tc-i386.c (arch_entry): Remove negated.
2370         (noarch_entry): New struct.
2371         (cpu_arch): Updated.  Remove .no87, .nommx, .nosse and .noavx.
2372         (cpu_noarch): New.
2373         (set_cpu_arch): Check cpu_noarch after cpu_arch.
2374         (md_parse_option): Allow -march=+nosse.  Check cpu_noarch after
2375         cpu_arch.
2376         (output_message): New function.
2377         (show_arch): Use it.  Handle cpu_noarch.
2378         * testsuite/gas/i386/i386.exp: Run nommx-1, nommx-2, nommx-3,
2379         nosse-1, nosse-2, nosse-3, noavx-1 and noavx-2.
2380         * testsuite/gas/i386/noavx-1.l: New file.
2381         * testsuite/gas/i386/noavx-1.s: Likewise.
2382         * testsuite/gas/i386/noavx-2.s: Likewise.
2383         * testsuite/gas/i386/noavx-2.l: Likewise.
2384         * testsuite/gas/i386/nommx-1.s: Likewise.
2385         * testsuite/gas/i386/nommx-1.l: Likewise.
2386         * testsuite/gas/i386/nommx-2.s: Likewise.
2387         * testsuite/gas/i386/nommx-2.l: Likewise.
2388         * testsuite/gas/i386/nommx-3.s: Likewise.
2389         * testsuite/gas/i386/nommx-3.l: Likewise.
2390         * testsuite/gas/i386/nosse-1.s: Likewise.
2391         * testsuite/gas/i386/nosse-1.l: Likewise.
2392         * testsuite/gas/i386/nosse-2.s: Likewise.
2393         * testsuite/gas/i386/nosse-2.l: Likewise.
2394         * testsuite/gas/i386/nosse-3.s: Likewise.
2395         * testsuite/gas/i386/nosse-3.l: Likewise.
2396
2397 2016-05-25  Chua Zheng Leong  <chuazl@comp.nus.edu.sg>
2398
2399         PR target/20067
2400         * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64
2401         instruction if supported by the currently selected fpu variant.
2402         * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR.
2403         * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly.
2404
2405 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
2406
2407         * config/tc-mips.c (mips_fix_adjustable): Also return 0 for
2408         jump relocations against MIPS16 or microMIPS symbols on RELA
2409         targets.
2410         * testsuite/gas/mips/jalx-local.d: New test.
2411         * testsuite/gas/mips/jalx-local-n32.d: New test.
2412         * testsuite/gas/mips/jalx-local-n64.d: New test.
2413         * testsuite/gas/mips/jalx-local.s: New test source.
2414         * testsuite/gas/mips/mips.exp: Run the new tests.
2415
2416 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
2417
2418         * config/tc-mips.c (md_apply_fix)
2419         <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
2420         code accordingly.
2421
2422 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2423
2424         * config/tc-xtensa.c (struct suffix_reloc_map): Change type of field
2425         operator to operatorT.
2426         (map_suffix_reloc_to_operator): Change return type to operatorT.
2427
2428 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2429
2430         * config/tc-d30v.c (find_format): Change type of X_op to operatorT.
2431
2432 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2433
2434         * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
2435         handler_charp to const char *.
2436
2437 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2438
2439         * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
2440         (ft32_target_format): Likewise.
2441         (TARGET_FORMAT): Adjust.
2442
2443 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2444
2445         * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
2446         (ia64_frob_label): Likewise.
2447
2448 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2449
2450         * config/tc-cr16.c (check_range): Make type of retval op_err.
2451         * config/tc-crx.c: Likewise.
2452
2453 2016-05-23  Claudiu Zissulescu  <claziss@synopsys.com>
2454
2455         * config/tc-arc.c (md_begin): Add XY registers.
2456         (cpu_types): Code density is default off for ARC EM.
2457
2458 2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>
2459
2460         * config/tc-arc.c (attributes_t): Renamed attribute class to
2461         attr_class.
2462         (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
2463
2464 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
2465
2466         * configuse.tgt: Add entry for arm-phoenix.
2467
2468 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2469
2470         * config/tc-tic54x.c (tic54x_sect): simplify string creation.
2471
2472 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2473
2474         * config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
2475
2476 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2477
2478         * config/tc-tic54x.c (tic54x_mmregs): Adjust.
2479         (md_begin): Likewise.
2480         (encode_condition): Likewise.
2481         (encode_cc3): Likewise.
2482         (encode_cc2): Likewise.
2483         (encode_operand): Likewise.
2484         (tic54x_undefined_symbol): Likewise.
2485
2486 2016-05-20  Matthew Fortune  <matthew.fortune@imgtec.com>
2487
2488         * config/tc-mips.c (mips_cpu_info_table): Update comment.  Add
2489         p6600 entry.
2490         * doc/c-mips.texi: Document p6600 -march option.
2491
2492 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2493
2494         PR gas/19600
2495         * config/tc-i386.c (md_apply_fix): Preserve addend for
2496         BFD_RELOC_386_GOT32 and BFD_RELOC_X86_64_GOT32.
2497         * testsuite/gas/i386/addend.d: New file.
2498         * testsuite/gas/i386/addend.s: Likewise.
2499         * testsuite/gas/i386/x86-64-addend.d: Likewise.
2500         * testsuite/gas/i386/x86-64-addend.s: Likewise.
2501         * testsuite/gas/i386/i386.exp: Run addend and x86-64-addend.
2502         * testsuite/gas/i386/reloc32.d: Updated.
2503
2504 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
2505
2506         * config/tc-mips.c (append_insn): Correct the encoding of a
2507         constant argument for microMIPS JALX.
2508         (tc_gen_reloc): Correct the encoding of an in-place addend for
2509         microMIPS JALX.
2510         * testsuite/gas/mips/jalx-addend.d: New test.
2511         * testsuite/gas/mips/jalx-addend-n32.d: New test.
2512         * testsuite/gas/mips/jalx-addend-n64.d: New test.
2513         * testsuite/gas/mips/jalx-imm.d: New test.
2514         * testsuite/gas/mips/jalx-imm-n32.d: New test.
2515         * testsuite/gas/mips/jalx-imm-n64.d: New test.
2516         * testsuite/gas/mips/jalx-addend.s: New test source.
2517         * testsuite/gas/mips/jalx-imm.s: New test source.
2518         * testsuite/gas/mips/mips.exp: Run the new tests.
2519
2520 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
2521
2522         * config/tc-mips.c: Correct tab-after-space formatting mistakes
2523         throughout.
2524
2525 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2526
2527         * config/tc-arc.c (find_opcode_match): Remove casting away of
2528         const.
2529         * config/tc-arc.h (struct arc_flags): Make flgp field const.
2530
2531 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2532
2533         * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
2534         appropriate.
2535         (md_convert_frag): Likewise.
2536
2537 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2538
2539         * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
2540         cached opcode to NULL when we reach a non-matching opcode.
2541         * testsuite/gas/arc/asm-errors-2.d: New file.
2542         * testsuite/gas/arc/asm-errors-2.err: New file.
2543         * testsuite/gas/arc/asm-errors-2.s: New file.
2544
2545 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
2546
2547         * config/tc-arc.c (tokenize_arguments): Add checks for array
2548         overflow.
2549         * testsuite/gas/arc/asm-errors.s: Addition test line added.
2550         * testsuite/gas/arc/asm-errors.err: Update expected results.
2551
2552 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2553
2554         * config/tc-rx.c (struct cpu_type): Change the type of a field from
2555         int to enum rx_cpu_types.
2556
2557 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2558
2559         * config/tc-dlx.c (struct machine_it): change the type of a field from
2560         int to bfd_reloc_code_real_type.
2561         * config/tc-tic4x.c: Likewise.
2562
2563 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2564
2565         * config/tc-v850.c (v850_target_arch): change type to enum
2566         bfd_architecture.
2567         * config/tc-v850.h (v850_target_arch): Likewise.
2568
2569 2016-05-18  Alan Modra  <amodra@gmail.com>
2570
2571         * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
2572         allowed negative range.
2573         * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
2574         * testsuite/gas/ppc/power9.d: Update.
2575
2576 2016-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2577
2578         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
2579         disassembling and stop skipping targets.
2580         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
2581         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
2582         * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
2583         instruction for targets that have stronger alignment requirement.
2584         * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
2585         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
2586         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
2587         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
2588         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
2589         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
2590         * testsuite/gas/arm/archv8m-main.d: Likewise.
2591         * testsuite/gas/arm/archv8m.s: Add label.
2592         * testsuite/gas/arm/archv8m-cmse.s: Likewise.
2593         * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
2594         * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
2595
2596 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2597
2598         * config/tc-m32r.c (mach_table): Make static and const.
2599
2600 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2601
2602         * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
2603         definition.
2604
2605 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2606
2607         * config/tc-mn10300.c (md_begin): set linkrelax here instead of
2608         defining it.
2609         * config/tc-msp430.c (md_begin): Likewise.
2610
2611 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2612
2613         * config/tc-m68hc11.c (fixup8): Change variables type from int to
2614         bfd_reloc_code_real_type where appropriate.
2615         (fixup16): Likewise.
2616         (fixup8_xg): Likewise.
2617
2618 2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
2619
2620         * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
2621
2622 2016-05-13  Peter Bergner <bergner@vnet.ibm.com>
2623
2624         * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
2625         * testsuite/gas/ppc/power9.s: Likewise.
2626
2627 2016-05-13  Alan Modra  <amodra@gmail.com>
2628
2629         * config/obj-coff.c (weak_uniquify): Delete unused var.
2630
2631 2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2632
2633         * app.c (app_push): Use XNEW and related macros.
2634         * as.c (parse_args): Likewise.
2635         * cgen.c (make_right_shifted_expr): Likewise.
2636         (gas_cgen_tc_gen_reloc): Likewise.
2637         * config/bfin-defs.h: Likewise.
2638         * config/bfin-parse.y: Likewise.
2639         * config/obj-coff.c (stack_init): Likewise.
2640         (stack_push): Likewise.
2641         (coff_obj_symbol_new_hook): Likewise.
2642         (coff_obj_symbol_clone_hook): Likewise.
2643         (add_lineno): Likewise.
2644         (coff_frob_symbol): Likewise.
2645         * config/obj-elf.c (obj_elf_section_name): Likewise.
2646         (build_group_lists): Likewise.
2647         * config/obj-evax.c (evax_symbol_new_hook): Likewise.
2648         * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
2649         * config/tc-aarch64.c (insert_reg_alias): Likewise.
2650         (find_or_make_literal_pool): Likewise.
2651         (add_to_lit_pool): Likewise.
2652         (fill_instruction_hash_table): Likewise.
2653         * config/tc-alpha.c (load_expression): Likewise.
2654         (emit_jsrjmp): Likewise.
2655         (s_alpha_ent): Likewise.
2656         (s_alpha_end): Likewise.
2657         (s_alpha_linkage): Likewise.
2658         (md_begin): Likewise.
2659         (tc_gen_reloc): Likewise.
2660         * config/tc-arc.c (arc_insert_opcode): Likewise.
2661         (arc_extcorereg): Likewise.
2662         * config/tc-bfin.c: Likewise.
2663         * config/tc-cr16.c: Likewise.
2664         * config/tc-cris.c: Likewise.
2665         * config/tc-crx.c (preprocess_reglist): Likewise.
2666         * config/tc-d10v.c: Likewise.
2667         * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
2668         (frv_tomcat_shuffle): Likewise.
2669         * config/tc-h8300.c: Likewise.
2670         * config/tc-i370.c (i370_macro): Likewise.
2671         * config/tc-i386.c (lex_got): Likewise.
2672         (md_parse_option): Likewise.
2673         * config/tc-ia64.c (alloc_record): Likewise.
2674         (set_imask): Likewise.
2675         (save_prologue_count): Likewise.
2676         (dot_proc): Likewise.
2677         (dot_endp): Likewise.
2678         (ia64_frob_label): Likewise.
2679         (add_qp_imply): Likewise.
2680         (add_qp_mutex): Likewise.
2681         (mark_resource): Likewise.
2682         (dot_alias): Likewise.
2683         * config/tc-m68hc11.c: Likewise.
2684         * config/tc-m68k.c (m68k_frob_label): Likewise.
2685         (s_save): Likewise.
2686         (mri_control_label): Likewise.
2687         (push_mri_control): Likewise.
2688         (build_mri_control_operand): Likewise.
2689         (s_mri_else): Likewise.
2690         (s_mri_break): Likewise.
2691         (s_mri_next): Likewise.
2692         (s_mri_for): Likewise.
2693         (s_mri_endw): Likewise.
2694         * config/tc-metag.c (create_mnemonic_htab): Likewise.
2695         * config/tc-microblaze.c: Likewise.
2696         * config/tc-mmix.c (s_loc): Likewise.
2697         * config/tc-nds32.c (nds32_relax_hint): Likewise.
2698         * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
2699         * config/tc-rl78.c: Likewise.
2700         * config/tc-rx.c (rx_include): Likewise.
2701         * config/tc-sh.c: Likewise.
2702         * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
2703         * config/tc-sparc.c: Likewise.
2704         * config/tc-spu.c: Likewise.
2705         * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
2706         (tic6x_start_unwind_section): Likewise.
2707         * config/tc-tilegx.c: Likewise.
2708         * config/tc-tilepro.c: Likewise.
2709         * config/tc-v850.c: Likewise.
2710         * config/tc-visium.c: Likewise.
2711         * config/tc-xgate.c: Likewise.
2712         * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
2713         (new_resource_table): Likewise.
2714         (resize_resource_table): Likewise.
2715         (xtensa_create_trampoline_frag): Likewise.
2716         (xtensa_maybe_create_literal_pool_frag): Likewise.
2717         (cache_literal_section): Likewise.
2718         * config/xtensa-relax.c (append_transition): Likewise.
2719         (append_condition): Likewise.
2720         (append_value_condition): Likewise.
2721         (append_constant_value_condition): Likewise.
2722         (append_literal_op): Likewise.
2723         (append_label_op): Likewise.
2724         (append_constant_op): Likewise.
2725         (append_field_op): Likewise.
2726         (append_user_fn_field_op): Likewise.
2727         (enter_opname_n): Likewise.
2728         (enter_opname): Likewise.
2729         (split_string): Likewise.
2730         (parse_insn_templ): Likewise.
2731         (clone_req_or_option_list): Likewise.
2732         (clone_req_option_list): Likewise.
2733         (parse_option_cond): Likewise.
2734         (parse_insn_pattern): Likewise.
2735         (parse_insn_repl): Likewise.
2736         (build_transition): Likewise.
2737         (build_transition_table): Likewise.
2738         * dw2gencfi.c (alloc_fde_entry): Likewise.
2739         (alloc_cfi_insn_data): Likewise.
2740         (cfi_add_CFA_remember_state): Likewise.
2741         (dot_cfi_escape): Likewise.
2742         (dot_cfi_fde_data): Likewise.
2743         (select_cie_for_fde): Likewise.
2744         * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
2745         * ecoff.c (ecoff_add_bytes): Likewise.
2746         (ecoff_build_debug): Likewise.
2747         * input-scrub.c (input_scrub_push): Likewise.
2748         (input_scrub_begin): Likewise.
2749         (input_scrub_next_buffer): Likewise.
2750         * itbl-ops.c (append_insns_as_macros): Likewise.
2751         (alloc_entry): Likewise.
2752         (alloc_field): Likewise.
2753         * listing.c (listing_newline): Likewise.
2754         (listing_listing): Likewise.
2755         * macro.c (get_any_string): Likewise.
2756         (delete_macro): Likewise.
2757         * stabs.c (generate_asm_file): Likewise.
2758         (stabs_generate_asm_lineno): Likewise.
2759         * subsegs.c (subseg_change): Likewise.
2760         (subseg_get): Likewise.
2761         * symbols.c (define_dollar_label): Likewise.
2762         (symbol_relc_make_sym): Likewise.
2763         * write.c (write_relocs): Likewise.
2764
2765 2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2766
2767         * config/obj-coff.c (obj_coff_def): Simplify string copying.
2768         (weak_name2altname): Likewise.
2769         (weak_uniquify): Likewise.
2770         (obj_coff_section): Likewise.
2771         (obj_coff_init_stab_section): Likewise.
2772         * config/obj-elf.c (obj_elf_section_name): Likewise.
2773         (obj_elf_init_stab_section): Likewise.
2774         * config/obj-evax.c (evax_shorten_name): Likewise.
2775         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
2776         * config/tc-aarch64.c (create_register_alias): Likewise.
2777         * config/tc-alpha.c (load_expression): Likewise.
2778         (s_alpha_file): Likewise.
2779         (s_alpha_section_name): Likewise.
2780         (tc_gen_reloc): Likewise.
2781         * config/tc-arc.c (md_assemble): Likewise.
2782         * config/tc-arm.c (create_neon_reg_alias): Likewise.
2783         (start_unwind_section): Likewise.
2784         * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
2785         (hppa_elf_mark_end_of_function): Likewise.
2786         * config/tc-nios2.c (nios2_modify_arg): Likewise.
2787         (nios2_negate_arg): Likewise.
2788         * config/tc-rx.c (rx_section): Likewise.
2789         * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
2790         * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
2791         * config/tc-tic54x.c (tic54x_include): Likewise.
2792         (tic54x_macro_info): Likewise.
2793         (subsym_get_arg): Likewise.
2794         (subsym_substitute): Likewise.
2795         (tic54x_start_line_hook): Likewise.
2796         * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
2797         (xg_reverse_shift_count): Likewise.
2798         * config/xtensa-relax.c (enter_opname_n): Likewise.
2799         (split_string): Likewise.
2800         * dwarf2dbg.c (get_filenum): Likewise.
2801         (process_entries): Likewise.
2802         * expr.c (operand): Likewise.
2803         * itbl-ops.c (alloc_entry): Likewise.
2804         * listing.c (listing_message): Likewise.
2805         (listing_title): Likewise.
2806         * macro.c (check_macro): Likewise.
2807         * stabs.c (s_xstab): Likewise.
2808         * symbols.c (symbol_relc_make_expr): Likewise.
2809         * write.c (compress_debug): Likewise.
2810
2811 2016-05-12  Nick Clifton  <nickc@redhat.com>
2812
2813         PR target/20068
2814         * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
2815
2816 2016-05-11  Nick Clifton  <nickc@redhat.com>
2817
2818         PR target/20068
2819         * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
2820         big endian ARM configurations.
2821
2822 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
2823             Matthew Fortune  <matthew.fortune@imgtec.com>
2824
2825         * config/tc-mips.c (options): Add OPTION_DSPR3 and
2826         OPTION_NO_DSPR3.
2827         (md_longopts): Likewise.
2828         (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
2829         (mips_ases): Define availability for DSPr3.
2830         (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
2831         (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
2832         * doc/as.texinfo: Document -mdspr3, -mno-dspr3.  Fix -mdspr2
2833         formatting.
2834         * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
2835         .set nodspr3.  Fix -mdspr2 formatting.
2836         * testsuite/gas/mips/mips32-dspr3.d: New file.
2837         * testsuite/gas/mips/mips32-dspr3.s: Likewise.
2838         * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
2839
2840 2016-05-11  Nick Clifton  <nickc@redhat.com>
2841
2842         PR target/20068
2843         * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
2844         to the pool uses O_constant.
2845         * testsuite/gas/arm/pr20068.s: New test.
2846         * testsuite/gas/arm/pr20068.d: Test driver.
2847
2848 2016-05-11  Nick Clifton  <nickc@redhat.com>
2849
2850         * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
2851         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
2852         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
2853         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
2854         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
2855         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
2856         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
2857         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
2858         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
2859
2860 2016-05-10  Alexander Fomin  <alexander.fomin@intel.com>
2861
2862         * testsuite/gas/i386/i386.exp: Run RDPID tests.
2863         * testsuite/gas/i386/prefix.d: Adjust.
2864         * testsuite/gas/i386/rdpid.s: New test.
2865         * testsuite/gas/i386/rdpid.d: Ditto.
2866         * testsuite/gas/i386/rdpid-intel.d: Ditto.
2867         * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
2868         * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
2869         * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
2870
2871 2016-05-10  Alexander Fomin  <alexander.fomin@intel.com>
2872
2873         * config/tc-i386.c (cpu_arch): Add RDPID.
2874         * doc/c-i386.texi: Document RDPID.
2875
2876 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2877
2878         * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
2879         set branch type of a symbol.
2880
2881 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2882
2883         * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
2884         * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
2885         instructions.
2886         (arm_extensions): Add dsp extension for ARMv8-M Mainline.
2887         (aeabi_set_public_attributes): Memorize the feature bits of the
2888         architecture selected for Tag_CPU_arch.  Use it to set
2889         Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
2890         (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
2891         * testsuite/gas/arm/arch7em-bad.d: Rename to ...
2892         * testsuite/gas/arm/arch7em-bad-1.d: This.
2893         * testsuite/gas/arm/arch7em-bad-2.d: New file.
2894         * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
2895         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
2896         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
2897         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
2898         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
2899         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
2900         * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
2901
2902 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2903
2904         * config/tc-arm.c (struct arm_option_extension_value_table): Make
2905         allowed_archs an array with 2 entries.
2906         (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
2907         (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
2908         (arm_extensions): Use separate entries in allowed_archs when several
2909         archs are allowed to use an extension and change ARCH_ANY in
2910         ARM_ARCH_NONE in allowed_archs.
2911         (arm_parse_extension): Check that, for each allowed_archs entry, all
2912         bits are set in the current architecture, ignoring ARM_ANY entries.
2913         (s_arm_arch_extension): Likewise.
2914
2915 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2916
2917         * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
2918         (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
2919         (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
2920         shared with a non M profile architecture.
2921         (do_rn): New function.
2922         (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
2923         than arm_ext_v8m.
2924         (v7m_psrs): Add ARMv8-M security extensions new special registers.
2925         (insns): Add ARMv8-M Security Extensions instructions.
2926         (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
2927         arm_ext_v8m_m to decide the profile and the Thumb ISA.
2928         * testsuite/gas/arm/archv8m-cmse.s: New file.
2929         * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
2930         * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
2931         * testsuite/gas/arm/any-cmse.d: Likewise.
2932         * testsuite/gas/arm/any-cmse-main.d: Likewise.
2933         * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
2934         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
2935         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
2936         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
2937         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
2938
2939 2016-05-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
2940
2941         * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
2942         * testsuite/gas/sparc/sparc5vis4.d: Likewise.
2943
2944 2016-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2945
2946         * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
2947         (fpu_arch_vfp_v3): Likewise.
2948         (fpu_arch_neon_v1): Likewise.
2949         (arm_arch_full): Likewise.
2950         (parse_neon_el_struct_list): Initialize fields of firsttype.
2951
2952 2016-05-03  Claudiu Zissulescu  <claziss@synopsys.com>
2953
2954         * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
2955         (arc_extinsn): Handle new introduced syntax.
2956         * testsuite/gas/arc/textinsn1op.d: New file.
2957         * testsuite/gas/arc/textinsn1op.s: Likewise.
2958         * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
2959
2960 2016-05-03  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2961
2962         * testsuite/gas/lns/lns.exp: Add avr to list of targets using
2963         DW_LNS_fixed_advance_pc.
2964
2965 2016-04-27  Alan Modra  <amodra@gmail.com>
2966
2967         * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
2968         (xmemdup0): New inline function.
2969
2970 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
2971
2972         * config/tc-mips.c (code_option_type): New enum.
2973         (parse_code_option): Return status indicating option type.
2974         (s_mipsset): Update `parse_code_option' call site accordingly.
2975         Always set register sizes from the ISA with ISA overrides.
2976         (s_module): Update `parse_code_option' call site.
2977         * testsuite/gas/mips/isa-override-1.d: New test.
2978         * testsuite/gas/mips/micromips@isa-override-1.d: New test.
2979         * testsuite/gas/mips/mips1@isa-override-1.d: New test.
2980         * testsuite/gas/mips/mips2@isa-override-1.d: New test.
2981         * testsuite/gas/mips/mips32@isa-override-1.d: New test.
2982         * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
2983         * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
2984         * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
2985         * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
2986         * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
2987         * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
2988         * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
2989         * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
2990         * testsuite/gas/mips/r3000@isa-override-1.d: New test.
2991         * testsuite/gas/mips/r3900@isa-override-1.d: New test.
2992         * testsuite/gas/mips/r5900@isa-override-1.d: New test.
2993         * testsuite/gas/mips/octeon@isa-override-1.d: New test.
2994         * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
2995         * testsuite/gas/mips/isa-override-2.l: New list test.
2996         * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
2997         * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
2998         * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
2999         * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
3000         * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
3001         * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
3002         * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
3003         * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
3004         * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
3005         * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
3006         * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
3007         output.
3008         * testsuite/gas/mips/isa-override-1.s: New test source.
3009         * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
3010         * testsuite/gas/mips/isa-override-2.s: New test source.
3011         * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
3012         * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
3013         * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
3014         * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
3015         * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
3016         * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
3017         * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
3018         * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
3019         * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
3020         * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
3021         * testsuite/gas/mips/mips.exp: Run the new tests.
3022
3023 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3024
3025         * cgen.c: Likewise.
3026         * config/tc-bfin.c: Likewise.
3027         * config/tc-ia64.c: Likewise.
3028         * config/tc-mep.c: Likewise.
3029         * config/tc-metag.c: Likewise.
3030         * config/tc-nios2.c: Likewise.
3031         * config/tc-rl78.c: Likewise.
3032
3033 2016-04-20  Andrew Burgess  <andrew.burgess@embecosm.com>
3034
3035         * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
3036         -mcpu.  Add cross reference to .cpu directive from -mcpu option.
3037         (ARC Directives): Add NPS400 to .cpu directive list.
3038
3039 2016-04-20  Matthew Wahab  <matthew.wahab@arm.com>
3040
3041         * config/tc-aarch64.c (aarch64_features): Add "ras".
3042         * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
3043         * testsuite/gas/aarch64/armv8-ras-1.d: New.
3044         * testsuite/gas/aarch64/armv8-ras-1.s: New.
3045         * testsuite/gas/aarch64/illegal-ras-1.d: New.
3046         * testsuite/gas/aarch64/illegal-ras-1.s: New.
3047
3048 2016-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3049
3050         * testsuite/gas/arc/nps400-6.d: New file.
3051         * testsuite/gas/arc/nps400-6.s: New file.
3052
3053 2016-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3054
3055         * testsuite/gas/arc/nps400-4.d: New file.
3056         * testsuite/gas/arc/nps400-4.s: New file.
3057         * testsuite/gas/arc/nps400-5.d: New file.
3058         * testsuite/gas/arc/nps400-5.s: New file.
3059
3060 2016-04-19  Martin Galvan  <martin.galvan@tallertechnologies.com>
3061
3062         * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
3063         documentation.
3064
3065 2016-04-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3066
3067         Revert prevous change.
3068         * config/tc-arc.c (arc_option): Make .cpu directive
3069         case-sensitive again.
3070
3071 2016-04-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3072
3073         * config/tc-arc.c (arc_option): Make .cpu directive
3074         case-insensitive.
3075
3076 2016-04-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3077
3078         * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
3079
3080 2016-04-15  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3081
3082         * config/tc-mips.c (md_begin): Remove useless assignment.
3083
3084 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3085
3086         * Makefile.in: Regenerated with automake 1.11.6.
3087         * aclocal.m4: Likewise.
3088         * doc/Makefile.in: Likewise.
3089
3090 2016-04-15  Alan Modra  <amodra@gmail.com>
3091
3092         * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
3093
3094 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3095
3096         * config/tc-nios2.c (nios2_as_options): Make file static.
3097         * config/tc-ppc.c (toc_reloc_ypes): Likewise.
3098         * config/tc-sparc.c (native_op_table): Likewise.
3099
3100 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3101
3102         * config/tc-m32c.c (M32C_Macros): Remove.
3103         * config/tc-msp430.c (option_numbers): Likewise.
3104
3105 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3106
3107         * testsuite/gas/arc/nps400-3.d: New file.
3108         * testsuite/gas/arc/nps400-3.s: New file.
3109
3110 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3111
3112         * testsuite/gas/arc/add_s-err.s: Update target pattern.
3113         * testsuite/gas/arc/warn.s: Likewise.
3114         * testsuite/gas/elf/elf.exp: Run test for arc.
3115
3116 2016-04-14  Nick Clifton  <nickc@redhat.com>
3117
3118         PR target/19938
3119         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
3120         sections possibly having the SHF_STRINGS flag bit set.
3121         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
3122
3123 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3124
3125         * config/tc-arc.c (mach_type_specified_p): Change type to
3126         bfd_boolean.
3127         (arc_option): Set private flags when parsing cpu pseudo-op.
3128         (md_parse_option): Set mach_type_specified_p to TRUE.
3129
3130 2016-04-13  Nick Clifton  <nickc@redhat.com>
3131
3132         PR target/19937
3133         * testsuite/gas/v850/pr19937.s: New test.
3134         * testsuite/gas/v850/pr19937.d: New test control file.
3135         * testsuite/gas/v850/basic.exp: Run the new test.
3136
3137 2016-04-13  Maciej W. Rozycki  <macro@imgtec.com>
3138             Andrew Bennett  <andrew.bennett@imgtec.com>
3139
3140         * config/tc-mips.c (relaxed_branch_length): Use the long
3141         sequence where the target is a weak symbol.
3142         (relaxed_micromips_32bit_branch_length): Likewise.
3143         (relaxed_micromips_16bit_branch_length): Likewise.
3144         * testsuite/gas/mips/branch-weak-1.d: New test.
3145         * testsuite/gas/mips/branch-weak-2.d: New test.
3146         * testsuite/gas/mips/branch-weak-3.d: New test.
3147         * testsuite/gas/mips/branch-weak-4.d: New test.
3148         * testsuite/gas/mips/branch-weak-5.d: New test.
3149         * testsuite/gas/mips/branch-weak.l: New stderr output.
3150         * testsuite/gas/mips/branch-weak.s: New test source.
3151         * testsuite/gas/mips/mips.exp: Run the new tests.
3152
3153 2016-04-13  Maciej W. Rozycki  <macro@imgtec.com>
3154
3155         * config/tc-mips.c (relaxed_branch_length): Use the long
3156         sequence where the distance cannot be determined.
3157         (relaxed_micromips_32bit_branch_length): Likewise.
3158         * testsuite/gas/mips/branch-extern-1.d: New test.
3159         * testsuite/gas/mips/branch-extern-2.d: New test.
3160         * testsuite/gas/mips/branch-extern-3.d: New test.
3161         * testsuite/gas/mips/branch-extern-4.d: New test.
3162         * testsuite/gas/mips/branch-extern.l: New stderr output.
3163         * testsuite/gas/mips/branch-extern.s: New test source.
3164         * testsuite/gas/mips/branch-section-1.d: New test.
3165         * testsuite/gas/mips/branch-section-2.d: New test.
3166         * testsuite/gas/mips/branch-section-3.d: New test.
3167         * testsuite/gas/mips/branch-section-4.d: New test.
3168         * testsuite/gas/mips/branch-section.l: New stderr output.
3169         * testsuite/gas/mips/branch-section.s: New test source.
3170         * testsuite/gas/mips/mips.exp: Run the new tests.
3171
3172 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3173
3174         * testsuite/gas/arc/textauxregister.d: New file.
3175         * testsuite/gas/arc/textauxregister.s: Likewise.
3176         * testsuite/gas/arc/textcondcode.d: Likewise.
3177         * testsuite/gas/arc/textcondcode.s: Likewise.
3178         * testsuite/gas/arc/textcoreregister.d: Likewise.
3179         * testsuite/gas/arc/textcoreregister.s: Likewise.
3180         * testsuite/gas/arc/textpseudoop.d: Likewise.
3181         * testsuite/gas/arc/textpseudoop.s: Likewise.
3182         * testsuite/gas/arc/ld2.d: Update test.
3183         * testsuite/gas/arc/st.d: Likewise.
3184         * testsuite/gas/arc/taux.d: Likewise.
3185         * doc/c-arc.texi (ARC Directives): Add .extCondCode,
3186         .extCoreRegister and .extAuxRegister documentation.
3187         * config/tc-arc.c (arc_extcorereg): New function.
3188         (md_pseudo_table): Add .extCondCode, .extCoreRegister and
3189         .extAuxRegister pseudo-ops.
3190         (extRegister_t): New type.
3191         (ext_condcode, arc_aux_hash): New global variable.
3192         (find_opcode_match): Check for extensions.
3193         (preprocess_operands): Likewise.
3194         (md_begin): Add aux registers in a hash.
3195         (assemble_insn): Update use arc_flags member.
3196         (tokenize_extregister): New function.
3197         (create_extcore_section): Likewise.
3198         * config/tc-arc.h (arc_flags): Delete code, add flgp.
3199
3200 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3201
3202         * testsuite/gas/arc/noargs_a7.d: New file.
3203         * testsuite/gas/arc/noargs_a7.s: Likewise.
3204         * testsuite/gas/arc/noargs_hs.d: Likewise.
3205         * testsuite/gas/arc/noargs_hs.s: Likewise.
3206
3207 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3208
3209         * testsuite/gas/arc/textinsn-errors.d: New File.
3210         * testsuite/gas/arc/textinsn-errors.err: Likewise.
3211         * testsuite/gas/arc/textinsn-errors.s: Likewise.
3212         * testsuite/gas/arc/textinsn2op.d: Likewise.
3213         * testsuite/gas/arc/textinsn2op.s: Likewise.
3214         * testsuite/gas/arc/textinsn2op01.d: Likewise.
3215         * testsuite/gas/arc/textinsn2op01.s: Likewise.
3216         * testsuite/gas/arc/textinsn3op.d: Likewise.
3217         * testsuite/gas/arc/textinsn3op.s: Likewise.
3218         * doc/c-arc.texi (ARC Directives): Add .extInstruction
3219         documentation.
3220         * config/tc-arc.c (arcext_section): New variable.
3221         (arc_extinsn): New function.
3222         (md_pseudo_table): Add .extInstruction pseudo op.
3223         (attributes_t): New type.
3224         (suffixclass, syntaxclass, syntaxclassmod): New constant
3225         structures.
3226         (find_opcode_match): Remove arc_num_opcodes.
3227         (md_begin): Likewise.
3228         (tokenize_extinsn): New function.
3229         (arc_set_ext_seg): Likewise.
3230         (create_extinst_section): Likewise.
3231
3232 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3233
3234         * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
3235         (arc_adjust_symtab): New function.
3236         * config/tc-arc.h (ARC_FLAG_AUX): Define.
3237         (obj_adjust_symtab): Likewise.
3238         * testsuite/gas/arc/taux.d: New file.
3239         * testsuite/gas/arc/taux.s: Likewise.
3240
3241 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3242
3243         * config/tc-mips.c (s_option): Sanitize `.option picX'
3244         pseudo-op.
3245         * testsuite/gas/mips/option-pic-1.d: New test.
3246         * testsuite/gas/mips/option-pic-2.l: New list test.
3247         * testsuite/gas/mips/option-pic-1.s: New test source.
3248         * testsuite/gas/mips/option-pic-2.s: New test source.
3249         * testsuite/gas/mips/mips.exp: Run the new tests.
3250
3251 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3252
3253         * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
3254         PIC.
3255         * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
3256         * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
3257         * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
3258         * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
3259         * testsuite/gas/mips/mips.exp: Run the new tests.
3260
3261 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3262
3263         * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
3264
3265 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3266
3267         * messages.c (as_bad): Fix a typo in description.
3268
3269 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3270
3271         * config/tc-mips.c (mips_check_options): Unify messages.
3272
3273 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3274
3275         * config/tc-mips.c (mips_check_options): Use `opts->isa'
3276         consistently.
3277
3278 2016-04-08  Nick Clifton  <nickc@redhat.com>
3279
3280         PR target/19910
3281         * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
3282         COFF and AOUT sparc targets.
3283
3284 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3285
3286         * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
3287         * testsuite/gas/arc/nps400-2.d: New file.
3288         * testsuite/gas/arc/nps400-2.s: New file.
3289
3290 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3291
3292         * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
3293         structure.
3294         (arc_opcode_hash_entry_iterator_init): New function.
3295         (arc_opcode_hash_entry_iterator_next): New function.
3296         (find_opcode_match): Iterate over all arc_opcode entries
3297         referenced by the arc_opcode_hash_entry passed in as a parameter.
3298
3299 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3300
3301         * config/tc-arc.c (arc_find_opcode): Now returns
3302         arc_opcode_hash_entry pointer.
3303         (find_opcode_match): Update argument type, extract arc_opcode from
3304         incoming arc_opcode_hash_entry.
3305         (find_special_case_pseudo): Update return type.
3306         (find_special_case_flag): Update return type.
3307         (find_special_case): Update return type.
3308         (assemble_tokens): Lookup arc_opcode_hash_entry based on
3309         instruction mnemonic, then use find_opcode_match to identify
3310         specific arc_opcode.
3311
3312 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3313
3314         * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
3315         (arc_find_opcode): New function.
3316         (find_special_case_pseudo): Use arc_find_opcode.
3317         (find_special_case_flag): Likewise.
3318         (assemble_tokens): Likewise.
3319         (md_begin): Build hash using struct arc_opcode_hash_entry.
3320
3321 2016-04-07  Claudiu Zissulescu  <claziss@synopsys.com>
3322
3323         * config/tc-arc.c (arc_option): Prepare string for automatic
3324         translation.
3325         (declare_register): Likewise.
3326
3327 2016-04-06  James Greenhalgh  <james.greenhalgh@arm.com>
3328
3329         * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
3330         Correct entry for RDMA.  Alpha sort entries.
3331
3332 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3333
3334         * config/tc-arc.c (tokenize_flags): Allow greater range of
3335         characters into flag names.
3336
3337 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
3338
3339         * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
3340         new de_fault label.
3341         (preprocess_operands): Delete.
3342         (assemble_tokens): Remove call to preprocess_operands.
3343
3344 2016-04-07  Nick Clifton  <nickc@redhat.com>
3345
3346         PR gas/19910
3347         * config/tc-sparc.c (sparc_ip): Report an error if the expression
3348         inside a %-macro could not be fully parsed.
3349         * expr.c (integer_constant): Accept and ignore U suffixes to
3350         integers.
3351         (operand): When a missing closing parenthesis is encountered,
3352         report the character that was found instead.
3353         * testsuite/gas/mips/tls-ill.l: Update expected error message.
3354         * testsuite/gas/sparc/pr19910-1.d: New test driver.
3355         * testsuite/gas/sparc/pr19910-1.s: New test.
3356         * testsuite/gas/sparc/pr19910-2.l: Expected error output.
3357         * testsuite/gas/sparc/pr19910-2.s: New test.
3358         * testsuite/gas/sparc/sparc.exp: Run the new tests.
3359
3360 2016-04-06  Nick Clifton  <nickc@redhat.com>
3361
3362         * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
3363         an EINT instruction.  Warn/fix as necessary.
3364         * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
3365         * testsuite/gas/msp430/bad.l: Update expected messages.
3366
3367 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
3368
3369         * testsuite/gas/arc/nps400-1.d: Update expected results.
3370         * testsuite/gas/arc/nps400-1.s: Additional test cases.
3371
3372 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
3373
3374         * config/tc-arc.c (is_code_density_p): Compare directly the
3375         subclass field.
3376         (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
3377         (check_cpu_feature): New function.
3378         (find_opcode_match): Use check_cpu_feature function.
3379         (preprocess_operands): Likewise.
3380         (md_parse_option): Use mfpuda, mdpfp, mspfp options.
3381         * testsuite/gas/arc/tdpfp.d: New file.
3382         * testsuite/gas/arc/tfpuda.d: Likewise.
3383         * testsuite/gas/arc/tfpx.s: Likewise.
3384
3385 2016-04-05  Jiong Wang  <jiong.wang@arm.com>
3386
3387         * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
3388         * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
3389         * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
3390         * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
3391         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
3392         * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
3393         * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
3394         * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
3395         for Thumb.
3396         * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
3397
3398 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
3399
3400         * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
3401         JUMP instructions type.
3402         * testsuite/gas/arc/relocs-errors.d: New file.
3403         * testsuite/gas/arc/relocs-errors.err: Likewise.
3404         * testsuite/gas/arc/relocs-errors.s: Likewise.
3405
3406 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3407
3408         PR gas/19909
3409         * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
3410         only if i.disp_encoding != disp_encoding_32bit.
3411         * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
3412         * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
3413         * gas/testsuite/gas/i386/disp32.d: Updated.
3414         * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
3415
3416 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3417
3418         PR gas/19498
3419         * testsuite/gas/i386/i386.exp: Run pr19498.
3420         * testsuite/gas/i386/pr19498.d: New file.
3421         * testsuite/gas/i386/pr19498.s: Likewise.
3422
3423 2016-04-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3424
3425         * config/tc-arc.h: Include 'opcode/arc.h'.
3426         (MAX_INSN_ARGS): Delete.
3427         (MAX_INSN_FLGS): Delete.
3428
3429 2016-04-04  Alan Modra  <amodra@gmail.com>
3430
3431         PR 19498
3432         * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
3433         from function on all paths that set sy_resolving.
3434
3435 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3436
3437         * app.c (app_push): use XNEW macro.
3438         * as.c: Likewise.
3439         * config/obj-elf.c (obj_elf_change_section): Likewise.
3440         (elf_copy_symbol_attributes): Likewise.
3441         (obj_elf_size): Likewise.
3442         (build_group_lists): Likewise.
3443         * config/tc-aarch64.c (add_operand_error_record): Likewise.
3444         (md_assemble): Likewise.
3445         (tc_gen_reloc): Likewise.
3446         (get_upper_str): Likewise.
3447         (aarch64_parse_features): Likewise.
3448         * config/tc-arm.c (insert_reg_alias): Likewise.
3449         (insert_neon_reg_alias): Likewise.
3450         (find_or_make_literal_pool): Likewise.
3451         (s_arm_elf_cons): Likewise.
3452         (add_unwind_opcode): Likewise.
3453         (arm_parse_extension): Likewise.
3454         * config/tc-avr.c (create_record_for_frag): Likewise.
3455         * config/tc-crx.c: Likewise.
3456         * config/tc-d30v.c: Likewise.
3457         * config/tc-dlx.c (s_proc): Likewise.
3458         * config/tc-ft32.c: Likewise.
3459         * config/tc-h8300.c: Likewise.
3460         * config/tc-hppa.c (pa_proc): Likewise.
3461         (create_new_space): Likewise.
3462         (create_new_subspace): Likewise.
3463         * config/tc-i860.c: Likewise.
3464         * config/tc-i960.c: Likewise.
3465         * config/tc-ia64.c: Likewise.
3466         * config/tc-iq2000.c (iq2000_add_macro): Likewise.
3467         (iq2000_record_hi16): Likewise.
3468         * config/tc-m32c.c (m32c_indirect_operand): Likewise.
3469         * config/tc-m32r.c (debug_sym): Likewise.
3470         (m32r_record_hi16): Likewise.
3471         * config/tc-m68k.c (m68k_ip): Likewise.
3472         (md_begin): Likewise.
3473         * config/tc-mcore.c: Likewise.
3474         * config/tc-microblaze.c (check_got): Likewise.
3475         * config/tc-mips.c (append_insn): Likewise.
3476         (s_mipsset): Likewise.
3477         (mips_record_label): Likewise.
3478         (s_mips_end): Likewise.
3479         * config/tc-mmix.c (mmix_frob_file): Likewise.
3480         * config/tc-mn10200.c: Likewise.
3481         * config/tc-mn10300.c: Likewise.
3482         * config/tc-moxie.c: Likewise.
3483         * config/tc-msp430.c: Likewise.
3484         * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
3485         * config/tc-ns32k.c: Likewise.
3486         * config/tc-or1k.c: Likewise.
3487         * config/tc-pdp11.c: Likewise.
3488         * config/tc-pj.c (fake_opcode): Likewise.
3489         * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
3490         (ppc_macro): Likewise.
3491         (ppc_dwsect): Likewise.
3492         (ppc_machine): Likewise.
3493         * config/tc-rl78.c (rl78_frag_init): Likewise.
3494         * config/tc-rx.c (rx_frag_init): Likewise.
3495         * config/tc-s390.c (s390_lit_suffix): Likewise.
3496         (s390_machine): Likewise.
3497         (s390_machinemode): Likewise.
3498         * config/tc-score.c (s3_insert_reg): Likewise.
3499         (s3_gen_reloc): Likewise.
3500         * config/tc-score7.c (s7_insert_reg): Likewise.
3501         (s7_gen_reloc): Likewise.
3502         * config/tc-tic30.c (tic30_operand): Likewise.
3503         * config/tc-tic4x.c (tic4x_inst_make): Likewise.
3504         * config/tc-tic54x.c (stag_add_field): Likewise.
3505         (tic54x_struct): Likewise.
3506         (tic54x_space): Likewise.
3507         (tic54x_field): Likewise.
3508         (tic54x_mlib): Likewise.
3509         (subsym_substitute): Likewise.
3510         * config/tc-tic6x.c (tic6x_frob_label): Likewise.
3511         * config/tc-vax.c: Likewise.
3512         * config/tc-xc16x.c: Likewise.
3513         * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
3514         (directive_push): Likewise.
3515         (xtensa_begin_directive): Likewise.
3516         (tokenize_arguments): Likewise.
3517         (xtensa_add_literal_sym): Likewise.
3518         (new_resource_table): Likewise.
3519         (resize_resource_table): Likewise.
3520         (emit_single_op): Likewise.
3521         (xtensa_create_trampoline_frag): Likewise.
3522         (xtensa_maybe_create_literal_pool_frag): Likewise.
3523         (xtensa_add_config_info): Likewise.
3524         (xtensa_realloc_fixup_cache): Likewise.
3525         (add_subseg_info): Likewise.
3526         (cache_literal_section): Likewise.
3527         (add_xt_block_frags): Likewise.
3528         (add_xt_prop_frags): Likewise.
3529         (init_op_placement_info_table): Likewise.
3530         (build_section_rename): Likewise.
3531         * config/tc-z80.c: Likewise.
3532         * config/tc-z8k.c: Likewise.
3533         * depend.c (register_dependency): Likewise.
3534         * dwarf2dbg.c (get_line_subseg): Likewise.
3535         (dwarf2_gen_line_info_1): Likewise.
3536         (get_filenum): Likewise.
3537         * ecoff.c (allocate_scope): Likewise.
3538         (allocate_vlinks): Likewise.
3539         (allocate_shash): Likewise.
3540         (allocate_thash): Likewise.
3541         (allocate_tag): Likewise.
3542         (allocate_forward): Likewise.
3543         (allocate_thead): Likewise.
3544         (allocate_lineno_list): Likewise.
3545         * expr.c (make_expr_symbol): Likewise.
3546         * hash.c (hash_new_sized): Likewise.
3547         * input-file.c (input_file_push): Likewise.
3548         * listing.c (file_info): Likewise.
3549         (listing_newline): Likewise.
3550         * macro.c (new_formal): Likewise.
3551         (define_macro): Likewise.
3552         * remap.c (add_debug_prefix_map): Likewise.
3553         * symbols.c (symbol_find_noref): Likewise.
3554         (define_dollar_label): Likewise.
3555         (fb_label_instance_inc): Likewise.
3556         (symbol_relc_make_value): Likewise.
3557
3558 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3559
3560         * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
3561         * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
3562         (ppc_znop): Likewise.
3563         (ppc_pe_section): Likewise.
3564         (ppc_frob_symbol): Likewise.
3565         * config/tc-tic30.c (tic30_operand): Likewise.
3566         * config/tc-tic4x.c (tic4x_sect): Likewise.
3567         (tic4x_usect): Likewise.
3568
3569 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3570
3571         * config/tc-alpha.c: Const qualify FLT_CHARS.
3572         * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
3573         * config/tc-cris.h: Likewise.
3574         * expr.c: Likewise.
3575         * config/tc-mmix.c (md_atof): Adjust comment.
3576         * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
3577         * tc.h: Declare FLT_CHARS and EXP_CHARS.
3578
3579 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3580
3581         * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
3582         * config/tc-score7.c (s7_gen_reloc): Likewise.
3583
3584 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3585
3586         * config/tc-arm.c (do_t_branch): Change the type of reloc to
3587         bfd_reloc_code_real_type.
3588
3589 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3590
3591         * config/bfin-parse.y (current_inputline): Remove definition.
3592         * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
3593
3594 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3595
3596         * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
3597         strings.
3598
3599 2016-04-02  Alan Modra  <amodra@gmail.com>
3600
3601         PR 19896
3602         * read.c (assign_symbol): Consume rest of line after an error
3603         rather than continuing to process the line.
3604
3605 2016-04-01  Andrew Burgess  <andrew.burgess@embecosm.com>
3606
3607         * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
3608         (MAX_FLAG_NAME_LENGTH): ...this.
3609         (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
3610         * config/tc-arc.c (tokenize_flags): Likewise.
3611
3612 2016-04-01  Alan Modra  <amodra@gmail.com>
3613
3614         * cgen.c (weak_operand_overflow_check): Return const char*.
3615         * messages.c (as_internal_value_out_of_range): Formatting.
3616         (as_warn_value_out_of_range): Consify prefix param.
3617         (as_bad_value_out_of_range): Likewise.
3618         * read.c (s_errwarn): Constify msg..
3619         (s_float_space, float_cons): ..and err.
3620         * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
3621         ieee_md_atof, vax_md_atof): Update prototypes.
3622         * tc.h (md_atof): Update prototype.
3623         * config/atof-ieee.c (ieee_md_atof): Return const char*.
3624         * config/atof-vax.c (vax_md_atof): Likewise.
3625         * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
3626         * config/tc-aarch64.c (md_atof): Return const char*.
3627         * config/tc-alpha.c (s_alpha_section_name): Likewise.
3628         (s_alpha_comm): Constify sec_name.
3629         (section_name): Constify.
3630         (s_alpha_section): Consify name..
3631         (alpha_elf_section_letter): ..and ptr_msg param..
3632         (md_atof): ..and return.
3633         * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
3634         * config/tc-arc.c (md_atof): Return const char*.
3635         * config/tc-arm.c (md_atof): Likewise.
3636         * config/tc-avr.c (md_atof): Likewise.
3637         * config/tc-bfin.c (md_atof): Likewise.
3638         * config/tc-cr16.c (md_atof): Likewise.
3639         * config/tc-cris.c (md_atof): Likewise.
3640         * config/tc-crx.c (md_atof): Likewise.
3641         * config/tc-d10v.c (md_atof): Likewise.
3642         * config/tc-d30v.c (md_atof): Likewise.
3643         * config/tc-dlx.c (md_atof): Likewise.
3644         * config/tc-epiphany.c (md_atof): Likewise.
3645         * config/tc-fr30.c (md_atof): Likewise.
3646         * config/tc-frv.c (md_atof): Likewise.
3647         * config/tc-ft32.c (md_atof): Likewise.
3648         * config/tc-h8300.c (md_atof): Likewise.
3649         * config/tc-hppa.c (struct default_subspace_dict): Constify name.
3650         (struct default_space_dict): Likewise.
3651         (create_new_space): Constify name param.
3652         (create_new_subspace): Likewise.
3653         (is_defined_space, is_defined_subspace): Likewise.
3654         (pa_parse_space_stmt): Constify space_name param.
3655         (md_atof): Return const char*.
3656         (pa_spaces_begin): Constify name.
3657         * config/tc-i370.c (md_atof): Return const char*.
3658         * config/tc-i386.c (md_atof): Likewise.
3659         (x86_64_section_letter): Constify ptr_msg param.
3660         * config/tc-i386.h (x86_64_section_letter): Update prototype.
3661         * config/tc-i860.c (struct i860_it): Constify error.
3662         (md_atof): Return const char*.
3663         * config/tc-i960.c (md_atof): Likewise.
3664         * config/tc-ia64.c (md_atof): Likewise.
3665         (ia64_elf_section_letter): Constify ptr_msg param.
3666         * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
3667         * config/tc-ip2k.c (md_atof): Return const char*.
3668         * config/tc-iq2000.c (md_atof): Likewise.
3669         * config/tc-lm32.c (md_atof): Likewise.
3670         * config/tc-m32c.c (md_atof): Likewise.
3671         * config/tc-m32r.c (md_atof): Likewise.
3672         * config/tc-m68hc11.c (md_atof): Likewise.
3673         * config/tc-m68k.c (md_atof): Likewise.
3674         * config/tc-mcore.c (md_atof): Likewise.
3675         * config/tc-mep.c (md_atof): Likewise.
3676         (mep_elf_section_letter): Constify ptr_msg param.
3677         * config/tc-mep.h (mep_elf_section_letter): Update prototype.
3678         * config/tc-metag.c (md_atof): Return const char*.
3679         * config/tc-microblaze.c (md_atof): Likewise.
3680         * config/tc-microblaze.h (md_atof): Delete prototype.
3681         * config/tc-mips.c (mips_parse_argument_token): Constify err.
3682         (md_atof): Return const char*.
3683         * config/tc-mmix.c (md_atof): Likewise.
3684         * config/tc-mn10200.c (md_atof): Likewise.
3685         * config/tc-mn10300.c (md_atof): Likewise.
3686         * config/tc-moxie.c (md_atof): Likewise.
3687         * config/tc-msp430.c (md_atof): Likewise.
3688         * config/tc-mt.c (md_atof): Likewise.
3689         * config/tc-nds32.c (md_atof): Likewise.
3690         * config/tc-nios2.c (md_atof): Likewise.
3691         (nios2_elf_section_letter): Constify ptr_msg param.
3692         * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
3693         * config/tc-ns32k.c (md_atof): Return const char*.
3694         * config/tc-or1k.c (md_atof): Likewise.
3695         * config/tc-pdp11.c (struct pdp11_code): Constify error.
3696         (md_atof): Return const char*.
3697         * config/tc-pj.c (md_atof): Likewise.
3698         * config/tc-ppc.c (md_atof): Likewise.
3699         * config/tc-rl78.c (md_atof): Likewise.
3700         * config/tc-rx.c (md_atof): Likewise.
3701         * config/tc-s390.c (md_atof): Likewise.
3702         * config/tc-score.c (s3_atof, md_atof): Likewise.
3703         * config/tc-sh.c (md_atof): Likewise.
3704         * config/tc-sparc.c (struct sparc_it): Constify error.
3705         (md_atof): Return const char*.
3706         * config/tc-spu.c (md_atof): Likewise.
3707         * config/tc-tic30.c (md_atof): Likewise.
3708         * config/tc-tic4x.c (md_atof): Likewise.
3709         * config/tc-tic54x.c (md_atof): Likewise.
3710         * config/tc-tic6x.c (md_atof): Likewise.
3711         * config/tc-tilegx.c (md_atof): Likewise.
3712         * config/tc-tilepro.c (md_atof): Likewise.
3713         * config/tc-v850.c (parse_register_list, md_atof): Likewise.
3714         * config/tc-vax.c (md_atof): Likewise.
3715         * config/tc-visium.c (md_atof): Likewise.
3716         * config/tc-xc16x.c (md_atof): Likewise.
3717         * config/tc-xgate.c (md_atof): Likewise.
3718         * config/tc-xstormy16.c (md_atof): Likewise.
3719         * config/tc-xtensa.c (md_atof): Likewise.
3720         * config/tc-z80.c (md_atof): Likewise.
3721         * config/tc-z8k.c (md_atof): Likewise.
3722
3723 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3724
3725         * config/tc-xtensa.c (struct rename_section_struct): Make old_name
3726         const.
3727         (xtensa_section_rename): Make argument type const char *.
3728         * config/tc-xtensa.h (xtensa_section_rename): Adjust.
3729
3730 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3731
3732         * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
3733         args[0].
3734
3735 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3736
3737         * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
3738         char *.
3739         (m32c_indirect_operand): Likewise.
3740         * config/tc-nds32.c (do_pseudo_b): Likewise.
3741         (do_pseudo_bal): Likewise.
3742         (do_pseudo_ls_bhw): Likewise.
3743
3744 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3745
3746         * as.c (parse_args): Cast literal to char * when assigning to optarg.
3747
3748 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3749
3750         * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
3751         get_symbol_name ().
3752         * config/tc-sparc.c (s_register): Cast a literal to char * in
3753         assignment.
3754
3755 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3756
3757         * config/tc-i960.c (parse_expr): Cast to char * when assigning to
3758         input_line_pointer.
3759         * config/tc-m32r.c (expand_debug_syms): Likewise.
3760         * config/tc-msp430.c (msp430_dstoperand): Likewise.
3761         * config/tc-z80.c (md_begin): Likewise.
3762         * stabs.c (stabs_generate_asm_func): Likewise.
3763
3764 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3765
3766         * cgen.c: Modernize the way functions declare arguments.
3767         * config/tc-bfin.c: Likewise.
3768         * config/tc-pdp11.c: Likewise.
3769         * literal.c: Likewise.
3770         * read.c: Likewise.
3771         * stabs.c: Likewise.
3772
3773 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3774
3775         * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
3776         variables unsigned char[].
3777         * config/tc-alpha.c (alpha_handle_align): Likewise.
3778         * config/tc-arm.c (arm_handle_align): Likewise.
3779         * config/tc-z80.c: Likewise.
3780
3781 2016-03-30  Nick Clifton  <nickc@redhat.com>
3782
3783         PR target/19880
3784         * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
3785         shifting.
3786
3787 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
3788
3789         * testsuite/gas/all/gas.exp: Don't xfail on ARC.
3790         * testsuite/gas/elf/elf.exp: Likewise.
3791         * testsuite/gas/all/redef3.d: Allow execution for ARC.
3792
3793 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
3794
3795         * testsuite/gas/arc/warn.exp: Fix matching pattern.
3796
3797 2016-03-29  Claudiu Zissulescu  <claziss@synopsys.com>
3798
3799         * testsuite/gas/arc/ext2op.d: New file.
3800         * testsuite/gas/arc/ext2op.s: Likewise.
3801         * testsuite/gas/arc/ext3op.d: Likewise.
3802         * testsuite/gas/arc/ext3op.s: Likewise.
3803
3804 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3805
3806         * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
3807         qualifier.
3808         * config/tc-alpha.c (md_parse_option): Likewise.
3809         * config/tc-arc.c (md_parse_option): Likewise.
3810         * config/tc-arm.c (struct arm_long_option_table): Likewise.
3811         (md_parse_option): Likewise.
3812         * config/tc-avr.c (md_parse_option): Likewise.
3813         * config/tc-bfin.c (md_parse_option): Likewise.
3814         * config/tc-cr16.c (md_parse_option): Likewise.
3815         * config/tc-cris.c (s_cris_arch): Likewise.
3816         (md_parse_option): Likewise.
3817         * config/tc-crx.c (md_parse_option): Likewise.
3818         * config/tc-d10v.c (md_parse_option): Likewise.
3819         * config/tc-d30v.c (md_parse_option): Likewise.
3820         * config/tc-dlx.c (md_parse_option): Likewise.
3821         * config/tc-epiphany.c (md_parse_option): Likewise.
3822         * config/tc-fr30.c (md_parse_option): Likewise.
3823         * config/tc-frv.c (md_parse_option): Likewise.
3824         * config/tc-ft32.c (md_parse_option): Likewise.
3825         * config/tc-h8300.c (md_parse_option): Likewise.
3826         * config/tc-hppa.c (md_parse_option): Likewise.
3827         * config/tc-i370.c (md_parse_option): Likewise.
3828         * config/tc-i386.c (md_parse_option): Likewise.
3829         * config/tc-i860.c (md_parse_option): Likewise.
3830         * config/tc-i960.c (md_parse_option): Likewise.
3831         * config/tc-ia64.c (md_parse_option): Likewise.
3832         * config/tc-ip2k.c (md_parse_option): Likewise.
3833         * config/tc-iq2000.c (md_parse_option): Likewise.
3834         * config/tc-lm32.c (md_parse_option): Likewise.
3835         * config/tc-m32c.c (md_parse_option): Likewise.
3836         * config/tc-m32r.c (md_parse_option): Likewise.
3837         * config/tc-m68hc11.c (md_parse_option): Likewise.
3838         * config/tc-m68k.c (md_parse_option): Likewise.
3839         * config/tc-mcore.c (md_parse_option): Likewise.
3840         * config/tc-mep.c (md_parse_option): Likewise.
3841         * config/tc-metag.c (struct metag_long_option): Likewise.
3842         (md_parse_option): Likewise.
3843         * config/tc-microblaze.c (md_parse_option): Likewise.
3844         * config/tc-microblaze.h (md_parse_option): Remove prototype.
3845         * config/tc-mips.c (md_parse_option): Adjust.
3846         * config/tc-mmix.c (md_parse_option): Likewise.
3847         * config/tc-mn10200.c (md_parse_option): Likewise.
3848         * config/tc-mn10300.c (md_parse_option): Likewise.
3849         * config/tc-moxie.c (md_parse_option): Likewise.
3850         * config/tc-msp430.c (md_parse_option): Likewise.
3851         * config/tc-mt.c (md_parse_option): Likewise.
3852                 * config/tc-nds32.c (md_parse_option): Likewise.
3853                 * config/tc-nds32.h (nds32_parse_option): Likewise.
3854         * config/tc-nios2.c (md_parse_option): Likewise.
3855         * config/tc-ns32k.c (md_parse_option): Likewise.
3856         * config/tc-or1k.c (md_parse_option): Likewise.
3857         * config/tc-pdp11.c (md_parse_option): Likewise.
3858         * config/tc-pj.c (md_parse_option): Likewise.
3859         * config/tc-ppc.c (md_parse_option): Likewise.
3860         * config/tc-rl78.c (md_parse_option): Likewise.
3861         * config/tc-rx.c (md_parse_option): Likewise.
3862         * config/tc-s390.c (s390_parse_cpu): Likewise.
3863         * config/tc-score.c (md_parse_option): Likewise.
3864         * config/tc-sh.c (md_parse_option): Likewise.
3865         * config/tc-sparc.c (md_parse_option): Likewise.
3866         * config/tc-spu.c (md_parse_option): Likewise.
3867         * config/tc-tic30.c (md_parse_option): Likewise.
3868         * config/tc-tic4x.c (md_parse_option): Likewise.
3869         * config/tc-tic54x.c (md_parse_option): Likewise.
3870         * config/tc-tic6x.c (md_parse_option): Likewise.
3871         * config/tc-tilegx.c (md_parse_option): Likewise.
3872         * config/tc-tilepro.c (md_parse_option): Likewise.
3873         * config/tc-v850.c (md_parse_option): Likewise.
3874         * config/tc-vax.c (md_parse_option): Likewise.
3875         * config/tc-visium.c (struct visium_long_option_table): Likewise.
3876         * config/tc-xc16x.c (md_parse_option): Likewise.
3877         * config/tc-xgate.c (md_parse_option): Likewise.
3878         * config/tc-xstormy16.c (md_parse_option): Likewise.
3879         * config/tc-xtensa.c (md_parse_option): Likewise.
3880         * config/tc-z80.c (md_parse_option): Likewise.
3881         * config/tc-z8k.c (md_parse_option): Likewise.
3882         * tc.h (md_parse_option): Likewise.
3883
3884 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3885
3886         * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
3887         * config/tc-hppa.c (fix_new_hppa): Likewise.
3888         (pa_vtable_entry): Likewise.
3889         (pa_vtable_inherit): Likewise.
3890         * config/tc-m68k.c (md_begin): Likewise.
3891
3892 2016-03-28  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3893
3894         * config/obj-elf.c (obj_elf_section_name): Return const char *.
3895         * config/obj-elf.h (obj_elf_section_name): Adjust.
3896         * config/tc-aarch64.c (aarch64_parse_features): Likewise.
3897         (aarch64_parse_cpu): Likewise.
3898         (aarch64_parse_arch): Likewise.
3899         * config/tc-arm.c (arm_parse_extension): Likewise.
3900         (arm_parse_cpu): Likewise.
3901         (arm_parse_arch): Likewise.
3902         * config/tc-nds32.c: Likewise.
3903         * config/xtensa-relax.c (parse_special_fn): Likewise.
3904         * stabs.c (generate_asm_file): Likewise.
3905
3906 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3907
3908         * config/tc-cr16.c (cr16_assemble): New function.
3909         (md_assemble): Call cr16_assemble.
3910
3911 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3912
3913         * as.c (parse_args): Adjust.
3914         * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
3915         * config/obj-elf.c (elf_frob_symbol): Adjust.
3916
3917 2016-03-24  Jose E. Marchesi  <jose.marchesi@oracle.com>
3918
3919         * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
3920         registers to be in the 16..31 range.
3921
3922 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3923
3924         * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
3925         frag_var ().
3926
3927 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3928
3929         * config/tc-visium.c (md_atof): Localize the string returned on
3930         failure.
3931
3932 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3933
3934         * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
3935         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
3936         * config/tc-m68hc11.c (md_begin): Likewise.
3937         (print_opcode_list): Likewise.
3938         * config/tc-msp430.c (msp430_section): Likewise.
3939         * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
3940         (s3_build_dependency_insn_hsh): Likewise.
3941         * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
3942         (s7_build_dependency_insn_hsh): Likewise.
3943         * config/tc-tic4x.c: Likewise.
3944         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
3945         (subsym_get_arg): Likewise.
3946         * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
3947         (get_directive): Likewise.
3948         (cache_literal_section): Likewise.
3949         * config/xtensa-relax.c: Likewise.
3950         * symbols.c (symbol_create): Likewise.
3951         (local_symbol_make): Likewise.
3952         (symbol_relc_make_expr): Likewise.
3953
3954 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3955
3956         * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
3957         str.
3958
3959 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3960
3961         * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
3962         call with a switch.
3963
3964 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3965
3966         * config/tc-ia64.c (ia64_do_align): Remove.
3967         (ia64_cons_align): Call do_align () directly.
3968         (dot_proc): Likewise.
3969         (stmt_float_cons): Likewise.
3970
3971 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3972
3973         * listing.c (listing_message): Use XNEW style allocation macros.
3974         * read.c (read_a_source_file): Likewise.
3975         (read_symbol_name): Likewise.
3976         (s_mri_common): Likewise.
3977         (assign_symbol): Likewise.
3978         (s_reloc): Likewise.
3979         (emit_expr_with_reloc): Likewise.
3980         (s_incbin): Likewise.
3981         (s_include): Likewise.
3982         * sb.c (sb_build): Likewise.
3983         (sb_check): Likewise.
3984
3985 2016-03-22  Alan Modra  <amodra@gmail.com>
3986
3987         * write.c (record_alignment): Revert 2016-02-18 change.
3988
3989 2016-03-22  Alan Modra  <amodra@gmail.com>
3990
3991         * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
3992         (emit_jsrjmp, tc_gen_reloc): Likewise.
3993         * config/tc-i370.c (i370_macro): Likewise.
3994
3995 2016-03-22  Nick Clifton  <nickc@redhat.com>
3996
3997         * configure: Regenerate.
3998
3999 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4000
4001         * testsuite/gas/arc/nps400-0.d: New file.
4002         * testsuite/gas/arc/nps400-0.s: New file.
4003         * testsuite/gas/arc/nps400-1.d: New file.
4004         * testsuite/gas/arc/nps400-1.s: New file.
4005
4006 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4007
4008         * config/tc-arc.c (find_opcode_match): Move lnflg, and i
4009         declarations to start of block.  Reset code on all flags before
4010         attempting to match them.  Handle multiple hits on the same flag.
4011         Handle flag class.
4012         * testsuite/gas/arc/asm-errors.d: New file.
4013         * testsuite/gas/arc/asm-errors.err: New file.
4014         * testsuite/gas/arc/asm-errors.s: New file.
4015
4016 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4017
4018         * config/tc-arc.c (cpu_types): Add nps400 entry.
4019         (check_zol): Handle nps400.
4020
4021 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4022
4023         * config/tc-arc.c (arc_select_cpu): Remove use of
4024         EF_ARC_CPU_GENERIC.
4025
4026 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4027
4028         * config/tc-arc.c (arc_target): Delay initialisation until
4029         arc_select_cpu.
4030         (arc_target_name): Likewise.
4031         (arc_features): Likewise.
4032         (arc_mach_type): Likewise.
4033         (cpu_types): Remove "all" entry.
4034         (arc_select_cpu): New function, most of the content is from...
4035         (md_parse_option): ... here.  Call new arc_select_cpu.
4036         (md_begin): Call arc_select_cpu if needed, default is now arc700.
4037
4038 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4039
4040         * testsuite/gas/arc/inline-data-1.d: Add target restriction.
4041         * testsuite/gas/arc/inline-data-2.d: New file.
4042
4043 2016-03-21  Nick Clifton  <nickc@redhat.com>
4044
4045         * atof-generic.c: Replace use of alloca with call to xmalloc.
4046         * cgen.c: Likewise.
4047         * dwarf2dbg.c: Likewise.
4048         * macro.c: Likewise.
4049         * remap.c: Likewise.
4050         * stabs.c: Likewise.
4051         * symbols.c: Likewise.
4052         * config/obj-elf.c: Likewise.
4053         * config/tc-aarch64.c: Likewise.
4054         * config/tc-arc.c: Likewise.
4055         * config/tc-arm.c: Likewise.
4056         * config/tc-avr.c: Likewise.
4057         * config/tc-ia64.c: Likewise.
4058         * config/tc-mips.c: Likewise.
4059         * config/tc-msp430.c: Likewise.
4060         * config/tc-nds32.c: Likewise.
4061         * config/tc-ppc.c: Likewise.
4062         * config/tc-sh.c: Likewise.
4063         * config/tc-tic30.c: Likewise.
4064         * config/tc-tic54x.c: Likewise.
4065         * config/tc-xstormy16.c: Likewise.
4066         * config/te-vms.c: Likewise.
4067         * configure: Regenerate.
4068
4069 2016-03-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4070
4071         * tc-i386.c (f32_1): Change type to unsigned char[].
4072         (f32_2): Likewise.
4073         (f32_3): Likewise.
4074         (f32_4): Likewise.
4075         (f32_5): Likewise.
4076         (f32_6): Likewise.
4077         (f32_7): Likewise.
4078         (f32_8): Likewise.
4079         (f32_9): Likewise.
4080         (f32_10): Likewise.
4081         (f32_11): Likewise.
4082         (f32_12): Likewise.
4083         (f32_13): Likewise.
4084         (f32_14): Likewise.
4085         (f16_3): Likewise.
4086         (f16_4): Likewise.
4087         (f16_5): Likewise.
4088         (f16_6): Likewise.
4089         (f16_7): Likewise.
4090         (f16_8): Likewise.
4091         (jump_31): Likewise.
4092         (f32_patt): Likewise.
4093         (f16_patt): Likewise.
4094         (alt_3): Likewise.
4095         (alt_4): Likewise.
4096         (alt_5): Likewise.
4097         (alt_6): Likewise.
4098         (alt_7): Likewise.
4099         (alt_8): Likewise.
4100         (alt_9): Likewise.
4101         (alt_10): Likewise.
4102         (alt_patt): Likewise.
4103
4104 2016-03-18  Nick Clifton  <nickc@redhat.com>
4105
4106         * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
4107         .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
4108         .tlsdescldr and .xword directives.
4109
4110         PR target/19721
4111         * testsuite/gas/aarch64/pr19721.s: New test source file.
4112         * testsuite/gas/aarch64/pr19721.d: New test driver file.
4113
4114         * doc/as.texinfo: Place the target specific command line options
4115         into their own man page section.
4116
4117 2016-03-16  Jiong Wang  <jiong.wang@arm.com>
4118
4119         * config/tc-arm.c (N_S_32): New.
4120         (N_F_16_32): Likewise.
4121         (N_SUF_32): Support N_F16.
4122         (N_IF_32): Likewise.
4123         (neon_dyadic_misc): Likewise.
4124         (do_neon_cmp): Likewise.
4125         (do_neon_cmp_inv): Likewise.
4126         (do_neon_mul): Likewise.
4127         (do_neon_fcmp_absolute): Likewise.
4128         (do_neon_step): Likewise.
4129         (do_neon_abs_neg): Likewise.
4130         (CVT_FLAVOR_VAR): Likewise.
4131         (do_neon_cvt_1): Likewise.
4132         (do_neon_recip_est): Likewise.
4133         (do_vmaxnm): Likewise.
4134         (do_vrint_1): Likewise.
4135         (neon_check_type): Check architecture support for FP16 extension.
4136         (insns): Update comments.
4137         * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
4138         * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
4139         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
4140         * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
4141         arm mode.
4142         * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
4143         thumb mode.
4144         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
4145         error file.
4146
4147 2016-03-16  Nick Clifton  <nickc@redhat.com>
4148
4149         * read.c (emit_expr_with_reloc): Add code check a bignum with
4150         nbytes == 1.
4151         * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
4152         other than 32-bits.
4153         * testsuite/gas/elf/bignum.s: New test source file.
4154         * testsuite/gas/elf/bignum.d: New test driver file.
4155         * testsuite/gas/elf/elf.exp: Run the new test.
4156
4157 2016-03-15  Ulrich Drepper  <drepper@gmail.com>
4158
4159         * doc/c-i386.texi (Register Naming): Update to details of the
4160         latest architecture version.
4161
4162 2016-03-10  Mickael Guene  <mickael.guene@st.com>
4163
4164         PR gas/19744
4165         * config/tc-arm.c (do_arit): Protect against bad relocations usage.
4166         (do_mov): Likewise.
4167         (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
4168         (do_t_mov_cmp): Likewise.
4169         (do_t_add_sub): Protect against bad relocations usage.
4170         (do_t_mov_cmp): Likewise.
4171         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
4172         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
4173         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
4174         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
4175
4176 2016-03-09  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4177
4178         * config/tc-arm.c (neon_alignment_bit): Rename do_align to
4179         do_alignment.
4180         (do_neon_ld_st_lane): Likewise.
4181         (do_neon_ld_dup): Likewise.
4182
4183 2016-03-08  Andrew Burgess  <andrew.burgess@embecosm.com>
4184
4185         * testsuite/gas/arc/inline-data-1.d: New file.
4186         * testsuite/gas/arc/inline-data-1.s: New file.
4187
4188 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4189
4190         * config/tc-arm.c (arm_cpus): Add cortex-r8.
4191         * doc/c-arm.texi: Add cortex-r8.
4192
4193 2016-03-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4194
4195         * config/tc-arc.c: Add const qualifiers.
4196         * config/tc-h8300.c (md_begin): Likewise.
4197         * config/tc-ia64.c (print_prmask): Likewise.
4198         * config/tc-msp430.c (msp430_operands): Likewise.
4199         * config/tc-nds32.c (struct suffix_name): Likewise.
4200         (struct nds32_parse_option_table): Likewise.
4201         (struct nds32_set_option_table): Likewise.
4202         (do_pseudo_pushpopm): Likewise.
4203         (do_pseudo_pushpop_stack): Likewise.
4204         (nds32_relax_relocs): Likewise.
4205         (nds32_flag): Likewise.
4206         (struct nds32_hint_map): Likewise.
4207         (nds32_find_reloc_table): Likewise.
4208         (nds32_match_hint_insn): Likewise.
4209         * config/tc-s390.c: Likewise.
4210         * config/tc-sh.c (get_specific): Likewise.
4211         * config/tc-tic30.c: Likewise.
4212         * config/tc-tic4x.c (tic4x_inst_add): Likewise.
4213         (tic4x_indirect_parse): Likewise.
4214         * config/tc-vax.c (vax_cons): Likewise.
4215         * config/tc-z80.c (struct reg_entry): Likewise.
4216         * config/tc-epiphany.c (md_assemble): Adjust.
4217         (epiphany_assemble): New function.
4218         (epiphany_elf_section_rtn): Call do_align directly.
4219         (epiphany_elf_section_text): Likewise.
4220         * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
4221         (ip2k_elf_section_text): Likewise.
4222         * read.c (do_align): Make it not static.
4223         * read.h (do_align): New prototype.
4224
4225 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
4226
4227         * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
4228         for ARMv8.1 AdvSIMD use.
4229         * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
4230         * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
4231
4232 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
4233
4234         * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
4235         feature.
4236         (record_feature_use): New.
4237         (mark_feature_used): Use record_feature_use.
4238         (do_neon_qrdmlah): New.
4239         (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
4240         variants.
4241         (arm_extensions): Put into alphabetical order.  Re-indent "simd"
4242         and "rdma" entries.  Fix the incorrect merge value for "+rdma".
4243         * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
4244         * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
4245         Make source file explicit.
4246         * testsuite/gas/arm/armv8-a+rdma.l: New.
4247         * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
4248         directives.  Fix white-space.
4249         * testsuite/gas/arm/armv8_1-a+simd.d: New.
4250
4251 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
4252
4253         * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
4254
4255 2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
4256             Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
4257
4258         * config/tc-arc.c (arc_extra_reloc): Change size to 0.
4259         (tc_arc_fix_adjustable): Changed default return value to 1.
4260         * testsuite/gas/arc/j.d: Updated expected symbol
4261         * testsuite/gas/arc/jl.d: Likewise
4262         * testsuite/gas/arc/relax-avoid1.d: Likewise
4263         * testsuite/gas/arc/st.d: Likewise
4264
4265 2016-02-29  Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
4266
4267         * config/tc-arc.c: Enable code density instructions for ARC EM.
4268
4269 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
4270
4271         PR ld/19645
4272         * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
4273         for ELF assemblers.
4274         * as.c (flag_use_elf_stt_common): New.
4275         (show_usage): Add --elf-stt-common=.
4276         (option_values): Add OPTION_ELF_STT_COMMON.
4277         (std_longopts): Add --elf-stt-common=.
4278         (parse_args): Handle --elf-stt-common=.
4279         * as.h (flag_use_elf_stt_common): New.
4280         * config.in: Regenerated.
4281         * configure: Likewise.
4282         * configure.ac: Add --enable-elf-stt-common and define
4283         DEFAULT_GENERATE_ELF_STT_COMMON.
4284         * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
4285         and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
4286         * doc/as.texinfo: Document --elf-stt-common=.
4287         * testsuite/gas/elf/common3.s: New file.
4288         * testsuite/gas/elf/common3a.d: Likewise.
4289         * testsuite/gas/elf/common3b.d: Likewise.
4290         * testsuite/gas/elf/common4.s: Likewise.
4291         * testsuite/gas/elf/common4a.d: Likewise.
4292         * testsuite/gas/elf/common4b.d: Likewise.
4293         * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
4294         * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
4295         * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
4296         and common4b.
4297         * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
4298         * testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
4299         --elf-stt-common=no to as.
4300         * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
4301         * testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
4302         --elf-stt-common=no to as.
4303         * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
4304         dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
4305         of dw2-compress-3 and dw2-compressed-3.
4306
4307 2016-02-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4308
4309         * as.c (select_emulation_mode): Add const qualifiers.
4310         * as.h: Likewise.
4311         * config/bfin-defs.h: Likewise.
4312         * config/bfin-parse.y: Likewise.
4313         * config/rx-parse.y: Likewise.
4314         * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
4315         (struct aarch64_cpu_option_table): Likewise.
4316         (struct aarch64_arch_option_table): Likewise.
4317         (struct aarch64_option_cpu_value_table): Likewise.
4318         (struct aarch64_long_option_table): Likewise.
4319         (struct aarch64_option_abi_value_table): Likewise.
4320         * config/tc-arm.c (struct reloc_entry): Likewise.
4321         (tc_gen_reloc): Likewise.
4322         (struct arm_option_table): Likewise.
4323         (struct arm_legacy_option_table): Likewise.
4324         (struct arm_cpu_option_table): Likewise.
4325         (struct arm_arch_option_table): Likewise.
4326         (struct arm_option_extension_value_table): Likewise.
4327         (struct arm_option_fpu_value_table): Likewise.
4328         (struct arm_option_value_table): Likewise.
4329         (struct arm_long_option_table): Likewise.
4330         * config/tc-avr.c (struct avr_opcodes_s): Likewise.
4331         (struct mcu_type_s): Likewise.
4332         (struct exp_mod_s): Likewise.
4333         (avr_operand): Likewise.
4334         (avr_operands): Likewise.
4335         * config/tc-d10v.c (md_begin): Likewise.
4336         * config/tc-dlx.c: Likewise.
4337         * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
4338         * config/tc-ft32.c (parse_condition): Likewise.
4339         * config/tc-h8300.c (do_a_fix_imm): Likewise.
4340         * config/tc-hppa.c (pa_ip): Likewise.
4341         (hppa_regname_to_dw2regnum): Likewise.
4342         * config/tc-i370.c (i370_elf_suffix): Likewise.
4343         * config/tc-i960.c (struct tabentry): Likewise.
4344         * config/tc-m32r.c: Likewise.
4345         * config/tc-m68k.c: Likewise.
4346         * config/tc-m68k.h: Likewise.
4347         * config/tc-mcore.c (parse_psrmod): Likewise.
4348         * config/tc-metag.c (struct metag_core_option): Likewise.
4349         (struct metag_long_option): Likewise.
4350         * config/tc-microblaze.c: Likewise.
4351         * config/tc-mips.c (macro): Likewise.
4352         * config/tc-mn10200.c: Likewise.
4353         * config/tc-mn10300.c: Likewise.
4354         * config/tc-msp430.c (struct rcodes_s): Likewise.
4355         (struct hcodes_s): Likewise.
4356         (md_parse_option): Likewise.
4357         * config/tc-ns32k.c (struct ns32k_option): Likewise.
4358         (optlist): Likewise.
4359         * config/tc-ppc.c (ppc_elf_suffix): Likewise.
4360         (tc_ppc_regname_to_dw2regnum): Likewise.
4361         * config/tc-ppc.h: Likewise.
4362         * config/tc-rl78.c: Likewise.
4363         * config/tc-rx.c (struct cpu_type): Likewise.
4364         * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
4365         * config/tc-sparc.c (struct priv_reg_entry): Likewise.
4366         (sparc_ip): Likewise.
4367         * config/tc-spu.c (insn_fmt_string): Likewise.
4368         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4369         * config/tc-v850.c: Likewise.
4370         * config/tc-visium.c (struct visium_arch_option_table): Likewise.
4371         (struct visium_long_option_table): Likewise.
4372         * config/tc-xgate.c: Likewise.
4373         * config/tc-z8k.c: Likewise.
4374         * read.c (add_include_dir): Likewise.
4375         * read.h: Likewise.
4376
4377 2016-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
4378
4379         * testsuite/gas/all/gas.exp: Change target pattern to cover
4380         arceb-*.
4381         * testsuite/gas/all/redef3.d: Likewise.
4382         * testsuite/gas/elf/elf.exp: Likewise.
4383
4384 2016-02-24  Renlin Li  <renlin.li@arm.com>
4385
4386         * config/tc-arm.c (BAD_FP16): New error message macro.
4387         (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
4388         fp16 scalar instructions.
4389         (neon_check_type): Allow different size from key.
4390         (do_vfp_nsyn_add_sub): Add support SE_H shape support.
4391         (try_vfp_nsyn): Likewise.
4392         (do_vfp_nsyn_mla_mls): Likewise.
4393         (do_vfp_nsyn_fma_fms): Likewise.
4394         (do_vfp_nsyn_ldm_stm): Likewise
4395         (do_vfp_nsyn_sqrt): Likewise
4396         (do_vfp_nsyn_div): Likewise
4397         (do_vfp_nsyn_nmul): Likewise.
4398         (do_vfp_nsyn_cmp): Likewise.
4399         (do_neon_shll): Likewise.
4400         (do_vfp_nsyn_cvt_fpv8): Likewise.
4401         (do_neon_cvttb_2): Likewise.
4402         (do_neon_mov): Likewise.
4403         (do_neon_rshift_round_imm): Likewise.
4404         (do_neon_ldr_str): Likewise.
4405         (do_vfp_nsyn_fpv8): Likewise.
4406         (do_vmaxnm): Likewise.
4407         (do_vrint_1): Likewise.
4408         (insns): New entry for vins, vmovx.
4409         (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
4410         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
4411         * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
4412         * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
4413         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
4414         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
4415         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
4416
4417 2016-02-24  Renlin Li  <renlin.li@arm.com>
4418
4419         * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
4420         (neon_shape_class): New SC_HALF.
4421         (neon_shape_el): New SE_H.
4422         (neon_shape_el_size): New size for SE_H.
4423         (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
4424         (neon_select_shape): Add SE_H support code.
4425         (el_type_of_type_chk): Use N_F_ALL.
4426         (do_vfp_nsyn_cvt): Add SE_H shape support.
4427         (do_neon_cvtz): Likewise.
4428         (do_neon_cvt_1): Likewise.
4429         (do_neon_cvttb_1): Likewise.
4430
4431 2016-02-24  Renlin Li  <renlin.li@arm.com>
4432
4433         * testsuite/gas/arm/copro.d: Adjust output.
4434         * testsuite/gas/arm/copro.s: Adjust co-processor num.
4435
4436 2016-02-24  Renlin Li  <renlin.li@arm.com>
4437
4438         * testsuite/gas/arm/mask_1.d: New.
4439         * testsuite/gas/arm/mask_1.s: New.
4440
4441 2016-02-24  Renlin Li  <renlin.li@arm.com>
4442
4443         * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
4444         * testsuite/gas/arm/copro.d: Update.
4445
4446 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4447
4448         * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
4449         * doc/c-arm.texi (ARM Options): Document cortex-a32.
4450
4451 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4452
4453         * doc/c-arm.texi (ARM Options): Document cortex-a17.
4454
4455 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
4456
4457         * testsuite/gas/elf/elf.exp: Skip tests for common directive on
4458         hpux.
4459
4460 2016-02-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4461
4462         * output-file.c (output_file_create): Make file name argument const.
4463         (output_file_close): Likewise.
4464         * output-file.h (output_file_create): Adjust.
4465         (output_file_close): Likewise.
4466         * depend.c (quote_string_for_make): Make src argument const char *.
4467         (register_dependency): Likewise.
4468         (wrap_output): Likewise.
4469         * as.h (register_dependency): Adjust.
4470         * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
4471         as_where ();
4472         * symbols.c (S_SET_EXTERNAL): Likewise.
4473         * input-scrub.c (as_where): Return the file name.
4474         * as.h (as_where): Adjust prototype.
4475         * app.c (do_scrub_chars): Adjust.
4476         * cond.c (s_elseif): Likewise.
4477         (s_else): Likewise.
4478         (initialize_cframe): Likewise.
4479         * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
4480         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
4481         * config/obj-som.c (obj_som_init_stab_section): Likewise.
4482         * config/tc-aarch64.c (output_info): Likewise.
4483         * config/tc-ia64.c (md_assemble): Likewise.
4484         (dot_alias): Likewise.
4485         * config/tc-m68k.c (m68k_frob_label): Likewise.
4486         * config/tc-mmix.c (s_bspec): Likewise.
4487         (mmix_handle_mmixal): Likewise.
4488         * config/tc-rx.c (rx_include): Likewise.
4489         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4490         (tic54x_adjust_symtab): Likewise.
4491         * config/tc-xtensa.c (directive_push): Likewise.
4492         (xtensa_sanity_check): Likewise.
4493         (xtensa_relax_frag): Likewise.
4494         (md_convert_frag): Likewise.
4495         (tinsn_to_slotbuf): Likewise.
4496         * dwarf2dbg.c (dwarf2_where): Likewise.
4497         * ecoff.c (add_file): Likewise.
4498         (ecoff_generate_asm_lineno): Likewise.
4499         * expr.c (make_expr_symbol): Likewise.
4500         * frags.c (frag_new): Likewise.
4501         (frag_var_init): Likewise.
4502         * listing.c (listing_newline): Likewise.
4503         * messages.c (identify): Likewise.
4504         (as_show_where): Likewise.
4505         (as_warn_internal): Likewise.
4506         (as_bad_internal): Likewise.
4507         * read.c (s_irp): Likewise.
4508         (s_macro): Likewise.
4509         (s_reloc): Likewise.
4510         * stabs.c (stabs_generate_asm_file): Likewise.
4511         (stabs_generate_asm_lineno): Likewise.
4512         (stabs_generate_asm_func): Likewise.
4513         * write.c (fix_new_internal): Likewise.
4514         * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
4515         (as_warn_value_out_of_range): Adjust prototype.
4516         (as_bad_value_out_of_range): Adjust prototype.
4517         * messages.c (identify): Make file name argument const char *.
4518         (as_warn_internal): Likewise.
4519         (as_warn_where): Likewise.
4520         (as_bad_internal): Likewise.
4521         (as_bad_where): Likewise.
4522         (as_internal_value_out_of_range): Likewise.
4523         (as_warn_value_out_of_range): Likewise.
4524         (as_bad_value_out_of_range): Likewise.
4525         * as.h (found_comment_file): Change type to const char *.
4526         * cond.c (file_line::file): Likewise.
4527         * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
4528         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
4529         * config/obj-som.c (obj_som_init_stab_section): Likewise.
4530         * config/tc-aarch64.c (output_info): Likewise.
4531         * config/tc-alpha.c (insert_operand): Likewise.
4532         * config/tc-arc.c (insert_operand): Likewise.
4533         * config/tc-d30v.c (check_size): Likewise.
4534         * config/tc-ia64.c (struct alias): Likewise.
4535         * config/tc-m68k.c (struct label_line): Likewise.
4536         * config/tc-mcore.c (md_apply_fix): Likewise.
4537         * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
4538         * config/tc-mips.c (mips16_immed): Likewise.
4539         * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
4540         * config/tc-ppc.c (ppc_insert_operand): Likewise.
4541         * config/tc-rx.c (rx_include): Likewise.
4542         * config/tc-s390.c (s390_insert_operand): Likewise.
4543         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4544         (tic54x_adjust_symtab): Likewise.
4545         * config/tc-tilegx.c (insert_operand): Likewise.
4546         (apply_special_operator): Likewise.
4547         * config/tc-tilepro.c (insert_operand): Likewise.
4548         * config/tc-xtensa.c (directive_push): Likewise.
4549         * ecoff.c (add_file): Likewise.
4550         (ecoff_generate_asm_lineno): Likewise.
4551         * listing.c (listing_newline): Likewise.
4552         * read.c (s_irp): Likewise.
4553         * write.c (install_reloc): Likewise.
4554         * write.h (struct fix): Likewise.
4555         * input-file.c (file_name): Change type to const char *.
4556         (saved_file::file_name): Likewise.
4557         (input_file_open): Change type of argument to const char *.
4558         * input-file.h (input_file_open): Adjust.
4559         * input-scrub.c (logical_input_file): change type to const char *.
4560         (physical_input_file): Likewise.
4561         (struct input_save): Adjust.
4562         (input_scrub_push): Adjust.
4563         (input_scrub_begin): Adjust.
4564         (as_where): Adjust.
4565         * input-scrub.c (input_scrub_new_file): Make file name argument const.
4566         (input_scrub_include_file): Likewise.
4567         (new_logical_line_flags): Likewise.
4568         (new_logical_line): Likewise.
4569         * as.h: Adjust.
4570         * frags.h (struct frag): Change type of fr_file to const char *.
4571         * expr.c (expr_symbol_where): Change type of file argument to
4572         const char **.
4573         * expr.h (expr_symbol_where): Likewise.
4574         * config/tc-i370.c (md_apply_fix): adjust.
4575         * config/tc-mmix.c (mmix_md_end): Likewise.
4576         * config/tc-ppc.c (md_apply_fix): Likewise.
4577         * config/tc-s390.c (md_apply_fix): Likewise.
4578         * symbols.c (report_op_error): Likewise.
4579         (resolve_symbol_value): Likewise.
4580         * config/tc-ia64.c (slot::src_file): Change type to const char *.
4581         (rsrc::file): Likewise.
4582         * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
4583         const char *.
4584         (xtensa_relax_frag): Likewise.
4585         (md_convert_frag): Likewise.
4586         (tinsn_to_slotbuf): Likewise.
4587         * expr.c (expr_symbol_line): Likewise.
4588         * macro.c (define_macro): Likewise.
4589         * macro.h (macro_struct): Likewise.
4590         * messages.c (as_show_where): Likewise.
4591         * read.c (s_macro): Likewise.
4592         * stabs.c (stabs_generate_asm_file): Likewise.
4593         (generate_asm_file): Likewise.
4594         (stabs_generate_asm_lineno): Likewise.
4595         * write.h (struct reloc_list): Likewise.
4596         * input-scrub.c (as_where): Change return type to const char *.
4597         * as.h (as_wheree): Adjust.
4598
4599 2016-02-21  H.J. Lu  <hongjiu.lu@intel.com>
4600
4601         * write.c (compress_debug): Move BFD compression bits setting
4602         to ...
4603         (write_object_file): Here.
4604
4605 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
4606
4607         * config/tc-i386.c (register_number): Check RegVRex.
4608         * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
4609         with %zmm19 and %zmm3.
4610         * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
4611         * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
4612
4613 2016-02-19  Matthew Wahab  <matthew.wahab@arm.com>
4614             Jiong Wang  <jiong.wang@arm.com>
4615
4616         * config/tc-arm.c (arm_ext_fp16): New.
4617         (arm_extensions): New entry for "fp16".
4618
4619 2016-02-19  Nick Clifton  <nickc@redhat.com>
4620
4621         PR 19630
4622         * read.c (read_a_source_file): Check for assemble_one returning
4623         with input_line_pointer set to NULL.
4624
4625 2016-02-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4626
4627         * listing.c (rebuffer_line): Change return type to void.
4628
4629         * symbols.c (decode_local_label_name): Make type a const char *.
4630         * listing.c (print_source): Make type of p const char *.
4631         (print_line): Make type of string const char *.
4632         (buffer_line): Return const char *.
4633         (title): Make type const char *.
4634         (subtitle): Likewise.
4635         (listing_listing): Make type of p const char *.
4636         * messages.c (as_internal_value_out_of_range): Make type of prefix
4637         const char *.
4638         * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
4639         and string const char *.
4640         * read.c (_bfd_rel): Make type of name const char *.
4641         * app.c (out_string): Change type to const char *.
4642         (struct app_save::out_string): Likewise.
4643
4644 2016-02-18  Dan Gisselquist  <dgisselq@verizon.net>
4645             Nick Clifton  <nickc@redhat.com>
4646
4647         * read.c (finish_bundle): Avoid recording a negative alignment.
4648         (do_align): Use unsigned values for n, len and max.  Only create
4649         a frag if the alignment requirement is greater than the minimum
4650         byte alignment.  Avoid recording a negative alignment.
4651         (s_align): Use unsigned values where appropriate.
4652         (bss_alloc): Use an unsigned value for the alignment.
4653         (sizeof_sleb128): Add a comment noting that we encode one octet
4654         per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
4655         (emit_leb129_expr): Abort if the emitted encoding was longer than
4656         expected.
4657         * read.h (output_leb128): Update prototype.
4658         (sizeof_leb128): Update prototype.
4659         (bss_alloc): Update prototype.
4660         * write.c (record_alignment): Use an unsigned value for the
4661         alignment.  Do not record alignments less than the minimum
4662         alignment for a byte.
4663         * write.h (record_alignment): Update prototype.
4664
4665 2016-02-17  Max Filippov  <jcmvbkbc@gmail.com>
4666
4667         * config/tc-xtensa.c (xtensa_move_literals): Fix check for
4668         .init.literal/.fini.literal section name.
4669         * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
4670         list of xtensa tests.
4671         * testsuite/gas/xtensa/init-fini-literals.d: New file:
4672         init-fini-literals test result patterns.
4673         * testsuite/gas/xtensa/init-fini-literals.s: New file:
4674         init-fini-literals test.
4675
4676 2016-02-17  Nick Clifton  <nickc@redhat.com>
4677
4678         * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
4679         devices.csv file as of March 2016.
4680
4681 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
4682
4683         * config/tc-arc.c (tc_arc_frame_initial_instructions): New
4684         function.
4685         (tc_arc_regname_to_dw2regnum): Likewise.
4686         * config/tc-arc.h (TARGET_USE_CFIPOP): Define
4687         (tc_cfi_frame_initial_instructions): Likewise.
4688         (tc_regname_to_dw2regnum): Likewise.
4689         * testsuite/gas/cfi/cfi-arc-1.d: New file.
4690         * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
4691         * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
4692
4693 2016-02-16  Trevor Saunders  <tbsaunde@tbsaunde.org>
4694
4695         * doc/internals.texi (S_IS_EXTERN): Remove.
4696
4697 2016-02-16  Nick Clifton  <nickc@redhat.com>
4698
4699         * doc/as.texinfo (Section): Fix up texinfo snafus in previous
4700         update.
4701
4702 2016-02-16  Renlin Li  <renlin.li@arm.com>
4703
4704         PR gas/19620
4705         * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
4706         * testsuite/gas/aarch64/movw_label.d: New.
4707         * testsuite/gas/aarch64/movw_label.s: New.
4708
4709 2016-02-15  Vinay Kumar G. <Vinay.G@kpit.com>
4710
4711         PR gas/19556
4712         * config/rx-parse.y (MOV):  Opcode generation for index
4713         register addressing mode.
4714         * testsuite/gas/rx/rx.exp: Updated for new testcase.
4715         * testsuite/gas/rx/pr19665.s: New file.
4716         * testsuite/gas/rx/pr19665.s: New file.
4717         * testsuite/gas/rx/mov.d: Update expected output.
4718
4719 2016-02-15  Nick Clifton  <nickc@redhat.com>
4720
4721         * doc/as.texinfo (.section): Document that numeric values can now
4722         be used for the flags and type fields of the ELF target's .section
4723         directive.  Add notes about the restrictions on setting flags and
4724         types.
4725         * config/obj-elf.c (obj_elf_change_section): Allow known sections
4726         to be given processor specific section types.  Allow processor and
4727         application specific flags of a section to be set after
4728         definition.
4729         (obj_elf_parse_section_letters): Handle parsing numeric values.
4730         (obj_elf_section_type): Handle parsing numeric values.
4731         (obj_elf_section): Allow numeric type values.
4732         * config/obj-elf.h (obj_elf_change_section): Update prototype.
4733         * testsuite/gas/elf/section10.d: New test.
4734         * testsuite/gas/elf/section10.s: Source file for new test.
4735         * testsuite/gas/elf/elf.exp: Run the new test.
4736         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
4737         the description of the flags produced by readelf.
4738         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
4739         * NEWS: Mention the new feature.
4740
4741 2016-02-11  Nick Clifton  <nickc@redhat.com>
4742
4743         PR gas/19614
4744         * dw2gencfi.c (cfi_sections_set): Delay setting this variable
4745         until it is actually used.
4746         (cfi_set_sections): Set cfi_sections_set to true.
4747         (dot_cfi_startproc): Likewise.
4748         (dot_cfi_endproc): Likewise.
4749         (dot_cfi_fde_data): Likewise.
4750         (cfi_finish): Likewise.
4751         (dot_cfi_sections): Do not set cfi_sections_set.
4752         * doc/as.texinfo (.cfi_sections): Note that targets can provide
4753         their own cfi section name.  Also note that the directive can be
4754         reissued provided that CFI generation has not started.
4755         * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
4756         .cfi_endproc directives so that the redefinition of .cfi_sections
4757         will trigger the generation of the error message.
4758         * testsuite/gas/mips/compact-eh-err2.l: Update expected line
4759         number of error message.
4760
4761 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
4762             Janek van Oirschot <jvanoirs@synopsys.com>
4763
4764         * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
4765         (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
4766         Define.
4767         (arc_flags, arc_relax_type): New structure.
4768         * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
4769         (RELAX_TABLE_ENTRY_MAX): New define.
4770         (relaxation_state, md_relax_table, arc_relaxable_insns)
4771         (arc_num_relaxable_ins): New variable.
4772         (rlx_operand_type, arc_rlx_types): New enums.
4773         (arc_relaxable_ins): New structure.
4774         (OPTION_RELAX): New option.
4775         (arc_insn): New relax member.
4776         (arc_flags): Remove.
4777         (relax_insn_p): New function.
4778         (apply_fixups): Likewise.
4779         (relaxable_operand): Likewise.
4780         (may_relax_expr): Likewise.
4781         (relaxable_flag): Likewise.
4782         (arc_pcrel_adjust): Likewise.
4783         (md_estimate_size_before_relax): Implement.
4784         (md_convert_frag): Likewise.
4785         (md_parse_option): Handle new mrelax option.
4786         (md_show_usage): Likewise.
4787         (assemble_insn): Set relax member.
4788         (emit_insn0): New function.
4789         (emit_insn1): Likewise.
4790         (emit_insn): Handle relaxation case.
4791         * NEWS: Mention the new relaxation option.
4792         * doc/c-arc.texi (ARC Options): Document new mrelax option.
4793         * doc/as.texinfo (Target ARC Options): Likewise.
4794         * testsuite/gas/arc/relax-avoid1.d: New file.
4795         * testsuite/gas/arc/relax-avoid1.s: Likewise.
4796         * testsuite/gas/arc/relax-avoid2.d: Likewise.
4797         * testsuite/gas/arc/relax-avoid2.s: Likewise.
4798         * testsuite/gas/arc/relax-avoid3.d: Likewise.
4799         * testsuite/gas/arc/relax-avoid3.s: Likewise.
4800         * testsuite/gas/arc/relax-b.d: Likewise.
4801         * testsuite/gas/arc/relax-b.s: Likewise.
4802
4803 2016-02-08  Nick Clifton  <nickc@redhat.com>
4804
4805         * config/tc-ia64.c (dot_prologue): Fix formatting.
4806
4807 2016-02-04  Nick Clifton  <nickc@redhat.com>
4808
4809         * config/obj-elf.c (obj_elf_change_section): Remove support for
4810         ARM NOREAD sections.
4811         * config/tc-arm.c (arm_elf_section_letter): Delete.
4812         * config/tc-arm.h (md_elf_section_letter): Delete.
4813         * doc/c-arm.texi (ARM Section Attribute): Delete section.
4814         * testsuite/gas/arm/section-execute-only.d: Delete.
4815         * testsuite/gas/arm/section-execute-only.s: Delete.
4816
4817 2016-02-04  Nick Clifton  <nickc@redhat.com>
4818
4819         PR target/19561
4820         * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
4821         to handle encoding of RRUX instruction.
4822         * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
4823         shift instructions.
4824         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
4825
4826 2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
4827
4828         * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
4829         substitutions for BFD_RELOC_* as unsigned.
4830         * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
4831         * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
4832         * testsuite/gas/xtensa/loc.s: New file: loc test.
4833
4834 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
4835
4836         * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
4837
4838 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4839
4840         PR gas/19520
4841         * NEWS: Mention new command line option -mrelax-relocations and
4842         new configure option --enable-x86-relax-relocations for x86
4843         target.
4844         * config.in: Regenerated.
4845         * configure.ac: Add --enable-x86-relax-relocations.
4846         (ac_default_x86_relax_relocations): New.  Default to 1 except
4847         for x86 Solaris targets older than Solaris 12.
4848         (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
4849         * configure: Likewise.
4850         * config/tc-i386.c (generate_relax_relocations): New.
4851         (OPTION_MRELAX_RELOCATIONS): Likewise.
4852         (output_disp): Don't generate relax relocations if
4853         generate_relax_relocations is 0.
4854         (md_longopts): Add -mrelax-relocations.
4855         (md_show_usage): Likewise.
4856         (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
4857         * doc/c-i386.texi: Document -mrelax-relocations=.
4858         * testsuite/gas/i386/got-no-relax.d: New file.
4859         * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
4860         * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
4861         * testsuite/gas/i386/localpic.d: Likewise.
4862         * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
4863         * testsuite/gas/i386/reloc32.d: Likewise.
4864         * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
4865         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
4866         * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
4867         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
4868         * testsuite/gas/i386/i386.exp: Run got-no-relax and
4869         x86-64-gotpcrel-no-relax.
4870
4871 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4872
4873         * NEWS: Mention new command line option -mfence-as-lock-add=yes
4874         for x86 target.
4875
4876 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4877
4878         * NEWS: Remove duplicated marker for 2.26.
4879
4880 2016-02-02  Renlin Li  <renlin.li@arm.com>
4881
4882         * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
4883
4884 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4885
4886         * testsuite/gas/ip2k/allinsn.d: New file.
4887         * testsuite/gas/ip2k/allinsn.s: New file.
4888         * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
4889
4890 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4891
4892         * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
4893         some load instructions.
4894         * testsuite/gas/epiphany/allinsn.d: Likewise.
4895         * testsuite/gas/epiphany/regression.d: Likewise.
4896
4897 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4898
4899         * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
4900         suffixes from instruction mnemonics in expected output.
4901         * testsuite/gas/epiphany/allinsn.d: Likewise.
4902         * testsuite/gas/epiphany/regression.d: Likewise.
4903         * testsuite/gas/epiphany/sample.d: Likewise.
4904
4905 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4906
4907         * testsuite/gas/epiphany/addr-syntax.d: Update expected register
4908         names.
4909         * testsuite/gas/epiphany/allinsn.d: Likewise.
4910         * testsuite/gas/epiphany/sample.d: Likewise.
4911
4912 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4913
4914         * testsuite/gas/epiphany/sample.d: Update expected output.
4915
4916 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
4917
4918         * config/tc-arc.c (md_apply_fix): Allow addendum.
4919         (arc_reloc_op): Allow complex expressions for tpoff.
4920         (md_apply_fix): Handle resolved TLS local symbol.
4921         * testsuite/gas/arc/tls-relocs1.d: New file.
4922         * testsuite/gas/arc/tls-relocs1.s: Likewise.
4923
4924 2016-02-01  Loria  <Loria@phantasia.org>
4925
4926         PR target/19311
4927         * config/tc-arm.c (encode_arm_immediate): Recode to improve
4928         efficiency and avoid an LLVM loop optimization bug.
4929
4930 2016-02-01  Nick Clifton  <nickc@redhat.com>
4931
4932         * config/tc-microblaze.c (parse_imm): Fix compile time warning
4933         message extending a negative 32-bit value into a larger signed
4934         value on a 32-bit host.
4935
4936 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
4937
4938         PR gas/19532
4939         * configure.ac (compressed_debug_sections): Replace == with =.
4940         * configure: Regenerated.
4941
4942 2016-01-29  Andrew Senkevich  <andrew.senkevich@intel.com>
4943             H.J. Lu  <hongjiu.lu@intel.com>
4944
4945         * config/tc-i386.c (avoid_fence): New.
4946         (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
4947         is true.
4948         (OPTION_FENCE_AS_LOCK_ADD): New.
4949         (md_longopts): Add -mfence-as-lock-add.
4950         (md_parse_option): Handle -mfence-as-lock-add.
4951         (md_show_usage): Add -mfence-as-lock-add=[no|yes].
4952         * doc/c-i386.texi (-mfence-as-lock-add): Document.
4953         * testsuite/gas/i386/i386.exp: Run new tests.
4954         * testsuite/gas/i386/fence-as-lock-add.s: New.
4955         * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
4956         * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
4957         * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
4958         * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
4959
4960 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
4961
4962         * configure.ac (compressed_debug_sections): Remove trailing `]'.
4963         * configure: Regenerated.
4964
4965 2016-01-25  H.J. Lu  <hongjiu.lu@intel.com>
4966
4967         * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
4968         (OPTION_MOMIT_LOCK_PREFIX): This.
4969         (md_longopts): Updated.
4970         (md_parse_option): Likewise.
4971
4972 2016-01-25  Catherine Moore  <clm@codesourcery.com>
4973
4974         * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
4975         if abicalls are in effect.
4976         * testsuite/gas/mips/sdata-gp.s: New test.
4977         * testsuite/gas/mips/sdata-gp.d: New expected output
4978         * testsuite/gas/mips/mips.exp: Run new test.
4979
4980 2016-01-25  Renlin Li  <renlin.li@arm.com>
4981
4982         * testsuite/gas/arm/thumb2_it_search.d: New.
4983         * testsuite/gas/arm/thumb2_it_search.s: New.
4984
4985 2016-01-21  Nick Clifton  <nickc@redhat.com>
4986
4987         PR gas/19454
4988         * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
4989         with arm-netbsdelf target.
4990         * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
4991
4992 2016-01-20  Nick Clifton  <nickc@redhat.com>
4993
4994         PR 19456
4995         * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
4996         * testsuite/gas/arm/blx-bl-convert.d
4997         * testsuite/gas/arm/plt-1.d: Likewise.
4998         * testsuite/gas/arm/reloc-bad.d: Likewise.
4999         * testsuite/gas/arm/thumb-w-good.d: Likewise.
5000         * testsuite/gas/arm/thumb2_pool.d: Likewise.
5001         * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
5002         * testsuite/gas/arm/tls_vxworks.d: Update expected output.
5003
5004         PR 19499
5005         * doc/as.texinfo (Errors): Correct documentation describing the
5006         interaction of .file and .line with warning and error messages.
5007
5008         PR 19458
5009         * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
5010         * testsuite/gas/arm/archv8m-main.d: Likewise.
5011         * testsuite/gas/arm/archv8m-base.d: Likewise.
5012
5013 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
5014
5015         * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
5016         * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
5017         * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
5018
5019 2016-01-20  Mickael Guene  <mickael.guene@st.com>
5020             Terry Guo  <terry.guo@arm.com>
5021
5022         * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
5023         SHF_ARM_NOREAD section flag.
5024         * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
5025         handle letter 'y'.
5026         (arm_elf_section_letter) : Declare it.
5027         * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
5028         SHF_ARM_NOREAD section flag.
5029         * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
5030
5031         * testsuite/gas/arm/section-execute-only.s: New test case.
5032         * testsuite/gas/arm/section-execute-only.d: Expected output.
5033
5034 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
5035
5036         * config/tc-mips.c (micromips_insn_length): Remove the mention
5037         of 48-bit microMIPS instructions.
5038
5039 2016-01-18  Alan Modra  <amodra@gmail.com>
5040
5041         * configure: Regenerate.
5042
5043 2016-01-17  Alan Modra  <amodra@gmail.com>
5044
5045         * configure: Regenerate.
5046
5047 2016-01-17  Alan Modra  <amodra@gmail.com>
5048
5049         * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
5050
5051 2016-01-14  Nick Clifton  <nickc@redhat.com>
5052
5053         * testsuite/gas/rl78/sp-relative-movw.s: New test.
5054         * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
5055         * testsuite/gas/rl78/rl78.exp: Run the new test.
5056
5057 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
5058
5059         * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
5060         * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
5061
5062 2016-01-13  Maciej W. Rozycki  <macro@imgtec.com>
5063
5064         * config/tc-nios2.c (output_movia): Preset `code' to 0.
5065
5066 2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
5067
5068         * config/tc-h8300.c (get_operand): Remove spurious condition in
5069         test for closing parenthesis.
5070
5071 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
5072
5073         * config/tc-arm.c (arm_ext_v8_2): New.
5074         (insns): Add "esb".
5075         * testsuite/gas/arm/armv8_2-a.d: New.
5076         * testsuite/gas/arm/armv8_2-a.s: New.
5077
5078 2016-01-12  Alan Modra  <amodra@gmail.com>
5079
5080         * testsuite/gas/ppc/vsx3.d: Accept nop padding.
5081
5082 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
5083
5084         * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
5085         xvcmpnesp, xvcmpnesp.>: Delete tests.
5086         * testsuite/gas/ppc/power9.s: Likewise.
5087         * testsuite/gas/ppc/vsx3.d: Likewise.
5088         * testsuite/gas/ppc/vsx3.s: Likewise.
5089
5090 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
5091
5092         PR gas/13050
5093         * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
5094         * testsuite/gas/m68k/p13050-1.s: New file.
5095         * testsuite/gas/m68k/p13050-2.d: New file.
5096         * testsuite/gas/m68k/p13050-2.s: New file.
5097
5098 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
5099
5100         * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
5101         * testsuite/gas/arc/add.d: Likewise.
5102         * testsuite/gas/arc/and.d: Likewise.
5103         * testsuite/gas/arc/asl.d: Likewise.
5104         * testsuite/gas/arc/asr.d: Likewise.
5105         * testsuite/gas/arc/bic.d: Likewise.
5106         * testsuite/gas/arc/extb.d: Likewise.
5107         * testsuite/gas/arc/extw.d: Likewise.
5108         * testsuite/gas/arc/j.d: Likewise.
5109         * testsuite/gas/arc/jl.d: Likewise.
5110         * testsuite/gas/arc/ld2.d: Likewise.
5111         * testsuite/gas/arc/lsr.d: Likewise.
5112         * testsuite/gas/arc/mov.d: Likewise.
5113         * testsuite/gas/arc/or.d: Likewise.
5114         * testsuite/gas/arc/pcl-relocs.d: Likewise.
5115         * testsuite/gas/arc/pcrel-relocs.d: Likewise.
5116         * testsuite/gas/arc/pic-relocs.d: Likewise.
5117         * testsuite/gas/arc/plt-relocs.d: Likewise.
5118         * testsuite/gas/arc/rlc.d: Likewise.
5119         * testsuite/gas/arc/ror.d: Likewise.
5120         * testsuite/gas/arc/rrc.d: Likewise.
5121         * testsuite/gas/arc/sbc.d: Likewise.
5122         * testsuite/gas/arc/sda-relocs.d: Likewise.
5123         * testsuite/gas/arc/sda-relocs2.d: Likewise.
5124         * testsuite/gas/arc/sexb.d: Likewise.
5125         * testsuite/gas/arc/sexw.d: Likewise.
5126         * testsuite/gas/arc/st.d: Likewise.
5127         * testsuite/gas/arc/sub.d: Likewise.
5128         * testsuite/gas/arc/tls-relocs.d: Likewise.
5129         * testsuite/gas/arc/xor.d: Likewise.
5130
5131 2016-01-01  Alan Modra  <amodra@gmail.com>
5132
5133         Update year range in copyright notice of all files.
5134
5135 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
5136 \f
5137 Copyright (C) 2016 Free Software Foundation, Inc.
5138
5139 Copying and distribution of this file, with or without modification,
5140 are permitted in any medium without royalty provided the copyright
5141 notice and this notice are preserved.
5142
5143 Local Variables:
5144 mode: change-log
5145 left-margin: 8
5146 fill-column: 74
5147 version-control: never
5148 End: