fixup -Wshadow warnings on gcc-4.7
[external/binutils.git] / gas / ChangeLog
1 2016-03-09  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2
3         * config/tc-arm.c (neon_alignment_bit): Rename do_align to
4         do_alignment.
5         (do_neon_ld_st_lane): Likewise.
6         (do_neon_ld_dup): Likewise.
7
8 2016-03-08  Andrew Burgess  <andrew.burgess@embecosm.com>
9
10         * testsuite/gas/arc/inline-data-1.d: New file.
11         * testsuite/gas/arc/inline-data-1.s: New file.
12
13 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14
15         * config/tc-arm.c (arm_cpus): Add cortex-r8.
16         * doc/c-arm.texi: Add cortex-r8.
17
18 2016-03-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
19
20         * config/tc-arc.c: Add const qualifiers.
21         * config/tc-h8300.c (md_begin): Likewise.
22         * config/tc-ia64.c (print_prmask): Likewise.
23         * config/tc-msp430.c (msp430_operands): Likewise.
24         * config/tc-nds32.c (struct suffix_name): Likewise.
25         (struct nds32_parse_option_table): Likewise.
26         (struct nds32_set_option_table): Likewise.
27         (do_pseudo_pushpopm): Likewise.
28         (do_pseudo_pushpop_stack): Likewise.
29         (nds32_relax_relocs): Likewise.
30         (nds32_flag): Likewise.
31         (struct nds32_hint_map): Likewise.
32         (nds32_find_reloc_table): Likewise.
33         (nds32_match_hint_insn): Likewise.
34         * config/tc-s390.c: Likewise.
35         * config/tc-sh.c (get_specific): Likewise.
36         * config/tc-tic30.c: Likewise.
37         * config/tc-tic4x.c (tic4x_inst_add): Likewise.
38         (tic4x_indirect_parse): Likewise.
39         * config/tc-vax.c (vax_cons): Likewise.
40         * config/tc-z80.c (struct reg_entry): Likewise.
41         * config/tc-epiphany.c (md_assemble): Adjust.
42         (epiphany_assemble): New function.
43         (epiphany_elf_section_rtn): Call do_align directly.
44         (epiphany_elf_section_text): Likewise.
45         * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
46         (ip2k_elf_section_text): Likewise.
47         * read.c (do_align): Make it not static.
48         * read.h (do_align): New prototype.
49
50 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
51
52         * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
53         for ARMv8.1 AdvSIMD use.
54         * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
55         * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
56
57 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
58
59         * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
60         feature.
61         (record_feature_use): New.
62         (mark_feature_used): Use record_feature_use.
63         (do_neon_qrdmlah): New.
64         (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
65         variants.
66         (arm_extensions): Put into alphabetical order.  Re-indent "simd"
67         and "rdma" entries.  Fix the incorrect merge value for "+rdma".
68         * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
69         * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
70         Make source file explicit.
71         * testsuite/gas/arm/armv8-a+rdma.l: New.
72         * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
73         directives.  Fix white-space.
74         * testsuite/gas/arm/armv8_1-a+simd.d: New.
75
76 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
77
78         * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
79
80 2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
81             Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
82
83         * config/tc-arc.c (arc_extra_reloc): Change size to 0.
84         (tc_arc_fix_adjustable): Changed default return value to 1.
85         * testsuite/gas/arc/j.d: Updated expected symbol
86         * testsuite/gas/arc/jl.d: Likewise
87         * testsuite/gas/arc/relax-avoid1.d: Likewise
88         * testsuite/gas/arc/st.d: Likewise
89
90 2016-02-29  Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
91
92         * config/tc-arc.c: Enable code density instructions for ARC EM.
93
94 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
95
96         PR ld/19645
97         * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
98         for ELF assemblers.
99         * as.c (flag_use_elf_stt_common): New.
100         (show_usage): Add --elf-stt-common=.
101         (option_values): Add OPTION_ELF_STT_COMMON.
102         (std_longopts): Add --elf-stt-common=.
103         (parse_args): Handle --elf-stt-common=.
104         * as.h (flag_use_elf_stt_common): New.
105         * config.in: Regenerated.
106         * configure: Likewise.
107         * configure.ac: Add --enable-elf-stt-common and define
108         DEFAULT_GENERATE_ELF_STT_COMMON.
109         * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
110         and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
111         * doc/as.texinfo: Document --elf-stt-common=.
112         * testsuite/gas/elf/common3.s: New file.
113         * testsuite/gas/elf/common3a.d: Likewise.
114         * testsuite/gas/elf/common3b.d: Likewise.
115         * testsuite/gas/elf/common4.s: Likewise.
116         * testsuite/gas/elf/common4a.d: Likewise.
117         * testsuite/gas/elf/common4b.d: Likewise.
118         * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
119         * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
120         * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
121         and common4b.
122         * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
123         * testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
124         --elf-stt-common=no to as.
125         * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
126         * testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
127         --elf-stt-common=no to as.
128         * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
129         dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
130         of dw2-compress-3 and dw2-compressed-3.
131
132 2016-02-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
133
134         * as.c (select_emulation_mode): Add const qualifiers.
135         * as.h: Likewise.
136         * config/bfin-defs.h: Likewise.
137         * config/bfin-parse.y: Likewise.
138         * config/rx-parse.y: Likewise.
139         * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
140         (struct aarch64_cpu_option_table): Likewise.
141         (struct aarch64_arch_option_table): Likewise.
142         (struct aarch64_option_cpu_value_table): Likewise.
143         (struct aarch64_long_option_table): Likewise.
144         (struct aarch64_option_abi_value_table): Likewise.
145         * config/tc-arm.c (struct reloc_entry): Likewise.
146         (tc_gen_reloc): Likewise.
147         (struct arm_option_table): Likewise.
148         (struct arm_legacy_option_table): Likewise.
149         (struct arm_cpu_option_table): Likewise.
150         (struct arm_arch_option_table): Likewise.
151         (struct arm_option_extension_value_table): Likewise.
152         (struct arm_option_fpu_value_table): Likewise.
153         (struct arm_option_value_table): Likewise.
154         (struct arm_long_option_table): Likewise.
155         * config/tc-avr.c (struct avr_opcodes_s): Likewise.
156         (struct mcu_type_s): Likewise.
157         (struct exp_mod_s): Likewise.
158         (avr_operand): Likewise.
159         (avr_operands): Likewise.
160         * config/tc-d10v.c (md_begin): Likewise.
161         * config/tc-dlx.c: Likewise.
162         * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
163         * config/tc-ft32.c (parse_condition): Likewise.
164         * config/tc-h8300.c (do_a_fix_imm): Likewise.
165         * config/tc-hppa.c (pa_ip): Likewise.
166         (hppa_regname_to_dw2regnum): Likewise.
167         * config/tc-i370.c (i370_elf_suffix): Likewise.
168         * config/tc-i960.c (struct tabentry): Likewise.
169         * config/tc-m32r.c: Likewise.
170         * config/tc-m68k.c: Likewise.
171         * config/tc-m68k.h: Likewise.
172         * config/tc-mcore.c (parse_psrmod): Likewise.
173         * config/tc-metag.c (struct metag_core_option): Likewise.
174         (struct metag_long_option): Likewise.
175         * config/tc-microblaze.c: Likewise.
176         * config/tc-mips.c (macro): Likewise.
177         * config/tc-mn10200.c: Likewise.
178         * config/tc-mn10300.c: Likewise.
179         * config/tc-msp430.c (struct rcodes_s): Likewise.
180         (struct hcodes_s): Likewise.
181         (md_parse_option): Likewise.
182         * config/tc-ns32k.c (struct ns32k_option): Likewise.
183         (optlist): Likewise.
184         * config/tc-ppc.c (ppc_elf_suffix): Likewise.
185         (tc_ppc_regname_to_dw2regnum): Likewise.
186         * config/tc-ppc.h: Likewise.
187         * config/tc-rl78.c: Likewise.
188         * config/tc-rx.c (struct cpu_type): Likewise.
189         * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
190         * config/tc-sparc.c (struct priv_reg_entry): Likewise.
191         (sparc_ip): Likewise.
192         * config/tc-spu.c (insn_fmt_string): Likewise.
193         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
194         * config/tc-v850.c: Likewise.
195         * config/tc-visium.c (struct visium_arch_option_table): Likewise.
196         (struct visium_long_option_table): Likewise.
197         * config/tc-xgate.c: Likewise.
198         * config/tc-z8k.c: Likewise.
199         * read.c (add_include_dir): Likewise.
200         * read.h: Likewise.
201
202 2016-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
203
204         * testsuite/gas/all/gas.exp: Change target pattern to cover
205         arceb-*.
206         * testsuite/gas/all/redef3.d: Likewise.
207         * testsuite/gas/elf/elf.exp: Likewise.
208
209 2016-02-24  Renlin Li  <renlin.li@arm.com>
210
211         * config/tc-arm.c (BAD_FP16): New error message macro.
212         (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
213         fp16 scalar instructions.
214         (neon_check_type): Allow different size from key.
215         (do_vfp_nsyn_add_sub): Add support SE_H shape support.
216         (try_vfp_nsyn): Likewise.
217         (do_vfp_nsyn_mla_mls): Likewise.
218         (do_vfp_nsyn_fma_fms): Likewise.
219         (do_vfp_nsyn_ldm_stm): Likewise
220         (do_vfp_nsyn_sqrt): Likewise
221         (do_vfp_nsyn_div): Likewise
222         (do_vfp_nsyn_nmul): Likewise.
223         (do_vfp_nsyn_cmp): Likewise.
224         (do_neon_shll): Likewise.
225         (do_vfp_nsyn_cvt_fpv8): Likewise.
226         (do_neon_cvttb_2): Likewise.
227         (do_neon_mov): Likewise.
228         (do_neon_rshift_round_imm): Likewise.
229         (do_neon_ldr_str): Likewise.
230         (do_vfp_nsyn_fpv8): Likewise.
231         (do_vmaxnm): Likewise.
232         (do_vrint_1): Likewise.
233         (insns): New entry for vins, vmovx.
234         (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
235         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
236         * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
237         * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
238         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
239         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
240         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
241
242 2016-02-24  Renlin Li  <renlin.li@arm.com>
243
244         * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
245         (neon_shape_class): New SC_HALF.
246         (neon_shape_el): New SE_H.
247         (neon_shape_el_size): New size for SE_H.
248         (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
249         (neon_select_shape): Add SE_H support code.
250         (el_type_of_type_chk): Use N_F_ALL.
251         (do_vfp_nsyn_cvt): Add SE_H shape support.
252         (do_neon_cvtz): Likewise.
253         (do_neon_cvt_1): Likewise.
254         (do_neon_cvttb_1): Likewise.
255
256 2016-02-24  Renlin Li  <renlin.li@arm.com>
257
258         * testsuite/gas/arm/copro.d: Adjust output.
259         * testsuite/gas/arm/copro.s: Adjust co-processor num.
260
261 2016-02-24  Renlin Li  <renlin.li@arm.com>
262
263         * testsuite/gas/arm/mask_1.d: New.
264         * testsuite/gas/arm/mask_1.s: New.
265
266 2016-02-24  Renlin Li  <renlin.li@arm.com>
267
268         * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
269         * testsuite/gas/arm/copro.d: Update.
270
271 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
272
273         * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
274         * doc/c-arm.texi (ARM Options): Document cortex-a32.
275
276 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
277
278     * doc/c-arm.texi (ARM Options): Document cortex-a17.
279
280 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * testsuite/gas/elf/elf.exp: Skip tests for common directive on
283         hpux.
284
285 2016-02-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
286
287         * output-file.c (output_file_create): Make file name argument const.
288         (output_file_close): Likewise.
289         * output-file.h (output_file_create): Adjust.
290         (output_file_close): Likewise.
291         * depend.c (quote_string_for_make): Make src argument const char *.
292         (register_dependency): Likewise.
293         (wrap_output): Likewise.
294         * as.h (register_dependency): Adjust.
295         * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
296         as_where ();
297         * symbols.c (S_SET_EXTERNAL): Likewise.
298         * input-scrub.c (as_where): Return the file name.
299         * as.h (as_where): Adjust prototype.
300         * app.c (do_scrub_chars): Adjust.
301         * cond.c (s_elseif): Likewise.
302         (s_else): Likewise.
303         (initialize_cframe): Likewise.
304         * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
305         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
306         * config/obj-som.c (obj_som_init_stab_section): Likewise.
307         * config/tc-aarch64.c (output_info): Likewise.
308         * config/tc-ia64.c (md_assemble): Likewise.
309         (dot_alias): Likewise.
310         * config/tc-m68k.c (m68k_frob_label): Likewise.
311         * config/tc-mmix.c (s_bspec): Likewise.
312         (mmix_handle_mmixal): Likewise.
313         * config/tc-rx.c (rx_include): Likewise.
314         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
315         (tic54x_adjust_symtab): Likewise.
316         * config/tc-xtensa.c (directive_push): Likewise.
317         (xtensa_sanity_check): Likewise.
318         (xtensa_relax_frag): Likewise.
319         (md_convert_frag): Likewise.
320         (tinsn_to_slotbuf): Likewise.
321         * dwarf2dbg.c (dwarf2_where): Likewise.
322         * ecoff.c (add_file): Likewise.
323         (ecoff_generate_asm_lineno): Likewise.
324         * expr.c (make_expr_symbol): Likewise.
325         * frags.c (frag_new): Likewise.
326         (frag_var_init): Likewise.
327         * listing.c (listing_newline): Likewise.
328         * messages.c (identify): Likewise.
329         (as_show_where): Likewise.
330         (as_warn_internal): Likewise.
331         (as_bad_internal): Likewise.
332         * read.c (s_irp): Likewise.
333         (s_macro): Likewise.
334         (s_reloc): Likewise.
335         * stabs.c (stabs_generate_asm_file): Likewise.
336         (stabs_generate_asm_lineno): Likewise.
337         (stabs_generate_asm_func): Likewise.
338         * write.c (fix_new_internal): Likewise.
339         * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
340         (as_warn_value_out_of_range): Adjust prototype.
341         (as_bad_value_out_of_range): Adjust prototype.
342         * messages.c (identify): Make file name argument const char *.
343         (as_warn_internal): Likewise.
344         (as_warn_where): Likewise.
345         (as_bad_internal): Likewise.
346         (as_bad_where): Likewise.
347         (as_internal_value_out_of_range): Likewise.
348         (as_warn_value_out_of_range): Likewise.
349         (as_bad_value_out_of_range): Likewise.
350         * as.h (found_comment_file): Change type to const char *.
351         * cond.c (file_line::file): Likewise.
352         * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
353         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
354         * config/obj-som.c (obj_som_init_stab_section): Likewise.
355         * config/tc-aarch64.c (output_info): Likewise.
356         * config/tc-alpha.c (insert_operand): Likewise.
357         * config/tc-arc.c (insert_operand): Likewise.
358         * config/tc-d30v.c (check_size): Likewise.
359         * config/tc-ia64.c (struct alias): Likewise.
360         * config/tc-m68k.c (struct label_line): Likewise.
361         * config/tc-mcore.c (md_apply_fix): Likewise.
362         * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
363         * config/tc-mips.c (mips16_immed): Likewise.
364         * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
365         * config/tc-ppc.c (ppc_insert_operand): Likewise.
366         * config/tc-rx.c (rx_include): Likewise.
367         * config/tc-s390.c (s390_insert_operand): Likewise.
368         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
369         (tic54x_adjust_symtab): Likewise.
370         * config/tc-tilegx.c (insert_operand): Likewise.
371         (apply_special_operator): Likewise.
372         * config/tc-tilepro.c (insert_operand): Likewise.
373         * config/tc-xtensa.c (directive_push): Likewise.
374         * ecoff.c (add_file): Likewise.
375         (ecoff_generate_asm_lineno): Likewise.
376         * listing.c (listing_newline): Likewise.
377         * read.c (s_irp): Likewise.
378         * write.c (install_reloc): Likewise.
379         * write.h (struct fix): Likewise.
380         * input-file.c (file_name): Change type to const char *.
381         (saved_file::file_name): Likewise.
382         (input_file_open): Change type of argument to const char *.
383         * input-file.h (input_file_open): Adjust.
384         * input-scrub.c (logical_input_file): change type to const char *.
385         (physical_input_file): Likewise.
386         (struct input_save): Adjust.
387         (input_scrub_push): Adjust.
388         (input_scrub_begin): Adjust.
389         (as_where): Adjust.
390         * input-scrub.c (input_scrub_new_file): Make file name argument const.
391         (input_scrub_include_file): Likewise.
392         (new_logical_line_flags): Likewise.
393         (new_logical_line): Likewise.
394         * as.h: Adjust.
395         * frags.h (struct frag): Change type of fr_file to const char *.
396         * expr.c (expr_symbol_where): Change type of file argument to
397         const char **.
398         * expr.h (expr_symbol_where): Likewise.
399         * config/tc-i370.c (md_apply_fix): adjust.
400         * config/tc-mmix.c (mmix_md_end): Likewise.
401         * config/tc-ppc.c (md_apply_fix): Likewise.
402         * config/tc-s390.c (md_apply_fix): Likewise.
403         * symbols.c (report_op_error): Likewise.
404         (resolve_symbol_value): Likewise.
405         * config/tc-ia64.c (slot::src_file): Change type to const char *.
406         (rsrc::file): Likewise.
407         * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
408         const char *.
409         (xtensa_relax_frag): Likewise.
410         (md_convert_frag): Likewise.
411         (tinsn_to_slotbuf): Likewise.
412         * expr.c (expr_symbol_line): Likewise.
413         * macro.c (define_macro): Likewise.
414         * macro.h (macro_struct): Likewise.
415         * messages.c (as_show_where): Likewise.
416         * read.c (s_macro): Likewise.
417         * stabs.c (stabs_generate_asm_file): Likewise.
418         (generate_asm_file): Likewise.
419         (stabs_generate_asm_lineno): Likewise.
420         * write.h (struct reloc_list): Likewise.
421         * input-scrub.c (as_where): Change return type to const char *.
422         * as.h (as_wheree): Adjust.
423
424 2016-02-21  H.J. Lu  <hongjiu.lu@intel.com>
425
426         * write.c (compress_debug): Move BFD compression bits setting
427         to ...
428         (write_object_file): Here.
429
430 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
431
432         * config/tc-i386.c (register_number): Check RegVRex.
433         * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
434         with %zmm19 and %zmm3.
435         * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
436         * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
437
438 2016-02-19  Matthew Wahab  <matthew.wahab@arm.com>
439             Jiong Wang  <jiong.wang@arm.com>
440
441         * config/tc-arm.c (arm_ext_fp16): New.
442         (arm_extensions): New entry for "fp16".
443
444 2016-02-19  Nick Clifton  <nickc@redhat.com>
445
446         PR 19630
447         * read.c (read_a_source_file): Check for assemble_one returning
448         with input_line_pointer set to NULL.
449
450 2016-02-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
451
452         * listing.c (rebuffer_line): Change return type to void.
453
454         * symbols.c (decode_local_label_name): Make type a const char *.
455         * listing.c (print_source): Make type of p const char *.
456         (print_line): Make type of string const char *.
457         (buffer_line): Return const char *.
458         (title): Make type const char *.
459         (subtitle): Likewise.
460         (listing_listing): Make type of p const char *.
461         * messages.c (as_internal_value_out_of_range): Make type of prefix
462         const char *.
463         * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
464         and string const char *.
465         * read.c (_bfd_rel): Make type of name const char *.
466         * app.c (out_string): Change type to const char *.
467         (struct app_save::out_string): Likewise.
468
469 2016-02-18  Dan Gisselquist  <dgisselq@verizon.net>
470             Nick Clifton  <nickc@redhat.com>
471
472         * read.c (finish_bundle): Avoid recording a negative alignment.
473         (do_align): Use unsigned values for n, len and max.  Only create
474         a frag if the alignment requirement is greater than the minimum
475         byte alignment.  Avoid recording a negative alignment.
476         (s_align): Use unsigned values where appropriate.
477         (bss_alloc): Use an unsigned value for the alignment.
478         (sizeof_sleb128): Add a comment noting that we encode one octet
479         per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
480         (emit_leb129_expr): Abort if the emitted encoding was longer than
481         expected.
482         * read.h (output_leb128): Update prototype.
483         (sizeof_leb128): Update prototype.
484         (bss_alloc): Update prototype.
485         * write.c (record_alignment): Use an unsigned value for the
486         alignment.  Do not record alignments less than the minimum
487         alignment for a byte.
488         * write.h (record_alignment): Update prototype.
489
490 2016-02-17  Max Filippov  <jcmvbkbc@gmail.com>
491
492         * config/tc-xtensa.c (xtensa_move_literals): Fix check for
493         .init.literal/.fini.literal section name.
494         * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
495         list of xtensa tests.
496         * testsuite/gas/xtensa/init-fini-literals.d: New file:
497         init-fini-literals test result patterns.
498         * testsuite/gas/xtensa/init-fini-literals.s: New file:
499         init-fini-literals test.
500
501 2016-02-17  Nick Clifton  <nickc@redhat.com>
502
503         * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
504         devices.csv file as of March 2016.
505
506 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
507
508         * config/tc-arc.c (tc_arc_frame_initial_instructions): New
509         function.
510         (tc_arc_regname_to_dw2regnum): Likewise.
511         * config/tc-arc.h (TARGET_USE_CFIPOP): Define
512         (tc_cfi_frame_initial_instructions): Likewise.
513         (tc_regname_to_dw2regnum): Likewise.
514
515 2016-02-16  Trevor Saunders  <tbsaunde@tbsaunde.org>
516
517         * doc/internals.texi (S_IS_EXTERN): Remove.
518
519 2016-02-16  Nick Clifton  <nickc@redhat.com>
520
521         * doc/as.texinfo (Section): Fix up texinfo snafus in previous
522         update.
523
524 2016-02-16  Renlin Li  <renlin.li@arm.com>
525
526         PR gas/19620
527         * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
528         * testsuite/gas/aarch64/movw_label.d: New.
529         * testsuite/gas/aarch64/movw_label.s: New.
530
531 2016-02-15  Vinay Kumar G. <Vinay.G@kpit.com>
532
533         PR gas/19556
534         * config/rx-parse.y (MOV):  Opcode generation for index
535         register addressing mode.
536         * testsuite/gas/rx/rx.exp: Updated for new testcase.
537         * testsuite/gas/rx/pr19665.s: New file.
538         * testsuite/gas/rx/pr19665.s: New file.
539         * testsuite/gas/rx/mov.d: Update expected output.
540
541 2016-02-15  Nick Clifton  <nickc@redhat.com>
542
543         * doc/as.texinfo (.section): Document that numeric values can now
544         be used for the flags and type fields of the ELF target's .section
545         directive.  Add notes about the restrictions on setting flags and
546         types.
547         * config/obj-elf.c (obj_elf_change_section): Allow known sections
548         to be given processor specific section types.  Allow processor and
549         application specific flags of a section to be set after
550         definition.
551         (obj_elf_parse_section_letters): Handle parsing numeric values.
552         (obj_elf_section_type): Handle parsing numeric values.
553         (obj_elf_section): Allow numeric type values.
554         * config/obj-elf.h (obj_elf_change_section): Update prototype.
555         * testsuite/gas/elf/section10.d: New test.
556         * testsuite/gas/elf/section10.s: Source file for new test.
557         * testsuite/gas/elf/elf.exp: Run the new test.
558         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
559         the description of the flags produced by readelf.
560         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
561         * NEWS: Mention the new feature.
562
563 2016-02-11  Nick Clifton  <nickc@redhat.com>
564
565         PR gas/19614
566         * dw2gencfi.c (cfi_sections_set): Delay setting this variable
567         until it is actually used.
568         (cfi_set_sections): Set cfi_sections_set to true.
569         (dot_cfi_startproc): Likewise.
570         (dot_cfi_endproc): Likewise.
571         (dot_cfi_fde_data): Likewise.
572         (cfi_finish): Likewise.
573         (dot_cfi_sections): Do not set cfi_sections_set.
574         * doc/as.texinfo (.cfi_sections): Note that targets can provide
575         their own cfi section name.  Also note that the directive can be
576         reissued provided that CFI generation has not started.
577         * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
578         .cfi_endproc directives so that the redefinition of .cfi_sections
579         will trigger the generation of the error message.
580         * testsuite/gas/mips/compact-eh-err2.l: Update expected line
581         number of error message.
582
583 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
584             Janek van Oirschot <jvanoirs@synopsys.com>
585
586         * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
587         (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
588         Define.
589         (arc_flags, arc_relax_type): New structure.
590         * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
591         (RELAX_TABLE_ENTRY_MAX): New define.
592         (relaxation_state, md_relax_table, arc_relaxable_insns)
593         (arc_num_relaxable_ins): New variable.
594         (rlx_operand_type, arc_rlx_types): New enums.
595         (arc_relaxable_ins): New structure.
596         (OPTION_RELAX): New option.
597         (arc_insn): New relax member.
598         (arc_flags): Remove.
599         (relax_insn_p): New function.
600         (apply_fixups): Likewise.
601         (relaxable_operand): Likewise.
602         (may_relax_expr): Likewise.
603         (relaxable_flag): Likewise.
604         (arc_pcrel_adjust): Likewise.
605         (md_estimate_size_before_relax): Implement.
606         (md_convert_frag): Likewise.
607         (md_parse_option): Handle new mrelax option.
608         (md_show_usage): Likewise.
609         (assemble_insn): Set relax member.
610         (emit_insn0): New function.
611         (emit_insn1): Likewise.
612         (emit_insn): Handle relaxation case.
613         * NEWS: Mention the new relaxation option.
614         * doc/c-arc.texi (ARC Options): Document new mrelax option.
615         * doc/as.texinfo (Target ARC Options): Likewise.
616         * testsuite/gas/arc/relax-avoid1.d: New file.
617         * testsuite/gas/arc/relax-avoid1.s: Likewise.
618         * testsuite/gas/arc/relax-avoid2.d: Likewise.
619         * testsuite/gas/arc/relax-avoid2.s: Likewise.
620         * testsuite/gas/arc/relax-avoid3.d: Likewise.
621         * testsuite/gas/arc/relax-avoid3.s: Likewise.
622         * testsuite/gas/arc/relax-b.d: Likewise.
623         * testsuite/gas/arc/relax-b.s: Likewise.
624
625 2016-02-08  Nick Clifton  <nickc@redhat.com>
626
627         * config/tc-ia64.c (dot_prologue): Fix formatting.
628
629 2016-02-04  Nick Clifton  <nickc@redhat.com>
630
631         * config/obj-elf.c (obj_elf_change_section): Remove support for
632         ARM NOREAD sections.
633         * config/tc-arm.c (arm_elf_section_letter): Delete.
634         * config/tc-arm.h (md_elf_section_letter): Delete.
635         * doc/c-arm.texi (ARM Section Attribute): Delete section.
636         * testsuite/gas/arm/section-execute-only.d: Delete.
637         * testsuite/gas/arm/section-execute-only.s: Delete.
638
639 2016-02-04  Nick Clifton  <nickc@redhat.com>
640
641         PR target/19561
642         * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
643         to handle encoding of RRUX instruction.
644         * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
645         shift instructions.
646         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
647
648 2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
649
650         * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
651         substitutions for BFD_RELOC_* as unsigned.
652         * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
653         * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
654         * testsuite/gas/xtensa/loc.s: New file: loc test.
655
656 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
657
658         * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
659
660 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
661
662         PR gas/19520
663         * NEWS: Mention new command line option -mrelax-relocations and
664         new configure option --enable-x86-relax-relocations for x86
665         target.
666         * config.in: Regenerated.
667         * configure.ac: Add --enable-x86-relax-relocations.
668         (ac_default_x86_relax_relocations): New.  Default to 1 except
669         for x86 Solaris targets older than Solaris 12.
670         (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
671         * configure: Likewise.
672         * config/tc-i386.c (generate_relax_relocations): New.
673         (OPTION_MRELAX_RELOCATIONS): Likewise.
674         (output_disp): Don't generate relax relocations if
675         generate_relax_relocations is 0.
676         (md_longopts): Add -mrelax-relocations.
677         (md_show_usage): Likewise.
678         (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
679         * doc/c-i386.texi: Document -mrelax-relocations=.
680         * testsuite/gas/i386/got-no-relax.d: New file.
681         * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
682         * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
683         * testsuite/gas/i386/localpic.d: Likewise.
684         * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
685         * testsuite/gas/i386/reloc32.d: Likewise.
686         * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
687         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
688         * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
689         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
690         * testsuite/gas/i386/i386.exp: Run got-no-relax and
691         x86-64-gotpcrel-no-relax.
692
693 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
694
695         * NEWS: Mention new command line option -mfence-as-lock-add=yes
696         for x86 target.
697
698 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
699
700         * NEWS: Remove duplicated marker for 2.26.
701
702 2016-02-02  Renlin Li  <renlin.li@arm.com>
703
704         * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
705
706 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
707
708         * testsuite/gas/ip2k/allinsn.d: New file.
709         * testsuite/gas/ip2k/allinsn.s: New file.
710         * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
711
712 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
713
714         * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
715         some load instructions.
716         * testsuite/gas/epiphany/allinsn.d: Likewise.
717         * testsuite/gas/epiphany/regression.d: Likewise.
718
719 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
720
721         * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
722         suffixes from instruction mnemonics in expected output.
723         * testsuite/gas/epiphany/allinsn.d: Likewise.
724         * testsuite/gas/epiphany/regression.d: Likewise.
725         * testsuite/gas/epiphany/sample.d: Likewise.
726
727 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
728
729         * testsuite/gas/epiphany/addr-syntax.d: Update expected register
730         names.
731         * testsuite/gas/epiphany/allinsn.d: Likewise.
732         * testsuite/gas/epiphany/sample.d: Likewise.
733
734 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
735
736         * testsuite/gas/epiphany/sample.d: Update expected output.
737
738 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
739
740         * config/tc-arc.c (md_apply_fix): Allow addendum.
741         (arc_reloc_op): Allow complex expressions for tpoff.
742         (md_apply_fix): Handle resolved TLS local symbol.
743
744         * testsuite/gas/arc/tls-relocs1.d: New file.
745         * testsuite/gas/arc/tls-relocs1.s: Likewise.
746
747 2016-02-01  Loria  <Loria@phantasia.org>
748
749         PR target/19311
750         * config/tc-arm.c (encode_arm_immediate): Recode to improve
751         efficiency and avoid an LLVM loop optimization bug.
752
753 2016-02-01  Nick Clifton  <nickc@redhat.com>
754
755         * config/tc-microblaze.c (parse_imm): Fix compile time warning
756         message extending a negative 32-bit value into a larger signed
757         value on a 32-bit host.
758
759 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
760
761         PR gas/19532
762         * configure.ac (compressed_debug_sections): Replace == with =.
763         * configure: Regenerated.
764
765 2016-01-29  Andrew Senkevich  <andrew.senkevich@intel.com>
766             H.J. Lu  <hongjiu.lu@intel.com>
767
768         * config/tc-i386.c (avoid_fence): New.
769         (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
770         is true.
771         (OPTION_FENCE_AS_LOCK_ADD): New.
772         (md_longopts): Add -mfence-as-lock-add.
773         (md_parse_option): Handle -mfence-as-lock-add.
774         (md_show_usage): Add -mfence-as-lock-add=[no|yes].
775         * doc/c-i386.texi (-mfence-as-lock-add): Document.
776         * testsuite/gas/i386/i386.exp: Run new tests.
777         * testsuite/gas/i386/fence-as-lock-add.s: New.
778         * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
779         * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
780         * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
781         * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
782
783 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
784
785         * configure.ac (compressed_debug_sections): Remove trailing `]'.
786         * configure: Regenerated.
787
788 2016-01-25  H.J. Lu  <hongjiu.lu@intel.com>
789
790         * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
791         (OPTION_MOMIT_LOCK_PREFIX): This.
792         (md_longopts): Updated.
793         (md_parse_option): Likewise.
794
795 2016-01-25  Catherine Moore  <clm@codesourcery.com>
796
797         * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
798         if abicalls are in effect.
799         * testsuite/gas/mips/sdata-gp.s: New test.
800         * testsuite/gas/mips/sdata-gp.d: New expected output
801         * testsuite/gas/mips/mips.exp: Run new test.
802
803 2016-01-25  Renlin Li  <renlin.li@arm.com>
804
805         * testsuite/gas/arm/thumb2_it_search.d: New.
806         * testsuite/gas/arm/thumb2_it_search.s: New.
807
808 2016-01-21  Nick Clifton  <nickc@redhat.com>
809
810         PR gas/19454
811         * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
812         with arm-netbsdelf target.
813         * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
814
815 2016-01-20  Nick Clifton  <nickc@redhat.com>
816
817         PR 19456
818         * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
819         * testsuite/gas/arm/blx-bl-convert.d
820         * testsuite/gas/arm/plt-1.d: Likewise.
821         * testsuite/gas/arm/reloc-bad.d: Likewise.
822         * testsuite/gas/arm/thumb-w-good.d: Likewise.
823         * testsuite/gas/arm/thumb2_pool.d: Likewise.
824         * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
825         * testsuite/gas/arm/tls_vxworks.d: Update expected output.
826
827         PR 19499
828         * doc/as.texinfo (Errors): Correct documentation describing the
829         interaction of .file and .line with warning and error messages.
830
831         PR 19458
832         * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
833         * testsuite/gas/arm/archv8m-main.d: Likewise.
834         * testsuite/gas/arm/archv8m-base.d: Likewise.
835
836 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
837
838         * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
839         * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
840         * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
841
842 2016-01-20  Mickael Guene  <mickael.guene@st.com>
843             Terry Guo  <terry.guo@arm.com>
844
845         * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
846         SHF_ARM_NOREAD section flag.
847         * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
848         handle letter 'y'.
849         (arm_elf_section_letter) : Declare it.
850         * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
851         SHF_ARM_NOREAD section flag.
852         * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
853
854         * testsuite/gas/arm/section-execute-only.s: New test case.
855         * testsuite/gas/arm/section-execute-only.d: Expected output.
856
857 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
858
859         * config/tc-mips.c (micromips_insn_length): Remove the mention
860         of 48-bit microMIPS instructions.
861
862 2016-01-18  Alan Modra  <amodra@gmail.com>
863
864         * configure: Regenerate.
865
866 2016-01-17  Alan Modra  <amodra@gmail.com>
867
868         * configure: Regenerate.
869
870 2016-01-17  Alan Modra  <amodra@gmail.com>
871
872         * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
873
874 2016-01-14  Nick Clifton  <nickc@redhat.com>
875
876         * testsuite/gas/rl78/sp-relative-movw.s: New test.
877         * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
878         * testsuite/gas/rl78/rl78.exp: Run the new test.
879
880 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
881
882         * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
883         * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
884
885 2016-01-13  Maciej W. Rozycki  <macro@imgtec.com>
886
887         * config/tc-nios2.c (output_movia): Preset `code' to 0.
888
889 2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
890
891         * config/tc-h8300.c (get_operand): Remove spurious condition in
892         test for closing parenthesis.
893
894 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
895
896         * config/tc-arm.c (arm_ext_v8_2): New.
897         (insns): Add "esb".
898         * testsuite/gas/arm/armv8_2-a.d: New.
899         * testsuite/gas/arm/armv8_2-a.s: New.
900
901 2016-01-12  Alan Modra  <amodra@gmail.com>
902
903         * testsuite/gas/ppc/vsx3.d: Accept nop padding.
904
905 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
906
907         * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
908         xvcmpnesp, xvcmpnesp.>: Delete tests.
909         * testsuite/gas/ppc/power9.s: Likewise.
910         * testsuite/gas/ppc/vsx3.d: Likewise.
911         * testsuite/gas/ppc/vsx3.s: Likewise.
912
913 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
914
915         PR gas/13050
916         * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
917         * testsuite/gas/m68k/p13050-1.s: New file.
918         * testsuite/gas/m68k/p13050-2.d: New file.
919         * testsuite/gas/m68k/p13050-2.s: New file.
920
921 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
922
923         * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
924         * testsuite/gas/arc/add.d: Likewise.
925         * testsuite/gas/arc/and.d: Likewise.
926         * testsuite/gas/arc/asl.d: Likewise.
927         * testsuite/gas/arc/asr.d: Likewise.
928         * testsuite/gas/arc/bic.d: Likewise.
929         * testsuite/gas/arc/extb.d: Likewise.
930         * testsuite/gas/arc/extw.d: Likewise.
931         * testsuite/gas/arc/j.d: Likewise.
932         * testsuite/gas/arc/jl.d: Likewise.
933         * testsuite/gas/arc/ld2.d: Likewise.
934         * testsuite/gas/arc/lsr.d: Likewise.
935         * testsuite/gas/arc/mov.d: Likewise.
936         * testsuite/gas/arc/or.d: Likewise.
937         * testsuite/gas/arc/pcl-relocs.d: Likewise.
938         * testsuite/gas/arc/pcrel-relocs.d: Likewise.
939         * testsuite/gas/arc/pic-relocs.d: Likewise.
940         * testsuite/gas/arc/plt-relocs.d: Likewise.
941         * testsuite/gas/arc/rlc.d: Likewise.
942         * testsuite/gas/arc/ror.d: Likewise.
943         * testsuite/gas/arc/rrc.d: Likewise.
944         * testsuite/gas/arc/sbc.d: Likewise.
945         * testsuite/gas/arc/sda-relocs.d: Likewise.
946         * testsuite/gas/arc/sda-relocs2.d: Likewise.
947         * testsuite/gas/arc/sexb.d: Likewise.
948         * testsuite/gas/arc/sexw.d: Likewise.
949         * testsuite/gas/arc/st.d: Likewise.
950         * testsuite/gas/arc/sub.d: Likewise.
951         * testsuite/gas/arc/tls-relocs.d: Likewise.
952         * testsuite/gas/arc/xor.d: Likewise.
953
954 2016-01-01  Alan Modra  <amodra@gmail.com>
955
956         Update year range in copyright notice of all files.
957
958 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
959 \f
960 Copyright (C) 2016 Free Software Foundation, Inc.
961
962 Copying and distribution of this file, with or without modification,
963 are permitted in any medium without royalty provided the copyright
964 notice and this notice are preserved.
965
966 Local Variables:
967 mode: change-log
968 left-margin: 8
969 fill-column: 74
970 version-control: never
971 End: