1 2012-06-22 Roland McGrath <mcgrathr@google.com>
3 * NEWS: Mention 'rep ret' too.
5 * config/tc-i386.c (parse_insn): Don't complain about REP prefix
6 when the template has opcode_modifier.repprefixok set.
7 * NEWS: Mention the change.
9 2012-06-18 Iain Sandoe <iain@codesourcery.com>
11 * configure.in: Check DECLS for free, getenv, malloc, realloc,
12 * configure: Regenerate.
13 * config.in: Likewise.
15 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
17 * config/tc-i386.c (x86_address_bytes): New.
18 * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
19 (x86_address_bytes): Likewise.
21 2012-06-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24 * config/tc-arm.c (do_t_mrs): Do not require an m-profile
25 architecure when assembling for all archiectures.
28 2012-06-11 Georg-Johann Lay <avr@gjlay.de>
31 * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
34 2012-06-09 H.J. Lu <hongjiu.lu@intel.com>
36 * input-scrub.c (input_scrub_include_sb): Use sb_build to
37 allocate sufficient space for from_sb. Use sb_terminate to
39 * read.c (read_a_source_file): Use sb_build to allocate
40 sufficient space and replace sb_add_string with sb_add_buffer.
42 (input_scrub_insert_line): Likewise.
43 (s_irp): Use sb_build to allocate sufficient space.
44 (do_repeat): Use sb_build to allocate sufficient space
46 * sb.c (sb_build): Remove static.
47 * sb.h (sb_build): New prototype.
49 2012-06-09 Alan Modra <amodra@gmail.com>
51 * sb.c: Include limits.h.
53 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
54 (sb_new): Use INIT_ALLOC.
55 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
56 (sb_terminate): Don't use sb_add_char.
58 2012-06-07 Alan Modra <amodra@gmail.com>
61 * sb.h (sb_max_power_two): Delete.
62 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
64 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
66 * sb.c (string_count, free_list): Delete.
67 (sb_build, sb_kill, sb_check): Rewrite.
68 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
69 sb_skip_white, sb_skip_comma): Replace assorted int params,
70 vars and return types with size_t.
71 * input-scrub.c: Likewise.
76 * input-file.h: Likewise.
77 * input-file.c: Likewise.
79 * app.c: ..or ptrdiff_t.
80 * input-file.c (input_file_get): Use ferror.
81 (input_file_give_next_buffer): Use input_file_get.
83 2012-05-29 Roland McGrath <mcgrathr@google.com>
85 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
86 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
87 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
90 2012-05-28 Nick Clifton <nickc@redhat.com>
92 * read.c (read_symbol_name): New function. Reads a symbol names.
93 Allows escape codes in names.
94 (s_comm_internal): Use read_symbol_name.
95 (s_globl, s_lsym, s_set, s_weakref): Likewise.
96 * doc/as.texinfo: Document support for multibyte characters in
99 2012-05-21 Mike Frysinger <vapier@gentoo.org>
101 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
104 2012-05-19 Alan Modra <amodra@gmail.com>
106 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
107 targets when checking for "comdat".
109 2012-05-19 Alan Modra <amodra@gmail.com>
111 * config/tc-dlx.c (s_proc): Don't use asprintf.
113 2012-05-18 Alan Modra <amodra@gmail.com>
115 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
118 2012-05-18 James Lemke <jwlemke@codesourcery.com>
119 Alan Modra <amodra@gmail.com>
121 * config/tc-ppc.c: Don't capitalise error and warning messages.
122 (md_parse_option): Add checks for -a32 -mvle.
124 2012-05-18 Alan Modra <amodra@gmail.com>
126 * config/obj-evax.c: Include as.h first.
128 2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
130 * aclocal.m4: Regenerate.
131 * configure: Regenerate.
132 * Makefile.in: Regenerate.
134 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
135 Nick Clifton <nickc@redhat.com>
138 * configure.in: Add check that sysdep.h has been included before
139 any system header files.
140 * configure: Regenerate.
141 * config.in: Regenerate.
142 * aclocal.m4: Regenerate.
143 * Makefile.am: Use wrappers around C files generated by flex.
144 * Makefile.in: Regenerate.
145 * doc/Makefile.in: Regenerate.
146 * itbl-lex-wrapper.c: New file.
147 * config/bfin-lex-wrapper.c: New file.
148 * cgen.c: Include as.h before setjmp.h.
149 * config/tc-dlx.c: Include as.h before any other header.
150 * config/tc-h8300.c: Likewise.
151 * config/tc-lm32.c: Likewise.
152 * config/tc-mep.c: Likewise.
153 * config/tc-microblaze.c: Likewise.
154 * config/tc-mmix.c: Likewise.
155 * config/tc-msp430.c: Likewise.
156 * config/tc-or32.c: Likewise.
157 * config/tc-tic4x.c: Likewise.
158 * config/tc-tic54x.c: Likewise.
159 * config/tc-xtensa.c: Likewise.
161 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
163 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
164 as the first argument for `bfd_get_section_vma'.
166 2012-05-16 Alberto Garcia <agarcia@igalia.com>
169 * app.c (do_scrub_chars): Prevent possible out of bounds access to
172 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
175 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
177 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
178 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
180 2012-05-16 Nathan Sidwell <nathan@codesourcery.com>
181 Kwok Cheung Yeung <kcy@codesourcery.com>
183 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
186 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
188 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
189 Add option to offset S12 addresses into XGATE memory space.
190 Tweak target flags to match other tools. (i.e. -m m68hc11).
191 * doc/as.texinfo: Mention new options.
192 * doc/c-m68hc11.texi: Document new options.
193 * NEWS: Mention new support.
195 2012-05-14 DJ Delorie <dj@redhat.com>
197 * config/rx-parse.y (rx_range): declare.
198 (O1,O2,O3,O4): Add calls to rx_range.
199 (UO1,UO2,UO3): Likewise.
200 (IMM2,IMMB): Likewise.
203 * config/tc-rx.c (rx_fetchalign): Declare.
204 (md_pseudo_table): Add .fetchalign.
205 (RX_NBASE_FETCHALIGN): New.
206 (fetchalign_bytes): New.
207 (rx_fetchalign): New.
208 (rx_frag_init): If a "magic" value is found, also init the
209 machine-specific data.
210 (md_assemble): Note following opcode size if called for.
211 (rx_next_opcode): New.
212 (rx_relax_frag): Support .fetchalign.
213 (md_convert_frag): Likewise.
214 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
216 2012-05-14 James Lemke <jwlemke@codesourcery.com>
218 * config/tc-ppc.c (insn_validate): New func of existing code to call..
219 (ppc_setup_opcodes): ..from 2 places here.
220 Revise for second (VLE) opcode table.
221 Add #ifdef'd code to print opcode tables.
223 2012-05-14 James Lemke <jwlemke@codesourcery.com>
225 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
226 for the VLE conditional branches.
228 2012-05-14 Catherine Moore <clm@codesourcery.com>
229 Maciej W. Rozycki <macro@codesourcery.com>
230 Rhonda Wittels <rhonda@codesourcery.com>
232 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
233 (PPC_VLE_SPLIT16D): New macro.
234 (PPC_VLE_LO16A): New macro.
235 (PPC_VLE_LO16D): New macro.
236 (PPC_VLE_HI16A): New macro.
237 (PPC_VLE_HI16D): New macro.
238 (PPC_VLE_HA16A): New macro.
239 (PPC_VLE_HA16D): New macro.
240 (PPC_APUINFO_VLE): New definition.
241 (md_chars_to_number): New function.
242 (md_parse_option): Check for combinations of little
244 (md_show_usage): Document -mvle.
245 (ppc_arch): Recognize VLE.
246 (ppc_mach): Recognize bfd_mach_ppc_vle.
247 (ppc_setup_opcodes): Print the opcode table if
248 * config/tc-ppc.h (ppc_frag_check): Declare.
249 * doc/c-ppc.texi: Document -mvle.
250 * NEWS: Mention PowerPC VLE port.
252 2012-05-14 Catherine Moore <clm@codesourcery.com>
254 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
255 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
256 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
257 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
258 for DWARF2_LINE_MIN_INSN_LENGTH.
260 2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
262 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
265 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
268 * configure.in: Invoke ACX_HEADER_STRING.
269 * configure: Regenerate.
270 * config.in: Regenerate.
271 * as.h: If STRINGS_WITH_STRING is defined then include both
272 string.h and strings.h.
274 2012-05-11 Georg-Johann Lay <avr@gjlay.de
277 * config/tc-avr.c (exp_mod_pm): Remove variable.
278 (exp_mod_data_t): New typedef.
279 (pexp_mod_data, exp_mod_data): New variables.
280 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
281 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
282 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
283 (avr_cons_fix_new): Handle new data expression modifiers shipped
285 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
288 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
290 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
291 addend overflow check.
293 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
295 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
296 x32 addend overflow check.
298 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
300 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
302 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
304 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
307 2012-05-08 Alan Modra <amodra@gmail.com>
309 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
310 LC and LANG environment vars.
311 * Makefile.in: Regenerate.
313 2012-05-07 Alan Modra <amodra@gmail.com>
315 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
316 * Makefile.in: Regenerate.
318 2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
320 * config/tc-z80.h(md_register_arithmetic): Define as 0.
321 * config/tc-z80.c(md_begin): Store register names in symbol table,
322 preventing usage as ordinary symbol.
323 * config/tc-z80.c(contains_register): New function.
324 * config/tc-z80.c(parse_exp2): Removed.
325 * config/tc-z80.c(parse_exp_not_indexed): New function.
326 * config/tc-z80.c(parse_exp): Add code to recogize indexed
327 addressing after parsing.
328 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
329 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
330 condition for jump to register.
331 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
332 parse_exp_not_indexed.
334 2012-05-05 Alan Modra <amodra@gmail.com>
336 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
337 bfd_und_section and bfd_ind_section with their _ptr variants, or
338 use corresponding bfd_is_* macros.
339 * symbols.c: Likewise.
340 * config/obj-aout.c: Likewise.
341 * config/obj-coff-seh.h: Likewise.
342 * config/tc-hppa.c: Likewise.
343 * config/tc-hppa.h: Likewise.
344 * config/tc-ia64.c: Likewise.
345 * config/tc-m32r.c: Likewise.
346 * config/tc-microblaze.c: Likewise.
347 * config/tc-mips.c: Likewise.
348 * config/tc-score.c: Likewise.
349 * config/tc-score7.c: Likewise.
350 * config/tc-tic6x.c: Likewise.
352 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
354 * configure.tgt: Support x86_64-*-linux-gnux32.
356 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
358 * config/tc-i386.c (match_template): Add `instruction' to
359 unsupported error message.
361 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
363 * config/tc-i386.c (output_insn): Reformat.
365 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
367 * config/tc-i386.c (output_insn): Remove the extra VEX check.
369 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
371 * config/tc-i386.c (match_template): Improve unsupported error
374 2012-05-03 Sean Keys <skeys@ipdatasys.com>
376 * configure, Makefile.in: Regenerate.
377 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
378 * configure.tgt: Added cpu type.
379 Added files for XGATE assembler.
380 * config/tc-xgate.c: Assembler for XGATE.
381 * config/tc-xgate.h: Header definition for assembler
382 Added files for XGATE testsuite.
383 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
384 * doc/c-xgate.texi: Document XGATE and XGATE port.
385 * doc/as.texinfo: Ditto.
386 * doc/all.texi: Ditto
387 * NEWS: Mention the new support.
389 2012-04-30 DJ Delorie <dj@redhat.com>
391 * config/rx-parse.y (rx_intop): Add parameter for operation size.
392 Check for large positive constants really being small negative
394 (BRA, BSR): Update calls to rx_intop.
395 (immediate): Likewise.
397 2012-04-26 Mark Wielaard <mjw@redhat.com>
399 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
400 (DWARF2_LINE_VERSION): Likewise.
401 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
402 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
403 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
405 (out_debug_info): Use difference between start and end as data
406 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
407 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
409 2012-04-27 David S. Miller <davem@davemloft.net>
411 * doc/c-sparc.text: Document %l34 and %h34.
413 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
415 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
416 v8pluse, v8plusv, v9e, and v9v.
417 (v9a_asr_table): Add 'pause'.
419 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
420 sparc4, v8pluse, v8plusv, v9e, and v9v.
421 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
422 order to accomodate cbcond which otherwise would require two
423 relocations to be handled in a single instruction..
425 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
426 names containing "_".
427 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
428 hwcap masks to v8plusv and v9v.
430 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
432 (sparc_md_end): No longer need to translate hwcap_seen values into
433 ELF hwcap bits, they now match exactly.
434 (get_hwcap_name): Use HWCAP_* and handle new values.
435 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
437 2012-04-20 Tristan Gingold <gingold@adacore.com>
439 * config/tc-ia64.c (obj_elf_vms_common): New function.
440 (md_pseudo_table): Add .vms_common pseudo.
441 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
442 * config/obj-elf.c (obj_elf_section_name): Make it public.
444 2012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
446 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
448 2012-04-12 David S. Miller <davem@davemloft.net>
450 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
452 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
453 (tc_gen_reloc): Likewise.
455 2012-04-12 Roland McGrath <mcgrathr@google.com>
457 * configure.tgt (arm-*-nacl*): Match it.
458 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
459 (LOCAL_LABELS_DOLLAR): Define.
460 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
461 Use nacl format variants.
463 2012-04-12 Jie Zhang <jie@codesourcery.com>
464 Meador Inge <meadori@codesourcery.com>
466 * config/tc-arm.c (only_one_reg_in_list): New function.
467 (encode_ldmstm): Ditto.
468 (do_ldmstm): Use a different encoding when pushing or poping
470 (A_COND_MASK): New macro.
471 (A_PUSH_POP_OP_MASK): Ditto.
472 (A1_OPCODE_PUSH): Ditto.
473 (A2_OPCODE_PUSH): Ditto.
474 (A2_OPCODE_POP): Ditto.
476 2012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
478 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
481 2012-04-06 Roland McGrath <mcgrathr@google.com>
483 * configure.in (AC_CHECK_HEADERS): Add locale.h.
484 * config.in: Regenerate.
485 * configure: Regenerate.
487 2012-04-05 Nick Clifton <nickc@redhat.com>
489 * configure.in (AC_CHECK_FUNCS): Add setlocale.
490 (AM_LC_MESSAGES): Add.
491 * aclocal.m4: Regenerate.
492 * config.in: Regenerate.
493 * configure: Regenerate.
495 2012-04-03 DJ Delorie <dj@redhat.com>
497 * config/rx-parse.y: Make the .L optional for ADC and SBB.
499 2012-04-02 DJ Delorie <dj@redhat.com>
501 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
503 (IMM): New, call IMM_ with the default 32.
504 (IMMW,IMMB): Likewise, for 16 and 8.
505 (NIMM, MBIMM): Add size parameter.
506 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
507 (MOV.W): Use IMMW instead of IMM.
509 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
511 (op_dp20_rim_l): New.
513 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
514 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
516 2012-03-29 Terry Guo <terry.guo@arm.com>
518 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
519 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
521 2012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
523 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
524 * doc/c-mips.texi: Mention XLP.
526 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
528 [SH] Support the .uaquad and .8byte directives also for non-sh64
531 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
533 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
535 * doc/c-sh.texi (SH Machine Directives): ... here.
537 2012-03-20 Nick Clifton <nickc@redhat.com>
539 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
542 (arm_opcode_insns): Do not default to using the FPSCR register in
543 the VMRS and VMSR registers.
545 2012-03-16 Roland McGrath <mcgrathr@google.com>
547 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
548 Define for this case.
549 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
551 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
553 * config/tc-arm.c (aeabi_set_public_attributes): Correct
554 handling of Tag_DIV_use.
556 2012-03-15 Thomas Schwinge <thomas@codesourcery.com>
558 * doc/as.texinfo (Bundle directives): Fix typo.
560 2012-03-14 Ryan Mansfield <rmansfield@qnx.com>
562 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
564 2012-03-13 Roland McGrath <mcgrathr@google.com>
566 * config/tc-arm.c (arm_frag_max_var): New function.
567 * config/tc-arm.h: Declare it.
568 (md_frag_max_var): New macro.
570 * config/tc-i386.c (i386_frag_max_var): New function.
571 * config/tc-i386.h: Declare it.
572 (md_frag_max_var): New macro.
574 * doc/as.texinfo (Bundle directives): New node.
575 (Pseudo Ops): Add it to the menu.
576 * NEWS: Mention new feature.
577 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
578 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
579 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
580 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
582 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
583 to md_assembly if not.
584 (read_a_source_file): Call assemble_one in place of md_assemble.
585 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
586 .bundle_lock at end of processing.
587 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
589 [HANDLE_BUNDLE] (potable): Add their entries.
590 * read.h: Declare new functions.
592 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
594 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
595 (ppc_handle_align): Add termination nop opcode for e500mc family.
596 * doc/as.texinfo: Document options -me5500 and -me6500.
597 * doc/c-ppc.texi: Likewise.
599 2012-03-07 Nick Clifton <nickc@redhat.com>
601 * config/tc-mn10300.c (other_registers): Add SSP and USP.
602 (md_assemble): Add support for TLS relocs.
603 (mn10300_parse_name): Likewise.
605 2012-02-27 Alan Modra <amodra@gmail.com>
607 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
609 2012-02-27 Alan Modra <amodra@gmail.com>
611 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
612 params. Properly generate NOP pattern. Comment reason for
613 subseg_text_p failure.
615 2012-02-27 Alan Modra <amodra@gmail.com>
617 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
618 and sign extend before range tests.
619 (constant_fits_size_p): Similarly.
620 (get_specific): Trim X_add_number to 32 bits.
621 (fix_operand_size): Likewise, and use unsigned test for signed
624 2012-02-27 Alan Modra <amodra@gmail.com>
626 * config/tc-crx.c: Include bfd_stdint.h.
627 (getconstant): Remove irrelevant comment. Don't fail due to
628 sign-extension of int mask.
629 (check_range): Rewrite using unsigned arithmetic throughout.
631 2012-02-25 Walter Lee <walt@tilera.com>
633 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
634 non-local before checking sy_value.
635 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
637 2012-02-25 Walter Lee <walt@tilera.com>
639 * tc-tilepro.c (O_tls_le): Define operator.
640 (O_tls_le_lo16): Ditto.
641 (O_tls_le_hi16): Ditto.
642 (O_tls_le_ha16): Ditto.
643 (O_tls_gd_call): Ditto.
644 (O_tls_gd_add): Ditto.
645 (O_tls_ie_load): Ditto.
646 (md_begin): Delete old operators; handle new operators.
647 (emit_tilepro_instruction): Ditto.
648 (md_apply_fix): Ditto.
649 * tc-tilegx.c (O_hw1_got): Delete operator.
652 (O_hw2_last_got): Ditto.
653 (O_hw1_tls_gd): Ditto.
654 (O_hw2_tls_gd): Ditto.
655 (O_hw3_tls_gd): Ditto.
656 (O_hw2_last_tls_gd): Ditto.
657 (O_hw1_tls_ie): Ditto.
658 (O_hw2_tls_ie): Ditto.
659 (O_hw3_tls_ie): Ditto.
660 (O_hw2_last_tls_ie): Ditto.
661 (O_hw0_tls_le): Define operator.
662 (O_hw0_last_tls_le): Ditto.
663 (O_hw1_last_tls_le): Ditto.
664 (O_tls_gd_call): Ditto.
665 (O_tls_gd_add): Ditto.
666 (O_tls_ie_load): Ditto.
668 (md_begin): Delete old operators; handle new operators.
669 (emit_tilegx_instruction): Ditto.
670 (md_apply_fix): Ditto.
671 * doc/c-tilegx.texi: Delete old operators; document new operators.
672 * doc/c-tilepro.texi: Ditto.
674 2012-02-25 Walter Lee <walt@tilera.com>
676 * tc-tilepro.c (apply_special_operator): delete cases for
677 got and tls operators.
678 (md_apply_fix): Ditto.
679 * tc-tilegx.c (md_begin): Set architecture and machine.
680 (tilegx_target_format): Handle big endian.
683 (md_longopts): Add entries for "EB" and "EL".
684 (md_parse_option): Handle OPTION_EB and OPTION_EL.
685 (md_show_usage): Add -EB and -EL.
686 (md_number_to_chars): New.
687 (apply_special_operator): delete cases for got and tls
689 (md_apply_fix): Ditto.
690 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
692 (md_number_to_chars): Delete.
693 * configure.tgt (tilegx*be): Handle.
694 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
695 * doc/c-tilegx.texi: Ditto.
697 2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
699 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
700 HLEPrefixAny and HLEPrefixRelease.
702 2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
704 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
706 2012-02-21 Iain Sandoe <idsandoe@googlemail.com>
708 * write.c (write_object_file): Add md_pre_output_hook.
709 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
710 (obj_mach_o_pre_output_hook): New.
711 * config/obj-macho.h (md_pre_output_hook): Define.
712 (obj_mach_o_pre_output_hook): Declare.
714 2012-02-21 Tristan Gingold <gingold@adacore.com>
716 * config/tc-i386.h (OBJ_MACH_O): New section.
717 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
718 (TC_FORCE_RELOCATION_SUB_SAME): New
719 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
720 (TC_VALIDATE_FIX_SUB): New.
721 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
722 * symbols.c (colon): obj_frob_colon: New hook.
723 * write.c (write_object_file): md_pre_relax_hook, new
725 * config/obj-macho.c (obj_mach_o_frob_colon): New.
726 (obj_mach_o_frob_label): Record sub-section labels.
727 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
728 (obj_mach_o_set_subsections): New.
729 (obj_mach_o_pre_relax_hook): New.
730 (obj_mach_o_in_different_subsection): New.
731 (obj_mach_o_force_reloc_sub_same): New.
732 (obj_mach_o_force_reloc_sub_local): New.
733 (obj_mach_o_force_reloc): New.
734 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
735 (obj_frob_colon): New Define.
736 (obj_mach_o_frob_label): Renamed.
737 (obj_mach_o_frob_symbol): Renamed.
738 (OBJ_FRAG_TYPE): New.
739 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
740 obj_mach_o_force_reloc_sub_same,
741 obj_mach_o_force_reloc_sub_local): New declarations.
743 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
745 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
746 (obj_mach_o_allow_local_subtract): New.
747 * config/obj-macho.h (md_allow_local_subtract): Define.
748 (obj_mach_o_allow_local_subtract): Declare.
750 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
752 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
753 canonical information, try to determine CODE and DEBUG section flags
754 from the mach-o section data.
756 2012-02-20 Nick Clifton <nickc@redhat.com>
758 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
761 2012-02-12 Iain Sandoe <idsandoe@googlemail.com>
763 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
764 any local symbol used as an indirect.
766 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
768 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
769 stub size when provided. (obj_mach_o_section): Flag that stub-size
772 2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
774 * config/tc-i386.c (HLE_PREFIX): New.
775 (check_hle): Likewise.
776 (_i386_insn): Add have_hle.
777 (cpu_arch): Add .hle and .rtm.
778 (md_assemble): Call check_hle if i.have_hle isn't zero.
779 (parse_insn): Set i.have_hle to 1 for HLE prefix.
780 (output_jump): Support up to 2 byte opcode.
782 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
784 2012-02-02 Tristan Gingold <gingold@adacore.com>
786 * config/obj-macho.c (obj_mach_o_zerofill): Silent
787 uninitialized variable warning.
789 2012-02-02 Nick Clifton <nickc@redhat.com>
792 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
793 to 'is_clone' to avoid shadowing a gloabl.
794 (obj_elf_section): Likewise.
796 2012-01-31 Paul Brook <paul@codesourcery.com>
798 * doc/c-tic6x.c: Fix typo.
800 2012-01-26 Alexey Makhalov <makhaloff@gmail.com>
803 * app.c (app_push): Set 'add_newlines' to zero after saving.
805 2012-01-24 DJ Delorie <dj@redhat.com>
807 * config/rl78-parse.y (NOT1): Add.
809 2012-01-23 Roland McGrath <mcgrathr@google.com>
811 * configure.tgt (i386-*-nacl*): Match it.
812 * config/te-nacl.h: New file.
813 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
814 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
815 Use TE_GNU et al case for TE_NACL too.
817 2012-01-20 H.J. Lu <hongjiu.lu@intel.com>
819 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
821 (md_assemble): Updated.
822 (output_branch): Likewise.
823 (parse_insn): Support .d8 suffix.
824 (build_modrm_byte): Fake zero displacement for .d8 and .d32
827 * doc/c-i386.texi: Document .d8 suffix.
829 2012-01-17 Andrew Burgess <aburgess@broadcom.com>
831 * write.c (fix_new_internal): Don't mark used parameter as unused.
833 2012-01-17 Alan Modra <amodra@gmail.com>
835 * as.c (parse_args): Update copyright message year.
837 2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
839 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
841 * doc/c-i386.texi: Document vmfunc.
843 2012-01-13 Tristan Gingold <gingold@adacore.com>
845 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
846 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
847 (obj_mach_o_reorder_section_relocs): Declare.
849 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
851 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
852 absolute indirect symbols.
854 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
856 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
857 (obj_mach_o_set_section_vma): New.
858 (obj_mach_o_post_relax_hook): New.
859 * config/obj-macho.h (md_post_relax_hook): Define.
860 (obj_mach_o_post_relax_hook): Declare.
862 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
864 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
865 lazy when the symbol is private_extern.
866 (obj_mach_o_indirect_sym): New type.
867 (obj_mach_o_indirect_symbol): New.
868 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
869 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
870 (obj_macho_frob_label): Likewise. Adjust external and comm
872 (obj_mach_o_set_indirect_symbols): New.
873 (obj_mach_o_frob_file_after_relocs): New.
874 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
875 (obj_mach_o_frob_file_after_relocs): Declare.
877 2012-01-12 Tristan Gingold <gingold@adacore.com>
880 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
882 2012-01-10 Tristan Gingold <gingold@adacore.com>
884 * struc-symbol.h (struct symbol_flags): New struct, created from...
885 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
886 (struct local_symbol): Replace lsy_marker field by lsy_flags.
888 (local_symbol_resolved_p): Adjust.
889 (local_symbol_mark_resolved): Likewise.
890 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
891 (local_symbol_make, local_symbol_convert, colon)
892 (symbol_clone_if_forward_ref, verify_symbol_chain)
893 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
894 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
895 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
896 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
897 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
898 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
899 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
900 (symbol_mark_mri_common, symbol_clear_mri_common)
901 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
902 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
903 (symbol_equated_reloc_p, dot_symbol_init)
904 (print_symbol_value_1): Adjust.
906 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
908 * config/obj-macho.c (obj_mach_o_weak): Remove.
909 (obj_mach_o_common_parse): Set symbol qualifiers.
910 (LAZY, REFE): New macros.
911 (obj_mach_o_symbol_type): New enum.
912 (obj_mach_o_set_symbol_qualifier): New.
913 (obj_mach_o_sym_qual): New.
914 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
916 (obj_mach_o_type_for_symbol): New.
917 (obj_macho_frob_label): New.
918 (obj_macho_frob_symbol): New.
919 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
920 (obj_frob_label, obj_macho_frob_label): Declare.
921 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
923 2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
925 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
927 2012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
928 Richard Sandiford <rdsandiford@googlemail.com>
930 * config/tc-mips.c (mips_move_labels): Take the list of labels and
931 textness as parameters.
932 (mips_move_text_labels): New function.
933 (append_insn): Use it instead of mips_move_labels.
934 (mips_emit_delays, start_noreorder): Likewise.
935 (mips_align): Take the labels rather than just one label.
936 Move all labels to after the .align.
937 (s_align): Change the last argument to mips_align.
939 (s_float_cons): Likewise.
940 (s_gpword): Likewise.
941 (s_gpdword): Likewise.
943 2012-01-06 Tristan Gingold <gingold@adacore.com>
945 * config/tc-i386.c: Update copyright year.
946 (lex_got): Also defined for Mach-O.
947 Add a guard for non-ELF configuration.
948 (md_longopts): Also handle -64 for Mach-O.
949 (md_parse_option): Likewise.
950 (i386_target_format): Adjust for x86_64-darwin.
952 2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
954 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
955 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
956 (obj_mach_o_make_or_get_sect): Likewise.
957 (obj_mach_o_section): Split out the functionality shared with zerofill.
958 (obj_mach_o_zerofill): New.
959 (obj_mach_o_common_parse): Ensure whitespace is skipped.
960 (mach_o_pseudo_table): Add .zerofill.
962 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
964 * config/obj-macho.c (obj_macho_process_stab): New.
965 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
966 (obj_macho_process_stab): Declare.
968 For older changes see ChangeLog-2011
974 version-control: never