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