Enable VREX for AVX512 directives
[external/binutils.git] / gas / ChangeLog
1 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR gas/20141
4         * testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
5         * testsuite/gas/i386/x86-64-pr20141.d: New file.
6         * testsuite/gas/i386/x86-64-pr20141.s: Likewise.
7
8 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9
10         * config/tc-i386.c (arch_entry): Remove negated.
11         (noarch_entry): New struct.
12         (cpu_arch): Updated.  Remove .no87, .nommx, .nosse and .noavx.
13         (cpu_noarch): New.
14         (set_cpu_arch): Check cpu_noarch after cpu_arch.
15         (md_parse_option): Allow -march=+nosse.  Check cpu_noarch after
16         cpu_arch.
17         (output_message): New function.
18         (show_arch): Use it.  Handle cpu_noarch.
19         * testsuite/gas/i386/i386.exp: Run nommx-1, nommx-2, nommx-3,
20         nosse-1, nosse-2, nosse-3, noavx-1 and noavx-2.
21         * testsuite/gas/i386/noavx-1.l: New file.
22         * testsuite/gas/i386/noavx-1.s: Likewise.
23         * testsuite/gas/i386/noavx-2.s: Likewise.
24         * testsuite/gas/i386/noavx-2.l: Likewise.
25         * testsuite/gas/i386/nommx-1.s: Likewise.
26         * testsuite/gas/i386/nommx-1.l: Likewise.
27         * testsuite/gas/i386/nommx-2.s: Likewise.
28         * testsuite/gas/i386/nommx-2.l: Likewise.
29         * testsuite/gas/i386/nommx-3.s: Likewise.
30         * testsuite/gas/i386/nommx-3.l: Likewise.
31         * testsuite/gas/i386/nosse-1.s: Likewise.
32         * testsuite/gas/i386/nosse-1.l: Likewise.
33         * testsuite/gas/i386/nosse-2.s: Likewise.
34         * testsuite/gas/i386/nosse-2.l: Likewise.
35         * testsuite/gas/i386/nosse-3.s: Likewise.
36         * testsuite/gas/i386/nosse-3.l: Likewise.
37
38 2016-05-25  Chua Zheng Leong  <chuazl@comp.nus.edu.sg>
39
40         PR target/20067
41         * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64
42         instruction if supported by the currently selected fpu variant.
43         * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR.
44         * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly.
45
46 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
47
48         * config/tc-mips.c (mips_fix_adjustable): Also return 0 for
49         jump relocations against MIPS16 or microMIPS symbols on RELA
50         targets.
51         * testsuite/gas/mips/jalx-local.d: New test.
52         * testsuite/gas/mips/jalx-local-n32.d: New test.
53         * testsuite/gas/mips/jalx-local-n64.d: New test.
54         * testsuite/gas/mips/jalx-local.s: New test source.
55         * testsuite/gas/mips/mips.exp: Run the new tests.
56
57 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
58
59         * config/tc-mips.c (md_apply_fix)
60         <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
61         code accordingly.
62
63 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
64
65         * config/tc-xtensa.c (struct suffix_reloc_map): Change type of field
66         operator to operatorT.
67         (map_suffix_reloc_to_operator): Change return type to operatorT.
68
69 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
70
71         * config/tc-d30v.c (find_format): Change type of X_op to operatorT.
72
73 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
74
75         * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
76         handler_charp to const char *.
77
78 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
79
80         * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
81         (ft32_target_format): Likewise.
82         (TARGET_FORMAT): Adjust.
83
84 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
85
86         * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
87         (ia64_frob_label): Likewise.
88
89 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
90
91         * config/tc-cr16.c (check_range): Make type of retval op_err.
92         * config/tc-crx.c: Likewise.
93
94 2016-05-23  Claudiu Zissulescu  <claziss@synopsys.com>
95
96         * config/tc-arc.c (md_begin): Add XY registers.
97         (cpu_types): Code density is default off for ARC EM.
98
99 2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>
100
101         * config/tc-arc.c (attributes_t): Renamed attribute class to
102         attr_class.
103         (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
104
105 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
106
107         * configuse.tgt: Add entry for arm-phoenix.
108
109 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
110
111         * config/tc-tic54x.c (tic54x_sect): simplify string creation.
112
113 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
114
115         * config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
116
117 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
118
119         * config/tc-tic54x.c (tic54x_mmregs): Adjust.
120         (md_begin): Likewise.
121         (encode_condition): Likewise.
122         (encode_cc3): Likewise.
123         (encode_cc2): Likewise.
124         (encode_operand): Likewise.
125         (tic54x_undefined_symbol): Likewise.
126
127 2016-05-20  Matthew Fortune  <matthew.fortune@imgtec.com>
128
129         * config/tc-mips.c (mips_cpu_info_table): Update comment.  Add
130         p6600 entry.
131         * doc/c-mips.texi: Document p6600 -march option.
132
133 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
134
135         PR gas/19600
136         * config/tc-i386.c (md_apply_fix): Preserve addend for
137         BFD_RELOC_386_GOT32 and BFD_RELOC_X86_64_GOT32.
138         * testsuite/gas/i386/addend.d: New file.
139         * testsuite/gas/i386/addend.s: Likewise.
140         * testsuite/gas/i386/x86-64-addend.d: Likewise.
141         * testsuite/gas/i386/x86-64-addend.s: Likewise.
142         * testsuite/gas/i386/i386.exp: Run addend and x86-64-addend.
143         * testsuite/gas/i386/reloc32.d: Updated.
144
145 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
146
147         * config/tc-mips.c (append_insn): Correct the encoding of a
148         constant argument for microMIPS JALX.
149         (tc_gen_reloc): Correct the encoding of an in-place addend for
150         microMIPS JALX.
151         * testsuite/gas/mips/jalx-addend.d: New test.
152         * testsuite/gas/mips/jalx-addend-n32.d: New test.
153         * testsuite/gas/mips/jalx-addend-n64.d: New test.
154         * testsuite/gas/mips/jalx-imm.d: New test.
155         * testsuite/gas/mips/jalx-imm-n32.d: New test.
156         * testsuite/gas/mips/jalx-imm-n64.d: New test.
157         * testsuite/gas/mips/jalx-addend.s: New test source.
158         * testsuite/gas/mips/jalx-imm.s: New test source.
159         * testsuite/gas/mips/mips.exp: Run the new tests.
160
161 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
162
163         * config/tc-mips.c: Correct tab-after-space formatting mistakes
164         throughout.
165
166 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
167
168         * config/tc-arc.c (find_opcode_match): Remove casting away of
169         const.
170         * config/tc-arc.h (struct arc_flags): Make flgp field const.
171
172 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
173
174         * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
175         appropriate.
176         (md_convert_frag): Likewise.
177
178 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
179
180         * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
181         cached opcode to NULL when we reach a non-matching opcode.
182         * testsuite/gas/arc/asm-errors-2.d: New file.
183         * testsuite/gas/arc/asm-errors-2.err: New file.
184         * testsuite/gas/arc/asm-errors-2.s: New file.
185
186 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
187
188         * config/tc-arc.c (tokenize_arguments): Add checks for array
189         overflow.
190         * testsuite/gas/arc/asm-errors.s: Addition test line added.
191         * testsuite/gas/arc/asm-errors.err: Update expected results.
192
193 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
194
195         * config/tc-rx.c (struct cpu_type): Change the type of a field from
196         int to enum rx_cpu_types.
197
198 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
199
200         * config/tc-dlx.c (struct machine_it): change the type of a field from
201         int to bfd_reloc_code_real_type.
202         * config/tc-tic4x.c: Likewise.
203
204 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
205
206         * config/tc-v850.c (v850_target_arch): change type to enum
207         bfd_architecture.
208         * config/tc-v850.h (v850_target_arch): Likewise.
209
210 2016-05-18  Alan Modra  <amodra@gmail.com>
211
212         * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
213         allowed negative range.
214         * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
215         * testsuite/gas/ppc/power9.d: Update.
216
217 2016-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
218
219         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
220         disassembling and stop skipping targets.
221         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
222         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
223         * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
224         instruction for targets that have stronger alignment requirement.
225         * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
226         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
227         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
228         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
229         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
230         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
231         * testsuite/gas/arm/archv8m-main.d: Likewise.
232         * testsuite/gas/arm/archv8m.s: Add label.
233         * testsuite/gas/arm/archv8m-cmse.s: Likewise.
234         * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
235         * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
236
237 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
238
239         * config/tc-m32r.c (mach_table): Make static and const.
240
241 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
242
243         * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
244         definition.
245
246 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
247
248         * config/tc-mn10300.c (md_begin): set linkrelax here instead of
249         defining it.
250         * config/tc-msp430.c (md_begin): Likewise.
251
252 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
253
254         * config/tc-m68hc11.c (fixup8): Change variables type from int to
255         bfd_reloc_code_real_type where appropriate.
256         (fixup16): Likewise.
257         (fixup8_xg): Likewise.
258
259 2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
260
261         * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
262
263 2016-05-13  Peter Bergner <bergner@vnet.ibm.com>
264
265         * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
266         * testsuite/gas/ppc/power9.s: Likewise.
267
268 2016-05-13  Alan Modra  <amodra@gmail.com>
269
270         * config/obj-coff.c (weak_uniquify): Delete unused var.
271
272 2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
273
274         * app.c (app_push): Use XNEW and related macros.
275         * as.c (parse_args): Likewise.
276         * cgen.c (make_right_shifted_expr): Likewise.
277         (gas_cgen_tc_gen_reloc): Likewise.
278         * config/bfin-defs.h: Likewise.
279         * config/bfin-parse.y: Likewise.
280         * config/obj-coff.c (stack_init): Likewise.
281         (stack_push): Likewise.
282         (coff_obj_symbol_new_hook): Likewise.
283         (coff_obj_symbol_clone_hook): Likewise.
284         (add_lineno): Likewise.
285         (coff_frob_symbol): Likewise.
286         * config/obj-elf.c (obj_elf_section_name): Likewise.
287         (build_group_lists): Likewise.
288         * config/obj-evax.c (evax_symbol_new_hook): Likewise.
289         * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
290         * config/tc-aarch64.c (insert_reg_alias): Likewise.
291         (find_or_make_literal_pool): Likewise.
292         (add_to_lit_pool): Likewise.
293         (fill_instruction_hash_table): Likewise.
294         * config/tc-alpha.c (load_expression): Likewise.
295         (emit_jsrjmp): Likewise.
296         (s_alpha_ent): Likewise.
297         (s_alpha_end): Likewise.
298         (s_alpha_linkage): Likewise.
299         (md_begin): Likewise.
300         (tc_gen_reloc): Likewise.
301         * config/tc-arc.c (arc_insert_opcode): Likewise.
302         (arc_extcorereg): Likewise.
303         * config/tc-bfin.c: Likewise.
304         * config/tc-cr16.c: Likewise.
305         * config/tc-cris.c: Likewise.
306         * config/tc-crx.c (preprocess_reglist): Likewise.
307         * config/tc-d10v.c: Likewise.
308         * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
309         (frv_tomcat_shuffle): Likewise.
310         * config/tc-h8300.c: Likewise.
311         * config/tc-i370.c (i370_macro): Likewise.
312         * config/tc-i386.c (lex_got): Likewise.
313         (md_parse_option): Likewise.
314         * config/tc-ia64.c (alloc_record): Likewise.
315         (set_imask): Likewise.
316         (save_prologue_count): Likewise.
317         (dot_proc): Likewise.
318         (dot_endp): Likewise.
319         (ia64_frob_label): Likewise.
320         (add_qp_imply): Likewise.
321         (add_qp_mutex): Likewise.
322         (mark_resource): Likewise.
323         (dot_alias): Likewise.
324         * config/tc-m68hc11.c: Likewise.
325         * config/tc-m68k.c (m68k_frob_label): Likewise.
326         (s_save): Likewise.
327         (mri_control_label): Likewise.
328         (push_mri_control): Likewise.
329         (build_mri_control_operand): Likewise.
330         (s_mri_else): Likewise.
331         (s_mri_break): Likewise.
332         (s_mri_next): Likewise.
333         (s_mri_for): Likewise.
334         (s_mri_endw): Likewise.
335         * config/tc-metag.c (create_mnemonic_htab): Likewise.
336         * config/tc-microblaze.c: Likewise.
337         * config/tc-mmix.c (s_loc): Likewise.
338         * config/tc-nds32.c (nds32_relax_hint): Likewise.
339         * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
340         * config/tc-rl78.c: Likewise.
341         * config/tc-rx.c (rx_include): Likewise.
342         * config/tc-sh.c: Likewise.
343         * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
344         * config/tc-sparc.c: Likewise.
345         * config/tc-spu.c: Likewise.
346         * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
347         (tic6x_start_unwind_section): Likewise.
348         * config/tc-tilegx.c: Likewise.
349         * config/tc-tilepro.c: Likewise.
350         * config/tc-v850.c: Likewise.
351         * config/tc-visium.c: Likewise.
352         * config/tc-xgate.c: Likewise.
353         * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
354         (new_resource_table): Likewise.
355         (resize_resource_table): Likewise.
356         (xtensa_create_trampoline_frag): Likewise.
357         (xtensa_maybe_create_literal_pool_frag): Likewise.
358         (cache_literal_section): Likewise.
359         * config/xtensa-relax.c (append_transition): Likewise.
360         (append_condition): Likewise.
361         (append_value_condition): Likewise.
362         (append_constant_value_condition): Likewise.
363         (append_literal_op): Likewise.
364         (append_label_op): Likewise.
365         (append_constant_op): Likewise.
366         (append_field_op): Likewise.
367         (append_user_fn_field_op): Likewise.
368         (enter_opname_n): Likewise.
369         (enter_opname): Likewise.
370         (split_string): Likewise.
371         (parse_insn_templ): Likewise.
372         (clone_req_or_option_list): Likewise.
373         (clone_req_option_list): Likewise.
374         (parse_option_cond): Likewise.
375         (parse_insn_pattern): Likewise.
376         (parse_insn_repl): Likewise.
377         (build_transition): Likewise.
378         (build_transition_table): Likewise.
379         * dw2gencfi.c (alloc_fde_entry): Likewise.
380         (alloc_cfi_insn_data): Likewise.
381         (cfi_add_CFA_remember_state): Likewise.
382         (dot_cfi_escape): Likewise.
383         (dot_cfi_fde_data): Likewise.
384         (select_cie_for_fde): Likewise.
385         * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
386         * ecoff.c (ecoff_add_bytes): Likewise.
387         (ecoff_build_debug): Likewise.
388         * input-scrub.c (input_scrub_push): Likewise.
389         (input_scrub_begin): Likewise.
390         (input_scrub_next_buffer): Likewise.
391         * itbl-ops.c (append_insns_as_macros): Likewise.
392         (alloc_entry): Likewise.
393         (alloc_field): Likewise.
394         * listing.c (listing_newline): Likewise.
395         (listing_listing): Likewise.
396         * macro.c (get_any_string): Likewise.
397         (delete_macro): Likewise.
398         * stabs.c (generate_asm_file): Likewise.
399         (stabs_generate_asm_lineno): Likewise.
400         * subsegs.c (subseg_change): Likewise.
401         (subseg_get): Likewise.
402         * symbols.c (define_dollar_label): Likewise.
403         (symbol_relc_make_sym): Likewise.
404         * write.c (write_relocs): Likewise.
405
406 2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
407
408         * config/obj-coff.c (obj_coff_def): Simplify string copying.
409         (weak_name2altname): Likewise.
410         (weak_uniquify): Likewise.
411         (obj_coff_section): Likewise.
412         (obj_coff_init_stab_section): Likewise.
413         * config/obj-elf.c (obj_elf_section_name): Likewise.
414         (obj_elf_init_stab_section): Likewise.
415         * config/obj-evax.c (evax_shorten_name): Likewise.
416         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
417         * config/tc-aarch64.c (create_register_alias): Likewise.
418         * config/tc-alpha.c (load_expression): Likewise.
419         (s_alpha_file): Likewise.
420         (s_alpha_section_name): Likewise.
421         (tc_gen_reloc): Likewise.
422         * config/tc-arc.c (md_assemble): Likewise.
423         * config/tc-arm.c (create_neon_reg_alias): Likewise.
424         (start_unwind_section): Likewise.
425         * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
426         (hppa_elf_mark_end_of_function): Likewise.
427         * config/tc-nios2.c (nios2_modify_arg): Likewise.
428         (nios2_negate_arg): Likewise.
429         * config/tc-rx.c (rx_section): Likewise.
430         * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
431         * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
432         * config/tc-tic54x.c (tic54x_include): Likewise.
433         (tic54x_macro_info): Likewise.
434         (subsym_get_arg): Likewise.
435         (subsym_substitute): Likewise.
436         (tic54x_start_line_hook): Likewise.
437         * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
438         (xg_reverse_shift_count): Likewise.
439         * config/xtensa-relax.c (enter_opname_n): Likewise.
440         (split_string): Likewise.
441         * dwarf2dbg.c (get_filenum): Likewise.
442         (process_entries): Likewise.
443         * expr.c (operand): Likewise.
444         * itbl-ops.c (alloc_entry): Likewise.
445         * listing.c (listing_message): Likewise.
446         (listing_title): Likewise.
447         * macro.c (check_macro): Likewise.
448         * stabs.c (s_xstab): Likewise.
449         * symbols.c (symbol_relc_make_expr): Likewise.
450         * write.c (compress_debug): Likewise.
451
452 2016-05-12  Nick Clifton  <nickc@redhat.com>
453
454         PR target/20068
455         * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
456
457 2016-05-11  Nick Clifton  <nickc@redhat.com>
458
459         PR target/20068
460         * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
461         big endian ARM configurations.
462
463 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
464             Matthew Fortune  <matthew.fortune@imgtec.com>
465
466         * config/tc-mips.c (options): Add OPTION_DSPR3 and
467         OPTION_NO_DSPR3.
468         (md_longopts): Likewise.
469         (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
470         (mips_ases): Define availability for DSPr3.
471         (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
472         (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
473         * doc/as.texinfo: Document -mdspr3, -mno-dspr3.  Fix -mdspr2
474         formatting.
475         * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
476         .set nodspr3.  Fix -mdspr2 formatting.
477         * testsuite/gas/mips/mips32-dspr3.d: New file.
478         * testsuite/gas/mips/mips32-dspr3.s: Likewise.
479         * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
480
481 2016-05-11  Nick Clifton  <nickc@redhat.com>
482
483         PR target/20068
484         * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
485         to the pool uses O_constant.
486         * testsuite/gas/arm/pr20068.s: New test.
487         * testsuite/gas/arm/pr20068.d: Test driver.
488
489 2016-05-11  Nick Clifton  <nickc@redhat.com>
490
491         * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
492         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
493         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
494         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
495         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
496         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
497         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
498         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
499         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
500
501 2016-05-10  Alexander Fomin  <alexander.fomin@intel.com>
502
503         * testsuite/gas/i386/i386.exp: Run RDPID tests.
504         * testsuite/gas/i386/prefix.d: Adjust.
505         * testsuite/gas/i386/rdpid.s: New test.
506         * testsuite/gas/i386/rdpid.d: Ditto.
507         * testsuite/gas/i386/rdpid-intel.d: Ditto.
508         * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
509         * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
510         * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
511
512 2016-05-10  Alexander Fomin  <alexander.fomin@intel.com>
513
514         * config/tc-i386.c (cpu_arch): Add RDPID.
515         * doc/c-i386.texi: Document RDPID.
516
517 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
518
519         * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
520         set branch type of a symbol.
521
522 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
523
524         * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
525         * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
526         instructions.
527         (arm_extensions): Add dsp extension for ARMv8-M Mainline.
528         (aeabi_set_public_attributes): Memorize the feature bits of the
529         architecture selected for Tag_CPU_arch.  Use it to set
530         Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
531         (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
532         * testsuite/gas/arm/arch7em-bad.d: Rename to ...
533         * testsuite/gas/arm/arch7em-bad-1.d: This.
534         * testsuite/gas/arm/arch7em-bad-2.d: New file.
535         * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
536         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
537         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
538         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
539         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
540         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
541         * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
542
543 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
544
545         * config/tc-arm.c (struct arm_option_extension_value_table): Make
546         allowed_archs an array with 2 entries.
547         (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
548         (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
549         (arm_extensions): Use separate entries in allowed_archs when several
550         archs are allowed to use an extension and change ARCH_ANY in
551         ARM_ARCH_NONE in allowed_archs.
552         (arm_parse_extension): Check that, for each allowed_archs entry, all
553         bits are set in the current architecture, ignoring ARM_ANY entries.
554         (s_arm_arch_extension): Likewise.
555
556 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
557
558         * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
559         (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
560         (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
561         shared with a non M profile architecture.
562         (do_rn): New function.
563         (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
564         than arm_ext_v8m.
565         (v7m_psrs): Add ARMv8-M security extensions new special registers.
566         (insns): Add ARMv8-M Security Extensions instructions.
567         (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
568         arm_ext_v8m_m to decide the profile and the Thumb ISA.
569         * testsuite/gas/arm/archv8m-cmse.s: New file.
570         * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
571         * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
572         * testsuite/gas/arm/any-cmse.d: Likewise.
573         * testsuite/gas/arm/any-cmse-main.d: Likewise.
574         * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
575         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
576         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
577         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
578         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
579
580 2016-05-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
581
582         * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
583         * testsuite/gas/sparc/sparc5vis4.d: Likewise.
584
585 2016-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
586
587         * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
588         (fpu_arch_vfp_v3): Likewise.
589         (fpu_arch_neon_v1): Likewise.
590         (arm_arch_full): Likewise.
591         (parse_neon_el_struct_list): Initialize fields of firsttype.
592
593 2016-05-03  Claudiu Zissulescu  <claziss@synopsys.com>
594
595         * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
596         (arc_extinsn): Handle new introduced syntax.
597         * testsuite/gas/arc/textinsn1op.d: New file.
598         * testsuite/gas/arc/textinsn1op.s: Likewise.
599         * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
600
601 2016-05-03  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
602
603         * testsuite/gas/lns/lns.exp: Add avr to list of targets using
604         DW_LNS_fixed_advance_pc.
605
606 2016-04-27  Alan Modra  <amodra@gmail.com>
607
608         * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
609         (xmemdup0): New inline function.
610
611 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
612
613         * config/tc-mips.c (code_option_type): New enum.
614         (parse_code_option): Return status indicating option type.
615         (s_mipsset): Update `parse_code_option' call site accordingly.
616         Always set register sizes from the ISA with ISA overrides.
617         (s_module): Update `parse_code_option' call site.
618         * testsuite/gas/mips/isa-override-1.d: New test.
619         * testsuite/gas/mips/micromips@isa-override-1.d: New test.
620         * testsuite/gas/mips/mips1@isa-override-1.d: New test.
621         * testsuite/gas/mips/mips2@isa-override-1.d: New test.
622         * testsuite/gas/mips/mips32@isa-override-1.d: New test.
623         * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
624         * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
625         * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
626         * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
627         * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
628         * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
629         * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
630         * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
631         * testsuite/gas/mips/r3000@isa-override-1.d: New test.
632         * testsuite/gas/mips/r3900@isa-override-1.d: New test.
633         * testsuite/gas/mips/r5900@isa-override-1.d: New test.
634         * testsuite/gas/mips/octeon@isa-override-1.d: New test.
635         * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
636         * testsuite/gas/mips/isa-override-2.l: New list test.
637         * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
638         * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
639         * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
640         * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
641         * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
642         * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
643         * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
644         * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
645         * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
646         * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
647         * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
648         output.
649         * testsuite/gas/mips/isa-override-1.s: New test source.
650         * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
651         * testsuite/gas/mips/isa-override-2.s: New test source.
652         * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
653         * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
654         * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
655         * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
656         * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
657         * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
658         * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
659         * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
660         * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
661         * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
662         * testsuite/gas/mips/mips.exp: Run the new tests.
663
664 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
665
666         * cgen.c: Likewise.
667         * config/tc-bfin.c: Likewise.
668         * config/tc-ia64.c: Likewise.
669         * config/tc-mep.c: Likewise.
670         * config/tc-metag.c: Likewise.
671         * config/tc-nios2.c: Likewise.
672         * config/tc-rl78.c: Likewise.
673
674 2016-04-20  Andrew Burgess  <andrew.burgess@embecosm.com>
675
676         * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
677         -mcpu.  Add cross reference to .cpu directive from -mcpu option.
678         (ARC Directives): Add NPS400 to .cpu directive list.
679
680 2016-04-20  Matthew Wahab  <matthew.wahab@arm.com>
681
682         * config/tc-aarch64.c (aarch64_features): Add "ras".
683         * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
684         * testsuite/gas/aarch64/armv8-ras-1.d: New.
685         * testsuite/gas/aarch64/armv8-ras-1.s: New.
686         * testsuite/gas/aarch64/illegal-ras-1.d: New.
687         * testsuite/gas/aarch64/illegal-ras-1.s: New.
688
689 2016-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
690
691         * testsuite/gas/arc/nps400-6.d: New file.
692         * testsuite/gas/arc/nps400-6.s: New file.
693
694 2016-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
695
696         * testsuite/gas/arc/nps400-4.d: New file.
697         * testsuite/gas/arc/nps400-4.s: New file.
698         * testsuite/gas/arc/nps400-5.d: New file.
699         * testsuite/gas/arc/nps400-5.s: New file.
700
701 2016-04-19  Martin Galvan  <martin.galvan@tallertechnologies.com>
702
703         * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
704         documentation.
705
706 2016-04-17  Andrew Burgess  <andrew.burgess@embecosm.com>
707
708         Revert prevous change.
709         * config/tc-arc.c (arc_option): Make .cpu directive
710         case-sensitive again.
711
712 2016-04-16  Andrew Burgess  <andrew.burgess@embecosm.com>
713
714         * config/tc-arc.c (arc_option): Make .cpu directive
715         case-insensitive.
716
717 2016-04-16  Andrew Burgess  <andrew.burgess@embecosm.com>
718
719         * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
720
721 2016-04-15  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
722
723         * config/tc-mips.c (md_begin): Remove useless assignment.
724
725 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
726
727         * Makefile.in: Regenerated with automake 1.11.6.
728         * aclocal.m4: Likewise.
729         * doc/Makefile.in: Likewise.
730
731 2016-04-15  Alan Modra  <amodra@gmail.com>
732
733         * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
734
735 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
736
737         * config/tc-nios2.c (nios2_as_options): Make file static.
738         * config/tc-ppc.c (toc_reloc_ypes): Likewise.
739         * config/tc-sparc.c (native_op_table): Likewise.
740
741 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
742
743         * config/tc-m32c.c (M32C_Macros): Remove.
744         * config/tc-msp430.c (option_numbers): Likewise.
745
746 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
747
748         * testsuite/gas/arc/nps400-3.d: New file.
749         * testsuite/gas/arc/nps400-3.s: New file.
750
751 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
752
753         * testsuite/gas/arc/add_s-err.s: Update target pattern.
754         * testsuite/gas/arc/warn.s: Likewise.
755         * testsuite/gas/elf/elf.exp: Run test for arc.
756
757 2016-04-14  Nick Clifton  <nickc@redhat.com>
758
759         PR target/19938
760         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
761         sections possibly having the SHF_STRINGS flag bit set.
762         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
763
764 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
765
766         * config/tc-arc.c (mach_type_specified_p): Change type to
767         bfd_boolean.
768         (arc_option): Set private flags when parsing cpu pseudo-op.
769         (md_parse_option): Set mach_type_specified_p to TRUE.
770
771 2016-04-13  Nick Clifton  <nickc@redhat.com>
772
773         PR target/19937
774         * testsuite/gas/v850/pr19937.s: New test.
775         * testsuite/gas/v850/pr19937.d: New test control file.
776         * testsuite/gas/v850/basic.exp: Run the new test.
777
778 2016-04-13  Maciej W. Rozycki  <macro@imgtec.com>
779             Andrew Bennett  <andrew.bennett@imgtec.com>
780
781         * config/tc-mips.c (relaxed_branch_length): Use the long
782         sequence where the target is a weak symbol.
783         (relaxed_micromips_32bit_branch_length): Likewise.
784         (relaxed_micromips_16bit_branch_length): Likewise.
785         * testsuite/gas/mips/branch-weak-1.d: New test.
786         * testsuite/gas/mips/branch-weak-2.d: New test.
787         * testsuite/gas/mips/branch-weak-3.d: New test.
788         * testsuite/gas/mips/branch-weak-4.d: New test.
789         * testsuite/gas/mips/branch-weak-5.d: New test.
790         * testsuite/gas/mips/branch-weak.l: New stderr output.
791         * testsuite/gas/mips/branch-weak.s: New test source.
792         * testsuite/gas/mips/mips.exp: Run the new tests.
793
794 2016-04-13  Maciej W. Rozycki  <macro@imgtec.com>
795
796         * config/tc-mips.c (relaxed_branch_length): Use the long
797         sequence where the distance cannot be determined.
798         (relaxed_micromips_32bit_branch_length): Likewise.
799         * testsuite/gas/mips/branch-extern-1.d: New test.
800         * testsuite/gas/mips/branch-extern-2.d: New test.
801         * testsuite/gas/mips/branch-extern-3.d: New test.
802         * testsuite/gas/mips/branch-extern-4.d: New test.
803         * testsuite/gas/mips/branch-extern.l: New stderr output.
804         * testsuite/gas/mips/branch-extern.s: New test source.
805         * testsuite/gas/mips/branch-section-1.d: New test.
806         * testsuite/gas/mips/branch-section-2.d: New test.
807         * testsuite/gas/mips/branch-section-3.d: New test.
808         * testsuite/gas/mips/branch-section-4.d: New test.
809         * testsuite/gas/mips/branch-section.l: New stderr output.
810         * testsuite/gas/mips/branch-section.s: New test source.
811         * testsuite/gas/mips/mips.exp: Run the new tests.
812
813 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
814
815         * testsuite/gas/arc/textauxregister.d: New file.
816         * testsuite/gas/arc/textauxregister.s: Likewise.
817         * testsuite/gas/arc/textcondcode.d: Likewise.
818         * testsuite/gas/arc/textcondcode.s: Likewise.
819         * testsuite/gas/arc/textcoreregister.d: Likewise.
820         * testsuite/gas/arc/textcoreregister.s: Likewise.
821         * testsuite/gas/arc/textpseudoop.d: Likewise.
822         * testsuite/gas/arc/textpseudoop.s: Likewise.
823         * testsuite/gas/arc/ld2.d: Update test.
824         * testsuite/gas/arc/st.d: Likewise.
825         * testsuite/gas/arc/taux.d: Likewise.
826         * doc/c-arc.texi (ARC Directives): Add .extCondCode,
827         .extCoreRegister and .extAuxRegister documentation.
828         * config/tc-arc.c (arc_extcorereg): New function.
829         (md_pseudo_table): Add .extCondCode, .extCoreRegister and
830         .extAuxRegister pseudo-ops.
831         (extRegister_t): New type.
832         (ext_condcode, arc_aux_hash): New global variable.
833         (find_opcode_match): Check for extensions.
834         (preprocess_operands): Likewise.
835         (md_begin): Add aux registers in a hash.
836         (assemble_insn): Update use arc_flags member.
837         (tokenize_extregister): New function.
838         (create_extcore_section): Likewise.
839         * config/tc-arc.h (arc_flags): Delete code, add flgp.
840
841 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
842
843         * testsuite/gas/arc/noargs_a7.d: New file.
844         * testsuite/gas/arc/noargs_a7.s: Likewise.
845         * testsuite/gas/arc/noargs_hs.d: Likewise.
846         * testsuite/gas/arc/noargs_hs.s: Likewise.
847
848 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
849
850         * testsuite/gas/arc/textinsn-errors.d: New File.
851         * testsuite/gas/arc/textinsn-errors.err: Likewise.
852         * testsuite/gas/arc/textinsn-errors.s: Likewise.
853         * testsuite/gas/arc/textinsn2op.d: Likewise.
854         * testsuite/gas/arc/textinsn2op.s: Likewise.
855         * testsuite/gas/arc/textinsn2op01.d: Likewise.
856         * testsuite/gas/arc/textinsn2op01.s: Likewise.
857         * testsuite/gas/arc/textinsn3op.d: Likewise.
858         * testsuite/gas/arc/textinsn3op.s: Likewise.
859         * doc/c-arc.texi (ARC Directives): Add .extInstruction
860         documentation.
861         * config/tc-arc.c (arcext_section): New variable.
862         (arc_extinsn): New function.
863         (md_pseudo_table): Add .extInstruction pseudo op.
864         (attributes_t): New type.
865         (suffixclass, syntaxclass, syntaxclassmod): New constant
866         structures.
867         (find_opcode_match): Remove arc_num_opcodes.
868         (md_begin): Likewise.
869         (tokenize_extinsn): New function.
870         (arc_set_ext_seg): Likewise.
871         (create_extinst_section): Likewise.
872
873 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
874
875         * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
876         (arc_adjust_symtab): New function.
877         * config/tc-arc.h (ARC_FLAG_AUX): Define.
878         (obj_adjust_symtab): Likewise.
879         * testsuite/gas/arc/taux.d: New file.
880         * testsuite/gas/arc/taux.s: Likewise.
881
882 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
883
884         * config/tc-mips.c (s_option): Sanitize `.option picX'
885         pseudo-op.
886         * testsuite/gas/mips/option-pic-1.d: New test.
887         * testsuite/gas/mips/option-pic-2.l: New list test.
888         * testsuite/gas/mips/option-pic-1.s: New test source.
889         * testsuite/gas/mips/option-pic-2.s: New test source.
890         * testsuite/gas/mips/mips.exp: Run the new tests.
891
892 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
893
894         * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
895         PIC.
896         * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
897         * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
898         * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
899         * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
900         * testsuite/gas/mips/mips.exp: Run the new tests.
901
902 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
903
904         * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
905
906 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
907
908         * messages.c (as_bad): Fix a typo in description.
909
910 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
911
912         * config/tc-mips.c (mips_check_options): Unify messages.
913
914 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
915
916         * config/tc-mips.c (mips_check_options): Use `opts->isa'
917         consistently.
918
919 2016-04-08  Nick Clifton  <nickc@redhat.com>
920
921         PR target/19910
922         * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
923         COFF and AOUT sparc targets.
924
925 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
926
927         * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
928         * testsuite/gas/arc/nps400-2.d: New file.
929         * testsuite/gas/arc/nps400-2.s: New file.
930
931 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
932
933         * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
934         structure.
935         (arc_opcode_hash_entry_iterator_init): New function.
936         (arc_opcode_hash_entry_iterator_next): New function.
937         (find_opcode_match): Iterate over all arc_opcode entries
938         referenced by the arc_opcode_hash_entry passed in as a parameter.
939
940 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
941
942         * config/tc-arc.c (arc_find_opcode): Now returns
943         arc_opcode_hash_entry pointer.
944         (find_opcode_match): Update argument type, extract arc_opcode from
945         incoming arc_opcode_hash_entry.
946         (find_special_case_pseudo): Update return type.
947         (find_special_case_flag): Update return type.
948         (find_special_case): Update return type.
949         (assemble_tokens): Lookup arc_opcode_hash_entry based on
950         instruction mnemonic, then use find_opcode_match to identify
951         specific arc_opcode.
952
953 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
954
955         * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
956         (arc_find_opcode): New function.
957         (find_special_case_pseudo): Use arc_find_opcode.
958         (find_special_case_flag): Likewise.
959         (assemble_tokens): Likewise.
960         (md_begin): Build hash using struct arc_opcode_hash_entry.
961
962 2016-04-07  Claudiu Zissulescu  <claziss@synopsys.com>
963
964         * config/tc-arc.c (arc_option): Prepare string for automatic
965         translation.
966         (declare_register): Likewise.
967
968 2016-04-06  James Greenhalgh  <james.greenhalgh@arm.com>
969
970         * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
971         Correct entry for RDMA.  Alpha sort entries.
972
973 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
974
975         * config/tc-arc.c (tokenize_flags): Allow greater range of
976         characters into flag names.
977
978 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
979
980         * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
981         new de_fault label.
982         (preprocess_operands): Delete.
983         (assemble_tokens): Remove call to preprocess_operands.
984
985 2016-04-07  Nick Clifton  <nickc@redhat.com>
986
987         PR gas/19910
988         * config/tc-sparc.c (sparc_ip): Report an error if the expression
989         inside a %-macro could not be fully parsed.
990         * expr.c (integer_constant): Accept and ignore U suffixes to
991         integers.
992         (operand): When a missing closing parenthesis is encountered,
993         report the character that was found instead.
994         * testsuite/gas/mips/tls-ill.l: Update expected error message.
995         * testsuite/gas/sparc/pr19910-1.d: New test driver.
996         * testsuite/gas/sparc/pr19910-1.s: New test.
997         * testsuite/gas/sparc/pr19910-2.l: Expected error output.
998         * testsuite/gas/sparc/pr19910-2.s: New test.
999         * testsuite/gas/sparc/sparc.exp: Run the new tests.
1000
1001 2016-04-06  Nick Clifton  <nickc@redhat.com>
1002
1003         * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
1004         an EINT instruction.  Warn/fix as necessary.
1005         * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
1006         * testsuite/gas/msp430/bad.l: Update expected messages.
1007
1008 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
1009
1010         * testsuite/gas/arc/nps400-1.d: Update expected results.
1011         * testsuite/gas/arc/nps400-1.s: Additional test cases.
1012
1013 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
1014
1015         * config/tc-arc.c (is_code_density_p): Compare directly the
1016         subclass field.
1017         (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
1018         (check_cpu_feature): New function.
1019         (find_opcode_match): Use check_cpu_feature function.
1020         (preprocess_operands): Likewise.
1021         (md_parse_option): Use mfpuda, mdpfp, mspfp options.
1022         * testsuite/gas/arc/tdpfp.d: New file.
1023         * testsuite/gas/arc/tfpuda.d: Likewise.
1024         * testsuite/gas/arc/tfpx.s: Likewise.
1025
1026 2016-04-05  Jiong Wang  <jiong.wang@arm.com>
1027
1028         * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
1029         * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
1030         * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
1031         * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
1032         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
1033         * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
1034         * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
1035         * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
1036         for Thumb.
1037         * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
1038
1039 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
1040
1041         * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
1042         JUMP instructions type.
1043         * testsuite/gas/arc/relocs-errors.d: New file.
1044         * testsuite/gas/arc/relocs-errors.err: Likewise.
1045         * testsuite/gas/arc/relocs-errors.s: Likewise.
1046
1047 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1048
1049         PR gas/19909
1050         * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
1051         only if i.disp_encoding != disp_encoding_32bit.
1052         * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
1053         * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
1054         * gas/testsuite/gas/i386/disp32.d: Updated.
1055         * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
1056
1057 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1058
1059         PR gas/19498
1060         * testsuite/gas/i386/i386.exp: Run pr19498.
1061         * testsuite/gas/i386/pr19498.d: New file.
1062         * testsuite/gas/i386/pr19498.s: Likewise.
1063
1064 2016-04-04  Andrew Burgess  <andrew.burgess@embecosm.com>
1065
1066         * config/tc-arc.h: Include 'opcode/arc.h'.
1067         (MAX_INSN_ARGS): Delete.
1068         (MAX_INSN_FLGS): Delete.
1069
1070 2016-04-04  Alan Modra  <amodra@gmail.com>
1071
1072         PR 19498
1073         * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
1074         from function on all paths that set sy_resolving.
1075
1076 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1077
1078         * app.c (app_push): use XNEW macro.
1079         * as.c: Likewise.
1080         * config/obj-elf.c (obj_elf_change_section): Likewise.
1081         (elf_copy_symbol_attributes): Likewise.
1082         (obj_elf_size): Likewise.
1083         (build_group_lists): Likewise.
1084         * config/tc-aarch64.c (add_operand_error_record): Likewise.
1085         (md_assemble): Likewise.
1086         (tc_gen_reloc): Likewise.
1087         (get_upper_str): Likewise.
1088         (aarch64_parse_features): Likewise.
1089         * config/tc-arm.c (insert_reg_alias): Likewise.
1090         (insert_neon_reg_alias): Likewise.
1091         (find_or_make_literal_pool): Likewise.
1092         (s_arm_elf_cons): Likewise.
1093         (add_unwind_opcode): Likewise.
1094         (arm_parse_extension): Likewise.
1095         * config/tc-avr.c (create_record_for_frag): Likewise.
1096         * config/tc-crx.c: Likewise.
1097         * config/tc-d30v.c: Likewise.
1098         * config/tc-dlx.c (s_proc): Likewise.
1099         * config/tc-ft32.c: Likewise.
1100         * config/tc-h8300.c: Likewise.
1101         * config/tc-hppa.c (pa_proc): Likewise.
1102         (create_new_space): Likewise.
1103         (create_new_subspace): Likewise.
1104         * config/tc-i860.c: Likewise.
1105         * config/tc-i960.c: Likewise.
1106         * config/tc-ia64.c: Likewise.
1107         * config/tc-iq2000.c (iq2000_add_macro): Likewise.
1108         (iq2000_record_hi16): Likewise.
1109         * config/tc-m32c.c (m32c_indirect_operand): Likewise.
1110         * config/tc-m32r.c (debug_sym): Likewise.
1111         (m32r_record_hi16): Likewise.
1112         * config/tc-m68k.c (m68k_ip): Likewise.
1113         (md_begin): Likewise.
1114         * config/tc-mcore.c: Likewise.
1115         * config/tc-microblaze.c (check_got): Likewise.
1116         * config/tc-mips.c (append_insn): Likewise.
1117         (s_mipsset): Likewise.
1118         (mips_record_label): Likewise.
1119         (s_mips_end): Likewise.
1120         * config/tc-mmix.c (mmix_frob_file): Likewise.
1121         * config/tc-mn10200.c: Likewise.
1122         * config/tc-mn10300.c: Likewise.
1123         * config/tc-moxie.c: Likewise.
1124         * config/tc-msp430.c: Likewise.
1125         * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
1126         * config/tc-ns32k.c: Likewise.
1127         * config/tc-or1k.c: Likewise.
1128         * config/tc-pdp11.c: Likewise.
1129         * config/tc-pj.c (fake_opcode): Likewise.
1130         * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
1131         (ppc_macro): Likewise.
1132         (ppc_dwsect): Likewise.
1133         (ppc_machine): Likewise.
1134         * config/tc-rl78.c (rl78_frag_init): Likewise.
1135         * config/tc-rx.c (rx_frag_init): Likewise.
1136         * config/tc-s390.c (s390_lit_suffix): Likewise.
1137         (s390_machine): Likewise.
1138         (s390_machinemode): Likewise.
1139         * config/tc-score.c (s3_insert_reg): Likewise.
1140         (s3_gen_reloc): Likewise.
1141         * config/tc-score7.c (s7_insert_reg): Likewise.
1142         (s7_gen_reloc): Likewise.
1143         * config/tc-tic30.c (tic30_operand): Likewise.
1144         * config/tc-tic4x.c (tic4x_inst_make): Likewise.
1145         * config/tc-tic54x.c (stag_add_field): Likewise.
1146         (tic54x_struct): Likewise.
1147         (tic54x_space): Likewise.
1148         (tic54x_field): Likewise.
1149         (tic54x_mlib): Likewise.
1150         (subsym_substitute): Likewise.
1151         * config/tc-tic6x.c (tic6x_frob_label): Likewise.
1152         * config/tc-vax.c: Likewise.
1153         * config/tc-xc16x.c: Likewise.
1154         * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
1155         (directive_push): Likewise.
1156         (xtensa_begin_directive): Likewise.
1157         (tokenize_arguments): Likewise.
1158         (xtensa_add_literal_sym): Likewise.
1159         (new_resource_table): Likewise.
1160         (resize_resource_table): Likewise.
1161         (emit_single_op): Likewise.
1162         (xtensa_create_trampoline_frag): Likewise.
1163         (xtensa_maybe_create_literal_pool_frag): Likewise.
1164         (xtensa_add_config_info): Likewise.
1165         (xtensa_realloc_fixup_cache): Likewise.
1166         (add_subseg_info): Likewise.
1167         (cache_literal_section): Likewise.
1168         (add_xt_block_frags): Likewise.
1169         (add_xt_prop_frags): Likewise.
1170         (init_op_placement_info_table): Likewise.
1171         (build_section_rename): Likewise.
1172         * config/tc-z80.c: Likewise.
1173         * config/tc-z8k.c: Likewise.
1174         * depend.c (register_dependency): Likewise.
1175         * dwarf2dbg.c (get_line_subseg): Likewise.
1176         (dwarf2_gen_line_info_1): Likewise.
1177         (get_filenum): Likewise.
1178         * ecoff.c (allocate_scope): Likewise.
1179         (allocate_vlinks): Likewise.
1180         (allocate_shash): Likewise.
1181         (allocate_thash): Likewise.
1182         (allocate_tag): Likewise.
1183         (allocate_forward): Likewise.
1184         (allocate_thead): Likewise.
1185         (allocate_lineno_list): Likewise.
1186         * expr.c (make_expr_symbol): Likewise.
1187         * hash.c (hash_new_sized): Likewise.
1188         * input-file.c (input_file_push): Likewise.
1189         * listing.c (file_info): Likewise.
1190         (listing_newline): Likewise.
1191         * macro.c (new_formal): Likewise.
1192         (define_macro): Likewise.
1193         * remap.c (add_debug_prefix_map): Likewise.
1194         * symbols.c (symbol_find_noref): Likewise.
1195         (define_dollar_label): Likewise.
1196         (fb_label_instance_inc): Likewise.
1197         (symbol_relc_make_value): Likewise.
1198
1199 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1200
1201         * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
1202         * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
1203         (ppc_znop): Likewise.
1204         (ppc_pe_section): Likewise.
1205         (ppc_frob_symbol): Likewise.
1206         * config/tc-tic30.c (tic30_operand): Likewise.
1207         * config/tc-tic4x.c (tic4x_sect): Likewise.
1208         (tic4x_usect): Likewise.
1209
1210 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1211
1212         * config/tc-alpha.c: Const qualify FLT_CHARS.
1213         * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
1214         * config/tc-cris.h: Likewise.
1215         * expr.c: Likewise.
1216         * config/tc-mmix.c (md_atof): Adjust comment.
1217         * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
1218         * tc.h: Declare FLT_CHARS and EXP_CHARS.
1219
1220 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1221
1222         * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
1223         * config/tc-score7.c (s7_gen_reloc): Likewise.
1224
1225 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1226
1227         * config/tc-arm.c (do_t_branch): Change the type of reloc to
1228         bfd_reloc_code_real_type.
1229
1230 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1231
1232         * config/bfin-parse.y (current_inputline): Remove definition.
1233         * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
1234
1235 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1236
1237         * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
1238         strings.
1239
1240 2016-04-02  Alan Modra  <amodra@gmail.com>
1241
1242         PR 19896
1243         * read.c (assign_symbol): Consume rest of line after an error
1244         rather than continuing to process the line.
1245
1246 2016-04-01  Andrew Burgess  <andrew.burgess@embecosm.com>
1247
1248         * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
1249         (MAX_FLAG_NAME_LENGTH): ...this.
1250         (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
1251         * config/tc-arc.c (tokenize_flags): Likewise.
1252
1253 2016-04-01  Alan Modra  <amodra@gmail.com>
1254
1255         * cgen.c (weak_operand_overflow_check): Return const char*.
1256         * messages.c (as_internal_value_out_of_range): Formatting.
1257         (as_warn_value_out_of_range): Consify prefix param.
1258         (as_bad_value_out_of_range): Likewise.
1259         * read.c (s_errwarn): Constify msg..
1260         (s_float_space, float_cons): ..and err.
1261         * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
1262         ieee_md_atof, vax_md_atof): Update prototypes.
1263         * tc.h (md_atof): Update prototype.
1264         * config/atof-ieee.c (ieee_md_atof): Return const char*.
1265         * config/atof-vax.c (vax_md_atof): Likewise.
1266         * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
1267         * config/tc-aarch64.c (md_atof): Return const char*.
1268         * config/tc-alpha.c (s_alpha_section_name): Likewise.
1269         (s_alpha_comm): Constify sec_name.
1270         (section_name): Constify.
1271         (s_alpha_section): Consify name..
1272         (alpha_elf_section_letter): ..and ptr_msg param..
1273         (md_atof): ..and return.
1274         * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
1275         * config/tc-arc.c (md_atof): Return const char*.
1276         * config/tc-arm.c (md_atof): Likewise.
1277         * config/tc-avr.c (md_atof): Likewise.
1278         * config/tc-bfin.c (md_atof): Likewise.
1279         * config/tc-cr16.c (md_atof): Likewise.
1280         * config/tc-cris.c (md_atof): Likewise.
1281         * config/tc-crx.c (md_atof): Likewise.
1282         * config/tc-d10v.c (md_atof): Likewise.
1283         * config/tc-d30v.c (md_atof): Likewise.
1284         * config/tc-dlx.c (md_atof): Likewise.
1285         * config/tc-epiphany.c (md_atof): Likewise.
1286         * config/tc-fr30.c (md_atof): Likewise.
1287         * config/tc-frv.c (md_atof): Likewise.
1288         * config/tc-ft32.c (md_atof): Likewise.
1289         * config/tc-h8300.c (md_atof): Likewise.
1290         * config/tc-hppa.c (struct default_subspace_dict): Constify name.
1291         (struct default_space_dict): Likewise.
1292         (create_new_space): Constify name param.
1293         (create_new_subspace): Likewise.
1294         (is_defined_space, is_defined_subspace): Likewise.
1295         (pa_parse_space_stmt): Constify space_name param.
1296         (md_atof): Return const char*.
1297         (pa_spaces_begin): Constify name.
1298         * config/tc-i370.c (md_atof): Return const char*.
1299         * config/tc-i386.c (md_atof): Likewise.
1300         (x86_64_section_letter): Constify ptr_msg param.
1301         * config/tc-i386.h (x86_64_section_letter): Update prototype.
1302         * config/tc-i860.c (struct i860_it): Constify error.
1303         (md_atof): Return const char*.
1304         * config/tc-i960.c (md_atof): Likewise.
1305         * config/tc-ia64.c (md_atof): Likewise.
1306         (ia64_elf_section_letter): Constify ptr_msg param.
1307         * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
1308         * config/tc-ip2k.c (md_atof): Return const char*.
1309         * config/tc-iq2000.c (md_atof): Likewise.
1310         * config/tc-lm32.c (md_atof): Likewise.
1311         * config/tc-m32c.c (md_atof): Likewise.
1312         * config/tc-m32r.c (md_atof): Likewise.
1313         * config/tc-m68hc11.c (md_atof): Likewise.
1314         * config/tc-m68k.c (md_atof): Likewise.
1315         * config/tc-mcore.c (md_atof): Likewise.
1316         * config/tc-mep.c (md_atof): Likewise.
1317         (mep_elf_section_letter): Constify ptr_msg param.
1318         * config/tc-mep.h (mep_elf_section_letter): Update prototype.
1319         * config/tc-metag.c (md_atof): Return const char*.
1320         * config/tc-microblaze.c (md_atof): Likewise.
1321         * config/tc-microblaze.h (md_atof): Delete prototype.
1322         * config/tc-mips.c (mips_parse_argument_token): Constify err.
1323         (md_atof): Return const char*.
1324         * config/tc-mmix.c (md_atof): Likewise.
1325         * config/tc-mn10200.c (md_atof): Likewise.
1326         * config/tc-mn10300.c (md_atof): Likewise.
1327         * config/tc-moxie.c (md_atof): Likewise.
1328         * config/tc-msp430.c (md_atof): Likewise.
1329         * config/tc-mt.c (md_atof): Likewise.
1330         * config/tc-nds32.c (md_atof): Likewise.
1331         * config/tc-nios2.c (md_atof): Likewise.
1332         (nios2_elf_section_letter): Constify ptr_msg param.
1333         * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
1334         * config/tc-ns32k.c (md_atof): Return const char*.
1335         * config/tc-or1k.c (md_atof): Likewise.
1336         * config/tc-pdp11.c (struct pdp11_code): Constify error.
1337         (md_atof): Return const char*.
1338         * config/tc-pj.c (md_atof): Likewise.
1339         * config/tc-ppc.c (md_atof): Likewise.
1340         * config/tc-rl78.c (md_atof): Likewise.
1341         * config/tc-rx.c (md_atof): Likewise.
1342         * config/tc-s390.c (md_atof): Likewise.
1343         * config/tc-score.c (s3_atof, md_atof): Likewise.
1344         * config/tc-sh.c (md_atof): Likewise.
1345         * config/tc-sparc.c (struct sparc_it): Constify error.
1346         (md_atof): Return const char*.
1347         * config/tc-spu.c (md_atof): Likewise.
1348         * config/tc-tic30.c (md_atof): Likewise.
1349         * config/tc-tic4x.c (md_atof): Likewise.
1350         * config/tc-tic54x.c (md_atof): Likewise.
1351         * config/tc-tic6x.c (md_atof): Likewise.
1352         * config/tc-tilegx.c (md_atof): Likewise.
1353         * config/tc-tilepro.c (md_atof): Likewise.
1354         * config/tc-v850.c (parse_register_list, md_atof): Likewise.
1355         * config/tc-vax.c (md_atof): Likewise.
1356         * config/tc-visium.c (md_atof): Likewise.
1357         * config/tc-xc16x.c (md_atof): Likewise.
1358         * config/tc-xgate.c (md_atof): Likewise.
1359         * config/tc-xstormy16.c (md_atof): Likewise.
1360         * config/tc-xtensa.c (md_atof): Likewise.
1361         * config/tc-z80.c (md_atof): Likewise.
1362         * config/tc-z8k.c (md_atof): Likewise.
1363
1364 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1365
1366         * config/tc-xtensa.c (struct rename_section_struct): Make old_name
1367         const.
1368         (xtensa_section_rename): Make argument type const char *.
1369         * config/tc-xtensa.h (xtensa_section_rename): Adjust.
1370
1371 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1372
1373         * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
1374         args[0].
1375
1376 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1377
1378         * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
1379         char *.
1380         (m32c_indirect_operand): Likewise.
1381         * config/tc-nds32.c (do_pseudo_b): Likewise.
1382         (do_pseudo_bal): Likewise.
1383         (do_pseudo_ls_bhw): Likewise.
1384
1385 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1386
1387         * as.c (parse_args): Cast literal to char * when assigning to optarg.
1388
1389 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1390
1391         * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
1392         get_symbol_name ().
1393         * config/tc-sparc.c (s_register): Cast a literal to char * in
1394         assignment.
1395
1396 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1397
1398         * config/tc-i960.c (parse_expr): Cast to char * when assigning to
1399         input_line_pointer.
1400         * config/tc-m32r.c (expand_debug_syms): Likewise.
1401         * config/tc-msp430.c (msp430_dstoperand): Likewise.
1402         * config/tc-z80.c (md_begin): Likewise.
1403         * stabs.c (stabs_generate_asm_func): Likewise.
1404
1405 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1406
1407         * cgen.c: Modernize the way functions declare arguments.
1408         * config/tc-bfin.c: Likewise.
1409         * config/tc-pdp11.c: Likewise.
1410         * literal.c: Likewise.
1411         * read.c: Likewise.
1412         * stabs.c: Likewise.
1413
1414 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1415
1416         * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
1417         variables unsigned char[].
1418         * config/tc-alpha.c (alpha_handle_align): Likewise.
1419         * config/tc-arm.c (arm_handle_align): Likewise.
1420         * config/tc-z80.c: Likewise.
1421
1422 2016-03-30  Nick Clifton  <nickc@redhat.com>
1423
1424         PR target/19880
1425         * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
1426         shifting.
1427
1428 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
1429
1430         * testsuite/gas/all/gas.exp: Don't xfail on ARC.
1431         * testsuite/gas/elf/elf.exp: Likewise.
1432         * testsuite/gas/all/redef3.d: Allow execution for ARC.
1433
1434 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
1435
1436         * testsuite/gas/arc/warn.exp: Fix matching pattern.
1437
1438 2016-03-29  Claudiu Zissulescu  <claziss@synopsys.com>
1439
1440         * testsuite/gas/arc/ext2op.d: New file.
1441         * testsuite/gas/arc/ext2op.s: Likewise.
1442         * testsuite/gas/arc/ext3op.d: Likewise.
1443         * testsuite/gas/arc/ext3op.s: Likewise.
1444
1445 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1446
1447         * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
1448         qualifier.
1449         * config/tc-alpha.c (md_parse_option): Likewise.
1450         * config/tc-arc.c (md_parse_option): Likewise.
1451         * config/tc-arm.c (struct arm_long_option_table): Likewise.
1452         (md_parse_option): Likewise.
1453         * config/tc-avr.c (md_parse_option): Likewise.
1454         * config/tc-bfin.c (md_parse_option): Likewise.
1455         * config/tc-cr16.c (md_parse_option): Likewise.
1456         * config/tc-cris.c (s_cris_arch): Likewise.
1457         (md_parse_option): Likewise.
1458         * config/tc-crx.c (md_parse_option): Likewise.
1459         * config/tc-d10v.c (md_parse_option): Likewise.
1460         * config/tc-d30v.c (md_parse_option): Likewise.
1461         * config/tc-dlx.c (md_parse_option): Likewise.
1462         * config/tc-epiphany.c (md_parse_option): Likewise.
1463         * config/tc-fr30.c (md_parse_option): Likewise.
1464         * config/tc-frv.c (md_parse_option): Likewise.
1465         * config/tc-ft32.c (md_parse_option): Likewise.
1466         * config/tc-h8300.c (md_parse_option): Likewise.
1467         * config/tc-hppa.c (md_parse_option): Likewise.
1468         * config/tc-i370.c (md_parse_option): Likewise.
1469         * config/tc-i386.c (md_parse_option): Likewise.
1470         * config/tc-i860.c (md_parse_option): Likewise.
1471         * config/tc-i960.c (md_parse_option): Likewise.
1472         * config/tc-ia64.c (md_parse_option): Likewise.
1473         * config/tc-ip2k.c (md_parse_option): Likewise.
1474         * config/tc-iq2000.c (md_parse_option): Likewise.
1475         * config/tc-lm32.c (md_parse_option): Likewise.
1476         * config/tc-m32c.c (md_parse_option): Likewise.
1477         * config/tc-m32r.c (md_parse_option): Likewise.
1478         * config/tc-m68hc11.c (md_parse_option): Likewise.
1479         * config/tc-m68k.c (md_parse_option): Likewise.
1480         * config/tc-mcore.c (md_parse_option): Likewise.
1481         * config/tc-mep.c (md_parse_option): Likewise.
1482         * config/tc-metag.c (struct metag_long_option): Likewise.
1483         (md_parse_option): Likewise.
1484         * config/tc-microblaze.c (md_parse_option): Likewise.
1485         * config/tc-microblaze.h (md_parse_option): Remove prototype.
1486         * config/tc-mips.c (md_parse_option): Adjust.
1487         * config/tc-mmix.c (md_parse_option): Likewise.
1488         * config/tc-mn10200.c (md_parse_option): Likewise.
1489         * config/tc-mn10300.c (md_parse_option): Likewise.
1490         * config/tc-moxie.c (md_parse_option): Likewise.
1491         * config/tc-msp430.c (md_parse_option): Likewise.
1492         * config/tc-mt.c (md_parse_option): Likewise.
1493                 * config/tc-nds32.c (md_parse_option): Likewise.
1494                 * config/tc-nds32.h (nds32_parse_option): Likewise.
1495         * config/tc-nios2.c (md_parse_option): Likewise.
1496         * config/tc-ns32k.c (md_parse_option): Likewise.
1497         * config/tc-or1k.c (md_parse_option): Likewise.
1498         * config/tc-pdp11.c (md_parse_option): Likewise.
1499         * config/tc-pj.c (md_parse_option): Likewise.
1500         * config/tc-ppc.c (md_parse_option): Likewise.
1501         * config/tc-rl78.c (md_parse_option): Likewise.
1502         * config/tc-rx.c (md_parse_option): Likewise.
1503         * config/tc-s390.c (s390_parse_cpu): Likewise.
1504         * config/tc-score.c (md_parse_option): Likewise.
1505         * config/tc-sh.c (md_parse_option): Likewise.
1506         * config/tc-sparc.c (md_parse_option): Likewise.
1507         * config/tc-spu.c (md_parse_option): Likewise.
1508         * config/tc-tic30.c (md_parse_option): Likewise.
1509         * config/tc-tic4x.c (md_parse_option): Likewise.
1510         * config/tc-tic54x.c (md_parse_option): Likewise.
1511         * config/tc-tic6x.c (md_parse_option): Likewise.
1512         * config/tc-tilegx.c (md_parse_option): Likewise.
1513         * config/tc-tilepro.c (md_parse_option): Likewise.
1514         * config/tc-v850.c (md_parse_option): Likewise.
1515         * config/tc-vax.c (md_parse_option): Likewise.
1516         * config/tc-visium.c (struct visium_long_option_table): Likewise.
1517         * config/tc-xc16x.c (md_parse_option): Likewise.
1518         * config/tc-xgate.c (md_parse_option): Likewise.
1519         * config/tc-xstormy16.c (md_parse_option): Likewise.
1520         * config/tc-xtensa.c (md_parse_option): Likewise.
1521         * config/tc-z80.c (md_parse_option): Likewise.
1522         * config/tc-z8k.c (md_parse_option): Likewise.
1523         * tc.h (md_parse_option): Likewise.
1524
1525 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1526
1527         * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
1528         * config/tc-hppa.c (fix_new_hppa): Likewise.
1529         (pa_vtable_entry): Likewise.
1530         (pa_vtable_inherit): Likewise.
1531         * config/tc-m68k.c (md_begin): Likewise.
1532
1533 2016-03-28  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1534
1535         * config/obj-elf.c (obj_elf_section_name): Return const char *.
1536         * config/obj-elf.h (obj_elf_section_name): Adjust.
1537         * config/tc-aarch64.c (aarch64_parse_features): Likewise.
1538         (aarch64_parse_cpu): Likewise.
1539         (aarch64_parse_arch): Likewise.
1540         * config/tc-arm.c (arm_parse_extension): Likewise.
1541         (arm_parse_cpu): Likewise.
1542         (arm_parse_arch): Likewise.
1543         * config/tc-nds32.c: Likewise.
1544         * config/xtensa-relax.c (parse_special_fn): Likewise.
1545         * stabs.c (generate_asm_file): Likewise.
1546
1547 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1548
1549         * config/tc-cr16.c (cr16_assemble): New function.
1550         (md_assemble): Call cr16_assemble.
1551
1552 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1553
1554         * as.c (parse_args): Adjust.
1555         * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
1556         * config/obj-elf.c (elf_frob_symbol): Adjust.
1557
1558 2016-03-24  Jose E. Marchesi  <jose.marchesi@oracle.com>
1559
1560         * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
1561         registers to be in the 16..31 range.
1562
1563 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1564
1565         * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
1566         frag_var ().
1567
1568 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1569
1570         * config/tc-visium.c (md_atof): Localize the string returned on
1571         failure.
1572
1573 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1574
1575         * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
1576         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1577         * config/tc-m68hc11.c (md_begin): Likewise.
1578         (print_opcode_list): Likewise.
1579         * config/tc-msp430.c (msp430_section): Likewise.
1580         * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
1581         (s3_build_dependency_insn_hsh): Likewise.
1582         * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
1583         (s7_build_dependency_insn_hsh): Likewise.
1584         * config/tc-tic4x.c: Likewise.
1585         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1586         (subsym_get_arg): Likewise.
1587         * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
1588         (get_directive): Likewise.
1589         (cache_literal_section): Likewise.
1590         * config/xtensa-relax.c: Likewise.
1591         * symbols.c (symbol_create): Likewise.
1592         (local_symbol_make): Likewise.
1593         (symbol_relc_make_expr): Likewise.
1594
1595 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1596
1597         * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
1598         str.
1599
1600 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1601
1602         * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
1603         call with a switch.
1604
1605 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1606
1607         * config/tc-ia64.c (ia64_do_align): Remove.
1608         (ia64_cons_align): Call do_align () directly.
1609         (dot_proc): Likewise.
1610         (stmt_float_cons): Likewise.
1611
1612 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1613
1614         * listing.c (listing_message): Use XNEW style allocation macros.
1615         * read.c (read_a_source_file): Likewise.
1616         (read_symbol_name): Likewise.
1617         (s_mri_common): Likewise.
1618         (assign_symbol): Likewise.
1619         (s_reloc): Likewise.
1620         (emit_expr_with_reloc): Likewise.
1621         (s_incbin): Likewise.
1622         (s_include): Likewise.
1623         * sb.c (sb_build): Likewise.
1624         (sb_check): Likewise.
1625
1626 2016-03-22  Alan Modra  <amodra@gmail.com>
1627
1628         * write.c (record_alignment): Revert 2016-02-18 change.
1629
1630 2016-03-22  Alan Modra  <amodra@gmail.com>
1631
1632         * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
1633         (emit_jsrjmp, tc_gen_reloc): Likewise.
1634         * config/tc-i370.c (i370_macro): Likewise.
1635
1636 2016-03-22  Nick Clifton  <nickc@redhat.com>
1637
1638         * configure: Regenerate.
1639
1640 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1641
1642         * testsuite/gas/arc/nps400-0.d: New file.
1643         * testsuite/gas/arc/nps400-0.s: New file.
1644         * testsuite/gas/arc/nps400-1.d: New file.
1645         * testsuite/gas/arc/nps400-1.s: New file.
1646
1647 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1648
1649         * config/tc-arc.c (find_opcode_match): Move lnflg, and i
1650         declarations to start of block.  Reset code on all flags before
1651         attempting to match them.  Handle multiple hits on the same flag.
1652         Handle flag class.
1653         * testsuite/gas/arc/asm-errors.d: New file.
1654         * testsuite/gas/arc/asm-errors.err: New file.
1655         * testsuite/gas/arc/asm-errors.s: New file.
1656
1657 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1658
1659         * config/tc-arc.c (cpu_types): Add nps400 entry.
1660         (check_zol): Handle nps400.
1661
1662 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1663
1664         * config/tc-arc.c (arc_select_cpu): Remove use of
1665         EF_ARC_CPU_GENERIC.
1666
1667 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1668
1669         * config/tc-arc.c (arc_target): Delay initialisation until
1670         arc_select_cpu.
1671         (arc_target_name): Likewise.
1672         (arc_features): Likewise.
1673         (arc_mach_type): Likewise.
1674         (cpu_types): Remove "all" entry.
1675         (arc_select_cpu): New function, most of the content is from...
1676         (md_parse_option): ... here.  Call new arc_select_cpu.
1677         (md_begin): Call arc_select_cpu if needed, default is now arc700.
1678
1679 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1680
1681         * testsuite/gas/arc/inline-data-1.d: Add target restriction.
1682         * testsuite/gas/arc/inline-data-2.d: New file.
1683
1684 2016-03-21  Nick Clifton  <nickc@redhat.com>
1685
1686         * atof-generic.c: Replace use of alloca with call to xmalloc.
1687         * cgen.c: Likewise.
1688         * dwarf2dbg.c: Likewise.
1689         * macro.c: Likewise.
1690         * remap.c: Likewise.
1691         * stabs.c: Likewise.
1692         * symbols.c: Likewise.
1693         * config/obj-elf.c: Likewise.
1694         * config/tc-aarch64.c: Likewise.
1695         * config/tc-arc.c: Likewise.
1696         * config/tc-arm.c: Likewise.
1697         * config/tc-avr.c: Likewise.
1698         * config/tc-ia64.c: Likewise.
1699         * config/tc-mips.c: Likewise.
1700         * config/tc-msp430.c: Likewise.
1701         * config/tc-nds32.c: Likewise.
1702         * config/tc-ppc.c: Likewise.
1703         * config/tc-sh.c: Likewise.
1704         * config/tc-tic30.c: Likewise.
1705         * config/tc-tic54x.c: Likewise.
1706         * config/tc-xstormy16.c: Likewise.
1707         * config/te-vms.c: Likewise.
1708         * configure: Regenerate.
1709
1710 2016-03-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1711
1712         * tc-i386.c (f32_1): Change type to unsigned char[].
1713         (f32_2): Likewise.
1714         (f32_3): Likewise.
1715         (f32_4): Likewise.
1716         (f32_5): Likewise.
1717         (f32_6): Likewise.
1718         (f32_7): Likewise.
1719         (f32_8): Likewise.
1720         (f32_9): Likewise.
1721         (f32_10): Likewise.
1722         (f32_11): Likewise.
1723         (f32_12): Likewise.
1724         (f32_13): Likewise.
1725         (f32_14): Likewise.
1726         (f16_3): Likewise.
1727         (f16_4): Likewise.
1728         (f16_5): Likewise.
1729         (f16_6): Likewise.
1730         (f16_7): Likewise.
1731         (f16_8): Likewise.
1732         (jump_31): Likewise.
1733         (f32_patt): Likewise.
1734         (f16_patt): Likewise.
1735         (alt_3): Likewise.
1736         (alt_4): Likewise.
1737         (alt_5): Likewise.
1738         (alt_6): Likewise.
1739         (alt_7): Likewise.
1740         (alt_8): Likewise.
1741         (alt_9): Likewise.
1742         (alt_10): Likewise.
1743         (alt_patt): Likewise.
1744
1745 2016-03-18  Nick Clifton  <nickc@redhat.com>
1746
1747         * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
1748         .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
1749         .tlsdescldr and .xword directives.
1750
1751         PR target/19721
1752         * testsuite/gas/aarch64/pr19721.s: New test source file.
1753         * testsuite/gas/aarch64/pr19721.d: New test driver file.
1754
1755         * doc/as.texinfo: Place the target specific command line options
1756         into their own man page section.
1757
1758 2016-03-16  Jiong Wang  <jiong.wang@arm.com>
1759
1760         * config/tc-arm.c (N_S_32): New.
1761         (N_F_16_32): Likewise.
1762         (N_SUF_32): Support N_F16.
1763         (N_IF_32): Likewise.
1764         (neon_dyadic_misc): Likewise.
1765         (do_neon_cmp): Likewise.
1766         (do_neon_cmp_inv): Likewise.
1767         (do_neon_mul): Likewise.
1768         (do_neon_fcmp_absolute): Likewise.
1769         (do_neon_step): Likewise.
1770         (do_neon_abs_neg): Likewise.
1771         (CVT_FLAVOR_VAR): Likewise.
1772         (do_neon_cvt_1): Likewise.
1773         (do_neon_recip_est): Likewise.
1774         (do_vmaxnm): Likewise.
1775         (do_vrint_1): Likewise.
1776         (neon_check_type): Check architecture support for FP16 extension.
1777         (insns): Update comments.
1778         * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
1779         * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
1780         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
1781         * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
1782         arm mode.
1783         * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
1784         thumb mode.
1785         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
1786         error file.
1787
1788 2016-03-16  Nick Clifton  <nickc@redhat.com>
1789
1790         * read.c (emit_expr_with_reloc): Add code check a bignum with
1791         nbytes == 1.
1792         * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
1793         other than 32-bits.
1794         * testsuite/gas/elf/bignum.s: New test source file.
1795         * testsuite/gas/elf/bignum.d: New test driver file.
1796         * testsuite/gas/elf/elf.exp: Run the new test.
1797
1798 2016-03-15  Ulrich Drepper  <drepper@gmail.com>
1799
1800         * doc/c-i386.texi (Register Naming): Update to details of the
1801         latest architecture version.
1802
1803 2016-03-10  Mickael Guene  <mickael.guene@st.com>
1804
1805         PR gas/19744
1806         * config/tc-arm.c (do_arit): Protect against bad relocations usage.
1807         (do_mov): Likewise.
1808         (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
1809         (do_t_mov_cmp): Likewise.
1810         (do_t_add_sub): Protect against bad relocations usage.
1811         (do_t_mov_cmp): Likewise.
1812         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
1813         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
1814         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
1815         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
1816
1817 2016-03-09  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1818
1819         * config/tc-arm.c (neon_alignment_bit): Rename do_align to
1820         do_alignment.
1821         (do_neon_ld_st_lane): Likewise.
1822         (do_neon_ld_dup): Likewise.
1823
1824 2016-03-08  Andrew Burgess  <andrew.burgess@embecosm.com>
1825
1826         * testsuite/gas/arc/inline-data-1.d: New file.
1827         * testsuite/gas/arc/inline-data-1.s: New file.
1828
1829 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1830
1831         * config/tc-arm.c (arm_cpus): Add cortex-r8.
1832         * doc/c-arm.texi: Add cortex-r8.
1833
1834 2016-03-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1835
1836         * config/tc-arc.c: Add const qualifiers.
1837         * config/tc-h8300.c (md_begin): Likewise.
1838         * config/tc-ia64.c (print_prmask): Likewise.
1839         * config/tc-msp430.c (msp430_operands): Likewise.
1840         * config/tc-nds32.c (struct suffix_name): Likewise.
1841         (struct nds32_parse_option_table): Likewise.
1842         (struct nds32_set_option_table): Likewise.
1843         (do_pseudo_pushpopm): Likewise.
1844         (do_pseudo_pushpop_stack): Likewise.
1845         (nds32_relax_relocs): Likewise.
1846         (nds32_flag): Likewise.
1847         (struct nds32_hint_map): Likewise.
1848         (nds32_find_reloc_table): Likewise.
1849         (nds32_match_hint_insn): Likewise.
1850         * config/tc-s390.c: Likewise.
1851         * config/tc-sh.c (get_specific): Likewise.
1852         * config/tc-tic30.c: Likewise.
1853         * config/tc-tic4x.c (tic4x_inst_add): Likewise.
1854         (tic4x_indirect_parse): Likewise.
1855         * config/tc-vax.c (vax_cons): Likewise.
1856         * config/tc-z80.c (struct reg_entry): Likewise.
1857         * config/tc-epiphany.c (md_assemble): Adjust.
1858         (epiphany_assemble): New function.
1859         (epiphany_elf_section_rtn): Call do_align directly.
1860         (epiphany_elf_section_text): Likewise.
1861         * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
1862         (ip2k_elf_section_text): Likewise.
1863         * read.c (do_align): Make it not static.
1864         * read.h (do_align): New prototype.
1865
1866 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
1867
1868         * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
1869         for ARMv8.1 AdvSIMD use.
1870         * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
1871         * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
1872
1873 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
1874
1875         * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
1876         feature.
1877         (record_feature_use): New.
1878         (mark_feature_used): Use record_feature_use.
1879         (do_neon_qrdmlah): New.
1880         (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
1881         variants.
1882         (arm_extensions): Put into alphabetical order.  Re-indent "simd"
1883         and "rdma" entries.  Fix the incorrect merge value for "+rdma".
1884         * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
1885         * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
1886         Make source file explicit.
1887         * testsuite/gas/arm/armv8-a+rdma.l: New.
1888         * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
1889         directives.  Fix white-space.
1890         * testsuite/gas/arm/armv8_1-a+simd.d: New.
1891
1892 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
1895
1896 2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
1897             Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
1898
1899         * config/tc-arc.c (arc_extra_reloc): Change size to 0.
1900         (tc_arc_fix_adjustable): Changed default return value to 1.
1901         * testsuite/gas/arc/j.d: Updated expected symbol
1902         * testsuite/gas/arc/jl.d: Likewise
1903         * testsuite/gas/arc/relax-avoid1.d: Likewise
1904         * testsuite/gas/arc/st.d: Likewise
1905
1906 2016-02-29  Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
1907
1908         * config/tc-arc.c: Enable code density instructions for ARC EM.
1909
1910 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
1911
1912         PR ld/19645
1913         * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
1914         for ELF assemblers.
1915         * as.c (flag_use_elf_stt_common): New.
1916         (show_usage): Add --elf-stt-common=.
1917         (option_values): Add OPTION_ELF_STT_COMMON.
1918         (std_longopts): Add --elf-stt-common=.
1919         (parse_args): Handle --elf-stt-common=.
1920         * as.h (flag_use_elf_stt_common): New.
1921         * config.in: Regenerated.
1922         * configure: Likewise.
1923         * configure.ac: Add --enable-elf-stt-common and define
1924         DEFAULT_GENERATE_ELF_STT_COMMON.
1925         * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
1926         and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
1927         * doc/as.texinfo: Document --elf-stt-common=.
1928         * testsuite/gas/elf/common3.s: New file.
1929         * testsuite/gas/elf/common3a.d: Likewise.
1930         * testsuite/gas/elf/common3b.d: Likewise.
1931         * testsuite/gas/elf/common4.s: Likewise.
1932         * testsuite/gas/elf/common4a.d: Likewise.
1933         * testsuite/gas/elf/common4b.d: Likewise.
1934         * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
1935         * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
1936         * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
1937         and common4b.
1938         * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
1939         * testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
1940         --elf-stt-common=no to as.
1941         * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
1942         * testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
1943         --elf-stt-common=no to as.
1944         * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
1945         dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
1946         of dw2-compress-3 and dw2-compressed-3.
1947
1948 2016-02-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1949
1950         * as.c (select_emulation_mode): Add const qualifiers.
1951         * as.h: Likewise.
1952         * config/bfin-defs.h: Likewise.
1953         * config/bfin-parse.y: Likewise.
1954         * config/rx-parse.y: Likewise.
1955         * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
1956         (struct aarch64_cpu_option_table): Likewise.
1957         (struct aarch64_arch_option_table): Likewise.
1958         (struct aarch64_option_cpu_value_table): Likewise.
1959         (struct aarch64_long_option_table): Likewise.
1960         (struct aarch64_option_abi_value_table): Likewise.
1961         * config/tc-arm.c (struct reloc_entry): Likewise.
1962         (tc_gen_reloc): Likewise.
1963         (struct arm_option_table): Likewise.
1964         (struct arm_legacy_option_table): Likewise.
1965         (struct arm_cpu_option_table): Likewise.
1966         (struct arm_arch_option_table): Likewise.
1967         (struct arm_option_extension_value_table): Likewise.
1968         (struct arm_option_fpu_value_table): Likewise.
1969         (struct arm_option_value_table): Likewise.
1970         (struct arm_long_option_table): Likewise.
1971         * config/tc-avr.c (struct avr_opcodes_s): Likewise.
1972         (struct mcu_type_s): Likewise.
1973         (struct exp_mod_s): Likewise.
1974         (avr_operand): Likewise.
1975         (avr_operands): Likewise.
1976         * config/tc-d10v.c (md_begin): Likewise.
1977         * config/tc-dlx.c: Likewise.
1978         * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
1979         * config/tc-ft32.c (parse_condition): Likewise.
1980         * config/tc-h8300.c (do_a_fix_imm): Likewise.
1981         * config/tc-hppa.c (pa_ip): Likewise.
1982         (hppa_regname_to_dw2regnum): Likewise.
1983         * config/tc-i370.c (i370_elf_suffix): Likewise.
1984         * config/tc-i960.c (struct tabentry): Likewise.
1985         * config/tc-m32r.c: Likewise.
1986         * config/tc-m68k.c: Likewise.
1987         * config/tc-m68k.h: Likewise.
1988         * config/tc-mcore.c (parse_psrmod): Likewise.
1989         * config/tc-metag.c (struct metag_core_option): Likewise.
1990         (struct metag_long_option): Likewise.
1991         * config/tc-microblaze.c: Likewise.
1992         * config/tc-mips.c (macro): Likewise.
1993         * config/tc-mn10200.c: Likewise.
1994         * config/tc-mn10300.c: Likewise.
1995         * config/tc-msp430.c (struct rcodes_s): Likewise.
1996         (struct hcodes_s): Likewise.
1997         (md_parse_option): Likewise.
1998         * config/tc-ns32k.c (struct ns32k_option): Likewise.
1999         (optlist): Likewise.
2000         * config/tc-ppc.c (ppc_elf_suffix): Likewise.
2001         (tc_ppc_regname_to_dw2regnum): Likewise.
2002         * config/tc-ppc.h: Likewise.
2003         * config/tc-rl78.c: Likewise.
2004         * config/tc-rx.c (struct cpu_type): Likewise.
2005         * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
2006         * config/tc-sparc.c (struct priv_reg_entry): Likewise.
2007         (sparc_ip): Likewise.
2008         * config/tc-spu.c (insn_fmt_string): Likewise.
2009         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
2010         * config/tc-v850.c: Likewise.
2011         * config/tc-visium.c (struct visium_arch_option_table): Likewise.
2012         (struct visium_long_option_table): Likewise.
2013         * config/tc-xgate.c: Likewise.
2014         * config/tc-z8k.c: Likewise.
2015         * read.c (add_include_dir): Likewise.
2016         * read.h: Likewise.
2017
2018 2016-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2019
2020         * testsuite/gas/all/gas.exp: Change target pattern to cover
2021         arceb-*.
2022         * testsuite/gas/all/redef3.d: Likewise.
2023         * testsuite/gas/elf/elf.exp: Likewise.
2024
2025 2016-02-24  Renlin Li  <renlin.li@arm.com>
2026
2027         * config/tc-arm.c (BAD_FP16): New error message macro.
2028         (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
2029         fp16 scalar instructions.
2030         (neon_check_type): Allow different size from key.
2031         (do_vfp_nsyn_add_sub): Add support SE_H shape support.
2032         (try_vfp_nsyn): Likewise.
2033         (do_vfp_nsyn_mla_mls): Likewise.
2034         (do_vfp_nsyn_fma_fms): Likewise.
2035         (do_vfp_nsyn_ldm_stm): Likewise
2036         (do_vfp_nsyn_sqrt): Likewise
2037         (do_vfp_nsyn_div): Likewise
2038         (do_vfp_nsyn_nmul): Likewise.
2039         (do_vfp_nsyn_cmp): Likewise.
2040         (do_neon_shll): Likewise.
2041         (do_vfp_nsyn_cvt_fpv8): Likewise.
2042         (do_neon_cvttb_2): Likewise.
2043         (do_neon_mov): Likewise.
2044         (do_neon_rshift_round_imm): Likewise.
2045         (do_neon_ldr_str): Likewise.
2046         (do_vfp_nsyn_fpv8): Likewise.
2047         (do_vmaxnm): Likewise.
2048         (do_vrint_1): Likewise.
2049         (insns): New entry for vins, vmovx.
2050         (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
2051         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
2052         * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
2053         * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
2054         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
2055         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
2056         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
2057
2058 2016-02-24  Renlin Li  <renlin.li@arm.com>
2059
2060         * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
2061         (neon_shape_class): New SC_HALF.
2062         (neon_shape_el): New SE_H.
2063         (neon_shape_el_size): New size for SE_H.
2064         (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
2065         (neon_select_shape): Add SE_H support code.
2066         (el_type_of_type_chk): Use N_F_ALL.
2067         (do_vfp_nsyn_cvt): Add SE_H shape support.
2068         (do_neon_cvtz): Likewise.
2069         (do_neon_cvt_1): Likewise.
2070         (do_neon_cvttb_1): Likewise.
2071
2072 2016-02-24  Renlin Li  <renlin.li@arm.com>
2073
2074         * testsuite/gas/arm/copro.d: Adjust output.
2075         * testsuite/gas/arm/copro.s: Adjust co-processor num.
2076
2077 2016-02-24  Renlin Li  <renlin.li@arm.com>
2078
2079         * testsuite/gas/arm/mask_1.d: New.
2080         * testsuite/gas/arm/mask_1.s: New.
2081
2082 2016-02-24  Renlin Li  <renlin.li@arm.com>
2083
2084         * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
2085         * testsuite/gas/arm/copro.d: Update.
2086
2087 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2088
2089         * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
2090         * doc/c-arm.texi (ARM Options): Document cortex-a32.
2091
2092 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2093
2094         * doc/c-arm.texi (ARM Options): Document cortex-a17.
2095
2096 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2097
2098         * testsuite/gas/elf/elf.exp: Skip tests for common directive on
2099         hpux.
2100
2101 2016-02-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2102
2103         * output-file.c (output_file_create): Make file name argument const.
2104         (output_file_close): Likewise.
2105         * output-file.h (output_file_create): Adjust.
2106         (output_file_close): Likewise.
2107         * depend.c (quote_string_for_make): Make src argument const char *.
2108         (register_dependency): Likewise.
2109         (wrap_output): Likewise.
2110         * as.h (register_dependency): Adjust.
2111         * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
2112         as_where ();
2113         * symbols.c (S_SET_EXTERNAL): Likewise.
2114         * input-scrub.c (as_where): Return the file name.
2115         * as.h (as_where): Adjust prototype.
2116         * app.c (do_scrub_chars): Adjust.
2117         * cond.c (s_elseif): Likewise.
2118         (s_else): Likewise.
2119         (initialize_cframe): Likewise.
2120         * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
2121         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
2122         * config/obj-som.c (obj_som_init_stab_section): Likewise.
2123         * config/tc-aarch64.c (output_info): Likewise.
2124         * config/tc-ia64.c (md_assemble): Likewise.
2125         (dot_alias): Likewise.
2126         * config/tc-m68k.c (m68k_frob_label): Likewise.
2127         * config/tc-mmix.c (s_bspec): Likewise.
2128         (mmix_handle_mmixal): Likewise.
2129         * config/tc-rx.c (rx_include): Likewise.
2130         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
2131         (tic54x_adjust_symtab): Likewise.
2132         * config/tc-xtensa.c (directive_push): Likewise.
2133         (xtensa_sanity_check): Likewise.
2134         (xtensa_relax_frag): Likewise.
2135         (md_convert_frag): Likewise.
2136         (tinsn_to_slotbuf): Likewise.
2137         * dwarf2dbg.c (dwarf2_where): Likewise.
2138         * ecoff.c (add_file): Likewise.
2139         (ecoff_generate_asm_lineno): Likewise.
2140         * expr.c (make_expr_symbol): Likewise.
2141         * frags.c (frag_new): Likewise.
2142         (frag_var_init): Likewise.
2143         * listing.c (listing_newline): Likewise.
2144         * messages.c (identify): Likewise.
2145         (as_show_where): Likewise.
2146         (as_warn_internal): Likewise.
2147         (as_bad_internal): Likewise.
2148         * read.c (s_irp): Likewise.
2149         (s_macro): Likewise.
2150         (s_reloc): Likewise.
2151         * stabs.c (stabs_generate_asm_file): Likewise.
2152         (stabs_generate_asm_lineno): Likewise.
2153         (stabs_generate_asm_func): Likewise.
2154         * write.c (fix_new_internal): Likewise.
2155         * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
2156         (as_warn_value_out_of_range): Adjust prototype.
2157         (as_bad_value_out_of_range): Adjust prototype.
2158         * messages.c (identify): Make file name argument const char *.
2159         (as_warn_internal): Likewise.
2160         (as_warn_where): Likewise.
2161         (as_bad_internal): Likewise.
2162         (as_bad_where): Likewise.
2163         (as_internal_value_out_of_range): Likewise.
2164         (as_warn_value_out_of_range): Likewise.
2165         (as_bad_value_out_of_range): Likewise.
2166         * as.h (found_comment_file): Change type to const char *.
2167         * cond.c (file_line::file): Likewise.
2168         * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
2169         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
2170         * config/obj-som.c (obj_som_init_stab_section): Likewise.
2171         * config/tc-aarch64.c (output_info): Likewise.
2172         * config/tc-alpha.c (insert_operand): Likewise.
2173         * config/tc-arc.c (insert_operand): Likewise.
2174         * config/tc-d30v.c (check_size): Likewise.
2175         * config/tc-ia64.c (struct alias): Likewise.
2176         * config/tc-m68k.c (struct label_line): Likewise.
2177         * config/tc-mcore.c (md_apply_fix): Likewise.
2178         * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
2179         * config/tc-mips.c (mips16_immed): Likewise.
2180         * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
2181         * config/tc-ppc.c (ppc_insert_operand): Likewise.
2182         * config/tc-rx.c (rx_include): Likewise.
2183         * config/tc-s390.c (s390_insert_operand): Likewise.
2184         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
2185         (tic54x_adjust_symtab): Likewise.
2186         * config/tc-tilegx.c (insert_operand): Likewise.
2187         (apply_special_operator): Likewise.
2188         * config/tc-tilepro.c (insert_operand): Likewise.
2189         * config/tc-xtensa.c (directive_push): Likewise.
2190         * ecoff.c (add_file): Likewise.
2191         (ecoff_generate_asm_lineno): Likewise.
2192         * listing.c (listing_newline): Likewise.
2193         * read.c (s_irp): Likewise.
2194         * write.c (install_reloc): Likewise.
2195         * write.h (struct fix): Likewise.
2196         * input-file.c (file_name): Change type to const char *.
2197         (saved_file::file_name): Likewise.
2198         (input_file_open): Change type of argument to const char *.
2199         * input-file.h (input_file_open): Adjust.
2200         * input-scrub.c (logical_input_file): change type to const char *.
2201         (physical_input_file): Likewise.
2202         (struct input_save): Adjust.
2203         (input_scrub_push): Adjust.
2204         (input_scrub_begin): Adjust.
2205         (as_where): Adjust.
2206         * input-scrub.c (input_scrub_new_file): Make file name argument const.
2207         (input_scrub_include_file): Likewise.
2208         (new_logical_line_flags): Likewise.
2209         (new_logical_line): Likewise.
2210         * as.h: Adjust.
2211         * frags.h (struct frag): Change type of fr_file to const char *.
2212         * expr.c (expr_symbol_where): Change type of file argument to
2213         const char **.
2214         * expr.h (expr_symbol_where): Likewise.
2215         * config/tc-i370.c (md_apply_fix): adjust.
2216         * config/tc-mmix.c (mmix_md_end): Likewise.
2217         * config/tc-ppc.c (md_apply_fix): Likewise.
2218         * config/tc-s390.c (md_apply_fix): Likewise.
2219         * symbols.c (report_op_error): Likewise.
2220         (resolve_symbol_value): Likewise.
2221         * config/tc-ia64.c (slot::src_file): Change type to const char *.
2222         (rsrc::file): Likewise.
2223         * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
2224         const char *.
2225         (xtensa_relax_frag): Likewise.
2226         (md_convert_frag): Likewise.
2227         (tinsn_to_slotbuf): Likewise.
2228         * expr.c (expr_symbol_line): Likewise.
2229         * macro.c (define_macro): Likewise.
2230         * macro.h (macro_struct): Likewise.
2231         * messages.c (as_show_where): Likewise.
2232         * read.c (s_macro): Likewise.
2233         * stabs.c (stabs_generate_asm_file): Likewise.
2234         (generate_asm_file): Likewise.
2235         (stabs_generate_asm_lineno): Likewise.
2236         * write.h (struct reloc_list): Likewise.
2237         * input-scrub.c (as_where): Change return type to const char *.
2238         * as.h (as_wheree): Adjust.
2239
2240 2016-02-21  H.J. Lu  <hongjiu.lu@intel.com>
2241
2242         * write.c (compress_debug): Move BFD compression bits setting
2243         to ...
2244         (write_object_file): Here.
2245
2246 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
2247
2248         * config/tc-i386.c (register_number): Check RegVRex.
2249         * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
2250         with %zmm19 and %zmm3.
2251         * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
2252         * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
2253
2254 2016-02-19  Matthew Wahab  <matthew.wahab@arm.com>
2255             Jiong Wang  <jiong.wang@arm.com>
2256
2257         * config/tc-arm.c (arm_ext_fp16): New.
2258         (arm_extensions): New entry for "fp16".
2259
2260 2016-02-19  Nick Clifton  <nickc@redhat.com>
2261
2262         PR 19630
2263         * read.c (read_a_source_file): Check for assemble_one returning
2264         with input_line_pointer set to NULL.
2265
2266 2016-02-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2267
2268         * listing.c (rebuffer_line): Change return type to void.
2269
2270         * symbols.c (decode_local_label_name): Make type a const char *.
2271         * listing.c (print_source): Make type of p const char *.
2272         (print_line): Make type of string const char *.
2273         (buffer_line): Return const char *.
2274         (title): Make type const char *.
2275         (subtitle): Likewise.
2276         (listing_listing): Make type of p const char *.
2277         * messages.c (as_internal_value_out_of_range): Make type of prefix
2278         const char *.
2279         * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
2280         and string const char *.
2281         * read.c (_bfd_rel): Make type of name const char *.
2282         * app.c (out_string): Change type to const char *.
2283         (struct app_save::out_string): Likewise.
2284
2285 2016-02-18  Dan Gisselquist  <dgisselq@verizon.net>
2286             Nick Clifton  <nickc@redhat.com>
2287
2288         * read.c (finish_bundle): Avoid recording a negative alignment.
2289         (do_align): Use unsigned values for n, len and max.  Only create
2290         a frag if the alignment requirement is greater than the minimum
2291         byte alignment.  Avoid recording a negative alignment.
2292         (s_align): Use unsigned values where appropriate.
2293         (bss_alloc): Use an unsigned value for the alignment.
2294         (sizeof_sleb128): Add a comment noting that we encode one octet
2295         per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
2296         (emit_leb129_expr): Abort if the emitted encoding was longer than
2297         expected.
2298         * read.h (output_leb128): Update prototype.
2299         (sizeof_leb128): Update prototype.
2300         (bss_alloc): Update prototype.
2301         * write.c (record_alignment): Use an unsigned value for the
2302         alignment.  Do not record alignments less than the minimum
2303         alignment for a byte.
2304         * write.h (record_alignment): Update prototype.
2305
2306 2016-02-17  Max Filippov  <jcmvbkbc@gmail.com>
2307
2308         * config/tc-xtensa.c (xtensa_move_literals): Fix check for
2309         .init.literal/.fini.literal section name.
2310         * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
2311         list of xtensa tests.
2312         * testsuite/gas/xtensa/init-fini-literals.d: New file:
2313         init-fini-literals test result patterns.
2314         * testsuite/gas/xtensa/init-fini-literals.s: New file:
2315         init-fini-literals test.
2316
2317 2016-02-17  Nick Clifton  <nickc@redhat.com>
2318
2319         * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
2320         devices.csv file as of March 2016.
2321
2322 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
2323
2324         * config/tc-arc.c (tc_arc_frame_initial_instructions): New
2325         function.
2326         (tc_arc_regname_to_dw2regnum): Likewise.
2327         * config/tc-arc.h (TARGET_USE_CFIPOP): Define
2328         (tc_cfi_frame_initial_instructions): Likewise.
2329         (tc_regname_to_dw2regnum): Likewise.
2330         * testsuite/gas/cfi/cfi-arc-1.d: New file.
2331         * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
2332         * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
2333
2334 2016-02-16  Trevor Saunders  <tbsaunde@tbsaunde.org>
2335
2336         * doc/internals.texi (S_IS_EXTERN): Remove.
2337
2338 2016-02-16  Nick Clifton  <nickc@redhat.com>
2339
2340         * doc/as.texinfo (Section): Fix up texinfo snafus in previous
2341         update.
2342
2343 2016-02-16  Renlin Li  <renlin.li@arm.com>
2344
2345         PR gas/19620
2346         * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
2347         * testsuite/gas/aarch64/movw_label.d: New.
2348         * testsuite/gas/aarch64/movw_label.s: New.
2349
2350 2016-02-15  Vinay Kumar G. <Vinay.G@kpit.com>
2351
2352         PR gas/19556
2353         * config/rx-parse.y (MOV):  Opcode generation for index
2354         register addressing mode.
2355         * testsuite/gas/rx/rx.exp: Updated for new testcase.
2356         * testsuite/gas/rx/pr19665.s: New file.
2357         * testsuite/gas/rx/pr19665.s: New file.
2358         * testsuite/gas/rx/mov.d: Update expected output.
2359
2360 2016-02-15  Nick Clifton  <nickc@redhat.com>
2361
2362         * doc/as.texinfo (.section): Document that numeric values can now
2363         be used for the flags and type fields of the ELF target's .section
2364         directive.  Add notes about the restrictions on setting flags and
2365         types.
2366         * config/obj-elf.c (obj_elf_change_section): Allow known sections
2367         to be given processor specific section types.  Allow processor and
2368         application specific flags of a section to be set after
2369         definition.
2370         (obj_elf_parse_section_letters): Handle parsing numeric values.
2371         (obj_elf_section_type): Handle parsing numeric values.
2372         (obj_elf_section): Allow numeric type values.
2373         * config/obj-elf.h (obj_elf_change_section): Update prototype.
2374         * testsuite/gas/elf/section10.d: New test.
2375         * testsuite/gas/elf/section10.s: Source file for new test.
2376         * testsuite/gas/elf/elf.exp: Run the new test.
2377         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
2378         the description of the flags produced by readelf.
2379         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
2380         * NEWS: Mention the new feature.
2381
2382 2016-02-11  Nick Clifton  <nickc@redhat.com>
2383
2384         PR gas/19614
2385         * dw2gencfi.c (cfi_sections_set): Delay setting this variable
2386         until it is actually used.
2387         (cfi_set_sections): Set cfi_sections_set to true.
2388         (dot_cfi_startproc): Likewise.
2389         (dot_cfi_endproc): Likewise.
2390         (dot_cfi_fde_data): Likewise.
2391         (cfi_finish): Likewise.
2392         (dot_cfi_sections): Do not set cfi_sections_set.
2393         * doc/as.texinfo (.cfi_sections): Note that targets can provide
2394         their own cfi section name.  Also note that the directive can be
2395         reissued provided that CFI generation has not started.
2396         * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
2397         .cfi_endproc directives so that the redefinition of .cfi_sections
2398         will trigger the generation of the error message.
2399         * testsuite/gas/mips/compact-eh-err2.l: Update expected line
2400         number of error message.
2401
2402 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
2403             Janek van Oirschot <jvanoirs@synopsys.com>
2404
2405         * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
2406         (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
2407         Define.
2408         (arc_flags, arc_relax_type): New structure.
2409         * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
2410         (RELAX_TABLE_ENTRY_MAX): New define.
2411         (relaxation_state, md_relax_table, arc_relaxable_insns)
2412         (arc_num_relaxable_ins): New variable.
2413         (rlx_operand_type, arc_rlx_types): New enums.
2414         (arc_relaxable_ins): New structure.
2415         (OPTION_RELAX): New option.
2416         (arc_insn): New relax member.
2417         (arc_flags): Remove.
2418         (relax_insn_p): New function.
2419         (apply_fixups): Likewise.
2420         (relaxable_operand): Likewise.
2421         (may_relax_expr): Likewise.
2422         (relaxable_flag): Likewise.
2423         (arc_pcrel_adjust): Likewise.
2424         (md_estimate_size_before_relax): Implement.
2425         (md_convert_frag): Likewise.
2426         (md_parse_option): Handle new mrelax option.
2427         (md_show_usage): Likewise.
2428         (assemble_insn): Set relax member.
2429         (emit_insn0): New function.
2430         (emit_insn1): Likewise.
2431         (emit_insn): Handle relaxation case.
2432         * NEWS: Mention the new relaxation option.
2433         * doc/c-arc.texi (ARC Options): Document new mrelax option.
2434         * doc/as.texinfo (Target ARC Options): Likewise.
2435         * testsuite/gas/arc/relax-avoid1.d: New file.
2436         * testsuite/gas/arc/relax-avoid1.s: Likewise.
2437         * testsuite/gas/arc/relax-avoid2.d: Likewise.
2438         * testsuite/gas/arc/relax-avoid2.s: Likewise.
2439         * testsuite/gas/arc/relax-avoid3.d: Likewise.
2440         * testsuite/gas/arc/relax-avoid3.s: Likewise.
2441         * testsuite/gas/arc/relax-b.d: Likewise.
2442         * testsuite/gas/arc/relax-b.s: Likewise.
2443
2444 2016-02-08  Nick Clifton  <nickc@redhat.com>
2445
2446         * config/tc-ia64.c (dot_prologue): Fix formatting.
2447
2448 2016-02-04  Nick Clifton  <nickc@redhat.com>
2449
2450         * config/obj-elf.c (obj_elf_change_section): Remove support for
2451         ARM NOREAD sections.
2452         * config/tc-arm.c (arm_elf_section_letter): Delete.
2453         * config/tc-arm.h (md_elf_section_letter): Delete.
2454         * doc/c-arm.texi (ARM Section Attribute): Delete section.
2455         * testsuite/gas/arm/section-execute-only.d: Delete.
2456         * testsuite/gas/arm/section-execute-only.s: Delete.
2457
2458 2016-02-04  Nick Clifton  <nickc@redhat.com>
2459
2460         PR target/19561
2461         * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
2462         to handle encoding of RRUX instruction.
2463         * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
2464         shift instructions.
2465         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
2466
2467 2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
2468
2469         * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
2470         substitutions for BFD_RELOC_* as unsigned.
2471         * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
2472         * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
2473         * testsuite/gas/xtensa/loc.s: New file: loc test.
2474
2475 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
2476
2477         * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
2478
2479 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2480
2481         PR gas/19520
2482         * NEWS: Mention new command line option -mrelax-relocations and
2483         new configure option --enable-x86-relax-relocations for x86
2484         target.
2485         * config.in: Regenerated.
2486         * configure.ac: Add --enable-x86-relax-relocations.
2487         (ac_default_x86_relax_relocations): New.  Default to 1 except
2488         for x86 Solaris targets older than Solaris 12.
2489         (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
2490         * configure: Likewise.
2491         * config/tc-i386.c (generate_relax_relocations): New.
2492         (OPTION_MRELAX_RELOCATIONS): Likewise.
2493         (output_disp): Don't generate relax relocations if
2494         generate_relax_relocations is 0.
2495         (md_longopts): Add -mrelax-relocations.
2496         (md_show_usage): Likewise.
2497         (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
2498         * doc/c-i386.texi: Document -mrelax-relocations=.
2499         * testsuite/gas/i386/got-no-relax.d: New file.
2500         * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
2501         * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
2502         * testsuite/gas/i386/localpic.d: Likewise.
2503         * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
2504         * testsuite/gas/i386/reloc32.d: Likewise.
2505         * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
2506         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
2507         * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
2508         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
2509         * testsuite/gas/i386/i386.exp: Run got-no-relax and
2510         x86-64-gotpcrel-no-relax.
2511
2512 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2513
2514         * NEWS: Mention new command line option -mfence-as-lock-add=yes
2515         for x86 target.
2516
2517 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2518
2519         * NEWS: Remove duplicated marker for 2.26.
2520
2521 2016-02-02  Renlin Li  <renlin.li@arm.com>
2522
2523         * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
2524
2525 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2526
2527         * testsuite/gas/ip2k/allinsn.d: New file.
2528         * testsuite/gas/ip2k/allinsn.s: New file.
2529         * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
2530
2531 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2532
2533         * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
2534         some load instructions.
2535         * testsuite/gas/epiphany/allinsn.d: Likewise.
2536         * testsuite/gas/epiphany/regression.d: Likewise.
2537
2538 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2539
2540         * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
2541         suffixes from instruction mnemonics in expected output.
2542         * testsuite/gas/epiphany/allinsn.d: Likewise.
2543         * testsuite/gas/epiphany/regression.d: Likewise.
2544         * testsuite/gas/epiphany/sample.d: Likewise.
2545
2546 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2547
2548         * testsuite/gas/epiphany/addr-syntax.d: Update expected register
2549         names.
2550         * testsuite/gas/epiphany/allinsn.d: Likewise.
2551         * testsuite/gas/epiphany/sample.d: Likewise.
2552
2553 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2554
2555         * testsuite/gas/epiphany/sample.d: Update expected output.
2556
2557 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
2558
2559         * config/tc-arc.c (md_apply_fix): Allow addendum.
2560         (arc_reloc_op): Allow complex expressions for tpoff.
2561         (md_apply_fix): Handle resolved TLS local symbol.
2562         * testsuite/gas/arc/tls-relocs1.d: New file.
2563         * testsuite/gas/arc/tls-relocs1.s: Likewise.
2564
2565 2016-02-01  Loria  <Loria@phantasia.org>
2566
2567         PR target/19311
2568         * config/tc-arm.c (encode_arm_immediate): Recode to improve
2569         efficiency and avoid an LLVM loop optimization bug.
2570
2571 2016-02-01  Nick Clifton  <nickc@redhat.com>
2572
2573         * config/tc-microblaze.c (parse_imm): Fix compile time warning
2574         message extending a negative 32-bit value into a larger signed
2575         value on a 32-bit host.
2576
2577 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2578
2579         PR gas/19532
2580         * configure.ac (compressed_debug_sections): Replace == with =.
2581         * configure: Regenerated.
2582
2583 2016-01-29  Andrew Senkevich  <andrew.senkevich@intel.com>
2584             H.J. Lu  <hongjiu.lu@intel.com>
2585
2586         * config/tc-i386.c (avoid_fence): New.
2587         (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
2588         is true.
2589         (OPTION_FENCE_AS_LOCK_ADD): New.
2590         (md_longopts): Add -mfence-as-lock-add.
2591         (md_parse_option): Handle -mfence-as-lock-add.
2592         (md_show_usage): Add -mfence-as-lock-add=[no|yes].
2593         * doc/c-i386.texi (-mfence-as-lock-add): Document.
2594         * testsuite/gas/i386/i386.exp: Run new tests.
2595         * testsuite/gas/i386/fence-as-lock-add.s: New.
2596         * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
2597         * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
2598         * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
2599         * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
2600
2601 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
2602
2603         * configure.ac (compressed_debug_sections): Remove trailing `]'.
2604         * configure: Regenerated.
2605
2606 2016-01-25  H.J. Lu  <hongjiu.lu@intel.com>
2607
2608         * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
2609         (OPTION_MOMIT_LOCK_PREFIX): This.
2610         (md_longopts): Updated.
2611         (md_parse_option): Likewise.
2612
2613 2016-01-25  Catherine Moore  <clm@codesourcery.com>
2614
2615         * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
2616         if abicalls are in effect.
2617         * testsuite/gas/mips/sdata-gp.s: New test.
2618         * testsuite/gas/mips/sdata-gp.d: New expected output
2619         * testsuite/gas/mips/mips.exp: Run new test.
2620
2621 2016-01-25  Renlin Li  <renlin.li@arm.com>
2622
2623         * testsuite/gas/arm/thumb2_it_search.d: New.
2624         * testsuite/gas/arm/thumb2_it_search.s: New.
2625
2626 2016-01-21  Nick Clifton  <nickc@redhat.com>
2627
2628         PR gas/19454
2629         * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
2630         with arm-netbsdelf target.
2631         * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
2632
2633 2016-01-20  Nick Clifton  <nickc@redhat.com>
2634
2635         PR 19456
2636         * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
2637         * testsuite/gas/arm/blx-bl-convert.d
2638         * testsuite/gas/arm/plt-1.d: Likewise.
2639         * testsuite/gas/arm/reloc-bad.d: Likewise.
2640         * testsuite/gas/arm/thumb-w-good.d: Likewise.
2641         * testsuite/gas/arm/thumb2_pool.d: Likewise.
2642         * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
2643         * testsuite/gas/arm/tls_vxworks.d: Update expected output.
2644
2645         PR 19499
2646         * doc/as.texinfo (Errors): Correct documentation describing the
2647         interaction of .file and .line with warning and error messages.
2648
2649         PR 19458
2650         * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
2651         * testsuite/gas/arm/archv8m-main.d: Likewise.
2652         * testsuite/gas/arm/archv8m-base.d: Likewise.
2653
2654 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
2655
2656         * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
2657         * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
2658         * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
2659
2660 2016-01-20  Mickael Guene  <mickael.guene@st.com>
2661             Terry Guo  <terry.guo@arm.com>
2662
2663         * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
2664         SHF_ARM_NOREAD section flag.
2665         * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
2666         handle letter 'y'.
2667         (arm_elf_section_letter) : Declare it.
2668         * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
2669         SHF_ARM_NOREAD section flag.
2670         * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
2671
2672         * testsuite/gas/arm/section-execute-only.s: New test case.
2673         * testsuite/gas/arm/section-execute-only.d: Expected output.
2674
2675 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
2676
2677         * config/tc-mips.c (micromips_insn_length): Remove the mention
2678         of 48-bit microMIPS instructions.
2679
2680 2016-01-18  Alan Modra  <amodra@gmail.com>
2681
2682         * configure: Regenerate.
2683
2684 2016-01-17  Alan Modra  <amodra@gmail.com>
2685
2686         * configure: Regenerate.
2687
2688 2016-01-17  Alan Modra  <amodra@gmail.com>
2689
2690         * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
2691
2692 2016-01-14  Nick Clifton  <nickc@redhat.com>
2693
2694         * testsuite/gas/rl78/sp-relative-movw.s: New test.
2695         * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
2696         * testsuite/gas/rl78/rl78.exp: Run the new test.
2697
2698 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
2699
2700         * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
2701         * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
2702
2703 2016-01-13  Maciej W. Rozycki  <macro@imgtec.com>
2704
2705         * config/tc-nios2.c (output_movia): Preset `code' to 0.
2706
2707 2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
2708
2709         * config/tc-h8300.c (get_operand): Remove spurious condition in
2710         test for closing parenthesis.
2711
2712 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
2713
2714         * config/tc-arm.c (arm_ext_v8_2): New.
2715         (insns): Add "esb".
2716         * testsuite/gas/arm/armv8_2-a.d: New.
2717         * testsuite/gas/arm/armv8_2-a.s: New.
2718
2719 2016-01-12  Alan Modra  <amodra@gmail.com>
2720
2721         * testsuite/gas/ppc/vsx3.d: Accept nop padding.
2722
2723 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
2724
2725         * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
2726         xvcmpnesp, xvcmpnesp.>: Delete tests.
2727         * testsuite/gas/ppc/power9.s: Likewise.
2728         * testsuite/gas/ppc/vsx3.d: Likewise.
2729         * testsuite/gas/ppc/vsx3.s: Likewise.
2730
2731 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
2732
2733         PR gas/13050
2734         * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
2735         * testsuite/gas/m68k/p13050-1.s: New file.
2736         * testsuite/gas/m68k/p13050-2.d: New file.
2737         * testsuite/gas/m68k/p13050-2.s: New file.
2738
2739 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2740
2741         * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
2742         * testsuite/gas/arc/add.d: Likewise.
2743         * testsuite/gas/arc/and.d: Likewise.
2744         * testsuite/gas/arc/asl.d: Likewise.
2745         * testsuite/gas/arc/asr.d: Likewise.
2746         * testsuite/gas/arc/bic.d: Likewise.
2747         * testsuite/gas/arc/extb.d: Likewise.
2748         * testsuite/gas/arc/extw.d: Likewise.
2749         * testsuite/gas/arc/j.d: Likewise.
2750         * testsuite/gas/arc/jl.d: Likewise.
2751         * testsuite/gas/arc/ld2.d: Likewise.
2752         * testsuite/gas/arc/lsr.d: Likewise.
2753         * testsuite/gas/arc/mov.d: Likewise.
2754         * testsuite/gas/arc/or.d: Likewise.
2755         * testsuite/gas/arc/pcl-relocs.d: Likewise.
2756         * testsuite/gas/arc/pcrel-relocs.d: Likewise.
2757         * testsuite/gas/arc/pic-relocs.d: Likewise.
2758         * testsuite/gas/arc/plt-relocs.d: Likewise.
2759         * testsuite/gas/arc/rlc.d: Likewise.
2760         * testsuite/gas/arc/ror.d: Likewise.
2761         * testsuite/gas/arc/rrc.d: Likewise.
2762         * testsuite/gas/arc/sbc.d: Likewise.
2763         * testsuite/gas/arc/sda-relocs.d: Likewise.
2764         * testsuite/gas/arc/sda-relocs2.d: Likewise.
2765         * testsuite/gas/arc/sexb.d: Likewise.
2766         * testsuite/gas/arc/sexw.d: Likewise.
2767         * testsuite/gas/arc/st.d: Likewise.
2768         * testsuite/gas/arc/sub.d: Likewise.
2769         * testsuite/gas/arc/tls-relocs.d: Likewise.
2770         * testsuite/gas/arc/xor.d: Likewise.
2771
2772 2016-01-01  Alan Modra  <amodra@gmail.com>
2773
2774         Update year range in copyright notice of all files.
2775
2776 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
2777 \f
2778 Copyright (C) 2016 Free Software Foundation, Inc.
2779
2780 Copying and distribution of this file, with or without modification,
2781 are permitted in any medium without royalty provided the copyright
2782 notice and this notice are preserved.
2783
2784 Local Variables:
2785 mode: change-log
2786 left-margin: 8
2787 fill-column: 74
2788 version-control: never
2789 End: