3 * gas/dwarf2dbg.c (out_set_addr): Allow for non-constant value of
4 DWARF2_LINE_MIN_INSN_LENGTH
5 * gas/config/tc-ppc.c (ppc_dwarf2_line_min_insn_length): Declare
7 (md_apply_fix): Branch addr can be a multiple of 2 or 4.
8 * gas/config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Now a
15 * config/tc-mips.c (ISA_SUPPORTS_DSP_ASE): Also set if microMIPS
17 (ISA_SUPPORTS_DSPR2_ASE): Likewise.
18 (macro_build) <'2'>: Handle microMIPS.
19 (macro) <M_BALIGN>: Update error handling.
20 (validate_micromips_insn) <'2', '3', '4', '5', '6'>: New cases.
21 <'7', '8', '0', '@', '^'>: Likewise.
22 (mips_ip) <'2', '3', '4', '5', '6', '7', '8'>: Handle microMIPS.
23 <'9'>: Fix formatting.
24 <'0', '@'>: Handle microMIPS.
29 * config/tc-i386.c (match_template): Adjust error message
34 * config/tc-i386.c (check_byte_reg): Check for I/O port
35 register earlier, and just once. Drop diagnostic that got
36 issued only for some registers.
40 * config/tc-i386.c (match_template): New local variable
41 'specific_error'. Set it from i.error after failed
42 check_VecOperands or VEX_check_operands. Use it if set in
43 preference to i.error when actually issuing disagnostic.
47 * po/gas.pot: Updated template.
48 * po/es.po: Updated Spanish translation.
49 * po/fi.po: Updated Finnish translation.
50 * po/fr.po: Updated French translation.
54 * configure.in (BFD_VERSION): Run bfd/configure --version and
55 parse the output of that.
56 * configure: Regenerate.
60 * NEWS: Add marker for 2.23.
64 * config/tc-m68hc11.c: Replace binary with hex for cygwin.
68 * listing.c (struct list_message): New.
69 (struct list_info_struct): Delete "message". Add "messages"
71 (listing_message): Adjust.
72 (listing_newline): Adjust.
73 (print_lines): Adjust.
77 * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
78 xmm/ymm index register being specified first as well as esp/rsp
79 base register being specified last in a memory operand.
83 * config/tc-i386-intel.c (i386_intel_simplify_register):
84 Replace literal 4 by corresponding ESP_REG_NUM.
89 * config/tc-arm.c (md_apply_fix): Use encoding A2 of ADR
90 if offset is negative.
94 * config/tc-i386.c: Add ADX, RDSEED and PRFCHW asm directives.
95 * doc/c-i386.texi: Document the new directives.
98 * config/tc-xgate.c: Revised assembler so that operands
99 are collected before the addressing mode is determined.
103 * write.c (fixup_segment): Only perform the subtraction of an
104 fx_subsy symbol if MD_APPLY_SYM_VALUE allows it and the symbol is
106 * config/tc-msp430.h (MD_APPLY_SYM_VALUE): Define.
111 * config/obj-elf.c (obj_elf_weak): Don't set local.
115 * frags.h (frag_offset_fixed_p): Update prototype.
116 * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT.
117 * expr.c (expr, resolve_expression): Likewise for frag_off var.
122 * config/tc-arm.c (parse_operands): Initialise val.
127 * config/tc-arm.c (encode_arm_addr_mode_common): Generate an error
128 message if literal pool addressing is used.
132 * dwarf2dbg.c (DWARF2_USE_FIXED_ADVANCE_PC): Enable when using
134 (dwarf2_gen_line_info): Generate real, local, labels for line
136 (dwarf2dbg_convert_frag): Do not finalize the computation of the
137 frag's symbol value when linker relaxation is enabled.
138 (ADDR_DELTA_LIMIT): Define.
139 (size_fixed_inc_line_addr): Use ADDR_DELTA_LIMIT.
140 (emit_fixed_inc_line_addr): Likewise.
141 * write.c (fixup_segment): If the subtraction of two symbols
142 cannot be resolved but is valid, then prevent bogus range warnings
143 by pre-biasing add_number.
144 * config/tc-h8300.h (DWARF2_USE_FIXED_ADVANCE_PC): Define to 0.
148 * config/tc-xgate.h: Defined tc_frob_symbol.
149 * config/tc-xgate.c (xgate_frob_symbol): Wrote new function to mark
150 symbols as being XGATE by setting st_target_internal value.
154 * NEWS: Mention 'rep ret' too.
156 * config/tc-i386.c (parse_insn): Don't complain about REP prefix
157 when the template has opcode_modifier.repprefixok set.
158 * NEWS: Mention the change.
162 * configure.in: Check DECLS for free, getenv, malloc, realloc,
163 * configure: Regenerate.
164 * config.in: Likewise.
168 * config/tc-i386.c (x86_address_bytes): New.
169 * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
170 (x86_address_bytes): Likewise.
175 * config/tc-arm.c (do_t_mrs): Do not require an m-profile
176 architecure when assembling for all archiectures.
177 (do_t_msr): Likewise.
182 * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82
187 * input-scrub.c (input_scrub_include_sb): Use sb_build to
188 allocate sufficient space for from_sb. Use sb_terminate to
190 * read.c (read_a_source_file): Use sb_build to allocate
191 sufficient space and replace sb_add_string with sb_add_buffer.
193 (input_scrub_insert_line): Likewise.
194 (s_irp): Use sb_build to allocate sufficient space.
195 (do_repeat): Use sb_build to allocate sufficient space
197 * sb.c (sb_build): Remove static.
198 * sb.h (sb_build): New prototype.
202 * sb.c: Include limits.h.
204 (MALLOC_OVERHEAD, INIT_ALLOC): Define.
205 (sb_new): Use INIT_ALLOC.
206 (sb_check): Modify allocation strategy using MALLOC_OVERHEAD.
207 (sb_terminate): Don't use sb_add_char.
212 * sb.h (sb_max_power_two): Delete.
213 (struct sb): Delete "item" and "pot". Make "len" a size_t. Add "max".
214 (sb_element): Delete.
215 (sb_add_char, sb_add_buffer, sb_skip_comma, sb_skip_write): Update
217 * sb.c (string_count, free_list): Delete.
218 (sb_build, sb_kill, sb_check): Rewrite.
219 (scrub_from_sb, sb_add_char, sb_add_string, sb_add_buffer,
220 sb_skip_white, sb_skip_comma): Replace assorted int params,
221 vars and return types with size_t.
222 * input-scrub.c: Likewise.
227 * input-file.h: Likewise.
228 * input-file.c: Likewise.
230 * app.c: ..or ptrdiff_t.
231 * input-file.c (input_file_get): Use ferror.
232 (input_file_give_next_buffer): Use input_file_get.
236 * config/tc-xgate.c (md_begin): Refactored code.
240 * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable.
241 (read_a_source_file) [HANDLE_BUNDLE]: Reset it.
242 [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested
247 * read.c (read_symbol_name): New function. Reads a symbol names.
248 Allows escape codes in names.
249 (s_comm_internal): Use read_symbol_name.
250 (s_globl, s_lsym, s_set, s_weakref): Likewise.
251 * doc/as.texinfo: Document support for multibyte characters in
256 * config/tc-mips.c (mips_after_parse_args): Assert that arch_info
261 * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
262 targets when checking for "comdat".
266 * config/tc-dlx.c (s_proc): Don't use asprintf.
270 * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
276 * config/tc-ppc.c: Don't capitalise error and warning messages.
277 (md_parse_option): Add checks for -a32 -mvle.
281 * config/obj-evax.c: Include as.h first.
285 * aclocal.m4: Regenerate.
286 * configure: Regenerate.
287 * Makefile.in: Regenerate.
293 * configure.in: Add check that sysdep.h has been included before
294 any system header files.
295 * configure: Regenerate.
296 * config.in: Regenerate.
297 * aclocal.m4: Regenerate.
298 * Makefile.am: Use wrappers around C files generated by flex.
299 * Makefile.in: Regenerate.
300 * doc/Makefile.in: Regenerate.
301 * itbl-lex-wrapper.c: New file.
302 * config/bfin-lex-wrapper.c: New file.
303 * cgen.c: Include as.h before setjmp.h.
304 * config/tc-dlx.c: Include as.h before any other header.
305 * config/tc-h8300.c: Likewise.
306 * config/tc-lm32.c: Likewise.
307 * config/tc-mep.c: Likewise.
308 * config/tc-microblaze.c: Likewise.
309 * config/tc-mmix.c: Likewise.
310 * config/tc-msp430.c: Likewise.
311 * config/tc-or32.c: Likewise.
312 * config/tc-tic4x.c: Likewise.
313 * config/tc-tic54x.c: Likewise.
314 * config/tc-xtensa.c: Likewise.
318 * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd'
319 as the first argument for `bfd_get_section_vma'.
324 * app.c (do_scrub_chars): Prevent possible out of bounds access to
330 * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
332 (exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
333 (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
338 * config/tc-m68k.c (m68k_cpus): Add 51ag, 51je, 51jf, 51jg, 51mm,
343 * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
344 Add option to offset S12 addresses into XGATE memory space.
345 Tweak target flags to match other tools. (i.e. -m m68hc11).
346 * doc/as.texinfo: Mention new options.
347 * doc/c-m68hc11.texi: Document new options.
348 * NEWS: Mention new support.
352 * config/rx-parse.y (rx_range): declare.
353 (O1,O2,O3,O4): Add calls to rx_range.
354 (UO1,UO2,UO3): Likewise.
355 (IMM2,IMMB): Likewise.
358 * config/tc-rx.c (rx_fetchalign): Declare.
359 (md_pseudo_table): Add .fetchalign.
360 (RX_NBASE_FETCHALIGN): New.
361 (fetchalign_bytes): New.
362 (rx_fetchalign): New.
363 (rx_frag_init): If a "magic" value is found, also init the
364 machine-specific data.
365 (md_assemble): Note following opcode size if called for.
366 (rx_next_opcode): New.
367 (rx_relax_frag): Support .fetchalign.
368 (md_convert_frag): Likewise.
369 * doc/c-rx.texi (RX-Directives): Add .fetchalign.
373 * config/tc-ppc.c (insn_validate): New func of existing code to call..
374 (ppc_setup_opcodes): ..from 2 places here.
375 Revise for second (VLE) opcode table.
376 Add #ifdef'd code to print opcode tables.
380 * config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
381 for the VLE conditional branches.
387 * config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
388 (PPC_VLE_SPLIT16D): New macro.
389 (PPC_VLE_LO16A): New macro.
390 (PPC_VLE_LO16D): New macro.
391 (PPC_VLE_HI16A): New macro.
392 (PPC_VLE_HI16D): New macro.
393 (PPC_VLE_HA16A): New macro.
394 (PPC_VLE_HA16D): New macro.
395 (PPC_APUINFO_VLE): New definition.
396 (md_chars_to_number): New function.
397 (md_parse_option): Check for combinations of little
399 (md_show_usage): Document -mvle.
400 (ppc_arch): Recognize VLE.
401 (ppc_mach): Recognize bfd_mach_ppc_vle.
402 (ppc_setup_opcodes): Print the opcode table if
403 * config/tc-ppc.h (ppc_frag_check): Declare.
404 * doc/c-ppc.texi: Document -mvle.
405 * NEWS: Mention PowerPC VLE port.
409 * config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
410 (DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
411 * config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
412 * dwarf2dbg.c (scale_addr_delta): Handle values of 1
413 for DWARF2_LINE_MIN_INSN_LENGTH.
417 * config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
423 * configure.in: Invoke ACX_HEADER_STRING.
424 * configure: Regenerate.
425 * config.in: Regenerate.
426 * as.h: If STRINGS_WITH_STRING is defined then include both
427 string.h and strings.h.
432 * config/tc-avr.c (exp_mod_pm): Remove variable.
433 (exp_mod_data_t): New typedef.
434 (pexp_mod_data, exp_mod_data): New variables.
435 (avr_parse_cons_expression): Scan through exp_mod_data[] to find
436 data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
437 and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
438 (avr_cons_fix_new): Handle new data expression modifiers shipped
440 (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
445 * config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
446 addend overflow check.
450 * config/tc-i386.c (tc_gen_reloc): Display signed hex number in
451 x32 addend overflow check.
455 * config/tc-i386.c (tc_gen_reloc): Use fits_in_signed_long.
459 * config/tc-i386.c (tc_gen_reloc): Check x32 addend overflow
464 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
465 LC and LANG environment vars.
466 * Makefile.in: Regenerate.
470 * Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
471 * Makefile.in: Regenerate.
475 * config/tc-z80.h(md_register_arithmetic): Define as 0.
476 * config/tc-z80.c(md_begin): Store register names in symbol table,
477 preventing usage as ordinary symbol.
478 * config/tc-z80.c(contains_register): New function.
479 * config/tc-z80.c(parse_exp2): Removed.
480 * config/tc-z80.c(parse_exp_not_indexed): New function.
481 * config/tc-z80.c(parse_exp): Add code to recogize indexed
482 addressing after parsing.
483 * config/tc-z80.c(emit_byte, emit_word): Use contains_register.
484 * config/tc-z80.c(emit_jp): Use parse_exp_not_indexed, simplify
485 condition for jump to register.
486 * config/tc-z80.c(emit_call, emit_jr, emit_ex, emit_rst): Use
487 parse_exp_not_indexed.
491 * ecoff.c: Replace all uses of bfd_abs_section, bfd_com_section,
492 bfd_und_section and bfd_ind_section with their _ptr variants, or
493 use corresponding bfd_is_* macros.
494 * symbols.c: Likewise.
495 * config/obj-aout.c: Likewise.
496 * config/obj-coff-seh.h: Likewise.
497 * config/tc-hppa.c: Likewise.
498 * config/tc-hppa.h: Likewise.
499 * config/tc-ia64.c: Likewise.
500 * config/tc-m32r.c: Likewise.
501 * config/tc-microblaze.c: Likewise.
502 * config/tc-mips.c: Likewise.
503 * config/tc-score.c: Likewise.
504 * config/tc-score7.c: Likewise.
505 * config/tc-tic6x.c: Likewise.
509 * configure.tgt: Support x86_64-*-linux-gnux32.
513 * config/tc-i386.c (match_template): Add `instruction' to
514 unsupported error message.
518 * config/tc-i386.c (output_insn): Reformat.
522 * config/tc-i386.c (output_insn): Remove the extra VEX check.
526 * config/tc-i386.c (match_template): Improve unsupported error
531 * configure, Makefile.in: Regenerate.
532 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
533 * configure.tgt: Added cpu type.
534 Added files for XGATE assembler.
535 * config/tc-xgate.c: Assembler for XGATE.
536 * config/tc-xgate.h: Header definition for assembler
537 Added files for XGATE testsuite.
538 * doc/Makefile.am (CPU_DOCS): Added XGATE file.
539 * doc/c-xgate.texi: Document XGATE and XGATE port.
540 * doc/as.texinfo: Ditto.
541 * doc/all.texi: Ditto
542 * NEWS: Mention the new support.
546 * config/rx-parse.y (rx_intop): Add parameter for operation size.
547 Check for large positive constants really being small negative
549 (BRA, BSR): Update calls to rx_intop.
550 (immediate): Likewise.
554 * dwarf2dbg.c (DWARF2_ARANGES_VERSION): New define to 2.
555 (DWARF2_LINE_VERSION): Likewise.
556 (out_debug_line): Use DWARF2_LINE_VERSION not DWARF2_VERSION.
557 (out_debug_aranges): Use DWARF2_ARANGES_VERSION not DWARF2_VERSION.
558 (out_debug_abbrev): Use DW_FORM_data for DW_AT_high_pc when
560 (out_debug_info): Use difference between start and end as data
561 value for DW_AT_high_pc when DWARF2_VERSION >= 4.
562 * config/tc-ia64.h (DWARF2_LINE_VERSION): Override it.
566 * doc/c-sparc.text: Document %l34 and %h34.
568 * config/tc-sparc.c (v9a_asr_table): Add 'cfr'.
570 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_PAUSE to sparc4,
571 v8pluse, v8plusv, v9e, and v9v.
572 (v9a_asr_table): Add 'pause'.
574 * config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
575 sparc4, v8pluse, v8plusv, v9e, and v9v.
576 (sparc_ip): Handle R_SPARC_5 of immediate constants inline in
577 order to accomodate cbcond which otherwise would require two
578 relocations to be handled in a single instruction..
580 * config/tc-sparc.c (sparc_ip): Likewise. Accept instruction
581 names containing "_".
582 (sparc_arch_table): Add sparc4, v8pluse, and v9e. Add crypto
583 hwcap masks to v8plusv and v9v.
585 * config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
587 (sparc_md_end): No longer need to translate hwcap_seen values into
588 ELF hwcap bits, they now match exactly.
589 (get_hwcap_name): Use HWCAP_* and handle new values.
590 (sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.
594 * config/tc-ia64.c (obj_elf_vms_common): New function.
595 (md_pseudo_table): Add .vms_common pseudo.
596 * config/obj-elf.h (obj_elf_section_name): Add a prototype.
597 * config/obj-elf.c (obj_elf_section_name): Make it public.
601 * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
605 * config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
607 (md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
608 (tc_gen_reloc): Likewise.
612 * configure.tgt (arm-*-nacl*): Match it.
613 * config/te-nacl.h (FPU_DEFAULT, EABI_DEFAULT): Define.
614 (LOCAL_LABELS_DOLLAR): Define.
615 * config/tc-arm.c (elf32_arm_target_format) [TE_NACL]:
616 Use nacl format variants.
621 * config/tc-arm.c (only_one_reg_in_list): New function.
622 (encode_ldmstm): Ditto.
623 (do_ldmstm): Use a different encoding when pushing or poping
625 (A_COND_MASK): New macro.
626 (A_PUSH_POP_OP_MASK): Ditto.
627 (A1_OPCODE_PUSH): Ditto.
628 (A2_OPCODE_PUSH): Ditto.
629 (A2_OPCODE_POP): Ditto.
633 * doc/c-mips.texi (MIPS Opts): Correct -no-mfix-24k to
638 * configure.in (AC_CHECK_HEADERS): Add locale.h.
639 * config.in: Regenerate.
640 * configure: Regenerate.
644 * configure.in (AC_CHECK_FUNCS): Add setlocale.
645 (AM_LC_MESSAGES): Add.
646 * aclocal.m4: Regenerate.
647 * config.in: Regenerate.
648 * configure: Regenerate.
652 * config/rx-parse.y: Make the .L optional for ADC and SBB.
656 * config/rx-parse.y: IMM->IMM_, take an extra parameter for the
658 (IMM): New, call IMM_ with the default 32.
659 (IMMW,IMMB): Likewise, for 16 and 8.
660 (NIMM, MBIMM): Add size parameter.
661 (immediate): Likewise. Allow 32768..65535 for 16-bit transfers.
662 (MOV.W): Use IMMW instead of IMM.
664 * config/rx-parse.y (ADC,SBB): ADC and SBB only allow .L.
666 (op_dp20_rim_l): New.
668 * config/rx-parse.y (op_dp20_rms): Rename to op_dp20_rr, don't allow mem.
669 (ABS, NEG, NOT): These only take REG or REG,REG (rr, not rms).
673 * config/tc-arm.c (arm_cpus): Add cortex-m0plus.
674 * doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.
678 * config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
679 * doc/c-mips.texi: Mention XLP.
683 [SH] Support the .uaquad and .8byte directives also for non-sh64
686 * config/tc-sh.c (sh_cons_fix_new, md_apply_fix) [!HAVE_SH64]: Handle
688 * doc/c-sh64.texi (SH64 Machine Directives): Move .uaquad
690 * doc/c-sh.texi (SH Machine Directives): ... here.
694 * config/tc-arm.c (do_vmrs): Accept priviledged mode VFP system
697 (arm_opcode_insns): Do not default to using the FPSCR register in
698 the VMRS and VMSR registers.
702 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT32, ELF_TARGET_FORMAT64):
703 Define for this case.
704 * configure.tgt (i386-*-nacl*): If ${cpu} is x86_64*, default to x32.
708 * config/tc-arm.c (aeabi_set_public_attributes): Correct
709 handling of Tag_DIV_use.
713 * doc/as.texinfo (Bundle directives): Fix typo.
717 * doc/as.texinfo (Bundle directives): Replace @defn with @dfn.
721 * config/tc-arm.c (arm_frag_max_var): New function.
722 * config/tc-arm.h: Declare it.
723 (md_frag_max_var): New macro.
725 * config/tc-i386.c (i386_frag_max_var): New function.
726 * config/tc-i386.h: Declare it.
727 (md_frag_max_var): New macro.
729 * doc/as.texinfo (Bundle directives): New node.
730 (Pseudo Ops): Add it to the menu.
731 * NEWS: Mention new feature.
732 * read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
733 [HANDLE_BUNDLE] (bundle_align_p2): New variable.
734 [HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
735 [HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
737 (assemble_one): New function if [HANDLE_BUNDLE], #define directly
738 to md_assembly if not.
739 (read_a_source_file): Call assemble_one in place of md_assemble.
740 (read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
741 .bundle_lock at end of processing.
742 [HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
744 [HANDLE_BUNDLE] (potable): Add their entries.
745 * read.h: Declare new functions.
749 * config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
750 (ppc_handle_align): Add termination nop opcode for e500mc family.
751 * doc/as.texinfo: Document options -me5500 and -me6500.
752 * doc/c-ppc.texi: Likewise.
756 * config/tc-mn10300.c (other_registers): Add SSP and USP.
757 (md_assemble): Add support for TLS relocs.
758 (mn10300_parse_name): Likewise.
762 * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
766 * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
767 params. Properly generate NOP pattern. Comment reason for
768 subseg_text_p failure.
772 * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
773 and sign extend before range tests.
774 (constant_fits_size_p): Similarly.
775 (get_specific): Trim X_add_number to 32 bits.
776 (fix_operand_size): Likewise, and use unsigned test for signed
781 * config/tc-crx.c: Include bfd_stdint.h.
782 (getconstant): Remove irrelevant comment. Don't fail due to
783 sign-extension of int mask.
784 (check_range): Rewrite using unsigned arithmetic throughout.
788 * tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
789 non-local before checking sy_value.
790 * tc-tilegx.c (emit_tilegx_instruction): Ditto.
794 * tc-tilepro.c (O_tls_le): Define operator.
795 (O_tls_le_lo16): Ditto.
796 (O_tls_le_hi16): Ditto.
797 (O_tls_le_ha16): Ditto.
798 (O_tls_gd_call): Ditto.
799 (O_tls_gd_add): Ditto.
800 (O_tls_ie_load): Ditto.
801 (md_begin): Delete old operators; handle new operators.
802 (emit_tilepro_instruction): Ditto.
803 (md_apply_fix): Ditto.
804 * tc-tilegx.c (O_hw1_got): Delete operator.
807 (O_hw2_last_got): Ditto.
808 (O_hw1_tls_gd): Ditto.
809 (O_hw2_tls_gd): Ditto.
810 (O_hw3_tls_gd): Ditto.
811 (O_hw2_last_tls_gd): Ditto.
812 (O_hw1_tls_ie): Ditto.
813 (O_hw2_tls_ie): Ditto.
814 (O_hw3_tls_ie): Ditto.
815 (O_hw2_last_tls_ie): Ditto.
816 (O_hw0_tls_le): Define operator.
817 (O_hw0_last_tls_le): Ditto.
818 (O_hw1_last_tls_le): Ditto.
819 (O_tls_gd_call): Ditto.
820 (O_tls_gd_add): Ditto.
821 (O_tls_ie_load): Ditto.
823 (md_begin): Delete old operators; handle new operators.
824 (emit_tilegx_instruction): Ditto.
825 (md_apply_fix): Ditto.
826 * doc/c-tilegx.texi: Delete old operators; document new operators.
827 * doc/c-tilepro.texi: Ditto.
831 * tc-tilepro.c (apply_special_operator): delete cases for
832 got and tls operators.
833 (md_apply_fix): Ditto.
834 * tc-tilegx.c (md_begin): Set architecture and machine.
835 (tilegx_target_format): Handle big endian.
838 (md_longopts): Add entries for "EB" and "EL".
839 (md_parse_option): Handle OPTION_EB and OPTION_EL.
840 (md_show_usage): Add -EB and -EL.
841 (md_number_to_chars): New.
842 (apply_special_operator): delete cases for got and tls
844 (md_apply_fix): Ditto.
845 * tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
847 (md_number_to_chars): Delete.
848 * configure.tgt (tilegx*be): Handle.
849 * doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
850 * doc/c-tilegx.texi: Ditto.
854 * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
855 HLEPrefixAny and HLEPrefixRelease.
859 * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
863 * write.c (write_object_file): Add md_pre_output_hook.
864 * config/obj-macho.c (obj_mach_o_check_before_writing): New.
865 (obj_mach_o_pre_output_hook): New.
866 * config/obj-macho.h (md_pre_output_hook): Define.
867 (obj_mach_o_pre_output_hook): Declare.
871 * config/tc-i386.h (OBJ_MACH_O): New section.
872 (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
873 (TC_FORCE_RELOCATION_SUB_SAME): New
874 (TC_FORCE_RELOCATION_SUB_LOCAL): New.
875 (TC_VALIDATE_FIX_SUB): New.
876 * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
877 * symbols.c (colon): obj_frob_colon: New hook.
878 * write.c (write_object_file): md_pre_relax_hook, new
880 * config/obj-macho.c (obj_mach_o_frob_colon): New.
881 (obj_mach_o_frob_label): Record sub-section labels.
882 (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
883 (obj_mach_o_set_subsections): New.
884 (obj_mach_o_pre_relax_hook): New.
885 (obj_mach_o_in_different_subsection): New.
886 (obj_mach_o_force_reloc_sub_same): New.
887 (obj_mach_o_force_reloc_sub_local): New.
888 (obj_mach_o_force_reloc): New.
889 * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
890 (obj_frob_colon): New Define.
891 (obj_mach_o_frob_label): Renamed.
892 (obj_mach_o_frob_symbol): Renamed.
893 (OBJ_FRAG_TYPE): New.
894 (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
895 obj_mach_o_force_reloc_sub_same,
896 obj_mach_o_force_reloc_sub_local): New declarations.
900 * config/obj-macho.c (obj_mach_o_is_frame_section): New.
901 (obj_mach_o_allow_local_subtract): New.
902 * config/obj-macho.h (md_allow_local_subtract): Define.
903 (obj_mach_o_allow_local_subtract): Declare.
907 * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
908 canonical information, try to determine CODE and DEBUG section flags
909 from the mach-o section data.
913 * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
918 * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
919 any local symbol used as an indirect.
923 * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
924 stub size when provided. (obj_mach_o_section): Flag that stub-size
929 * config/tc-i386.c (HLE_PREFIX): New.
930 (check_hle): Likewise.
931 (_i386_insn): Add have_hle.
932 (cpu_arch): Add .hle and .rtm.
933 (md_assemble): Call check_hle if i.have_hle isn't zero.
934 (parse_insn): Set i.have_hle to 1 for HLE prefix.
935 (output_jump): Support up to 2 byte opcode.
937 * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
941 * config/obj-macho.c (obj_mach_o_zerofill): Silent
942 uninitialized variable warning.
947 * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
948 to 'is_clone' to avoid shadowing a gloabl.
949 (obj_elf_section): Likewise.
953 * doc/c-tic6x.c: Fix typo.
958 * app.c (app_push): Set 'add_newlines' to zero after saving.
962 * config/rl78-parse.y (NOT1): Add.
966 * configure.tgt (i386-*-nacl*): Match it.
967 * config/te-nacl.h: New file.
968 * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
969 * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
970 Use TE_GNU et al case for TE_NACL too.
974 * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
976 (md_assemble): Updated.
977 (output_branch): Likewise.
978 (parse_insn): Support .d8 suffix.
979 (build_modrm_byte): Fake zero displacement for .d8 and .d32
982 * doc/c-i386.texi: Document .d8 suffix.
986 * write.c (fix_new_internal): Don't mark used parameter as unused.
990 * as.c (parse_args): Update copyright message year.
994 * config/tc-i386.c (cpu_arch): Add ".vmfunc".
996 * doc/c-i386.texi: Document vmfunc.
1000 * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
1001 * config/obj-macho.h (SET_SECTION_RELOCS): Define.
1002 (obj_mach_o_reorder_section_relocs): Declare.
1006 * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
1007 absolute indirect symbols.
1011 * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
1012 (obj_mach_o_set_section_vma): New.
1013 (obj_mach_o_post_relax_hook): New.
1014 * config/obj-macho.h (md_post_relax_hook): Define.
1015 (obj_mach_o_post_relax_hook): Declare.
1019 * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
1020 lazy when the symbol is private_extern.
1021 (obj_mach_o_indirect_sym): New type.
1022 (obj_mach_o_indirect_symbol): New.
1023 (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
1024 (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
1025 (obj_macho_frob_label): Likewise. Adjust external and comm
1027 (obj_mach_o_set_indirect_symbols): New.
1028 (obj_mach_o_frob_file_after_relocs): New.
1029 *config/obj-macho.h (obj_frob_file_after_relocs): Define.
1030 (obj_mach_o_frob_file_after_relocs): Declare.
1035 * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
1039 * struc-symbol.h (struct symbol_flags): New struct, created from...
1040 (struct symbol): ... this one. Add sy_flags field, remove flag fields.
1041 (struct local_symbol): Replace lsy_marker field by lsy_flags.
1043 (local_symbol_resolved_p): Adjust.
1044 (local_symbol_mark_resolved): Likewise.
1045 * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
1046 (local_symbol_make, local_symbol_convert, colon)
1047 (symbol_clone_if_forward_ref, verify_symbol_chain)
1048 (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
1049 (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
1050 (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
1051 (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
1052 (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
1053 (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
1054 (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
1055 (symbol_mark_mri_common, symbol_clear_mri_common)
1056 (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
1057 (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
1058 (symbol_equated_reloc_p, dot_symbol_init)
1059 (print_symbol_value_1): Adjust.
1063 * config/obj-macho.c (obj_mach_o_weak): Remove.
1064 (obj_mach_o_common_parse): Set symbol qualifiers.
1065 (LAZY, REFE): New macros.
1066 (obj_mach_o_symbol_type): New enum.
1067 (obj_mach_o_set_symbol_qualifier): New.
1068 (obj_mach_o_sym_qual): New.
1069 (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
1071 (obj_mach_o_type_for_symbol): New.
1072 (obj_macho_frob_label): New.
1073 (obj_macho_frob_symbol): New.
1074 * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
1075 (obj_frob_label, obj_macho_frob_label): Declare.
1076 (obj_frob_symbol, obj_macho_frob_symbol): Declare.
1080 * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
1085 * config/tc-mips.c (mips_move_labels): Take the list of labels and
1086 textness as parameters.
1087 (mips_move_text_labels): New function.
1088 (append_insn): Use it instead of mips_move_labels.
1089 (mips_emit_delays, start_noreorder): Likewise.
1090 (mips_align): Take the labels rather than just one label.
1091 Move all labels to after the .align.
1092 (s_align): Change the last argument to mips_align.
1094 (s_float_cons): Likewise.
1095 (s_gpword): Likewise.
1096 (s_gpdword): Likewise.
1100 * config/tc-i386.c: Update copyright year.
1101 (lex_got): Also defined for Mach-O.
1102 Add a guard for non-ELF configuration.
1103 (md_longopts): Also handle -64 for Mach-O.
1104 (md_parse_option): Likewise.
1105 (i386_target_format): Adjust for x86_64-darwin.
1109 * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
1110 (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
1111 (obj_mach_o_make_or_get_sect): Likewise.
1112 (obj_mach_o_section): Split out the functionality shared with zerofill.
1113 (obj_mach_o_zerofill): New.
1114 (obj_mach_o_common_parse): Ensure whitespace is skipped.
1115 (mach_o_pseudo_table): Add .zerofill.
1119 * config/obj-macho.c (obj_macho_process_stab): New.
1120 * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
1121 (obj_macho_process_stab): Declare.
1123 For older changes see ChangeLog-2011
1129 version-control: never