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