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