1 2014-10-18 Alan Modra <amodra@gmail.com>
4 * write.c (adjust_reloc_syms): Don't allow symbols in reg_section
5 to be reduced to reg_section section symbol.
6 * gas/config/tc-i386.c (i386_finalize_immediate): Reject all
7 reg_section immediates.
9 2014-10-17 Matthew Fortune <matthew.fortune@imgtec.com>
11 * doc/c-mips.texi: Fix bad @value references.
13 2014-10-15 Tristan Gingold <gingold@adacore.com>
15 * configure: Regenerate.
17 2014-10-15 Chen Gang <gang.chen.5i5j@gmail.com>
19 * config/tc-tic4x.c (md_assemble): Correct strncat size.
21 2014-10-14 Tristan Gingold <gingold@adacore.com>
23 * NEWS: Add marker for 2.25.
25 2014-10-14 Alan Modra <amodra@gmail.com>
28 * config/tc-i386.c (fits_in_signed_long): Use unsigned param and
29 expression to avoid signed overflow.
30 (fits_in_signed_byte, fits_in_unsigned_byte, fits_in_unsigned_word,
31 fits_in_signed_word, fits_in_unsigned_long): Similarly.
32 * expr.c (operand <'-'>): Avoid signed overflow.
33 * read.c (s_comm_internal): Likewise.
35 2014-10-14 Alan Modra <amodra@gmail.com>
37 * config/tc-sparc.c (sparc_md_end): Fix unused variable warnings.
39 2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
41 * config/tc-sparc.c (v9a_asr_table): Entry for %cps removed.
42 (sparc_arch_table): Remove the HWCAP_RANDOM, HWCAP_TRANS and
43 HWCAP_ASI_CACHE_SPARING from the architectures using them.
52 (sparc_arch): Use the HWS_* macros. Fix the `sparc4' architecture
53 to cover the HWCAP_ASI_BLK_INIT and HWCAP_IMA capabilities.
54 (hwcap_seen): Variable widened to 64 bits.
55 (hwcap_allowed): Likewise.
56 (sparc_arch): new field `hwcap2_allowed'.
57 (sparc_arch_table): provide hwcap2_allowed values for existing
59 (sparc_md_end): Add a HWCAPS2 object attribute to the elf object
60 in case any of the HWCAP2_* caps are used.
61 (sparc_ip): Take into account the new hwcaps2 bitmap to build the
62 list of seen/allowed hwcaps.
63 (get_hwcap_name): Argument widened to 64 bits to handle HWCAP2
67 (sparc_arch): New architectures `sparc5', `v9m' and `v8plusm'.
68 (v9a_asr_table): Add the %mwait (%asr28) ancillary state register
70 (sparc_ip): Handle the %mcdper ancillary state register as an
72 (sparc_ip): Handle } arguments as fdrd floating point registers
73 (double) that are the same than frs1.
74 * doc/c-sparc.texi (Sparc-Opts): Document the -Av9e, -Av8pluse and
75 -xarch=v9e command line options. Also fix the description of the
76 -Av9v and -Av8plusv command line options.
77 Document the -Av9m, -Av8plusm,-Asparc5, -xarch=v9m and
78 -xarch=sparc5 command line options.
80 2014-09-29 Terry Guo <terry.guo@arm.com>
82 * as.c (create_obj_attrs_section): Move it and call it from ...
83 * write.c (create_obj_attrs_section): ... here.
84 (subsegs_finish_section): Refactored.
86 2014-09-27 Alan Modra <amodra@gmail.com>
88 * dwarf2dbg.c (all_segs_hash): Delete.
89 (get_line_subseg): Delete last_seg, last_subseg, last_line_subseg.
90 Retrieve line_seg for section via seg_info.
91 * subsegs.h (segment_info_typet): Add dwarf2_line_seg.
93 2014-09-23 H.J. Lu <hongjiu.lu@intel.com>
96 * config/tc-i386.c (md_assemble): Disallow VEX/EVEX encoded
97 instructions in 16-bit mode.
99 2014-09-22 Alan Modra <amodra@gmail.com>
101 * config/tc-m68k.c (md_assemble): Add assert to work around
102 bogus trunk gcc warning.
103 * config/tc-pj.h (md_convert_frag): Warning fix.
104 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Warning fix.
106 2014-09-17 Tristan Gingold <gingold@adacore.com>
108 * config/tc-arm.c (move_or_literal_pool, add_to_lit_pool): Use
109 bfd_int64_t instead of int64_t.
111 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
113 * config/tc-i386.c (evexrcig): New.
114 (build_evex_prefix): Force rounding bits.
115 (OPTION_MEVEXRCIG): New.
116 (md_longopts): Add mevexrcig.
117 (md_parse_option): Handle OPTION_MEVEXRCIG.
118 (md_show_usage): Document mevexrcig.
119 * doc/c-i386.texi (mevexrcig): Document new option.
121 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
123 * config/tc-nds32.c (nds32_fsrs, nds32_fdrs, nds32_gprs): Remove.
124 (relax_table): Add new relaxation pattern.
125 (do_pseudo_la_internal, do_pseudo_ls_bhw): Expand for PIC suffix.
126 (do_pseudo_move, do_pseudo_neg, do_pseudo_pushpopm): Fix.
127 (get_range_type, nds32_elf_record_fixup_exp, nds32_get_align,
128 nds32_elf_build_relax_relation, md_assemble, invalid_prev_frag,
129 nds32_relax_frag, md_estimate_size_before_relax): Adjust relaxation.
130 (relocation_table): Remove.
131 (relax_ls_table): Load-store relaxation pattern.
132 (hint_map): Define-use chain pattern.
133 (nds32_find_reloc_table, nds32_match_hint_insn): Analysis
135 (nds32_parse_name): Parse PIC suffix.
136 * config/tc-nds32.h: Declare.
138 2014-09-15 H.J. Lu <hongjiu.lu@intel.com>
140 * config/tc-i386.c (OPTION_omit_lock_prefix): Renamed to ...
141 (OPTION_OMIT_LOCK_PREFIX): This.
142 (md_longopts): Updated.
143 (md_parse_option): Likewise.
145 2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
146 Matthew Fortune <matthew.fortune@imgtec.com>
148 * config/tc-mips.c (mips_nan2008): New static global.
149 (mips_flag_nan2008): Removed.
150 (LL_SC_FMT): New define.
151 (COP12_FMT): Updated.
152 (ISA_IS_R6): New define.
153 (ISA_HAS_64BIT_REGS): Add mips64r6.
154 (ISA_HAS_DROR): Likewise.
155 (ISA_HAS_64BIT_FPRS): Add mips32r6 and mips64r6.
156 (ISA_HAS_ROR): Likewise.
157 (ISA_HAS_ODD_SINGLE_FPR): Likewise.
158 (ISA_HAS_MXHC1): Likewise.
159 (hilo_interlocks): Likewise.
160 (md_longopts): Likewise.
161 (ISA_HAS_LEGACY_NAN): New define.
162 (options): Add OPTION_MIPS32R6 and OPTION_MIPS64R6.
163 (mips_ase): Add field rem_rev.
164 (mips_ases): Updated to add which ISA an ASE was removed in.
165 (mips_isa_rev): Add support for mips32r6 and mips64r6.
166 (mips_check_isa_supports_ase): Add support to check if an ASE
167 has been removed in the specified MIPS ISA revision.
168 (validate_mips_insn): Skip '-' character.
169 (macro_build): Likewise.
170 (mips_check_options): Prevent R6 working with fp32, mips16,
171 micromips, or branch relaxation.
172 (file_mips_check_options): Set R6 floating point registers to
173 64 bit. Also deal with the nan2008 option.
174 (limited_pcrel_reloc_p): Add relocs: BFD_RELOC_MIPS_21_PCREL_S2,
175 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3,
176 BFD_RELOC_MIPS_19_PCREL_S2, BFD_RELOC_HI16_S_PCREL and
177 BFD_RELOC_LO16_PCREL.
178 (operand_reg_mask): Add support for OP_SAME_RS_RT, OP_CHECK_PREV
180 (match_check_prev_operand): New static function.
181 (match_same_rs_rt_operand): New static function.
182 (match_non_zero_reg_operand): New static function.
183 (match_operand): Added entries for: OP_SAME_RS_RT, OP_CHECK_PREV
185 (insns_between): Added case to deal with forbidden slots.
186 (append_insn): Added support for relocs: BFD_RELOC_MIPS_21_PCREL_S2
187 and BFD_RELOC_MIPS_26_PCREL_S2.
188 (match_insn): Add support for operands -A, -B, +' and +". Also
190 (mips_percent_op): Add entries for %pcrel_hi and %pcrel_lo.
191 (md_parse_option): Add support for mips32r6 and mips64r6. Also
192 update the nan option handling.
193 (md_pcrel_from): Add cases for relocs: BFD_RELOC_MIPS_21_PCREL_S2,
194 BFD_RELOC_MIPS_26_PCREL_S2.
195 (mips_force_relocation): Prevent forced relaxation for MIPS r6.
196 (md_apply_fix): Add support for relocs: BFD_RELOC_MIPS_21_PCREL_S2,
197 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3,
198 BFD_RELOC_MIPS_19_PCREL_S2, BFD_RELOC_HI16_S_PCREL and
199 BFD_RELOC_LO16_PCREL.
200 (s_mipsset): Add support for mips32r6 and mips64r6.
201 (s_nan): Update to support the new nan2008 framework.
202 (tc_gen_reloc): Add relocs: BFD_RELOC_MIPS_21_PCREL_S2,
203 BFD_RELOC_MIPS_26_PCREL_S2, BFD_RELOC_MIPS_18_PCREL_S3,
204 BFD_RELOC_MIPS_19_PCREL_S2, BFD_RELOC_HI16_S_PCREL and
205 BFD_RELOC_LO16_PCREL.
206 (mips_elf_final_processing): Updated to use the mips_nan2008.
207 (mips_cpu_info_table): Add entries for mips32r6 and mips64r6.
208 (macro): Enable ldc2, sdc2, ll, lld, swc2, sc, scd, cache, pref
210 (mips_fix_adjustable): Make PC relative R6 relocations relative
211 to the symbol and not the section.
212 * configure.ac: Add support for mips32r6 and mips64r6.
213 * configure: Regenerate.
214 * doc/c-mips.texi: Document the -mips32r6 and -mips64r6 command line
216 * doc/as.texinfo: Likewise.
218 2014-09-15 Matthew Fortune <matthew.fortune@imgtec.com>
220 * tc-mips.c (check_fpabi): Move softfloat and singlefloat
223 2014-09-12 Jose E. Marchesi <jose.marchesi@oracle.com>
225 * config/tc-sparc.c (sparc_ip): Update the set of allowed hwcaps
226 when bumping the current architecture.
227 (md_begin): Adjust the highetst architecture level also when a
228 specific architecture is not requested.
230 2014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
232 * configure.tgt: Add mips*-img-elf* target triple.
234 2014-09-12 Alan Modra <amodra@gmail.com>
236 * config/tc-i386.c (match_template): Remove redundant "!!" testing
237 single-bit bitfields.
238 (build_modrm_byte): Don't compare single-bit bitfields to "1".
240 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
242 * config/tc-arm.c (arm_cpus): Add cortex-a17.
244 2014-09-03 Jiong Wang <jiong.wang@arm.com>
246 * config/tc-aarch64.c (parse_sys_reg): Remove the restriction on op0
249 2014-09-03 Jiong Wang <jiong.wang@arm.com>
251 * config/tc-aarch64.c (parse_operands): Recognize PAIRREG.
252 (aarch64_features): Add entry for lse extension.
254 2014-08-26 Jiong Wang <jiong.wang@arm.com>
256 * config/tc-arm.c (aeabi_set_public_attributes): Update selected_cpu
257 based on the info we got during parsing.
258 (arm_handle_align): Make sure the p2align expanding logic under thumb
261 2014-08-26 Maciej W. Rozycki <macro@codesourcery.com>
263 * config/tc-mips.c (macro) <M_SAA_AB>: Remove duplicate code and
265 <M_SAAD_AB>: ... here. Assert that !microMIPS.
267 2014-08-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
269 * config/tc-moxie.h (md_convert_frag): Silence warning.
271 2014-08-22 Richard Henderson <rth@redhat.com>
273 * config/tc-aarch64.c (tc_aarch64_regname_to_dw2regnum): Fix
274 register number for vector register types.
275 * config/tc-aarch64.h (DWARF2_LINE_MIN_INSN_LENGTH): Set to 4.
276 (DWARF2_CIE_DATA_ALIGNMENT): Set to -8.
278 2014-08-22 Maciej W. Rozycki <macro@codesourcery.com>
280 * config/tc-ppc.c (md_assemble): Only set the PPC_APUINFO_VLE
281 flag if both the processor and opcode flags match.
283 2014-08-22 Maciej W. Rozycki <macro@codesourcery.com>
285 * config/tc-arm.c (add_to_lit_pool): Preinitialize `imm1'.
287 2014-08-20 Maciej W. Rozycki <macro@codesourcery.com>
289 * dw2gencfi.c (make_debug_seg): Replace leading spaces with tabs.
290 (dot_cfi_val_encoded_addr, output_cfi_insn): Likewise.
291 (output_cie, cfi_change_reg_numbers, cfi_finish): Likewise.
293 2014-08-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
295 * config/tc-arm.c (parse_ifimm_zero): New function.
296 (enum operand_parse_code): Add OP_RSVD_FI0 value.
297 (parse_operands): Handle OP_RSVD_FI0.
298 (asm_opcode_insns): Use RSVD_FI0 for second operand of vcmp, vcmpe.
300 2014-08-20 Alan Modra <amodra@gmail.com>
302 * Makefile.am: Typo fix.
303 * Makefile.in: Regenerate.
304 * po/POTFILES.in: Regenerate.
306 2014-08-19 Andreas Tobler <andreast@fgznet.ch>
308 * Makefile.am: Add FreeBSD ARM support.
309 * Mafefile.in: Regenerate.
310 * configure.tgt: Add FreeBSD ARM support.
311 * config/te-armfbsdeabi.h: New file.
312 * config/te-armfbsdvfp.h: Likewise.
314 2014-08-19 Alan Modra <amodra@gmail.com>
316 * configure: Regenerate.
318 2014-08-18 Nick Clifton <nickc@redhat.com>
320 * config/tc-rl78.c (md_apply_fix): Correct handling of small sized
321 RELOC_RL78_DIFF fixups.
323 2014-08-18 Alan Modra <amodra@gmail.com>
325 * read.c (parse_mri_cons): Warning fix.
327 2014-08-14 Alan Modra <amodra@gmail.com>
329 * configure.ac: Move ACX_LARGEFILE after LT_INIT.
330 * config.in: Regenerate.
331 * configure: Regenerate.
333 2014-08-06 Ilya Tocar <ilya.tocar@intel.com>
335 * config/tc-i386.c (omit_lock_prefix): New.
336 (output_insn): Omit lock prefix if omit_lock_prefix is true.
337 (OPTION_omit_lock_prefix): New.
338 (md_longopts): Add momit-lock-prefix.
339 (md_parse_option): Handle momit-lock-prefix.
340 (md_show_usage): Add momit-lock-prefix=[no|yes].
341 * doc/c-i386.texi (momit-lock-prefix): Document.
343 2014-08-01 Takashi Yoshii <yoshii.takashi@renesas.com>
346 * config/tc-sh.c (tc_gen_reloc): Fix initialization of addend in
349 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
351 * config/tc-mips.c: Rename INSN_LOAD_COPROC_DELAY to INSN_LOAD_COPROC
352 and INSN_COPROC_MOVE_DELAY to INSN_COPROC_MOVE throughout.
354 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
356 * config/tc-mips.c (mips_flags_frag): New static global.
357 (struct mips_set_options): Add oddspreg field.
358 (file_mips_opts, mips_opts): Initialize oddspreg.
359 (ISA_HAS_ODD_SINGLE_FPR): Add CPU argument and update for R5900 and
361 (enum options, md_longopts, md_parse_option): Add -mfpxx, -modd-spreg
362 and -mno-odd-spreg options.
363 (md_begin): Create .MIPS.abiflags section.
364 (fpabi_incompatible_with, fpabi_requires): New static function.
365 (check_fpabi): Likewise.
366 (mips_check_options): Handle fp=xx and oddspreg restrictions.
367 (file_mips_check_options): Set oddspreg by default for fp=xx.
368 (mips_oddfpreg_ok): Re-write function.
369 (check_regno): Check odd numbered registers regardless of FPR size.
370 For fp != 32 use as_bad instead of as_warn.
371 (match_float_constant): Rewrite check regarding FP register width. Add
372 support for generating constants when MXHC1 is present. Handle fp=xx
373 to comply with the ABI.
374 (macro): Update M_LI_DD similarly to match_float_constant. Generate
375 MTHC1 when available. Check that correct code can be generated for
376 fp=xx and fp=64 ABIs.
377 (parse_code_option, s_mipsset): Add fp=xx, oddspreg and nooddspreg
379 (mips_convert_ase_flags): New static function.
380 (mips_elf_final_processing): Use fpabi == Val_GNU_MIPS_ABI_FP_OLD_64
381 to determine when to add the EF_MIPS_FP64 flag. Populate the
382 .MIPS.abiflags section.
383 (md_mips_end): Update .gnu_attribute based on command line and .module
384 as applicable. Use check_fpabi to ensure .gnu.attribute and command
385 line/.module options are consistent.
386 * doc/as.texinfo: Add missing -mgp64/-mfp64 options and document new
387 -mfpxx, -modd-spreg and -mno-odd-spreg options.
388 * doc/c-mips.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg,
389 gnu_attribute values and FP ABIs.
391 2014-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
393 Add RTEMS target support and simplify matching
395 * gas/configure.tgt (or1k*-*-rtems*): Ensure a match.
396 (or1k*-*-*): Use or1k* to match or1knd and or1kZ.
398 2014-07-27 Anthony Green <green@moxielogic.com>
400 * configure.tgt (generic_target): Add moxie-*-moxiebox*
401 * config/tc-moxie.c: Remove moxie_target_format.
402 (md_begin): Set default target_big_endian.
403 * config/tc-moxie.h: Only set TARGET_BYTES_BIG_ENDIAN if unset.
404 (TARGET_FORMAT): Set based on target_big_endian.
406 2014-07-26 Alan Modra <amodra@gmail.com>
408 * config/bfin-parse.y: Don't include obstack.h.
409 * config/obj-aout.c: Likewise.
410 * config/obj-coff.c: Likewise.
411 * config/obj-som.c: Likewise.
412 * config/tc-bfin.c: Likewise.
413 * config/tc-i960.c: Likewise.
414 * config/tc-rl78.c: Likewise.
415 * config/tc-rx.c: Likewise.
416 * config/tc-tic4x.c: Likewise.
418 * listing.c: Likewise.
419 * config/obj-elf.c (elf_file_symbol): Make name_length a size_t.
420 * config/tc-aarch64.c (symbol_locate): Likewise.
421 * config/tc-arm.c (symbol_locate): Likewise.
422 * config/tc-mmix.c (mmix_handle_mmixal): Make len_0 a size_t.
423 * config/tc-score.c (s3_build_score_ops_hsh): Make len a size_t.
424 (s3_build_dependency_insn_hsh): Likewise.
425 * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
426 (s7_build_dependency_insn_hsh): Likewise.
427 * frags.c (frag_grow): Make parameter a size_t, and use size_t locals.
428 (frag_new): Make parameter a size_t.
429 (frag_var_init): Make max_chars and var parameters size_t.
430 (frag_var, frag_variant): Likewise.
431 (frag_room): Return a size_t.
432 (frag_align_pattern): Make n_fill parameter a size_t.
433 * frags.h: Update function prototypes.
434 * symbols.c (save_symbol_name): Make name_length a size_t.
436 2014-07-22 Sergey Guriev <sergey.s.guriev@intel.com>
437 Alexander Ivchenko <alexander.ivchenko@intel.com>
438 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
439 Sergey Lega <sergey.s.lega@intel.com>
440 Anna Tikhonova <anna.tikhonova@intel.com>
441 Ilya Tocar <ilya.tocar@intel.com>
442 Andrey Turetskiy <andrey.turetskiy@intel.com>
443 Ilya Verbin <ilya.verbin@intel.com>
444 Kirill Yukhin <kirill.yukhin@intel.com>
445 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
447 * config/tc-i386.c (cpu_arch): Add .avx512dq, CPU_AVX512DQ_FLAGS.
448 * doc/c-i386.texi: Document avx512dq/.avx512dq.
450 2014-07-22 Sergey Guriev <sergey.s.guriev@intel.com>
451 Alexander Ivchenko <alexander.ivchenko@intel.com>
452 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
453 Sergey Lega <sergey.s.lega@intel.com>
454 Anna Tikhonova <anna.tikhonova@intel.com>
455 Ilya Tocar <ilya.tocar@intel.com>
456 Andrey Turetskiy <andrey.turetskiy@intel.com>
457 Ilya Verbin <ilya.verbin@intel.com>
458 Kirill Yukhin <kirill.yukhin@intel.com>
459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
461 * config/tc-i386.c (cpu_arch): Add .avx512bw, CPU_AVX512BW_FLAGS.
462 * doc/c-i386.texi: Document avx512bw/.avx512bw.
464 2014-07-22 Sergey Guriev <sergey.s.guriev@intel.com>
465 Alexander Ivchenko <alexander.ivchenko@intel.com>
466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
467 Sergey Lega <sergey.s.lega@intel.com>
468 Anna Tikhonova <anna.tikhonova@intel.com>
469 Ilya Tocar <ilya.tocar@intel.com>
470 Andrey Turetskiy <andrey.turetskiy@intel.com>
471 Ilya Verbin <ilya.verbin@intel.com>
472 Kirill Yukhin <kirill.yukhin@intel.com>
473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
475 * config/tc-i386.c (cpu_arch): Add .avx512vl, CPU_AVX512VL_FLAGS.
476 (build_vex_prefix): Don't abort on VEX.W.
477 (check_VecOperands): Support BROADCAST_1TO4 and BROADCAST_1TO2.
478 (check_VecOperations): Ditto.
479 * doc/c-i386.texi: Document avx512vl/.avx512vl.
481 2014-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>
483 Add or reactivate or1k-*-rtems*
484 * gas/configure.tgt (or1k-*-rtems*): Add.
486 2014-07-17 Ilya Tocar <ilya.tocar@intel.com>
488 * config/tc-i386.c (parse_register): Set need_vrex.
490 2014-07-15 Jiong Wang <jiong.wang@arm.com>
492 * config/tc-arm.c (add_to_lit_pool): Use "inst.operands[1].imm" for
493 sign extension. Casting the type of imm1 and imm2 to offsetT. Fix
494 one logic error when checking X_op.
496 2014-07-14 Andreas Schwab <schwab@linux-m68k.org>
498 * config/tc-m68k.c (md_convert_frag_1): Don't complain with
499 --pcrel about TAB (DBCCLBR, LONG) conversion.
501 2014-07-12 David Majnemer <david.majnemer@gmail.com>
503 * read.c (assign_symbol): Don't force "set" symbols local for PE.
505 2014-07-08 Jiong Wang <jiong.wang@arm.com>
507 * config/tc-arm.c (literal_pool): New field "alignment".
508 (find_or_make_literal_pool): Initialize "alignment" to 2.
509 (s_ltorg): Align the pool using value of "alignment"
510 (parse_big_immediate): New parameter "in_exp". Return
511 parsed expression if "in_exp" is not null.
512 (parse_address_main): Invoke "parse_big_immediate" for
514 (add_to_lit_pool): Add one parameter 'nbytes'.
515 Split 8 byte entry into two 4 byte entry.
516 Add padding to align 8 byte entry to 8 byte boundary.
517 (encode_arm_cp_address): Generate literal pool entry if possible.
518 (move_or_literal_pool): Generate entry for vldr case.
519 (enum lit_type): New enum type.
520 (do_ldst): Use new enum type.
521 (do_ldstv4): Likewise.
522 (do_t_ldst): Likewise.
523 (neon_write_immbits): Support Thumb-2 mode.
525 2014-07-07 Barney Stratford <barney_stratford@fastmail.fm>
527 * config/tc-avr.c (avr_operand): Permit referring to r26-r31 by
528 name as [xyz][hl]. Permit using a symbol whoes name begins with
529 ‘r’ to refer to a register.
530 Allow arbitrary expressions for the P and p operators.
531 (md_apply_fix): Check the BFD_RELOC_AVR_PORT5 and
532 BFD_RELOC_AVR_PORT6 relocations.
534 2014-07-04 Alan Modra <amodra@gmail.com>
536 * doc/internals.texi: Update "configure.in" comments.
537 * acinclude.m4: Likewise.
538 * config/tc-sparc.c: Likewise.
540 2014-07-04 Alan Modra <amodra@gmail.com>
542 * configure.ac: Rename from configure.in.
543 * Makefile.in: Regenerate.
544 * config.in: Regenerate.
545 * doc/Makefile.in: Regenerate.
547 2014-07-04 Alan Modra <amodra@gmail.com>
549 * doc/Makefile.am (CONFIG_STATUS_DEPENDENCIES): Delete.
550 * doc/Makefile.in: Regenerate.
552 2014-07-04 Alan Modra <amodra@gmail.com>
554 * configure.in: Include bfd/version.m4.
555 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
556 (BFD_VERSION): Delete.
557 * configure.com: Get bfd version from bfd/version.m4.
558 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
559 * configure: Regenerate.
560 * Makefile.in: Regenerate.
561 * doc/Makefile.in: Regenerate.
563 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
564 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
565 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
566 Soundararajan <Sounderarajan.D@atmel.com>
568 * config/tc-avr.c (mcu_types): Add avrtiny arch.
569 Add avrtiny arch devices attiny4, attiny5, attiny9, attiny10, attiny20
571 (md_show_usage): Add avrtiny arch in usage message.
572 (avr_operand): validate and issue error for invalid register for
574 add new reloc exp for 16 bit lds/sts instruction.
575 (md_apply_fix): check 16 bit lds/sts operand for out of range and
577 (md_assemble): check ISA for arch and issue diagnostic.
578 * NEWS: Mention new support.
579 * doc/c-avr.texi: Document support for avrtiny architecture.
581 2014-06-27 Alan Modra <amodra@gmail.com>
583 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Don't set
584 SYM_MACHO_FIELDS_NOT_VALIDATED after reporting an error.
585 (obj_mach_o_frob_label): Avoid cascading errors.
586 (obj_mach_o_frob_symbol): Don't set SYM_MACHO_FIELDS_NOT_VALIDATED.
588 2014-06-18 DJ Delorie <dj@redhat.com>
590 * config/rx-parse.y (BSET, BCLR, BTST, BNOT, BMCMD): Make .B
593 2014-06-17 Hans-Peter Nilsson <hp@bitrange.com>
595 * config/tc-mmix.c (loc_assert_s): New member frag.
597 (mmix_md_end): If an error is reported for a LOC expression, patch
600 2014-06-17 Chris Metcalf <cmetcalf@tilera.com>
603 * macro.c (buffer_and_nest): Honour #line directives inside
606 2014-06-17 Jiong Wang <jiong.wang@arm.com>
608 * config/tc-arm.c (depr_it_insns): New check for inc/dec sp.
610 2014-06-17 Hans-Peter Nilsson <hp@axis.com>
612 * config/tc-cris.c (cris_bad): New function.
613 (cris_process_instruction): Where applicable, use it instead of
616 2014-06-16 Nick Clifton <nickc@redhat.com>
618 * config/tc-aarch64.c (md_apply_fix): Ignore unused relocs.
620 2014-06-16 Jiong Wang <jiong.wang@arm.com>
622 * config/tc-aarch64.c (END_OF_INSN): New macro.
623 (parse_operands): Handle operand given and in wrong format when
626 2014-06-16 Alan Modra <amodra@gmail.com>
628 * write.h (subsegs_finish): Delete declaration.
629 * write.c (subsegs_finish): Make static.
630 (write_object_file): Call subsegs_finish from here. Don't print
631 warning and error count here..
632 * as.c (main): ..do so here instead. Remove dead code for "no
633 object file generated". Split out count strings to better support
634 internationalisation. Don't call subsegs_finish. Tidy setting of
635 "keep_it". Run write_object_file even after errors.
636 (keep_it): Make static.
637 * config/obj-elf.c (elf_frob_symbol): Remove assert.
638 (elf_frob_file_before_adjust): Likewise.
640 2014-06-16 Alan Modra <amodra@gmail.com>
642 * config/tc-dlx.c (machine_ip): Move initialisation of the_insn
645 2014-06-16 Alan Modra <amodra@gmail.com>
647 * config/tc-i386.c (reloc): Don't avoid pcrel check for
648 BFD_RELOC_SIZE64. Return NO_RELOC on failing pcrel check.
650 2014-06-16 Alan Modra <amodra@gmail.com>
652 * config/tc-tic6x.c (s_tic6x_ehtype): Clear after frag_more.
653 (tic6x_output_exidx_entry): Likewise.
654 (md_apply_fix): Simplify 1 byte md_number_to_chars.
656 2014-06-16 Alan Modra <amodra@gmail.com>
658 * config/tc-tic54x.c (tic54x_mlib): Don't write garbage past
659 end of archive to temp file.
660 (tic54x_start_line_hook): Start scan for parallel on next line,
661 not one char into next line (which may overrun the buffer).
663 2014-06-16 Alan Modra <amodra@gmail.com>
665 * config/tc-vax.c (md_apply_fix): Rewrite.
666 (tc_gen_reloc, vax_cons, vax_cons_fix_new): Style: Use NO_RELOC
667 define rather than the equivalent BFD_RELOC_NONE.
669 2014-06-16 Alan Modra <amodra@gmail.com>
671 * config/tc-arm.c (s_arm_elf_cons): Initialise after frag_more.
672 (md_apply_fix): Delete now unnecessary zeroing for BFD_RELOC_ARM_GOT*
673 and BFD_RELOC_ARM_TLS* relocs. Simplify BFD_RELOC_8 case.
675 2014-06-16 Alan Modra <amodra@gmail.com>
677 * config/tc-cris.c (md_create_long_jump): Follow "short" jump
678 with a nop rather than leaving uninitialised.
680 2014-06-13 Chen Gang <gang.chen.5i5j@gmail.com>
682 * config/tc-score7.c: Replace sprintf with strcpy where
684 (s7_b32_relax_to_b16): Use symbol_get_frag() to access a symbol's
686 * config/tc-score.c (s3_relax_branch_inst16): Likewise.
687 (s3_relax_cmpbranch_inst32): Likewise.
689 2014-06-07 Alan Modra <amodra@gmail.com>
691 * config/tc-ppc.c (ppc_insert_operand): Handle PPC_OPERAND_SIGNOPT
692 on unsigned fields. Comment on PPC_OPERAND_SIGNOPT signed fields
695 2014-06-02 Martin Storsjo <martin@martin.st>
697 * doc/c-aarch64.texi: Fix the documentation on :pg_hi21:.
699 2014-06-05 Joel Brobecker <brobecker@adacore.com>
701 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
702 bfd's development.sh.
703 * Makefile.in, configure: Regenerate.
705 2014-06-03 Nick Clifton <nickc@redhat.com>
707 * config/tc-msp430.c (OPTION_WARN_INTR_NOPS): Use y instead of z.
708 (OPTION_NO_WARN_INTR_NOPS): Use Y instead of Z.
709 * doc/c-msp430.texi: Update command line option description.
711 2014-05-22 Alan Modra <amodra@gmail.com>
713 * listing.c (listing_warning, listing_error): Add space after colon.
714 * messages.c (as_warn_internal, as_bad_internal): Use the same
717 2014-05-20 Matthew Fortune <matthew.fortune@imgtec.com>
719 * config/tc-mips.c (file_mips_opts_checked): New static global.
720 (s_module): New static function.
722 (mips_pseudo_table): Add .module handler.
723 (mips_set_ase): Add opts argument and use instead of mips_opts.
724 (md_assemble): Use file_mips_check_options.
725 (md_parse_option): Update to use file_mips_opts instead of mips_opts.
726 (mips_set_architecture): Delete function. Moved to...
727 (mips_after_parse_args): Here. All logic now applies to
728 file_mips_opts first and then copies the final state to mips_opts.
729 Move error checking and defaults inference to mips_check_options and
730 file_mips_check_options.
731 (mips_check_options): New static function. Common option checking for
732 command line, .module and .set. Use .module values in error messages
733 instead of refering to command line options.
734 (file_mips_check_options): New static function. A wrapper for
735 mips_check_options with file_mips_opts. Updates BFD arch based on
737 (s_mipsset): Split into s_mipsset and parse_code_option. Settings
738 supported by both .set and .module are moved to parse_code_option.
739 Warnings and errors are kept in s_mipsset because when
740 parse_code_option is used with s_module the warnings are deferred
741 until code is generated. Any setting supporting 'default' value is
742 kept in s_mipsset as it is not applicable to s_module. Inferred
743 settings are also kept in s_mipsset as s_module does not infer any
744 settings. Use mips_check_options.
745 (parse_code_option): New static function derived from s_mipsset.
746 (s_module): New static function that implements .module. Allows file
747 level settings to be changed until code is generated.
748 (s_cpload, s_cpsetup, s_cplocal): Use file_mips_check_options.
749 (s_cprestore, s_cpreturn, s_cpadd, mips_address_bytes): Likewise.
750 (mips_elf_final_processing): Update file_ase to file_mips_opts.ase.
751 (md_mips_end): Use file_mips_check_options.
752 * doc/c-mips.texi: Document .module.
754 2014-05-20 Matthew Fortune <matthew.fortune@imgtec.com>
756 * messages.c (as_warn_internal): Remove extra whitespace from
759 2014-05-20 Matthew Fortune <matthew.fortune@imgtec.com>
761 * config/tc-mips.c (FP64_ASES): Add ASE_MSA.
762 (mips_after_parse_args): Do not select ASE_MSA without -mfp64.
764 2014-05-20 Mike Stump <mikestump@comcast.net>
766 * messages.c (as_warn_internal): Ensure we don't interleave output
767 within a single line when make -j is used.
768 (as_bad_internal): Likewise.
770 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
772 * config/obj-elf.h (obj_elf_seen_attribute): Declare.
773 * config/obj-elf.c (recorded_attribute_info): New structure.
774 (recorded_attributes): New variable.
775 (record_attribute, obj_elf_seen_attribute): New functions.
776 (obj_elf_vendor_attribute): Record which attributes have been seen.
778 2014-05-20 Nick Clifton <nickc@redhat.com>
780 * config/tc-msp430.c (CHECK_RELOC_MSP430): Add OP parameter.
781 Generate BFD_RELOC_MSP430_ABS_HI16 if vshift is 1.
782 (msp430_srcoperand): Store vshift value in operand.
784 2014-05-19 Nick Clifton <nickc@redhat.com>
787 * config/tc-i386.c (md_apply_fix): Improve the detection of code
788 symbols for 32-bit PE targets.
790 2014-05-18 Richard Sandiford <rdsandiford@googlemail.com>
792 * config/tc-mips.c (md_obj_begin): Delete.
793 (md_obj_end): Fold into...
794 (md_mips_end): ...here. Move to end of file.
796 2014-05-17 Nick Clifton <nickc@redhat.com>
799 * config/tc-v850.c (handle_ctoff): Generate an error if called
800 when using the RH850 ABI.
802 2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
804 * config/tc-rl78.c (enum options): Add OPTION_32BIT_DOUBLES
805 and OPTION_64BIT_DOUBLES.
806 (md_longopts): Add -m32bit-doubles and -m64bit-doubles.
807 (md_parse_option): Parse -m32bit-doubles and -m64bit-doubles.
808 (md_show_usage): Show all of the RL78 options.
809 (rl78_float_cons): New static functions.
810 (md_pseudo_table): Update handler for "double".
811 * doc/c-rl78.texi: Document new options.
812 * doc/as.texinfo: Likewise.
814 2014-05-13 Matthew Fortune <matthew.fortune@imgtec.com>
816 * config/tc-mips.c (mips_set_options): Rename gp32 to gp throughout.
817 (HAVE_32BIT_GPRS, HAVE_64BIT_GPRS): Remove. Re-implement via GPR_SIZE.
818 (HAVE_32BIT_FPRS, HAVE_64BIT_FPRS): Remove. Re-implement via FPR_SIZE.
819 (GPR_SIZE, FPR_SIZE): New macros. Use throughout.
821 2014-05-08 Matthew Fortune <matthew.fortune@imgtec.com>
823 * config/tc-mips.c (md_parse_option): Update missed file_mips_isa
826 2014-05-08 Matthew Fortune <matthew.fortune@imgtec.com>
828 * config/tc-mips.c (mips_set_options): Rename fp32 field to fp.
829 Update fp32 == 0 to fp == 64 and fp32 == 1 to fp != 64 throughout.
830 (file_mips_gp32, file_mips_fp32, file_mips_soft_float,
831 file_mips_single_float, file_mips_isa, file_mips_arch): Merge into
833 (file_mips_opts): Here. New static global. Update throughout.
834 (mips_opts): Update defaults for gp32 and fp.
836 2014-05-08 Matthew Fortune <matthew.fortune@imgtec.com>
838 * config/tc-mips.c (streq): Define.
839 (mips_convert_symbolic_attribute): New function.
840 * config/tc-mips.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define.
841 (mips_convert_symbolic_attribute): New prototype.
843 2014-05-02 Max Filippov <jcmvbkbc@gmail.com>
845 * config/tc-xtensa.c (md_apply_fix): mark BFD_RELOC_XTENSA_DIFF*
848 2014-05-07 Andrew Bennett <andrew.bennett@imgtec.com>
850 * tc-mips.c (ISA_SUPPORTS_MIPS16E): Add mips32r3, mips32r5, mips64r3
852 (ISA_HAS_64BIT_FPRS): Likewise.
853 (ISA_HAS_ROR): Likewise.
854 (ISA_HAS_ODD_SINGLE_FPR): Likewise.
855 (ISA_HAS_MXHC1): Likewise.
856 (hilo_interlocks): Likewise.
857 (md_longopts): Likewise.
858 (ISA_HAS_64BIT_REGS): Add mips64r3 and mips64r5.
859 (ISA_HAS_DROR): Likewise.
860 (options): Add OPTION_MIPS32R3, OPTION_MIPS32R5, OPTION_MIPS64R3, and
862 (mips_isa_rev): Add support for mips32r3, mips32r5, mips64r3 and
864 (md_parse_option): Likewise.
865 (s_mipsset): Likewise.
866 (mips_cpu_info_table): Add entries for mips32r3, mips32r5, mips64r3
867 and mips64r5. Also change p5600 entry to be mips32r5.
868 * configure.in: Add support for mips32r3, mips32r5, mips64r3 and
870 * configure: Regenerate.
871 * doc/c-mips.texi: Document the -mips32r3, -mips32r5, -mips64r3 and
872 -mips64r5 command line options.
873 * doc/as.texinfo: Likewise.
875 2014-04-28 Nick Clifton <nickc@redhat.com>
878 * config/tc-i386.c (md_apply_fix): Do not adjust value of
879 pc-relative fixes against weak symbols.
881 2014-04-26 Alan Modra <amodra@gmail.com>
883 * po/POTFILES.in: Regenerate.
885 2014-04-24 Nick Clifton <nickc@redhat.com>
887 * config/tc-arm.c (s_ltorg): Only create a mapping symbol for ELF
890 2014-04-23 Will Newton <will.newton@linaro.org>
892 * config/tc-arm.c (s_ltorg): Call make_mapping_symbol
893 directly instead of mapping_state.
895 2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
897 * config/tc-mips.c (options): Add OPTION_XPA and OPTION_NO_XPA.
898 (md_longopts): Add xpa and no-xpa command line options.
899 (mips_ases): Add MIPS XPA ASE.
900 (mips_cpu_info_table): Update p5600 entry to allow the XPA ASE.
901 * doc/as.texinfo: Document the MIPS XPA command line options.
902 * doc/c-mips.texi: Document the MIPS XPA command line options,
903 and assembler directives.
905 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
907 * config/tc-nios2.c (nios2_consume_arg): Add case for 'E' to
908 unbreak self-test mode.
910 2014-04-22 Max Filippov <jcmvbkbc@gmail.com>
912 * config/tc-xtensa.c (xtensa_handle_align): record alignment for the
915 2014-04-22 Christian Svensson <blue@cmd.nu>
917 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
918 * configure.in: Likewise.
919 * configure.tgt: Likewise.
920 * doc/as.texinfo: Likewise.
921 * config/obj-coff.h: Likewise.
922 * config/tc-or1k.c: New file.
923 * config/tc-or1k.h: New file.
924 * config/tc-openrisc.c: Delete.
925 * config/tc-openrisc.h: Delete.
926 * config/tc-or32.c: Delete.
927 * config/tc-or32.h: Delete.
928 * Makefile.in: Regenerate.
929 * configure: Regenerate.
931 2014-04-16 Alan Modra <amodra@gmail.com>
933 * config/tc-tilegx.h (TC_CONS_FIX_NEW): Add RELOC arg.
934 * config/tc-tilepro.h (TC_CONS_FIX_NEW): Likewise.
936 2014-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
938 * config/tc-avr.c: Add new flag mlink-relax.
939 (md_show_usage): Add flag and help text.
940 (md_parse_option): Record whether link relax is turned on.
941 (relaxable_section): New.
942 (avr_validate_fix_sub): New.
943 (avr_force_relocation): New.
944 (md_apply_fix): Generate DIFF reloc.
945 (avr_allow_local_subtract): New.
947 * config/tc-avr.h (TC_LINKRELAX_FIXUP): Define to 0.
948 (TC_FORCE_RELOCATION): Define.
949 (TC_FORCE_RELOCATION_SUB_SAME): Define.
950 (TC_VALIDATE_FIX_SUB): Define.
951 (avr_force_relocation): Declare.
952 (avr_validate_fix_sub): Declare.
953 (md_allow_local_subtract): Define.
954 (avr_allow_local_subtract): Declare.
956 2014-04-10 Andrew Bennett <andrew.bennett@imgtec.com>
958 * config/tc-mips.c (mips_cpu_info_table): Add P5600
960 * doc/c-mips.texi: Document p5600.
962 2014-04-09 Nick Clifton <nickc@redhat.com>
964 * config/tc-rl78.h (TC_CONS_FIX_NEW): Add RELOC parameter.
965 * config/tc-z80.h (TC_CONS_FIX_NEW): Discard RELOC parameter.
966 * config/tc-aarch64.h (TC_CONS_FIX_NEW): Discard RELOC parameter.
967 * read.c (emit_expr_fix): Mark the r parameter as potentially
970 2014-04-09 Alan Modra <amodra@gmail.com>
972 * config/tc-ppc.c (warn_476, last_insn, last_seg, last_subseg):
974 (md_longopts, md_parse_option, md_show_usage): Add --ppc476-workaround.
975 (ppc_elf_cons_fix_check): New function.
976 (md_assemble): Set last_insn, last_seg, last_subseg.
977 (ppc_byte, md_apply_fix): Handle warn_476.
978 * config/tc-ppc.h (TC_CONS_FIX_CHECK): Define.
979 (ppc_elf_cons_fix_check): Declare.
980 * read.c (cons_worker): Invoke TC_CONS_FIX_CHECK.
982 2014-04-09 Alan Modra <amodra@gmail.com>
984 * gas/config/tc-alpha.h (TC_CONS_FIX_NEW): Add RELOC parameter.
985 * gas/config/tc-arc.c (arc_cons_fix_new): Add reloc parameter.
986 * gas/config/tc-arc.h (arc_cons_fix_new): Update prototype.
987 (TC_CONS_FIX_NEW): Add RELOC parameter.
988 * gas/config/tc-arm.c (cons_fix_new_arm): Similarly
989 * gas/config/tc-arm.h (cons_fix_new_arm, TC_CONS_FIX_NEW): Similarly.
990 * gas/config/tc-cr16.c (cr16_cons_fix_new): Similarly.
991 * gas/config/tc-cr16.h (cr16_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
992 * gas/config/tc-crx.h (TC_CONS_FIX_NEW): Similarly.
993 * gas/config/tc-m32c.c (m32c_cons_fix_new): Similarly.
994 * gas/config/tc-m32c.h (m32c_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
995 * gas/config/tc-mn10300.c (mn10300_cons_fix_new): Similarly.
996 * gas/config/tc-mn10300.h (mn10300_cons_fix_new, TC_CONS_FIX_NEW):
998 * gas/config/tc-ns32k.c (cons_fix_new_ns32k): Similarly.
999 * gas/config/tc-ns32k.h (cons_fix_new_ns32k): Similarly.
1000 * gas/config/tc-pj.c (pj_cons_fix_new_pj): Similarly.
1001 * gas/config/tc-pj.h (pj_cons_fix_new_pj, TC_CONS_FIX_NEW): Similarly.
1002 * gas/config/tc-rx.c (rx_cons_fix_new): Similarly.
1003 * gas/config/tc-rx.h (rx_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
1004 * gas/config/tc-sh.c (sh_cons_fix_new): Similarly.
1005 * gas/config/tc-sh.h (sh_cons_fix_new, TC_CONS_FIX_NEW): Similarly.
1006 * gas/config/tc-tic54x.c (tic54x_cons_fix_new): Similarly.
1007 * gas/config/tc-tic54x.h (tic54x_cons_fix_new, TC_CONS_FIX_NEW):
1009 * gas/config/tc-tic6x.c (tic6x_cons_fix_new): Similarly.
1010 * gas/config/tc-tic6x.h (tic6x_cons_fix_new, TC_CONS_FIX_NEW):
1012 * gas/config/tc-arc.c (arc_parse_cons_expression): Return reloc.
1013 * gas/config/tc-arc.h (arc_parse_cons_expression): Update proto.
1014 * gas/config/tc-avr.c (exp_mod_data): Make global.
1015 (pexp_mod_data): Delete.
1016 (avr_parse_cons_expression): Return exp_mod_data pointer.
1017 (avr_cons_fix_new): Add exp_mod_data_t pointer param.
1018 (exp_mod_data_t): Move typedef..
1019 * gas/config/tc-avr.h: ..to here.
1020 (exp_mod_data): Declare.
1021 (TC_PARSE_CONS_RETURN_TYPE, TC_PARSE_CONS_RETURN_NONE): Define.
1022 (avr_parse_cons_expression, avr_cons_fix_new): Update prototype.
1023 (TC_CONS_FIX_NEW): Update.
1024 * gas/config/tc-hppa.c (hppa_field_selector): Delete static var.
1025 (cons_fix_new_hppa): Add hppa_field_selector param.
1026 (fix_new_hppa): Adjust.
1027 (parse_cons_expression_hppa): Return field selector.
1028 * gas/config/tc-hppa.h (parse_cons_expression_hppa): Update proto.
1029 (cons_fix_new_hppa): Likewise.
1030 (TC_PARSE_CONS_RETURN_TYPE, TC_PARSE_CONS_RETURN_NONE): Define.
1031 * gas/config/tc-i386.c (got_reloc): Delete static var.
1032 (x86_cons_fix_new): Add reloc param.
1033 (x86_cons): Return got reloc.
1034 * gas/config/tc-i386.h (x86_cons, x86_cons_fix_new): Update proto.
1035 (TC_CONS_FIX_NEW): Add RELOC param.
1036 * gas/config/tc-ia64.c (ia64_cons_fix_new): Add reloc param. Adjust
1038 * gas/config/tc-ia64.h (ia64_cons_fix_new): Update prototype.
1039 (TC_CONS_FIX_NEW): Add reloc param.
1040 * gas/config/tc-microblaze.c (parse_cons_expression_microblaze):
1042 (cons_fix_new_microblaze): Add reloc param.
1043 * gas/config/tc-microblaze.h: Formatting.
1044 (parse_cons_expression_microblaze): Update proto.
1045 (cons_fix_new_microblaze): Likewise.
1046 * gas/config/tc-nios2.c (nios2_tls_ldo_reloc): Delete static var.
1047 (nios2_cons): Return ldo reloc.
1048 (nios2_cons_fix_new): Delete.
1049 * gas/config/tc-nios2.h (nios2_cons): Update prototype.
1050 (nios2_cons_fix_new, TC_CONS_FIX_NEW): Delete.
1051 * gas/config/tc-ppc.c (md_pseudo_table): Remove quad, long, word,
1052 short. Make llong use cons.
1053 (ppc_elf_suffix): Return BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
1054 (ppc_elf_cons): Delete.
1055 (ppc_elf_parse_cons): New function.
1056 (ppc_elf_validate_fix): Don't check for BFD_RELOC_UNUSED.
1057 (md_assemble): Use BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
1058 * gas/config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): Define
1059 (ppc_elf_parse_cons): Declare.
1060 * gas/config/tc-sparc.c (sparc_cons_special_reloc): Delete static var.
1061 (sparc_cons): Return reloc specifier.
1062 (cons_fix_new_sparc): Add reloc specifier param.
1063 (sparc_cfi_emit_pcrel_expr): Use emit_expr_with_reloc.
1064 * gas/config/tc-sparc.h (TC_PARSE_CONS_RETURN_TYPE): Define.
1065 (TC_PARSE_CONS_RETURN_NONE): Define.
1066 (sparc_cons, cons_fix_new_sparc): Update prototype.
1067 * gas/config/tc-v850.c (hold_cons_reloc): Delete static var.
1068 (v850_reloc_prefix): Use BFD_RELOC_NONE rather than BFD_RELOC_UNUSED.
1069 (md_assemble): Likewise.
1070 (parse_cons_expression_v850): Return reloc.
1071 (cons_fix_new_v850): Add reloc parameter.
1072 * gas/config/tc-v850.h (parse_cons_expression_v850): Update proto.
1073 (cons_fix_new_v850): Likewise.
1074 * gas/config/tc-vax.c (vax_cons_special_reloc): Delete static var.
1075 (vax_cons): Return reloc.
1076 (vax_cons_fix_new): Add reloc parameter.
1077 * gas/config/tc-vax.h (vax_cons, vax_cons_fix_new): Update proto.
1078 * gas/config/tc-xstormy16.c (xstormy16_cons_fix_new): Add reloc param.
1079 * gas/config/tc-xstormy16.h (xstormy16_cons_fix_new): Update proto.
1080 * gas/dwarf2dbg.c (TC_PARSE_CONS_RETURN_NONE): Provide default.
1081 (emit_fixed_inc_line_addr): Adjust exmit_expr_fix calls.
1082 * gas/read.c (TC_PARSE_CONS_EXPRESSION): Return value.
1083 (do_parse_cons_expression): Adjust.
1084 (cons_worker): Pass return value from TC_PARSE_CONS_EXPRESSION
1085 to emit_expr_with_reloc.
1086 (emit_expr_with_reloc): New function handling reloc, mostly
1088 (emit_expr): ..here.
1089 (emit_expr_fix): Add reloc param. Adjust TC_CONS_FIX_NEW invocation.
1091 (parse_mri_cons): Convert to ISO.
1092 * gas/read.h (TC_PARSE_CONS_RETURN_TYPE): Define.
1093 (TC_PARSE_CONS_RETURN_NONE): Define.
1094 (emit_expr_with_reloc): Declare.
1095 (emit_expr_fix): Update prototype.
1096 * gas/write.c (write_object_file): Update TC_CONS_FIX_NEW invocation.
1098 2014-04-03 Ilya Tocar <ilya.tocar@intel.com>
1100 * config/tc-i386.c (cpu_arch): Add .se1.
1101 * doc/c-i386.texi: Document .se1/se1.
1103 2014-04-02 DJ Delorie <dj@redhat.com>
1105 * config/tc-rl78.c (md_apply_fix): Add overflow warnings for
1106 pc-relative branches.
1108 2014-04-02 Nick Clifton <nickc@redhat.com>
1111 * config/tc-arm.c (create_unwind_entry): Report an error if an
1112 attempt to recreate an unwind directive is encountered.
1114 2014-03-27 Nick Clifton <nickc@redhat.com>
1116 * config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to
1117 sprintf in order to avoid a compile time warning.
1119 2014-03-26 Nick Clifton <nickc@redhat.com>
1121 * config/tc-rl78.c (rl78_op): Issue an error message if a 16-bit
1122 relocation is used on an 8-bit operand or vice versa.
1123 (tc_gen_reloc): Use the RL78_16U relocation for RL78_CODE.
1124 (md_apply_fix): Add support for RL78_HI8, RL78_HI16 and RL78_LO16.
1126 2014-03-25 Nick Clifton <nickc@redhat.com>
1128 * config/obj-coff-seh.c (obj_coff_seh_code): New function -
1129 switches the current segment back to the code segment recorded
1130 when seh_proc was last invoked.
1131 * config/obj-coff-seh.h (SEH_CMDS): Add seh_code.
1133 2014-03-25 Alan Modra <amodra@gmail.com>
1135 * config/tc-ppc.c (ppc_is_toc_sym): Revert 2014-03-05.
1136 (md_assemble): Likewise. Warn.
1138 2014-03-21 David Weatherford <weath@cadence.com>
1139 Max Filippov <jcmvbkbc@gmail.com>
1141 * config/tc-xtensa.c (xtensa_check_frag_count)
1142 xtensa_create_trampoline_frag,
1143 xtensa_maybe_create_trampoline_frag, init_trampoline_frag,
1144 find_trampoline_seg, search_trampolines, get_best_trampoline,
1145 check_and_update_trampolines, add_jump_to_trampoline,
1146 dump_trampolines): New functions.
1147 (md_parse_option): Add cases for --[no-]trampolines options.
1148 (md_assemble, finish_vinsn, xtensa_end): Add call to
1149 xtensa_check_frag_count.
1150 (xg_assemble_vliw_tokens): Add call to
1151 xtensa_maybe_create_trampoline_frag.
1152 (xtensa_relax_frag): Relax fragments with RELAX_TRAMPOLINE state.
1153 (relax_frag_immed): Relax jump instructions that cannot reach its
1155 * config/tc-xtensa.h (xtensa_relax_statesE::RELAX_TRAMPOLINE): New
1157 * doc/as.texinfo: Document --[no-]trampolines command-line options.
1158 * doc/c-xtensa.texi: Document trampolines relaxation and command
1160 * frags.c (get_frag_count, clear_frag_count): New function.
1161 (frag_alloc): Increment totalfrags counter.
1162 * frags.h (get_frag_count, clear_frag_count): New function.
1164 2014-03-20 DJ Delorie <dj@redhat.com>
1166 * config/rl78-defs.h (RL78_RELAX_NONE, RL78_RELAX_BRANCH): Add.
1167 * config/rl78-parse.y (BC, BNC, BZ, BNZ, BH, BHZ, bt_bf): Call
1169 * config/tc-rl78.h (md_relax_frag): Define.
1170 (rl78_relax_frag): Declare.
1171 * config/tc-rl78.c (rl78_relax): Add.
1172 (md_assemble): Set up the variable frags also when relaxing.
1174 (rl78_opcode_type): New.
1175 (rl78_frag_fix_value): New.
1176 (md_estimate_size_before_relax): New-ish.
1177 (rl78_relax_frag): New.
1178 (md_convert_frag): New-ish.
1180 2014-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1182 * config/tc-mips.h (DIFF_EXPR_OK, CFI_DIFF_EXPR_OK): Define.
1183 * config/tc-mips.c (md_pcrel_from): Remove error message.
1184 (md_apply_fix): Convert PC-relative BFD_RELOC_32s to
1185 BFD_RELOC_32_PCREL. Report a specific error message for unhandled
1186 PC-relative expressions. Handle BFD_RELOC_8.
1188 2014-03-19 Jose E. Marchesi <jose.marchesi@oracle.com>
1190 * config/tc-sparc.c (hpriv_reg_table): Added entries for
1191 %hstick_offset and %hstick_enable.
1192 * doc/c-sparc.texi (Sparc-Regs): Document the %hstick_offset and
1193 %hstick_enable hyperprivileged registers.
1195 2014-03-19 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1196 Nick Clifton <nickc@redhat.com>
1198 * config/tc-arm.c (codecomposer_syntax): New flag that states whether the
1199 CCS syntax compatibility mode is on or off.
1200 (asmfunc_states): New enum to represent the asmfunc directive state.
1201 (asmfunc_state): New variable holding the asmfunc directive state.
1202 (comment_chars): Rename to arm_comment_chars.
1203 (line_separator_chars): Rename to arm_line_separator_chars.
1204 (s_ccs_ref): New function that handles the .ref directive.
1205 (asmfunc_debug): New function.
1206 (s_ccs_asmfunc): New function that handles the .asmfunc directive.
1207 (s_ccs_endasmfunc): New function that handles the .endasmfunc directive.
1208 (s_ccs_def): New function that handles the .def directive.
1209 (tc_start_label_without_colon): New function.
1210 (md_pseudo_table): Added new CCS directives.
1211 (arm_ccs_mode): New function that handles the -mccs command line option.
1212 (arm_long_opts): Added new -mccs command line option.
1213 * config/tc-arm.h (LABELS_WITHOUT_COLONS): New macro.
1214 (TC_START_LABEL_WITHOUT_COLON): New macro.
1215 (tc_start_label_without_colon): Added extern function declaration.
1216 (tc_comment_chars): Define.
1217 (tc_line_separator_chars): Define.
1218 * app.c (do_scrub_begin): Use tc_line_separator_chars, if defined.
1219 * read.c (read_begin): Likewise.
1220 * doc/as.texinfo: Add documentation for the -mccs command line
1222 * doc/c-arm.texi: Likewise.
1223 * doc/internals.texi: Document tc_line_separator_chars.
1224 * NEWS: Mention the new feature.
1226 2014-03-18 Jiong Wang <jiong.wang@arm.com>
1228 * config/tc-aarch64.c (aarch64_opts): Add new option
1229 "mno-verbose-error".
1230 (verbose_error_p): Initialize to 1.
1231 * doc/c-aarch64.texi (AArch64 Options): Document -mverbose-error
1232 and -mno-verbose-error.
1234 2014-03-17 Nick Clifton <nickc@redhat.com>
1237 * config/tc-arm.c (tc_arm_regname_to_dw2regnum): Parse VFP
1240 2014-03-13 Richard Earnshaw <rearnsha@arm.com>
1241 Jiong Wang <Jiong.Wang@arm.com>
1243 * doc/c-aarch64.texi: Clean up some formatting issues.
1244 (AArch64 Options): Document -mcpu and -march.
1245 (AArch64 Extensions): New node.
1247 2014-03-13 Tristan Gingold <gingold@adacore.com>
1249 * config/tc-i386.c (use_big_obj): Declare.
1250 (OPTION_MBIG_OBJ): Define.
1251 (md_longopts): Add -mbig-obj option.
1252 (md_parse_option): Handle it.
1253 (md_show_usage): Display help for this option.
1254 (i386_target_format): Use bigobj for x86-64 if -mbig-obj.
1255 * doc/c-i386.texi: Document the option.
1257 2014-03-12 Nick Clifton <nickc@redhat.com>
1260 * config/tc-aarch64.c (literal_expression): New structure.
1261 (literal_pool): Replace exp array with literal_expression array.
1262 (add_to_lit_pool): When adding a bignum cache the big value.
1263 (s_ltorg): When emitting a bignum initialise the global bignum
1264 array from the cached value.
1266 2014-03-12 Alan Modra <amodra@gmail.com>
1268 * Makefile.in: Regenerate.
1269 * config.in: Regenerate.
1270 * doc/Makefile.in: Regenerate.
1272 2014-03-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1273 Vishnu KS <Vishnu.k_s@atmel.com>
1274 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1275 Soundararajan <Soundararajan.dhakshinamoorthy@atmel.com>
1277 * gas/tc-avr.c: Add new devices
1278 avr25: ata5272, attiny828
1279 avr35: ata5505, attiny1634
1280 avr4: atmega8a, ata6285, ata6286, atmega48pa
1281 avr5: at90pwm161, ata5790, ata5795, atmega164pa, atmega165pa,
1282 atmega168pa, atmega32a, atmega64rfr2, atmega644rfr2, atmega64a,
1284 avr51: atmega128a, atmega1284
1285 avrxmega2: atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4,
1286 atxmega32e5, atxmega16e5, atxmega8e5
1287 avrxmega4: atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
1288 atxmega64c3, atxmega64d4
1289 avrxmega6: atxmega128a3u, atxmega128b3, atxmega128c3,
1290 atxmega128d4, atxmega192a3u, atxmega192c3, atxmega256a3u,
1291 atxmega256c3, atxmega384c3, atxmega384d3
1292 avrxmega7: atxmega128a4u
1293 * doc/c-avr.texi: Ditto.
1295 2014-03-05 Alan Modra <amodra@gmail.com>
1297 Update copyright years.
1299 2014-03-05 Alan Modra <amodra@gmail.com>
1301 * config/tc-ppc.c (ppc_elf_suffix): Support @localentry.
1302 (md_apply_fix): Support R_PPC64_ADDR64_LOCAL.
1304 2014-03-05 Alan Modra <amodra@gmail.com>
1306 * config/tc-ppc.c (md_assemble): Move code adjusting reloc types
1307 later. Merge absolute and relative branch reloc selection.
1308 Generate 16-bit relocs for most 16-bit insn fields given a
1309 non-constant expression.
1311 2014-03-05 Alan Modra <amodra@gmail.com>
1313 * config/tc-ppc.c (ppc_is_toc_sym): Remove OBJ_ELF support.
1314 (md_assemble): Don't call ppc_is_toc_sym for ELF.
1316 2014-03-04 Heiher <r@hev.cc>
1318 * config/tc-mips.c (mips_cpu_info_table): Use ISA_MIPS64R2 for
1321 2014-03-03 Nick Clifton <nickc@redhat.com>
1323 * config/msp430/msp430.c: Replace known mcu array with known
1324 msp430 ISA mcu name array.
1325 Accept any name for -mmcu option.
1326 Add -mz option to warn about missing NOP following an interrupt
1328 (check_for_nop): New.
1329 (msp430_operands): Emit a warning, if requested, when an interrupt
1330 changing instruction is not followed by a NOP.
1331 * doc/c-msp430.c: Document -mz option.
1333 2014-03-03 Alan Modra <amodra@gmail.com>
1335 * config/bfin-lex-wrapper.c: Correct copyright date.
1336 * config/obj-fdpicelf.c: Likewise.
1337 * config/obj-fdpicelf.h: Likewise.
1338 * config/tc-frv.c: Correct copyright punctuation.
1339 * config/tc-ip2k.c: Likewise.
1340 * config/tc-iq2000.c: Likewise.
1341 * config/tc-mep.c: Likewise.
1342 * config/tc-tic4x.c: Likewise.
1343 * config/tc-tic4x.h: Likewise.
1345 2014-03-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1347 * config/tc-avr.c: Remove atxmega16x1.
1349 2014-02-28 Alan Modra <amodra@gmail.com>
1351 * dwarf2dbg.c (out_debug_line): Correct .debug_line header_length
1352 field for 64-bit dwarf.
1354 2014-02-21 Ilya Tocar <ilya.tocar@intel.com>
1356 * config/tc-i386.c (cpu_arch): Add .prefetchwt1.
1357 * doc/c-i386.texi: Document .prefetchwt1/prefetchwt1.
1359 2014-02-12 Ilya Tocar <ilya.tocar@intel.com>
1361 * config/tc-i386.c (cpu_arch): Add .clflushopt, .xsavec, .xsaves.
1362 * doc/c-i386.texi: Document .xsavec/xsavec/.xsaves/xsaves/
1363 clflushopt/.clfushopt.
1365 2014-02-10 Alan Modra <amodra@gmail.com>
1367 * po/POTFILES.in: Regenerate.
1368 * po/gas.pot: Regenerate.
1370 2014-02-03 Sandra Loosemore <sandra@codesourcery.com>
1372 * config/tc-nios2.c (md_apply_fix): Test for new relocs.
1373 (nios2_special_reloc): Add %call_lo, %call_hiadj, %got_lo,
1374 %got_hiadj relocation operators. Sort table and add comment
1375 to explain ordering.
1376 (nios2_fix_adjustable): Test for new relocs.
1377 * doc/c-nios2.texi (Nios II Relocations): Document new relocation
1380 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
1382 * config/tc-nios2.c (md_apply_fix): Handle BFD_RELOC_NIOS2_CALL26_NOAT.
1383 (nios2_assemble_args_m): Likewise.
1384 (md_assemble): Likewise.
1386 2014-01-24 DJ Delorie <dj@redhat.com>
1388 * config/tc-msp430.c (msp430_section): Always flag data sections,
1390 (msp430_frob_section): New. Make sure all sections are noticed if
1392 (msp430_lcomm): New. Flag bss if .lcomm is seen.
1393 (msp430_comm): New. Likewise.
1394 (md_pseudo_table): Add them.
1395 * config/tc-msp430.h (msp430_frob_section): Declare.
1396 (tc_frob_section): Define.
1398 2014-01-23 Nick Clifton <nickc@redhat.com>
1400 * config/tc-msp430.c (show_mcu_list): Delete.
1401 (md_parse_option): Accept any MCU name. Accept several more
1402 variants for the -mcpu option.
1403 (md_show_usage): Do not call show_mcu_list.
1405 2014-01-22 DJ Delorie <dj@redhat.com>
1407 * config/tc-msp430.c (msp430_refsym): New: ".refsym <symbol>"
1408 * doc/c-msp430.texi (MSP430 Directives): Document it.
1410 2014-01-22 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1412 * config/tc-i386.c (check_VecOperands): Remove regzmm from AVX2
1415 2014-01-22 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1418 * config/tc-i386.c (check_VecOperands): Add check for invalid
1419 register set in AVX512 gathers.
1421 2014-01-22 Alan Modra <amodra@gmail.com>
1423 * config/tc-tic4x.c (md_shortopts): s/CONST/const/.
1425 2014-01-21 DJ Delorie <dj@redhat.com>
1427 * config/tc-rl78.c (require_end_of_expr): New.
1428 (md_operand): Call it.
1429 (rl78_cons_fix_new): Mark LO16, HI16, ahd HI8 internal relocations
1432 2014-01-17 Will Newton <will.newton@linaro.org>
1434 * config/tc-arm.c (do_vfp_nsyn_cvt_fpv8): Set OP to 1
1435 for the s32.f64 flavours of VCVT.
1437 2014-01-14 Nick Clifton <nickc@redhat.com>
1440 * config/tc-z80.c (wrong_match): Provide format string to
1442 (parse_exp_not_indexed): Delete unused variable dummy.
1443 (emit_byte): Delete unused variable fixp.
1445 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
1447 * config/tc-i386.c (regbnd): Removed.
1448 (vec_disp8): Likewise.
1450 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
1452 * as.c (parse_args): Update copyright year to 2014.
1454 2014-01-07 Tom Tromey <tromey@redhat.com>
1456 * config/tc-tic30.c (debug): Avoid old VA_* compatibility
1459 2014-01-07 Tom Tromey <tromey@redhat.com>
1461 * config/tc-microblaze.h (parse_cons_expression_microblaze): Don't
1464 2014-01-07 Tom Tromey <tromey@redhat.com>
1466 * config/tc-xc16x.h: Don't use ANSI_PROTOTYPES.
1468 2013-01-07 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1470 * config/tc-aarch64.c (aarch64_cpus): Add entry for "xgene-1"
1472 For older changes see ChangeLog-2013
1474 Copyright (C) 2014 Free Software Foundation, Inc.
1476 Copying and distribution of this file, with or without modification,
1477 are permitted in any medium without royalty provided the copyright
1478 notice and this notice are preserved.
1484 version-control: never