3 * po/gas.pot: Updated template.
4 * po/es.po: Updated Spanish translation.
5 * po/fi.po: Updated Finnish translation.
6 * po/fr.po: Updated French translation.
10 * configure.in (BFD_VERSION): Run bfd/configure --version and
11 parse the output of that.
12 * configure: Regenerate.
16 * NEWS: Add marker for 2.23.
20 * config/tc-m68hc11.c: Replace binary with hex for cygwin.
24 * listing.c (struct list_message): New.
25 (struct list_info_struct): Delete "message". Add "messages"
27 (listing_message): Adjust.
28 (listing_newline): Adjust.
29 (print_lines): Adjust.
33 * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
34 xmm/ymm index register being specified first as well as esp/rsp
35 base register being specified last in a memory operand.
39 * config/tc-i386-intel.c (i386_intel_simplify_register):
40 Replace literal 4 by corresponding ESP_REG_NUM.
45 * config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
46 if offset is negative.
50 * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
51 * doc/c-i386.texi: Document the new directives.
54 * config/tc-xgate.c: Revised assembler so that operands
55 are collected before the addressing mode is determined.
59 * write.c (fixup_segment): Only perform the subtraction of an
60 fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
62 * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
67 * config/obj-elf.c (obj_elf_weak): Don't set local.
71 * frags.h (frag_offset_fixed_p): Update prototype.
72 * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
73 * expr.c (expr, resolve_expression): Likewise for frag_off var.
78 * config/tc-arm.c (parse_operands): Initialise val.
83 * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
84 message if literal pool addressing is used.
88 * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
90 (dwarf2_gen_line_info): Generate real, local, labels for line
92 (dwarf2dbg_convert_frag): Do not finalize the computation of the
93 frag's symbol value when linker relaxation is enabled.
94 (ADDR_DELTA_LIMIT): Define.
95 (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
96 (emit_fixed_inc_line_addr): Likewise.
97 * write.c (fixup_segment): If the subtraction of two symbols
98 cannot be resolved but is valid, then prevent bogus range warnings
99 by pre-biasing add_number.
100 * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
104 * config/tc-xgate.h: Defined tc_frob_symbol.
105 * config/tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
106 symbols as being XGATE by setting st_target_internal value.
110 * NEWS: Mention 'rep ret' too.
112 * config/tc-i386.c (parse_insn): Don't complain about REP prefix
113 when the template has opcode_modifier.repprefixok set.
114 * NEWS: Mention the change.
118 * configure.in: Check DECLS for free, getenv, malloc, realloc,
119 * configure: Regenerate.
120 * config.in: Likewise.
124 * config/tc-i386.c (x86_address_bytes): New.
125 * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
126 (x86_address_bytes): Likewise.
131 * config/tc-arm.c (do_t_mrs): Do not require an m-profile
132 architecure when assembling for all archiectures.
133 (do_t_msr): Likewise.
138 * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
143 * input-scrub.c (input_scrub_include_sb): Use sb_build to
144 allocate sufficient space for from_sb. Use sb_terminate to
146 * read.c (read_a_source_file): Use sb_build to allocate
147 sufficient space and replace sb_add_string with sb_add_buffer.
149 (input_scrub_insert_line): Likewise.
150 (s_irp): Use sb_build to allocate sufficient space.
151 (do_repeat): Use sb_build to allocate sufficient space
153 * sb.c (sb_build): Remove static.
154 * sb.h (sb_build): New prototype.
158 * sb.c: Include limits.h.
160 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
161 (sb_new): Use INIT_ALLOC.
162 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
163 (sb_terminate): Don't use sb_add_char.
168 * sb.h (sb_max_power_two): Delete.
169 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
170 (sb_element): Delete.
171 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
173 * sb.c (string_count, free_list): Delete.
174 (sb_build, sb_kill, sb_check): Rewrite.
175 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
176 sb_skip_white, sb_skip_comma): Replace assorted int params,
177 vars and return types with size_t.
178 * input-scrub.c: Likewise.
183 * input-file.h: Likewise.
184 * input-file.c: Likewise.
186 * app.c: ..or ptrdiff_t.
187 * input-file.c (input_file_get): Use ferror.
188 (input_file_give_next_buffer): Use input_file_get.
192 * config/tc-xgate.c (md_begin): Refactored code.
196 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
197 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
198 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
203 * read.c (read_symbol_name): New function. Reads a symbol names.
204 Allows escape codes in names.
205 (s_comm_internal): Use read_symbol_name.
206 (s_globl, s_lsym, s_set, s_weakref): Likewise.
207 * doc/as.texinfo: Document support for multibyte characters in
212 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
217 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
218 targets when checking for "comdat".
222 * config/tc-dlx.c (s_proc): Don't use asprintf.
226 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
232 * config/tc-ppc.c: Don't capitalise error and warning messages.
233 (md_parse_option): Add checks for -a32 -mvle.
237 * config/obj-evax.c: Include as.h first.
241 * aclocal.m4: Regenerate.
242 * configure: Regenerate.
243 * Makefile.in: Regenerate.
249 * configure.in: Add check that sysdep.h has been included before
250 any system header files.
251 * configure: Regenerate.
252 * config.in: Regenerate.
253 * aclocal.m4: Regenerate.
254 * Makefile.am: Use wrappers around C files generated by flex.
255 * Makefile.in: Regenerate.
256 * doc/Makefile.in: Regenerate.
257 * itbl-lex-wrapper.c: New file.
258 * config/bfin-lex-wrapper.c: New file.
259 * cgen.c: Include as.h before setjmp.h.
260 * config/tc-dlx.c: Include as.h before any other header.
261 * config/tc-h8300.c: Likewise.
262 * config/tc-lm32.c: Likewise.
263 * config/tc-mep.c: Likewise.
264 * config/tc-microblaze.c: Likewise.
265 * config/tc-mmix.c: Likewise.
266 * config/tc-msp430.c: Likewise.
267 * config/tc-or32.c: Likewise.
268 * config/tc-tic4x.c: Likewise.
269 * config/tc-tic54x.c: Likewise.
270 * config/tc-xtensa.c: Likewise.
274 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
275 as the first argument for `bfd_get_section_vma'.
280 * app.c (do_scrub_chars): Prevent possible out of bounds access to
286 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
288 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
289 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
294 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
299 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
300 Add option to offset S12 addresses into XGATE memory space.
301 Tweak target flags to match other tools. (i.e. -m m68hc11).
302 * doc/as.texinfo: Mention new options.
303 * doc/c-m68hc11.texi: Document new options.
304 * NEWS: Mention new support.
308 * config/rx-parse.y (rx_range): declare.
309 (O1,O2,O3,O4): Add calls to rx_range.
310 (UO1,UO2,UO3): Likewise.
311 (IMM2,IMMB): Likewise.
314 * config/tc-rx.c (rx_fetchalign): Declare.
315 (md_pseudo_table): Add .fetchalign.
316 (RX_NBASE_FETCHALIGN): New.
317 (fetchalign_bytes): New.
318 (rx_fetchalign): New.
319 (rx_frag_init): If a "magic" value is found, also init the
320 machine-specific data.
321 (md_assemble): Note following opcode size if called for.
322 (rx_next_opcode): New.
323 (rx_relax_frag): Support .fetchalign.
324 (md_convert_frag): Likewise.
325 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
329 * config/tc-ppc.c (insn_validate): New func of existing code to call..
330 (ppc_setup_opcodes): ..from 2 places here.
331 Revise for second (VLE) opcode table.
332 Add #ifdef'd code to print opcode tables.
336 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
337 for the VLE conditional branches.
343 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
344 (PPC_VLE_SPLIT16D): New macro.
345 (PPC_VLE_LO16A): New macro.
346 (PPC_VLE_LO16D): New macro.
347 (PPC_VLE_HI16A): New macro.
348 (PPC_VLE_HI16D): New macro.
349 (PPC_VLE_HA16A): New macro.
350 (PPC_VLE_HA16D): New macro.
351 (PPC_APUINFO_VLE): New definition.
352 (md_chars_to_number): New function.
353 (md_parse_option): Check for combinations of little
355 (md_show_usage): Document -mvle.
356 (ppc_arch): Recognize VLE.
357 (ppc_mach): Recognize bfd_mach_ppc_vle.
358 (ppc_setup_opcodes): Print the opcode table if
359 * config/tc-ppc.h (ppc_frag_check): Declare.
360 * doc/c-ppc.texi: Document -mvle.
361 * NEWS: Mention PowerPC VLE port.
365 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
366 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
367 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
368 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
369 for DWARF2_LINE_MIN_INSN_LENGTH.
373 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
379 * configure.in: Invoke ACX_HEADER_STRING.
380 * configure: Regenerate.
381 * config.in: Regenerate.
382 * as.h: If STRINGS_WITH_STRING is defined then include both
383 string.h and strings.h.
388 * config/tc-avr.c (exp_mod_pm): Remove variable.
389 (exp_mod_data_t): New typedef.
390 (pexp_mod_data, exp_mod_data): New variables.
391 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
392 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
393 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
394 (avr_cons_fix_new): Handle new data expression modifiers shipped
396 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
401 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
402 addend overflow check.
406 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
407 x32 addend overflow check.
411 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
415 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
420 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
421 LC and LANG environment vars.
422 * Makefile.in: Regenerate.
426 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
427 * Makefile.in: Regenerate.
431 * config/tc-z80.h(md_register_arithmetic): Define as 0.
432 * config/tc-z80.c(md_begin): Store register names in symbol table,
433 preventing usage as ordinary symbol.
434 * config/tc-z80.c(contains_register): New function.
435 * config/tc-z80.c(parse_exp2): Removed.
436 * config/tc-z80.c(parse_exp_not_indexed): New function.
437 * config/tc-z80.c(parse_exp): Add code to recogize indexed
438 addressing after parsing.
439 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
440 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
441 condition for jump to register.
442 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
443 parse_exp_not_indexed.
447 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
448 bfd_und_section and bfd_ind_section with their _ptr variants, or
449 use corresponding bfd_is_* macros.
450 * symbols.c: Likewise.
451 * config/obj-aout.c: Likewise.
452 * config/obj-coff-seh.h: Likewise.
453 * config/tc-hppa.c: Likewise.
454 * config/tc-hppa.h: Likewise.
455 * config/tc-ia64.c: Likewise.
456 * config/tc-m32r.c: Likewise.
457 * config/tc-microblaze.c: Likewise.
458 * config/tc-mips.c: Likewise.
459 * config/tc-score.c: Likewise.
460 * config/tc-score7.c: Likewise.
461 * config/tc-tic6x.c: Likewise.
465 * configure.tgt: Support x86_64-*-linux-gnux32.
469 * config/tc-i386.c (match_template): Add `instruction' to
470 unsupported error message.
474 * config/tc-i386.c (output_insn): Reformat.
478 * config/tc-i386.c (output_insn): Remove the extra VEX check.
482 * config/tc-i386.c (match_template): Improve unsupported error
487 * configure, Makefile.in: Regenerate.
488 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
489 * configure.tgt: Added cpu type.
490 Added files for XGATE assembler.
491 * config/tc-xgate.c: Assembler for XGATE.
492 * config/tc-xgate.h: Header definition for assembler
493 Added files for XGATE testsuite.
494 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
495 * doc/c-xgate.texi: Document XGATE and XGATE port.
496 * doc/as.texinfo: Ditto.
497 * doc/all.texi: Ditto
498 * NEWS: Mention the new support.
502 * config/rx-parse.y (rx_intop): Add parameter for operation size.
503 Check for large positive constants really being small negative
505 (BRA, BSR): Update calls to rx_intop.
506 (immediate): Likewise.
510 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
511 (DWARF2_LINE_VERSION): Likewise.
512 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
513 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
514 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
516 (out_debug_info): Use difference between start and end as data
517 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
518 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
522 * doc/c-sparc.text: Document %l34 and %h34.
524 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
526 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
527 v8pluse, v8plusv, v9e, and v9v.
528 (v9a_asr_table): Add 'pause'.
530 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
531 sparc4, v8pluse, v8plusv, v9e, and v9v.
532 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
533 order to accomodate cbcond which otherwise would require two
534 relocations to be handled in a single instruction..
536 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
537 names containing "_".
538 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
539 hwcap masks to v8plusv and v9v.
541 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
543 (sparc_md_end): No longer need to translate hwcap_seen values into
544 ELF hwcap bits, they now match exactly.
545 (get_hwcap_name): Use HWCAP_* and handle new values.
546 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
550 * config/tc-ia64.c (obj_elf_vms_common): New function.
551 (md_pseudo_table): Add .vms_common pseudo.
552 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
553 * config/obj-elf.c (obj_elf_section_name): Make it public.
557 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
561 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
563 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
564 (tc_gen_reloc): Likewise.
568 * configure.tgt (arm-*-nacl*): Match it.
569 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
570 (LOCAL_LABELS_DOLLAR): Define.
571 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
572 Use nacl format variants.
577 * config/tc-arm.c (only_one_reg_in_list): New function.
578 (encode_ldmstm): Ditto.
579 (do_ldmstm): Use a different encoding when pushing or poping
581 (A_COND_MASK): New macro.
582 (A_PUSH_POP_OP_MASK): Ditto.
583 (A1_OPCODE_PUSH): Ditto.
584 (A2_OPCODE_PUSH): Ditto.
585 (A2_OPCODE_POP): Ditto.
589 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
594 * configure.in (AC_CHECK_HEADERS): Add locale.h.
595 * config.in: Regenerate.
596 * configure: Regenerate.
600 * configure.in (AC_CHECK_FUNCS): Add setlocale.
601 (AM_LC_MESSAGES): Add.
602 * aclocal.m4: Regenerate.
603 * config.in: Regenerate.
604 * configure: Regenerate.
608 * config/rx-parse.y: Make the .L optional for ADC and SBB.
612 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
614 (IMM): New, call IMM_ with the default 32.
615 (IMMW,IMMB): Likewise, for 16 and 8.
616 (NIMM, MBIMM): Add size parameter.
617 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
618 (MOV.W): Use IMMW instead of IMM.
620 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
622 (op_dp20_rim_l): New.
624 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
625 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
629 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
630 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
634 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
635 * doc/c-mips.texi: Mention XLP.
639 [SH] Support the .uaquad and .8byte directives also for non-sh64
642 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
644 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
646 * doc/c-sh.texi (SH Machine Directives): ... here.
650 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
653 (arm_opcode_insns): Do not default to using the FPSCR register in
654 the VMRS and VMSR registers.
658 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
659 Define for this case.
660 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
664 * config/tc-arm.c (aeabi_set_public_attributes): Correct
665 handling of Tag_DIV_use.
669 * doc/as.texinfo (Bundle directives): Fix typo.
673 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
677 * config/tc-arm.c (arm_frag_max_var): New function.
678 * config/tc-arm.h: Declare it.
679 (md_frag_max_var): New macro.
681 * config/tc-i386.c (i386_frag_max_var): New function.
682 * config/tc-i386.h: Declare it.
683 (md_frag_max_var): New macro.
685 * doc/as.texinfo (Bundle directives): New node.
686 (Pseudo Ops): Add it to the menu.
687 * NEWS: Mention new feature.
688 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
689 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
690 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
691 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
693 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
694 to md_assembly if not.
695 (read_a_source_file): Call assemble_one in place of md_assemble.
696 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
697 .bundle_lock at end of processing.
698 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
700 [HANDLE_BUNDLE] (potable): Add their entries.
701 * read.h: Declare new functions.
705 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
706 (ppc_handle_align): Add termination nop opcode for e500mc family.
707 * doc/as.texinfo: Document options -me5500 and -me6500.
708 * doc/c-ppc.texi: Likewise.
712 * config/tc-mn10300.c (other_registers): Add SSP and USP.
713 (md_assemble): Add support for TLS relocs.
714 (mn10300_parse_name): Likewise.
718 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
722 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
723 params. Properly generate NOP pattern. Comment reason for
724 subseg_text_p failure.
728 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
729 and sign extend before range tests.
730 (constant_fits_size_p): Similarly.
731 (get_specific): Trim X_add_number to 32 bits.
732 (fix_operand_size): Likewise, and use unsigned test for signed
737 * config/tc-crx.c: Include bfd_stdint.h.
738 (getconstant): Remove irrelevant comment. Don't fail due to
739 sign-extension of int mask.
740 (check_range): Rewrite using unsigned arithmetic throughout.
744 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
745 non-local before checking sy_value.
746 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
750 * tc-tilepro.c (O_tls_le): Define operator.
751 (O_tls_le_lo16): Ditto.
752 (O_tls_le_hi16): Ditto.
753 (O_tls_le_ha16): Ditto.
754 (O_tls_gd_call): Ditto.
755 (O_tls_gd_add): Ditto.
756 (O_tls_ie_load): Ditto.
757 (md_begin): Delete old operators; handle new operators.
758 (emit_tilepro_instruction): Ditto.
759 (md_apply_fix): Ditto.
760 * tc-tilegx.c (O_hw1_got): Delete operator.
763 (O_hw2_last_got): Ditto.
764 (O_hw1_tls_gd): Ditto.
765 (O_hw2_tls_gd): Ditto.
766 (O_hw3_tls_gd): Ditto.
767 (O_hw2_last_tls_gd): Ditto.
768 (O_hw1_tls_ie): Ditto.
769 (O_hw2_tls_ie): Ditto.
770 (O_hw3_tls_ie): Ditto.
771 (O_hw2_last_tls_ie): Ditto.
772 (O_hw0_tls_le): Define operator.
773 (O_hw0_last_tls_le): Ditto.
774 (O_hw1_last_tls_le): Ditto.
775 (O_tls_gd_call): Ditto.
776 (O_tls_gd_add): Ditto.
777 (O_tls_ie_load): Ditto.
779 (md_begin): Delete old operators; handle new operators.
780 (emit_tilegx_instruction): Ditto.
781 (md_apply_fix): Ditto.
782 * doc/c-tilegx.texi: Delete old operators; document new operators.
783 * doc/c-tilepro.texi: Ditto.
787 * tc-tilepro.c (apply_special_operator): delete cases for
788 got and tls operators.
789 (md_apply_fix): Ditto.
790 * tc-tilegx.c (md_begin): Set architecture and machine.
791 (tilegx_target_format): Handle big endian.
794 (md_longopts): Add entries for "EB" and "EL".
795 (md_parse_option): Handle OPTION_EB and OPTION_EL.
796 (md_show_usage): Add -EB and -EL.
797 (md_number_to_chars): New.
798 (apply_special_operator): delete cases for got and tls
800 (md_apply_fix): Ditto.
801 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
803 (md_number_to_chars): Delete.
804 * configure.tgt (tilegx*be): Handle.
805 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
806 * doc/c-tilegx.texi: Ditto.
810 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
811 HLEPrefixAny and HLEPrefixRelease.
815 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
819 * write.c (write_object_file): Add md_pre_output_hook.
820 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
821 (obj_mach_o_pre_output_hook): New.
822 * config/obj-macho.h (md_pre_output_hook): Define.
823 (obj_mach_o_pre_output_hook): Declare.
827 * config/tc-i386.h (OBJ_MACH_O): New section.
828 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
829 (TC_FORCE_RELOCATION_SUB_SAME): New
830 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
831 (TC_VALIDATE_FIX_SUB): New.
832 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
833 * symbols.c (colon): obj_frob_colon: New hook.
834 * write.c (write_object_file): md_pre_relax_hook, new
836 * config/obj-macho.c (obj_mach_o_frob_colon): New.
837 (obj_mach_o_frob_label): Record sub-section labels.
838 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
839 (obj_mach_o_set_subsections): New.
840 (obj_mach_o_pre_relax_hook): New.
841 (obj_mach_o_in_different_subsection): New.
842 (obj_mach_o_force_reloc_sub_same): New.
843 (obj_mach_o_force_reloc_sub_local): New.
844 (obj_mach_o_force_reloc): New.
845 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
846 (obj_frob_colon): New Define.
847 (obj_mach_o_frob_label): Renamed.
848 (obj_mach_o_frob_symbol): Renamed.
849 (OBJ_FRAG_TYPE): New.
850 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
851 obj_mach_o_force_reloc_sub_same,
852 obj_mach_o_force_reloc_sub_local): New declarations.
856 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
857 (obj_mach_o_allow_local_subtract): New.
858 * config/obj-macho.h (md_allow_local_subtract): Define.
859 (obj_mach_o_allow_local_subtract): Declare.
863 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
864 canonical information, try to determine CODE and DEBUG section flags
865 from the mach-o section data.
869 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
874 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
875 any local symbol used as an indirect.
879 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
880 stub size when provided. (obj_mach_o_section): Flag that stub-size
885 * config/tc-i386.c (HLE_PREFIX): New.
886 (check_hle): Likewise.
887 (_i386_insn): Add have_hle.
888 (cpu_arch): Add .hle and .rtm.
889 (md_assemble): Call check_hle if i.have_hle isn't zero.
890 (parse_insn): Set i.have_hle to 1 for HLE prefix.
891 (output_jump): Support up to 2 byte opcode.
893 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
897 * config/obj-macho.c (obj_mach_o_zerofill): Silent
898 uninitialized variable warning.
903 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
904 to 'is_clone' to avoid shadowing a gloabl.
905 (obj_elf_section): Likewise.
909 * doc/c-tic6x.c: Fix typo.
914 * app.c (app_push): Set 'add_newlines' to zero after saving.
918 * config/rl78-parse.y (NOT1): Add.
922 * configure.tgt (i386-*-nacl*): Match it.
923 * config/te-nacl.h: New file.
924 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
925 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
926 Use TE_GNU et al case for TE_NACL too.
930 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
932 (md_assemble): Updated.
933 (output_branch): Likewise.
934 (parse_insn): Support .d8 suffix.
935 (build_modrm_byte): Fake zero displacement for .d8 and .d32
938 * doc/c-i386.texi: Document .d8 suffix.
942 * write.c (fix_new_internal): Don't mark used parameter as unused.
946 * as.c (parse_args): Update copyright message year.
950 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
952 * doc/c-i386.texi: Document vmfunc.
956 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
957 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
958 (obj_mach_o_reorder_section_relocs): Declare.
962 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
963 absolute indirect symbols.
967 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
968 (obj_mach_o_set_section_vma): New.
969 (obj_mach_o_post_relax_hook): New.
970 * config/obj-macho.h (md_post_relax_hook): Define.
971 (obj_mach_o_post_relax_hook): Declare.
975 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
976 lazy when the symbol is private_extern.
977 (obj_mach_o_indirect_sym): New type.
978 (obj_mach_o_indirect_symbol): New.
979 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
980 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
981 (obj_macho_frob_label): Likewise. Adjust external and comm
983 (obj_mach_o_set_indirect_symbols): New.
984 (obj_mach_o_frob_file_after_relocs): New.
985 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
986 (obj_mach_o_frob_file_after_relocs): Declare.
991 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
995 * struc-symbol.h (struct symbol_flags): New struct, created from...
996 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
997 (struct local_symbol): Replace lsy_marker field by lsy_flags.
999 (local_symbol_resolved_p): Adjust.
1000 (local_symbol_mark_resolved): Likewise.
1001 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
1002 (local_symbol_make, local_symbol_convert, colon)
1003 (symbol_clone_if_forward_ref, verify_symbol_chain)
1004 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
1005 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
1006 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
1007 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
1008 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
1009 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
1010 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
1011 (symbol_mark_mri_common, symbol_clear_mri_common)
1012 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
1013 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
1014 (symbol_equated_reloc_p, dot_symbol_init)
1015 (print_symbol_value_1): Adjust.
1019 * config/obj-macho.c (obj_mach_o_weak): Remove.
1020 (obj_mach_o_common_parse): Set symbol qualifiers.
1021 (LAZY, REFE): New macros.
1022 (obj_mach_o_symbol_type): New enum.
1023 (obj_mach_o_set_symbol_qualifier): New.
1024 (obj_mach_o_sym_qual): New.
1025 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
1027 (obj_mach_o_type_for_symbol): New.
1028 (obj_macho_frob_label): New.
1029 (obj_macho_frob_symbol): New.
1030 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
1031 (obj_frob_label, obj_macho_frob_label): Declare.
1032 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
1036 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
1041 * config/tc-mips.c (mips_move_labels): Take the list of labels and
1042 textness as parameters.
1043 (mips_move_text_labels): New function.
1044 (append_insn): Use it instead of mips_move_labels.
1045 (mips_emit_delays, start_noreorder): Likewise.
1046 (mips_align): Take the labels rather than just one label.
1047 Move all labels to after the .align.
1048 (s_align): Change the last argument to mips_align.
1050 (s_float_cons): Likewise.
1051 (s_gpword): Likewise.
1052 (s_gpdword): Likewise.
1056 * config/tc-i386.c: Update copyright year.
1057 (lex_got): Also defined for Mach-O.
1058 Add a guard for non-ELF configuration.
1059 (md_longopts): Also handle -64 for Mach-O.
1060 (md_parse_option): Likewise.
1061 (i386_target_format): Adjust for x86_64-darwin.
1065 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1066 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1067 (obj_mach_o_make_or_get_sect): Likewise.
1068 (obj_mach_o_section): Split out the functionality shared with zerofill.
1069 (obj_mach_o_zerofill): New.
1070 (obj_mach_o_common_parse): Ensure whitespace is skipped.
1071 (mach_o_pseudo_table): Add .zerofill.
1075 * config/obj-macho.c (obj_macho_process_stab): New.
1076 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1077 (obj_macho_process_stab): Declare.
1079 For older changes see ChangeLog-2011
1085 version-control: never