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