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