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