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