3 * config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
4 (md_longopts): Add -mgenerate-rel.
5 (tic6x_generate_rela): New.
6 (md_parse_option): Handle -mgenerate-rel.
7 (md_show_usage): Add comment that -mgenerate-rel is undocumented.
8 (tic6x_init_after_args): New.
9 (md_apply_fix): Correct shift calculations for SB-relative
11 (md_pcrel_from): Change to tic6x_pcrel_from_section. Do not
12 adjust addresses for relocations referencing symbols in other
14 (tc_gen_reloc): Adjust addend calculations for REL relocations.
15 * config/tc-tic6x.h (MD_PCREL_FROM_SECTION,
16 tic6x_pcrel_from_section, tc_init_after_args,
17 tic6x_init_after_args): New.
22 * macro.c (macro_expand_body): Do not treat LOCAL as a keyword in
23 altmacro mode if found inside a quoted string.
27 * config/bfin-lex.l (parse_int): Change index() to strchr().
32 * config/tc-hppa.c (pa_ip): Do not allow 64-bit add condition
33 matcher to accept and unconditional 32-bit add instruction.
34 (pa_build_unwind_subspace): Cope with error conditions not
35 allowing the start symbol to be set.
39 * config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
40 new tag names in v2.08 of ARM ABI.
41 * doc/c-arm.texi: Document new tag names in ABI.
45 * config/tc-alpha.c: Includes vms/egps.h on EVAX.
46 (s_alpha_comm): Used new EGPS macros from egps.h
47 (RGPS__V_NO_SHIFT, EGPS__V_MASK): New local macros.
48 (s_alpha_section_word): Add comments. Use new EGPS macros.
49 Adjust for modified bfd_vms_set_section_flags function.
54 * config/tc-ppc.c (ppc_elf_cons): Clear frag contents.
58 * as.c (create_obj_attrs_section): Remove unused variable addr.
59 * listing.c (listing_listing): Remove unused variable message.
60 * read.c: Remove unnecessary register type qualifiers.
61 (s_mri): Only define/use old_flag variable if MRI_MODE_CHANGE is
66 * config/tc-avr.c (mcu_types): Add support for atmega16a, atmega168a,
67 atmega164a, atmega165a, atmega169a, atmega169pa, atmega16hva2,
68 atmega324a, atmega324pa, atmega325a, atmega3250a, atmega328,
69 atmega329a, atmega329pa, atmega3290a, atmega48a, atmega644a,
70 atmega645a, atmega645p, atmega6450a, atmega6450p, atmega649a,
71 atmega649p, atmega6490a, atmega6490p, atmega64hve, atmega88a,
72 atmega88pa, attiny461a, attiny84a, m3000.
73 Remove support for atmega8m1, atmega8c1, atmega16c1, atmega4hvd,
74 atmega8hvd, attiny327, m3000f, m3000s, m3001b.
75 * doc/c-avr.texi: Same.
79 * config/tc-arm.c (make_mapping_symbol): Handle the case
80 that multiple mapping symbols have the same value 0.
84 * configure: Regenerate.
88 * po/ru.po: New Russian translation.
89 * configure.in (ALL_LINGUAS): Add ru.
90 * configure: Regenerate.
95 * input-scrub.c (input_scrub_next_buffer): Use memmove instead
96 of memcpy to copy overlap memory.
100 * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
101 (TARGET_CPU_HFILES): Add config/tc-tic6x.h.
102 * Makefile.in: Regenerate.
103 * NEWS: Add news entry for TI C6X support.
104 * app.c (do_scrub_chars): Handle "||^" for TI C6X. Handle
105 TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR. Keep spaces in
106 operands if TC_KEEP_OPERAND_SPACES.
107 * configure.tgt (tic6x-*-*): New.
108 * config/tc-ia64.h (TC_PREDICATE_START_CHAR,
109 TC_PREDICATE_END_CHAR): Define.
110 * config/tc-tic6x.c, config/tc-tic6x.h: New.
111 * doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
112 * doc/Makefile.in: Regenerate.
113 * doc/all.texi (TIC6X): Define.
114 * doc/as.texinfo: Add TI C6X documentation. Include c-tic6x.texi.
115 * doc/c-tic6x.texi: New.
119 * config/tc-i386.c (lex_got): Use STRING_COMMA_LEN on gotrel.
123 * config/tc-i386.c (i386_error): Replace oprand_size_mismatch
124 with operand_size_mismatch.
125 (operand_size_match): Updated.
126 (match_template): Likewise.
130 * config/tc-i386.c (i386_error): New.
131 (_i386_insn): Replace err_msg with error.
132 (operand_size_match): Set error instead of err_msg on failure.
133 (operand_type_match): Likewise.
134 (operand_type_register_match): Likewise.
135 (VEX_check_operands): Likewise.
136 (match_template): Likewise. Use error instead of err_msg with
141 * config/tc-arm.c (make_mapping_symbol): Hanle the case
142 that two mapping symbols have the same value.
146 * doc/c-arm.texi (.setfp): Correct example.
151 * config/tc-arm.c (reloc_names): New relocation names.
152 (md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
153 (tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
154 * doc/c-arm.texi (ARM-Relocations): Document the new relocation.
158 * dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
159 cases, and not only for .eh_frame.
161 * dw2gencfi.c (output_cie): Make it more explicit which code paths
162 belong to .eh_frame only.
166 * config/tc-v850.c (v850_insert_operand): Handle out-of-range
167 assembler constants on 64-bit hosts.
171 * bfin-defs.h, bfin-lex.l, bfin-parse.y, tc-bfin.c, tc-bfin.h:
172 Strip trailing whitespace.
176 * doc/c-bfin.texi (-mcpu): Add bf504 and bf506.
177 * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF504 and
179 (bfin_cpus[]): Add 0.0 for bf504 and bf506.
183 * doc/as.texinfo: Add Blackfin options.
184 * doc/c-bfin.texi: Document -mfdpic, -mno-fdpic and -mnopic.
185 * config/tc-bfin.c (md_show_usage): Show usage for all
186 Blackfin specific options.
191 * listing.c (listing_newline): Correct backslash quote logic.
195 * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
196 (ELF_TARGET_FORMAT64): Define.
200 * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
204 * config/tc-sh.c (get_specific): Move overflow checking code to avoid
205 reading uninitialized data.
209 * config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.
213 * configure.tgt: Fix mep cpu case.
217 * config/tc-arm.c (do_t_strexd): Remove
218 operand[1] != operand[2] contraint.
222 * config/tc-arm.c (neon_select_shape): No need to match
223 the remaining operands in the shape when one operand does
228 * config/tc-arm.c (do_neon_ld_st_interleave): Reject bad
233 * cgen.c: Whitespace fixes.
234 (weak_operand_overflow_check): Formatting fix.
238 * config/tc-i386.c (match_template): Update error messages.
242 * config/tc-i386.c (_i386_insn): Add err_msg.
243 (operand_size_match): Set err_msg on failure.
244 (operand_type_match): Likewise.
245 (operand_type_register_match): Likewise.
246 (VEX_check_operands): Likewise.
247 (match_template): Likewise. Use i.err_msg with as_bad.
251 * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
252 mips_fix_loongson2f_jump): New variables.
253 (md_longopts): Add New options -mfix-loongson2f-nop/jump,
254 -mno-fix-loongson2f-nop/jump.
255 (md_parse_option): Initialize variables via above options.
256 (options): New enums for the above options.
257 (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
258 (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
260 (append_insn): call fix_loongson2f().
261 (mips_handle_align): Replace the implicit nops.
262 * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
263 for the new mips_handle_align().
264 * doc/c-mips.texi: Document the new options.
268 * config/tc-arm.c (do_rd_rm_rn): Added warning
274 * config/tc-avr.c (md_apply_fix): Handle BFD_RELOC_8.
275 (avr_cons_fix_new): Handle fixups of a single byte.
280 * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build
281 compiler's predefines.
285 * configure.tgt: Whiltespace. Sort moxie entry.
289 * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use.
290 * doc/c-arm.texi: Likewise.
294 * config/tc-arm.c (asm_opcode): operands type
296 (BAD_PC_ADDRESSING): New macro message.
297 (BAD_PC_WRITEBACK): Likewise.
298 (MIX_ARM_THUMB_OPERANDS): New macro.
299 (operand_parse_code): Added enum values.
300 (parse_operands): Added thumb/arm distinction,
301 plus new enum values handling.
302 (encode_arm_addr_mode_2): Validations enhanced.
303 (encode_arm_addr_mode_3): Likewise.
304 (do_rm_rd_rn): Likewise.
305 (encode_thumb32_addr_mode): Likewise.
306 (do_t_ldrex): Likewise.
307 (do_t_ldst): Likewise.
308 (do_t_strex): Likewise.
309 (md_assemble): Call parse_operands with
317 (insns): Updated insns operands.
322 * config/tc-ia64.c (enum reloc_func): Add FUNC_SLOTCOUNT_RELOC.
323 (DUMMY_RELOC_IA64_SLOTCOUNT): Added.
324 (pseudo_func): Add an entry for slotcount.
325 (md_begin): Initialize slotcount pseudo symbol.
326 (ia64_parse_name): Handle @slotcount parameter.
327 (ia64_gen_real_reloc_type): Handle slotcount.
328 (md_apply_fix): Ditto.
329 * doc/c-ia64.texi (IA-64-Relocs): Document @slotcount.
333 * config/tc-xtensa.c (istack_init): Don't call memset.
337 * config/tc-xtensa.c (cache_literal_section): Handle prefixes as
342 * config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
346 * config/tc-i386.c (build_modrm_byte): Reformat.
350 * config/tc-i386.c: Update copyright.
355 * config/tc-i386.c (vec_imm4) New operand type.
357 (VEX_check_operands): New.
358 (check_reverse): Call VEX_check_operands.
359 (build_modrm_byte): Reintroduce code for 5
360 operand insns. Fix whitespace.
364 * config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
369 * config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New.
370 (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES.
371 (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
375 * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
376 non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
377 BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
378 BFD_RELOC_ARM_PCREL_CALL)
382 * config/tc-xtensa.c (frag_format_size): Generalize logic to
383 handle more instruction sizes and fetch widths.
384 (branch_align_power): Likewise.
385 (text_align_power): Likewise.
386 (bytes_to_stretch): Likewise.
390 * config/tc-ppc.c (md_show_usage): Mention -mtitan. Don't use tabs.
391 (ppc_mach): Handle titan.
392 * doc/c-ppc.texi: Mention -mtitan.
396 * config/tc-xtensa.c (UNREACHABLE_MAX_WIDTH): Delete and
398 (xtensa_fetch_width) ...this.
402 * Makefile.am (CPU_TYPES, OBJ_FORMATS, CPU_OBJ_VALID,
403 MULTI_CPU_TYPES, MULTI_CPU_OBJ_VALID): Remove.
404 * Makefile.in: Regenerate.
408 * config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
409 (i386_align_code): Rename PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
410 * config/tc-i386.h (processor_type): Same.
411 * doc/c-i386.texi: Change amdfam15 to bdver1.
416 * config/tc-arm.c (neon_check_type): Handle a neon_shape value of
421 * NEWS: Mention new feature.
422 * config/obj-coff.c (obj_coff_section): Accept digits and use
423 to override default section alignment power if specified.
424 * doc/as.texinfo (.section directive): Update documentation.
428 * config/tc-i386.c (avxscalar): New.
429 (OPTION_MAVXSCALAR): Likewise.
430 (build_vex_prefix): Select vector_length for scalar instructions
432 (md_longopts): Add OPTION_MAVXSCALAR.
433 (md_parse_option): Handle OPTION_MAVXSCALAR.
434 (md_show_usage): Add -mavxscalar=.
436 * doc/c-i386.texi: Document -mavxscalar=.
440 * config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
445 * write.h (fix_at_start): Declare.
446 * write.c (fix_new_internal): Add at_beginning parameter.
447 Use it instead of REVERSE_SORT_RELOCS. Fix the handling of
448 seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
449 (fix_new, fix_new_exp): Update accordingly.
450 (fix_at_start): New function.
451 * config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
452 (ppc_ref): New function, for OBJ_XCOFF.
453 (md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
454 * config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
458 * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
459 on 64-bit Solaris/x86.
460 Include obj-format.h earlier.
464 * config/tc-s390.c (s390_elf_final_processing): New function.
465 * config/tc-s390.h (elf_tc_final_processing): New macro definition.
466 (s390_elf_final_processing): Added prototype.
472 * config/tc-arm.c (do_neon_cvt): Rename to do_neon_cvt_1. Add
473 code to handle round-to-zero for VCVT conversions.
474 (do_neon_cvt): New. Call do_neon_cvt_1.
475 (do_neon_cvtr): New. Call do_neon_cvt_1.
476 (insns): Use do_neon_cvt for VCVT insn and do_neon_cvtr for VCVTR
481 * config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
485 * config/tc-i386.c (md_assemble): Before accessing the IMM field
486 check that it's not an XOP insn.
490 * config/bfin-aux.h: Remove argument names in function
492 * config/bfin-lex.l (parse_int): Fix shadowed variable name
494 * config/bfin-parse.y (value_match): Remove argument names
496 (notethat): Likewise.
501 * config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.
505 * config/tc-h8300.c (h8300_elf_section): New function - issue a
506 warning message if a new section is created without setting any
508 (md_pseudo_table): Intercept section creation pseudos.
509 (md_pcrel_from): Replace abort with an error message.
510 * config/obj-elf.c (obj_elf_section_name): Export this function.
511 * config/obj-elf.h (obj_elf_section_name): Prototype.
516 * listing.c (print_source): Add one to line number.
520 * Makefile.in: Regenerate.
521 * configure: Regenerate.
522 * doc/Makefile.in: Regenerate.
526 * version.c (parse_args): Change to "Copyright 2010".
530 * config/tc-i386.c (cpu_arch): Add amdfam15.
531 (i386_align_code): Add PROCESSOR_AMDFAM15 cases.
532 * config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
533 * doc/c-i386.texi: Add amdfam15.
537 * config/tc-arm.c (do_neon_logic): Accept imm value
538 in the third operand too.
539 (operand_parse_code): OP_RNDQ_IMVNb renamed to
541 (parse_operands): OP_NILO case removed, applied renaming.
542 (insns): Neon shape changed for some logic instructions.
546 * config/tc-arm.c (do_neon_ldx_stx): Added
547 validation for vector load/store insns.
551 * config/tc-ppc.c (md_show_usage): Document -me500mc64.
555 * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
556 (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
557 (NEON_ENCODE): New macro.
558 (check_neon_suffixes): New macro.
559 (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
560 (do_vfp_nsyn_opcode): Likewise.
561 (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
562 (do_vfp_nsyn_cmp): Likewise.
563 (do_neon_shl_imm): Likewise.
564 (do_neon_qshl_imm): Likewise.
565 (neon_dyadic_misc): Likewise.
566 (do_neon_mac_maybe_scalar): Likewise.
567 (do_neon_qdmulh): Likewise.
568 (do_neon_qmovn): Likewise.
569 (do_neon_qmovun): Likewise.
570 (do_neon_movn): Likewise.
571 (neon_mac_reg_scalar_long): Likewise.
572 (do_neon_vmull): Likewise.
573 (do_neon_trn): Likewise.
574 (do_neon_ldx_stx): Likewise.
575 (neon_dp_fixup): Changed signature and set the flag.
576 (neon_three_same): Call the above with new signature.
577 (neon_two_same): Likewise.
578 (neon_imm_shift): Likewise.
579 (neon_mul_mac): Likewise.
580 (do_neon_abs_neg): Likewise.
581 (neon_mixed_length): Likewise.
582 (do_neon_ext): Likewise.
583 (do_neon_mov): Likewise.
584 (do_neon_tbl_tbx): Likewise.
585 (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
586 (neon_compare): Likewise.
587 (do_neon_shll): Likewise.
588 (do_neon_cvt): Likewise.
589 (do_neon_mvn): Likewise.
590 (do_neon_dup): Likewise.
591 (md_assemble): Call check_neon_suffixes ().
593 For older changes see ChangeLog-2009
599 version-control: never