gas/arc: Handle multiple arc_opcode chains for same mnemonic
[external/binutils.git] / gas / ChangeLog
1 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2
3         * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
4         structure.
5         (arc_opcode_hash_entry_iterator_init): New function.
6         (arc_opcode_hash_entry_iterator_next): New function.
7         (find_opcode_match): Iterate over all arc_opcode entries
8         referenced by the arc_opcode_hash_entry passed in as a parameter.
9
10 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
11
12         * config/tc-arc.c (arc_find_opcode): Now returns
13         arc_opcode_hash_entry pointer.
14         (find_opcode_match): Update argument type, extract arc_opcode from
15         incoming arc_opcode_hash_entry.
16         (find_special_case_pseudo): Update return type.
17         (find_special_case_flag): Update return type.
18         (find_special_case): Update return type.
19         (assemble_tokens): Lookup arc_opcode_hash_entry based on
20         instruction mnemonic, then use find_opcode_match to identify
21         specific arc_opcode.
22
23 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
24
25         * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
26         (arc_find_opcode): New function.
27         (find_special_case_pseudo): Use arc_find_opcode.
28         (find_special_case_flag): Likewise.
29         (assemble_tokens): Likewise.
30         (md_begin): Build hash using struct arc_opcode_hash_entry.
31
32 2016-04-07  Claudiu Zissulescu  <claziss@synopsys.com>
33
34         * config/tc-arc.c (arc_option): Prepare string for automatic
35         translation.
36         (declare_register): Likewise.
37
38 2016-04-06  James Greenhalgh  <james.greenhalgh@arm.com>
39
40         * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
41         Correct entry for RDMA.  Alpha sort entries.
42
43 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
44
45         * config/tc-arc.c (tokenize_flags): Allow greater range of
46         characters into flag names.
47
48 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
49
50         * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
51         new de_fault label.
52         (preprocess_operands): Delete.
53         (assemble_tokens): Remove call to preprocess_operands.
54
55 2016-04-07  Nick Clifton  <nickc@redhat.com>
56
57         PR gas/19910
58         * config/tc-sparc.c (sparc_ip): Report an error if the expression
59         inside a %-macro could not be fully parsed.
60         * expr.c (integer_constant): Accept and ignore U suffixes to
61         integers.
62         (operand): When a missing closing parenthesis is encountered,
63         report the character that was found instead.
64         * testsuite/gas/mips/tls-ill.l: Update expected error message.
65         * testsuite/gas/sparc/pr19910-1.d: New test driver.
66         * testsuite/gas/sparc/pr19910-1.s: New test.
67         * testsuite/gas/sparc/pr19910-2.l: Expected error output.
68         * testsuite/gas/sparc/pr19910-2.s: New test.
69         * testsuite/gas/sparc/sparc.exp: Run the new tests.
70
71 2016-04-06  Nick Clifton  <nickc@redhat.com>
72
73         * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
74         an EINT instruction.  Warn/fix as necessary.
75         * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
76         * testsuite/gas/msp430/bad.l: Update expected messages.
77
78 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
79
80         * testsuite/gas/arc/nps400-1.d: Update expected results.
81         * testsuite/gas/arc/nps400-1.s: Additional test cases.
82
83 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
84
85         * config/tc-arc.c (is_code_density_p): Compare directly the
86         subclass field.
87         (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
88         (check_cpu_feature): New function.
89         (find_opcode_match): Use check_cpu_feature function.
90         (preprocess_operands): Likewise.
91         (md_parse_option): Use mfpuda, mdpfp, mspfp options.
92         * testsuite/gas/arc/tdpfp.d: New file.
93         * testsuite/gas/arc/tfpuda.d: Likewise.
94         * testsuite/gas/arc/tfpx.s: Likewise.
95
96 2016-04-05  Jiong Wang  <jiong.wang@arm.com>
97
98         * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
99         * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
100         * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
101         * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
102         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
103         * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
104         * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
105         * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
106         for Thumb.
107         * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
108
109 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
110
111         * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
112         JUMP instructions type.
113         * testsuite/gas/arc/relocs-errors.d: New file.
114         * testsuite/gas/arc/relocs-errors.err: Likewise.
115         * testsuite/gas/arc/relocs-errors.s: Likewise.
116
117 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
118
119         PR gas/19498
120         * testsuite/gas/i386/i386.exp: Run pr19498.
121         * testsuite/gas/i386/pr19498.d: New file.
122         * testsuite/gas/i386/pr19498.s: Likewise.
123
124 2016-04-04  Andrew Burgess  <andrew.burgess@embecosm.com>
125
126         * config/tc-arc.h: Include 'opcode/arc.h'.
127         (MAX_INSN_ARGS): Delete.
128         (MAX_INSN_FLGS): Delete.
129
130 2016-04-04  Alan Modra  <amodra@gmail.com>
131
132         PR 19498
133         * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
134         from function on all paths that set sy_resolving.
135
136 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
137
138         * app.c (app_push): use XNEW macro.
139         * as.c: Likewise.
140         * config/obj-elf.c (obj_elf_change_section): Likewise.
141         (elf_copy_symbol_attributes): Likewise.
142         (obj_elf_size): Likewise.
143         (build_group_lists): Likewise.
144         * config/tc-aarch64.c (add_operand_error_record): Likewise.
145         (md_assemble): Likewise.
146         (tc_gen_reloc): Likewise.
147         (get_upper_str): Likewise.
148         (aarch64_parse_features): Likewise.
149         * config/tc-arm.c (insert_reg_alias): Likewise.
150         (insert_neon_reg_alias): Likewise.
151         (find_or_make_literal_pool): Likewise.
152         (s_arm_elf_cons): Likewise.
153         (add_unwind_opcode): Likewise.
154         (arm_parse_extension): Likewise.
155         * config/tc-avr.c (create_record_for_frag): Likewise.
156         * config/tc-crx.c: Likewise.
157         * config/tc-d30v.c: Likewise.
158         * config/tc-dlx.c (s_proc): Likewise.
159         * config/tc-ft32.c: Likewise.
160         * config/tc-h8300.c: Likewise.
161         * config/tc-hppa.c (pa_proc): Likewise.
162         (create_new_space): Likewise.
163         (create_new_subspace): Likewise.
164         * config/tc-i860.c: Likewise.
165         * config/tc-i960.c: Likewise.
166         * config/tc-ia64.c: Likewise.
167         * config/tc-iq2000.c (iq2000_add_macro): Likewise.
168         (iq2000_record_hi16): Likewise.
169         * config/tc-m32c.c (m32c_indirect_operand): Likewise.
170         * config/tc-m32r.c (debug_sym): Likewise.
171         (m32r_record_hi16): Likewise.
172         * config/tc-m68k.c (m68k_ip): Likewise.
173         (md_begin): Likewise.
174         * config/tc-mcore.c: Likewise.
175         * config/tc-microblaze.c (check_got): Likewise.
176         * config/tc-mips.c (append_insn): Likewise.
177         (s_mipsset): Likewise.
178         (mips_record_label): Likewise.
179         (s_mips_end): Likewise.
180         * config/tc-mmix.c (mmix_frob_file): Likewise.
181         * config/tc-mn10200.c: Likewise.
182         * config/tc-mn10300.c: Likewise.
183         * config/tc-moxie.c: Likewise.
184         * config/tc-msp430.c: Likewise.
185         * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
186         * config/tc-ns32k.c: Likewise.
187         * config/tc-or1k.c: Likewise.
188         * config/tc-pdp11.c: Likewise.
189         * config/tc-pj.c (fake_opcode): Likewise.
190         * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
191         (ppc_macro): Likewise.
192         (ppc_dwsect): Likewise.
193         (ppc_machine): Likewise.
194         * config/tc-rl78.c (rl78_frag_init): Likewise.
195         * config/tc-rx.c (rx_frag_init): Likewise.
196         * config/tc-s390.c (s390_lit_suffix): Likewise.
197         (s390_machine): Likewise.
198         (s390_machinemode): Likewise.
199         * config/tc-score.c (s3_insert_reg): Likewise.
200         (s3_gen_reloc): Likewise.
201         * config/tc-score7.c (s7_insert_reg): Likewise.
202         (s7_gen_reloc): Likewise.
203         * config/tc-tic30.c (tic30_operand): Likewise.
204         * config/tc-tic4x.c (tic4x_inst_make): Likewise.
205         * config/tc-tic54x.c (stag_add_field): Likewise.
206         (tic54x_struct): Likewise.
207         (tic54x_space): Likewise.
208         (tic54x_field): Likewise.
209         (tic54x_mlib): Likewise.
210         (subsym_substitute): Likewise.
211         * config/tc-tic6x.c (tic6x_frob_label): Likewise.
212         * config/tc-vax.c: Likewise.
213         * config/tc-xc16x.c: Likewise.
214         * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
215         (directive_push): Likewise.
216         (xtensa_begin_directive): Likewise.
217         (tokenize_arguments): Likewise.
218         (xtensa_add_literal_sym): Likewise.
219         (new_resource_table): Likewise.
220         (resize_resource_table): Likewise.
221         (emit_single_op): Likewise.
222         (xtensa_create_trampoline_frag): Likewise.
223         (xtensa_maybe_create_literal_pool_frag): Likewise.
224         (xtensa_add_config_info): Likewise.
225         (xtensa_realloc_fixup_cache): Likewise.
226         (add_subseg_info): Likewise.
227         (cache_literal_section): Likewise.
228         (add_xt_block_frags): Likewise.
229         (add_xt_prop_frags): Likewise.
230         (init_op_placement_info_table): Likewise.
231         (build_section_rename): Likewise.
232         * config/tc-z80.c: Likewise.
233         * config/tc-z8k.c: Likewise.
234         * depend.c (register_dependency): Likewise.
235         * dwarf2dbg.c (get_line_subseg): Likewise.
236         (dwarf2_gen_line_info_1): Likewise.
237         (get_filenum): Likewise.
238         * ecoff.c (allocate_scope): Likewise.
239         (allocate_vlinks): Likewise.
240         (allocate_shash): Likewise.
241         (allocate_thash): Likewise.
242         (allocate_tag): Likewise.
243         (allocate_forward): Likewise.
244         (allocate_thead): Likewise.
245         (allocate_lineno_list): Likewise.
246         * expr.c (make_expr_symbol): Likewise.
247         * hash.c (hash_new_sized): Likewise.
248         * input-file.c (input_file_push): Likewise.
249         * listing.c (file_info): Likewise.
250         (listing_newline): Likewise.
251         * macro.c (new_formal): Likewise.
252         (define_macro): Likewise.
253         * remap.c (add_debug_prefix_map): Likewise.
254         * symbols.c (symbol_find_noref): Likewise.
255         (define_dollar_label): Likewise.
256         (fb_label_instance_inc): Likewise.
257         (symbol_relc_make_value): Likewise.
258
259 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
260
261         * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
262         * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
263         (ppc_znop): Likewise.
264         (ppc_pe_section): Likewise.
265         (ppc_frob_symbol): Likewise.
266         * config/tc-tic30.c (tic30_operand): Likewise.
267         * config/tc-tic4x.c (tic4x_sect): Likewise.
268         (tic4x_usect): Likewise.
269
270 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
271
272         * config/tc-alpha.c: Const qualify FLT_CHARS.
273         * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
274         * config/tc-cris.h: Likewise.
275         * expr.c: Likewise.
276         * config/tc-mmix.c (md_atof): Adjust comment.
277         * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
278         * tc.h: Declare FLT_CHARS and EXP_CHARS.
279
280 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
281
282         * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
283         * config/tc-score7.c (s7_gen_reloc): Likewise.
284
285 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
286
287         * config/tc-arm.c (do_t_branch): Change the type of reloc to
288         bfd_reloc_code_real_type.
289
290 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
291
292         * config/bfin-parse.y (current_inputline): Remove definition.
293         * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
294
295 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
296
297         * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
298         strings.
299
300 2016-04-02  Alan Modra  <amodra@gmail.com>
301
302         PR 19896
303         * read.c (assign_symbol): Consume rest of line after an error
304         rather than continuing to process the line.
305
306 2016-04-01  Andrew Burgess  <andrew.burgess@embecosm.com>
307
308         * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
309         (MAX_FLAG_NAME_LENGTH): ...this.
310         (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
311         * config/tc-arc.c (tokenize_flags): Likewise.
312
313 2016-04-01  Alan Modra  <amodra@gmail.com>
314
315         * cgen.c (weak_operand_overflow_check): Return const char*.
316         * messages.c (as_internal_value_out_of_range): Formatting.
317         (as_warn_value_out_of_range): Consify prefix param.
318         (as_bad_value_out_of_range): Likewise.
319         * read.c (s_errwarn): Constify msg..
320         (s_float_space, float_cons): ..and err.
321         * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
322         ieee_md_atof, vax_md_atof): Update prototypes.
323         * tc.h (md_atof): Update prototype.
324         * config/atof-ieee.c (ieee_md_atof): Return const char*.
325         * config/atof-vax.c (vax_md_atof): Likewise.
326         * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
327         * config/tc-aarch64.c (md_atof): Return const char*.
328         * config/tc-alpha.c (s_alpha_section_name): Likewise.
329         (s_alpha_comm): Constify sec_name.
330         (section_name): Constify.
331         (s_alpha_section): Consify name..
332         (alpha_elf_section_letter): ..and ptr_msg param..
333         (md_atof): ..and return.
334         * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
335         * config/tc-arc.c (md_atof): Return const char*.
336         * config/tc-arm.c (md_atof): Likewise.
337         * config/tc-avr.c (md_atof): Likewise.
338         * config/tc-bfin.c (md_atof): Likewise.
339         * config/tc-cr16.c (md_atof): Likewise.
340         * config/tc-cris.c (md_atof): Likewise.
341         * config/tc-crx.c (md_atof): Likewise.
342         * config/tc-d10v.c (md_atof): Likewise.
343         * config/tc-d30v.c (md_atof): Likewise.
344         * config/tc-dlx.c (md_atof): Likewise.
345         * config/tc-epiphany.c (md_atof): Likewise.
346         * config/tc-fr30.c (md_atof): Likewise.
347         * config/tc-frv.c (md_atof): Likewise.
348         * config/tc-ft32.c (md_atof): Likewise.
349         * config/tc-h8300.c (md_atof): Likewise.
350         * config/tc-hppa.c (struct default_subspace_dict): Constify name.
351         (struct default_space_dict): Likewise.
352         (create_new_space): Constify name param.
353         (create_new_subspace): Likewise.
354         (is_defined_space, is_defined_subspace): Likewise.
355         (pa_parse_space_stmt): Constify space_name param.
356         (md_atof): Return const char*.
357         (pa_spaces_begin): Constify name.
358         * config/tc-i370.c (md_atof): Return const char*.
359         * config/tc-i386.c (md_atof): Likewise.
360         (x86_64_section_letter): Constify ptr_msg param.
361         * config/tc-i386.h (x86_64_section_letter): Update prototype.
362         * config/tc-i860.c (struct i860_it): Constify error.
363         (md_atof): Return const char*.
364         * config/tc-i960.c (md_atof): Likewise.
365         * config/tc-ia64.c (md_atof): Likewise.
366         (ia64_elf_section_letter): Constify ptr_msg param.
367         * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
368         * config/tc-ip2k.c (md_atof): Return const char*.
369         * config/tc-iq2000.c (md_atof): Likewise.
370         * config/tc-lm32.c (md_atof): Likewise.
371         * config/tc-m32c.c (md_atof): Likewise.
372         * config/tc-m32r.c (md_atof): Likewise.
373         * config/tc-m68hc11.c (md_atof): Likewise.
374         * config/tc-m68k.c (md_atof): Likewise.
375         * config/tc-mcore.c (md_atof): Likewise.
376         * config/tc-mep.c (md_atof): Likewise.
377         (mep_elf_section_letter): Constify ptr_msg param.
378         * config/tc-mep.h (mep_elf_section_letter): Update prototype.
379         * config/tc-metag.c (md_atof): Return const char*.
380         * config/tc-microblaze.c (md_atof): Likewise.
381         * config/tc-microblaze.h (md_atof): Delete prototype.
382         * config/tc-mips.c (mips_parse_argument_token): Constify err.
383         (md_atof): Return const char*.
384         * config/tc-mmix.c (md_atof): Likewise.
385         * config/tc-mn10200.c (md_atof): Likewise.
386         * config/tc-mn10300.c (md_atof): Likewise.
387         * config/tc-moxie.c (md_atof): Likewise.
388         * config/tc-msp430.c (md_atof): Likewise.
389         * config/tc-mt.c (md_atof): Likewise.
390         * config/tc-nds32.c (md_atof): Likewise.
391         * config/tc-nios2.c (md_atof): Likewise.
392         (nios2_elf_section_letter): Constify ptr_msg param.
393         * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
394         * config/tc-ns32k.c (md_atof): Return const char*.
395         * config/tc-or1k.c (md_atof): Likewise.
396         * config/tc-pdp11.c (struct pdp11_code): Constify error.
397         (md_atof): Return const char*.
398         * config/tc-pj.c (md_atof): Likewise.
399         * config/tc-ppc.c (md_atof): Likewise.
400         * config/tc-rl78.c (md_atof): Likewise.
401         * config/tc-rx.c (md_atof): Likewise.
402         * config/tc-s390.c (md_atof): Likewise.
403         * config/tc-score.c (s3_atof, md_atof): Likewise.
404         * config/tc-sh.c (md_atof): Likewise.
405         * config/tc-sparc.c (struct sparc_it): Constify error.
406         (md_atof): Return const char*.
407         * config/tc-spu.c (md_atof): Likewise.
408         * config/tc-tic30.c (md_atof): Likewise.
409         * config/tc-tic4x.c (md_atof): Likewise.
410         * config/tc-tic54x.c (md_atof): Likewise.
411         * config/tc-tic6x.c (md_atof): Likewise.
412         * config/tc-tilegx.c (md_atof): Likewise.
413         * config/tc-tilepro.c (md_atof): Likewise.
414         * config/tc-v850.c (parse_register_list, md_atof): Likewise.
415         * config/tc-vax.c (md_atof): Likewise.
416         * config/tc-visium.c (md_atof): Likewise.
417         * config/tc-xc16x.c (md_atof): Likewise.
418         * config/tc-xgate.c (md_atof): Likewise.
419         * config/tc-xstormy16.c (md_atof): Likewise.
420         * config/tc-xtensa.c (md_atof): Likewise.
421         * config/tc-z80.c (md_atof): Likewise.
422         * config/tc-z8k.c (md_atof): Likewise.
423
424 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
425
426         * config/tc-xtensa.c (struct rename_section_struct): Make old_name
427         const.
428         (xtensa_section_rename): Make argument type const char *.
429         * config/tc-xtensa.h (xtensa_section_rename): Adjust.
430
431 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
432
433         * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
434         args[0].
435
436 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
437
438         * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
439         char *.
440         (m32c_indirect_operand): Likewise.
441         * config/tc-nds32.c (do_pseudo_b): Likewise.
442         (do_pseudo_bal): Likewise.
443         (do_pseudo_ls_bhw): Likewise.
444
445 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
446
447         * as.c (parse_args): Cast literal to char * when assigning to optarg.
448
449 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
450
451         * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
452         get_symbol_name ().
453         * config/tc-sparc.c (s_register): Cast a literal to char * in
454         assignment.
455
456 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
457
458         * config/tc-i960.c (parse_expr): Cast to char * when assigning to
459         input_line_pointer.
460         * config/tc-m32r.c (expand_debug_syms): Likewise.
461         * config/tc-msp430.c (msp430_dstoperand): Likewise.
462         * config/tc-z80.c (md_begin): Likewise.
463         * stabs.c (stabs_generate_asm_func): Likewise.
464
465 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
466
467         * cgen.c: Modernize the way functions declare arguments.
468         * config/tc-bfin.c: Likewise.
469         * config/tc-pdp11.c: Likewise.
470         * literal.c: Likewise.
471         * read.c: Likewise.
472         * stabs.c: Likewise.
473
474 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
475
476         * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
477         variables unsigned char[].
478         * config/tc-alpha.c (alpha_handle_align): Likewise.
479         * config/tc-arm.c (arm_handle_align): Likewise.
480         * config/tc-z80.c: Likewise.
481
482 2016-03-30  Nick Clifton  <nickc@redhat.com>
483
484         PR target/19880
485         * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
486         shifting.
487
488 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
489
490         * testsuite/gas/all/gas.exp: Don't xfail on ARC.
491         * testsuite/gas/elf/elf.exp: Likewise.
492         * testsuite/gas/all/redef3.d: Allow execution for ARC.
493
494 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
495
496         * testsuite/gas/arc/warn.exp: Fix matching pattern.
497
498 2016-03-29  Claudiu Zissulescu  <claziss@synopsys.com>
499
500         * testsuite/gas/arc/ext2op.d: New file.
501         * testsuite/gas/arc/ext2op.s: Likewise.
502         * testsuite/gas/arc/ext3op.d: Likewise.
503         * testsuite/gas/arc/ext3op.s: Likewise.
504
505 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
506
507         * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
508         qualifier.
509         * config/tc-alpha.c (md_parse_option): Likewise.
510         * config/tc-arc.c (md_parse_option): Likewise.
511         * config/tc-arm.c (struct arm_long_option_table): Likewise.
512         (md_parse_option): Likewise.
513         * config/tc-avr.c (md_parse_option): Likewise.
514         * config/tc-bfin.c (md_parse_option): Likewise.
515         * config/tc-cr16.c (md_parse_option): Likewise.
516         * config/tc-cris.c (s_cris_arch): Likewise.
517         (md_parse_option): Likewise.
518         * config/tc-crx.c (md_parse_option): Likewise.
519         * config/tc-d10v.c (md_parse_option): Likewise.
520         * config/tc-d30v.c (md_parse_option): Likewise.
521         * config/tc-dlx.c (md_parse_option): Likewise.
522         * config/tc-epiphany.c (md_parse_option): Likewise.
523         * config/tc-fr30.c (md_parse_option): Likewise.
524         * config/tc-frv.c (md_parse_option): Likewise.
525         * config/tc-ft32.c (md_parse_option): Likewise.
526         * config/tc-h8300.c (md_parse_option): Likewise.
527         * config/tc-hppa.c (md_parse_option): Likewise.
528         * config/tc-i370.c (md_parse_option): Likewise.
529         * config/tc-i386.c (md_parse_option): Likewise.
530         * config/tc-i860.c (md_parse_option): Likewise.
531         * config/tc-i960.c (md_parse_option): Likewise.
532         * config/tc-ia64.c (md_parse_option): Likewise.
533         * config/tc-ip2k.c (md_parse_option): Likewise.
534         * config/tc-iq2000.c (md_parse_option): Likewise.
535         * config/tc-lm32.c (md_parse_option): Likewise.
536         * config/tc-m32c.c (md_parse_option): Likewise.
537         * config/tc-m32r.c (md_parse_option): Likewise.
538         * config/tc-m68hc11.c (md_parse_option): Likewise.
539         * config/tc-m68k.c (md_parse_option): Likewise.
540         * config/tc-mcore.c (md_parse_option): Likewise.
541         * config/tc-mep.c (md_parse_option): Likewise.
542         * config/tc-metag.c (struct metag_long_option): Likewise.
543         (md_parse_option): Likewise.
544         * config/tc-microblaze.c (md_parse_option): Likewise.
545         * config/tc-microblaze.h (md_parse_option): Remove prototype.
546         * config/tc-mips.c (md_parse_option): Adjust.
547         * config/tc-mmix.c (md_parse_option): Likewise.
548         * config/tc-mn10200.c (md_parse_option): Likewise.
549         * config/tc-mn10300.c (md_parse_option): Likewise.
550         * config/tc-moxie.c (md_parse_option): Likewise.
551         * config/tc-msp430.c (md_parse_option): Likewise.
552         * config/tc-mt.c (md_parse_option): Likewise.
553                 * config/tc-nds32.c (md_parse_option): Likewise.
554                 * config/tc-nds32.h (nds32_parse_option): Likewise.
555         * config/tc-nios2.c (md_parse_option): Likewise.
556         * config/tc-ns32k.c (md_parse_option): Likewise.
557         * config/tc-or1k.c (md_parse_option): Likewise.
558         * config/tc-pdp11.c (md_parse_option): Likewise.
559         * config/tc-pj.c (md_parse_option): Likewise.
560         * config/tc-ppc.c (md_parse_option): Likewise.
561         * config/tc-rl78.c (md_parse_option): Likewise.
562         * config/tc-rx.c (md_parse_option): Likewise.
563         * config/tc-s390.c (s390_parse_cpu): Likewise.
564         * config/tc-score.c (md_parse_option): Likewise.
565         * config/tc-sh.c (md_parse_option): Likewise.
566         * config/tc-sparc.c (md_parse_option): Likewise.
567         * config/tc-spu.c (md_parse_option): Likewise.
568         * config/tc-tic30.c (md_parse_option): Likewise.
569         * config/tc-tic4x.c (md_parse_option): Likewise.
570         * config/tc-tic54x.c (md_parse_option): Likewise.
571         * config/tc-tic6x.c (md_parse_option): Likewise.
572         * config/tc-tilegx.c (md_parse_option): Likewise.
573         * config/tc-tilepro.c (md_parse_option): Likewise.
574         * config/tc-v850.c (md_parse_option): Likewise.
575         * config/tc-vax.c (md_parse_option): Likewise.
576         * config/tc-visium.c (struct visium_long_option_table): Likewise.
577         * config/tc-xc16x.c (md_parse_option): Likewise.
578         * config/tc-xgate.c (md_parse_option): Likewise.
579         * config/tc-xstormy16.c (md_parse_option): Likewise.
580         * config/tc-xtensa.c (md_parse_option): Likewise.
581         * config/tc-z80.c (md_parse_option): Likewise.
582         * config/tc-z8k.c (md_parse_option): Likewise.
583         * tc.h (md_parse_option): Likewise.
584
585 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
586
587         * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
588         * config/tc-hppa.c (fix_new_hppa): Likewise.
589         (pa_vtable_entry): Likewise.
590         (pa_vtable_inherit): Likewise.
591         * config/tc-m68k.c (md_begin): Likewise.
592
593 2016-03-28  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
594
595         * config/obj-elf.c (obj_elf_section_name): Return const char *.
596         * config/obj-elf.h (obj_elf_section_name): Adjust.
597         * config/tc-aarch64.c (aarch64_parse_features): Likewise.
598         (aarch64_parse_cpu): Likewise.
599         (aarch64_parse_arch): Likewise.
600         * config/tc-arm.c (arm_parse_extension): Likewise.
601         (arm_parse_cpu): Likewise.
602         (arm_parse_arch): Likewise.
603         * config/tc-nds32.c: Likewise.
604         * config/xtensa-relax.c (parse_special_fn): Likewise.
605         * stabs.c (generate_asm_file): Likewise.
606
607 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
608
609         * config/tc-cr16.c (cr16_assemble): New function.
610         (md_assemble): Call cr16_assemble.
611
612 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
613
614         * as.c (parse_args): Adjust.
615         * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
616         * config/obj-elf.c (elf_frob_symbol): Adjust.
617
618 2016-03-24  Jose E. Marchesi  <jose.marchesi@oracle.com>
619
620         * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
621         registers to be in the 16..31 range.
622
623 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
624
625         * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
626         frag_var ().
627
628 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
629
630         * config/tc-visium.c (md_atof): Localize the string returned on
631         failure.
632
633 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
634
635         * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
636         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
637         * config/tc-m68hc11.c (md_begin): Likewise.
638         (print_opcode_list): Likewise.
639         * config/tc-msp430.c (msp430_section): Likewise.
640         * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
641         (s3_build_dependency_insn_hsh): Likewise.
642         * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
643         (s7_build_dependency_insn_hsh): Likewise.
644         * config/tc-tic4x.c: Likewise.
645         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
646         (subsym_get_arg): Likewise.
647         * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
648         (get_directive): Likewise.
649         (cache_literal_section): Likewise.
650         * config/xtensa-relax.c: Likewise.
651         * symbols.c (symbol_create): Likewise.
652         (local_symbol_make): Likewise.
653         (symbol_relc_make_expr): Likewise.
654
655 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
656
657         * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
658         str.
659
660 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
661
662         * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
663         call with a switch.
664
665 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
666
667         * config/tc-ia64.c (ia64_do_align): Remove.
668         (ia64_cons_align): Call do_align () directly.
669         (dot_proc): Likewise.
670         (stmt_float_cons): Likewise.
671
672 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
673
674         * listing.c (listing_message): Use XNEW style allocation macros.
675         * read.c (read_a_source_file): Likewise.
676         (read_symbol_name): Likewise.
677         (s_mri_common): Likewise.
678         (assign_symbol): Likewise.
679         (s_reloc): Likewise.
680         (emit_expr_with_reloc): Likewise.
681         (s_incbin): Likewise.
682         (s_include): Likewise.
683         * sb.c (sb_build): Likewise.
684         (sb_check): Likewise.
685
686 2016-03-22  Alan Modra  <amodra@gmail.com>
687
688         * write.c (record_alignment): Revert 2016-02-18 change.
689
690 2016-03-22  Alan Modra  <amodra@gmail.com>
691
692         * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
693         (emit_jsrjmp, tc_gen_reloc): Likewise.
694         * config/tc-i370.c (i370_macro): Likewise.
695
696 2016-03-22  Nick Clifton  <nickc@redhat.com>
697
698         * configure: Regenerate.
699
700 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
701
702         * testsuite/gas/arc/nps400-0.d: New file.
703         * testsuite/gas/arc/nps400-0.s: New file.
704         * testsuite/gas/arc/nps400-1.d: New file.
705         * testsuite/gas/arc/nps400-1.s: New file.
706
707 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
708
709         * config/tc-arc.c (find_opcode_match): Move lnflg, and i
710         declarations to start of block.  Reset code on all flags before
711         attempting to match them.  Handle multiple hits on the same flag.
712         Handle flag class.
713         * testsuite/gas/arc/asm-errors.d: New file.
714         * testsuite/gas/arc/asm-errors.err: New file.
715         * testsuite/gas/arc/asm-errors.s: New file.
716
717 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
718
719         * config/tc-arc.c (cpu_types): Add nps400 entry.
720         (check_zol): Handle nps400.
721
722 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
723
724         * config/tc-arc.c (arc_select_cpu): Remove use of
725         EF_ARC_CPU_GENERIC.
726
727 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
728
729         * config/tc-arc.c (arc_target): Delay initialisation until
730         arc_select_cpu.
731         (arc_target_name): Likewise.
732         (arc_features): Likewise.
733         (arc_mach_type): Likewise.
734         (cpu_types): Remove "all" entry.
735         (arc_select_cpu): New function, most of the content is from...
736         (md_parse_option): ... here.  Call new arc_select_cpu.
737         (md_begin): Call arc_select_cpu if needed, default is now arc700.
738
739 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
740
741         * testsuite/gas/arc/inline-data-1.d: Add target restriction.
742         * testsuite/gas/arc/inline-data-2.d: New file.
743
744 2016-03-21  Nick Clifton  <nickc@redhat.com>
745
746         * atof-generic.c: Replace use of alloca with call to xmalloc.
747         * cgen.c: Likewise.
748         * dwarf2dbg.c: Likewise.
749         * macro.c: Likewise.
750         * remap.c: Likewise.
751         * stabs.c: Likewise.
752         * symbols.c: Likewise.
753         * config/obj-elf.c: Likewise.
754         * config/tc-aarch64.c: Likewise.
755         * config/tc-arc.c: Likewise.
756         * config/tc-arm.c: Likewise.
757         * config/tc-avr.c: Likewise.
758         * config/tc-ia64.c: Likewise.
759         * config/tc-mips.c: Likewise.
760         * config/tc-msp430.c: Likewise.
761         * config/tc-nds32.c: Likewise.
762         * config/tc-ppc.c: Likewise.
763         * config/tc-sh.c: Likewise.
764         * config/tc-tic30.c: Likewise.
765         * config/tc-tic54x.c: Likewise.
766         * config/tc-xstormy16.c: Likewise.
767         * config/te-vms.c: Likewise.
768         * configure: Regenerate.
769
770 2016-03-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
771
772         * tc-i386.c (f32_1): Change type to unsigned char[].
773         (f32_2): Likewise.
774         (f32_3): Likewise.
775         (f32_4): Likewise.
776         (f32_5): Likewise.
777         (f32_6): Likewise.
778         (f32_7): Likewise.
779         (f32_8): Likewise.
780         (f32_9): Likewise.
781         (f32_10): Likewise.
782         (f32_11): Likewise.
783         (f32_12): Likewise.
784         (f32_13): Likewise.
785         (f32_14): Likewise.
786         (f16_3): Likewise.
787         (f16_4): Likewise.
788         (f16_5): Likewise.
789         (f16_6): Likewise.
790         (f16_7): Likewise.
791         (f16_8): Likewise.
792         (jump_31): Likewise.
793         (f32_patt): Likewise.
794         (f16_patt): Likewise.
795         (alt_3): Likewise.
796         (alt_4): Likewise.
797         (alt_5): Likewise.
798         (alt_6): Likewise.
799         (alt_7): Likewise.
800         (alt_8): Likewise.
801         (alt_9): Likewise.
802         (alt_10): Likewise.
803         (alt_patt): Likewise.
804
805 2016-03-18  Nick Clifton  <nickc@redhat.com>
806
807         * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
808         .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
809         .tlsdescldr and .xword directives.
810
811         PR target/19721
812         * testsuite/gas/aarch64/pr19721.s: New test source file.
813         * testsuite/gas/aarch64/pr19721.d: New test driver file.
814
815         * doc/as.texinfo: Place the target specific command line options
816         into their own man page section.
817
818 2016-03-16  Jiong Wang  <jiong.wang@arm.com>
819
820         * config/tc-arm.c (N_S_32): New.
821         (N_F_16_32): Likewise.
822         (N_SUF_32): Support N_F16.
823         (N_IF_32): Likewise.
824         (neon_dyadic_misc): Likewise.
825         (do_neon_cmp): Likewise.
826         (do_neon_cmp_inv): Likewise.
827         (do_neon_mul): Likewise.
828         (do_neon_fcmp_absolute): Likewise.
829         (do_neon_step): Likewise.
830         (do_neon_abs_neg): Likewise.
831         (CVT_FLAVOR_VAR): Likewise.
832         (do_neon_cvt_1): Likewise.
833         (do_neon_recip_est): Likewise.
834         (do_vmaxnm): Likewise.
835         (do_vrint_1): Likewise.
836         (neon_check_type): Check architecture support for FP16 extension.
837         (insns): Update comments.
838         * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
839         * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
840         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
841         * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
842         arm mode.
843         * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
844         thumb mode.
845         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
846         error file.
847
848 2016-03-16  Nick Clifton  <nickc@redhat.com>
849
850         * read.c (emit_expr_with_reloc): Add code check a bignum with
851         nbytes == 1.
852         * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
853         other than 32-bits.
854         * testsuite/gas/elf/bignum.s: New test source file.
855         * testsuite/gas/elf/bignum.d: New test driver file.
856         * testsuite/gas/elf/elf.exp: Run the new test.
857
858 2016-03-15  Ulrich Drepper  <drepper@gmail.com>
859
860         * doc/c-i386.texi (Register Naming): Update to details of the
861         latest architecture version.
862
863 2016-03-10  Mickael Guene  <mickael.guene@st.com>
864
865         PR gas/19744
866         * config/tc-arm.c (do_arit): Protect against bad relocations usage.
867         (do_mov): Likewise.
868         (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
869         (do_t_mov_cmp): Likewise.
870         (do_t_add_sub): Protect against bad relocations usage.
871         (do_t_mov_cmp): Likewise.
872         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
873         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
874         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
875         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
876
877 2016-03-09  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
878
879         * config/tc-arm.c (neon_alignment_bit): Rename do_align to
880         do_alignment.
881         (do_neon_ld_st_lane): Likewise.
882         (do_neon_ld_dup): Likewise.
883
884 2016-03-08  Andrew Burgess  <andrew.burgess@embecosm.com>
885
886         * testsuite/gas/arc/inline-data-1.d: New file.
887         * testsuite/gas/arc/inline-data-1.s: New file.
888
889 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
890
891         * config/tc-arm.c (arm_cpus): Add cortex-r8.
892         * doc/c-arm.texi: Add cortex-r8.
893
894 2016-03-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
895
896         * config/tc-arc.c: Add const qualifiers.
897         * config/tc-h8300.c (md_begin): Likewise.
898         * config/tc-ia64.c (print_prmask): Likewise.
899         * config/tc-msp430.c (msp430_operands): Likewise.
900         * config/tc-nds32.c (struct suffix_name): Likewise.
901         (struct nds32_parse_option_table): Likewise.
902         (struct nds32_set_option_table): Likewise.
903         (do_pseudo_pushpopm): Likewise.
904         (do_pseudo_pushpop_stack): Likewise.
905         (nds32_relax_relocs): Likewise.
906         (nds32_flag): Likewise.
907         (struct nds32_hint_map): Likewise.
908         (nds32_find_reloc_table): Likewise.
909         (nds32_match_hint_insn): Likewise.
910         * config/tc-s390.c: Likewise.
911         * config/tc-sh.c (get_specific): Likewise.
912         * config/tc-tic30.c: Likewise.
913         * config/tc-tic4x.c (tic4x_inst_add): Likewise.
914         (tic4x_indirect_parse): Likewise.
915         * config/tc-vax.c (vax_cons): Likewise.
916         * config/tc-z80.c (struct reg_entry): Likewise.
917         * config/tc-epiphany.c (md_assemble): Adjust.
918         (epiphany_assemble): New function.
919         (epiphany_elf_section_rtn): Call do_align directly.
920         (epiphany_elf_section_text): Likewise.
921         * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
922         (ip2k_elf_section_text): Likewise.
923         * read.c (do_align): Make it not static.
924         * read.h (do_align): New prototype.
925
926 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
927
928         * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
929         for ARMv8.1 AdvSIMD use.
930         * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
931         * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
932
933 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
934
935         * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
936         feature.
937         (record_feature_use): New.
938         (mark_feature_used): Use record_feature_use.
939         (do_neon_qrdmlah): New.
940         (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
941         variants.
942         (arm_extensions): Put into alphabetical order.  Re-indent "simd"
943         and "rdma" entries.  Fix the incorrect merge value for "+rdma".
944         * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
945         * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
946         Make source file explicit.
947         * testsuite/gas/arm/armv8-a+rdma.l: New.
948         * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
949         directives.  Fix white-space.
950         * testsuite/gas/arm/armv8_1-a+simd.d: New.
951
952 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
953
954         * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
955
956 2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
957             Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
958
959         * config/tc-arc.c (arc_extra_reloc): Change size to 0.
960         (tc_arc_fix_adjustable): Changed default return value to 1.
961         * testsuite/gas/arc/j.d: Updated expected symbol
962         * testsuite/gas/arc/jl.d: Likewise
963         * testsuite/gas/arc/relax-avoid1.d: Likewise
964         * testsuite/gas/arc/st.d: Likewise
965
966 2016-02-29  Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
967
968         * config/tc-arc.c: Enable code density instructions for ARC EM.
969
970 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
971
972         PR ld/19645
973         * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
974         for ELF assemblers.
975         * as.c (flag_use_elf_stt_common): New.
976         (show_usage): Add --elf-stt-common=.
977         (option_values): Add OPTION_ELF_STT_COMMON.
978         (std_longopts): Add --elf-stt-common=.
979         (parse_args): Handle --elf-stt-common=.
980         * as.h (flag_use_elf_stt_common): New.
981         * config.in: Regenerated.
982         * configure: Likewise.
983         * configure.ac: Add --enable-elf-stt-common and define
984         DEFAULT_GENERATE_ELF_STT_COMMON.
985         * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
986         and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
987         * doc/as.texinfo: Document --elf-stt-common=.
988         * testsuite/gas/elf/common3.s: New file.
989         * testsuite/gas/elf/common3a.d: Likewise.
990         * testsuite/gas/elf/common3b.d: Likewise.
991         * testsuite/gas/elf/common4.s: Likewise.
992         * testsuite/gas/elf/common4a.d: Likewise.
993         * testsuite/gas/elf/common4b.d: Likewise.
994         * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
995         * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
996         * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
997         and common4b.
998         * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
999         * testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
1000         --elf-stt-common=no to as.
1001         * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
1002         * testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
1003         --elf-stt-common=no to as.
1004         * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
1005         dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
1006         of dw2-compress-3 and dw2-compressed-3.
1007
1008 2016-02-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1009
1010         * as.c (select_emulation_mode): Add const qualifiers.
1011         * as.h: Likewise.
1012         * config/bfin-defs.h: Likewise.
1013         * config/bfin-parse.y: Likewise.
1014         * config/rx-parse.y: Likewise.
1015         * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
1016         (struct aarch64_cpu_option_table): Likewise.
1017         (struct aarch64_arch_option_table): Likewise.
1018         (struct aarch64_option_cpu_value_table): Likewise.
1019         (struct aarch64_long_option_table): Likewise.
1020         (struct aarch64_option_abi_value_table): Likewise.
1021         * config/tc-arm.c (struct reloc_entry): Likewise.
1022         (tc_gen_reloc): Likewise.
1023         (struct arm_option_table): Likewise.
1024         (struct arm_legacy_option_table): Likewise.
1025         (struct arm_cpu_option_table): Likewise.
1026         (struct arm_arch_option_table): Likewise.
1027         (struct arm_option_extension_value_table): Likewise.
1028         (struct arm_option_fpu_value_table): Likewise.
1029         (struct arm_option_value_table): Likewise.
1030         (struct arm_long_option_table): Likewise.
1031         * config/tc-avr.c (struct avr_opcodes_s): Likewise.
1032         (struct mcu_type_s): Likewise.
1033         (struct exp_mod_s): Likewise.
1034         (avr_operand): Likewise.
1035         (avr_operands): Likewise.
1036         * config/tc-d10v.c (md_begin): Likewise.
1037         * config/tc-dlx.c: Likewise.
1038         * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
1039         * config/tc-ft32.c (parse_condition): Likewise.
1040         * config/tc-h8300.c (do_a_fix_imm): Likewise.
1041         * config/tc-hppa.c (pa_ip): Likewise.
1042         (hppa_regname_to_dw2regnum): Likewise.
1043         * config/tc-i370.c (i370_elf_suffix): Likewise.
1044         * config/tc-i960.c (struct tabentry): Likewise.
1045         * config/tc-m32r.c: Likewise.
1046         * config/tc-m68k.c: Likewise.
1047         * config/tc-m68k.h: Likewise.
1048         * config/tc-mcore.c (parse_psrmod): Likewise.
1049         * config/tc-metag.c (struct metag_core_option): Likewise.
1050         (struct metag_long_option): Likewise.
1051         * config/tc-microblaze.c: Likewise.
1052         * config/tc-mips.c (macro): Likewise.
1053         * config/tc-mn10200.c: Likewise.
1054         * config/tc-mn10300.c: Likewise.
1055         * config/tc-msp430.c (struct rcodes_s): Likewise.
1056         (struct hcodes_s): Likewise.
1057         (md_parse_option): Likewise.
1058         * config/tc-ns32k.c (struct ns32k_option): Likewise.
1059         (optlist): Likewise.
1060         * config/tc-ppc.c (ppc_elf_suffix): Likewise.
1061         (tc_ppc_regname_to_dw2regnum): Likewise.
1062         * config/tc-ppc.h: Likewise.
1063         * config/tc-rl78.c: Likewise.
1064         * config/tc-rx.c (struct cpu_type): Likewise.
1065         * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
1066         * config/tc-sparc.c (struct priv_reg_entry): Likewise.
1067         (sparc_ip): Likewise.
1068         * config/tc-spu.c (insn_fmt_string): Likewise.
1069         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1070         * config/tc-v850.c: Likewise.
1071         * config/tc-visium.c (struct visium_arch_option_table): Likewise.
1072         (struct visium_long_option_table): Likewise.
1073         * config/tc-xgate.c: Likewise.
1074         * config/tc-z8k.c: Likewise.
1075         * read.c (add_include_dir): Likewise.
1076         * read.h: Likewise.
1077
1078 2016-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1079
1080         * testsuite/gas/all/gas.exp: Change target pattern to cover
1081         arceb-*.
1082         * testsuite/gas/all/redef3.d: Likewise.
1083         * testsuite/gas/elf/elf.exp: Likewise.
1084
1085 2016-02-24  Renlin Li  <renlin.li@arm.com>
1086
1087         * config/tc-arm.c (BAD_FP16): New error message macro.
1088         (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
1089         fp16 scalar instructions.
1090         (neon_check_type): Allow different size from key.
1091         (do_vfp_nsyn_add_sub): Add support SE_H shape support.
1092         (try_vfp_nsyn): Likewise.
1093         (do_vfp_nsyn_mla_mls): Likewise.
1094         (do_vfp_nsyn_fma_fms): Likewise.
1095         (do_vfp_nsyn_ldm_stm): Likewise
1096         (do_vfp_nsyn_sqrt): Likewise
1097         (do_vfp_nsyn_div): Likewise
1098         (do_vfp_nsyn_nmul): Likewise.
1099         (do_vfp_nsyn_cmp): Likewise.
1100         (do_neon_shll): Likewise.
1101         (do_vfp_nsyn_cvt_fpv8): Likewise.
1102         (do_neon_cvttb_2): Likewise.
1103         (do_neon_mov): Likewise.
1104         (do_neon_rshift_round_imm): Likewise.
1105         (do_neon_ldr_str): Likewise.
1106         (do_vfp_nsyn_fpv8): Likewise.
1107         (do_vmaxnm): Likewise.
1108         (do_vrint_1): Likewise.
1109         (insns): New entry for vins, vmovx.
1110         (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
1111         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
1112         * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
1113         * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
1114         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
1115         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
1116         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
1117
1118 2016-02-24  Renlin Li  <renlin.li@arm.com>
1119
1120         * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
1121         (neon_shape_class): New SC_HALF.
1122         (neon_shape_el): New SE_H.
1123         (neon_shape_el_size): New size for SE_H.
1124         (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
1125         (neon_select_shape): Add SE_H support code.
1126         (el_type_of_type_chk): Use N_F_ALL.
1127         (do_vfp_nsyn_cvt): Add SE_H shape support.
1128         (do_neon_cvtz): Likewise.
1129         (do_neon_cvt_1): Likewise.
1130         (do_neon_cvttb_1): Likewise.
1131
1132 2016-02-24  Renlin Li  <renlin.li@arm.com>
1133
1134         * testsuite/gas/arm/copro.d: Adjust output.
1135         * testsuite/gas/arm/copro.s: Adjust co-processor num.
1136
1137 2016-02-24  Renlin Li  <renlin.li@arm.com>
1138
1139         * testsuite/gas/arm/mask_1.d: New.
1140         * testsuite/gas/arm/mask_1.s: New.
1141
1142 2016-02-24  Renlin Li  <renlin.li@arm.com>
1143
1144         * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
1145         * testsuite/gas/arm/copro.d: Update.
1146
1147 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1148
1149         * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
1150         * doc/c-arm.texi (ARM Options): Document cortex-a32.
1151
1152 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1153
1154         * doc/c-arm.texi (ARM Options): Document cortex-a17.
1155
1156 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1157
1158         * testsuite/gas/elf/elf.exp: Skip tests for common directive on
1159         hpux.
1160
1161 2016-02-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1162
1163         * output-file.c (output_file_create): Make file name argument const.
1164         (output_file_close): Likewise.
1165         * output-file.h (output_file_create): Adjust.
1166         (output_file_close): Likewise.
1167         * depend.c (quote_string_for_make): Make src argument const char *.
1168         (register_dependency): Likewise.
1169         (wrap_output): Likewise.
1170         * as.h (register_dependency): Adjust.
1171         * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
1172         as_where ();
1173         * symbols.c (S_SET_EXTERNAL): Likewise.
1174         * input-scrub.c (as_where): Return the file name.
1175         * as.h (as_where): Adjust prototype.
1176         * app.c (do_scrub_chars): Adjust.
1177         * cond.c (s_elseif): Likewise.
1178         (s_else): Likewise.
1179         (initialize_cframe): Likewise.
1180         * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
1181         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
1182         * config/obj-som.c (obj_som_init_stab_section): Likewise.
1183         * config/tc-aarch64.c (output_info): Likewise.
1184         * config/tc-ia64.c (md_assemble): Likewise.
1185         (dot_alias): Likewise.
1186         * config/tc-m68k.c (m68k_frob_label): Likewise.
1187         * config/tc-mmix.c (s_bspec): Likewise.
1188         (mmix_handle_mmixal): Likewise.
1189         * config/tc-rx.c (rx_include): Likewise.
1190         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1191         (tic54x_adjust_symtab): Likewise.
1192         * config/tc-xtensa.c (directive_push): Likewise.
1193         (xtensa_sanity_check): Likewise.
1194         (xtensa_relax_frag): Likewise.
1195         (md_convert_frag): Likewise.
1196         (tinsn_to_slotbuf): Likewise.
1197         * dwarf2dbg.c (dwarf2_where): Likewise.
1198         * ecoff.c (add_file): Likewise.
1199         (ecoff_generate_asm_lineno): Likewise.
1200         * expr.c (make_expr_symbol): Likewise.
1201         * frags.c (frag_new): Likewise.
1202         (frag_var_init): Likewise.
1203         * listing.c (listing_newline): Likewise.
1204         * messages.c (identify): Likewise.
1205         (as_show_where): Likewise.
1206         (as_warn_internal): Likewise.
1207         (as_bad_internal): Likewise.
1208         * read.c (s_irp): Likewise.
1209         (s_macro): Likewise.
1210         (s_reloc): Likewise.
1211         * stabs.c (stabs_generate_asm_file): Likewise.
1212         (stabs_generate_asm_lineno): Likewise.
1213         (stabs_generate_asm_func): Likewise.
1214         * write.c (fix_new_internal): Likewise.
1215         * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
1216         (as_warn_value_out_of_range): Adjust prototype.
1217         (as_bad_value_out_of_range): Adjust prototype.
1218         * messages.c (identify): Make file name argument const char *.
1219         (as_warn_internal): Likewise.
1220         (as_warn_where): Likewise.
1221         (as_bad_internal): Likewise.
1222         (as_bad_where): Likewise.
1223         (as_internal_value_out_of_range): Likewise.
1224         (as_warn_value_out_of_range): Likewise.
1225         (as_bad_value_out_of_range): Likewise.
1226         * as.h (found_comment_file): Change type to const char *.
1227         * cond.c (file_line::file): Likewise.
1228         * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
1229         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
1230         * config/obj-som.c (obj_som_init_stab_section): Likewise.
1231         * config/tc-aarch64.c (output_info): Likewise.
1232         * config/tc-alpha.c (insert_operand): Likewise.
1233         * config/tc-arc.c (insert_operand): Likewise.
1234         * config/tc-d30v.c (check_size): Likewise.
1235         * config/tc-ia64.c (struct alias): Likewise.
1236         * config/tc-m68k.c (struct label_line): Likewise.
1237         * config/tc-mcore.c (md_apply_fix): Likewise.
1238         * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
1239         * config/tc-mips.c (mips16_immed): Likewise.
1240         * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
1241         * config/tc-ppc.c (ppc_insert_operand): Likewise.
1242         * config/tc-rx.c (rx_include): Likewise.
1243         * config/tc-s390.c (s390_insert_operand): Likewise.
1244         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1245         (tic54x_adjust_symtab): Likewise.
1246         * config/tc-tilegx.c (insert_operand): Likewise.
1247         (apply_special_operator): Likewise.
1248         * config/tc-tilepro.c (insert_operand): Likewise.
1249         * config/tc-xtensa.c (directive_push): Likewise.
1250         * ecoff.c (add_file): Likewise.
1251         (ecoff_generate_asm_lineno): Likewise.
1252         * listing.c (listing_newline): Likewise.
1253         * read.c (s_irp): Likewise.
1254         * write.c (install_reloc): Likewise.
1255         * write.h (struct fix): Likewise.
1256         * input-file.c (file_name): Change type to const char *.
1257         (saved_file::file_name): Likewise.
1258         (input_file_open): Change type of argument to const char *.
1259         * input-file.h (input_file_open): Adjust.
1260         * input-scrub.c (logical_input_file): change type to const char *.
1261         (physical_input_file): Likewise.
1262         (struct input_save): Adjust.
1263         (input_scrub_push): Adjust.
1264         (input_scrub_begin): Adjust.
1265         (as_where): Adjust.
1266         * input-scrub.c (input_scrub_new_file): Make file name argument const.
1267         (input_scrub_include_file): Likewise.
1268         (new_logical_line_flags): Likewise.
1269         (new_logical_line): Likewise.
1270         * as.h: Adjust.
1271         * frags.h (struct frag): Change type of fr_file to const char *.
1272         * expr.c (expr_symbol_where): Change type of file argument to
1273         const char **.
1274         * expr.h (expr_symbol_where): Likewise.
1275         * config/tc-i370.c (md_apply_fix): adjust.
1276         * config/tc-mmix.c (mmix_md_end): Likewise.
1277         * config/tc-ppc.c (md_apply_fix): Likewise.
1278         * config/tc-s390.c (md_apply_fix): Likewise.
1279         * symbols.c (report_op_error): Likewise.
1280         (resolve_symbol_value): Likewise.
1281         * config/tc-ia64.c (slot::src_file): Change type to const char *.
1282         (rsrc::file): Likewise.
1283         * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
1284         const char *.
1285         (xtensa_relax_frag): Likewise.
1286         (md_convert_frag): Likewise.
1287         (tinsn_to_slotbuf): Likewise.
1288         * expr.c (expr_symbol_line): Likewise.
1289         * macro.c (define_macro): Likewise.
1290         * macro.h (macro_struct): Likewise.
1291         * messages.c (as_show_where): Likewise.
1292         * read.c (s_macro): Likewise.
1293         * stabs.c (stabs_generate_asm_file): Likewise.
1294         (generate_asm_file): Likewise.
1295         (stabs_generate_asm_lineno): Likewise.
1296         * write.h (struct reloc_list): Likewise.
1297         * input-scrub.c (as_where): Change return type to const char *.
1298         * as.h (as_wheree): Adjust.
1299
1300 2016-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1301
1302         * write.c (compress_debug): Move BFD compression bits setting
1303         to ...
1304         (write_object_file): Here.
1305
1306 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
1307
1308         * config/tc-i386.c (register_number): Check RegVRex.
1309         * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
1310         with %zmm19 and %zmm3.
1311         * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
1312         * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
1313
1314 2016-02-19  Matthew Wahab  <matthew.wahab@arm.com>
1315             Jiong Wang  <jiong.wang@arm.com>
1316
1317         * config/tc-arm.c (arm_ext_fp16): New.
1318         (arm_extensions): New entry for "fp16".
1319
1320 2016-02-19  Nick Clifton  <nickc@redhat.com>
1321
1322         PR 19630
1323         * read.c (read_a_source_file): Check for assemble_one returning
1324         with input_line_pointer set to NULL.
1325
1326 2016-02-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1327
1328         * listing.c (rebuffer_line): Change return type to void.
1329
1330         * symbols.c (decode_local_label_name): Make type a const char *.
1331         * listing.c (print_source): Make type of p const char *.
1332         (print_line): Make type of string const char *.
1333         (buffer_line): Return const char *.
1334         (title): Make type const char *.
1335         (subtitle): Likewise.
1336         (listing_listing): Make type of p const char *.
1337         * messages.c (as_internal_value_out_of_range): Make type of prefix
1338         const char *.
1339         * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
1340         and string const char *.
1341         * read.c (_bfd_rel): Make type of name const char *.
1342         * app.c (out_string): Change type to const char *.
1343         (struct app_save::out_string): Likewise.
1344
1345 2016-02-18  Dan Gisselquist  <dgisselq@verizon.net>
1346             Nick Clifton  <nickc@redhat.com>
1347
1348         * read.c (finish_bundle): Avoid recording a negative alignment.
1349         (do_align): Use unsigned values for n, len and max.  Only create
1350         a frag if the alignment requirement is greater than the minimum
1351         byte alignment.  Avoid recording a negative alignment.
1352         (s_align): Use unsigned values where appropriate.
1353         (bss_alloc): Use an unsigned value for the alignment.
1354         (sizeof_sleb128): Add a comment noting that we encode one octet
1355         per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
1356         (emit_leb129_expr): Abort if the emitted encoding was longer than
1357         expected.
1358         * read.h (output_leb128): Update prototype.
1359         (sizeof_leb128): Update prototype.
1360         (bss_alloc): Update prototype.
1361         * write.c (record_alignment): Use an unsigned value for the
1362         alignment.  Do not record alignments less than the minimum
1363         alignment for a byte.
1364         * write.h (record_alignment): Update prototype.
1365
1366 2016-02-17  Max Filippov  <jcmvbkbc@gmail.com>
1367
1368         * config/tc-xtensa.c (xtensa_move_literals): Fix check for
1369         .init.literal/.fini.literal section name.
1370         * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
1371         list of xtensa tests.
1372         * testsuite/gas/xtensa/init-fini-literals.d: New file:
1373         init-fini-literals test result patterns.
1374         * testsuite/gas/xtensa/init-fini-literals.s: New file:
1375         init-fini-literals test.
1376
1377 2016-02-17  Nick Clifton  <nickc@redhat.com>
1378
1379         * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
1380         devices.csv file as of March 2016.
1381
1382 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
1383
1384         * config/tc-arc.c (tc_arc_frame_initial_instructions): New
1385         function.
1386         (tc_arc_regname_to_dw2regnum): Likewise.
1387         * config/tc-arc.h (TARGET_USE_CFIPOP): Define
1388         (tc_cfi_frame_initial_instructions): Likewise.
1389         (tc_regname_to_dw2regnum): Likewise.
1390         * testsuite/gas/cfi/cfi-arc-1.d: New file.
1391         * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
1392         * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
1393
1394 2016-02-16  Trevor Saunders  <tbsaunde@tbsaunde.org>
1395
1396         * doc/internals.texi (S_IS_EXTERN): Remove.
1397
1398 2016-02-16  Nick Clifton  <nickc@redhat.com>
1399
1400         * doc/as.texinfo (Section): Fix up texinfo snafus in previous
1401         update.
1402
1403 2016-02-16  Renlin Li  <renlin.li@arm.com>
1404
1405         PR gas/19620
1406         * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
1407         * testsuite/gas/aarch64/movw_label.d: New.
1408         * testsuite/gas/aarch64/movw_label.s: New.
1409
1410 2016-02-15  Vinay Kumar G. <Vinay.G@kpit.com>
1411
1412         PR gas/19556
1413         * config/rx-parse.y (MOV):  Opcode generation for index
1414         register addressing mode.
1415         * testsuite/gas/rx/rx.exp: Updated for new testcase.
1416         * testsuite/gas/rx/pr19665.s: New file.
1417         * testsuite/gas/rx/pr19665.s: New file.
1418         * testsuite/gas/rx/mov.d: Update expected output.
1419
1420 2016-02-15  Nick Clifton  <nickc@redhat.com>
1421
1422         * doc/as.texinfo (.section): Document that numeric values can now
1423         be used for the flags and type fields of the ELF target's .section
1424         directive.  Add notes about the restrictions on setting flags and
1425         types.
1426         * config/obj-elf.c (obj_elf_change_section): Allow known sections
1427         to be given processor specific section types.  Allow processor and
1428         application specific flags of a section to be set after
1429         definition.
1430         (obj_elf_parse_section_letters): Handle parsing numeric values.
1431         (obj_elf_section_type): Handle parsing numeric values.
1432         (obj_elf_section): Allow numeric type values.
1433         * config/obj-elf.h (obj_elf_change_section): Update prototype.
1434         * testsuite/gas/elf/section10.d: New test.
1435         * testsuite/gas/elf/section10.s: Source file for new test.
1436         * testsuite/gas/elf/elf.exp: Run the new test.
1437         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
1438         the description of the flags produced by readelf.
1439         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1440         * NEWS: Mention the new feature.
1441
1442 2016-02-11  Nick Clifton  <nickc@redhat.com>
1443
1444         PR gas/19614
1445         * dw2gencfi.c (cfi_sections_set): Delay setting this variable
1446         until it is actually used.
1447         (cfi_set_sections): Set cfi_sections_set to true.
1448         (dot_cfi_startproc): Likewise.
1449         (dot_cfi_endproc): Likewise.
1450         (dot_cfi_fde_data): Likewise.
1451         (cfi_finish): Likewise.
1452         (dot_cfi_sections): Do not set cfi_sections_set.
1453         * doc/as.texinfo (.cfi_sections): Note that targets can provide
1454         their own cfi section name.  Also note that the directive can be
1455         reissued provided that CFI generation has not started.
1456         * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
1457         .cfi_endproc directives so that the redefinition of .cfi_sections
1458         will trigger the generation of the error message.
1459         * testsuite/gas/mips/compact-eh-err2.l: Update expected line
1460         number of error message.
1461
1462 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
1463             Janek van Oirschot <jvanoirs@synopsys.com>
1464
1465         * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
1466         (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
1467         Define.
1468         (arc_flags, arc_relax_type): New structure.
1469         * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
1470         (RELAX_TABLE_ENTRY_MAX): New define.
1471         (relaxation_state, md_relax_table, arc_relaxable_insns)
1472         (arc_num_relaxable_ins): New variable.
1473         (rlx_operand_type, arc_rlx_types): New enums.
1474         (arc_relaxable_ins): New structure.
1475         (OPTION_RELAX): New option.
1476         (arc_insn): New relax member.
1477         (arc_flags): Remove.
1478         (relax_insn_p): New function.
1479         (apply_fixups): Likewise.
1480         (relaxable_operand): Likewise.
1481         (may_relax_expr): Likewise.
1482         (relaxable_flag): Likewise.
1483         (arc_pcrel_adjust): Likewise.
1484         (md_estimate_size_before_relax): Implement.
1485         (md_convert_frag): Likewise.
1486         (md_parse_option): Handle new mrelax option.
1487         (md_show_usage): Likewise.
1488         (assemble_insn): Set relax member.
1489         (emit_insn0): New function.
1490         (emit_insn1): Likewise.
1491         (emit_insn): Handle relaxation case.
1492         * NEWS: Mention the new relaxation option.
1493         * doc/c-arc.texi (ARC Options): Document new mrelax option.
1494         * doc/as.texinfo (Target ARC Options): Likewise.
1495         * testsuite/gas/arc/relax-avoid1.d: New file.
1496         * testsuite/gas/arc/relax-avoid1.s: Likewise.
1497         * testsuite/gas/arc/relax-avoid2.d: Likewise.
1498         * testsuite/gas/arc/relax-avoid2.s: Likewise.
1499         * testsuite/gas/arc/relax-avoid3.d: Likewise.
1500         * testsuite/gas/arc/relax-avoid3.s: Likewise.
1501         * testsuite/gas/arc/relax-b.d: Likewise.
1502         * testsuite/gas/arc/relax-b.s: Likewise.
1503
1504 2016-02-08  Nick Clifton  <nickc@redhat.com>
1505
1506         * config/tc-ia64.c (dot_prologue): Fix formatting.
1507
1508 2016-02-04  Nick Clifton  <nickc@redhat.com>
1509
1510         * config/obj-elf.c (obj_elf_change_section): Remove support for
1511         ARM NOREAD sections.
1512         * config/tc-arm.c (arm_elf_section_letter): Delete.
1513         * config/tc-arm.h (md_elf_section_letter): Delete.
1514         * doc/c-arm.texi (ARM Section Attribute): Delete section.
1515         * testsuite/gas/arm/section-execute-only.d: Delete.
1516         * testsuite/gas/arm/section-execute-only.s: Delete.
1517
1518 2016-02-04  Nick Clifton  <nickc@redhat.com>
1519
1520         PR target/19561
1521         * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
1522         to handle encoding of RRUX instruction.
1523         * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
1524         shift instructions.
1525         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
1526
1527 2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
1528
1529         * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
1530         substitutions for BFD_RELOC_* as unsigned.
1531         * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
1532         * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
1533         * testsuite/gas/xtensa/loc.s: New file: loc test.
1534
1535 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
1536
1537         * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
1538
1539 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1540
1541         PR gas/19520
1542         * NEWS: Mention new command line option -mrelax-relocations and
1543         new configure option --enable-x86-relax-relocations for x86
1544         target.
1545         * config.in: Regenerated.
1546         * configure.ac: Add --enable-x86-relax-relocations.
1547         (ac_default_x86_relax_relocations): New.  Default to 1 except
1548         for x86 Solaris targets older than Solaris 12.
1549         (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
1550         * configure: Likewise.
1551         * config/tc-i386.c (generate_relax_relocations): New.
1552         (OPTION_MRELAX_RELOCATIONS): Likewise.
1553         (output_disp): Don't generate relax relocations if
1554         generate_relax_relocations is 0.
1555         (md_longopts): Add -mrelax-relocations.
1556         (md_show_usage): Likewise.
1557         (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
1558         * doc/c-i386.texi: Document -mrelax-relocations=.
1559         * testsuite/gas/i386/got-no-relax.d: New file.
1560         * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
1561         * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
1562         * testsuite/gas/i386/localpic.d: Likewise.
1563         * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
1564         * testsuite/gas/i386/reloc32.d: Likewise.
1565         * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
1566         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
1567         * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
1568         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
1569         * testsuite/gas/i386/i386.exp: Run got-no-relax and
1570         x86-64-gotpcrel-no-relax.
1571
1572 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1573
1574         * NEWS: Mention new command line option -mfence-as-lock-add=yes
1575         for x86 target.
1576
1577 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
1578
1579         * NEWS: Remove duplicated marker for 2.26.
1580
1581 2016-02-02  Renlin Li  <renlin.li@arm.com>
1582
1583         * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
1584
1585 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1586
1587         * testsuite/gas/ip2k/allinsn.d: New file.
1588         * testsuite/gas/ip2k/allinsn.s: New file.
1589         * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
1590
1591 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1592
1593         * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
1594         some load instructions.
1595         * testsuite/gas/epiphany/allinsn.d: Likewise.
1596         * testsuite/gas/epiphany/regression.d: Likewise.
1597
1598 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1599
1600         * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
1601         suffixes from instruction mnemonics in expected output.
1602         * testsuite/gas/epiphany/allinsn.d: Likewise.
1603         * testsuite/gas/epiphany/regression.d: Likewise.
1604         * testsuite/gas/epiphany/sample.d: Likewise.
1605
1606 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1607
1608         * testsuite/gas/epiphany/addr-syntax.d: Update expected register
1609         names.
1610         * testsuite/gas/epiphany/allinsn.d: Likewise.
1611         * testsuite/gas/epiphany/sample.d: Likewise.
1612
1613 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1614
1615         * testsuite/gas/epiphany/sample.d: Update expected output.
1616
1617 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
1618
1619         * config/tc-arc.c (md_apply_fix): Allow addendum.
1620         (arc_reloc_op): Allow complex expressions for tpoff.
1621         (md_apply_fix): Handle resolved TLS local symbol.
1622         * testsuite/gas/arc/tls-relocs1.d: New file.
1623         * testsuite/gas/arc/tls-relocs1.s: Likewise.
1624
1625 2016-02-01  Loria  <Loria@phantasia.org>
1626
1627         PR target/19311
1628         * config/tc-arm.c (encode_arm_immediate): Recode to improve
1629         efficiency and avoid an LLVM loop optimization bug.
1630
1631 2016-02-01  Nick Clifton  <nickc@redhat.com>
1632
1633         * config/tc-microblaze.c (parse_imm): Fix compile time warning
1634         message extending a negative 32-bit value into a larger signed
1635         value on a 32-bit host.
1636
1637 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
1638
1639         PR gas/19532
1640         * configure.ac (compressed_debug_sections): Replace == with =.
1641         * configure: Regenerated.
1642
1643 2016-01-29  Andrew Senkevich  <andrew.senkevich@intel.com>
1644             H.J. Lu  <hongjiu.lu@intel.com>
1645
1646         * config/tc-i386.c (avoid_fence): New.
1647         (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
1648         is true.
1649         (OPTION_FENCE_AS_LOCK_ADD): New.
1650         (md_longopts): Add -mfence-as-lock-add.
1651         (md_parse_option): Handle -mfence-as-lock-add.
1652         (md_show_usage): Add -mfence-as-lock-add=[no|yes].
1653         * doc/c-i386.texi (-mfence-as-lock-add): Document.
1654         * testsuite/gas/i386/i386.exp: Run new tests.
1655         * testsuite/gas/i386/fence-as-lock-add.s: New.
1656         * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
1657         * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
1658         * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
1659         * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
1660
1661 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
1662
1663         * configure.ac (compressed_debug_sections): Remove trailing `]'.
1664         * configure: Regenerated.
1665
1666 2016-01-25  H.J. Lu  <hongjiu.lu@intel.com>
1667
1668         * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
1669         (OPTION_MOMIT_LOCK_PREFIX): This.
1670         (md_longopts): Updated.
1671         (md_parse_option): Likewise.
1672
1673 2016-01-25  Catherine Moore  <clm@codesourcery.com>
1674
1675         * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
1676         if abicalls are in effect.
1677         * testsuite/gas/mips/sdata-gp.s: New test.
1678         * testsuite/gas/mips/sdata-gp.d: New expected output
1679         * testsuite/gas/mips/mips.exp: Run new test.
1680
1681 2016-01-25  Renlin Li  <renlin.li@arm.com>
1682
1683         * testsuite/gas/arm/thumb2_it_search.d: New.
1684         * testsuite/gas/arm/thumb2_it_search.s: New.
1685
1686 2016-01-21  Nick Clifton  <nickc@redhat.com>
1687
1688         PR gas/19454
1689         * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
1690         with arm-netbsdelf target.
1691         * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
1692
1693 2016-01-20  Nick Clifton  <nickc@redhat.com>
1694
1695         PR 19456
1696         * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
1697         * testsuite/gas/arm/blx-bl-convert.d
1698         * testsuite/gas/arm/plt-1.d: Likewise.
1699         * testsuite/gas/arm/reloc-bad.d: Likewise.
1700         * testsuite/gas/arm/thumb-w-good.d: Likewise.
1701         * testsuite/gas/arm/thumb2_pool.d: Likewise.
1702         * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
1703         * testsuite/gas/arm/tls_vxworks.d: Update expected output.
1704
1705         PR 19499
1706         * doc/as.texinfo (Errors): Correct documentation describing the
1707         interaction of .file and .line with warning and error messages.
1708
1709         PR 19458
1710         * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
1711         * testsuite/gas/arm/archv8m-main.d: Likewise.
1712         * testsuite/gas/arm/archv8m-base.d: Likewise.
1713
1714 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
1715
1716         * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
1717         * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
1718         * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
1719
1720 2016-01-20  Mickael Guene  <mickael.guene@st.com>
1721             Terry Guo  <terry.guo@arm.com>
1722
1723         * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
1724         SHF_ARM_NOREAD section flag.
1725         * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
1726         handle letter 'y'.
1727         (arm_elf_section_letter) : Declare it.
1728         * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
1729         SHF_ARM_NOREAD section flag.
1730         * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
1731
1732         * testsuite/gas/arm/section-execute-only.s: New test case.
1733         * testsuite/gas/arm/section-execute-only.d: Expected output.
1734
1735 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
1736
1737         * config/tc-mips.c (micromips_insn_length): Remove the mention
1738         of 48-bit microMIPS instructions.
1739
1740 2016-01-18  Alan Modra  <amodra@gmail.com>
1741
1742         * configure: Regenerate.
1743
1744 2016-01-17  Alan Modra  <amodra@gmail.com>
1745
1746         * configure: Regenerate.
1747
1748 2016-01-17  Alan Modra  <amodra@gmail.com>
1749
1750         * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
1751
1752 2016-01-14  Nick Clifton  <nickc@redhat.com>
1753
1754         * testsuite/gas/rl78/sp-relative-movw.s: New test.
1755         * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
1756         * testsuite/gas/rl78/rl78.exp: Run the new test.
1757
1758 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
1759
1760         * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
1761         * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
1762
1763 2016-01-13  Maciej W. Rozycki  <macro@imgtec.com>
1764
1765         * config/tc-nios2.c (output_movia): Preset `code' to 0.
1766
1767 2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
1768
1769         * config/tc-h8300.c (get_operand): Remove spurious condition in
1770         test for closing parenthesis.
1771
1772 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
1773
1774         * config/tc-arm.c (arm_ext_v8_2): New.
1775         (insns): Add "esb".
1776         * testsuite/gas/arm/armv8_2-a.d: New.
1777         * testsuite/gas/arm/armv8_2-a.s: New.
1778
1779 2016-01-12  Alan Modra  <amodra@gmail.com>
1780
1781         * testsuite/gas/ppc/vsx3.d: Accept nop padding.
1782
1783 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
1784
1785         * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
1786         xvcmpnesp, xvcmpnesp.>: Delete tests.
1787         * testsuite/gas/ppc/power9.s: Likewise.
1788         * testsuite/gas/ppc/vsx3.d: Likewise.
1789         * testsuite/gas/ppc/vsx3.s: Likewise.
1790
1791 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
1792
1793         PR gas/13050
1794         * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
1795         * testsuite/gas/m68k/p13050-1.s: New file.
1796         * testsuite/gas/m68k/p13050-2.d: New file.
1797         * testsuite/gas/m68k/p13050-2.s: New file.
1798
1799 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1800
1801         * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
1802         * testsuite/gas/arc/add.d: Likewise.
1803         * testsuite/gas/arc/and.d: Likewise.
1804         * testsuite/gas/arc/asl.d: Likewise.
1805         * testsuite/gas/arc/asr.d: Likewise.
1806         * testsuite/gas/arc/bic.d: Likewise.
1807         * testsuite/gas/arc/extb.d: Likewise.
1808         * testsuite/gas/arc/extw.d: Likewise.
1809         * testsuite/gas/arc/j.d: Likewise.
1810         * testsuite/gas/arc/jl.d: Likewise.
1811         * testsuite/gas/arc/ld2.d: Likewise.
1812         * testsuite/gas/arc/lsr.d: Likewise.
1813         * testsuite/gas/arc/mov.d: Likewise.
1814         * testsuite/gas/arc/or.d: Likewise.
1815         * testsuite/gas/arc/pcl-relocs.d: Likewise.
1816         * testsuite/gas/arc/pcrel-relocs.d: Likewise.
1817         * testsuite/gas/arc/pic-relocs.d: Likewise.
1818         * testsuite/gas/arc/plt-relocs.d: Likewise.
1819         * testsuite/gas/arc/rlc.d: Likewise.
1820         * testsuite/gas/arc/ror.d: Likewise.
1821         * testsuite/gas/arc/rrc.d: Likewise.
1822         * testsuite/gas/arc/sbc.d: Likewise.
1823         * testsuite/gas/arc/sda-relocs.d: Likewise.
1824         * testsuite/gas/arc/sda-relocs2.d: Likewise.
1825         * testsuite/gas/arc/sexb.d: Likewise.
1826         * testsuite/gas/arc/sexw.d: Likewise.
1827         * testsuite/gas/arc/st.d: Likewise.
1828         * testsuite/gas/arc/sub.d: Likewise.
1829         * testsuite/gas/arc/tls-relocs.d: Likewise.
1830         * testsuite/gas/arc/xor.d: Likewise.
1831
1832 2016-01-01  Alan Modra  <amodra@gmail.com>
1833
1834         Update year range in copyright notice of all files.
1835
1836 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
1837 \f
1838 Copyright (C) 2016 Free Software Foundation, Inc.
1839
1840 Copying and distribution of this file, with or without modification,
1841 are permitted in any medium without royalty provided the copyright
1842 notice and this notice are preserved.
1843
1844 Local Variables:
1845 mode: change-log
1846 left-margin: 8
1847 fill-column: 74
1848 version-control: never
1849 End: