1 2012-05-16 Alberto Garcia <agarcia@igalia.com>
4 * app.c (do_scrub_chars): Prevent possible out of bounds access to
7 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
10 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
12 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
13 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
15 2012-05-16 Nathan Sidwell <nathan@codesourcery.com>
16 Kwok Cheung Yeung <kcy@codesourcery.com>
18 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
21 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
23 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
24 Add option to offset S12 addresses into XGATE memory space.
25 Tweak target flags to match other tools. (i.e. -m m68hc11).
26 * doc/as.texinfo: Mention new options.
27 * doc/c-m68hc11.texi: Document new options.
28 * NEWS: Mention new support.
30 2012-05-14 DJ Delorie <dj@redhat.com>
32 * config/rx-parse.y (rx_range): declare.
33 (O1,O2,O3,O4): Add calls to rx_range.
34 (UO1,UO2,UO3): Likewise.
35 (IMM2,IMMB): Likewise.
38 * config/tc-rx.c (rx_fetchalign): Declare.
39 (md_pseudo_table): Add .fetchalign.
40 (RX_NBASE_FETCHALIGN): New.
41 (fetchalign_bytes): New.
43 (rx_frag_init): If a "magic" value is found, also init the
44 machine-specific data.
45 (md_assemble): Note following opcode size if called for.
46 (rx_next_opcode): New.
47 (rx_relax_frag): Support .fetchalign.
48 (md_convert_frag): Likewise.
49 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
51 2012-05-14 James Lemke <jwlemke@codesourcery.com>
53 * config/tc-ppc.c (insn_validate): New func of existing code to call..
54 (ppc_setup_opcodes): ..from 2 places here.
55 Revise for second (VLE) opcode table.
56 Add #ifdef'd code to print opcode tables.
58 2012-05-14 James Lemke <jwlemke@codesourcery.com>
60 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
61 for the VLE conditional branches.
63 2012-05-14 Catherine Moore <clm@codesourcery.com>
64 Maciej W. Rozycki <macro@codesourcery.com>
65 Rhonda Wittels <rhonda@codesourcery.com>
67 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
68 (PPC_VLE_SPLIT16D): New macro.
69 (PPC_VLE_LO16A): New macro.
70 (PPC_VLE_LO16D): New macro.
71 (PPC_VLE_HI16A): New macro.
72 (PPC_VLE_HI16D): New macro.
73 (PPC_VLE_HA16A): New macro.
74 (PPC_VLE_HA16D): New macro.
75 (PPC_APUINFO_VLE): New definition.
76 (md_chars_to_number): New function.
77 (md_parse_option): Check for combinations of little
79 (md_show_usage): Document -mvle.
80 (ppc_arch): Recognize VLE.
81 (ppc_mach): Recognize bfd_mach_ppc_vle.
82 (ppc_setup_opcodes): Print the opcode table if
83 * config/tc-ppc.h (ppc_frag_check): Declare.
84 * doc/c-ppc.texi: Document -mvle.
85 * NEWS: Mention PowerPC VLE port.
87 2012-05-14 Catherine Moore <clm@codesourcery.com>
89 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
90 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
91 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
92 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
93 for DWARF2_LINE_MIN_INSN_LENGTH.
95 2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
97 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
100 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
103 * configure.in: Invoke ACX_HEADER_STRING.
104 * configure: Regenerate.
105 * config.in: Regenerate.
106 * as.h: If STRINGS_WITH_STRING is defined then include both
107 string.h and strings.h.
109 2012-05-11 Georg-Johann Lay <avr@gjlay.de
112 * config/tc-avr.c (exp_mod_pm): Remove variable.
113 (exp_mod_data_t): New typedef.
114 (pexp_mod_data, exp_mod_data): New variables.
115 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
116 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
117 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
118 (avr_cons_fix_new): Handle new data expression modifiers shipped
120 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
123 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
125 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
126 addend overflow check.
128 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
130 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
131 x32 addend overflow check.
133 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
135 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
137 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
139 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
142 2012-05-08 Alan Modra <amodra@gmail.com>
144 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
145 LC and LANG environment vars.
146 * Makefile.in: Regenerate.
148 2012-05-07 Alan Modra <amodra@gmail.com>
150 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
151 * Makefile.in: Regenerate.
153 2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
155 * config/tc-z80.h(md_register_arithmetic): Define as 0.
156 * config/tc-z80.c(md_begin): Store register names in symbol table,
157 preventing usage as ordinary symbol.
158 * config/tc-z80.c(contains_register): New function.
159 * config/tc-z80.c(parse_exp2): Removed.
160 * config/tc-z80.c(parse_exp_not_indexed): New function.
161 * config/tc-z80.c(parse_exp): Add code to recogize indexed
162 addressing after parsing.
163 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
164 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
165 condition for jump to register.
166 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
167 parse_exp_not_indexed.
169 2012-05-05 Alan Modra <amodra@gmail.com>
171 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
172 bfd_und_section and bfd_ind_section with their _ptr variants, or
173 use corresponding bfd_is_* macros.
174 * symbols.c: Likewise.
175 * config/obj-aout.c: Likewise.
176 * config/obj-coff-seh.h: Likewise.
177 * config/tc-hppa.c: Likewise.
178 * config/tc-hppa.h: Likewise.
179 * config/tc-ia64.c: Likewise.
180 * config/tc-m32r.c: Likewise.
181 * config/tc-microblaze.c: Likewise.
182 * config/tc-mips.c: Likewise.
183 * config/tc-score.c: Likewise.
184 * config/tc-score7.c: Likewise.
185 * config/tc-tic6x.c: Likewise.
187 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
189 * configure.tgt: Support x86_64-*-linux-gnux32.
191 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
193 * config/tc-i386.c (match_template): Add `instruction' to
194 unsupported error message.
196 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
198 * config/tc-i386.c (output_insn): Reformat.
200 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
202 * config/tc-i386.c (output_insn): Remove the extra VEX check.
204 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
206 * config/tc-i386.c (match_template): Improve unsupported error
209 2012-05-03 Sean Keys <skeys@ipdatasys.com>
211 * configure, Makefile.in: Regenerate.
212 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
213 * configure.tgt: Added cpu type.
214 Added files for XGATE assembler.
215 * config/tc-xgate.c: Assembler for XGATE.
216 * config/tc-xgate.h: Header definition for assembler
217 Added files for XGATE testsuite.
218 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
219 * doc/c-xgate.texi: Document XGATE and XGATE port.
220 * doc/as.texinfo: Ditto.
221 * doc/all.texi: Ditto
222 * NEWS: Mention the new support.
224 2012-04-30 DJ Delorie <dj@redhat.com>
226 * config/rx-parse.y (rx_intop): Add parameter for operation size.
227 Check for large positive constants really being small negative
229 (BRA, BSR): Update calls to rx_intop.
230 (immediate): Likewise.
232 2012-04-26 Mark Wielaard <mjw@redhat.com>
234 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
235 (DWARF2_LINE_VERSION): Likewise.
236 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
237 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
238 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
240 (out_debug_info): Use difference between start and end as data
241 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
242 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
244 2012-04-27 David S. Miller <davem@davemloft.net>
246 * doc/c-sparc.text: Document %l34 and %h34.
248 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
250 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
251 v8pluse, v8plusv, v9e, and v9v.
252 (v9a_asr_table): Add 'pause'.
254 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
255 sparc4, v8pluse, v8plusv, v9e, and v9v.
256 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
257 order to accomodate cbcond which otherwise would require two
258 relocations to be handled in a single instruction..
260 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
261 names containing "_".
262 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
263 hwcap masks to v8plusv and v9v.
265 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
267 (sparc_md_end): No longer need to translate hwcap_seen values into
268 ELF hwcap bits, they now match exactly.
269 (get_hwcap_name): Use HWCAP_* and handle new values.
270 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
272 2012-04-20 Tristan Gingold <gingold@adacore.com>
274 * config/tc-ia64.c (obj_elf_vms_common): New function.
275 (md_pseudo_table): Add .vms_common pseudo.
276 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
277 * config/obj-elf.c (obj_elf_section_name): Make it public.
279 2012-04-17 Richard Sandiford <r.sandiford@uk.ibm.com>
281 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
283 2012-04-12 David S. Miller <davem@davemloft.net>
285 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
287 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
288 (tc_gen_reloc): Likewise.
290 2012-04-12 Roland McGrath <mcgrathr@google.com>
292 * configure.tgt (arm-*-nacl*): Match it.
293 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
294 (LOCAL_LABELS_DOLLAR): Define.
295 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
296 Use nacl format variants.
298 2012-04-12 Jie Zhang <jie@codesourcery.com>
299 Meador Inge <meadori@codesourcery.com>
301 * config/tc-arm.c (only_one_reg_in_list): New function.
302 (encode_ldmstm): Ditto.
303 (do_ldmstm): Use a different encoding when pushing or poping
305 (A_COND_MASK): New macro.
306 (A_PUSH_POP_OP_MASK): Ditto.
307 (A1_OPCODE_PUSH): Ditto.
308 (A2_OPCODE_PUSH): Ditto.
309 (A2_OPCODE_POP): Ditto.
311 2012-04-06 Maciej W. Rozycki <macro@linux-mips.org>
313 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
316 2012-04-06 Roland McGrath <mcgrathr@google.com>
318 * configure.in (AC_CHECK_HEADERS): Add locale.h.
319 * config.in: Regenerate.
320 * configure: Regenerate.
322 2012-04-05 Nick Clifton <nickc@redhat.com>
324 * configure.in (AC_CHECK_FUNCS): Add setlocale.
325 (AM_LC_MESSAGES): Add.
326 * aclocal.m4: Regenerate.
327 * config.in: Regenerate.
328 * configure: Regenerate.
330 2012-04-03 DJ Delorie <dj@redhat.com>
332 * config/rx-parse.y: Make the .L optional for ADC and SBB.
334 2012-04-02 DJ Delorie <dj@redhat.com>
336 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
338 (IMM): New, call IMM_ with the default 32.
339 (IMMW,IMMB): Likewise, for 16 and 8.
340 (NIMM, MBIMM): Add size parameter.
341 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
342 (MOV.W): Use IMMW instead of IMM.
344 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
346 (op_dp20_rim_l): New.
348 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
349 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
351 2012-03-29 Terry Guo <terry.guo@arm.com>
353 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
354 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
356 2012-03-23 Maxim Kuvyrkov <maxim@codesourcery.com>
358 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
359 * doc/c-mips.texi: Mention XLP.
361 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
363 [SH] Support the .uaquad and .8byte directives also for non-sh64
366 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
368 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
370 * doc/c-sh.texi (SH Machine Directives): ... here.
372 2012-03-20 Nick Clifton <nickc@redhat.com>
374 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
377 (arm_opcode_insns): Do not default to using the FPSCR register in
378 the VMRS and VMSR registers.
380 2012-03-16 Roland McGrath <mcgrathr@google.com>
382 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
383 Define for this case.
384 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
386 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
388 * config/tc-arm.c (aeabi_set_public_attributes): Correct
389 handling of Tag_DIV_use.
391 2012-03-15 Thomas Schwinge <thomas@codesourcery.com>
393 * doc/as.texinfo (Bundle directives): Fix typo.
395 2012-03-14 Ryan Mansfield <rmansfield@qnx.com>
397 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
399 2012-03-13 Roland McGrath <mcgrathr@google.com>
401 * config/tc-arm.c (arm_frag_max_var): New function.
402 * config/tc-arm.h: Declare it.
403 (md_frag_max_var): New macro.
405 * config/tc-i386.c (i386_frag_max_var): New function.
406 * config/tc-i386.h: Declare it.
407 (md_frag_max_var): New macro.
409 * doc/as.texinfo (Bundle directives): New node.
410 (Pseudo Ops): Add it to the menu.
411 * NEWS: Mention new feature.
412 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
413 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
414 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
415 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
417 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
418 to md_assembly if not.
419 (read_a_source_file): Call assemble_one in place of md_assemble.
420 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
421 .bundle_lock at end of processing.
422 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
424 [HANDLE_BUNDLE] (potable): Add their entries.
425 * read.h: Declare new functions.
427 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
429 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
430 (ppc_handle_align): Add termination nop opcode for e500mc family.
431 * doc/as.texinfo: Document options -me5500 and -me6500.
432 * doc/c-ppc.texi: Likewise.
434 2012-03-07 Nick Clifton <nickc@redhat.com>
436 * config/tc-mn10300.c (other_registers): Add SSP and USP.
437 (md_assemble): Add support for TLS relocs.
438 (mn10300_parse_name): Likewise.
440 2012-02-27 Alan Modra <amodra@gmail.com>
442 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
444 2012-02-27 Alan Modra <amodra@gmail.com>
446 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
447 params. Properly generate NOP pattern. Comment reason for
448 subseg_text_p failure.
450 2012-02-27 Alan Modra <amodra@gmail.com>
452 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
453 and sign extend before range tests.
454 (constant_fits_size_p): Similarly.
455 (get_specific): Trim X_add_number to 32 bits.
456 (fix_operand_size): Likewise, and use unsigned test for signed
459 2012-02-27 Alan Modra <amodra@gmail.com>
461 * config/tc-crx.c: Include bfd_stdint.h.
462 (getconstant): Remove irrelevant comment. Don't fail due to
463 sign-extension of int mask.
464 (check_range): Rewrite using unsigned arithmetic throughout.
466 2012-02-25 Walter Lee <walt@tilera.com>
468 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
469 non-local before checking sy_value.
470 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
472 2012-02-25 Walter Lee <walt@tilera.com>
474 * tc-tilepro.c (O_tls_le): Define operator.
475 (O_tls_le_lo16): Ditto.
476 (O_tls_le_hi16): Ditto.
477 (O_tls_le_ha16): Ditto.
478 (O_tls_gd_call): Ditto.
479 (O_tls_gd_add): Ditto.
480 (O_tls_ie_load): Ditto.
481 (md_begin): Delete old operators; handle new operators.
482 (emit_tilepro_instruction): Ditto.
483 (md_apply_fix): Ditto.
484 * tc-tilegx.c (O_hw1_got): Delete operator.
487 (O_hw2_last_got): Ditto.
488 (O_hw1_tls_gd): Ditto.
489 (O_hw2_tls_gd): Ditto.
490 (O_hw3_tls_gd): Ditto.
491 (O_hw2_last_tls_gd): Ditto.
492 (O_hw1_tls_ie): Ditto.
493 (O_hw2_tls_ie): Ditto.
494 (O_hw3_tls_ie): Ditto.
495 (O_hw2_last_tls_ie): Ditto.
496 (O_hw0_tls_le): Define operator.
497 (O_hw0_last_tls_le): Ditto.
498 (O_hw1_last_tls_le): Ditto.
499 (O_tls_gd_call): Ditto.
500 (O_tls_gd_add): Ditto.
501 (O_tls_ie_load): Ditto.
503 (md_begin): Delete old operators; handle new operators.
504 (emit_tilegx_instruction): Ditto.
505 (md_apply_fix): Ditto.
506 * doc/c-tilegx.texi: Delete old operators; document new operators.
507 * doc/c-tilepro.texi: Ditto.
509 2012-02-25 Walter Lee <walt@tilera.com>
511 * tc-tilepro.c (apply_special_operator): delete cases for
512 got and tls operators.
513 (md_apply_fix): Ditto.
514 * tc-tilegx.c (md_begin): Set architecture and machine.
515 (tilegx_target_format): Handle big endian.
518 (md_longopts): Add entries for "EB" and "EL".
519 (md_parse_option): Handle OPTION_EB and OPTION_EL.
520 (md_show_usage): Add -EB and -EL.
521 (md_number_to_chars): New.
522 (apply_special_operator): delete cases for got and tls
524 (md_apply_fix): Ditto.
525 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
527 (md_number_to_chars): Delete.
528 * configure.tgt (tilegx*be): Handle.
529 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
530 * doc/c-tilegx.texi: Ditto.
532 2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
534 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
535 HLEPrefixAny and HLEPrefixRelease.
537 2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
539 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
541 2012-02-21 Iain Sandoe <idsandoe@googlemail.com>
543 * write.c (write_object_file): Add md_pre_output_hook.
544 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
545 (obj_mach_o_pre_output_hook): New.
546 * config/obj-macho.h (md_pre_output_hook): Define.
547 (obj_mach_o_pre_output_hook): Declare.
549 2012-02-21 Tristan Gingold <gingold@adacore.com>
551 * config/tc-i386.h (OBJ_MACH_O): New section.
552 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
553 (TC_FORCE_RELOCATION_SUB_SAME): New
554 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
555 (TC_VALIDATE_FIX_SUB): New.
556 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
557 * symbols.c (colon): obj_frob_colon: New hook.
558 * write.c (write_object_file): md_pre_relax_hook, new
560 * config/obj-macho.c (obj_mach_o_frob_colon): New.
561 (obj_mach_o_frob_label): Record sub-section labels.
562 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
563 (obj_mach_o_set_subsections): New.
564 (obj_mach_o_pre_relax_hook): New.
565 (obj_mach_o_in_different_subsection): New.
566 (obj_mach_o_force_reloc_sub_same): New.
567 (obj_mach_o_force_reloc_sub_local): New.
568 (obj_mach_o_force_reloc): New.
569 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
570 (obj_frob_colon): New Define.
571 (obj_mach_o_frob_label): Renamed.
572 (obj_mach_o_frob_symbol): Renamed.
573 (OBJ_FRAG_TYPE): New.
574 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
575 obj_mach_o_force_reloc_sub_same,
576 obj_mach_o_force_reloc_sub_local): New declarations.
578 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
580 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
581 (obj_mach_o_allow_local_subtract): New.
582 * config/obj-macho.h (md_allow_local_subtract): Define.
583 (obj_mach_o_allow_local_subtract): Declare.
585 2012-02-20 Iain Sandoe <idsandoe@googlemail.com>
587 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
588 canonical information, try to determine CODE and DEBUG section flags
589 from the mach-o section data.
591 2012-02-20 Nick Clifton <nickc@redhat.com>
593 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
596 2012-02-12 Iain Sandoe <idsandoe@googlemail.com>
598 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
599 any local symbol used as an indirect.
601 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
603 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
604 stub size when provided. (obj_mach_o_section): Flag that stub-size
607 2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
609 * config/tc-i386.c (HLE_PREFIX): New.
610 (check_hle): Likewise.
611 (_i386_insn): Add have_hle.
612 (cpu_arch): Add .hle and .rtm.
613 (md_assemble): Call check_hle if i.have_hle isn't zero.
614 (parse_insn): Set i.have_hle to 1 for HLE prefix.
615 (output_jump): Support up to 2 byte opcode.
617 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
619 2012-02-02 Tristan Gingold <gingold@adacore.com>
621 * config/obj-macho.c (obj_mach_o_zerofill): Silent
622 uninitialized variable warning.
624 2012-02-02 Nick Clifton <nickc@redhat.com>
627 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
628 to 'is_clone' to avoid shadowing a gloabl.
629 (obj_elf_section): Likewise.
631 2012-01-31 Paul Brook <paul@codesourcery.com>
633 * doc/c-tic6x.c: Fix typo.
635 2012-01-26 Alexey Makhalov <makhaloff@gmail.com>
638 * app.c (app_push): Set 'add_newlines' to zero after saving.
640 2012-01-24 DJ Delorie <dj@redhat.com>
642 * config/rl78-parse.y (NOT1): Add.
644 2012-01-23 Roland McGrath <mcgrathr@google.com>
646 * configure.tgt (i386-*-nacl*): Match it.
647 * config/te-nacl.h: New file.
648 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
649 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
650 Use TE_GNU et al case for TE_NACL too.
652 2012-01-20 H.J. Lu <hongjiu.lu@intel.com>
654 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
656 (md_assemble): Updated.
657 (output_branch): Likewise.
658 (parse_insn): Support .d8 suffix.
659 (build_modrm_byte): Fake zero displacement for .d8 and .d32
662 * doc/c-i386.texi: Document .d8 suffix.
664 2012-01-17 Andrew Burgess <aburgess@broadcom.com>
666 * write.c (fix_new_internal): Don't mark used parameter as unused.
668 2012-01-17 Alan Modra <amodra@gmail.com>
670 * as.c (parse_args): Update copyright message year.
672 2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
674 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
676 * doc/c-i386.texi: Document vmfunc.
678 2012-01-13 Tristan Gingold <gingold@adacore.com>
680 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
681 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
682 (obj_mach_o_reorder_section_relocs): Declare.
684 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
686 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
687 absolute indirect symbols.
689 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
691 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
692 (obj_mach_o_set_section_vma): New.
693 (obj_mach_o_post_relax_hook): New.
694 * config/obj-macho.h (md_post_relax_hook): Define.
695 (obj_mach_o_post_relax_hook): Declare.
697 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
699 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
700 lazy when the symbol is private_extern.
701 (obj_mach_o_indirect_sym): New type.
702 (obj_mach_o_indirect_symbol): New.
703 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
704 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
705 (obj_macho_frob_label): Likewise. Adjust external and comm
707 (obj_mach_o_set_indirect_symbols): New.
708 (obj_mach_o_frob_file_after_relocs): New.
709 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
710 (obj_mach_o_frob_file_after_relocs): Declare.
712 2012-01-12 Tristan Gingold <gingold@adacore.com>
715 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
717 2012-01-10 Tristan Gingold <gingold@adacore.com>
719 * struc-symbol.h (struct symbol_flags): New struct, created from...
720 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
721 (struct local_symbol): Replace lsy_marker field by lsy_flags.
723 (local_symbol_resolved_p): Adjust.
724 (local_symbol_mark_resolved): Likewise.
725 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
726 (local_symbol_make, local_symbol_convert, colon)
727 (symbol_clone_if_forward_ref, verify_symbol_chain)
728 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
729 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
730 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
731 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
732 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
733 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
734 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
735 (symbol_mark_mri_common, symbol_clear_mri_common)
736 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
737 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
738 (symbol_equated_reloc_p, dot_symbol_init)
739 (print_symbol_value_1): Adjust.
741 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
743 * config/obj-macho.c (obj_mach_o_weak): Remove.
744 (obj_mach_o_common_parse): Set symbol qualifiers.
745 (LAZY, REFE): New macros.
746 (obj_mach_o_symbol_type): New enum.
747 (obj_mach_o_set_symbol_qualifier): New.
748 (obj_mach_o_sym_qual): New.
749 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
751 (obj_mach_o_type_for_symbol): New.
752 (obj_macho_frob_label): New.
753 (obj_macho_frob_symbol): New.
754 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
755 (obj_frob_label, obj_macho_frob_label): Declare.
756 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
758 2012-01-08 Richard Sandiford <rdsandiford@googlemail.com>
760 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
762 2012-01-08 Andrew Pinski <andrew.pinski@caviumnetworks.com>
763 Richard Sandiford <rdsandiford@googlemail.com>
765 * config/tc-mips.c (mips_move_labels): Take the list of labels and
766 textness as parameters.
767 (mips_move_text_labels): New function.
768 (append_insn): Use it instead of mips_move_labels.
769 (mips_emit_delays, start_noreorder): Likewise.
770 (mips_align): Take the labels rather than just one label.
771 Move all labels to after the .align.
772 (s_align): Change the last argument to mips_align.
774 (s_float_cons): Likewise.
775 (s_gpword): Likewise.
776 (s_gpdword): Likewise.
778 2012-01-06 Tristan Gingold <gingold@adacore.com>
780 * config/tc-i386.c: Update copyright year.
781 (lex_got): Also defined for Mach-O.
782 Add a guard for non-ELF configuration.
783 (md_longopts): Also handle -64 for Mach-O.
784 (md_parse_option): Likewise.
785 (i386_target_format): Adjust for x86_64-darwin.
787 2012-01-04 Iain Sandoe <idsandoe@googlemail.com>
789 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
790 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
791 (obj_mach_o_make_or_get_sect): Likewise.
792 (obj_mach_o_section): Split out the functionality shared with zerofill.
793 (obj_mach_o_zerofill): New.
794 (obj_mach_o_common_parse): Ensure whitespace is skipped.
795 (mach_o_pseudo_table): Add .zerofill.
797 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
799 * config/obj-macho.c (obj_macho_process_stab): New.
800 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
801 (obj_macho_process_stab): Declare.
803 For older changes see ChangeLog-2011
809 version-control: never