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