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