Support AVX Programming Reference (June, 2010)
[external/binutils.git] / gas / ChangeLog
1 2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2
3         AVX Programming Reference (June, 2010)
4         * config/tc-i386.c (cpu_arch): Add .xsaveopt, .fsgsbase, .rdrnd
5         and .f16c.
6
7         * doc/c-i386.texi: Document xsaveopt, fsgsbase, rdrnd and f16c.
8
9 2010-07-01  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10
11         * config/tc-arm.c (do_t_mov_cmp): Fix reporting of unpredictable and
12         deprecated mov register instructions.
13
14 2010-07-01  Alan Modra  <amodra@gmail.com>
15
16         * config/tc-ppc.c (toc_reloc_types): New variable.
17         (md_assemble): Set it.
18         (ppc_frob_file_before_adjust): Don't warn about toc section size
19         if we have large toc relocs and no small toc relocs.
20
21 2010-06-29  Alan Modra  <amodra@gmail.com>
22
23         * config/tc-moxie.c (md_apply_fix): Delete set but otherwise
24         unused variable.
25
26 2010-06-29  Alan Modra  <amodra@gmail.com>
27
28         * config/tc-maxq.h: Delete file.
29         * config/tc-maxq.c: Delete file.
30         * Makefile.am: Remove references to maxq.
31         * configure.tgt: Likewise.
32         * config/obj-coff.h: Likewise.
33         * Makefile.in: Regenerate.
34         * configure: Regenerate.
35         * po/POTFILES.in: Regenerate.
36
37 2010-06-28  Alan Modra  <amodra@gmail.com>
38
39         * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.
40         * config/tc-crx.c (gettrap): Constify arg.
41         (handle_LoadStor, get_cinv_parameters): Likewise.
42         (getreg_image): Fix enum warning
43         (md_assemble): Restore input line char.
44         * config/tc-hppa.c (tc_gen_reloc): Fix enum warning.
45         * config/tc-i960.c (mem_fmt): Rename var to fix shadow warning.
46         * config/tc-sh.c (sh_fdpic): Only define when OBJ_ELF.
47         (build_Mytes): Fix build failure for non-elf targets.
48         * config/tc-tic4x.c (tic4x_eval): Restore terminator char.
49         * config/tc-xtensa.c (xtensa_end_directive): Fix switch enum warning.
50
51         * cgen.c (gas_cgen_md_apply_fix): Avoid set but unused warning.
52         * ecoff.c (add_ecoff_symbol): Likewise.
53         * itbl-ops.c (append_insns_as_macros): Likewise.
54         * listing.c (debugging_pseudo): Likewise.
55         * read.c (s_mri_common, stringer): Likewise.
56         * config/obj-coff.c (coff_frob_section): Likewise.
57         * config/tc-alpha.c (emit_ldgp, s_alpha_proc): Likewise.
58         * config/tc-arm.c (my_get_expression): Likewise.
59         * config/tc-hppa.c (process_exit, pa_type_args): Likewise.
60         * config/tc-m32c.c (md_assemble): Likewise.
61         * config/tc-microblaze.c (md_convert_frag): Likewise.
62         * config/tc-mips.c (s_change_section): Likewise.
63         * config/tc-mt.c (mt_fix_adjustable): Likewise.
64         * config/tc-xtensa.c (xtensa_literal_pseudo): Likewise.
65
66         * config/obj-aout.c (obj_aout_frob_symbol): Delete set but otherwise
67         unused vars.
68         * config/tc-alpha.c (load_expression): Likewise.
69         (s_alpha_rdata, s_alpha_section, s_alpha_prologue): Likewise.
70         * config/tc-arm.c (parse_neon_el_struct_list): Likewise.
71         * config/tc-avr.c (extract_word): Likewise.
72         * config/tc-cris.c (cris_get_expression): Likewise.
73         * config/tc-d30v.c (build_insn, find_format): Likewise.
74         * config/tc-dlx.c (machine_ip): Likewise.
75         * config/tc-hppa.c (pa_get_absolute_expression): Likewise.
76         * config/tc-i370.c (md_assemble): Likewise.
77         * config/tc-i960.c (brtab_emit): Likewise.
78         * config/tc-iq2000.c (s_iq2000_ent): Likewise.
79         * config/tc-m32c.c (md_convert_frag): Likewise.
80         * config/tc-m68hc11.c (fixup24, build_jump_insn): Likewise.
81         (md_estimate_size_before_relax, md_apply_fix): Likewise.
82         * config/tc-m68k.c (md_show_usage): Likewise.
83         * config/tc-microblaze.c (microblaze_s_lcomm): Likewise.
84         * config/tc-mips.c (s_mips_end): Likewise.
85         * config/tc-mmix.c (mmix_byte, mmix_cons): Likewise.
86         * config/tc-mn10300.c (md_assemble): Likewise.
87         * config/tc-msp430.c (extract_word): Likewise.
88         * config/tc-mt.c (md_assemble): Likewise.
89         * config/tc-or32.c (machine_ip): Likewise.
90         * config/tc-pj.c (md_apply_fix): Likewise.
91         * config/tc-s390.c (md_gather_operands): Likewise.
92         * config/tc-sh.c (sh_cons_align): Likewise.
93         * config/tc-sparc.c (sparc_cons_align): Likewise.
94         * config/tc-tic4x.c (tic4x_sect): Likewise.
95         * config/tc-tic54x.c (tic54x_stringer): Likewise.
96         * config/tc-vax.c (vip_op): Likewise.
97         * config/tc-xstormy16.c (xstormy16_cons_fix_new): Likewise.
98         * config/tc-xtensa.c (md_assemble): Likewise.
99         (xtensa_fix_short_loop_frags, convert_frag_immed): Likewise.
100         (xtensa_move_literals): Likewise.
101
102 2010-06-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
103
104         * config/tc-arm.c (parse_neon_alignment): New function.
105         (parse_address_main): Fix Neon load/store alignment parsing.
106
107 2010-06-22  Jan Beulich  <jbeulich@novell.com>
108
109         PR gas/11732
110         * config/tc-i386-intel.c (i386_intel_parse_name): Handle pseudo
111         symbols named "$".
112         (i386_intel_operand): Remove bogus handling of pseudo symbols
113         named "$".
114         * expr.c (current_location): Remove 'static' and local
115         declaration.
116         * expr.h (current_location): Declare.
117
118 2010-06-21  Sterling Augustine  <sterling@tensilica.com>
119
120         PR gas/11728
121         * as.c: Globalize keep_it.
122         (main): Remove keep_it. Move conditional from here...
123         (close_output_file): ...to here.
124
125 2010-06-21  Andreas Schwab  <schwab@redhat.com>
126
127         * doc/as.texinfo (Overview): Use @itemx for grouped @table
128         items.
129         * doc/c-alpha.texi (Alpha Options): Likewise.
130         * doc/c-arm.texi (ARM Directives): Likewise.
131         * doc/c-bfin.texi (Blackfin Options): Likewise.
132         * doc/c-d10v.texi (D10V-Opts): Likewise.
133         * doc/c-i386.texi (i386-Options): Likewise.
134         * doc/c-ia64.texi (IA-64 Options): Likewise.
135         * doc/c-m68k.texi (M68K-Opts): Likewise.
136         * doc/c-tic54x.texi (TIC54X-Directives): Likewise.
137         * doc/internals.texi (Symbols): Likewise.
138
139 2010-06-21  Alan Modra  <amodra@gmail.com>
140
141         PR gas/11733
142         * config/tc-sh.c (find_cooked_opcode): Correct array bounds check.
143
144 2010-06-18  Joseph Myers  <joseph@codesourcery.com>
145
146         * config/tc-tic6x.h (tic6x_segment_info_type): Add field
147         func_units_used.
148         * config/tc-tic6x.c (tic6x_cons_align: Clear func_units_used.
149         (md_assemble): Clear func_units_used for new execute packet.
150         Check for duplicate functional units and update func_units_used
151         for instructions using a functional unit.
152
153 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
154
155         * config/tc-tic6x.c: Include elf/tic6x.h.
156         (tic6x_arch_attribute, tic6x_seen_insns): New.
157         (tic6x_arch_table, tic6x_arches): Add attribute values.
158         (tic6x_use_arch): Handle attribute settings.
159         (tic6x_attributes_set_explicitly, s_tic6x_c6xabi_attribute,
160         tic6x_attribute_table, tic6x_attributes,
161         tic6x_convert_symbolic_attribute): New.
162         (md_pseudo_table): Add c6xabi_attribute.
163         (md_assemble): Set tic6x_seen_insns and tic6x_arch_attribute.
164         (tic6x_set_attribute_int, tic6x_set_attributes): New.
165         (tic6x_end): Call tic6x_set_attributes.
166         * config/tc-tic6x.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define.
167         (tic6x_convert_symbolic_attribute): Declare.
168
169 2010-06-14  Alan Modra  <amodra@gmail.com>
170
171         * config/tc-ppc.c (md_assemble): Emit APUinfo section for
172         PPC_OPCODE_E500.
173
174 2010-06-11  Jan Beulich  <jbeulich@novell.com>
175
176         * config/tc-i386.c (md_parse_option): Ignore impossible processor
177         types.
178         (show_arch): New parameter 'check'.
179         (md_show_usage): Adjust calls to show_arch().
180
181 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
182
183         * config/tc-i386.c (update_code_flag): New.
184         (set_code_flag): Use it.
185         (i386_target_format): Replace set_code_flag with update_code_flag.
186
187 2010-06-10  Tristan Gingold  <gingold@adacore.com>
188
189         * config/obj-som.h: Includes som/reloc.h
190
191 2010-06-10  Jan Beulich  <jbeulich@novell.com>
192
193         * config/tc-i386.c (cpu_arch): Add comment.
194         (i386_target_format): Set cpu_arch_isa_flags and cpu_arch_tune_flags
195         from the generic entries of cpu_arch[].
196
197 2010-06-08  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
198
199         * config/tc-arm.c (operand_parse_code): Add OP_RRnpctw enum
200         value.
201         (parse_operands): Add support for OP_RRnpctw.
202         (insns): Update floating-point load/store multiples so the
203         first register is of type OP_RRnpctw.
204
205 2010-06-08  Quentin Neill  <quentin.neill@amd.com>
206
207         * config/tc-i386.c (pi): Rename local loop counter
208         variable i that shadows global static i386_insn i
209         when DEBUG386 is defined.
210         (pte) Ditto.
211
212 2010-06-08  Nick Clifton  <nickc@redhat.com>
213
214         * doc/as.texinfo: Replace abbreviated 20th century year numbers
215         with full versions.
216
217 2010-06-02  Quentin Neill  <quentin.neill@amd.com>
218
219         * config/tc-i386.c (OPTION_MAVXSCALAR): Fix define.
220
221 2010-06-02  Tristan Gingold  <gingold@adacore.com>
222
223         * as.h: Remove conditionnal definition of HAVE_STDARG_H,
224         USE_STDARG, va_alist, va_dcl, va_list, va_start, va_end.
225         Remove conditionnal inclusion of stdarg.h and varargs.h.
226         Assume ISO C.
227         * config.in: Regenerate.
228         * configure: Regenerate.
229         * configure.in: Remove stdarg.h and varargs.h from
230         AC_CHECK_HEADERS list.
231         * messages.c (as_tsktsk): Remove non ISO C version.
232         (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
233
234 2010-05-31  Tristan Gingold  <gingold@adacore.com>
235
236         * config/tc-alpha.c: Add comments for evax.
237         * config/obj-evax.c: Ditto.
238
239 2010-05-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
240
241         * config/tc-arm.c (do_t_mov_cmp): In unified syntax encode movs as
242         lsls and not adds.
243
244 2010-05-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
245
246         * config/tc-arm.c (encode_thumb2_ldmstm): Make warning about
247         writeback when base register is in register list an error, and
248         correct check.
249         (do_t_ldmstm): Change warnings.
250
251 2010-05-26  Catherine Moore  <clm@codesourcery.com>
252
253         * config/tc-mips.c (is_opcode_valid): Remove expansionp.
254         (macro_build): Change invocation of is_opcode_valid.
255         (mips_ip): Likewise.
256
257 2010-05-25  Nick Clifton  <nickc@redhat.com>
258
259         * Makefile.am (MOSTLYCLEANFILES): Fix typo.
260         * Makefile.in: Regenerate.
261
262 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
263             Joseph Myers  <joseph@codesourcery.com>
264             Andrew Stubbs  <ams@codesourcery.com>
265
266         * config/tc-sh.c (sh_fdpic): New.
267         (sh_check_fixup): Handle relocations on movi20.
268         (parse_exp): Do not reject PIC operators here.
269         (build_Mytes): Check for unhandled PIC operators here.  Use
270         sh_check_fixup for movi20.
271         (enum options): Add OPTION_FDPIC.
272         (md_longopts, md_parse_option, md_show_usage): Add --fdpic.
273         (sh_fix_adjustable, md_apply_fix): Handle FDPIC and movi20 relocations.
274         (sh_elf_final_processing): Handle --fdpic.
275         (sh_uclinux_target_format): New.
276         (sh_parse_name): Handle FDPIC relocation operators.
277         * config/tc-sh.h (TARGET_FORMAT): Define specially for TE_UCLINUX.
278         (sh_uclinux_target_format): Declare for TE_UCLINUX.
279         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): Set
280         em=uclinux.
281         * doc/c-sh.texi (SH Options): Document --fdpic.
282
283 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
284
285         PR ld/11621
286         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
287         * Makefile.in: Regenerate.
288
289 2010-05-25  Alan Modra  <amodra@gmail.com>
290
291         * config/tc-ppc.c (ppc_section_flags): Add ATTRIBUTE_UNUSED to "attr".
292
293 2010-05-19  Nick Clifton  <nickc@redhat.com>
294
295         * config/tc-h8300.c (h8300_elf_section): Add .zdebug to the list
296         of known section prefixes.
297
298 2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
299
300         PR gas/11600
301         * obj-elf.c (obj_elf_change_section): Handle SHF_EXCLUDE.
302         (obj_elf_parse_section_letters): Likewise.
303         (obj_elf_section_word): Likewise.
304
305         * config/tc-ppc.c (ppc_section_letter): Removed.
306         (ppc_section_word): Likewise.
307         * config/tc-ppc.h (ppc_section_letter): Likewise.
308         (ppc_section_word): Likewise.
309         (md_elf_section_letter): Likewise.
310         (md_elf_section_word): Likewise.
311
312         * doc/as.texinfo: Document `e' and `#exclude'.
313
314 2010-05-13  Nathan Sidwell  <nathan@codesourcery.com>
315
316         * config/tc-arm.c (md_assemble): Clarify current mode in error
317         messages about unsupported instructions.
318         (UT): Delete #define.
319         (insns): Adjust cbnz, cbz appropriately.
320
321 2010-05-11  Andrew Stubbs  <ams@codesourcery.com>
322
323         * config/tc-arm.c (aeabi_set_public_attributes): Set Tag_DIV_use.
324
325 2010-05-11  Jie Zhang  <jie@codesourcery.com>
326
327         * config/tc-arm.c (aeabi_set_public_attributes): Set
328         Tag_ABI_HardFP_use to 1 if a single precision FPU is selected.
329
330 2010-05-07  Tristan Gingold  <gingold@adacore.com>
331
332         * Makefile.in: Regenerate with automake 1.11.1.
333         * aclocal.m4: Ditto.
334         * doc/Makefile.in: Ditto.
335
336 2010-05-05  Nick Clifton  <nickc@redhat.com>
337
338         * po/es.po: Updated Spanish translation.
339
340 2010-05-05  Julian Brown  <julian@codesourcery.com>
341
342         * read.c (cons_worker): Detect and reject unexpected string argument.
343
344 2010-05-04  Nick Clifton  <nickc@redhat.com>
345
346         * write.c (fixup_segment): Revert previous delta.
347         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Also force the
348         generation of relocations for fixups against weak symbols.
349
350 2010-04-29  Nathan Sidwell  <nathan@codesourcery.com>
351
352         * write.c (fixup_segment): Do not assume we know the section a
353         defined weak symbol is in.
354         * config/tc-arm.c (relax_adr, relax_branch, md_apply_fix): Treat
355         weak symbols as not known to be in the same section, even if they
356         are defined.
357
358 2010-04-27  Joseph Myers  <joseph@codesourcery.com>
359
360         * config/tc-tic6x.h (tic6x_label_list): New.
361         (tic6x_segment_info_type): Keep a list of labels and a current
362         frag instead of a boolean for whether labels seen and a count of
363         instructions.
364         (tic6x_frag_info, TC_FRAG_TYPE, TC_FRAG_INIT, tic6x_frag_init,
365         md_do_align, tic6x_do_align, md_end, tic6x_end): New.
366         * config/tc-tic6x.c (tic6x_frob_label): Put label on list.
367         (tic6x_cleanup): Correct comment.
368         (tic6x_free_label_list): New.
369         (tic6x_cons_align): Free label list and update for
370         tic6x_segment_info_type changes.
371         (tic6x_do_align): New.
372         (md_assemble): Handle list of labels and saved frag for execute
373         packet.  Create machine-dependent frag for new execute packet and
374         adjust labels accordingly.
375         (tic6x_adjust_section, tic6x_frag_init, tic6x_end): New.
376         (md_convert_frag, md_estimate_size_before_relax): Update comments.
377
378 2010-04-24  H.J. Lu  <hongjiu.lu@intel.com>
379
380         PR gas/11535
381         * config/tc-i386-intel.c (intel_state): Add is_indirect.
382         (i386_intel_operand): Initialize intel_state.is_indirect.  Check
383         intel_state.is_indirect for "call|jmp [symbol]".
384
385 2010-04-22  Nick Clifton  <nickc@redhat.com>
386
387         * po/gas.pot: Updated by the Translation project.
388
389 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
390
391         * config/tc-i386.c (i386_is_register): Removed.
392         (x86_cons): Don't use i386_is_register.
393         (parse_register): Likewise.
394         * config/tc-i386-intel.c (i386_intel_simplify): Likewise.
395         (i386_intel_operand): Likewise.
396
397 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
398
399         * config/tc-i386.c (tc_x86_parse_to_dw2regnum): Don't use
400         i386_is_register.
401
402 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
403
404         * config/tc-i386.c (i386_is_register): Remove is_intel_syntax.
405         (x86_cons): Updated.
406         (parse_register): Likewise.
407         (tc_x86_parse_to_dw2regnum): Likewise.
408         * config/tc-i386-intel.c (i386_intel_simplify): Likewise.
409         (i386_intel_operand): Likewise.
410
411 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
412
413         PR gas/11509
414         * config/tc-i386-intel.c (i386_intel_simplify_register): New.
415         (i386_intel_simplify): Use i386_is_register and
416         i386_intel_simplify_register. Set X_md for O_register and
417         check X_md for O_constant.
418         (i386_intel_operand): Use i386_is_register.
419
420         * config/tc-i386.c (i386_is_register): New.
421         (x86_cons): Initialize the X_md field.  Use i386_is_register.
422         (parse_register): Use i386_is_register.
423         (tc_x86_parse_to_dw2regnum): Likewise.
424
425 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
426
427         * expr.c (expr): Initialize the X_md field.
428
429 2010-04-20  Joseph Myers  <joseph@codesourcery.com>
430
431         * config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
432         (md_longopts): Add -mgenerate-rel.
433         (tic6x_generate_rela): New.
434         (md_parse_option): Handle -mgenerate-rel.
435         (md_show_usage): Add comment that -mgenerate-rel is undocumented.
436         (tic6x_init_after_args): New.
437         (md_apply_fix): Correct shift calculations for SB-relative
438         relocations.
439         (md_pcrel_from): Change to tic6x_pcrel_from_section.  Do not
440         adjust addresses for relocations referencing symbols in other
441         sections.
442         (tc_gen_reloc): Adjust addend calculations for REL relocations.
443         * config/tc-tic6x.h (MD_PCREL_FROM_SECTION,
444         tic6x_pcrel_from_section, tc_init_after_args,
445         tic6x_init_after_args): New.
446
447 2010-04-20  Nick Clifton  <nickc@redhat.com>
448
449         PR gas/11507
450         * macro.c (macro_expand_body): Do not treat LOCAL as a keyword in
451         altmacro mode if found inside a quoted string.
452
453 2010-04-20  Mike Frysinger  <vapier@gentoo.org>
454
455         * config/bfin-lex.l (parse_int): Change index() to strchr().
456
457 2010-04-16  Nick Clifton  <nickc@redhat.com>
458
459         PR gas/11395
460         * config/tc-hppa.c (pa_ip): Do not allow 64-bit add condition
461         matcher to accept and unconditional 32-bit add instruction.
462         (pa_build_unwind_subspace): Cope with error conditions not
463         allowing the start symbol to be set.
464
465 2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
466
467         * config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
468         new tag names in v2.08 of ARM ABI.
469         * doc/c-arm.texi: Document new tag names in ABI.
470
471 2010-04-14  Tristan Gingold  <gingold@adacore.com>
472
473         * config/tc-alpha.c: Includes vms/egps.h on EVAX.
474         (s_alpha_comm): Used new EGPS macros from egps.h
475         (RGPS__V_NO_SHIFT, EGPS__V_MASK): New local macros.
476         (s_alpha_section_word): Add comments.  Use new EGPS macros.
477         Adjust for modified bfd_vms_set_section_flags function.
478
479 2010-04-10  Alan Modra  <amodra@gmail.com>
480
481         PR gas/11486
482         * config/tc-ppc.c (ppc_elf_cons): Clear frag contents.
483
484 2010-04-09  Nick Clifton  <nickc@redhat.com>
485
486         * as.c (create_obj_attrs_section): Remove unused variable addr.
487         * listing.c (listing_listing): Remove unused variable message.
488         * read.c: Remove unnecessary register type qualifiers.
489         (s_mri): Only define/use old_flag variable if MRI_MODE_CHANGE is
490         defined.
491
492 2010-04-07  Eric B. Weddington  <eric.weddington@atmel.com>
493
494         * config/tc-avr.c (mcu_types): Add support for atmega16a, atmega168a,
495         atmega164a, atmega165a, atmega169a, atmega169pa, atmega16hva2,
496         atmega324a, atmega324pa, atmega325a, atmega3250a, atmega328,
497         atmega329a, atmega329pa, atmega3290a, atmega48a, atmega644a,
498         atmega645a, atmega645p, atmega6450a, atmega6450p, atmega649a,
499         atmega649p, atmega6490a, atmega6490p, atmega64hve, atmega88a,
500         atmega88pa, attiny461a, attiny84a, m3000.
501         Remove support for atmega8m1, atmega8c1, atmega16c1, atmega4hvd,
502         atmega8hvd, attiny327, m3000f, m3000s, m3001b.
503         * doc/c-avr.texi: Same.
504
505 2010-04-07  Jie Zhang  <jie@codesourcery.com>
506
507         * config/tc-arm.c (make_mapping_symbol): Handle the case
508         that multiple mapping symbols have the same value 0.
509
510 2010-04-07  Alan Modra  <amodra@gmail.com>
511
512         * configure: Regenerate.
513
514 2010-04-06  Nick Clifton  <nickc@redhat.com>
515
516         * po/ru.po: New Russian translation.
517         * configure.in (ALL_LINGUAS): Add ru.
518         * configure: Regenerate.
519
520 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
521
522         PR gas/11456
523         * input-scrub.c (input_scrub_next_buffer): Use memmove instead
524         of memcpy to copy overlap memory.
525
526 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
527
528         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
529         (TARGET_CPU_HFILES): Add config/tc-tic6x.h.
530         * Makefile.in: Regenerate.
531         * NEWS: Add news entry for TI C6X support.
532         * app.c (do_scrub_chars): Handle "||^" for TI C6X.  Handle
533         TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR.  Keep spaces in
534         operands if TC_KEEP_OPERAND_SPACES.
535         * configure.tgt (tic6x-*-*): New.
536         * config/tc-ia64.h (TC_PREDICATE_START_CHAR,
537         TC_PREDICATE_END_CHAR): Define.
538         * config/tc-tic6x.c, config/tc-tic6x.h: New.
539         * doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
540         * doc/Makefile.in: Regenerate.
541         * doc/all.texi (TIC6X): Define.
542         * doc/as.texinfo: Add TI C6X documentation.  Include c-tic6x.texi.
543         * doc/c-tic6x.texi: New.
544
545 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
546
547         * config/tc-i386.c (lex_got): Use STRING_COMMA_LEN on gotrel.
548
549 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
550
551         * config/tc-i386.c (i386_error): Replace oprand_size_mismatch
552         with operand_size_mismatch.
553         (operand_size_match): Updated.
554         (match_template): Likewise.
555
556 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
557
558         * config/tc-i386.c (i386_error): New.
559         (_i386_insn): Replace err_msg with error.
560         (operand_size_match): Set error instead of err_msg on failure.
561         (operand_type_match): Likewise.
562         (operand_type_register_match): Likewise.
563         (VEX_check_operands): Likewise.
564         (match_template): Likewise.  Use error instead of err_msg with
565         as_bad.
566
567 2010-03-19  Jie Zhang  <jie@codesourcery.com>
568
569         * config/tc-arm.c (make_mapping_symbol): Hanle the case
570         that two mapping symbols have the same value.
571
572 2010-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
573
574         * doc/c-arm.texi (.setfp): Correct example.
575
576 2010-03-18  Wei Guozhi  <carrot@google.com>
577
578         PR gas/11323
579         * config/tc-arm.c (reloc_names): New relocation names.
580         (md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
581         (tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
582         * doc/c-arm.texi (ARM-Relocations): Document the new relocation.
583
584 2010-03-15  Thomas Schwinge  <thomas@codesourcery.com>
585
586         * dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
587         cases, and not only for .eh_frame.
588
589         * dw2gencfi.c (output_cie): Make it more explicit which code paths
590         belong to .eh_frame only.
591
592 2010-03-13  Segher Boessenkool  <segher@kernel.crashing.org>
593
594         * config/tc-v850.c (v850_insert_operand): Handle out-of-range
595         assembler constants on 64-bit hosts.
596
597 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
598
599         * bfin-defs.h, bfin-lex.l, bfin-parse.y, tc-bfin.c, tc-bfin.h:
600         Strip trailing whitespace.
601
602 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
603
604         * doc/c-bfin.texi (-mcpu): Add bf504 and bf506.
605         * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF504 and
606         BFIN_CPU_BF506.
607         (bfin_cpus[]): Add 0.0 for bf504 and bf506.
608
609 2010-03-10  Jie Zhang  <jie@codesourcery.com>
610
611         * doc/as.texinfo: Add Blackfin options.
612         * doc/c-bfin.texi: Document -mfdpic, -mno-fdpic and -mnopic.
613         * config/tc-bfin.c (md_show_usage): Show usage for all
614         Blackfin specific options.
615
616 2010-03-09  Alan Modra  <amodra@gmail.com>
617
618         PR gas/11356
619         * listing.c (listing_newline): Correct backslash quote logic.
620
621 2010-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
622
623         * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
624         (ELF_TARGET_FORMAT64): Define.
625
626 2010-03-05  Paul Brook  <paul@codesourcery.com>
627
628         * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
629
630 2010-03-02  Andrew Stubbs  <ams@codesourcery.com>
631
632         * config/tc-sh.c (get_specific): Move overflow checking code to avoid
633         reading uninitialized data.
634
635 2010-03-01  Tristan Gingold  <gingold@adacore.com>
636
637         * config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.
638
639 2010-02-26  Doug Evans  <dje@sebabeach.org>
640
641         * configure.tgt: Fix mep cpu case.
642
643 2010-02-26  Jie Zhang  <jie@codesourcery.com>
644
645         * config/tc-arm.c (do_t_strexd): Remove
646         operand[1] != operand[2] contraint.
647
648 2010-02-26  Jie Zhang  <jie@codesourcery.com>
649
650         * config/tc-arm.c (neon_select_shape): No need to match
651         the remaining operands in the shape when one operand does
652         not match.
653
654 2010-02-26  Jie Zhang  <jie@codesourcery.com>
655
656         * config/tc-arm.c (do_neon_ld_st_interleave): Reject bad
657         alignment.
658
659 2010-02-25  Doug Evans  <dje@sebabeach.org>
660
661         * cgen.c: Whitespace fixes.
662         (weak_operand_overflow_check): Formatting fix.
663
664 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
665
666         * config/tc-i386.c (match_template): Update error messages.
667
668 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
669
670         * config/tc-i386.c (_i386_insn): Add err_msg.
671         (operand_size_match): Set err_msg on failure.
672         (operand_type_match): Likewise.
673         (operand_type_register_match): Likewise.
674         (VEX_check_operands): Likewise.
675         (match_template): Likewise.  Use i.err_msg with as_bad.
676
677 2010-02-25  Wu Zhangjin <wuzhangjin@gmail.com>
678
679         * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
680         mips_fix_loongson2f_jump): New variables.
681         (md_longopts): Add New options -mfix-loongson2f-nop/jump,
682         -mno-fix-loongson2f-nop/jump.
683         (md_parse_option): Initialize variables via above options.
684         (options): New enums for the above options.
685         (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
686         (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
687         New functions.
688         (append_insn): call fix_loongson2f().
689         (mips_handle_align): Replace the implicit nops.
690         * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
691         for the new mips_handle_align().
692         * doc/c-mips.texi: Document the new options.
693
694 2010-02-23  Daniel Gutson  <dgutson@codesourcery.com>
695
696         * config/tc-arm.c (do_rd_rm_rn): Added warning
697         for obsolete insns.
698
699 2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
700
701         PR binutils/11297
702         * config/tc-avr.c (md_apply_fix): Handle BFD_RELOC_8.
703         (avr_cons_fix_new): Handle fixups of a single byte.
704
705 2010-02-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
706
707         PR 9861
708         * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build
709         compiler's predefines.
710
711 2010-02-19  Alan Modra  <amodra@gmail.com>
712
713         * configure.tgt: Whiltespace.  Sort moxie entry.
714
715 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
716
717         * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use.
718         * doc/c-arm.texi: Likewise.
719
720 2010-02-12  Daniel Gutson <dgutson@codesourcery.com>
721
722         * config/tc-arm.c (asm_opcode): operands type
723         change.
724         (BAD_PC_ADDRESSING): New macro message.
725         (BAD_PC_WRITEBACK): Likewise.
726         (MIX_ARM_THUMB_OPERANDS): New macro.
727         (operand_parse_code): Added enum values.
728         (parse_operands): Added thumb/arm distinction,
729         plus new enum values handling.
730         (encode_arm_addr_mode_2): Validations enhanced.
731         (encode_arm_addr_mode_3): Likewise.
732         (do_rm_rd_rn): Likewise.
733         (encode_thumb32_addr_mode): Likewise.
734         (do_t_ldrex): Likewise.
735         (do_t_ldst): Likewise.
736         (do_t_strex): Likewise.
737         (md_assemble): Call parse_operands with
738         a new parameter.
739         (OPS_1): New macro.
740         (OPS_2): Likewise.
741         (OPS_3): Likewise.
742         (OPS_4): Likewise.
743         (OPS_5): Likewise.
744         (OPS_6): Likewise.
745         (insns): Updated insns operands.
746
747 2010-02-12  Tristan Gingold  <gingold@adacore.com>
748             Douglas B Rupp  <rupp@gnat.com>
749
750         * config/tc-ia64.c (enum reloc_func): Add FUNC_SLOTCOUNT_RELOC.
751         (DUMMY_RELOC_IA64_SLOTCOUNT): Added.
752         (pseudo_func): Add an entry for slotcount.
753         (md_begin): Initialize slotcount pseudo symbol.
754         (ia64_parse_name): Handle @slotcount parameter.
755         (ia64_gen_real_reloc_type): Handle slotcount.
756         (md_apply_fix): Ditto.
757         * doc/c-ia64.texi (IA-64-Relocs): Document @slotcount.
758
759 2010-02-11  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
760
761         * config/tc-xtensa.c (istack_init): Don't call memset.
762
763 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
764
765         * config/tc-xtensa.c (cache_literal_section): Handle prefixes as
766         well as suffixes.
767
768 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
769
770         * config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
771
772 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
773
774         * config/tc-i386.c (build_modrm_byte): Reformat.
775
776 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
777
778         * config/tc-i386.c: Update copyright.
779
780 2010-02-10  Quentin Neill  <quentin.neill@amd.com>
781             Sebastian Pop  <sebastian.pop@amd.com>
782
783         * config/tc-i386.c (vec_imm4) New operand type.
784         (fits_in_imm4): New.
785         (VEX_check_operands): New.
786         (check_reverse): Call VEX_check_operands.
787         (build_modrm_byte): Reintroduce code for 5
788         operand insns.  Fix whitespace.
789
790 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
791
792         * config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
793         -mpwr6 and -mpwr7.
794
795 2010-02-09  Sterling Augustine  <sterling@tensilica.com>
796
797         * config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New.
798         (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES.
799         (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
800
801 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
802
803         * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
804         non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
805         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
806         BFD_RELOC_ARM_PCREL_CALL)
807
808 2010-02-08  Sterling Augustine  <sterling@tensilica.com>
809
810         * config/tc-xtensa.c (frag_format_size): Generalize logic to
811         handle more instruction sizes and fetch widths.
812         (branch_align_power): Likewise.
813         (text_align_power): Likewise.
814         (bytes_to_stretch): Likewise.
815
816 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
817
818         * config/tc-ppc.c (md_show_usage): Mention -mtitan.  Don't use tabs.
819         (ppc_mach): Handle titan.
820         * doc/c-ppc.texi: Mention -mtitan.
821
822 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
823
824         * config/tc-xtensa.c (UNREACHABLE_MAX_WIDTH): Delete and
825         replace with...
826         (xtensa_fetch_width) ...this.
827
828 2010-02-05  Joseph Myers  <joseph@codesourcery.com>
829
830         * Makefile.am (CPU_TYPES, OBJ_FORMATS, CPU_OBJ_VALID,
831         MULTI_CPU_TYPES, MULTI_CPU_OBJ_VALID): Remove.
832         * Makefile.in: Regenerate.
833
834 2010-02-03  Quentin Neill  <quentin.neill@amd.com>
835
836         * config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
837         (i386_align_code): Rename  PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
838         * config/tc-i386.h (processor_type): Same.
839         * doc/c-i386.texi: Change amdfam15 to bdver1.
840
841 2010-01-29  Nick Clifton  <nickc@redhat.com>
842
843         PR 11136
844         * config/tc-arm.c (neon_check_type): Handle a neon_shape value of
845         NS_NULL.
846
847 2010-01-27  Dave Korn  <dave.korn.cygwin@gmail.com>
848
849         * NEWS: Mention new feature.
850         * config/obj-coff.c (obj_coff_section): Accept digits and use
851         to override default section alignment power if specified.
852         * doc/as.texinfo (.section directive): Update documentation.
853
854 2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>
855
856         * config/tc-i386.c (avxscalar): New.
857         (OPTION_MAVXSCALAR): Likewise.
858         (build_vex_prefix): Select vector_length for scalar instructions
859         based on avxscalar.
860         (md_longopts): Add OPTION_MAVXSCALAR.
861         (md_parse_option): Handle OPTION_MAVXSCALAR.
862         (md_show_usage): Add -mavxscalar=.
863
864         * doc/c-i386.texi: Document -mavxscalar=.
865
866 2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>
867
868         * config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
869         0xc4 individually.
870
871 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
872
873         * write.h (fix_at_start): Declare.
874         * write.c (fix_new_internal): Add at_beginning parameter.
875         Use it instead of REVERSE_SORT_RELOCS.  Fix the handling of
876         seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
877         (fix_new, fix_new_exp): Update accordingly.
878         (fix_at_start): New function.
879         * config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
880         (ppc_ref): New function, for OBJ_XCOFF.
881         (md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
882         * config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
883
884 2010-01-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
885
886         * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
887         on 64-bit Solaris/x86.
888         Include obj-format.h earlier.
889
890 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
891
892         * config/tc-s390.c (s390_elf_final_processing): New function.
893         * config/tc-s390.h (elf_tc_final_processing): New macro definition.
894         (s390_elf_final_processing): Added prototype.
895
896
897 2010-01-20  Nick Clifton  <nickc@redhat.com>
898
899         PR 11109
900         * config/tc-arm.c (do_neon_cvt): Rename to do_neon_cvt_1.  Add
901         code to handle round-to-zero for VCVT conversions.
902         (do_neon_cvt): New.  Call do_neon_cvt_1.
903         (do_neon_cvtr): New.  Call do_neon_cvt_1.
904         (insns): Use do_neon_cvt for VCVT insn and do_neon_cvtr for VCVTR
905         insn.
906
907 2010-01-18  Tristan Gingold  <gingold@adacore.com>
908
909         * config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
910
911 2010-01-15  Sebastian Pop  <sebastian.pop@amd.com>
912
913         * config/tc-i386.c (md_assemble): Before accessing the IMM field
914         check that it's not an XOP insn.
915
916 2010-01-14  Jie Zhang  <jie.zhang@analog.com>
917
918         * config/bfin-aux.h: Remove argument names in function
919         declarations.
920         * config/bfin-lex.l (parse_int): Fix shadowed variable name
921         warning.
922         * config/bfin-parse.y (value_match): Remove argument names
923         in declaration.
924         (notethat): Likewise.
925         (yyerror): Likewise.
926
927 2010-01-13  Daniel Jacobowitz  <dan@codesourcery.com>
928
929         * config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.
930
931 2010-01-13  Nick Clifton  <nickc@redhat.com>
932
933         * config/tc-h8300.c (h8300_elf_section): New function - issue a
934         warning message if a new section is created without setting any
935         attributes for it.
936         (md_pseudo_table): Intercept section creation pseudos.
937         (md_pcrel_from): Replace abort with an error message.
938         * config/obj-elf.c (obj_elf_section_name): Export this function.
939         * config/obj-elf.h (obj_elf_section_name): Prototype.
940
941 2010-01-12  Alan Modra  <amodra@gmail.com>
942
943         PR 11122
944         * listing.c (print_source): Add one to line number.
945
946 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
947
948         * Makefile.in: Regenerate.
949         * configure: Regenerate.
950         * doc/Makefile.in: Regenerate.
951
952 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
953
954         * version.c (parse_args): Change to "Copyright 2010".
955
956 2010-01-06  Quentin Neill  <quentin.neill@amd.com>
957
958         * config/tc-i386.c (cpu_arch): Add amdfam15.
959         (i386_align_code): Add PROCESSOR_AMDFAM15 cases.
960         * config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
961         * doc/c-i386.texi: Add amdfam15.
962
963 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
964
965         * config/tc-arm.c (do_neon_logic): Accept imm value
966         in the third operand too.
967         (operand_parse_code): OP_RNDQ_IMVNb renamed to
968         OP_RNDQ_Ibig.
969         (parse_operands): OP_NILO case removed, applied renaming.
970         (insns): Neon shape changed for some logic instructions.
971
972 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
973
974         * config/tc-arm.c (do_neon_ldx_stx): Added
975         validation for vector load/store insns.
976
977 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
978
979         * config/tc-ppc.c (md_show_usage): Document -me500mc64.
980
981 2010-01-03  Daniel Gutson  <dgutson@codesourcery.com>
982
983         * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
984         (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
985         (NEON_ENCODE): New macro.
986         (check_neon_suffixes): New macro.
987         (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
988         (do_vfp_nsyn_opcode): Likewise.
989         (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
990         (do_vfp_nsyn_cmp): Likewise.
991         (do_neon_shl_imm): Likewise.
992         (do_neon_qshl_imm): Likewise.
993         (neon_dyadic_misc): Likewise.
994         (do_neon_mac_maybe_scalar): Likewise.
995         (do_neon_qdmulh): Likewise.
996         (do_neon_qmovn): Likewise.
997         (do_neon_qmovun): Likewise.
998         (do_neon_movn): Likewise.
999         (neon_mac_reg_scalar_long): Likewise.
1000         (do_neon_vmull): Likewise.
1001         (do_neon_trn): Likewise.
1002         (do_neon_ldx_stx): Likewise.
1003         (neon_dp_fixup): Changed signature and set the flag.
1004         (neon_three_same): Call the above with new signature.
1005         (neon_two_same): Likewise.
1006         (neon_imm_shift): Likewise.
1007         (neon_mul_mac): Likewise.
1008         (do_neon_abs_neg): Likewise.
1009         (neon_mixed_length): Likewise.
1010         (do_neon_ext): Likewise.
1011         (do_neon_mov): Likewise.
1012         (do_neon_tbl_tbx): Likewise.
1013         (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
1014         (neon_compare): Likewise.
1015         (do_neon_shll): Likewise.
1016         (do_neon_cvt): Likewise.
1017         (do_neon_mvn): Likewise.
1018         (do_neon_dup): Likewise.
1019         (md_assemble): Call check_neon_suffixes ().
1020
1021 For older changes see ChangeLog-2009
1022 \f
1023 Local Variables:
1024 mode: change-log
1025 left-margin: 8
1026 fill-column: 74
1027 version-control: never
1028 End: