4 * config/tc-i386-intel.c (i386_intel_simplify_register): New.
5 (i386_intel_simplify): Use i386_is_register and
6 i386_intel_simplify_register. Set X_md for O_register and
7 check X_md for O_constant.
8 (i386_intel_operand): Use i386_is_register.
10 * config/tc-i386.c (i386_is_register): New.
11 (x86_cons): Initialize the X_md field. Use i386_is_register.
12 (parse_register): Use i386_is_register.
13 (tc_x86_parse_to_dw2regnum): Likewise.
17 * expr.c (expr): Initialize the X_md field.
21 * config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
22 (md_longopts): Add -mgenerate-rel.
23 (tic6x_generate_rela): New.
24 (md_parse_option): Handle -mgenerate-rel.
25 (md_show_usage): Add comment that -mgenerate-rel is undocumented.
26 (tic6x_init_after_args): New.
27 (md_apply_fix): Correct shift calculations for SB-relative
29 (md_pcrel_from): Change to tic6x_pcrel_from_section. Do not
30 adjust addresses for relocations referencing symbols in other
32 (tc_gen_reloc): Adjust addend calculations for REL relocations.
33 * config/tc-tic6x.h (MD_PCREL_FROM_SECTION,
34 tic6x_pcrel_from_section, tc_init_after_args,
35 tic6x_init_after_args): New.
40 * macro.c (macro_expand_body): Do not treat LOCAL as a keyword in
41 altmacro mode if found inside a quoted string.
45 * config/bfin-lex.l (parse_int): Change index() to strchr().
50 * config/tc-hppa.c (pa_ip): Do not allow 64-bit add condition
51 matcher to accept and unconditional 32-bit add instruction.
52 (pa_build_unwind_subspace): Cope with error conditions not
53 allowing the start symbol to be set.
57 * config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
58 new tag names in v2.08 of ARM ABI.
59 * doc/c-arm.texi: Document new tag names in ABI.
63 * config/tc-alpha.c: Includes vms/egps.h on EVAX.
64 (s_alpha_comm): Used new EGPS macros from egps.h
65 (RGPS__V_NO_SHIFT, EGPS__V_MASK): New local macros.
66 (s_alpha_section_word): Add comments. Use new EGPS macros.
67 Adjust for modified bfd_vms_set_section_flags function.
72 * config/tc-ppc.c (ppc_elf_cons): Clear frag contents.
76 * as.c (create_obj_attrs_section): Remove unused variable addr.
77 * listing.c (listing_listing): Remove unused variable message.
78 * read.c: Remove unnecessary register type qualifiers.
79 (s_mri): Only define/use old_flag variable if MRI_MODE_CHANGE is
84 * config/tc-avr.c (mcu_types): Add support for atmega16a, atmega168a,
85 atmega164a, atmega165a, atmega169a, atmega169pa, atmega16hva2,
86 atmega324a, atmega324pa, atmega325a, atmega3250a, atmega328,
87 atmega329a, atmega329pa, atmega3290a, atmega48a, atmega644a,
88 atmega645a, atmega645p, atmega6450a, atmega6450p, atmega649a,
89 atmega649p, atmega6490a, atmega6490p, atmega64hve, atmega88a,
90 atmega88pa, attiny461a, attiny84a, m3000.
91 Remove support for atmega8m1, atmega8c1, atmega16c1, atmega4hvd,
92 atmega8hvd, attiny327, m3000f, m3000s, m3001b.
93 * doc/c-avr.texi: Same.
97 * config/tc-arm.c (make_mapping_symbol): Handle the case
98 that multiple mapping symbols have the same value 0.
102 * configure: Regenerate.
106 * po/ru.po: New Russian translation.
107 * configure.in (ALL_LINGUAS): Add ru.
108 * configure: Regenerate.
113 * input-scrub.c (input_scrub_next_buffer): Use memmove instead
114 of memcpy to copy overlap memory.
118 * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
119 (TARGET_CPU_HFILES): Add config/tc-tic6x.h.
120 * Makefile.in: Regenerate.
121 * NEWS: Add news entry for TI C6X support.
122 * app.c (do_scrub_chars): Handle "||^" for TI C6X. Handle
123 TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR. Keep spaces in
124 operands if TC_KEEP_OPERAND_SPACES.
125 * configure.tgt (tic6x-*-*): New.
126 * config/tc-ia64.h (TC_PREDICATE_START_CHAR,
127 TC_PREDICATE_END_CHAR): Define.
128 * config/tc-tic6x.c, config/tc-tic6x.h: New.
129 * doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
130 * doc/Makefile.in: Regenerate.
131 * doc/all.texi (TIC6X): Define.
132 * doc/as.texinfo: Add TI C6X documentation. Include c-tic6x.texi.
133 * doc/c-tic6x.texi: New.
137 * config/tc-i386.c (lex_got): Use STRING_COMMA_LEN on gotrel.
141 * config/tc-i386.c (i386_error): Replace oprand_size_mismatch
142 with operand_size_mismatch.
143 (operand_size_match): Updated.
144 (match_template): Likewise.
148 * config/tc-i386.c (i386_error): New.
149 (_i386_insn): Replace err_msg with error.
150 (operand_size_match): Set error instead of err_msg on failure.
151 (operand_type_match): Likewise.
152 (operand_type_register_match): Likewise.
153 (VEX_check_operands): Likewise.
154 (match_template): Likewise. Use error instead of err_msg with
159 * config/tc-arm.c (make_mapping_symbol): Hanle the case
160 that two mapping symbols have the same value.
164 * doc/c-arm.texi (.setfp): Correct example.
169 * config/tc-arm.c (reloc_names): New relocation names.
170 (md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
171 (tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
172 * doc/c-arm.texi (ARM-Relocations): Document the new relocation.
176 * dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
177 cases, and not only for .eh_frame.
179 * dw2gencfi.c (output_cie): Make it more explicit which code paths
180 belong to .eh_frame only.
184 * config/tc-v850.c (v850_insert_operand): Handle out-of-range
185 assembler constants on 64-bit hosts.
189 * bfin-defs.h, bfin-lex.l, bfin-parse.y, tc-bfin.c, tc-bfin.h:
190 Strip trailing whitespace.
194 * doc/c-bfin.texi (-mcpu): Add bf504 and bf506.
195 * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF504 and
197 (bfin_cpus[]): Add 0.0 for bf504 and bf506.
201 * doc/as.texinfo: Add Blackfin options.
202 * doc/c-bfin.texi: Document -mfdpic, -mno-fdpic and -mnopic.
203 * config/tc-bfin.c (md_show_usage): Show usage for all
204 Blackfin specific options.
209 * listing.c (listing_newline): Correct backslash quote logic.
213 * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
214 (ELF_TARGET_FORMAT64): Define.
218 * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
222 * config/tc-sh.c (get_specific): Move overflow checking code to avoid
223 reading uninitialized data.
227 * config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.
231 * configure.tgt: Fix mep cpu case.
235 * config/tc-arm.c (do_t_strexd): Remove
236 operand[1] != operand[2] contraint.
240 * config/tc-arm.c (neon_select_shape): No need to match
241 the remaining operands in the shape when one operand does
246 * config/tc-arm.c (do_neon_ld_st_interleave): Reject bad
251 * cgen.c: Whitespace fixes.
252 (weak_operand_overflow_check): Formatting fix.
256 * config/tc-i386.c (match_template): Update error messages.
260 * config/tc-i386.c (_i386_insn): Add err_msg.
261 (operand_size_match): Set err_msg on failure.
262 (operand_type_match): Likewise.
263 (operand_type_register_match): Likewise.
264 (VEX_check_operands): Likewise.
265 (match_template): Likewise. Use i.err_msg with as_bad.
269 * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
270 mips_fix_loongson2f_jump): New variables.
271 (md_longopts): Add New options -mfix-loongson2f-nop/jump,
272 -mno-fix-loongson2f-nop/jump.
273 (md_parse_option): Initialize variables via above options.
274 (options): New enums for the above options.
275 (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
276 (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
278 (append_insn): call fix_loongson2f().
279 (mips_handle_align): Replace the implicit nops.
280 * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
281 for the new mips_handle_align().
282 * doc/c-mips.texi: Document the new options.
286 * config/tc-arm.c (do_rd_rm_rn): Added warning
292 * config/tc-avr.c (md_apply_fix): Handle BFD_RELOC_8.
293 (avr_cons_fix_new): Handle fixups of a single byte.
298 * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build
299 compiler's predefines.
303 * configure.tgt: Whiltespace. Sort moxie entry.
307 * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use.
308 * doc/c-arm.texi: Likewise.
312 * config/tc-arm.c (asm_opcode): operands type
314 (BAD_PC_ADDRESSING): New macro message.
315 (BAD_PC_WRITEBACK): Likewise.
316 (MIX_ARM_THUMB_OPERANDS): New macro.
317 (operand_parse_code): Added enum values.
318 (parse_operands): Added thumb/arm distinction,
319 plus new enum values handling.
320 (encode_arm_addr_mode_2): Validations enhanced.
321 (encode_arm_addr_mode_3): Likewise.
322 (do_rm_rd_rn): Likewise.
323 (encode_thumb32_addr_mode): Likewise.
324 (do_t_ldrex): Likewise.
325 (do_t_ldst): Likewise.
326 (do_t_strex): Likewise.
327 (md_assemble): Call parse_operands with
335 (insns): Updated insns operands.
340 * config/tc-ia64.c (enum reloc_func): Add FUNC_SLOTCOUNT_RELOC.
341 (DUMMY_RELOC_IA64_SLOTCOUNT): Added.
342 (pseudo_func): Add an entry for slotcount.
343 (md_begin): Initialize slotcount pseudo symbol.
344 (ia64_parse_name): Handle @slotcount parameter.
345 (ia64_gen_real_reloc_type): Handle slotcount.
346 (md_apply_fix): Ditto.
347 * doc/c-ia64.texi (IA-64-Relocs): Document @slotcount.
351 * config/tc-xtensa.c (istack_init): Don't call memset.
355 * config/tc-xtensa.c (cache_literal_section): Handle prefixes as
360 * config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
364 * config/tc-i386.c (build_modrm_byte): Reformat.
368 * config/tc-i386.c: Update copyright.
373 * config/tc-i386.c (vec_imm4) New operand type.
375 (VEX_check_operands): New.
376 (check_reverse): Call VEX_check_operands.
377 (build_modrm_byte): Reintroduce code for 5
378 operand insns. Fix whitespace.
382 * config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
387 * config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New.
388 (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES.
389 (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
393 * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
394 non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
395 BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
396 BFD_RELOC_ARM_PCREL_CALL)
400 * config/tc-xtensa.c (frag_format_size): Generalize logic to
401 handle more instruction sizes and fetch widths.
402 (branch_align_power): Likewise.
403 (text_align_power): Likewise.
404 (bytes_to_stretch): Likewise.
408 * config/tc-ppc.c (md_show_usage): Mention -mtitan. Don't use tabs.
409 (ppc_mach): Handle titan.
410 * doc/c-ppc.texi: Mention -mtitan.
414 * config/tc-xtensa.c (UNREACHABLE_MAX_WIDTH): Delete and
416 (xtensa_fetch_width) ...this.
420 * Makefile.am (CPU_TYPES, OBJ_FORMATS, CPU_OBJ_VALID,
421 MULTI_CPU_TYPES, MULTI_CPU_OBJ_VALID): Remove.
422 * Makefile.in: Regenerate.
426 * config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
427 (i386_align_code): Rename PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
428 * config/tc-i386.h (processor_type): Same.
429 * doc/c-i386.texi: Change amdfam15 to bdver1.
434 * config/tc-arm.c (neon_check_type): Handle a neon_shape value of
439 * NEWS: Mention new feature.
440 * config/obj-coff.c (obj_coff_section): Accept digits and use
441 to override default section alignment power if specified.
442 * doc/as.texinfo (.section directive): Update documentation.
446 * config/tc-i386.c (avxscalar): New.
447 (OPTION_MAVXSCALAR): Likewise.
448 (build_vex_prefix): Select vector_length for scalar instructions
450 (md_longopts): Add OPTION_MAVXSCALAR.
451 (md_parse_option): Handle OPTION_MAVXSCALAR.
452 (md_show_usage): Add -mavxscalar=.
454 * doc/c-i386.texi: Document -mavxscalar=.
458 * config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
463 * write.h (fix_at_start): Declare.
464 * write.c (fix_new_internal): Add at_beginning parameter.
465 Use it instead of REVERSE_SORT_RELOCS. Fix the handling of
466 seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
467 (fix_new, fix_new_exp): Update accordingly.
468 (fix_at_start): New function.
469 * config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
470 (ppc_ref): New function, for OBJ_XCOFF.
471 (md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
472 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
476 * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
477 on 64-bit Solaris/x86.
478 Include obj-format.h earlier.
482 * config/tc-s390.c (s390_elf_final_processing): New function.
483 * config/tc-s390.h (elf_tc_final_processing): New macro definition.
484 (s390_elf_final_processing): Added prototype.
490 * config/tc-arm.c (do_neon_cvt): Rename to do_neon_cvt_1. Add
491 code to handle round-to-zero for VCVT conversions.
492 (do_neon_cvt): New. Call do_neon_cvt_1.
493 (do_neon_cvtr): New. Call do_neon_cvt_1.
494 (insns): Use do_neon_cvt for VCVT insn and do_neon_cvtr for VCVTR
499 * config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
503 * config/tc-i386.c (md_assemble): Before accessing the IMM field
504 check that it's not an XOP insn.
508 * config/bfin-aux.h: Remove argument names in function
510 * config/bfin-lex.l (parse_int): Fix shadowed variable name
512 * config/bfin-parse.y (value_match): Remove argument names
514 (notethat): Likewise.
519 * config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.
523 * config/tc-h8300.c (h8300_elf_section): New function - issue a
524 warning message if a new section is created without setting any
526 (md_pseudo_table): Intercept section creation pseudos.
527 (md_pcrel_from): Replace abort with an error message.
528 * config/obj-elf.c (obj_elf_section_name): Export this function.
529 * config/obj-elf.h (obj_elf_section_name): Prototype.
534 * listing.c (print_source): Add one to line number.
538 * Makefile.in: Regenerate.
539 * configure: Regenerate.
540 * doc/Makefile.in: Regenerate.
544 * version.c (parse_args): Change to "Copyright 2010".
548 * config/tc-i386.c (cpu_arch): Add amdfam15.
549 (i386_align_code): Add PROCESSOR_AMDFAM15 cases.
550 * config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
551 * doc/c-i386.texi: Add amdfam15.
555 * config/tc-arm.c (do_neon_logic): Accept imm value
556 in the third operand too.
557 (operand_parse_code): OP_RNDQ_IMVNb renamed to
559 (parse_operands): OP_NILO case removed, applied renaming.
560 (insns): Neon shape changed for some logic instructions.
564 * config/tc-arm.c (do_neon_ldx_stx): Added
565 validation for vector load/store insns.
569 * config/tc-ppc.c (md_show_usage): Document -me500mc64.
573 * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
574 (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
575 (NEON_ENCODE): New macro.
576 (check_neon_suffixes): New macro.
577 (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
578 (do_vfp_nsyn_opcode): Likewise.
579 (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
580 (do_vfp_nsyn_cmp): Likewise.
581 (do_neon_shl_imm): Likewise.
582 (do_neon_qshl_imm): Likewise.
583 (neon_dyadic_misc): Likewise.
584 (do_neon_mac_maybe_scalar): Likewise.
585 (do_neon_qdmulh): Likewise.
586 (do_neon_qmovn): Likewise.
587 (do_neon_qmovun): Likewise.
588 (do_neon_movn): Likewise.
589 (neon_mac_reg_scalar_long): Likewise.
590 (do_neon_vmull): Likewise.
591 (do_neon_trn): Likewise.
592 (do_neon_ldx_stx): Likewise.
593 (neon_dp_fixup): Changed signature and set the flag.
594 (neon_three_same): Call the above with new signature.
595 (neon_two_same): Likewise.
596 (neon_imm_shift): Likewise.
597 (neon_mul_mac): Likewise.
598 (do_neon_abs_neg): Likewise.
599 (neon_mixed_length): Likewise.
600 (do_neon_ext): Likewise.
601 (do_neon_mov): Likewise.
602 (do_neon_tbl_tbx): Likewise.
603 (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
604 (neon_compare): Likewise.
605 (do_neon_shll): Likewise.
606 (do_neon_cvt): Likewise.
607 (do_neon_mvn): Likewise.
608 (do_neon_dup): Likewise.
609 (md_assemble): Call check_neon_suffixes ().
611 For older changes see ChangeLog-2009
617 version-control: never