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