1 2012-06-09 Alan Modra <amodra@gmail.com>
3 * sb.c: Include limits.h.
5 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
6 (sb_new): Use INIT_ALLOC.
7 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
8 (sb_terminate): Don't use sb_add_char.
10 2012-06-07 Alan Modra <amodra@gmail.com>
13 * sb.h (sb_max_power_two): Delete.
14 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
16 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
18 * sb.c (string_count, free_list): Delete.
19 (sb_build, sb_kill, sb_check): Rewrite.
20 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
21 sb_skip_white, sb_skip_comma): Replace assorted int params,
22 vars and return types with size_t.
23 * input-scrub.c: Likewise.
28 * input-file.h: Likewise.
29 * input-file.c: Likewise.
31 * app.c: ..or ptrdiff_t.
32 * input-file.c (input_file_get): Use ferror.
33 (input_file_give_next_buffer): Use input_file_get.
35 2012-05-29 Roland McGrath <mcgrathr@google.com>
37 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
38 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
39 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
42 2012-05-28 Nick Clifton <nickc@redhat.com>
44 * read.c (read_symbol_name): New function. Reads a symbol names.
45 Allows escape codes in names.
46 (s_comm_internal): Use read_symbol_name.
47 (s_globl, s_lsym, s_set, s_weakref): Likewise.
48 * doc/as.texinfo: Document support for multibyte characters in
51 2012-05-21 Mike Frysinger <vapier@gentoo.org>
53 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
56 2012-05-19 Alan Modra <amodra@gmail.com>
58 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
59 targets when checking for "comdat".
61 2012-05-19 Alan Modra <amodra@gmail.com>
63 * config/tc-dlx.c (s_proc): Don't use asprintf.
65 2012-05-18 Alan Modra <amodra@gmail.com>
67 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
70 2012-05-18 James Lemke <jwlemke@codesourcery.com>
71 Alan Modra <amodra@gmail.com>
73 * config/tc-ppc.c: Don't capitalise error and warning messages.
74 (md_parse_option): Add checks for -a32 -mvle.
76 2012-05-18 Alan Modra <amodra@gmail.com>
78 * config/obj-evax.c: Include as.h first.
80 2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
82 * aclocal.m4: Regenerate.
83 * configure: Regenerate.
84 * Makefile.in: Regenerate.
86 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
87 Nick Clifton <nickc@redhat.com>
90 * configure.in: Add check that sysdep.h has been included before
91 any system header files.
92 * configure: Regenerate.
93 * config.in: Regenerate.
94 * aclocal.m4: Regenerate.
95 * Makefile.am: Use wrappers around C files generated by flex.
96 * Makefile.in: Regenerate.
97 * doc/Makefile.in: Regenerate.
98 * itbl-lex-wrapper.c: New file.
99 * config/bfin-lex-wrapper.c: New file.
100 * cgen.c: Include as.h before setjmp.h.
101 * config/tc-dlx.c: Include as.h before any other header.
102 * config/tc-h8300.c: Likewise.
103 * config/tc-lm32.c: Likewise.
104 * config/tc-mep.c: Likewise.
105 * config/tc-microblaze.c: Likewise.
106 * config/tc-mmix.c: Likewise.
107 * config/tc-msp430.c: Likewise.
108 * config/tc-or32.c: Likewise.
109 * config/tc-tic4x.c: Likewise.
110 * config/tc-tic54x.c: Likewise.
111 * config/tc-xtensa.c: Likewise.
113 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
115 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
116 as the first argument for `bfd_get_section_vma'.
118 2012-05-16 Alberto Garcia <agarcia@igalia.com>
121 * app.c (do_scrub_chars): Prevent possible out of bounds access to
124 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
127 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
129 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
130 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
132 2012-05-16 Nathan Sidwell <nathan@codesourcery.com>
133 Kwok Cheung Yeung <kcy@codesourcery.com>
135 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
138 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
140 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
141 Add option to offset S12 addresses into XGATE memory space.
142 Tweak target flags to match other tools. (i.e. -m m68hc11).
143 * doc/as.texinfo: Mention new options.
144 * doc/c-m68hc11.texi: Document new options.
145 * NEWS: Mention new support.
147 2012-05-14 DJ Delorie <dj@redhat.com>
149 * config/rx-parse.y (rx_range): declare.
150 (O1,O2,O3,O4): Add calls to rx_range.
151 (UO1,UO2,UO3): Likewise.
152 (IMM2,IMMB): Likewise.
155 * config/tc-rx.c (rx_fetchalign): Declare.
156 (md_pseudo_table): Add .fetchalign.
157 (RX_NBASE_FETCHALIGN): New.
158 (fetchalign_bytes): New.
159 (rx_fetchalign): New.
160 (rx_frag_init): If a "magic" value is found, also init the
161 machine-specific data.
162 (md_assemble): Note following opcode size if called for.
163 (rx_next_opcode): New.
164 (rx_relax_frag): Support .fetchalign.
165 (md_convert_frag): Likewise.
166 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
168 2012-05-14 James Lemke <jwlemke@codesourcery.com>
170 * config/tc-ppc.c (insn_validate): New func of existing code to call..
171 (ppc_setup_opcodes): ..from 2 places here.
172 Revise for second (VLE) opcode table.
173 Add #ifdef'd code to print opcode tables.
175 2012-05-14 James Lemke <jwlemke@codesourcery.com>
177 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
178 for the VLE conditional branches.
180 2012-05-14 Catherine Moore <clm@codesourcery.com>
181 Maciej W. Rozycki <macro@codesourcery.com>
182 Rhonda Wittels <rhonda@codesourcery.com>
184 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
185 (PPC_VLE_SPLIT16D): New macro.
186 (PPC_VLE_LO16A): New macro.
187 (PPC_VLE_LO16D): New macro.
188 (PPC_VLE_HI16A): New macro.
189 (PPC_VLE_HI16D): New macro.
190 (PPC_VLE_HA16A): New macro.
191 (PPC_VLE_HA16D): New macro.
192 (PPC_APUINFO_VLE): New definition.
193 (md_chars_to_number): New function.
194 (md_parse_option): Check for combinations of little
196 (md_show_usage): Document -mvle.
197 (ppc_arch): Recognize VLE.
198 (ppc_mach): Recognize bfd_mach_ppc_vle.
199 (ppc_setup_opcodes): Print the opcode table if
200 * config/tc-ppc.h (ppc_frag_check): Declare.
201 * doc/c-ppc.texi: Document -mvle.
202 * NEWS: Mention PowerPC VLE port.
204 2012-05-14 Catherine Moore <clm@codesourcery.com>
206 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
207 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
208 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
209 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
210 for DWARF2_LINE_MIN_INSN_LENGTH.
212 2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
214 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
217 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
220 * configure.in: Invoke ACX_HEADER_STRING.
221 * configure: Regenerate.
222 * config.in: Regenerate.
223 * as.h: If STRINGS_WITH_STRING is defined then include both
224 string.h and strings.h.
226 2012-05-11 Georg-Johann Lay <avr@gjlay.de
229 * config/tc-avr.c (exp_mod_pm): Remove variable.
230 (exp_mod_data_t): New typedef.
231 (pexp_mod_data, exp_mod_data): New variables.
232 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
233 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
234 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
235 (avr_cons_fix_new): Handle new data expression modifiers shipped
237 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
240 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
242 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
243 addend overflow check.
245 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
247 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
248 x32 addend overflow check.
250 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
252 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
254 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
256 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
259 2012-05-08 Alan Modra <amodra@gmail.com>
261 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
262 LC and LANG environment vars.
263 * Makefile.in: Regenerate.
265 2012-05-07 Alan Modra <amodra@gmail.com>
267 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
268 * Makefile.in: Regenerate.
270 2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
272 * config/tc-z80.h(md_register_arithmetic): Define as 0.
273 * config/tc-z80.c(md_begin): Store register names in symbol table,
274 preventing usage as ordinary symbol.
275 * config/tc-z80.c(contains_register): New function.
276 * config/tc-z80.c(parse_exp2): Removed.
277 * config/tc-z80.c(parse_exp_not_indexed): New function.
278 * config/tc-z80.c(parse_exp): Add code to recogize indexed
279 addressing after parsing.
280 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
281 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
282 condition for jump to register.
283 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
284 parse_exp_not_indexed.
286 2012-05-05 Alan Modra <amodra@gmail.com>
288 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
289 bfd_und_section and bfd_ind_section with their _ptr variants, or
290 use corresponding bfd_is_* macros.
291 * symbols.c: Likewise.
292 * config/obj-aout.c: Likewise.
293 * config/obj-coff-seh.h: Likewise.
294 * config/tc-hppa.c: Likewise.
295 * config/tc-hppa.h: Likewise.
296 * config/tc-ia64.c: Likewise.
297 * config/tc-m32r.c: Likewise.
298 * config/tc-microblaze.c: Likewise.
299 * config/tc-mips.c: Likewise.
300 * config/tc-score.c: Likewise.
301 * config/tc-score7.c: Likewise.
302 * config/tc-tic6x.c: Likewise.
304 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
306 * configure.tgt: Support x86_64-*-linux-gnux32.
308 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
310 * config/tc-i386.c (match_template): Add `instruction' to
311 unsupported error message.
313 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
315 * config/tc-i386.c (output_insn): Reformat.
317 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
319 * config/tc-i386.c (output_insn): Remove the extra VEX check.
321 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
323 * config/tc-i386.c (match_template): Improve unsupported error
326 2012-05-03 Sean Keys <skeys@ipdatasys.com>
328 * configure, Makefile.in: Regenerate.
329 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
330 * configure.tgt: Added cpu type.
331 Added files for XGATE assembler.
332 * config/tc-xgate.c: Assembler for XGATE.
333 * config/tc-xgate.h: Header definition for assembler
334 Added files for XGATE testsuite.
335 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
336 * doc/c-xgate.texi: Document XGATE and XGATE port.
337 * doc/as.texinfo: Ditto.
338 * doc/all.texi: Ditto
339 * NEWS: Mention the new support.
341 2012-04-30 DJ Delorie <dj@redhat.com>
343 * config/rx-parse.y (rx_intop): Add parameter for operation size.
344 Check for large positive constants really being small negative
346 (BRA, BSR): Update calls to rx_intop.
347 (immediate): Likewise.
349 2012-04-26 Mark Wielaard <mjw@redhat.com>
351 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
352 (DWARF2_LINE_VERSION): Likewise.
353 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
354 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
355 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
357 (out_debug_info): Use difference between start and end as data
358 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
359 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
361 2012-04-27 David S. Miller <davem@davemloft.net>
363 * doc/c-sparc.text: Document %l34 and %h34.
365 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
367 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
368 v8pluse, v8plusv, v9e, and v9v.
369 (v9a_asr_table): Add 'pause'.
371 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
372 sparc4, v8pluse, v8plusv, v9e, and v9v.
373 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
374 order to accomodate cbcond which otherwise would require two
375 relocations to be handled in a single instruction..
377 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
378 names containing "_".
379 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
380 hwcap masks to v8plusv and v9v.
382 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
384 (sparc_md_end): No longer need to translate hwcap_seen values into
385 ELF hwcap bits, they now match exactly.
386 (get_hwcap_name): Use HWCAP_* and handle new values.
387 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
389 2012-04-20 Tristan Gingold <gingold@adacore.com>
391 * config/tc-ia64.c (obj_elf_vms_common): New function.
392 (md_pseudo_table): Add .vms_common pseudo.
393 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
394 * config/obj-elf.c (obj_elf_section_name): Make it public.
396 2012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
398 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
400 2012-04-12 David S. Miller <davem@davemloft.net>
402 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
404 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
405 (tc_gen_reloc): Likewise.
407 2012-04-12 Roland McGrath <mcgrathr@google.com>
409 * configure.tgt (arm-*-nacl*): Match it.
410 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
411 (LOCAL_LABELS_DOLLAR): Define.
412 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
413 Use nacl format variants.
415 2012-04-12 Jie Zhang <jie@codesourcery.com>
416 Meador Inge <meadori@codesourcery.com>
418 * config/tc-arm.c (only_one_reg_in_list): New function.
419 (encode_ldmstm): Ditto.
420 (do_ldmstm): Use a different encoding when pushing or poping
422 (A_COND_MASK): New macro.
423 (A_PUSH_POP_OP_MASK): Ditto.
424 (A1_OPCODE_PUSH): Ditto.
425 (A2_OPCODE_PUSH): Ditto.
426 (A2_OPCODE_POP): Ditto.
428 2012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
430 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
433 2012-04-06 Roland McGrath <mcgrathr@google.com>
435 * configure.in (AC_CHECK_HEADERS): Add locale.h.
436 * config.in: Regenerate.
437 * configure: Regenerate.
439 2012-04-05 Nick Clifton <nickc@redhat.com>
441 * configure.in (AC_CHECK_FUNCS): Add setlocale.
442 (AM_LC_MESSAGES): Add.
443 * aclocal.m4: Regenerate.
444 * config.in: Regenerate.
445 * configure: Regenerate.
447 2012-04-03 DJ Delorie <dj@redhat.com>
449 * config/rx-parse.y: Make the .L optional for ADC and SBB.
451 2012-04-02 DJ Delorie <dj@redhat.com>
453 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
455 (IMM): New, call IMM_ with the default 32.
456 (IMMW,IMMB): Likewise, for 16 and 8.
457 (NIMM, MBIMM): Add size parameter.
458 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
459 (MOV.W): Use IMMW instead of IMM.
461 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
463 (op_dp20_rim_l): New.
465 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
466 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
468 2012-03-29 Terry Guo <terry.guo@arm.com>
470 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
471 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
473 2012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
475 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
476 * doc/c-mips.texi: Mention XLP.
478 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
480 [SH] Support the .uaquad and .8byte directives also for non-sh64
483 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
485 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
487 * doc/c-sh.texi (SH Machine Directives): ... here.
489 2012-03-20 Nick Clifton <nickc@redhat.com>
491 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
494 (arm_opcode_insns): Do not default to using the FPSCR register in
495 the VMRS and VMSR registers.
497 2012-03-16 Roland McGrath <mcgrathr@google.com>
499 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
500 Define for this case.
501 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
503 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
505 * config/tc-arm.c (aeabi_set_public_attributes): Correct
506 handling of Tag_DIV_use.
508 2012-03-15 Thomas Schwinge <thomas@codesourcery.com>
510 * doc/as.texinfo (Bundle directives): Fix typo.
512 2012-03-14 Ryan Mansfield <rmansfield@qnx.com>
514 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
516 2012-03-13 Roland McGrath <mcgrathr@google.com>
518 * config/tc-arm.c (arm_frag_max_var): New function.
519 * config/tc-arm.h: Declare it.
520 (md_frag_max_var): New macro.
522 * config/tc-i386.c (i386_frag_max_var): New function.
523 * config/tc-i386.h: Declare it.
524 (md_frag_max_var): New macro.
526 * doc/as.texinfo (Bundle directives): New node.
527 (Pseudo Ops): Add it to the menu.
528 * NEWS: Mention new feature.
529 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
530 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
531 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
532 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
534 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
535 to md_assembly if not.
536 (read_a_source_file): Call assemble_one in place of md_assemble.
537 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
538 .bundle_lock at end of processing.
539 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
541 [HANDLE_BUNDLE] (potable): Add their entries.
542 * read.h: Declare new functions.
544 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
546 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
547 (ppc_handle_align): Add termination nop opcode for e500mc family.
548 * doc/as.texinfo: Document options -me5500 and -me6500.
549 * doc/c-ppc.texi: Likewise.
551 2012-03-07 Nick Clifton <nickc@redhat.com>
553 * config/tc-mn10300.c (other_registers): Add SSP and USP.
554 (md_assemble): Add support for TLS relocs.
555 (mn10300_parse_name): Likewise.
557 2012-02-27 Alan Modra <amodra@gmail.com>
559 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
561 2012-02-27 Alan Modra <amodra@gmail.com>
563 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
564 params. Properly generate NOP pattern. Comment reason for
565 subseg_text_p failure.
567 2012-02-27 Alan Modra <amodra@gmail.com>
569 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
570 and sign extend before range tests.
571 (constant_fits_size_p): Similarly.
572 (get_specific): Trim X_add_number to 32 bits.
573 (fix_operand_size): Likewise, and use unsigned test for signed
576 2012-02-27 Alan Modra <amodra@gmail.com>
578 * config/tc-crx.c: Include bfd_stdint.h.
579 (getconstant): Remove irrelevant comment. Don't fail due to
580 sign-extension of int mask.
581 (check_range): Rewrite using unsigned arithmetic throughout.
583 2012-02-25 Walter Lee <walt@tilera.com>
585 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
586 non-local before checking sy_value.
587 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
589 2012-02-25 Walter Lee <walt@tilera.com>
591 * tc-tilepro.c (O_tls_le): Define operator.
592 (O_tls_le_lo16): Ditto.
593 (O_tls_le_hi16): Ditto.
594 (O_tls_le_ha16): Ditto.
595 (O_tls_gd_call): Ditto.
596 (O_tls_gd_add): Ditto.
597 (O_tls_ie_load): Ditto.
598 (md_begin): Delete old operators; handle new operators.
599 (emit_tilepro_instruction): Ditto.
600 (md_apply_fix): Ditto.
601 * tc-tilegx.c (O_hw1_got): Delete operator.
604 (O_hw2_last_got): Ditto.
605 (O_hw1_tls_gd): Ditto.
606 (O_hw2_tls_gd): Ditto.
607 (O_hw3_tls_gd): Ditto.
608 (O_hw2_last_tls_gd): Ditto.
609 (O_hw1_tls_ie): Ditto.
610 (O_hw2_tls_ie): Ditto.
611 (O_hw3_tls_ie): Ditto.
612 (O_hw2_last_tls_ie): Ditto.
613 (O_hw0_tls_le): Define operator.
614 (O_hw0_last_tls_le): Ditto.
615 (O_hw1_last_tls_le): Ditto.
616 (O_tls_gd_call): Ditto.
617 (O_tls_gd_add): Ditto.
618 (O_tls_ie_load): Ditto.
620 (md_begin): Delete old operators; handle new operators.
621 (emit_tilegx_instruction): Ditto.
622 (md_apply_fix): Ditto.
623 * doc/c-tilegx.texi: Delete old operators; document new operators.
624 * doc/c-tilepro.texi: Ditto.
626 2012-02-25 Walter Lee <walt@tilera.com>
628 * tc-tilepro.c (apply_special_operator): delete cases for
629 got and tls operators.
630 (md_apply_fix): Ditto.
631 * tc-tilegx.c (md_begin): Set architecture and machine.
632 (tilegx_target_format): Handle big endian.
635 (md_longopts): Add entries for "EB" and "EL".
636 (md_parse_option): Handle OPTION_EB and OPTION_EL.
637 (md_show_usage): Add -EB and -EL.
638 (md_number_to_chars): New.
639 (apply_special_operator): delete cases for got and tls
641 (md_apply_fix): Ditto.
642 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
644 (md_number_to_chars): Delete.
645 * configure.tgt (tilegx*be): Handle.
646 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
647 * doc/c-tilegx.texi: Ditto.
649 2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
651 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
652 HLEPrefixAny and HLEPrefixRelease.
654 2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
656 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
658 2012-02-21 Iain Sandoe <idsandoe@googlemail.com>
660 * write.c (write_object_file): Add md_pre_output_hook.
661 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
662 (obj_mach_o_pre_output_hook): New.
663 * config/obj-macho.h (md_pre_output_hook): Define.
664 (obj_mach_o_pre_output_hook): Declare.
666 2012-02-21 Tristan Gingold <gingold@adacore.com>
668 * config/tc-i386.h (OBJ_MACH_O): New section.
669 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
670 (TC_FORCE_RELOCATION_SUB_SAME): New
671 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
672 (TC_VALIDATE_FIX_SUB): New.
673 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
674 * symbols.c (colon): obj_frob_colon: New hook.
675 * write.c (write_object_file): md_pre_relax_hook, new
677 * config/obj-macho.c (obj_mach_o_frob_colon): New.
678 (obj_mach_o_frob_label): Record sub-section labels.
679 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
680 (obj_mach_o_set_subsections): New.
681 (obj_mach_o_pre_relax_hook): New.
682 (obj_mach_o_in_different_subsection): New.
683 (obj_mach_o_force_reloc_sub_same): New.
684 (obj_mach_o_force_reloc_sub_local): New.
685 (obj_mach_o_force_reloc): New.
686 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
687 (obj_frob_colon): New Define.
688 (obj_mach_o_frob_label): Renamed.
689 (obj_mach_o_frob_symbol): Renamed.
690 (OBJ_FRAG_TYPE): New.
691 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
692 obj_mach_o_force_reloc_sub_same,
693 obj_mach_o_force_reloc_sub_local): New declarations.
695 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
697 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
698 (obj_mach_o_allow_local_subtract): New.
699 * config/obj-macho.h (md_allow_local_subtract): Define.
700 (obj_mach_o_allow_local_subtract): Declare.
702 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
704 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
705 canonical information, try to determine CODE and DEBUG section flags
706 from the mach-o section data.
708 2012-02-20 Nick Clifton <nickc@redhat.com>
710 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
713 2012-02-12 Iain Sandoe <idsandoe@googlemail.com>
715 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
716 any local symbol used as an indirect.
718 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
720 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
721 stub size when provided. (obj_mach_o_section): Flag that stub-size
724 2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
726 * config/tc-i386.c (HLE_PREFIX): New.
727 (check_hle): Likewise.
728 (_i386_insn): Add have_hle.
729 (cpu_arch): Add .hle and .rtm.
730 (md_assemble): Call check_hle if i.have_hle isn't zero.
731 (parse_insn): Set i.have_hle to 1 for HLE prefix.
732 (output_jump): Support up to 2 byte opcode.
734 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
736 2012-02-02 Tristan Gingold <gingold@adacore.com>
738 * config/obj-macho.c (obj_mach_o_zerofill): Silent
739 uninitialized variable warning.
741 2012-02-02 Nick Clifton <nickc@redhat.com>
744 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
745 to 'is_clone' to avoid shadowing a gloabl.
746 (obj_elf_section): Likewise.
748 2012-01-31 Paul Brook <paul@codesourcery.com>
750 * doc/c-tic6x.c: Fix typo.
752 2012-01-26 Alexey Makhalov <makhaloff@gmail.com>
755 * app.c (app_push): Set 'add_newlines' to zero after saving.
757 2012-01-24 DJ Delorie <dj@redhat.com>
759 * config/rl78-parse.y (NOT1): Add.
761 2012-01-23 Roland McGrath <mcgrathr@google.com>
763 * configure.tgt (i386-*-nacl*): Match it.
764 * config/te-nacl.h: New file.
765 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
766 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
767 Use TE_GNU et al case for TE_NACL too.
769 2012-01-20 H.J. Lu <hongjiu.lu@intel.com>
771 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
773 (md_assemble): Updated.
774 (output_branch): Likewise.
775 (parse_insn): Support .d8 suffix.
776 (build_modrm_byte): Fake zero displacement for .d8 and .d32
779 * doc/c-i386.texi: Document .d8 suffix.
781 2012-01-17 Andrew Burgess <aburgess@broadcom.com>
783 * write.c (fix_new_internal): Don't mark used parameter as unused.
785 2012-01-17 Alan Modra <amodra@gmail.com>
787 * as.c (parse_args): Update copyright message year.
789 2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
791 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
793 * doc/c-i386.texi: Document vmfunc.
795 2012-01-13 Tristan Gingold <gingold@adacore.com>
797 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
798 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
799 (obj_mach_o_reorder_section_relocs): Declare.
801 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
803 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
804 absolute indirect symbols.
806 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
808 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
809 (obj_mach_o_set_section_vma): New.
810 (obj_mach_o_post_relax_hook): New.
811 * config/obj-macho.h (md_post_relax_hook): Define.
812 (obj_mach_o_post_relax_hook): Declare.
814 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
816 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
817 lazy when the symbol is private_extern.
818 (obj_mach_o_indirect_sym): New type.
819 (obj_mach_o_indirect_symbol): New.
820 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
821 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
822 (obj_macho_frob_label): Likewise. Adjust external and comm
824 (obj_mach_o_set_indirect_symbols): New.
825 (obj_mach_o_frob_file_after_relocs): New.
826 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
827 (obj_mach_o_frob_file_after_relocs): Declare.
829 2012-01-12 Tristan Gingold <gingold@adacore.com>
832 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
834 2012-01-10 Tristan Gingold <gingold@adacore.com>
836 * struc-symbol.h (struct symbol_flags): New struct, created from...
837 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
838 (struct local_symbol): Replace lsy_marker field by lsy_flags.
840 (local_symbol_resolved_p): Adjust.
841 (local_symbol_mark_resolved): Likewise.
842 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
843 (local_symbol_make, local_symbol_convert, colon)
844 (symbol_clone_if_forward_ref, verify_symbol_chain)
845 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
846 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
847 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
848 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
849 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
850 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
851 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
852 (symbol_mark_mri_common, symbol_clear_mri_common)
853 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
854 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
855 (symbol_equated_reloc_p, dot_symbol_init)
856 (print_symbol_value_1): Adjust.
858 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
860 * config/obj-macho.c (obj_mach_o_weak): Remove.
861 (obj_mach_o_common_parse): Set symbol qualifiers.
862 (LAZY, REFE): New macros.
863 (obj_mach_o_symbol_type): New enum.
864 (obj_mach_o_set_symbol_qualifier): New.
865 (obj_mach_o_sym_qual): New.
866 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
868 (obj_mach_o_type_for_symbol): New.
869 (obj_macho_frob_label): New.
870 (obj_macho_frob_symbol): New.
871 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
872 (obj_frob_label, obj_macho_frob_label): Declare.
873 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
875 2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
877 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
879 2012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
880 Richard Sandiford <rdsandiford@googlemail.com>
882 * config/tc-mips.c (mips_move_labels): Take the list of labels and
883 textness as parameters.
884 (mips_move_text_labels): New function.
885 (append_insn): Use it instead of mips_move_labels.
886 (mips_emit_delays, start_noreorder): Likewise.
887 (mips_align): Take the labels rather than just one label.
888 Move all labels to after the .align.
889 (s_align): Change the last argument to mips_align.
891 (s_float_cons): Likewise.
892 (s_gpword): Likewise.
893 (s_gpdword): Likewise.
895 2012-01-06 Tristan Gingold <gingold@adacore.com>
897 * config/tc-i386.c: Update copyright year.
898 (lex_got): Also defined for Mach-O.
899 Add a guard for non-ELF configuration.
900 (md_longopts): Also handle -64 for Mach-O.
901 (md_parse_option): Likewise.
902 (i386_target_format): Adjust for x86_64-darwin.
904 2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
906 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
907 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
908 (obj_mach_o_make_or_get_sect): Likewise.
909 (obj_mach_o_section): Split out the functionality shared with zerofill.
910 (obj_mach_o_zerofill): New.
911 (obj_mach_o_common_parse): Ensure whitespace is skipped.
912 (mach_o_pseudo_table): Add .zerofill.
914 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
916 * config/obj-macho.c (obj_macho_process_stab): New.
917 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
918 (obj_macho_process_stab): Declare.
920 For older changes see ChangeLog-2011
926 version-control: never