Use memmove to copy overlap memory.
[external/binutils.git] / gas / ChangeLog
1 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR gas/11456
4         * input-scrub.c (input_scrub_next_buffer): Use memmove instead
5         of memcpy to copy overlap memory.
6
7 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
8
9         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
10         (TARGET_CPU_HFILES): Add config/tc-tic6x.h.
11         * Makefile.in: Regenerate.
12         * NEWS: Add news entry for TI C6X support.
13         * app.c (do_scrub_chars): Handle "||^" for TI C6X.  Handle
14         TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR.  Keep spaces in
15         operands if TC_KEEP_OPERAND_SPACES.
16         * configure.tgt (tic6x-*-*): New.
17         * config/tc-ia64.h (TC_PREDICATE_START_CHAR,
18         TC_PREDICATE_END_CHAR): Define.
19         * config/tc-tic6x.c, config/tc-tic6x.h: New.
20         * doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
21         * doc/Makefile.in: Regenerate.
22         * doc/all.texi (TIC6X): Define.
23         * doc/as.texinfo: Add TI C6X documentation.  Include c-tic6x.texi.
24         * doc/c-tic6x.texi: New.
25
26 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27
28         * config/tc-i386.c (lex_got): Use STRING_COMMA_LEN on gotrel.
29
30 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
31
32         * config/tc-i386.c (i386_error): Replace oprand_size_mismatch
33         with operand_size_mismatch.
34         (operand_size_match): Updated.
35         (match_template): Likewise.
36
37 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
38
39         * config/tc-i386.c (i386_error): New.
40         (_i386_insn): Replace err_msg with error.
41         (operand_size_match): Set error instead of err_msg on failure.
42         (operand_type_match): Likewise.
43         (operand_type_register_match): Likewise.
44         (VEX_check_operands): Likewise.
45         (match_template): Likewise.  Use error instead of err_msg with
46         as_bad.
47
48 2010-03-19  Jie Zhang  <jie@codesourcery.com>
49
50         * config/tc-arm.c (make_mapping_symbol): Hanle the case
51         that two mapping symbols have the same value.
52
53 2010-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
54
55         * doc/c-arm.texi (.setfp): Correct example.
56
57 2010-03-18  Wei Guozhi  <carrot@google.com>
58
59         PR gas/11323
60         * config/tc-arm.c (reloc_names): New relocation names.
61         (md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
62         (tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
63         * doc/c-arm.texi (ARM-Relocations): Document the new relocation.
64
65 2010-03-15  Thomas Schwinge  <thomas@codesourcery.com>
66
67         * dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
68         cases, and not only for .eh_frame.
69
70         * dw2gencfi.c (output_cie): Make it more explicit which code paths
71         belong to .eh_frame only.
72
73 2010-03-13  Segher Boessenkool  <segher@kernel.crashing.org>
74
75         * config/tc-v850.c (v850_insert_operand): Handle out-of-range
76         assembler constants on 64-bit hosts.
77
78 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
79
80         * bfin-defs.h, bfin-lex.l, bfin-parse.y, tc-bfin.c, tc-bfin.h:
81         Strip trailing whitespace.
82
83 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
84
85         * doc/c-bfin.texi (-mcpu): Add bf504 and bf506.
86         * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF504 and
87         BFIN_CPU_BF506.
88         (bfin_cpus[]): Add 0.0 for bf504 and bf506.
89
90 2010-03-10  Jie Zhang  <jie@codesourcery.com>
91
92         * doc/as.texinfo: Add Blackfin options.
93         * doc/c-bfin.texi: Document -mfdpic, -mno-fdpic and -mnopic.
94         * config/tc-bfin.c (md_show_usage): Show usage for all
95         Blackfin specific options.
96
97 2010-03-09  Alan Modra  <amodra@gmail.com>
98
99         PR gas/11356
100         * listing.c (listing_newline): Correct backslash quote logic.
101
102 2010-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
103
104         * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
105         (ELF_TARGET_FORMAT64): Define.
106
107 2010-03-05  Paul Brook  <paul@codesourcery.com>
108
109         * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
110
111 2010-03-02  Andrew Stubbs  <ams@codesourcery.com>
112
113         * config/tc-sh.c (get_specific): Move overflow checking code to avoid
114         reading uninitialized data.
115
116 2010-03-01  Tristan Gingold  <gingold@adacore.com>
117
118         * config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.
119
120 2010-02-26  Doug Evans  <dje@sebabeach.org>
121
122         * configure.tgt: Fix mep cpu case.
123
124 2010-02-26  Jie Zhang  <jie@codesourcery.com>
125
126         * config/tc-arm.c (do_t_strexd): Remove
127         operand[1] != operand[2] contraint.
128
129 2010-02-26  Jie Zhang  <jie@codesourcery.com>
130
131         * config/tc-arm.c (neon_select_shape): No need to match
132         the remaining operands in the shape when one operand does
133         not match.
134
135 2010-02-26  Jie Zhang  <jie@codesourcery.com>
136
137         * config/tc-arm.c (do_neon_ld_st_interleave): Reject bad
138         alignment.
139
140 2010-02-25  Doug Evans  <dje@sebabeach.org>
141
142         * cgen.c: Whitespace fixes.
143         (weak_operand_overflow_check): Formatting fix.
144
145 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
146
147         * config/tc-i386.c (match_template): Update error messages.
148
149 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
150
151         * config/tc-i386.c (_i386_insn): Add err_msg.
152         (operand_size_match): Set err_msg on failure.
153         (operand_type_match): Likewise.
154         (operand_type_register_match): Likewise.
155         (VEX_check_operands): Likewise.
156         (match_template): Likewise.  Use i.err_msg with as_bad.
157
158 2010-02-25  Wu Zhangjin <wuzhangjin@gmail.com>
159
160         * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
161         mips_fix_loongson2f_jump): New variables.
162         (md_longopts): Add New options -mfix-loongson2f-nop/jump,
163         -mno-fix-loongson2f-nop/jump.
164         (md_parse_option): Initialize variables via above options.
165         (options): New enums for the above options.
166         (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
167         (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
168         New functions.
169         (append_insn): call fix_loongson2f().
170         (mips_handle_align): Replace the implicit nops.
171         * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
172         for the new mips_handle_align().
173         * doc/c-mips.texi: Document the new options.
174
175 2010-02-23  Daniel Gutson  <dgutson@codesourcery.com>
176
177         * config/tc-arm.c (do_rd_rm_rn): Added warning
178         for obsolete insns.
179
180 2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
181
182         PR binutils/11297
183         * config/tc-avr.c (md_apply_fix): Handle BFD_RELOC_8.
184         (avr_cons_fix_new): Handle fixups of a single byte.
185
186 2010-02-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
187
188         PR 9861
189         * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build
190         compiler's predefines.
191
192 2010-02-19  Alan Modra  <amodra@gmail.com>
193
194         * configure.tgt: Whiltespace.  Sort moxie entry.
195
196 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
197
198         * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use.
199         * doc/c-arm.texi: Likewise.
200
201 2010-02-12  Daniel Gutson <dgutson@codesourcery.com>
202
203         * config/tc-arm.c (asm_opcode): operands type
204         change.
205         (BAD_PC_ADDRESSING): New macro message.
206         (BAD_PC_WRITEBACK): Likewise.
207         (MIX_ARM_THUMB_OPERANDS): New macro.
208         (operand_parse_code): Added enum values.
209         (parse_operands): Added thumb/arm distinction,
210         plus new enum values handling.
211         (encode_arm_addr_mode_2): Validations enhanced.
212         (encode_arm_addr_mode_3): Likewise.
213         (do_rm_rd_rn): Likewise.
214         (encode_thumb32_addr_mode): Likewise.
215         (do_t_ldrex): Likewise.
216         (do_t_ldst): Likewise.
217         (do_t_strex): Likewise.
218         (md_assemble): Call parse_operands with
219         a new parameter.
220         (OPS_1): New macro.
221         (OPS_2): Likewise.
222         (OPS_3): Likewise.
223         (OPS_4): Likewise.
224         (OPS_5): Likewise.
225         (OPS_6): Likewise.
226         (insns): Updated insns operands.
227
228 2010-02-12  Tristan Gingold  <gingold@adacore.com>
229             Douglas B Rupp  <rupp@gnat.com>
230
231         * config/tc-ia64.c (enum reloc_func): Add FUNC_SLOTCOUNT_RELOC.
232         (DUMMY_RELOC_IA64_SLOTCOUNT): Added.
233         (pseudo_func): Add an entry for slotcount.
234         (md_begin): Initialize slotcount pseudo symbol.
235         (ia64_parse_name): Handle @slotcount parameter.
236         (ia64_gen_real_reloc_type): Handle slotcount.
237         (md_apply_fix): Ditto.
238         * doc/c-ia64.texi (IA-64-Relocs): Document @slotcount.
239
240 2010-02-11  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
241
242         * config/tc-xtensa.c (istack_init): Don't call memset.
243
244 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
245
246         * config/tc-xtensa.c (cache_literal_section): Handle prefixes as
247         well as suffixes.
248
249 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
250
251         * config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
252
253 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * config/tc-i386.c (build_modrm_byte): Reformat.
256
257 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
258
259         * config/tc-i386.c: Update copyright.
260
261 2010-02-10  Quentin Neill  <quentin.neill@amd.com>
262             Sebastian Pop  <sebastian.pop@amd.com>
263
264         * config/tc-i386.c (vec_imm4) New operand type.
265         (fits_in_imm4): New.
266         (VEX_check_operands): New.
267         (check_reverse): Call VEX_check_operands.
268         (build_modrm_byte): Reintroduce code for 5
269         operand insns.  Fix whitespace.
270
271 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
272
273         * config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
274         -mpwr6 and -mpwr7.
275
276 2010-02-09  Sterling Augustine  <sterling@tensilica.com>
277
278         * config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New.
279         (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES.
280         (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
281
282 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
283
284         * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
285         non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
286         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
287         BFD_RELOC_ARM_PCREL_CALL)
288
289 2010-02-08  Sterling Augustine  <sterling@tensilica.com>
290
291         * config/tc-xtensa.c (frag_format_size): Generalize logic to
292         handle more instruction sizes and fetch widths.
293         (branch_align_power): Likewise.
294         (text_align_power): Likewise.
295         (bytes_to_stretch): Likewise.
296
297 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
298
299         * config/tc-ppc.c (md_show_usage): Mention -mtitan.  Don't use tabs.
300         (ppc_mach): Handle titan.
301         * doc/c-ppc.texi: Mention -mtitan.
302
303 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
304
305         * config/tc-xtensa.c (UNREACHABLE_MAX_WIDTH): Delete and
306         replace with...
307         (xtensa_fetch_width) ...this.
308
309 2010-02-05  Joseph Myers  <joseph@codesourcery.com>
310
311         * Makefile.am (CPU_TYPES, OBJ_FORMATS, CPU_OBJ_VALID,
312         MULTI_CPU_TYPES, MULTI_CPU_OBJ_VALID): Remove.
313         * Makefile.in: Regenerate.
314
315 2010-02-03  Quentin Neill  <quentin.neill@amd.com>
316
317         * config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
318         (i386_align_code): Rename  PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
319         * config/tc-i386.h (processor_type): Same.
320         * doc/c-i386.texi: Change amdfam15 to bdver1.
321
322 2010-01-29  Nick Clifton  <nickc@redhat.com>
323
324         PR 11136
325         * config/tc-arm.c (neon_check_type): Handle a neon_shape value of
326         NS_NULL.
327
328 2010-01-27  Dave Korn  <dave.korn.cygwin@gmail.com>
329
330         * NEWS: Mention new feature.
331         * config/obj-coff.c (obj_coff_section): Accept digits and use
332         to override default section alignment power if specified.
333         * doc/as.texinfo (.section directive): Update documentation.
334
335 2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>
336
337         * config/tc-i386.c (avxscalar): New.
338         (OPTION_MAVXSCALAR): Likewise.
339         (build_vex_prefix): Select vector_length for scalar instructions
340         based on avxscalar.
341         (md_longopts): Add OPTION_MAVXSCALAR.
342         (md_parse_option): Handle OPTION_MAVXSCALAR.
343         (md_show_usage): Add -mavxscalar=.
344
345         * doc/c-i386.texi: Document -mavxscalar=.
346
347 2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>
348
349         * config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
350         0xc4 individually.
351
352 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
353
354         * write.h (fix_at_start): Declare.
355         * write.c (fix_new_internal): Add at_beginning parameter.
356         Use it instead of REVERSE_SORT_RELOCS.  Fix the handling of
357         seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
358         (fix_new, fix_new_exp): Update accordingly.
359         (fix_at_start): New function.
360         * config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
361         (ppc_ref): New function, for OBJ_XCOFF.
362         (md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
363         * config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
364
365 2010-01-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
366
367         * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
368         on 64-bit Solaris/x86.
369         Include obj-format.h earlier.
370
371 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
372
373         * config/tc-s390.c (s390_elf_final_processing): New function.
374         * config/tc-s390.h (elf_tc_final_processing): New macro definition.
375         (s390_elf_final_processing): Added prototype.
376
377
378 2010-01-20  Nick Clifton  <nickc@redhat.com>
379
380         PR 11109
381         * config/tc-arm.c (do_neon_cvt): Rename to do_neon_cvt_1.  Add
382         code to handle round-to-zero for VCVT conversions.
383         (do_neon_cvt): New.  Call do_neon_cvt_1.
384         (do_neon_cvtr): New.  Call do_neon_cvt_1.
385         (insns): Use do_neon_cvt for VCVT insn and do_neon_cvtr for VCVTR
386         insn.
387
388 2010-01-18  Tristan Gingold  <gingold@adacore.com>
389
390         * config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
391
392 2010-01-15  Sebastian Pop  <sebastian.pop@amd.com>
393
394         * config/tc-i386.c (md_assemble): Before accessing the IMM field
395         check that it's not an XOP insn.
396
397 2010-01-14  Jie Zhang  <jie.zhang@analog.com>
398
399         * config/bfin-aux.h: Remove argument names in function
400         declarations.
401         * config/bfin-lex.l (parse_int): Fix shadowed variable name
402         warning.
403         * config/bfin-parse.y (value_match): Remove argument names
404         in declaration.
405         (notethat): Likewise.
406         (yyerror): Likewise.
407
408 2010-01-13  Daniel Jacobowitz  <dan@codesourcery.com>
409
410         * config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.
411
412 2010-01-13  Nick Clifton  <nickc@redhat.com>
413
414         * config/tc-h8300.c (h8300_elf_section): New function - issue a
415         warning message if a new section is created without setting any
416         attributes for it.
417         (md_pseudo_table): Intercept section creation pseudos.
418         (md_pcrel_from): Replace abort with an error message.
419         * config/obj-elf.c (obj_elf_section_name): Export this function.
420         * config/obj-elf.h (obj_elf_section_name): Prototype.
421
422 2010-01-12  Alan Modra  <amodra@gmail.com>
423
424         PR 11122
425         * listing.c (print_source): Add one to line number.
426
427 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
428
429         * Makefile.in: Regenerate.
430         * configure: Regenerate.
431         * doc/Makefile.in: Regenerate.
432
433 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
434
435         * version.c (parse_args): Change to "Copyright 2010".
436
437 2010-01-06  Quentin Neill  <quentin.neill@amd.com>
438
439         * config/tc-i386.c (cpu_arch): Add amdfam15.
440         (i386_align_code): Add PROCESSOR_AMDFAM15 cases.
441         * config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
442         * doc/c-i386.texi: Add amdfam15.
443
444 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
445
446         * config/tc-arm.c (do_neon_logic): Accept imm value
447         in the third operand too.
448         (operand_parse_code): OP_RNDQ_IMVNb renamed to
449         OP_RNDQ_Ibig.
450         (parse_operands): OP_NILO case removed, applied renaming.
451         (insns): Neon shape changed for some logic instructions.
452
453 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
454
455         * config/tc-arm.c (do_neon_ldx_stx): Added
456         validation for vector load/store insns.
457
458 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
459
460         * config/tc-ppc.c (md_show_usage): Document -me500mc64.
461
462 2010-01-03  Daniel Gutson  <dgutson@codesourcery.com>
463
464         * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
465         (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
466         (NEON_ENCODE): New macro.
467         (check_neon_suffixes): New macro.
468         (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
469         (do_vfp_nsyn_opcode): Likewise.
470         (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
471         (do_vfp_nsyn_cmp): Likewise.
472         (do_neon_shl_imm): Likewise.
473         (do_neon_qshl_imm): Likewise.
474         (neon_dyadic_misc): Likewise.
475         (do_neon_mac_maybe_scalar): Likewise.
476         (do_neon_qdmulh): Likewise.
477         (do_neon_qmovn): Likewise.
478         (do_neon_qmovun): Likewise.
479         (do_neon_movn): Likewise.
480         (neon_mac_reg_scalar_long): Likewise.
481         (do_neon_vmull): Likewise.
482         (do_neon_trn): Likewise.
483         (do_neon_ldx_stx): Likewise.
484         (neon_dp_fixup): Changed signature and set the flag.
485         (neon_three_same): Call the above with new signature.
486         (neon_two_same): Likewise.
487         (neon_imm_shift): Likewise.
488         (neon_mul_mac): Likewise.
489         (do_neon_abs_neg): Likewise.
490         (neon_mixed_length): Likewise.
491         (do_neon_ext): Likewise.
492         (do_neon_mov): Likewise.
493         (do_neon_tbl_tbx): Likewise.
494         (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
495         (neon_compare): Likewise.
496         (do_neon_shll): Likewise.
497         (do_neon_cvt): Likewise.
498         (do_neon_mvn): Likewise.
499         (do_neon_dup): Likewise.
500         (md_assemble): Call check_neon_suffixes ().
501
502 For older changes see ChangeLog-2009
503 \f
504 Local Variables:
505 mode: change-log
506 left-margin: 8
507 fill-column: 74
508 version-control: never
509 End: