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