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