1 2012-09-17 Yufeng Zhang <yufeng.zhang@arm.com>
3 * config/tc-aarch64.c (aarch64_archs): Rename 'armv8' to 'armv8-a'.
5 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
7 * configure: Regenerate.
9 2012-09-13 Anthony Green <green@moxielogic.com>
11 * config/tc-moxie.h (DEFAULT_TARGET_FORMAT): Define.
12 (TARGET_FORMAT): Don't hard-code endian-ness.
13 * config/tc-moxie.c (target_big_endian, moxie_target_format):
15 (md_assemble): Handle bi-endian encodings.
16 (md_shortopts, md_parse_option, md_show_usage, md_apply_fix)
17 (md_number_to_chars, md_chars_to_number): Update for bi-endian
20 2012-09-12 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23 (reloc_table): Add reloc to table entry.
24 (parse_address_main): Add support for #:<reloc_op>:<symbol>.
25 (parse_operands): Check for unused reloc.
26 (md_apply_fix): New case for reloc.
27 (aarch64_force_relocation): Likewise.
29 2012-09-11 Georg-Johann Lay <avr@gjlay.de>
32 * config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
33 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
35 2012-09-11 Alan Modra <amodra@gmail.com>
37 * Makefile.am (bootstrap): Add $EXEEXT to dependency.
38 * Makefile.in: Regenerate.
40 2012-09-10 Matthias Klose <doko@ubuntu.com>
42 * config.in: Disable sanity check for kfreebsd.
44 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
46 * configure: Regenerated.
48 2012-09-07 Anthony Green <green@moxielogic.com>
50 * config/tc-moxie.c (md_pcrel_from): Branches are now relative
51 to the address following the branch instruction.
53 2012-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
55 * config/tc-s390.c (set_highgprs_p): New variable.
56 (s390_machinemode): New function.
57 (md_pseudo_table): Add new pseudo command machinemode.
58 (md_parse_option): Set set_highgprs_p to TRUE if -mzarch was
59 specified on command line.
60 (s390_elf_final_processing): Set the highgprs flag in the ELF
61 header depending on set_highgprs_p.
63 * doc/c-s390.texi: Document new pseudo machinemode.
65 2012-09-05 James Lemke <jwlemke@codesourcery.com>
67 * doc/c-ppc.texi: Document -mvle.
68 * doc/as.texinfo: Likewise.
70 2012-09-04 Sergey A. Guriev <sergey.a.guriev@intel.com>
72 * config/tc-ia64.c (reg_symbol): Add a new register.
73 (indirect_reg): Ditto.
74 (pseudo_func): Add new symbolic constants.
75 (operand_match): Add new operand types recognition.
76 (operand_insn): Add new register recognition.
77 (md_begin): Add new register definition.
78 (specify_resource): Add new register recognition.
80 2012-09-01 Hans-Peter Nilsson <hp@bitrange.com>
83 * config/tc-mmix.h (tc_frob_file_before_fix): Renumber sections
84 after call to mmix_frob_file.
86 2012-08-31 Maciej W. Rozycki <macro@codesourcery.com>
88 * doc/c-mips.texi (MIPS Opts): Correct a typo in the -mips5
91 2012-08-27 Walter Lee <walt@tilera.com>
93 * tc-tilegx.c (O_hw0_plt): Define operator.
95 (O_hw1_last_plt): Ditto.
96 (O_hw2_last_plt): Ditto.
97 (md_begin): Handle new operators.
98 (emit_tilegx_instruction): Ditto.
99 (md_apply_fix): Ditto.
100 * doc/c-tilegx.texi: Document new operators.
102 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
104 * config/tc-arm.c (ARM_ENC_TAB): Add sha1h and sha2op entries.
105 (do_sha1h): New function.
106 (do_sha1su1): Likewise.
107 (do_sha256su0): Likewise.
108 (insns): Add 2 operand SHA instructions.
110 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
112 * config/tc-arm.c (NEON_ENC_TAB): Add sha3op entry.
113 (do_crypto_3op_1): New function.
114 (do_sha1c): Likewise.
115 (do_sha1p): Likewise.
116 (do_sha1m): Likewise.
117 (do_sha1su0): Likewise.
118 (do_sha256h): Likewise.
119 (do_sha256h2): Likewise.
120 (do_sha256su1): Likewise.
121 (insns): Add SHA 3 operand instructions.
123 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
125 * config/tc-arm.c (neon_type_mask): Add P64 type.
126 (type_chk_of_el_type): Handle P64 type.
127 (el_type_of_type_chk): Likewise.
128 (do_neon_vmull): Handle VMULL.P64.
130 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
132 * config/tc-arm.c (NEON_ENC_TAB): Add aes entry.
133 (neon_type_mask): Add N_UNT.
134 (neon_check_type): Don't always decay typed to untyped sizes.
135 (do_crypto_2op_1): New function.
138 (do_aesmc.8): Likewise.
139 (do_aesimc.8): Likewise.
140 (insns): Add AES instructions.
142 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
144 * config/tc-arm.c (el_type_type_check): Add handling for 16-bit
145 floating point types.
146 (do_neon_cvttb_2): New function.
147 (do_neon_cvttb_1): Likewise.
148 (do_neon_cvtb): Refactor to use do_neon_cvttb_1.
149 (do_neon_cvtt): Likewise.
151 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
153 * config/tc-arm.c (NEON_ENC_TAB): Add vrint entries.
154 (neon_cvt_mode): Add neon_cvt_mode_r.
155 (do_vrint_1): New function.
156 (do_vrint_x): Likewise.
157 (do_vrint_z): Likewise.
158 (do_vrint_r): Likewise.
159 (do_vrint_a): Likewise.
160 (do_vrint_n): Likewise.
161 (do_vrint_p): Likewise.
162 (do_vrint_m): Likewise.
163 (insns): Add VRINT instructions.
165 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
167 * config/tc-arm.c (NEON_ENC_TAB): Add vcvta entry.
168 (neon_cvt_mode): New enumeration.
169 (do_vfp_nsyn_cvt_fpv8): New function.
170 (do_neon_cvt_1): Add support for new conversions.
171 (do_neon_cvtr): Use neon_cvt_mode enumerator.
172 (do_neon_cvt): Likewise.
173 (do_neon_cvta): New function.
174 (do_neon_cvtn): Likewise.
175 (do_neon_cvtp): Likewise.
176 (do_neon_cvtm): Likewise.
177 (insns): Add new VCVT instructions.
179 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm>
181 * config/tc-arm.c (CVT_FLAVOUR_VAR): New define.
182 (CVT_VAR): New helper define.
183 (neon_cvt_flavour): New enumeration, function renamed...
184 (get_neon_cvt_flavour): ...to this.
185 (do_vfp_nsyn_cvt): Update to use new neon_cvt_flavour.
186 (do_vfp_nsyn_cvtz): Likewise.
187 (do_neon_cvt_1): Likewise.
189 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
191 * config/tc-arm.c (NEON_ENC_TAB): Add vmaxnm, vminnm entries.
192 (vfp_or_neon_is_neon_bits): Add NEON_CHECK_ARCH8 enumerator.
193 (vfp_or_neon_is_neon): Add check for SIMD for ARMv8.
194 (do_maxnm): New function.
195 (insns): Add vmaxnm, vminnm entries.
197 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
199 * config/tc-arm.c (NEON_ENC_TAB): Add entries for VSEL.
200 (NEON_ENC_FPV8_): New define.
201 (do_vfp_nsyn_fpv8): New function.
203 (insns): Add VSEL instructions.
205 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
207 * config/tc-arm.c (do_rm_rn): New function.
208 (do_strlex): Likewise.
209 (do_t_strlex): Likewise.
210 (insns): Add support for LDRA/STRL instructions.
212 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
214 * config/tc-arm.c (do_t_bkpt_hlt1): New function.
215 (do_t_hlt): New function.
216 (do_t_bkpt): Use do_t_bkpt_hlt1.
219 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
221 * config/tc-arm.c (insns): Add DCPS instruction.
223 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
225 * config/tc-arm.c (T16_32_TAB): Add _sevl.
228 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
230 * config/tc-arm.c (asm_barrier_opt): Add arch field.
231 (mark_feature_used): New function.
232 (parse_barrier): Check specified option is valid for the
233 specified architecture.
234 (UL_BARRIER): New macro.
235 (barrier_opt_names): Update for new barrier options.
237 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
239 * config/tc-arm.c (do_setend): Warn on deprecated SETEND.
240 (do_t_setend): Likewise.
242 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
244 * config/tc-arm.c (do_t_it): Fully initialise now_it.
245 (new_automatic_it_block): Likewise.
246 (handle_it_block): Record whether current instruction is
247 conditionally executed.
248 * config/tc-arm.c (depr_insn_mask): New structure.
249 (depr_it_insns): New variable.
250 (it_fsm_post_encode): Warn on deprecated uses.
251 * config/tc-arm.h (current_it): Add new fields.
253 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
255 * config/tc-arm.c (deprecated_coproc_regs_s): New structure.
256 (deprecated_coproc_regs): New variable.
257 (deprecated_coproc_reg_count): Likewise.
258 (do_co_reg): Error on obsolete & warn on deprecated registers.
260 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
262 * config/tc-arm.c (check_obsolete): New function.
263 (do_rd_rm_rn): Check swp{b} for obsoletion.
265 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
267 * config/tc-arm.h (arm_ext_v8): New variable.
268 (fpu_vfp_ext_armv8): Likewise.
269 (fpu_neon_ext_armv8): Likewise.
270 (fpu_crypto_ext_armv8): Likewise.
271 (arm_archs): Add armv8-a.
272 (arm_extensions): Add crypto, fp, and simd.
273 (arm_fpus): Add fp-armv8, neon-fp-armv8, crypto-neon-fp-armv8.
274 (cpu_arch_ver): Add support for ARMv8.
275 (aeabi_set_public_sttributes): Likewise.
276 * doc/c-arm.texi (ARM Options): Document new architecture and
277 extension options for ARMv8.
279 2012-08-20 H.J. Lu <hongjiu.lu@intel.com>
281 * doc/as.texinfo: Replace --n32 with --x32.
283 2012-08-17 Nagajyothi Eggone <nagajyothi.eggone@amd.com>
285 * config/tc-i386.c (cpu_arch): Add CPU_BTVER1_FLAGS and
287 (i386_align_code): Add case for PROCESSOR_BT.
289 * config/tc-i386.h (enum processor_type): Add PROCESSOR_BT.
291 * doc/c-i386.texi: Add -march={btver1, btver2} options.
293 2012-08-14 H.J. Lu <hongjiu.lu@intel.com>
296 * config/tc-i386.c (i386_att_operand): Terminate register name
297 when reporting bad register.
299 2012-08-14 Hans-Peter Nilsson <hp@bitrange.com>
301 * config/tc-mmix.c (loc_asserts): New variable.
302 (mmix_greg_internal): Handle expressions not determinable at first
304 (s_loc): Ditto. Record expressions where the section isn't
305 determinable at the first pass, and assume they don't refer to
307 (mmix_md_end): Verify that recorded LOC expressions weren't
308 to other sections, else emit error messages.
310 2012-08-13 Ian Bolton <ian.bolton@arm.com>
311 Laurent Desnogues <laurent.desnogues@arm.com>
312 Jim MacArthur <jim.macarthur@arm.com>
313 Marcus Shawcroft <marcus.shawcroft@arm.com>
314 Nigel Stephens <nigel.stephens@arm.com>
315 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
316 Richard Earnshaw <rearnsha@arm.com>
317 Sofiane Naci <sofiane.naci@arm.com>
318 Tejas Belagod <tejas.belagod@arm.com>
319 Yufeng Zhang <yufeng.zhang@arm.com>
321 * Makefile.am: Add AArch64.
322 * Makefile.in: Regenerate.
323 * config/tc-aarch64.c: New file.
324 * config/tc-aarch64.h: New file.
325 * configure.tgt: Add AArch64.
326 * doc/Makefile.am: Add AArch64.
327 * doc/Makefile.in: Regenerate.
328 * doc/all.texi: Add AArch64.
329 * doc/as.texinfo: Add AArch64.
330 * doc/c-aarch64.texi: New file.
331 * po/POTFILES.in: Regenerate.
332 * NEWS: Mention the new support.
334 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
336 * config/tc-mips.c (NO_ISA_COP, COP_INSN): Remove macros.
337 (is_opcode_valid): Remove coprocessor instruction exclusions.
338 Replace OPCODE_IS_MEMBER with opcode_is_member.
339 (is_opcode_valid_16): Replace OPCODE_IS_MEMBER with
341 (macro): Remove coprocessor instruction exclusions.
343 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
345 * config/tc-mips.c (s_cpload, s_cpsetup): Fail if MIPS16 mode.
346 (s_cplocal, s_cprestore, s_cpreturn): Likewise.
348 2012-08-07 Jan Beulich <jbeulich@suse.com>
350 * config/tc-i386-intel.c (build_modrm_byte): Split determining
351 default segment from figuring out encoding. Honor RegRex for
354 2012-08-07 Jan Beulich <jbeulich@suse.com>
356 * config/tc-i386.c (set_check): Renamed from set_sse_check.
357 Generalize to also handle operand checking option.
358 (enum i386_error): New enumerator 'invalid_vector_register_set'.
359 (match_template): Handle it.
360 (enum check_kind): Give it a tag. Drop sse_ prefixes from
362 (operand_check): New.
363 (md_pseudo_table): Add "operand_check".
364 (check_VecOperands): Don't special case RIP addressing. Check
365 that vSIB operands use distinct vector registers unless no
366 checking was requested.
367 (OPTION_MOPERAND_CHECK): New.
368 (md_parse_option): Handle it.
369 (OPTION_MAVXSCALAR, OPTION_X32): Adjust.
370 (md_longopts): Add "moperand-check".
371 (md_show_usage): Add help text for it.
373 2012-08-07 Jan Beulich <jbeulich@suse.com>
375 * config/tc-i386.c (register_number): New function.
376 (build_vex_prefix, process_immext, process_operands,
377 build_modrm_byte, i386_index_check): Use it.
379 2012-08-07 Daniel Green <venix1@gmail.com>
381 * config/tc-i386.c (lex_got): Provide implementation for PE
384 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
386 * config/tc-mips.c (append_insn): Also handle moving delay-slot
387 instruction across frags for fixed branches.
389 2012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
391 * frags.c (frag_grow): Never shrink the obstack size requested
394 2012-08-02 Sean Keys <skeys@ipdatasys.com>
396 * config/tc-m68hc11.c (s_m68hc11_parse_pseudo_instruction):
397 New function to parse pseudo ops that are unreleated to
400 2012-08-01 Catherine Moore <clm@codesourcery.com>
401 Sandra Loosemore <sandra@codesourcery.com>
403 * config/mips/tc-mips.c (mips_cpu_info): Add the 34kn.
404 * doc/c-mips.texi (MIPS Opts): Document it.
406 2012-08-01 James Lemke <jwlemke@codesourcery.com>
408 * dwarf2dbg.c (out_set_addr): Allow for non-constant value of
409 DWARF2_LINE_MIN_INSN_LENGTH
410 * config/tc-ppc.c (ppc_dwarf2_line_min_insn_length): Declare
412 (md_apply_fix): Branch addr can be a multiple of 2 or 4.
413 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Now a
416 2012-07-31 Maciej W. Rozycki <macro@codesourcery.com>
417 Chao-Ying Fu <fu@mips.com>
418 Catherine Moore <clm@codesourcery.com>
420 * config/tc-mips.c (ISA_SUPPORTS_DSP_ASE): Also set if microMIPS
422 (ISA_SUPPORTS_DSPR2_ASE): Likewise.
423 (macro_build) <'2'>: Handle microMIPS.
424 (macro) <M_BALIGN>: Update error handling.
425 (validate_micromips_insn) <'2', '3', '4', '5', '6'>: New cases.
426 <'7', '8', '0', '@', '^'>: Likewise.
427 (mips_ip) <'2', '3', '4', '5', '6', '7', '8'>: Handle microMIPS.
428 <'9'>: Fix formatting.
429 <'0', '@'>: Handle microMIPS.
432 2012-07-31 Jan Beulich <jbeulich@suse.com>
434 * config/tc-i386.c (match_template): Adjust error message
437 2012-07-31 Jan Beulich <jbeulich@suse.com>
439 * config/tc-i386.c (check_byte_reg): Check for I/O port
440 register earlier, and just once. Drop diagnostic that got
441 issued only for some registers.
443 2012-07-31 Jan Beulich <jbeulich@suse.com>
445 * config/tc-i386.c (match_template): New local variable
446 'specific_error'. Set it from i.error after failed
447 check_VecOperands or VEX_check_operands. Use it if set in
448 preference to i.error when actually issuing disagnostic.
450 2012-07-30 Nick Clifton <nickc@redhat.com>
452 * po/gas.pot: Updated template.
453 * po/es.po: Updated Spanish translation.
454 * po/fi.po: Updated Finnish translation.
455 * po/fr.po: Updated French translation.
457 2012-07-27 Mike Frysinger <vapier@gentoo.org>
459 * configure.in (BFD_VERSION): Run bfd/configure --version and
460 parse the output of that.
461 * configure: Regenerate.
463 2012-07-27 Tristan Gingold <gingold@adacore.com>
465 * NEWS: Add marker for 2.23.
467 2012-07-27 James Murray <jsm@jsm-net.demon.co.uk>
469 * config/tc-m68hc11.c: Replace binary with hex for cygwin.
471 2012-07-26 Segher Boessenkool <segher@kernel.crashing.org>
473 * listing.c (struct list_message): New.
474 (struct list_info_struct): Delete "message". Add "messages"
476 (listing_message): Adjust.
477 (listing_newline): Adjust.
478 (print_lines): Adjust.
480 2012-07-24 Jan Beulich <jbeulich@suse.com>
482 * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
483 xmm/ymm index register being specified first as well as esp/rsp
484 base register being specified last in a memory operand.
486 2012-07-24 Jan Beulich <jbeulich@suse.com>
488 * config/tc-i386-intel.c (i386_intel_simplify_register):
489 Replace literal 4 by corresponding ESP_REG_NUM.
491 2012-07-24 Sandra Loosemore <sandra@codesourcery.com>
492 Jie Zhang <jzhang918@gmail.com>
494 * config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
495 if offset is negative.
497 2012-07-16 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
499 * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
500 * doc/c-i386.texi: Document the new directives.
502 2012-07-05 Sean Keys <skeys@ipdatasys.com>
504 * config/tc-xgate.c: Revised assembler so that operands
505 are collected before the addressing mode is determined.
507 2012-07-02 Nick Clifton <nickc@redhat.com>
509 * write.c (fixup_segment): Only perform the subtraction of an
510 fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
512 * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
514 2012-06-30 Alan Modra <amodra@gmail.com>
517 * config/obj-elf.c (obj_elf_weak): Don't set local.
519 2012-06-30 Johan Olmutz Nielsen <jnielsen@ddci.com>
521 * frags.h (frag_offset_fixed_p): Update prototype.
522 * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
523 * expr.c (expr, resolve_expression): Likewise for frag_off var.
525 2012-06-29 Nick Clifton <nickc@redhat.com>
528 * config/tc-arm.c (parse_operands): Initialise val.
530 2012-06-28 Nick Clifton <nickc@redhat.com>
533 * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
534 message if literal pool addressing is used.
536 2012-06-28 Nick Clifton <nickc@redhat.com>
538 * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
540 (dwarf2_gen_line_info): Generate real, local, labels for line
542 (dwarf2dbg_convert_frag): Do not finalize the computation of the
543 frag's symbol value when linker relaxation is enabled.
544 (ADDR_DELTA_LIMIT): Define.
545 (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
546 (emit_fixed_inc_line_addr): Likewise.
547 * write.c (fixup_segment): If the subtraction of two symbols
548 cannot be resolved but is valid, then prevent bogus range warnings
549 by pre-biasing add_number.
550 * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
552 2012-06-28 Sean Keys <skeys@ipdatasys.com>
554 * config/tc-xgate.h: Defined tc_frob_symbol.
555 * config/tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
556 symbols as being XGATE by setting st_target_internal value.
558 2012-06-22 Roland McGrath <mcgrathr@google.com>
560 * NEWS: Mention 'rep ret' too.
562 * config/tc-i386.c (parse_insn): Don't complain about REP prefix
563 when the template has opcode_modifier.repprefixok set.
564 * NEWS: Mention the change.
566 2012-06-18 Iain Sandoe <iain@codesourcery.com>
568 * configure.in: Check DECLS for free, getenv, malloc, realloc,
569 * configure: Regenerate.
570 * config.in: Likewise.
572 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
574 * config/tc-i386.c (x86_address_bytes): New.
575 * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
576 (x86_address_bytes): Likewise.
578 2012-06-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
581 * config/tc-arm.c (do_t_mrs): Do not require an m-profile
582 architecure when assembling for all archiectures.
583 (do_t_msr): Likewise.
585 2012-06-11 Georg-Johann Lay <avr@gjlay.de>
588 * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
591 2012-06-09 H.J. Lu <hongjiu.lu@intel.com>
593 * input-scrub.c (input_scrub_include_sb): Use sb_build to
594 allocate sufficient space for from_sb. Use sb_terminate to
596 * read.c (read_a_source_file): Use sb_build to allocate
597 sufficient space and replace sb_add_string with sb_add_buffer.
599 (input_scrub_insert_line): Likewise.
600 (s_irp): Use sb_build to allocate sufficient space.
601 (do_repeat): Use sb_build to allocate sufficient space
603 * sb.c (sb_build): Remove static.
604 * sb.h (sb_build): New prototype.
606 2012-06-09 Alan Modra <amodra@gmail.com>
608 * sb.c: Include limits.h.
610 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
611 (sb_new): Use INIT_ALLOC.
612 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
613 (sb_terminate): Don't use sb_add_char.
615 2012-06-07 Alan Modra <amodra@gmail.com>
618 * sb.h (sb_max_power_two): Delete.
619 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
620 (sb_element): Delete.
621 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
623 * sb.c (string_count, free_list): Delete.
624 (sb_build, sb_kill, sb_check): Rewrite.
625 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
626 sb_skip_white, sb_skip_comma): Replace assorted int params,
627 vars and return types with size_t.
628 * input-scrub.c: Likewise.
633 * input-file.h: Likewise.
634 * input-file.c: Likewise.
636 * app.c: ..or ptrdiff_t.
637 * input-file.c (input_file_get): Use ferror.
638 (input_file_give_next_buffer): Use input_file_get.
640 2012-05-31 Sean Keys <skeys@ipdatasys.com>
642 * config/tc-xgate.c (md_begin): Refactored code.
644 2012-05-29 Roland McGrath <mcgrathr@google.com>
646 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
647 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
648 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
651 2012-05-28 Nick Clifton <nickc@redhat.com>
653 * read.c (read_symbol_name): New function. Reads a symbol names.
654 Allows escape codes in names.
655 (s_comm_internal): Use read_symbol_name.
656 (s_globl, s_lsym, s_set, s_weakref): Likewise.
657 * doc/as.texinfo: Document support for multibyte characters in
660 2012-05-21 Mike Frysinger <vapier@gentoo.org>
662 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
665 2012-05-19 Alan Modra <amodra@gmail.com>
667 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
668 targets when checking for "comdat".
670 2012-05-19 Alan Modra <amodra@gmail.com>
672 * config/tc-dlx.c (s_proc): Don't use asprintf.
674 2012-05-18 Alan Modra <amodra@gmail.com>
676 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
679 2012-05-18 James Lemke <jwlemke@codesourcery.com>
680 Alan Modra <amodra@gmail.com>
682 * config/tc-ppc.c: Don't capitalise error and warning messages.
683 (md_parse_option): Add checks for -a32 -mvle.
685 2012-05-18 Alan Modra <amodra@gmail.com>
687 * config/obj-evax.c: Include as.h first.
689 2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
691 * aclocal.m4: Regenerate.
692 * configure: Regenerate.
693 * Makefile.in: Regenerate.
695 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
696 Nick Clifton <nickc@redhat.com>
699 * configure.in: Add check that sysdep.h has been included before
700 any system header files.
701 * configure: Regenerate.
702 * config.in: Regenerate.
703 * aclocal.m4: Regenerate.
704 * Makefile.am: Use wrappers around C files generated by flex.
705 * Makefile.in: Regenerate.
706 * doc/Makefile.in: Regenerate.
707 * itbl-lex-wrapper.c: New file.
708 * config/bfin-lex-wrapper.c: New file.
709 * cgen.c: Include as.h before setjmp.h.
710 * config/tc-dlx.c: Include as.h before any other header.
711 * config/tc-h8300.c: Likewise.
712 * config/tc-lm32.c: Likewise.
713 * config/tc-mep.c: Likewise.
714 * config/tc-microblaze.c: Likewise.
715 * config/tc-mmix.c: Likewise.
716 * config/tc-msp430.c: Likewise.
717 * config/tc-or32.c: Likewise.
718 * config/tc-tic4x.c: Likewise.
719 * config/tc-tic54x.c: Likewise.
720 * config/tc-xtensa.c: Likewise.
722 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
724 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
725 as the first argument for `bfd_get_section_vma'.
727 2012-05-16 Alberto Garcia <agarcia@igalia.com>
730 * app.c (do_scrub_chars): Prevent possible out of bounds access to
733 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
736 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
738 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
739 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
741 2012-05-16 Nathan Sidwell <nathan@codesourcery.com>
742 Kwok Cheung Yeung <kcy@codesourcery.com>
744 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
747 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
749 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
750 Add option to offset S12 addresses into XGATE memory space.
751 Tweak target flags to match other tools. (i.e. -m m68hc11).
752 * doc/as.texinfo: Mention new options.
753 * doc/c-m68hc11.texi: Document new options.
754 * NEWS: Mention new support.
756 2012-05-14 DJ Delorie <dj@redhat.com>
758 * config/rx-parse.y (rx_range): declare.
759 (O1,O2,O3,O4): Add calls to rx_range.
760 (UO1,UO2,UO3): Likewise.
761 (IMM2,IMMB): Likewise.
764 * config/tc-rx.c (rx_fetchalign): Declare.
765 (md_pseudo_table): Add .fetchalign.
766 (RX_NBASE_FETCHALIGN): New.
767 (fetchalign_bytes): New.
768 (rx_fetchalign): New.
769 (rx_frag_init): If a "magic" value is found, also init the
770 machine-specific data.
771 (md_assemble): Note following opcode size if called for.
772 (rx_next_opcode): New.
773 (rx_relax_frag): Support .fetchalign.
774 (md_convert_frag): Likewise.
775 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
777 2012-05-14 James Lemke <jwlemke@codesourcery.com>
779 * config/tc-ppc.c (insn_validate): New func of existing code to call..
780 (ppc_setup_opcodes): ..from 2 places here.
781 Revise for second (VLE) opcode table.
782 Add #ifdef'd code to print opcode tables.
784 2012-05-14 James Lemke <jwlemke@codesourcery.com>
786 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
787 for the VLE conditional branches.
789 2012-05-14 Catherine Moore <clm@codesourcery.com>
790 Maciej W. Rozycki <macro@codesourcery.com>
791 Rhonda Wittels <rhonda@codesourcery.com>
793 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
794 (PPC_VLE_SPLIT16D): New macro.
795 (PPC_VLE_LO16A): New macro.
796 (PPC_VLE_LO16D): New macro.
797 (PPC_VLE_HI16A): New macro.
798 (PPC_VLE_HI16D): New macro.
799 (PPC_VLE_HA16A): New macro.
800 (PPC_VLE_HA16D): New macro.
801 (PPC_APUINFO_VLE): New definition.
802 (md_chars_to_number): New function.
803 (md_parse_option): Check for combinations of little
805 (md_show_usage): Document -mvle.
806 (ppc_arch): Recognize VLE.
807 (ppc_mach): Recognize bfd_mach_ppc_vle.
808 (ppc_setup_opcodes): Print the opcode table if
809 * config/tc-ppc.h (ppc_frag_check): Declare.
810 * doc/c-ppc.texi: Document -mvle.
811 * NEWS: Mention PowerPC VLE port.
813 2012-05-14 Catherine Moore <clm@codesourcery.com>
815 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
816 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
817 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
818 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
819 for DWARF2_LINE_MIN_INSN_LENGTH.
821 2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
823 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
826 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
829 * configure.in: Invoke ACX_HEADER_STRING.
830 * configure: Regenerate.
831 * config.in: Regenerate.
832 * as.h: If STRINGS_WITH_STRING is defined then include both
833 string.h and strings.h.
835 2012-05-11 Georg-Johann Lay <avr@gjlay.de
838 * config/tc-avr.c (exp_mod_pm): Remove variable.
839 (exp_mod_data_t): New typedef.
840 (pexp_mod_data, exp_mod_data): New variables.
841 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
842 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
843 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
844 (avr_cons_fix_new): Handle new data expression modifiers shipped
846 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
849 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
851 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
852 addend overflow check.
854 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
856 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
857 x32 addend overflow check.
859 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
861 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
863 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
865 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
868 2012-05-08 Alan Modra <amodra@gmail.com>
870 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
871 LC and LANG environment vars.
872 * Makefile.in: Regenerate.
874 2012-05-07 Alan Modra <amodra@gmail.com>
876 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
877 * Makefile.in: Regenerate.
879 2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
881 * config/tc-z80.h(md_register_arithmetic): Define as 0.
882 * config/tc-z80.c(md_begin): Store register names in symbol table,
883 preventing usage as ordinary symbol.
884 * config/tc-z80.c(contains_register): New function.
885 * config/tc-z80.c(parse_exp2): Removed.
886 * config/tc-z80.c(parse_exp_not_indexed): New function.
887 * config/tc-z80.c(parse_exp): Add code to recogize indexed
888 addressing after parsing.
889 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
890 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
891 condition for jump to register.
892 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
893 parse_exp_not_indexed.
895 2012-05-05 Alan Modra <amodra@gmail.com>
897 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
898 bfd_und_section and bfd_ind_section with their _ptr variants, or
899 use corresponding bfd_is_* macros.
900 * symbols.c: Likewise.
901 * config/obj-aout.c: Likewise.
902 * config/obj-coff-seh.h: Likewise.
903 * config/tc-hppa.c: Likewise.
904 * config/tc-hppa.h: Likewise.
905 * config/tc-ia64.c: Likewise.
906 * config/tc-m32r.c: Likewise.
907 * config/tc-microblaze.c: Likewise.
908 * config/tc-mips.c: Likewise.
909 * config/tc-score.c: Likewise.
910 * config/tc-score7.c: Likewise.
911 * config/tc-tic6x.c: Likewise.
913 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
915 * configure.tgt: Support x86_64-*-linux-gnux32.
917 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
919 * config/tc-i386.c (match_template): Add `instruction' to
920 unsupported error message.
922 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
924 * config/tc-i386.c (output_insn): Reformat.
926 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
928 * config/tc-i386.c (output_insn): Remove the extra VEX check.
930 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
932 * config/tc-i386.c (match_template): Improve unsupported error
935 2012-05-03 Sean Keys <skeys@ipdatasys.com>
937 * configure, Makefile.in: Regenerate.
938 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
939 * configure.tgt: Added cpu type.
940 Added files for XGATE assembler.
941 * config/tc-xgate.c: Assembler for XGATE.
942 * config/tc-xgate.h: Header definition for assembler
943 Added files for XGATE testsuite.
944 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
945 * doc/c-xgate.texi: Document XGATE and XGATE port.
946 * doc/as.texinfo: Ditto.
947 * doc/all.texi: Ditto
948 * NEWS: Mention the new support.
950 2012-04-30 DJ Delorie <dj@redhat.com>
952 * config/rx-parse.y (rx_intop): Add parameter for operation size.
953 Check for large positive constants really being small negative
955 (BRA, BSR): Update calls to rx_intop.
956 (immediate): Likewise.
958 2012-04-26 Mark Wielaard <mjw@redhat.com>
960 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
961 (DWARF2_LINE_VERSION): Likewise.
962 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
963 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
964 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
966 (out_debug_info): Use difference between start and end as data
967 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
968 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
970 2012-04-27 David S. Miller <davem@davemloft.net>
972 * doc/c-sparc.text: Document %l34 and %h34.
974 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
976 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
977 v8pluse, v8plusv, v9e, and v9v.
978 (v9a_asr_table): Add 'pause'.
980 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
981 sparc4, v8pluse, v8plusv, v9e, and v9v.
982 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
983 order to accomodate cbcond which otherwise would require two
984 relocations to be handled in a single instruction..
986 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
987 names containing "_".
988 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
989 hwcap masks to v8plusv and v9v.
991 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
993 (sparc_md_end): No longer need to translate hwcap_seen values into
994 ELF hwcap bits, they now match exactly.
995 (get_hwcap_name): Use HWCAP_* and handle new values.
996 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
998 2012-04-20 Tristan Gingold <gingold@adacore.com>
1000 * config/tc-ia64.c (obj_elf_vms_common): New function.
1001 (md_pseudo_table): Add .vms_common pseudo.
1002 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
1003 * config/obj-elf.c (obj_elf_section_name): Make it public.
1005 2012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
1007 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
1009 2012-04-12 David S. Miller <davem@davemloft.net>
1011 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
1012 BFD_RELOC_SPARC_H34.
1013 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
1014 (tc_gen_reloc): Likewise.
1016 2012-04-12 Roland McGrath <mcgrathr@google.com>
1018 * configure.tgt (arm-*-nacl*): Match it.
1019 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
1020 (LOCAL_LABELS_DOLLAR): Define.
1021 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
1022 Use nacl format variants.
1024 2012-04-12 Jie Zhang <jie@codesourcery.com>
1025 Meador Inge <meadori@codesourcery.com>
1027 * config/tc-arm.c (only_one_reg_in_list): New function.
1028 (encode_ldmstm): Ditto.
1029 (do_ldmstm): Use a different encoding when pushing or poping
1031 (A_COND_MASK): New macro.
1032 (A_PUSH_POP_OP_MASK): Ditto.
1033 (A1_OPCODE_PUSH): Ditto.
1034 (A2_OPCODE_PUSH): Ditto.
1035 (A2_OPCODE_POP): Ditto.
1037 2012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
1039 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
1042 2012-04-06 Roland McGrath <mcgrathr@google.com>
1044 * configure.in (AC_CHECK_HEADERS): Add locale.h.
1045 * config.in: Regenerate.
1046 * configure: Regenerate.
1048 2012-04-05 Nick Clifton <nickc@redhat.com>
1050 * configure.in (AC_CHECK_FUNCS): Add setlocale.
1051 (AM_LC_MESSAGES): Add.
1052 * aclocal.m4: Regenerate.
1053 * config.in: Regenerate.
1054 * configure: Regenerate.
1056 2012-04-03 DJ Delorie <dj@redhat.com>
1058 * config/rx-parse.y: Make the .L optional for ADC and SBB.
1060 2012-04-02 DJ Delorie <dj@redhat.com>
1062 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
1064 (IMM): New, call IMM_ with the default 32.
1065 (IMMW,IMMB): Likewise, for 16 and 8.
1066 (NIMM, MBIMM): Add size parameter.
1067 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
1068 (MOV.W): Use IMMW instead of IMM.
1070 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
1071 (op_dp20_rm_l): New.
1072 (op_dp20_rim_l): New.
1074 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
1075 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
1077 2012-03-29 Terry Guo <terry.guo@arm.com>
1079 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
1080 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
1082 2012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
1084 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
1085 * doc/c-mips.texi: Mention XLP.
1087 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
1089 [SH] Support the .uaquad and .8byte directives also for non-sh64
1092 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
1094 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
1096 * doc/c-sh.texi (SH Machine Directives): ... here.
1098 2012-03-20 Nick Clifton <nickc@redhat.com>
1100 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
1102 (do_vmsr): Likewise.
1103 (arm_opcode_insns): Do not default to using the FPSCR register in
1104 the VMRS and VMSR registers.
1106 2012-03-16 Roland McGrath <mcgrathr@google.com>
1108 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
1109 Define for this case.
1110 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
1112 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1114 * config/tc-arm.c (aeabi_set_public_attributes): Correct
1115 handling of Tag_DIV_use.
1117 2012-03-15 Thomas Schwinge <thomas@codesourcery.com>
1119 * doc/as.texinfo (Bundle directives): Fix typo.
1121 2012-03-14 Ryan Mansfield <rmansfield@qnx.com>
1123 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
1125 2012-03-13 Roland McGrath <mcgrathr@google.com>
1127 * config/tc-arm.c (arm_frag_max_var): New function.
1128 * config/tc-arm.h: Declare it.
1129 (md_frag_max_var): New macro.
1131 * config/tc-i386.c (i386_frag_max_var): New function.
1132 * config/tc-i386.h: Declare it.
1133 (md_frag_max_var): New macro.
1135 * doc/as.texinfo (Bundle directives): New node.
1136 (Pseudo Ops): Add it to the menu.
1137 * NEWS: Mention new feature.
1138 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
1139 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
1140 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
1141 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
1143 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
1144 to md_assembly if not.
1145 (read_a_source_file): Call assemble_one in place of md_assemble.
1146 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
1147 .bundle_lock at end of processing.
1148 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
1150 [HANDLE_BUNDLE] (potable): Add their entries.
1151 * read.h: Declare new functions.
1153 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
1155 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
1156 (ppc_handle_align): Add termination nop opcode for e500mc family.
1157 * doc/as.texinfo: Document options -me5500 and -me6500.
1158 * doc/c-ppc.texi: Likewise.
1160 2012-03-07 Nick Clifton <nickc@redhat.com>
1162 * config/tc-mn10300.c (other_registers): Add SSP and USP.
1163 (md_assemble): Add support for TLS relocs.
1164 (mn10300_parse_name): Likewise.
1166 2012-02-27 Alan Modra <amodra@gmail.com>
1168 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
1170 2012-02-27 Alan Modra <amodra@gmail.com>
1172 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
1173 params. Properly generate NOP pattern. Comment reason for
1174 subseg_text_p failure.
1176 2012-02-27 Alan Modra <amodra@gmail.com>
1178 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
1179 and sign extend before range tests.
1180 (constant_fits_size_p): Similarly.
1181 (get_specific): Trim X_add_number to 32 bits.
1182 (fix_operand_size): Likewise, and use unsigned test for signed
1185 2012-02-27 Alan Modra <amodra@gmail.com>
1187 * config/tc-crx.c: Include bfd_stdint.h.
1188 (getconstant): Remove irrelevant comment. Don't fail due to
1189 sign-extension of int mask.
1190 (check_range): Rewrite using unsigned arithmetic throughout.
1192 2012-02-25 Walter Lee <walt@tilera.com>
1194 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
1195 non-local before checking sy_value.
1196 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
1198 2012-02-25 Walter Lee <walt@tilera.com>
1200 * tc-tilepro.c (O_tls_le): Define operator.
1201 (O_tls_le_lo16): Ditto.
1202 (O_tls_le_hi16): Ditto.
1203 (O_tls_le_ha16): Ditto.
1204 (O_tls_gd_call): Ditto.
1205 (O_tls_gd_add): Ditto.
1206 (O_tls_ie_load): Ditto.
1207 (md_begin): Delete old operators; handle new operators.
1208 (emit_tilepro_instruction): Ditto.
1209 (md_apply_fix): Ditto.
1210 * tc-tilegx.c (O_hw1_got): Delete operator.
1213 (O_hw2_last_got): Ditto.
1214 (O_hw1_tls_gd): Ditto.
1215 (O_hw2_tls_gd): Ditto.
1216 (O_hw3_tls_gd): Ditto.
1217 (O_hw2_last_tls_gd): Ditto.
1218 (O_hw1_tls_ie): Ditto.
1219 (O_hw2_tls_ie): Ditto.
1220 (O_hw3_tls_ie): Ditto.
1221 (O_hw2_last_tls_ie): Ditto.
1222 (O_hw0_tls_le): Define operator.
1223 (O_hw0_last_tls_le): Ditto.
1224 (O_hw1_last_tls_le): Ditto.
1225 (O_tls_gd_call): Ditto.
1226 (O_tls_gd_add): Ditto.
1227 (O_tls_ie_load): Ditto.
1229 (md_begin): Delete old operators; handle new operators.
1230 (emit_tilegx_instruction): Ditto.
1231 (md_apply_fix): Ditto.
1232 * doc/c-tilegx.texi: Delete old operators; document new operators.
1233 * doc/c-tilepro.texi: Ditto.
1235 2012-02-25 Walter Lee <walt@tilera.com>
1237 * tc-tilepro.c (apply_special_operator): delete cases for
1238 got and tls operators.
1239 (md_apply_fix): Ditto.
1240 * tc-tilegx.c (md_begin): Set architecture and machine.
1241 (tilegx_target_format): Handle big endian.
1242 (OPTION_EB): Define.
1243 (OPTION_EL): Define.
1244 (md_longopts): Add entries for "EB" and "EL".
1245 (md_parse_option): Handle OPTION_EB and OPTION_EL.
1246 (md_show_usage): Add -EB and -EL.
1247 (md_number_to_chars): New.
1248 (apply_special_operator): delete cases for got and tls
1250 (md_apply_fix): Ditto.
1251 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
1253 (md_number_to_chars): Delete.
1254 * configure.tgt (tilegx*be): Handle.
1255 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
1256 * doc/c-tilegx.texi: Ditto.
1258 2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
1260 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
1261 HLEPrefixAny and HLEPrefixRelease.
1263 2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1265 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
1267 2012-02-21 Iain Sandoe <idsandoe@googlemail.com>
1269 * write.c (write_object_file): Add md_pre_output_hook.
1270 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
1271 (obj_mach_o_pre_output_hook): New.
1272 * config/obj-macho.h (md_pre_output_hook): Define.
1273 (obj_mach_o_pre_output_hook): Declare.
1275 2012-02-21 Tristan Gingold <gingold@adacore.com>
1277 * config/tc-i386.h (OBJ_MACH_O): New section.
1278 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
1279 (TC_FORCE_RELOCATION_SUB_SAME): New
1280 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
1281 (TC_VALIDATE_FIX_SUB): New.
1282 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
1283 * symbols.c (colon): obj_frob_colon: New hook.
1284 * write.c (write_object_file): md_pre_relax_hook, new
1286 * config/obj-macho.c (obj_mach_o_frob_colon): New.
1287 (obj_mach_o_frob_label): Record sub-section labels.
1288 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
1289 (obj_mach_o_set_subsections): New.
1290 (obj_mach_o_pre_relax_hook): New.
1291 (obj_mach_o_in_different_subsection): New.
1292 (obj_mach_o_force_reloc_sub_same): New.
1293 (obj_mach_o_force_reloc_sub_local): New.
1294 (obj_mach_o_force_reloc): New.
1295 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
1296 (obj_frob_colon): New Define.
1297 (obj_mach_o_frob_label): Renamed.
1298 (obj_mach_o_frob_symbol): Renamed.
1299 (OBJ_FRAG_TYPE): New.
1300 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
1301 obj_mach_o_force_reloc_sub_same,
1302 obj_mach_o_force_reloc_sub_local): New declarations.
1304 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
1306 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
1307 (obj_mach_o_allow_local_subtract): New.
1308 * config/obj-macho.h (md_allow_local_subtract): Define.
1309 (obj_mach_o_allow_local_subtract): Declare.
1311 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
1313 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
1314 canonical information, try to determine CODE and DEBUG section flags
1315 from the mach-o section data.
1317 2012-02-20 Nick Clifton <nickc@redhat.com>
1319 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
1322 2012-02-12 Iain Sandoe <idsandoe@googlemail.com>
1324 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
1325 any local symbol used as an indirect.
1327 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1329 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
1330 stub size when provided. (obj_mach_o_section): Flag that stub-size
1333 2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
1335 * config/tc-i386.c (HLE_PREFIX): New.
1336 (check_hle): Likewise.
1337 (_i386_insn): Add have_hle.
1338 (cpu_arch): Add .hle and .rtm.
1339 (md_assemble): Call check_hle if i.have_hle isn't zero.
1340 (parse_insn): Set i.have_hle to 1 for HLE prefix.
1341 (output_jump): Support up to 2 byte opcode.
1343 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
1345 2012-02-02 Tristan Gingold <gingold@adacore.com>
1347 * config/obj-macho.c (obj_mach_o_zerofill): Silent
1348 uninitialized variable warning.
1350 2012-02-02 Nick Clifton <nickc@redhat.com>
1353 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
1354 to 'is_clone' to avoid shadowing a gloabl.
1355 (obj_elf_section): Likewise.
1357 2012-01-31 Paul Brook <paul@codesourcery.com>
1359 * doc/c-tic6x.c: Fix typo.
1361 2012-01-26 Alexey Makhalov <makhaloff@gmail.com>
1364 * app.c (app_push): Set 'add_newlines' to zero after saving.
1366 2012-01-24 DJ Delorie <dj@redhat.com>
1368 * config/rl78-parse.y (NOT1): Add.
1370 2012-01-23 Roland McGrath <mcgrathr@google.com>
1372 * configure.tgt (i386-*-nacl*): Match it.
1373 * config/te-nacl.h: New file.
1374 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
1375 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
1376 Use TE_GNU et al case for TE_NACL too.
1378 2012-01-20 H.J. Lu <hongjiu.lu@intel.com>
1380 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
1382 (md_assemble): Updated.
1383 (output_branch): Likewise.
1384 (parse_insn): Support .d8 suffix.
1385 (build_modrm_byte): Fake zero displacement for .d8 and .d32
1388 * doc/c-i386.texi: Document .d8 suffix.
1390 2012-01-17 Andrew Burgess <aburgess@broadcom.com>
1392 * write.c (fix_new_internal): Don't mark used parameter as unused.
1394 2012-01-17 Alan Modra <amodra@gmail.com>
1396 * as.c (parse_args): Update copyright message year.
1398 2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
1400 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
1402 * doc/c-i386.texi: Document vmfunc.
1404 2012-01-13 Tristan Gingold <gingold@adacore.com>
1406 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
1407 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
1408 (obj_mach_o_reorder_section_relocs): Declare.
1410 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1412 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
1413 absolute indirect symbols.
1415 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1417 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
1418 (obj_mach_o_set_section_vma): New.
1419 (obj_mach_o_post_relax_hook): New.
1420 * config/obj-macho.h (md_post_relax_hook): Define.
1421 (obj_mach_o_post_relax_hook): Declare.
1423 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
1425 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
1426 lazy when the symbol is private_extern.
1427 (obj_mach_o_indirect_sym): New type.
1428 (obj_mach_o_indirect_symbol): New.
1429 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
1430 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
1431 (obj_macho_frob_label): Likewise. Adjust external and comm
1433 (obj_mach_o_set_indirect_symbols): New.
1434 (obj_mach_o_frob_file_after_relocs): New.
1435 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
1436 (obj_mach_o_frob_file_after_relocs): Declare.
1438 2012-01-12 Tristan Gingold <gingold@adacore.com>
1441 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
1443 2012-01-10 Tristan Gingold <gingold@adacore.com>
1445 * struc-symbol.h (struct symbol_flags): New struct, created from...
1446 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
1447 (struct local_symbol): Replace lsy_marker field by lsy_flags.
1449 (local_symbol_resolved_p): Adjust.
1450 (local_symbol_mark_resolved): Likewise.
1451 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
1452 (local_symbol_make, local_symbol_convert, colon)
1453 (symbol_clone_if_forward_ref, verify_symbol_chain)
1454 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
1455 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
1456 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
1457 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
1458 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
1459 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
1460 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
1461 (symbol_mark_mri_common, symbol_clear_mri_common)
1462 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
1463 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
1464 (symbol_equated_reloc_p, dot_symbol_init)
1465 (print_symbol_value_1): Adjust.
1467 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
1469 * config/obj-macho.c (obj_mach_o_weak): Remove.
1470 (obj_mach_o_common_parse): Set symbol qualifiers.
1471 (LAZY, REFE): New macros.
1472 (obj_mach_o_symbol_type): New enum.
1473 (obj_mach_o_set_symbol_qualifier): New.
1474 (obj_mach_o_sym_qual): New.
1475 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
1477 (obj_mach_o_type_for_symbol): New.
1478 (obj_macho_frob_label): New.
1479 (obj_macho_frob_symbol): New.
1480 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
1481 (obj_frob_label, obj_macho_frob_label): Declare.
1482 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
1484 2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
1486 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
1488 2012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1489 Richard Sandiford <rdsandiford@googlemail.com>
1491 * config/tc-mips.c (mips_move_labels): Take the list of labels and
1492 textness as parameters.
1493 (mips_move_text_labels): New function.
1494 (append_insn): Use it instead of mips_move_labels.
1495 (mips_emit_delays, start_noreorder): Likewise.
1496 (mips_align): Take the labels rather than just one label.
1497 Move all labels to after the .align.
1498 (s_align): Change the last argument to mips_align.
1500 (s_float_cons): Likewise.
1501 (s_gpword): Likewise.
1502 (s_gpdword): Likewise.
1504 2012-01-06 Tristan Gingold <gingold@adacore.com>
1506 * config/tc-i386.c: Update copyright year.
1507 (lex_got): Also defined for Mach-O.
1508 Add a guard for non-ELF configuration.
1509 (md_longopts): Also handle -64 for Mach-O.
1510 (md_parse_option): Likewise.
1511 (i386_target_format): Adjust for x86_64-darwin.
1513 2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
1515 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1516 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1517 (obj_mach_o_make_or_get_sect): Likewise.
1518 (obj_mach_o_section): Split out the functionality shared with zerofill.
1519 (obj_mach_o_zerofill): New.
1520 (obj_mach_o_common_parse): Ensure whitespace is skipped.
1521 (mach_o_pseudo_table): Add .zerofill.
1523 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1525 * config/obj-macho.c (obj_macho_process_stab): New.
1526 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1527 (obj_macho_process_stab): Declare.
1529 For older changes see ChangeLog-2011
1535 version-control: never