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