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