MIPS: Fix the encoding of immediates with microMIPS JALX
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
2
3 * config/tc-mips.c (append_insn): Correct the encoding of a
4 constant argument for microMIPS JALX.
5 (tc_gen_reloc): Correct the encoding of an in-place addend for
6 microMIPS JALX.
7 * testsuite/gas/mips/jalx-addend.d: New test.
8 * testsuite/gas/mips/jalx-addend-n32.d: New test.
9 * testsuite/gas/mips/jalx-addend-n64.d: New test.
10 * testsuite/gas/mips/jalx-imm.d: New test.
11 * testsuite/gas/mips/jalx-imm-n32.d: New test.
12 * testsuite/gas/mips/jalx-imm-n64.d: New test.
13 * testsuite/gas/mips/jalx-addend.s: New test source.
14 * testsuite/gas/mips/jalx-imm.s: New test source.
15 * testsuite/gas/mips/mips.exp: Run the new tests.
16
17 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
18
19 * config/tc-mips.c: Correct tab-after-space formatting mistakes
20 throughout.
21
22 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * config/tc-arc.c (find_opcode_match): Remove casting away of
25 const.
26 * config/tc-arc.h (struct arc_flags): Make flgp field const.
27
28 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
31 appropriate.
32 (md_convert_frag): Likewise.
33
34 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
37 cached opcode to NULL when we reach a non-matching opcode.
38 * testsuite/gas/arc/asm-errors-2.d: New file.
39 * testsuite/gas/arc/asm-errors-2.err: New file.
40 * testsuite/gas/arc/asm-errors-2.s: New file.
41
42 2016-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * config/tc-arc.c (tokenize_arguments): Add checks for array
45 overflow.
46 * testsuite/gas/arc/asm-errors.s: Addition test line added.
47 * testsuite/gas/arc/asm-errors.err: Update expected results.
48
49 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
50
51 * config/tc-rx.c (struct cpu_type): Change the type of a field from
52 int to enum rx_cpu_types.
53
54 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
55
56 * config/tc-dlx.c (struct machine_it): change the type of a field from
57 int to bfd_reloc_code_real_type.
58 * config/tc-tic4x.c: Likewise.
59
60 2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
61
62 * config/tc-v850.c (v850_target_arch): change type to enum
63 bfd_architecture.
64 * config/tc-v850.h (v850_target_arch): Likewise.
65
66 2016-05-18 Alan Modra <amodra@gmail.com>
67
68 * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
69 allowed negative range.
70 * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
71 * testsuite/gas/ppc/power9.d: Update.
72
73 2016-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
74
75 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
76 disassembling and stop skipping targets.
77 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
78 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
79 * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
80 instruction for targets that have stronger alignment requirement.
81 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
82 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
83 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
84 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
85 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
86 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
87 * testsuite/gas/arm/archv8m-main.d: Likewise.
88 * testsuite/gas/arm/archv8m.s: Add label.
89 * testsuite/gas/arm/archv8m-cmse.s: Likewise.
90 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
91 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
92
93 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
94
95 * config/tc-m32r.c (mach_table): Make static and const.
96
97 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
98
99 * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
100 definition.
101
102 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
103
104 * config/tc-mn10300.c (md_begin): set linkrelax here instead of
105 defining it.
106 * config/tc-msp430.c (md_begin): Likewise.
107
108 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
109
110 * config/tc-m68hc11.c (fixup8): Change variables type from int to
111 bfd_reloc_code_real_type where appropriate.
112 (fixup16): Likewise.
113 (fixup8_xg): Likewise.
114
115 2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
116
117 * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
118
119 2016-05-13 Peter Bergner <bergner@vnet.ibm.com>
120
121 * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
122 * testsuite/gas/ppc/power9.s: Likewise.
123
124 2016-05-13 Alan Modra <amodra@gmail.com>
125
126 * config/obj-coff.c (weak_uniquify): Delete unused var.
127
128 2016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
129
130 * app.c (app_push): Use XNEW and related macros.
131 * as.c (parse_args): Likewise.
132 * cgen.c (make_right_shifted_expr): Likewise.
133 (gas_cgen_tc_gen_reloc): Likewise.
134 * config/bfin-defs.h: Likewise.
135 * config/bfin-parse.y: Likewise.
136 * config/obj-coff.c (stack_init): Likewise.
137 (stack_push): Likewise.
138 (coff_obj_symbol_new_hook): Likewise.
139 (coff_obj_symbol_clone_hook): Likewise.
140 (add_lineno): Likewise.
141 (coff_frob_symbol): Likewise.
142 * config/obj-elf.c (obj_elf_section_name): Likewise.
143 (build_group_lists): Likewise.
144 * config/obj-evax.c (evax_symbol_new_hook): Likewise.
145 * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
146 * config/tc-aarch64.c (insert_reg_alias): Likewise.
147 (find_or_make_literal_pool): Likewise.
148 (add_to_lit_pool): Likewise.
149 (fill_instruction_hash_table): Likewise.
150 * config/tc-alpha.c (load_expression): Likewise.
151 (emit_jsrjmp): Likewise.
152 (s_alpha_ent): Likewise.
153 (s_alpha_end): Likewise.
154 (s_alpha_linkage): Likewise.
155 (md_begin): Likewise.
156 (tc_gen_reloc): Likewise.
157 * config/tc-arc.c (arc_insert_opcode): Likewise.
158 (arc_extcorereg): Likewise.
159 * config/tc-bfin.c: Likewise.
160 * config/tc-cr16.c: Likewise.
161 * config/tc-cris.c: Likewise.
162 * config/tc-crx.c (preprocess_reglist): Likewise.
163 * config/tc-d10v.c: Likewise.
164 * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
165 (frv_tomcat_shuffle): Likewise.
166 * config/tc-h8300.c: Likewise.
167 * config/tc-i370.c (i370_macro): Likewise.
168 * config/tc-i386.c (lex_got): Likewise.
169 (md_parse_option): Likewise.
170 * config/tc-ia64.c (alloc_record): Likewise.
171 (set_imask): Likewise.
172 (save_prologue_count): Likewise.
173 (dot_proc): Likewise.
174 (dot_endp): Likewise.
175 (ia64_frob_label): Likewise.
176 (add_qp_imply): Likewise.
177 (add_qp_mutex): Likewise.
178 (mark_resource): Likewise.
179 (dot_alias): Likewise.
180 * config/tc-m68hc11.c: Likewise.
181 * config/tc-m68k.c (m68k_frob_label): Likewise.
182 (s_save): Likewise.
183 (mri_control_label): Likewise.
184 (push_mri_control): Likewise.
185 (build_mri_control_operand): Likewise.
186 (s_mri_else): Likewise.
187 (s_mri_break): Likewise.
188 (s_mri_next): Likewise.
189 (s_mri_for): Likewise.
190 (s_mri_endw): Likewise.
191 * config/tc-metag.c (create_mnemonic_htab): Likewise.
192 * config/tc-microblaze.c: Likewise.
193 * config/tc-mmix.c (s_loc): Likewise.
194 * config/tc-nds32.c (nds32_relax_hint): Likewise.
195 * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
196 * config/tc-rl78.c: Likewise.
197 * config/tc-rx.c (rx_include): Likewise.
198 * config/tc-sh.c: Likewise.
199 * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
200 * config/tc-sparc.c: Likewise.
201 * config/tc-spu.c: Likewise.
202 * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
203 (tic6x_start_unwind_section): Likewise.
204 * config/tc-tilegx.c: Likewise.
205 * config/tc-tilepro.c: Likewise.
206 * config/tc-v850.c: Likewise.
207 * config/tc-visium.c: Likewise.
208 * config/tc-xgate.c: Likewise.
209 * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
210 (new_resource_table): Likewise.
211 (resize_resource_table): Likewise.
212 (xtensa_create_trampoline_frag): Likewise.
213 (xtensa_maybe_create_literal_pool_frag): Likewise.
214 (cache_literal_section): Likewise.
215 * config/xtensa-relax.c (append_transition): Likewise.
216 (append_condition): Likewise.
217 (append_value_condition): Likewise.
218 (append_constant_value_condition): Likewise.
219 (append_literal_op): Likewise.
220 (append_label_op): Likewise.
221 (append_constant_op): Likewise.
222 (append_field_op): Likewise.
223 (append_user_fn_field_op): Likewise.
224 (enter_opname_n): Likewise.
225 (enter_opname): Likewise.
226 (split_string): Likewise.
227 (parse_insn_templ): Likewise.
228 (clone_req_or_option_list): Likewise.
229 (clone_req_option_list): Likewise.
230 (parse_option_cond): Likewise.
231 (parse_insn_pattern): Likewise.
232 (parse_insn_repl): Likewise.
233 (build_transition): Likewise.
234 (build_transition_table): Likewise.
235 * dw2gencfi.c (alloc_fde_entry): Likewise.
236 (alloc_cfi_insn_data): Likewise.
237 (cfi_add_CFA_remember_state): Likewise.
238 (dot_cfi_escape): Likewise.
239 (dot_cfi_fde_data): Likewise.
240 (select_cie_for_fde): Likewise.
241 * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
242 * ecoff.c (ecoff_add_bytes): Likewise.
243 (ecoff_build_debug): Likewise.
244 * input-scrub.c (input_scrub_push): Likewise.
245 (input_scrub_begin): Likewise.
246 (input_scrub_next_buffer): Likewise.
247 * itbl-ops.c (append_insns_as_macros): Likewise.
248 (alloc_entry): Likewise.
249 (alloc_field): Likewise.
250 * listing.c (listing_newline): Likewise.
251 (listing_listing): Likewise.
252 * macro.c (get_any_string): Likewise.
253 (delete_macro): Likewise.
254 * stabs.c (generate_asm_file): Likewise.
255 (stabs_generate_asm_lineno): Likewise.
256 * subsegs.c (subseg_change): Likewise.
257 (subseg_get): Likewise.
258 * symbols.c (define_dollar_label): Likewise.
259 (symbol_relc_make_sym): Likewise.
260 * write.c (write_relocs): Likewise.
261
262 2016-05-13 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
263
264 * config/obj-coff.c (obj_coff_def): Simplify string copying.
265 (weak_name2altname): Likewise.
266 (weak_uniquify): Likewise.
267 (obj_coff_section): Likewise.
268 (obj_coff_init_stab_section): Likewise.
269 * config/obj-elf.c (obj_elf_section_name): Likewise.
270 (obj_elf_init_stab_section): Likewise.
271 * config/obj-evax.c (evax_shorten_name): Likewise.
272 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
273 * config/tc-aarch64.c (create_register_alias): Likewise.
274 * config/tc-alpha.c (load_expression): Likewise.
275 (s_alpha_file): Likewise.
276 (s_alpha_section_name): Likewise.
277 (tc_gen_reloc): Likewise.
278 * config/tc-arc.c (md_assemble): Likewise.
279 * config/tc-arm.c (create_neon_reg_alias): Likewise.
280 (start_unwind_section): Likewise.
281 * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
282 (hppa_elf_mark_end_of_function): Likewise.
283 * config/tc-nios2.c (nios2_modify_arg): Likewise.
284 (nios2_negate_arg): Likewise.
285 * config/tc-rx.c (rx_section): Likewise.
286 * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
287 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
288 * config/tc-tic54x.c (tic54x_include): Likewise.
289 (tic54x_macro_info): Likewise.
290 (subsym_get_arg): Likewise.
291 (subsym_substitute): Likewise.
292 (tic54x_start_line_hook): Likewise.
293 * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
294 (xg_reverse_shift_count): Likewise.
295 * config/xtensa-relax.c (enter_opname_n): Likewise.
296 (split_string): Likewise.
297 * dwarf2dbg.c (get_filenum): Likewise.
298 (process_entries): Likewise.
299 * expr.c (operand): Likewise.
300 * itbl-ops.c (alloc_entry): Likewise.
301 * listing.c (listing_message): Likewise.
302 (listing_title): Likewise.
303 * macro.c (check_macro): Likewise.
304 * stabs.c (s_xstab): Likewise.
305 * symbols.c (symbol_relc_make_expr): Likewise.
306 * write.c (compress_debug): Likewise.
307
308 2016-05-12 Nick Clifton <nickc@redhat.com>
309
310 PR target/20068
311 * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
312
313 2016-05-11 Nick Clifton <nickc@redhat.com>
314
315 PR target/20068
316 * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
317 big endian ARM configurations.
318
319 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
320 Matthew Fortune <matthew.fortune@imgtec.com>
321
322 * config/tc-mips.c (options): Add OPTION_DSPR3 and
323 OPTION_NO_DSPR3.
324 (md_longopts): Likewise.
325 (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
326 (mips_ases): Define availability for DSPr3.
327 (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
328 (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
329 * doc/as.texinfo: Document -mdspr3, -mno-dspr3. Fix -mdspr2
330 formatting.
331 * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
332 .set nodspr3. Fix -mdspr2 formatting.
333 * testsuite/gas/mips/mips32-dspr3.d: New file.
334 * testsuite/gas/mips/mips32-dspr3.s: Likewise.
335 * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
336
337 2016-05-11 Nick Clifton <nickc@redhat.com>
338
339 PR target/20068
340 * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
341 to the pool uses O_constant.
342 * testsuite/gas/arm/pr20068.s: New test.
343 * testsuite/gas/arm/pr20068.d: Test driver.
344
345 2016-05-11 Nick Clifton <nickc@redhat.com>
346
347 * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
348 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
349 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
350 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
351 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
352 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
353 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
354 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
355 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
356
357 2016-05-10 Alexander Fomin <alexander.fomin@intel.com>
358
359 * testsuite/gas/i386/i386.exp: Run RDPID tests.
360 * testsuite/gas/i386/prefix.d: Adjust.
361 * testsuite/gas/i386/rdpid.s: New test.
362 * testsuite/gas/i386/rdpid.d: Ditto.
363 * testsuite/gas/i386/rdpid-intel.d: Ditto.
364 * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
365 * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
366 * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
367
368 2016-05-10 Alexander Fomin <alexander.fomin@intel.com>
369
370 * config/tc-i386.c (cpu_arch): Add RDPID.
371 * doc/c-i386.texi: Document RDPID.
372
373 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
374
375 * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
376 set branch type of a symbol.
377
378 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
379
380 * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
381 * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
382 instructions.
383 (arm_extensions): Add dsp extension for ARMv8-M Mainline.
384 (aeabi_set_public_attributes): Memorize the feature bits of the
385 architecture selected for Tag_CPU_arch. Use it to set
386 Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
387 (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
388 * testsuite/gas/arm/arch7em-bad.d: Rename to ...
389 * testsuite/gas/arm/arch7em-bad-1.d: This.
390 * testsuite/gas/arm/arch7em-bad-2.d: New file.
391 * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
392 * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
393 * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
394 * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
395 * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
396 * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
397 * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
398
399 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
400
401 * config/tc-arm.c (struct arm_option_extension_value_table): Make
402 allowed_archs an array with 2 entries.
403 (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
404 (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
405 (arm_extensions): Use separate entries in allowed_archs when several
406 archs are allowed to use an extension and change ARCH_ANY in
407 ARM_ARCH_NONE in allowed_archs.
408 (arm_parse_extension): Check that, for each allowed_archs entry, all
409 bits are set in the current architecture, ignoring ARM_ANY entries.
410 (s_arm_arch_extension): Likewise.
411
412 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
413
414 * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
415 (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
416 (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
417 shared with a non M profile architecture.
418 (do_rn): New function.
419 (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
420 than arm_ext_v8m.
421 (v7m_psrs): Add ARMv8-M security extensions new special registers.
422 (insns): Add ARMv8-M Security Extensions instructions.
423 (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
424 arm_ext_v8m_m to decide the profile and the Thumb ISA.
425 * testsuite/gas/arm/archv8m-cmse.s: New file.
426 * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
427 * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
428 * testsuite/gas/arm/any-cmse.d: Likewise.
429 * testsuite/gas/arm/any-cmse-main.d: Likewise.
430 * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
431 * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
432 * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
433 * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
434 * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
435
436 2016-05-09 Jose E. Marchesi <jose.marchesi@oracle.com>
437
438 * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
439 * testsuite/gas/sparc/sparc5vis4.d: Likewise.
440
441 2016-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
442
443 * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
444 (fpu_arch_vfp_v3): Likewise.
445 (fpu_arch_neon_v1): Likewise.
446 (arm_arch_full): Likewise.
447 (parse_neon_el_struct_list): Initialize fields of firsttype.
448
449 2016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
450
451 * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
452 (arc_extinsn): Handle new introduced syntax.
453 * testsuite/gas/arc/textinsn1op.d: New file.
454 * testsuite/gas/arc/textinsn1op.s: Likewise.
455 * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
456
457 2016-05-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
458
459 * testsuite/gas/lns/lns.exp: Add avr to list of targets using
460 DW_LNS_fixed_advance_pc.
461
462 2016-04-27 Alan Modra <amodra@gmail.com>
463
464 * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
465 (xmemdup0): New inline function.
466
467 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
468
469 * config/tc-mips.c (code_option_type): New enum.
470 (parse_code_option): Return status indicating option type.
471 (s_mipsset): Update `parse_code_option' call site accordingly.
472 Always set register sizes from the ISA with ISA overrides.
473 (s_module): Update `parse_code_option' call site.
474 * testsuite/gas/mips/isa-override-1.d: New test.
475 * testsuite/gas/mips/micromips@isa-override-1.d: New test.
476 * testsuite/gas/mips/mips1@isa-override-1.d: New test.
477 * testsuite/gas/mips/mips2@isa-override-1.d: New test.
478 * testsuite/gas/mips/mips32@isa-override-1.d: New test.
479 * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
480 * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
481 * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
482 * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
483 * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
484 * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
485 * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
486 * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
487 * testsuite/gas/mips/r3000@isa-override-1.d: New test.
488 * testsuite/gas/mips/r3900@isa-override-1.d: New test.
489 * testsuite/gas/mips/r5900@isa-override-1.d: New test.
490 * testsuite/gas/mips/octeon@isa-override-1.d: New test.
491 * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
492 * testsuite/gas/mips/isa-override-2.l: New list test.
493 * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
494 * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
495 * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
496 * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
497 * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
498 * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
499 * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
500 * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
501 * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
502 * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
503 * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
504 output.
505 * testsuite/gas/mips/isa-override-1.s: New test source.
506 * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
507 * testsuite/gas/mips/isa-override-2.s: New test source.
508 * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
509 * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
510 * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
511 * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
512 * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
513 * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
514 * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
515 * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
516 * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
517 * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
518 * testsuite/gas/mips/mips.exp: Run the new tests.
519
520 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
521
522 * cgen.c: Likewise.
523 * config/tc-bfin.c: Likewise.
524 * config/tc-ia64.c: Likewise.
525 * config/tc-mep.c: Likewise.
526 * config/tc-metag.c: Likewise.
527 * config/tc-nios2.c: Likewise.
528 * config/tc-rl78.c: Likewise.
529
530 2016-04-20 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
533 -mcpu. Add cross reference to .cpu directive from -mcpu option.
534 (ARC Directives): Add NPS400 to .cpu directive list.
535
536 2016-04-20 Matthew Wahab <matthew.wahab@arm.com>
537
538 * config/tc-aarch64.c (aarch64_features): Add "ras".
539 * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
540 * testsuite/gas/aarch64/armv8-ras-1.d: New.
541 * testsuite/gas/aarch64/armv8-ras-1.s: New.
542 * testsuite/gas/aarch64/illegal-ras-1.d: New.
543 * testsuite/gas/aarch64/illegal-ras-1.s: New.
544
545 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * testsuite/gas/arc/nps400-6.d: New file.
548 * testsuite/gas/arc/nps400-6.s: New file.
549
550 2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * testsuite/gas/arc/nps400-4.d: New file.
553 * testsuite/gas/arc/nps400-4.s: New file.
554 * testsuite/gas/arc/nps400-5.d: New file.
555 * testsuite/gas/arc/nps400-5.s: New file.
556
557 2016-04-19 Martin Galvan <martin.galvan@tallertechnologies.com>
558
559 * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
560 documentation.
561
562 2016-04-17 Andrew Burgess <andrew.burgess@embecosm.com>
563
564 Revert prevous change.
565 * config/tc-arc.c (arc_option): Make .cpu directive
566 case-sensitive again.
567
568 2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * config/tc-arc.c (arc_option): Make .cpu directive
571 case-insensitive.
572
573 2016-04-16 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
576
577 2016-04-15 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
578
579 * config/tc-mips.c (md_begin): Remove useless assignment.
580
581 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
582
583 * Makefile.in: Regenerated with automake 1.11.6.
584 * aclocal.m4: Likewise.
585 * doc/Makefile.in: Likewise.
586
587 2016-04-15 Alan Modra <amodra@gmail.com>
588
589 * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
590
591 2016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
592
593 * config/tc-nios2.c (nios2_as_options): Make file static.
594 * config/tc-ppc.c (toc_reloc_ypes): Likewise.
595 * config/tc-sparc.c (native_op_table): Likewise.
596
597 2016-04-14 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
598
599 * config/tc-m32c.c (M32C_Macros): Remove.
600 * config/tc-msp430.c (option_numbers): Likewise.
601
602 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * testsuite/gas/arc/nps400-3.d: New file.
605 * testsuite/gas/arc/nps400-3.s: New file.
606
607 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * testsuite/gas/arc/add_s-err.s: Update target pattern.
610 * testsuite/gas/arc/warn.s: Likewise.
611 * testsuite/gas/elf/elf.exp: Run test for arc.
612
613 2016-04-14 Nick Clifton <nickc@redhat.com>
614
615 PR target/19938
616 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
617 sections possibly having the SHF_STRINGS flag bit set.
618 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
619
620 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
621
622 * config/tc-arc.c (mach_type_specified_p): Change type to
623 bfd_boolean.
624 (arc_option): Set private flags when parsing cpu pseudo-op.
625 (md_parse_option): Set mach_type_specified_p to TRUE.
626
627 2016-04-13 Nick Clifton <nickc@redhat.com>
628
629 PR target/19937
630 * testsuite/gas/v850/pr19937.s: New test.
631 * testsuite/gas/v850/pr19937.d: New test control file.
632 * testsuite/gas/v850/basic.exp: Run the new test.
633
634 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
635 Andrew Bennett <andrew.bennett@imgtec.com>
636
637 * config/tc-mips.c (relaxed_branch_length): Use the long
638 sequence where the target is a weak symbol.
639 (relaxed_micromips_32bit_branch_length): Likewise.
640 (relaxed_micromips_16bit_branch_length): Likewise.
641 * testsuite/gas/mips/branch-weak-1.d: New test.
642 * testsuite/gas/mips/branch-weak-2.d: New test.
643 * testsuite/gas/mips/branch-weak-3.d: New test.
644 * testsuite/gas/mips/branch-weak-4.d: New test.
645 * testsuite/gas/mips/branch-weak-5.d: New test.
646 * testsuite/gas/mips/branch-weak.l: New stderr output.
647 * testsuite/gas/mips/branch-weak.s: New test source.
648 * testsuite/gas/mips/mips.exp: Run the new tests.
649
650 2016-04-13 Maciej W. Rozycki <macro@imgtec.com>
651
652 * config/tc-mips.c (relaxed_branch_length): Use the long
653 sequence where the distance cannot be determined.
654 (relaxed_micromips_32bit_branch_length): Likewise.
655 * testsuite/gas/mips/branch-extern-1.d: New test.
656 * testsuite/gas/mips/branch-extern-2.d: New test.
657 * testsuite/gas/mips/branch-extern-3.d: New test.
658 * testsuite/gas/mips/branch-extern-4.d: New test.
659 * testsuite/gas/mips/branch-extern.l: New stderr output.
660 * testsuite/gas/mips/branch-extern.s: New test source.
661 * testsuite/gas/mips/branch-section-1.d: New test.
662 * testsuite/gas/mips/branch-section-2.d: New test.
663 * testsuite/gas/mips/branch-section-3.d: New test.
664 * testsuite/gas/mips/branch-section-4.d: New test.
665 * testsuite/gas/mips/branch-section.l: New stderr output.
666 * testsuite/gas/mips/branch-section.s: New test source.
667 * testsuite/gas/mips/mips.exp: Run the new tests.
668
669 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
670
671 * testsuite/gas/arc/textauxregister.d: New file.
672 * testsuite/gas/arc/textauxregister.s: Likewise.
673 * testsuite/gas/arc/textcondcode.d: Likewise.
674 * testsuite/gas/arc/textcondcode.s: Likewise.
675 * testsuite/gas/arc/textcoreregister.d: Likewise.
676 * testsuite/gas/arc/textcoreregister.s: Likewise.
677 * testsuite/gas/arc/textpseudoop.d: Likewise.
678 * testsuite/gas/arc/textpseudoop.s: Likewise.
679 * testsuite/gas/arc/ld2.d: Update test.
680 * testsuite/gas/arc/st.d: Likewise.
681 * testsuite/gas/arc/taux.d: Likewise.
682 * doc/c-arc.texi (ARC Directives): Add .extCondCode,
683 .extCoreRegister and .extAuxRegister documentation.
684 * config/tc-arc.c (arc_extcorereg): New function.
685 (md_pseudo_table): Add .extCondCode, .extCoreRegister and
686 .extAuxRegister pseudo-ops.
687 (extRegister_t): New type.
688 (ext_condcode, arc_aux_hash): New global variable.
689 (find_opcode_match): Check for extensions.
690 (preprocess_operands): Likewise.
691 (md_begin): Add aux registers in a hash.
692 (assemble_insn): Update use arc_flags member.
693 (tokenize_extregister): New function.
694 (create_extcore_section): Likewise.
695 * config/tc-arc.h (arc_flags): Delete code, add flgp.
696
697 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
698
699 * testsuite/gas/arc/noargs_a7.d: New file.
700 * testsuite/gas/arc/noargs_a7.s: Likewise.
701 * testsuite/gas/arc/noargs_hs.d: Likewise.
702 * testsuite/gas/arc/noargs_hs.s: Likewise.
703
704 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
705
706 * testsuite/gas/arc/textinsn-errors.d: New File.
707 * testsuite/gas/arc/textinsn-errors.err: Likewise.
708 * testsuite/gas/arc/textinsn-errors.s: Likewise.
709 * testsuite/gas/arc/textinsn2op.d: Likewise.
710 * testsuite/gas/arc/textinsn2op.s: Likewise.
711 * testsuite/gas/arc/textinsn2op01.d: Likewise.
712 * testsuite/gas/arc/textinsn2op01.s: Likewise.
713 * testsuite/gas/arc/textinsn3op.d: Likewise.
714 * testsuite/gas/arc/textinsn3op.s: Likewise.
715 * doc/c-arc.texi (ARC Directives): Add .extInstruction
716 documentation.
717 * config/tc-arc.c (arcext_section): New variable.
718 (arc_extinsn): New function.
719 (md_pseudo_table): Add .extInstruction pseudo op.
720 (attributes_t): New type.
721 (suffixclass, syntaxclass, syntaxclassmod): New constant
722 structures.
723 (find_opcode_match): Remove arc_num_opcodes.
724 (md_begin): Likewise.
725 (tokenize_extinsn): New function.
726 (arc_set_ext_seg): Likewise.
727 (create_extinst_section): Likewise.
728
729 2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
730
731 * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
732 (arc_adjust_symtab): New function.
733 * config/tc-arc.h (ARC_FLAG_AUX): Define.
734 (obj_adjust_symtab): Likewise.
735 * testsuite/gas/arc/taux.d: New file.
736 * testsuite/gas/arc/taux.s: Likewise.
737
738 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
739
740 * config/tc-mips.c (s_option): Sanitize `.option picX'
741 pseudo-op.
742 * testsuite/gas/mips/option-pic-1.d: New test.
743 * testsuite/gas/mips/option-pic-2.l: New list test.
744 * testsuite/gas/mips/option-pic-1.s: New test source.
745 * testsuite/gas/mips/option-pic-2.s: New test source.
746 * testsuite/gas/mips/mips.exp: Run the new tests.
747
748 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
749
750 * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
751 PIC.
752 * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
753 * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
754 * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
755 * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
756 * testsuite/gas/mips/mips.exp: Run the new tests.
757
758 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
759
760 * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
761
762 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
763
764 * messages.c (as_bad): Fix a typo in description.
765
766 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
767
768 * config/tc-mips.c (mips_check_options): Unify messages.
769
770 2016-04-09 Maciej W. Rozycki <macro@imgtec.com>
771
772 * config/tc-mips.c (mips_check_options): Use `opts->isa'
773 consistently.
774
775 2016-04-08 Nick Clifton <nickc@redhat.com>
776
777 PR target/19910
778 * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
779 COFF and AOUT sparc targets.
780
781 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
784 * testsuite/gas/arc/nps400-2.d: New file.
785 * testsuite/gas/arc/nps400-2.s: New file.
786
787 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
790 structure.
791 (arc_opcode_hash_entry_iterator_init): New function.
792 (arc_opcode_hash_entry_iterator_next): New function.
793 (find_opcode_match): Iterate over all arc_opcode entries
794 referenced by the arc_opcode_hash_entry passed in as a parameter.
795
796 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * config/tc-arc.c (arc_find_opcode): Now returns
799 arc_opcode_hash_entry pointer.
800 (find_opcode_match): Update argument type, extract arc_opcode from
801 incoming arc_opcode_hash_entry.
802 (find_special_case_pseudo): Update return type.
803 (find_special_case_flag): Update return type.
804 (find_special_case): Update return type.
805 (assemble_tokens): Lookup arc_opcode_hash_entry based on
806 instruction mnemonic, then use find_opcode_match to identify
807 specific arc_opcode.
808
809 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
812 (arc_find_opcode): New function.
813 (find_special_case_pseudo): Use arc_find_opcode.
814 (find_special_case_flag): Likewise.
815 (assemble_tokens): Likewise.
816 (md_begin): Build hash using struct arc_opcode_hash_entry.
817
818 2016-04-07 Claudiu Zissulescu <claziss@synopsys.com>
819
820 * config/tc-arc.c (arc_option): Prepare string for automatic
821 translation.
822 (declare_register): Likewise.
823
824 2016-04-06 James Greenhalgh <james.greenhalgh@arm.com>
825
826 * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
827 Correct entry for RDMA. Alpha sort entries.
828
829 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * config/tc-arc.c (tokenize_flags): Allow greater range of
832 characters into flag names.
833
834 2016-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
837 new de_fault label.
838 (preprocess_operands): Delete.
839 (assemble_tokens): Remove call to preprocess_operands.
840
841 2016-04-07 Nick Clifton <nickc@redhat.com>
842
843 PR gas/19910
844 * config/tc-sparc.c (sparc_ip): Report an error if the expression
845 inside a %-macro could not be fully parsed.
846 * expr.c (integer_constant): Accept and ignore U suffixes to
847 integers.
848 (operand): When a missing closing parenthesis is encountered,
849 report the character that was found instead.
850 * testsuite/gas/mips/tls-ill.l: Update expected error message.
851 * testsuite/gas/sparc/pr19910-1.d: New test driver.
852 * testsuite/gas/sparc/pr19910-1.s: New test.
853 * testsuite/gas/sparc/pr19910-2.l: Expected error output.
854 * testsuite/gas/sparc/pr19910-2.s: New test.
855 * testsuite/gas/sparc/sparc.exp: Run the new tests.
856
857 2016-04-06 Nick Clifton <nickc@redhat.com>
858
859 * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
860 an EINT instruction. Warn/fix as necessary.
861 * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
862 * testsuite/gas/msp430/bad.l: Update expected messages.
863
864 2016-04-05 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * testsuite/gas/arc/nps400-1.d: Update expected results.
867 * testsuite/gas/arc/nps400-1.s: Additional test cases.
868
869 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
870
871 * config/tc-arc.c (is_code_density_p): Compare directly the
872 subclass field.
873 (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
874 (check_cpu_feature): New function.
875 (find_opcode_match): Use check_cpu_feature function.
876 (preprocess_operands): Likewise.
877 (md_parse_option): Use mfpuda, mdpfp, mspfp options.
878 * testsuite/gas/arc/tdpfp.d: New file.
879 * testsuite/gas/arc/tfpuda.d: Likewise.
880 * testsuite/gas/arc/tfpx.s: Likewise.
881
882 2016-04-05 Jiong Wang <jiong.wang@arm.com>
883
884 * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
885 * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
886 * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
887 * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
888 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
889 * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
890 * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
891 * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
892 for Thumb.
893 * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
894
895 2016-04-05 Claudiu Zissulescu <claziss@synopsys.com>
896
897 * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
898 JUMP instructions type.
899 * testsuite/gas/arc/relocs-errors.d: New file.
900 * testsuite/gas/arc/relocs-errors.err: Likewise.
901 * testsuite/gas/arc/relocs-errors.s: Likewise.
902
903 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
904
905 PR gas/19909
906 * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
907 only if i.disp_encoding != disp_encoding_32bit.
908 * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
909 * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
910 * gas/testsuite/gas/i386/disp32.d: Updated.
911 * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
912
913 2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
914
915 PR gas/19498
916 * testsuite/gas/i386/i386.exp: Run pr19498.
917 * testsuite/gas/i386/pr19498.d: New file.
918 * testsuite/gas/i386/pr19498.s: Likewise.
919
920 2016-04-04 Andrew Burgess <andrew.burgess@embecosm.com>
921
922 * config/tc-arc.h: Include 'opcode/arc.h'.
923 (MAX_INSN_ARGS): Delete.
924 (MAX_INSN_FLGS): Delete.
925
926 2016-04-04 Alan Modra <amodra@gmail.com>
927
928 PR 19498
929 * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
930 from function on all paths that set sy_resolving.
931
932 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
933
934 * app.c (app_push): use XNEW macro.
935 * as.c: Likewise.
936 * config/obj-elf.c (obj_elf_change_section): Likewise.
937 (elf_copy_symbol_attributes): Likewise.
938 (obj_elf_size): Likewise.
939 (build_group_lists): Likewise.
940 * config/tc-aarch64.c (add_operand_error_record): Likewise.
941 (md_assemble): Likewise.
942 (tc_gen_reloc): Likewise.
943 (get_upper_str): Likewise.
944 (aarch64_parse_features): Likewise.
945 * config/tc-arm.c (insert_reg_alias): Likewise.
946 (insert_neon_reg_alias): Likewise.
947 (find_or_make_literal_pool): Likewise.
948 (s_arm_elf_cons): Likewise.
949 (add_unwind_opcode): Likewise.
950 (arm_parse_extension): Likewise.
951 * config/tc-avr.c (create_record_for_frag): Likewise.
952 * config/tc-crx.c: Likewise.
953 * config/tc-d30v.c: Likewise.
954 * config/tc-dlx.c (s_proc): Likewise.
955 * config/tc-ft32.c: Likewise.
956 * config/tc-h8300.c: Likewise.
957 * config/tc-hppa.c (pa_proc): Likewise.
958 (create_new_space): Likewise.
959 (create_new_subspace): Likewise.
960 * config/tc-i860.c: Likewise.
961 * config/tc-i960.c: Likewise.
962 * config/tc-ia64.c: Likewise.
963 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
964 (iq2000_record_hi16): Likewise.
965 * config/tc-m32c.c (m32c_indirect_operand): Likewise.
966 * config/tc-m32r.c (debug_sym): Likewise.
967 (m32r_record_hi16): Likewise.
968 * config/tc-m68k.c (m68k_ip): Likewise.
969 (md_begin): Likewise.
970 * config/tc-mcore.c: Likewise.
971 * config/tc-microblaze.c (check_got): Likewise.
972 * config/tc-mips.c (append_insn): Likewise.
973 (s_mipsset): Likewise.
974 (mips_record_label): Likewise.
975 (s_mips_end): Likewise.
976 * config/tc-mmix.c (mmix_frob_file): Likewise.
977 * config/tc-mn10200.c: Likewise.
978 * config/tc-mn10300.c: Likewise.
979 * config/tc-moxie.c: Likewise.
980 * config/tc-msp430.c: Likewise.
981 * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
982 * config/tc-ns32k.c: Likewise.
983 * config/tc-or1k.c: Likewise.
984 * config/tc-pdp11.c: Likewise.
985 * config/tc-pj.c (fake_opcode): Likewise.
986 * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
987 (ppc_macro): Likewise.
988 (ppc_dwsect): Likewise.
989 (ppc_machine): Likewise.
990 * config/tc-rl78.c (rl78_frag_init): Likewise.
991 * config/tc-rx.c (rx_frag_init): Likewise.
992 * config/tc-s390.c (s390_lit_suffix): Likewise.
993 (s390_machine): Likewise.
994 (s390_machinemode): Likewise.
995 * config/tc-score.c (s3_insert_reg): Likewise.
996 (s3_gen_reloc): Likewise.
997 * config/tc-score7.c (s7_insert_reg): Likewise.
998 (s7_gen_reloc): Likewise.
999 * config/tc-tic30.c (tic30_operand): Likewise.
1000 * config/tc-tic4x.c (tic4x_inst_make): Likewise.
1001 * config/tc-tic54x.c (stag_add_field): Likewise.
1002 (tic54x_struct): Likewise.
1003 (tic54x_space): Likewise.
1004 (tic54x_field): Likewise.
1005 (tic54x_mlib): Likewise.
1006 (subsym_substitute): Likewise.
1007 * config/tc-tic6x.c (tic6x_frob_label): Likewise.
1008 * config/tc-vax.c: Likewise.
1009 * config/tc-xc16x.c: Likewise.
1010 * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
1011 (directive_push): Likewise.
1012 (xtensa_begin_directive): Likewise.
1013 (tokenize_arguments): Likewise.
1014 (xtensa_add_literal_sym): Likewise.
1015 (new_resource_table): Likewise.
1016 (resize_resource_table): Likewise.
1017 (emit_single_op): Likewise.
1018 (xtensa_create_trampoline_frag): Likewise.
1019 (xtensa_maybe_create_literal_pool_frag): Likewise.
1020 (xtensa_add_config_info): Likewise.
1021 (xtensa_realloc_fixup_cache): Likewise.
1022 (add_subseg_info): Likewise.
1023 (cache_literal_section): Likewise.
1024 (add_xt_block_frags): Likewise.
1025 (add_xt_prop_frags): Likewise.
1026 (init_op_placement_info_table): Likewise.
1027 (build_section_rename): Likewise.
1028 * config/tc-z80.c: Likewise.
1029 * config/tc-z8k.c: Likewise.
1030 * depend.c (register_dependency): Likewise.
1031 * dwarf2dbg.c (get_line_subseg): Likewise.
1032 (dwarf2_gen_line_info_1): Likewise.
1033 (get_filenum): Likewise.
1034 * ecoff.c (allocate_scope): Likewise.
1035 (allocate_vlinks): Likewise.
1036 (allocate_shash): Likewise.
1037 (allocate_thash): Likewise.
1038 (allocate_tag): Likewise.
1039 (allocate_forward): Likewise.
1040 (allocate_thead): Likewise.
1041 (allocate_lineno_list): Likewise.
1042 * expr.c (make_expr_symbol): Likewise.
1043 * hash.c (hash_new_sized): Likewise.
1044 * input-file.c (input_file_push): Likewise.
1045 * listing.c (file_info): Likewise.
1046 (listing_newline): Likewise.
1047 * macro.c (new_formal): Likewise.
1048 (define_macro): Likewise.
1049 * remap.c (add_debug_prefix_map): Likewise.
1050 * symbols.c (symbol_find_noref): Likewise.
1051 (define_dollar_label): Likewise.
1052 (fb_label_instance_inc): Likewise.
1053 (symbol_relc_make_value): Likewise.
1054
1055 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1056
1057 * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
1058 * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
1059 (ppc_znop): Likewise.
1060 (ppc_pe_section): Likewise.
1061 (ppc_frob_symbol): Likewise.
1062 * config/tc-tic30.c (tic30_operand): Likewise.
1063 * config/tc-tic4x.c (tic4x_sect): Likewise.
1064 (tic4x_usect): Likewise.
1065
1066 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1067
1068 * config/tc-alpha.c: Const qualify FLT_CHARS.
1069 * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
1070 * config/tc-cris.h: Likewise.
1071 * expr.c: Likewise.
1072 * config/tc-mmix.c (md_atof): Adjust comment.
1073 * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
1074 * tc.h: Declare FLT_CHARS and EXP_CHARS.
1075
1076 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1077
1078 * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
1079 * config/tc-score7.c (s7_gen_reloc): Likewise.
1080
1081 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1082
1083 * config/tc-arm.c (do_t_branch): Change the type of reloc to
1084 bfd_reloc_code_real_type.
1085
1086 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1087
1088 * config/bfin-parse.y (current_inputline): Remove definition.
1089 * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
1090
1091 2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1092
1093 * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
1094 strings.
1095
1096 2016-04-02 Alan Modra <amodra@gmail.com>
1097
1098 PR 19896
1099 * read.c (assign_symbol): Consume rest of line after an error
1100 rather than continuing to process the line.
1101
1102 2016-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
1105 (MAX_FLAG_NAME_LENGTH): ...this.
1106 (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
1107 * config/tc-arc.c (tokenize_flags): Likewise.
1108
1109 2016-04-01 Alan Modra <amodra@gmail.com>
1110
1111 * cgen.c (weak_operand_overflow_check): Return const char*.
1112 * messages.c (as_internal_value_out_of_range): Formatting.
1113 (as_warn_value_out_of_range): Consify prefix param.
1114 (as_bad_value_out_of_range): Likewise.
1115 * read.c (s_errwarn): Constify msg..
1116 (s_float_space, float_cons): ..and err.
1117 * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
1118 ieee_md_atof, vax_md_atof): Update prototypes.
1119 * tc.h (md_atof): Update prototype.
1120 * config/atof-ieee.c (ieee_md_atof): Return const char*.
1121 * config/atof-vax.c (vax_md_atof): Likewise.
1122 * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
1123 * config/tc-aarch64.c (md_atof): Return const char*.
1124 * config/tc-alpha.c (s_alpha_section_name): Likewise.
1125 (s_alpha_comm): Constify sec_name.
1126 (section_name): Constify.
1127 (s_alpha_section): Consify name..
1128 (alpha_elf_section_letter): ..and ptr_msg param..
1129 (md_atof): ..and return.
1130 * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
1131 * config/tc-arc.c (md_atof): Return const char*.
1132 * config/tc-arm.c (md_atof): Likewise.
1133 * config/tc-avr.c (md_atof): Likewise.
1134 * config/tc-bfin.c (md_atof): Likewise.
1135 * config/tc-cr16.c (md_atof): Likewise.
1136 * config/tc-cris.c (md_atof): Likewise.
1137 * config/tc-crx.c (md_atof): Likewise.
1138 * config/tc-d10v.c (md_atof): Likewise.
1139 * config/tc-d30v.c (md_atof): Likewise.
1140 * config/tc-dlx.c (md_atof): Likewise.
1141 * config/tc-epiphany.c (md_atof): Likewise.
1142 * config/tc-fr30.c (md_atof): Likewise.
1143 * config/tc-frv.c (md_atof): Likewise.
1144 * config/tc-ft32.c (md_atof): Likewise.
1145 * config/tc-h8300.c (md_atof): Likewise.
1146 * config/tc-hppa.c (struct default_subspace_dict): Constify name.
1147 (struct default_space_dict): Likewise.
1148 (create_new_space): Constify name param.
1149 (create_new_subspace): Likewise.
1150 (is_defined_space, is_defined_subspace): Likewise.
1151 (pa_parse_space_stmt): Constify space_name param.
1152 (md_atof): Return const char*.
1153 (pa_spaces_begin): Constify name.
1154 * config/tc-i370.c (md_atof): Return const char*.
1155 * config/tc-i386.c (md_atof): Likewise.
1156 (x86_64_section_letter): Constify ptr_msg param.
1157 * config/tc-i386.h (x86_64_section_letter): Update prototype.
1158 * config/tc-i860.c (struct i860_it): Constify error.
1159 (md_atof): Return const char*.
1160 * config/tc-i960.c (md_atof): Likewise.
1161 * config/tc-ia64.c (md_atof): Likewise.
1162 (ia64_elf_section_letter): Constify ptr_msg param.
1163 * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
1164 * config/tc-ip2k.c (md_atof): Return const char*.
1165 * config/tc-iq2000.c (md_atof): Likewise.
1166 * config/tc-lm32.c (md_atof): Likewise.
1167 * config/tc-m32c.c (md_atof): Likewise.
1168 * config/tc-m32r.c (md_atof): Likewise.
1169 * config/tc-m68hc11.c (md_atof): Likewise.
1170 * config/tc-m68k.c (md_atof): Likewise.
1171 * config/tc-mcore.c (md_atof): Likewise.
1172 * config/tc-mep.c (md_atof): Likewise.
1173 (mep_elf_section_letter): Constify ptr_msg param.
1174 * config/tc-mep.h (mep_elf_section_letter): Update prototype.
1175 * config/tc-metag.c (md_atof): Return const char*.
1176 * config/tc-microblaze.c (md_atof): Likewise.
1177 * config/tc-microblaze.h (md_atof): Delete prototype.
1178 * config/tc-mips.c (mips_parse_argument_token): Constify err.
1179 (md_atof): Return const char*.
1180 * config/tc-mmix.c (md_atof): Likewise.
1181 * config/tc-mn10200.c (md_atof): Likewise.
1182 * config/tc-mn10300.c (md_atof): Likewise.
1183 * config/tc-moxie.c (md_atof): Likewise.
1184 * config/tc-msp430.c (md_atof): Likewise.
1185 * config/tc-mt.c (md_atof): Likewise.
1186 * config/tc-nds32.c (md_atof): Likewise.
1187 * config/tc-nios2.c (md_atof): Likewise.
1188 (nios2_elf_section_letter): Constify ptr_msg param.
1189 * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
1190 * config/tc-ns32k.c (md_atof): Return const char*.
1191 * config/tc-or1k.c (md_atof): Likewise.
1192 * config/tc-pdp11.c (struct pdp11_code): Constify error.
1193 (md_atof): Return const char*.
1194 * config/tc-pj.c (md_atof): Likewise.
1195 * config/tc-ppc.c (md_atof): Likewise.
1196 * config/tc-rl78.c (md_atof): Likewise.
1197 * config/tc-rx.c (md_atof): Likewise.
1198 * config/tc-s390.c (md_atof): Likewise.
1199 * config/tc-score.c (s3_atof, md_atof): Likewise.
1200 * config/tc-sh.c (md_atof): Likewise.
1201 * config/tc-sparc.c (struct sparc_it): Constify error.
1202 (md_atof): Return const char*.
1203 * config/tc-spu.c (md_atof): Likewise.
1204 * config/tc-tic30.c (md_atof): Likewise.
1205 * config/tc-tic4x.c (md_atof): Likewise.
1206 * config/tc-tic54x.c (md_atof): Likewise.
1207 * config/tc-tic6x.c (md_atof): Likewise.
1208 * config/tc-tilegx.c (md_atof): Likewise.
1209 * config/tc-tilepro.c (md_atof): Likewise.
1210 * config/tc-v850.c (parse_register_list, md_atof): Likewise.
1211 * config/tc-vax.c (md_atof): Likewise.
1212 * config/tc-visium.c (md_atof): Likewise.
1213 * config/tc-xc16x.c (md_atof): Likewise.
1214 * config/tc-xgate.c (md_atof): Likewise.
1215 * config/tc-xstormy16.c (md_atof): Likewise.
1216 * config/tc-xtensa.c (md_atof): Likewise.
1217 * config/tc-z80.c (md_atof): Likewise.
1218 * config/tc-z8k.c (md_atof): Likewise.
1219
1220 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1221
1222 * config/tc-xtensa.c (struct rename_section_struct): Make old_name
1223 const.
1224 (xtensa_section_rename): Make argument type const char *.
1225 * config/tc-xtensa.h (xtensa_section_rename): Adjust.
1226
1227 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1228
1229 * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
1230 args[0].
1231
1232 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1233
1234 * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
1235 char *.
1236 (m32c_indirect_operand): Likewise.
1237 * config/tc-nds32.c (do_pseudo_b): Likewise.
1238 (do_pseudo_bal): Likewise.
1239 (do_pseudo_ls_bhw): Likewise.
1240
1241 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1242
1243 * as.c (parse_args): Cast literal to char * when assigning to optarg.
1244
1245 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1246
1247 * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
1248 get_symbol_name ().
1249 * config/tc-sparc.c (s_register): Cast a literal to char * in
1250 assignment.
1251
1252 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1253
1254 * config/tc-i960.c (parse_expr): Cast to char * when assigning to
1255 input_line_pointer.
1256 * config/tc-m32r.c (expand_debug_syms): Likewise.
1257 * config/tc-msp430.c (msp430_dstoperand): Likewise.
1258 * config/tc-z80.c (md_begin): Likewise.
1259 * stabs.c (stabs_generate_asm_func): Likewise.
1260
1261 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1262
1263 * cgen.c: Modernize the way functions declare arguments.
1264 * config/tc-bfin.c: Likewise.
1265 * config/tc-pdp11.c: Likewise.
1266 * literal.c: Likewise.
1267 * read.c: Likewise.
1268 * stabs.c: Likewise.
1269
1270 2016-03-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1271
1272 * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
1273 variables unsigned char[].
1274 * config/tc-alpha.c (alpha_handle_align): Likewise.
1275 * config/tc-arm.c (arm_handle_align): Likewise.
1276 * config/tc-z80.c: Likewise.
1277
1278 2016-03-30 Nick Clifton <nickc@redhat.com>
1279
1280 PR target/19880
1281 * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
1282 shifting.
1283
1284 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
1285
1286 * testsuite/gas/all/gas.exp: Don't xfail on ARC.
1287 * testsuite/gas/elf/elf.exp: Likewise.
1288 * testsuite/gas/all/redef3.d: Allow execution for ARC.
1289
1290 2016-03-30 Claudiu Zissulescu <claziss@synopsys.com>
1291
1292 * testsuite/gas/arc/warn.exp: Fix matching pattern.
1293
1294 2016-03-29 Claudiu Zissulescu <claziss@synopsys.com>
1295
1296 * testsuite/gas/arc/ext2op.d: New file.
1297 * testsuite/gas/arc/ext2op.s: Likewise.
1298 * testsuite/gas/arc/ext3op.d: Likewise.
1299 * testsuite/gas/arc/ext3op.s: Likewise.
1300
1301 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1302
1303 * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
1304 qualifier.
1305 * config/tc-alpha.c (md_parse_option): Likewise.
1306 * config/tc-arc.c (md_parse_option): Likewise.
1307 * config/tc-arm.c (struct arm_long_option_table): Likewise.
1308 (md_parse_option): Likewise.
1309 * config/tc-avr.c (md_parse_option): Likewise.
1310 * config/tc-bfin.c (md_parse_option): Likewise.
1311 * config/tc-cr16.c (md_parse_option): Likewise.
1312 * config/tc-cris.c (s_cris_arch): Likewise.
1313 (md_parse_option): Likewise.
1314 * config/tc-crx.c (md_parse_option): Likewise.
1315 * config/tc-d10v.c (md_parse_option): Likewise.
1316 * config/tc-d30v.c (md_parse_option): Likewise.
1317 * config/tc-dlx.c (md_parse_option): Likewise.
1318 * config/tc-epiphany.c (md_parse_option): Likewise.
1319 * config/tc-fr30.c (md_parse_option): Likewise.
1320 * config/tc-frv.c (md_parse_option): Likewise.
1321 * config/tc-ft32.c (md_parse_option): Likewise.
1322 * config/tc-h8300.c (md_parse_option): Likewise.
1323 * config/tc-hppa.c (md_parse_option): Likewise.
1324 * config/tc-i370.c (md_parse_option): Likewise.
1325 * config/tc-i386.c (md_parse_option): Likewise.
1326 * config/tc-i860.c (md_parse_option): Likewise.
1327 * config/tc-i960.c (md_parse_option): Likewise.
1328 * config/tc-ia64.c (md_parse_option): Likewise.
1329 * config/tc-ip2k.c (md_parse_option): Likewise.
1330 * config/tc-iq2000.c (md_parse_option): Likewise.
1331 * config/tc-lm32.c (md_parse_option): Likewise.
1332 * config/tc-m32c.c (md_parse_option): Likewise.
1333 * config/tc-m32r.c (md_parse_option): Likewise.
1334 * config/tc-m68hc11.c (md_parse_option): Likewise.
1335 * config/tc-m68k.c (md_parse_option): Likewise.
1336 * config/tc-mcore.c (md_parse_option): Likewise.
1337 * config/tc-mep.c (md_parse_option): Likewise.
1338 * config/tc-metag.c (struct metag_long_option): Likewise.
1339 (md_parse_option): Likewise.
1340 * config/tc-microblaze.c (md_parse_option): Likewise.
1341 * config/tc-microblaze.h (md_parse_option): Remove prototype.
1342 * config/tc-mips.c (md_parse_option): Adjust.
1343 * config/tc-mmix.c (md_parse_option): Likewise.
1344 * config/tc-mn10200.c (md_parse_option): Likewise.
1345 * config/tc-mn10300.c (md_parse_option): Likewise.
1346 * config/tc-moxie.c (md_parse_option): Likewise.
1347 * config/tc-msp430.c (md_parse_option): Likewise.
1348 * config/tc-mt.c (md_parse_option): Likewise.
1349 * config/tc-nds32.c (md_parse_option): Likewise.
1350 * config/tc-nds32.h (nds32_parse_option): Likewise.
1351 * config/tc-nios2.c (md_parse_option): Likewise.
1352 * config/tc-ns32k.c (md_parse_option): Likewise.
1353 * config/tc-or1k.c (md_parse_option): Likewise.
1354 * config/tc-pdp11.c (md_parse_option): Likewise.
1355 * config/tc-pj.c (md_parse_option): Likewise.
1356 * config/tc-ppc.c (md_parse_option): Likewise.
1357 * config/tc-rl78.c (md_parse_option): Likewise.
1358 * config/tc-rx.c (md_parse_option): Likewise.
1359 * config/tc-s390.c (s390_parse_cpu): Likewise.
1360 * config/tc-score.c (md_parse_option): Likewise.
1361 * config/tc-sh.c (md_parse_option): Likewise.
1362 * config/tc-sparc.c (md_parse_option): Likewise.
1363 * config/tc-spu.c (md_parse_option): Likewise.
1364 * config/tc-tic30.c (md_parse_option): Likewise.
1365 * config/tc-tic4x.c (md_parse_option): Likewise.
1366 * config/tc-tic54x.c (md_parse_option): Likewise.
1367 * config/tc-tic6x.c (md_parse_option): Likewise.
1368 * config/tc-tilegx.c (md_parse_option): Likewise.
1369 * config/tc-tilepro.c (md_parse_option): Likewise.
1370 * config/tc-v850.c (md_parse_option): Likewise.
1371 * config/tc-vax.c (md_parse_option): Likewise.
1372 * config/tc-visium.c (struct visium_long_option_table): Likewise.
1373 * config/tc-xc16x.c (md_parse_option): Likewise.
1374 * config/tc-xgate.c (md_parse_option): Likewise.
1375 * config/tc-xstormy16.c (md_parse_option): Likewise.
1376 * config/tc-xtensa.c (md_parse_option): Likewise.
1377 * config/tc-z80.c (md_parse_option): Likewise.
1378 * config/tc-z8k.c (md_parse_option): Likewise.
1379 * tc.h (md_parse_option): Likewise.
1380
1381 2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1382
1383 * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
1384 * config/tc-hppa.c (fix_new_hppa): Likewise.
1385 (pa_vtable_entry): Likewise.
1386 (pa_vtable_inherit): Likewise.
1387 * config/tc-m68k.c (md_begin): Likewise.
1388
1389 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1390
1391 * config/obj-elf.c (obj_elf_section_name): Return const char *.
1392 * config/obj-elf.h (obj_elf_section_name): Adjust.
1393 * config/tc-aarch64.c (aarch64_parse_features): Likewise.
1394 (aarch64_parse_cpu): Likewise.
1395 (aarch64_parse_arch): Likewise.
1396 * config/tc-arm.c (arm_parse_extension): Likewise.
1397 (arm_parse_cpu): Likewise.
1398 (arm_parse_arch): Likewise.
1399 * config/tc-nds32.c: Likewise.
1400 * config/xtensa-relax.c (parse_special_fn): Likewise.
1401 * stabs.c (generate_asm_file): Likewise.
1402
1403 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1404
1405 * config/tc-cr16.c (cr16_assemble): New function.
1406 (md_assemble): Call cr16_assemble.
1407
1408 2016-03-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1409
1410 * as.c (parse_args): Adjust.
1411 * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
1412 * config/obj-elf.c (elf_frob_symbol): Adjust.
1413
1414 2016-03-24 Jose E. Marchesi <jose.marchesi@oracle.com>
1415
1416 * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
1417 registers to be in the 16..31 range.
1418
1419 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1420
1421 * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
1422 frag_var ().
1423
1424 2016-03-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1425
1426 * config/tc-visium.c (md_atof): Localize the string returned on
1427 failure.
1428
1429 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1430
1431 * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
1432 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1433 * config/tc-m68hc11.c (md_begin): Likewise.
1434 (print_opcode_list): Likewise.
1435 * config/tc-msp430.c (msp430_section): Likewise.
1436 * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
1437 (s3_build_dependency_insn_hsh): Likewise.
1438 * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
1439 (s7_build_dependency_insn_hsh): Likewise.
1440 * config/tc-tic4x.c: Likewise.
1441 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1442 (subsym_get_arg): Likewise.
1443 * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
1444 (get_directive): Likewise.
1445 (cache_literal_section): Likewise.
1446 * config/xtensa-relax.c: Likewise.
1447 * symbols.c (symbol_create): Likewise.
1448 (local_symbol_make): Likewise.
1449 (symbol_relc_make_expr): Likewise.
1450
1451 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1452
1453 * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
1454 str.
1455
1456 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1457
1458 * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
1459 call with a switch.
1460
1461 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1462
1463 * config/tc-ia64.c (ia64_do_align): Remove.
1464 (ia64_cons_align): Call do_align () directly.
1465 (dot_proc): Likewise.
1466 (stmt_float_cons): Likewise.
1467
1468 2016-03-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1469
1470 * listing.c (listing_message): Use XNEW style allocation macros.
1471 * read.c (read_a_source_file): Likewise.
1472 (read_symbol_name): Likewise.
1473 (s_mri_common): Likewise.
1474 (assign_symbol): Likewise.
1475 (s_reloc): Likewise.
1476 (emit_expr_with_reloc): Likewise.
1477 (s_incbin): Likewise.
1478 (s_include): Likewise.
1479 * sb.c (sb_build): Likewise.
1480 (sb_check): Likewise.
1481
1482 2016-03-22 Alan Modra <amodra@gmail.com>
1483
1484 * write.c (record_alignment): Revert 2016-02-18 change.
1485
1486 2016-03-22 Alan Modra <amodra@gmail.com>
1487
1488 * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
1489 (emit_jsrjmp, tc_gen_reloc): Likewise.
1490 * config/tc-i370.c (i370_macro): Likewise.
1491
1492 2016-03-22 Nick Clifton <nickc@redhat.com>
1493
1494 * configure: Regenerate.
1495
1496 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * testsuite/gas/arc/nps400-0.d: New file.
1499 * testsuite/gas/arc/nps400-0.s: New file.
1500 * testsuite/gas/arc/nps400-1.d: New file.
1501 * testsuite/gas/arc/nps400-1.s: New file.
1502
1503 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1504
1505 * config/tc-arc.c (find_opcode_match): Move lnflg, and i
1506 declarations to start of block. Reset code on all flags before
1507 attempting to match them. Handle multiple hits on the same flag.
1508 Handle flag class.
1509 * testsuite/gas/arc/asm-errors.d: New file.
1510 * testsuite/gas/arc/asm-errors.err: New file.
1511 * testsuite/gas/arc/asm-errors.s: New file.
1512
1513 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * config/tc-arc.c (cpu_types): Add nps400 entry.
1516 (check_zol): Handle nps400.
1517
1518 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * config/tc-arc.c (arc_select_cpu): Remove use of
1521 EF_ARC_CPU_GENERIC.
1522
1523 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * config/tc-arc.c (arc_target): Delay initialisation until
1526 arc_select_cpu.
1527 (arc_target_name): Likewise.
1528 (arc_features): Likewise.
1529 (arc_mach_type): Likewise.
1530 (cpu_types): Remove "all" entry.
1531 (arc_select_cpu): New function, most of the content is from...
1532 (md_parse_option): ... here. Call new arc_select_cpu.
1533 (md_begin): Call arc_select_cpu if needed, default is now arc700.
1534
1535 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * testsuite/gas/arc/inline-data-1.d: Add target restriction.
1538 * testsuite/gas/arc/inline-data-2.d: New file.
1539
1540 2016-03-21 Nick Clifton <nickc@redhat.com>
1541
1542 * atof-generic.c: Replace use of alloca with call to xmalloc.
1543 * cgen.c: Likewise.
1544 * dwarf2dbg.c: Likewise.
1545 * macro.c: Likewise.
1546 * remap.c: Likewise.
1547 * stabs.c: Likewise.
1548 * symbols.c: Likewise.
1549 * config/obj-elf.c: Likewise.
1550 * config/tc-aarch64.c: Likewise.
1551 * config/tc-arc.c: Likewise.
1552 * config/tc-arm.c: Likewise.
1553 * config/tc-avr.c: Likewise.
1554 * config/tc-ia64.c: Likewise.
1555 * config/tc-mips.c: Likewise.
1556 * config/tc-msp430.c: Likewise.
1557 * config/tc-nds32.c: Likewise.
1558 * config/tc-ppc.c: Likewise.
1559 * config/tc-sh.c: Likewise.
1560 * config/tc-tic30.c: Likewise.
1561 * config/tc-tic54x.c: Likewise.
1562 * config/tc-xstormy16.c: Likewise.
1563 * config/te-vms.c: Likewise.
1564 * configure: Regenerate.
1565
1566 2016-03-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1567
1568 * tc-i386.c (f32_1): Change type to unsigned char[].
1569 (f32_2): Likewise.
1570 (f32_3): Likewise.
1571 (f32_4): Likewise.
1572 (f32_5): Likewise.
1573 (f32_6): Likewise.
1574 (f32_7): Likewise.
1575 (f32_8): Likewise.
1576 (f32_9): Likewise.
1577 (f32_10): Likewise.
1578 (f32_11): Likewise.
1579 (f32_12): Likewise.
1580 (f32_13): Likewise.
1581 (f32_14): Likewise.
1582 (f16_3): Likewise.
1583 (f16_4): Likewise.
1584 (f16_5): Likewise.
1585 (f16_6): Likewise.
1586 (f16_7): Likewise.
1587 (f16_8): Likewise.
1588 (jump_31): Likewise.
1589 (f32_patt): Likewise.
1590 (f16_patt): Likewise.
1591 (alt_3): Likewise.
1592 (alt_4): Likewise.
1593 (alt_5): Likewise.
1594 (alt_6): Likewise.
1595 (alt_7): Likewise.
1596 (alt_8): Likewise.
1597 (alt_9): Likewise.
1598 (alt_10): Likewise.
1599 (alt_patt): Likewise.
1600
1601 2016-03-18 Nick Clifton <nickc@redhat.com>
1602
1603 * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
1604 .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
1605 .tlsdescldr and .xword directives.
1606
1607 PR target/19721
1608 * testsuite/gas/aarch64/pr19721.s: New test source file.
1609 * testsuite/gas/aarch64/pr19721.d: New test driver file.
1610
1611 * doc/as.texinfo: Place the target specific command line options
1612 into their own man page section.
1613
1614 2016-03-16 Jiong Wang <jiong.wang@arm.com>
1615
1616 * config/tc-arm.c (N_S_32): New.
1617 (N_F_16_32): Likewise.
1618 (N_SUF_32): Support N_F16.
1619 (N_IF_32): Likewise.
1620 (neon_dyadic_misc): Likewise.
1621 (do_neon_cmp): Likewise.
1622 (do_neon_cmp_inv): Likewise.
1623 (do_neon_mul): Likewise.
1624 (do_neon_fcmp_absolute): Likewise.
1625 (do_neon_step): Likewise.
1626 (do_neon_abs_neg): Likewise.
1627 (CVT_FLAVOR_VAR): Likewise.
1628 (do_neon_cvt_1): Likewise.
1629 (do_neon_recip_est): Likewise.
1630 (do_vmaxnm): Likewise.
1631 (do_vrint_1): Likewise.
1632 (neon_check_type): Check architecture support for FP16 extension.
1633 (insns): Update comments.
1634 * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
1635 * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
1636 * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
1637 * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
1638 arm mode.
1639 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
1640 thumb mode.
1641 * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
1642 error file.
1643
1644 2016-03-16 Nick Clifton <nickc@redhat.com>
1645
1646 * read.c (emit_expr_with_reloc): Add code check a bignum with
1647 nbytes == 1.
1648 * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
1649 other than 32-bits.
1650 * testsuite/gas/elf/bignum.s: New test source file.
1651 * testsuite/gas/elf/bignum.d: New test driver file.
1652 * testsuite/gas/elf/elf.exp: Run the new test.
1653
1654 2016-03-15 Ulrich Drepper <drepper@gmail.com>
1655
1656 * doc/c-i386.texi (Register Naming): Update to details of the
1657 latest architecture version.
1658
1659 2016-03-10 Mickael Guene <mickael.guene@st.com>
1660
1661 PR gas/19744
1662 * config/tc-arm.c (do_arit): Protect against bad relocations usage.
1663 (do_mov): Likewise.
1664 (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
1665 (do_t_mov_cmp): Likewise.
1666 (do_t_add_sub): Protect against bad relocations usage.
1667 (do_t_mov_cmp): Likewise.
1668 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
1669 * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
1670 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
1671 * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
1672
1673 2016-03-09 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1674
1675 * config/tc-arm.c (neon_alignment_bit): Rename do_align to
1676 do_alignment.
1677 (do_neon_ld_st_lane): Likewise.
1678 (do_neon_ld_dup): Likewise.
1679
1680 2016-03-08 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * testsuite/gas/arc/inline-data-1.d: New file.
1683 * testsuite/gas/arc/inline-data-1.s: New file.
1684
1685 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
1686
1687 * config/tc-arm.c (arm_cpus): Add cortex-r8.
1688 * doc/c-arm.texi: Add cortex-r8.
1689
1690 2016-03-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1691
1692 * config/tc-arc.c: Add const qualifiers.
1693 * config/tc-h8300.c (md_begin): Likewise.
1694 * config/tc-ia64.c (print_prmask): Likewise.
1695 * config/tc-msp430.c (msp430_operands): Likewise.
1696 * config/tc-nds32.c (struct suffix_name): Likewise.
1697 (struct nds32_parse_option_table): Likewise.
1698 (struct nds32_set_option_table): Likewise.
1699 (do_pseudo_pushpopm): Likewise.
1700 (do_pseudo_pushpop_stack): Likewise.
1701 (nds32_relax_relocs): Likewise.
1702 (nds32_flag): Likewise.
1703 (struct nds32_hint_map): Likewise.
1704 (nds32_find_reloc_table): Likewise.
1705 (nds32_match_hint_insn): Likewise.
1706 * config/tc-s390.c: Likewise.
1707 * config/tc-sh.c (get_specific): Likewise.
1708 * config/tc-tic30.c: Likewise.
1709 * config/tc-tic4x.c (tic4x_inst_add): Likewise.
1710 (tic4x_indirect_parse): Likewise.
1711 * config/tc-vax.c (vax_cons): Likewise.
1712 * config/tc-z80.c (struct reg_entry): Likewise.
1713 * config/tc-epiphany.c (md_assemble): Adjust.
1714 (epiphany_assemble): New function.
1715 (epiphany_elf_section_rtn): Call do_align directly.
1716 (epiphany_elf_section_text): Likewise.
1717 * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
1718 (ip2k_elf_section_text): Likewise.
1719 * read.c (do_align): Make it not static.
1720 * read.h (do_align): New prototype.
1721
1722 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
1723
1724 * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
1725 for ARMv8.1 AdvSIMD use.
1726 * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
1727 * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
1728
1729 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
1730
1731 * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
1732 feature.
1733 (record_feature_use): New.
1734 (mark_feature_used): Use record_feature_use.
1735 (do_neon_qrdmlah): New.
1736 (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
1737 variants.
1738 (arm_extensions): Put into alphabetical order. Re-indent "simd"
1739 and "rdma" entries. Fix the incorrect merge value for "+rdma".
1740 * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
1741 * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
1742 Make source file explicit.
1743 * testsuite/gas/arm/armv8-a+rdma.l: New.
1744 * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
1745 directives. Fix white-space.
1746 * testsuite/gas/arm/armv8_1-a+simd.d: New.
1747
1748 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
1751
1752 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
1753 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
1754
1755 * config/tc-arc.c (arc_extra_reloc): Change size to 0.
1756 (tc_arc_fix_adjustable): Changed default return value to 1.
1757 * testsuite/gas/arc/j.d: Updated expected symbol
1758 * testsuite/gas/arc/jl.d: Likewise
1759 * testsuite/gas/arc/relax-avoid1.d: Likewise
1760 * testsuite/gas/arc/st.d: Likewise
1761
1762 2016-02-29 Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
1763
1764 * config/tc-arc.c: Enable code density instructions for ARC EM.
1765
1766 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1767
1768 PR ld/19645
1769 * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
1770 for ELF assemblers.
1771 * as.c (flag_use_elf_stt_common): New.
1772 (show_usage): Add --elf-stt-common=.
1773 (option_values): Add OPTION_ELF_STT_COMMON.
1774 (std_longopts): Add --elf-stt-common=.
1775 (parse_args): Handle --elf-stt-common=.
1776 * as.h (flag_use_elf_stt_common): New.
1777 * config.in: Regenerated.
1778 * configure: Likewise.
1779 * configure.ac: Add --enable-elf-stt-common and define
1780 DEFAULT_GENERATE_ELF_STT_COMMON.
1781 * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
1782 and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
1783 * doc/as.texinfo: Document --elf-stt-common=.
1784 * testsuite/gas/elf/common3.s: New file.
1785 * testsuite/gas/elf/common3a.d: Likewise.
1786 * testsuite/gas/elf/common3b.d: Likewise.
1787 * testsuite/gas/elf/common4.s: Likewise.
1788 * testsuite/gas/elf/common4a.d: Likewise.
1789 * testsuite/gas/elf/common4b.d: Likewise.
1790 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
1791 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
1792 * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
1793 and common4b.
1794 * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
1795 * testsuite/gas/i386/dw2-compress-3a.d: This. Pass
1796 --elf-stt-common=no to as.
1797 * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
1798 * testsuite/gas/i386/dw2-compressed-3a.d: This. Pass
1799 --elf-stt-common=no to as.
1800 * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
1801 dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
1802 of dw2-compress-3 and dw2-compressed-3.
1803
1804 2016-02-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1805
1806 * as.c (select_emulation_mode): Add const qualifiers.
1807 * as.h: Likewise.
1808 * config/bfin-defs.h: Likewise.
1809 * config/bfin-parse.y: Likewise.
1810 * config/rx-parse.y: Likewise.
1811 * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
1812 (struct aarch64_cpu_option_table): Likewise.
1813 (struct aarch64_arch_option_table): Likewise.
1814 (struct aarch64_option_cpu_value_table): Likewise.
1815 (struct aarch64_long_option_table): Likewise.
1816 (struct aarch64_option_abi_value_table): Likewise.
1817 * config/tc-arm.c (struct reloc_entry): Likewise.
1818 (tc_gen_reloc): Likewise.
1819 (struct arm_option_table): Likewise.
1820 (struct arm_legacy_option_table): Likewise.
1821 (struct arm_cpu_option_table): Likewise.
1822 (struct arm_arch_option_table): Likewise.
1823 (struct arm_option_extension_value_table): Likewise.
1824 (struct arm_option_fpu_value_table): Likewise.
1825 (struct arm_option_value_table): Likewise.
1826 (struct arm_long_option_table): Likewise.
1827 * config/tc-avr.c (struct avr_opcodes_s): Likewise.
1828 (struct mcu_type_s): Likewise.
1829 (struct exp_mod_s): Likewise.
1830 (avr_operand): Likewise.
1831 (avr_operands): Likewise.
1832 * config/tc-d10v.c (md_begin): Likewise.
1833 * config/tc-dlx.c: Likewise.
1834 * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
1835 * config/tc-ft32.c (parse_condition): Likewise.
1836 * config/tc-h8300.c (do_a_fix_imm): Likewise.
1837 * config/tc-hppa.c (pa_ip): Likewise.
1838 (hppa_regname_to_dw2regnum): Likewise.
1839 * config/tc-i370.c (i370_elf_suffix): Likewise.
1840 * config/tc-i960.c (struct tabentry): Likewise.
1841 * config/tc-m32r.c: Likewise.
1842 * config/tc-m68k.c: Likewise.
1843 * config/tc-m68k.h: Likewise.
1844 * config/tc-mcore.c (parse_psrmod): Likewise.
1845 * config/tc-metag.c (struct metag_core_option): Likewise.
1846 (struct metag_long_option): Likewise.
1847 * config/tc-microblaze.c: Likewise.
1848 * config/tc-mips.c (macro): Likewise.
1849 * config/tc-mn10200.c: Likewise.
1850 * config/tc-mn10300.c: Likewise.
1851 * config/tc-msp430.c (struct rcodes_s): Likewise.
1852 (struct hcodes_s): Likewise.
1853 (md_parse_option): Likewise.
1854 * config/tc-ns32k.c (struct ns32k_option): Likewise.
1855 (optlist): Likewise.
1856 * config/tc-ppc.c (ppc_elf_suffix): Likewise.
1857 (tc_ppc_regname_to_dw2regnum): Likewise.
1858 * config/tc-ppc.h: Likewise.
1859 * config/tc-rl78.c: Likewise.
1860 * config/tc-rx.c (struct cpu_type): Likewise.
1861 * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
1862 * config/tc-sparc.c (struct priv_reg_entry): Likewise.
1863 (sparc_ip): Likewise.
1864 * config/tc-spu.c (insn_fmt_string): Likewise.
1865 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1866 * config/tc-v850.c: Likewise.
1867 * config/tc-visium.c (struct visium_arch_option_table): Likewise.
1868 (struct visium_long_option_table): Likewise.
1869 * config/tc-xgate.c: Likewise.
1870 * config/tc-z8k.c: Likewise.
1871 * read.c (add_include_dir): Likewise.
1872 * read.h: Likewise.
1873
1874 2016-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * testsuite/gas/all/gas.exp: Change target pattern to cover
1877 arceb-*.
1878 * testsuite/gas/all/redef3.d: Likewise.
1879 * testsuite/gas/elf/elf.exp: Likewise.
1880
1881 2016-02-24 Renlin Li <renlin.li@arm.com>
1882
1883 * config/tc-arm.c (BAD_FP16): New error message macro.
1884 (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
1885 fp16 scalar instructions.
1886 (neon_check_type): Allow different size from key.
1887 (do_vfp_nsyn_add_sub): Add support SE_H shape support.
1888 (try_vfp_nsyn): Likewise.
1889 (do_vfp_nsyn_mla_mls): Likewise.
1890 (do_vfp_nsyn_fma_fms): Likewise.
1891 (do_vfp_nsyn_ldm_stm): Likewise
1892 (do_vfp_nsyn_sqrt): Likewise
1893 (do_vfp_nsyn_div): Likewise
1894 (do_vfp_nsyn_nmul): Likewise.
1895 (do_vfp_nsyn_cmp): Likewise.
1896 (do_neon_shll): Likewise.
1897 (do_vfp_nsyn_cvt_fpv8): Likewise.
1898 (do_neon_cvttb_2): Likewise.
1899 (do_neon_mov): Likewise.
1900 (do_neon_rshift_round_imm): Likewise.
1901 (do_neon_ldr_str): Likewise.
1902 (do_vfp_nsyn_fpv8): Likewise.
1903 (do_vmaxnm): Likewise.
1904 (do_vrint_1): Likewise.
1905 (insns): New entry for vins, vmovx.
1906 (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
1907 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
1908 * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
1909 * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
1910 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
1911 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
1912 * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
1913
1914 2016-02-24 Renlin Li <renlin.li@arm.com>
1915
1916 * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
1917 (neon_shape_class): New SC_HALF.
1918 (neon_shape_el): New SE_H.
1919 (neon_shape_el_size): New size for SE_H.
1920 (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
1921 (neon_select_shape): Add SE_H support code.
1922 (el_type_of_type_chk): Use N_F_ALL.
1923 (do_vfp_nsyn_cvt): Add SE_H shape support.
1924 (do_neon_cvtz): Likewise.
1925 (do_neon_cvt_1): Likewise.
1926 (do_neon_cvttb_1): Likewise.
1927
1928 2016-02-24 Renlin Li <renlin.li@arm.com>
1929
1930 * testsuite/gas/arm/copro.d: Adjust output.
1931 * testsuite/gas/arm/copro.s: Adjust co-processor num.
1932
1933 2016-02-24 Renlin Li <renlin.li@arm.com>
1934
1935 * testsuite/gas/arm/mask_1.d: New.
1936 * testsuite/gas/arm/mask_1.s: New.
1937
1938 2016-02-24 Renlin Li <renlin.li@arm.com>
1939
1940 * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
1941 * testsuite/gas/arm/copro.d: Update.
1942
1943 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1944
1945 * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
1946 * doc/c-arm.texi (ARM Options): Document cortex-a32.
1947
1948 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1949
1950 * doc/c-arm.texi (ARM Options): Document cortex-a17.
1951
1952 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
1953
1954 * testsuite/gas/elf/elf.exp: Skip tests for common directive on
1955 hpux.
1956
1957 2016-02-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1958
1959 * output-file.c (output_file_create): Make file name argument const.
1960 (output_file_close): Likewise.
1961 * output-file.h (output_file_create): Adjust.
1962 (output_file_close): Likewise.
1963 * depend.c (quote_string_for_make): Make src argument const char *.
1964 (register_dependency): Likewise.
1965 (wrap_output): Likewise.
1966 * as.h (register_dependency): Adjust.
1967 * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
1968 as_where ();
1969 * symbols.c (S_SET_EXTERNAL): Likewise.
1970 * input-scrub.c (as_where): Return the file name.
1971 * as.h (as_where): Adjust prototype.
1972 * app.c (do_scrub_chars): Adjust.
1973 * cond.c (s_elseif): Likewise.
1974 (s_else): Likewise.
1975 (initialize_cframe): Likewise.
1976 * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
1977 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
1978 * config/obj-som.c (obj_som_init_stab_section): Likewise.
1979 * config/tc-aarch64.c (output_info): Likewise.
1980 * config/tc-ia64.c (md_assemble): Likewise.
1981 (dot_alias): Likewise.
1982 * config/tc-m68k.c (m68k_frob_label): Likewise.
1983 * config/tc-mmix.c (s_bspec): Likewise.
1984 (mmix_handle_mmixal): Likewise.
1985 * config/tc-rx.c (rx_include): Likewise.
1986 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
1987 (tic54x_adjust_symtab): Likewise.
1988 * config/tc-xtensa.c (directive_push): Likewise.
1989 (xtensa_sanity_check): Likewise.
1990 (xtensa_relax_frag): Likewise.
1991 (md_convert_frag): Likewise.
1992 (tinsn_to_slotbuf): Likewise.
1993 * dwarf2dbg.c (dwarf2_where): Likewise.
1994 * ecoff.c (add_file): Likewise.
1995 (ecoff_generate_asm_lineno): Likewise.
1996 * expr.c (make_expr_symbol): Likewise.
1997 * frags.c (frag_new): Likewise.
1998 (frag_var_init): Likewise.
1999 * listing.c (listing_newline): Likewise.
2000 * messages.c (identify): Likewise.
2001 (as_show_where): Likewise.
2002 (as_warn_internal): Likewise.
2003 (as_bad_internal): Likewise.
2004 * read.c (s_irp): Likewise.
2005 (s_macro): Likewise.
2006 (s_reloc): Likewise.
2007 * stabs.c (stabs_generate_asm_file): Likewise.
2008 (stabs_generate_asm_lineno): Likewise.
2009 (stabs_generate_asm_func): Likewise.
2010 * write.c (fix_new_internal): Likewise.
2011 * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
2012 (as_warn_value_out_of_range): Adjust prototype.
2013 (as_bad_value_out_of_range): Adjust prototype.
2014 * messages.c (identify): Make file name argument const char *.
2015 (as_warn_internal): Likewise.
2016 (as_warn_where): Likewise.
2017 (as_bad_internal): Likewise.
2018 (as_bad_where): Likewise.
2019 (as_internal_value_out_of_range): Likewise.
2020 (as_warn_value_out_of_range): Likewise.
2021 (as_bad_value_out_of_range): Likewise.
2022 * as.h (found_comment_file): Change type to const char *.
2023 * cond.c (file_line::file): Likewise.
2024 * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
2025 * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
2026 * config/obj-som.c (obj_som_init_stab_section): Likewise.
2027 * config/tc-aarch64.c (output_info): Likewise.
2028 * config/tc-alpha.c (insert_operand): Likewise.
2029 * config/tc-arc.c (insert_operand): Likewise.
2030 * config/tc-d30v.c (check_size): Likewise.
2031 * config/tc-ia64.c (struct alias): Likewise.
2032 * config/tc-m68k.c (struct label_line): Likewise.
2033 * config/tc-mcore.c (md_apply_fix): Likewise.
2034 * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
2035 * config/tc-mips.c (mips16_immed): Likewise.
2036 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
2037 * config/tc-ppc.c (ppc_insert_operand): Likewise.
2038 * config/tc-rx.c (rx_include): Likewise.
2039 * config/tc-s390.c (s390_insert_operand): Likewise.
2040 * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
2041 (tic54x_adjust_symtab): Likewise.
2042 * config/tc-tilegx.c (insert_operand): Likewise.
2043 (apply_special_operator): Likewise.
2044 * config/tc-tilepro.c (insert_operand): Likewise.
2045 * config/tc-xtensa.c (directive_push): Likewise.
2046 * ecoff.c (add_file): Likewise.
2047 (ecoff_generate_asm_lineno): Likewise.
2048 * listing.c (listing_newline): Likewise.
2049 * read.c (s_irp): Likewise.
2050 * write.c (install_reloc): Likewise.
2051 * write.h (struct fix): Likewise.
2052 * input-file.c (file_name): Change type to const char *.
2053 (saved_file::file_name): Likewise.
2054 (input_file_open): Change type of argument to const char *.
2055 * input-file.h (input_file_open): Adjust.
2056 * input-scrub.c (logical_input_file): change type to const char *.
2057 (physical_input_file): Likewise.
2058 (struct input_save): Adjust.
2059 (input_scrub_push): Adjust.
2060 (input_scrub_begin): Adjust.
2061 (as_where): Adjust.
2062 * input-scrub.c (input_scrub_new_file): Make file name argument const.
2063 (input_scrub_include_file): Likewise.
2064 (new_logical_line_flags): Likewise.
2065 (new_logical_line): Likewise.
2066 * as.h: Adjust.
2067 * frags.h (struct frag): Change type of fr_file to const char *.
2068 * expr.c (expr_symbol_where): Change type of file argument to
2069 const char **.
2070 * expr.h (expr_symbol_where): Likewise.
2071 * config/tc-i370.c (md_apply_fix): adjust.
2072 * config/tc-mmix.c (mmix_md_end): Likewise.
2073 * config/tc-ppc.c (md_apply_fix): Likewise.
2074 * config/tc-s390.c (md_apply_fix): Likewise.
2075 * symbols.c (report_op_error): Likewise.
2076 (resolve_symbol_value): Likewise.
2077 * config/tc-ia64.c (slot::src_file): Change type to const char *.
2078 (rsrc::file): Likewise.
2079 * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
2080 const char *.
2081 (xtensa_relax_frag): Likewise.
2082 (md_convert_frag): Likewise.
2083 (tinsn_to_slotbuf): Likewise.
2084 * expr.c (expr_symbol_line): Likewise.
2085 * macro.c (define_macro): Likewise.
2086 * macro.h (macro_struct): Likewise.
2087 * messages.c (as_show_where): Likewise.
2088 * read.c (s_macro): Likewise.
2089 * stabs.c (stabs_generate_asm_file): Likewise.
2090 (generate_asm_file): Likewise.
2091 (stabs_generate_asm_lineno): Likewise.
2092 * write.h (struct reloc_list): Likewise.
2093 * input-scrub.c (as_where): Change return type to const char *.
2094 * as.h (as_wheree): Adjust.
2095
2096 2016-02-21 H.J. Lu <hongjiu.lu@intel.com>
2097
2098 * write.c (compress_debug): Move BFD compression bits setting
2099 to ...
2100 (write_object_file): Here.
2101
2102 2016-02-20 H.J. Lu <hongjiu.lu@intel.com>
2103
2104 * config/tc-i386.c (register_number): Check RegVRex.
2105 * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
2106 with %zmm19 and %zmm3.
2107 * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
2108 * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
2109
2110 2016-02-19 Matthew Wahab <matthew.wahab@arm.com>
2111 Jiong Wang <jiong.wang@arm.com>
2112
2113 * config/tc-arm.c (arm_ext_fp16): New.
2114 (arm_extensions): New entry for "fp16".
2115
2116 2016-02-19 Nick Clifton <nickc@redhat.com>
2117
2118 PR 19630
2119 * read.c (read_a_source_file): Check for assemble_one returning
2120 with input_line_pointer set to NULL.
2121
2122 2016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
2123
2124 * listing.c (rebuffer_line): Change return type to void.
2125
2126 * symbols.c (decode_local_label_name): Make type a const char *.
2127 * listing.c (print_source): Make type of p const char *.
2128 (print_line): Make type of string const char *.
2129 (buffer_line): Return const char *.
2130 (title): Make type const char *.
2131 (subtitle): Likewise.
2132 (listing_listing): Make type of p const char *.
2133 * messages.c (as_internal_value_out_of_range): Make type of prefix
2134 const char *.
2135 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
2136 and string const char *.
2137 * read.c (_bfd_rel): Make type of name const char *.
2138 * app.c (out_string): Change type to const char *.
2139 (struct app_save::out_string): Likewise.
2140
2141 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
2142 Nick Clifton <nickc@redhat.com>
2143
2144 * read.c (finish_bundle): Avoid recording a negative alignment.
2145 (do_align): Use unsigned values for n, len and max. Only create
2146 a frag if the alignment requirement is greater than the minimum
2147 byte alignment. Avoid recording a negative alignment.
2148 (s_align): Use unsigned values where appropriate.
2149 (bss_alloc): Use an unsigned value for the alignment.
2150 (sizeof_sleb128): Add a comment noting that we encode one octet
2151 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
2152 (emit_leb129_expr): Abort if the emitted encoding was longer than
2153 expected.
2154 * read.h (output_leb128): Update prototype.
2155 (sizeof_leb128): Update prototype.
2156 (bss_alloc): Update prototype.
2157 * write.c (record_alignment): Use an unsigned value for the
2158 alignment. Do not record alignments less than the minimum
2159 alignment for a byte.
2160 * write.h (record_alignment): Update prototype.
2161
2162 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
2163
2164 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
2165 .init.literal/.fini.literal section name.
2166 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
2167 list of xtensa tests.
2168 * testsuite/gas/xtensa/init-fini-literals.d: New file:
2169 init-fini-literals test result patterns.
2170 * testsuite/gas/xtensa/init-fini-literals.s: New file:
2171 init-fini-literals test.
2172
2173 2016-02-17 Nick Clifton <nickc@redhat.com>
2174
2175 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
2176 devices.csv file as of March 2016.
2177
2178 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
2179
2180 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
2181 function.
2182 (tc_arc_regname_to_dw2regnum): Likewise.
2183 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
2184 (tc_cfi_frame_initial_instructions): Likewise.
2185 (tc_regname_to_dw2regnum): Likewise.
2186 * testsuite/gas/cfi/cfi-arc-1.d: New file.
2187 * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
2188 * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
2189
2190 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
2191
2192 * doc/internals.texi (S_IS_EXTERN): Remove.
2193
2194 2016-02-16 Nick Clifton <nickc@redhat.com>
2195
2196 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
2197 update.
2198
2199 2016-02-16 Renlin Li <renlin.li@arm.com>
2200
2201 PR gas/19620
2202 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
2203 * testsuite/gas/aarch64/movw_label.d: New.
2204 * testsuite/gas/aarch64/movw_label.s: New.
2205
2206 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
2207
2208 PR gas/19556
2209 * config/rx-parse.y (MOV): Opcode generation for index
2210 register addressing mode.
2211 * testsuite/gas/rx/rx.exp: Updated for new testcase.
2212 * testsuite/gas/rx/pr19665.s: New file.
2213 * testsuite/gas/rx/pr19665.s: New file.
2214 * testsuite/gas/rx/mov.d: Update expected output.
2215
2216 2016-02-15 Nick Clifton <nickc@redhat.com>
2217
2218 * doc/as.texinfo (.section): Document that numeric values can now
2219 be used for the flags and type fields of the ELF target's .section
2220 directive. Add notes about the restrictions on setting flags and
2221 types.
2222 * config/obj-elf.c (obj_elf_change_section): Allow known sections
2223 to be given processor specific section types. Allow processor and
2224 application specific flags of a section to be set after
2225 definition.
2226 (obj_elf_parse_section_letters): Handle parsing numeric values.
2227 (obj_elf_section_type): Handle parsing numeric values.
2228 (obj_elf_section): Allow numeric type values.
2229 * config/obj-elf.h (obj_elf_change_section): Update prototype.
2230 * testsuite/gas/elf/section10.d: New test.
2231 * testsuite/gas/elf/section10.s: Source file for new test.
2232 * testsuite/gas/elf/elf.exp: Run the new test.
2233 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
2234 the description of the flags produced by readelf.
2235 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
2236 * NEWS: Mention the new feature.
2237
2238 2016-02-11 Nick Clifton <nickc@redhat.com>
2239
2240 PR gas/19614
2241 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
2242 until it is actually used.
2243 (cfi_set_sections): Set cfi_sections_set to true.
2244 (dot_cfi_startproc): Likewise.
2245 (dot_cfi_endproc): Likewise.
2246 (dot_cfi_fde_data): Likewise.
2247 (cfi_finish): Likewise.
2248 (dot_cfi_sections): Do not set cfi_sections_set.
2249 * doc/as.texinfo (.cfi_sections): Note that targets can provide
2250 their own cfi section name. Also note that the directive can be
2251 reissued provided that CFI generation has not started.
2252 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
2253 .cfi_endproc directives so that the redefinition of .cfi_sections
2254 will trigger the generation of the error message.
2255 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
2256 number of error message.
2257
2258 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
2259 Janek van Oirschot <jvanoirs@synopsys.com>
2260
2261 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
2262 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
2263 Define.
2264 (arc_flags, arc_relax_type): New structure.
2265 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
2266 (RELAX_TABLE_ENTRY_MAX): New define.
2267 (relaxation_state, md_relax_table, arc_relaxable_insns)
2268 (arc_num_relaxable_ins): New variable.
2269 (rlx_operand_type, arc_rlx_types): New enums.
2270 (arc_relaxable_ins): New structure.
2271 (OPTION_RELAX): New option.
2272 (arc_insn): New relax member.
2273 (arc_flags): Remove.
2274 (relax_insn_p): New function.
2275 (apply_fixups): Likewise.
2276 (relaxable_operand): Likewise.
2277 (may_relax_expr): Likewise.
2278 (relaxable_flag): Likewise.
2279 (arc_pcrel_adjust): Likewise.
2280 (md_estimate_size_before_relax): Implement.
2281 (md_convert_frag): Likewise.
2282 (md_parse_option): Handle new mrelax option.
2283 (md_show_usage): Likewise.
2284 (assemble_insn): Set relax member.
2285 (emit_insn0): New function.
2286 (emit_insn1): Likewise.
2287 (emit_insn): Handle relaxation case.
2288 * NEWS: Mention the new relaxation option.
2289 * doc/c-arc.texi (ARC Options): Document new mrelax option.
2290 * doc/as.texinfo (Target ARC Options): Likewise.
2291 * testsuite/gas/arc/relax-avoid1.d: New file.
2292 * testsuite/gas/arc/relax-avoid1.s: Likewise.
2293 * testsuite/gas/arc/relax-avoid2.d: Likewise.
2294 * testsuite/gas/arc/relax-avoid2.s: Likewise.
2295 * testsuite/gas/arc/relax-avoid3.d: Likewise.
2296 * testsuite/gas/arc/relax-avoid3.s: Likewise.
2297 * testsuite/gas/arc/relax-b.d: Likewise.
2298 * testsuite/gas/arc/relax-b.s: Likewise.
2299
2300 2016-02-08 Nick Clifton <nickc@redhat.com>
2301
2302 * config/tc-ia64.c (dot_prologue): Fix formatting.
2303
2304 2016-02-04 Nick Clifton <nickc@redhat.com>
2305
2306 * config/obj-elf.c (obj_elf_change_section): Remove support for
2307 ARM NOREAD sections.
2308 * config/tc-arm.c (arm_elf_section_letter): Delete.
2309 * config/tc-arm.h (md_elf_section_letter): Delete.
2310 * doc/c-arm.texi (ARM Section Attribute): Delete section.
2311 * testsuite/gas/arm/section-execute-only.d: Delete.
2312 * testsuite/gas/arm/section-execute-only.s: Delete.
2313
2314 2016-02-04 Nick Clifton <nickc@redhat.com>
2315
2316 PR target/19561
2317 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
2318 to handle encoding of RRUX instruction.
2319 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
2320 shift instructions.
2321 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
2322
2323 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
2324
2325 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
2326 substitutions for BFD_RELOC_* as unsigned.
2327 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
2328 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
2329 * testsuite/gas/xtensa/loc.s: New file: loc test.
2330
2331 2016-02-03 Kevin Buettner <kevinb@redhat.com>
2332
2333 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
2334
2335 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
2336
2337 PR gas/19520
2338 * NEWS: Mention new command line option -mrelax-relocations and
2339 new configure option --enable-x86-relax-relocations for x86
2340 target.
2341 * config.in: Regenerated.
2342 * configure.ac: Add --enable-x86-relax-relocations.
2343 (ac_default_x86_relax_relocations): New. Default to 1 except
2344 for x86 Solaris targets older than Solaris 12.
2345 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
2346 * configure: Likewise.
2347 * config/tc-i386.c (generate_relax_relocations): New.
2348 (OPTION_MRELAX_RELOCATIONS): Likewise.
2349 (output_disp): Don't generate relax relocations if
2350 generate_relax_relocations is 0.
2351 (md_longopts): Add -mrelax-relocations.
2352 (md_show_usage): Likewise.
2353 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
2354 * doc/c-i386.texi: Document -mrelax-relocations=.
2355 * testsuite/gas/i386/got-no-relax.d: New file.
2356 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
2357 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
2358 * testsuite/gas/i386/localpic.d: Likewise.
2359 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
2360 * testsuite/gas/i386/reloc32.d: Likewise.
2361 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
2362 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
2363 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
2364 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
2365 * testsuite/gas/i386/i386.exp: Run got-no-relax and
2366 x86-64-gotpcrel-no-relax.
2367
2368 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
2369
2370 * NEWS: Mention new command line option -mfence-as-lock-add=yes
2371 for x86 target.
2372
2373 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
2374
2375 * NEWS: Remove duplicated marker for 2.26.
2376
2377 2016-02-02 Renlin Li <renlin.li@arm.com>
2378
2379 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
2380
2381 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * testsuite/gas/ip2k/allinsn.d: New file.
2384 * testsuite/gas/ip2k/allinsn.s: New file.
2385 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
2386
2387 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
2390 some load instructions.
2391 * testsuite/gas/epiphany/allinsn.d: Likewise.
2392 * testsuite/gas/epiphany/regression.d: Likewise.
2393
2394 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
2397 suffixes from instruction mnemonics in expected output.
2398 * testsuite/gas/epiphany/allinsn.d: Likewise.
2399 * testsuite/gas/epiphany/regression.d: Likewise.
2400 * testsuite/gas/epiphany/sample.d: Likewise.
2401
2402 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
2405 names.
2406 * testsuite/gas/epiphany/allinsn.d: Likewise.
2407 * testsuite/gas/epiphany/sample.d: Likewise.
2408
2409 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * testsuite/gas/epiphany/sample.d: Update expected output.
2412
2413 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
2414
2415 * config/tc-arc.c (md_apply_fix): Allow addendum.
2416 (arc_reloc_op): Allow complex expressions for tpoff.
2417 (md_apply_fix): Handle resolved TLS local symbol.
2418 * testsuite/gas/arc/tls-relocs1.d: New file.
2419 * testsuite/gas/arc/tls-relocs1.s: Likewise.
2420
2421 2016-02-01 Loria <Loria@phantasia.org>
2422
2423 PR target/19311
2424 * config/tc-arm.c (encode_arm_immediate): Recode to improve
2425 efficiency and avoid an LLVM loop optimization bug.
2426
2427 2016-02-01 Nick Clifton <nickc@redhat.com>
2428
2429 * config/tc-microblaze.c (parse_imm): Fix compile time warning
2430 message extending a negative 32-bit value into a larger signed
2431 value on a 32-bit host.
2432
2433 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
2434
2435 PR gas/19532
2436 * configure.ac (compressed_debug_sections): Replace == with =.
2437 * configure: Regenerated.
2438
2439 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
2440 H.J. Lu <hongjiu.lu@intel.com>
2441
2442 * config/tc-i386.c (avoid_fence): New.
2443 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
2444 is true.
2445 (OPTION_FENCE_AS_LOCK_ADD): New.
2446 (md_longopts): Add -mfence-as-lock-add.
2447 (md_parse_option): Handle -mfence-as-lock-add.
2448 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
2449 * doc/c-i386.texi (-mfence-as-lock-add): Document.
2450 * testsuite/gas/i386/i386.exp: Run new tests.
2451 * testsuite/gas/i386/fence-as-lock-add.s: New.
2452 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
2453 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
2454 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
2455 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
2456
2457 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
2458
2459 * configure.ac (compressed_debug_sections): Remove trailing `]'.
2460 * configure: Regenerated.
2461
2462 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
2463
2464 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
2465 (OPTION_MOMIT_LOCK_PREFIX): This.
2466 (md_longopts): Updated.
2467 (md_parse_option): Likewise.
2468
2469 2016-01-25 Catherine Moore <clm@codesourcery.com>
2470
2471 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
2472 if abicalls are in effect.
2473 * testsuite/gas/mips/sdata-gp.s: New test.
2474 * testsuite/gas/mips/sdata-gp.d: New expected output
2475 * testsuite/gas/mips/mips.exp: Run new test.
2476
2477 2016-01-25 Renlin Li <renlin.li@arm.com>
2478
2479 * testsuite/gas/arm/thumb2_it_search.d: New.
2480 * testsuite/gas/arm/thumb2_it_search.s: New.
2481
2482 2016-01-21 Nick Clifton <nickc@redhat.com>
2483
2484 PR gas/19454
2485 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
2486 with arm-netbsdelf target.
2487 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
2488
2489 2016-01-20 Nick Clifton <nickc@redhat.com>
2490
2491 PR 19456
2492 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
2493 * testsuite/gas/arm/blx-bl-convert.d
2494 * testsuite/gas/arm/plt-1.d: Likewise.
2495 * testsuite/gas/arm/reloc-bad.d: Likewise.
2496 * testsuite/gas/arm/thumb-w-good.d: Likewise.
2497 * testsuite/gas/arm/thumb2_pool.d: Likewise.
2498 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
2499 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
2500
2501 PR 19499
2502 * doc/as.texinfo (Errors): Correct documentation describing the
2503 interaction of .file and .line with warning and error messages.
2504
2505 PR 19458
2506 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
2507 * testsuite/gas/arm/archv8m-main.d: Likewise.
2508 * testsuite/gas/arm/archv8m-base.d: Likewise.
2509
2510 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
2511
2512 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
2513 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
2514 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
2515
2516 2016-01-20 Mickael Guene <mickael.guene@st.com>
2517 Terry Guo <terry.guo@arm.com>
2518
2519 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
2520 SHF_ARM_NOREAD section flag.
2521 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
2522 handle letter 'y'.
2523 (arm_elf_section_letter) : Declare it.
2524 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
2525 SHF_ARM_NOREAD section flag.
2526 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
2527
2528 * testsuite/gas/arm/section-execute-only.s: New test case.
2529 * testsuite/gas/arm/section-execute-only.d: Expected output.
2530
2531 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
2532
2533 * config/tc-mips.c (micromips_insn_length): Remove the mention
2534 of 48-bit microMIPS instructions.
2535
2536 2016-01-18 Alan Modra <amodra@gmail.com>
2537
2538 * configure: Regenerate.
2539
2540 2016-01-17 Alan Modra <amodra@gmail.com>
2541
2542 * configure: Regenerate.
2543
2544 2016-01-17 Alan Modra <amodra@gmail.com>
2545
2546 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
2547
2548 2016-01-14 Nick Clifton <nickc@redhat.com>
2549
2550 * testsuite/gas/rl78/sp-relative-movw.s: New test.
2551 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
2552 * testsuite/gas/rl78/rl78.exp: Run the new test.
2553
2554 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
2555
2556 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
2557 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
2558
2559 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
2560
2561 * config/tc-nios2.c (output_movia): Preset `code' to 0.
2562
2563 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
2564
2565 * config/tc-h8300.c (get_operand): Remove spurious condition in
2566 test for closing parenthesis.
2567
2568 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
2569
2570 * config/tc-arm.c (arm_ext_v8_2): New.
2571 (insns): Add "esb".
2572 * testsuite/gas/arm/armv8_2-a.d: New.
2573 * testsuite/gas/arm/armv8_2-a.s: New.
2574
2575 2016-01-12 Alan Modra <amodra@gmail.com>
2576
2577 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
2578
2579 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
2580
2581 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
2582 xvcmpnesp, xvcmpnesp.>: Delete tests.
2583 * testsuite/gas/ppc/power9.s: Likewise.
2584 * testsuite/gas/ppc/vsx3.d: Likewise.
2585 * testsuite/gas/ppc/vsx3.s: Likewise.
2586
2587 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
2588
2589 PR gas/13050
2590 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
2591 * testsuite/gas/m68k/p13050-1.s: New file.
2592 * testsuite/gas/m68k/p13050-2.d: New file.
2593 * testsuite/gas/m68k/p13050-2.s: New file.
2594
2595 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
2598 * testsuite/gas/arc/add.d: Likewise.
2599 * testsuite/gas/arc/and.d: Likewise.
2600 * testsuite/gas/arc/asl.d: Likewise.
2601 * testsuite/gas/arc/asr.d: Likewise.
2602 * testsuite/gas/arc/bic.d: Likewise.
2603 * testsuite/gas/arc/extb.d: Likewise.
2604 * testsuite/gas/arc/extw.d: Likewise.
2605 * testsuite/gas/arc/j.d: Likewise.
2606 * testsuite/gas/arc/jl.d: Likewise.
2607 * testsuite/gas/arc/ld2.d: Likewise.
2608 * testsuite/gas/arc/lsr.d: Likewise.
2609 * testsuite/gas/arc/mov.d: Likewise.
2610 * testsuite/gas/arc/or.d: Likewise.
2611 * testsuite/gas/arc/pcl-relocs.d: Likewise.
2612 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
2613 * testsuite/gas/arc/pic-relocs.d: Likewise.
2614 * testsuite/gas/arc/plt-relocs.d: Likewise.
2615 * testsuite/gas/arc/rlc.d: Likewise.
2616 * testsuite/gas/arc/ror.d: Likewise.
2617 * testsuite/gas/arc/rrc.d: Likewise.
2618 * testsuite/gas/arc/sbc.d: Likewise.
2619 * testsuite/gas/arc/sda-relocs.d: Likewise.
2620 * testsuite/gas/arc/sda-relocs2.d: Likewise.
2621 * testsuite/gas/arc/sexb.d: Likewise.
2622 * testsuite/gas/arc/sexw.d: Likewise.
2623 * testsuite/gas/arc/st.d: Likewise.
2624 * testsuite/gas/arc/sub.d: Likewise.
2625 * testsuite/gas/arc/tls-relocs.d: Likewise.
2626 * testsuite/gas/arc/xor.d: Likewise.
2627
2628 2016-01-01 Alan Modra <amodra@gmail.com>
2629
2630 Update year range in copyright notice of all files.
2631
2632 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
2633 \f
2634 Copyright (C) 2016 Free Software Foundation, Inc.
2635
2636 Copying and distribution of this file, with or without modification,
2637 are permitted in any medium without royalty provided the copyright
2638 notice and this notice are preserved.
2639
2640 Local Variables:
2641 mode: change-log
2642 left-margin: 8
2643 fill-column: 74
2644 version-control: never
2645 End:
This page took 0.133667 seconds and 5 git commands to generate.