opcodes/gas: blackfin: support OUTC debug insn
[external/binutils.git] / gas / ChangeLog
1 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
2
3         * config/bfin-aux.h (bfin_gen_pseudochr): New prototype.
4         * config/tc-bfin.c (bfin_gen_pseudochr): New function.
5         * config/bfin-parse.y: Call bfin_gen_pseudochr for OUTC tokens.
6
7 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
8
9         * config/bfin-lex.l (abort): Accept case-insensitive abort insn.
10         * config/bfin-parse.y (ABORT): Handle the ABORT token.
11
12 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
13
14         * config/tc-bfin.c (bfin_cpus[]): Add 0.2 for bf512/bf514/bf516/bf518.
15
16 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
17
18         * doc/c-bfin.texi (-mcpu): Add bf592.
19         * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF592.
20         (bfin_cpus[]): Add 0.0/0.1 for bf592.
21
22 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
23
24         * config/tc-bfin.c (comment_chars): Add #.
25
26 2010-09-20  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
27
28         * config/tc-arm.c (arm_cpus): Correct canonical names for Cortex CPUs.
29
30 2010-09-20  Richard Henderson  <rth@redhat.com>
31
32         * config/tc-alpha.c (tc_gen_reloc): Remove hack around
33         bfd_perform_reloc for OBJ_ELF.
34
35 2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>
36
37         * config/tc-arm.c (do_t_ldmstm): Add logic to handle single-register
38         list for ldm/stm.
39
40 2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>
41
42         * config/tc-arm.c (parse_psr): Add condition for matching "APSR" on
43         non-M-arch cpus.
44         (psrs): Add entry for PSR flags, g, nzcvq, nzcvqg.
45
46 2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>
47
48         * config/tc-arm.c (insns): Change MRC entry to accept APSR_RR instead
49         of just RR.
50
51 2010-09-17  Andrew Burgess  <aburgess@broadcom.com>
52
53         PR gas/12011
54         * config/obj-elf.c (obj_elf_parse_section_letters): Correct test
55         for error return from md_elf_section_letter.
56         * config/tc-alpha.c (alpha_elf_section_letter): Correct error message.
57         * config/tc-i386.c (x86_64_section_letter): Likewise.
58         * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
59         * config/tc-mep.c (mep_elf_section_letter): Likewise.
60
61 2010-09-15  Kai Tietz  <kai.tietz@onevision.com>
62
63         * config/obj-coff-seh.c (seh_validate_seg): New funtion.
64         (obj_coff_seh_endproc): Add check for segment.
65         (obj_coff_seh_endprologue): Likewise.
66         (obj_coff_seh_pushreg): Likewise.
67         (obj_coff_seh_pushframe): Likewise.
68         (obj_coff_seh_save): Likewise.
69         (obj_coff_seh_setframe): Likewise.
70
71         * config/obj-coff-seh.h (seh_context): New member code_seg.
72         * config/obj-coff-seh.c: Implementing xdata/pdata section cloning
73         for link-once code-segment.
74
75 2010-09-14  Jie Zhang  <jie@codesourcery.com>
76
77         * doc/c-arm.texi: Document -mcpu=cortex-m4.
78
79 2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>
80
81         * config/tc-i386.c (build_vex_prefix): Check VEXW1 for 2-byte
82         VEX prefix.
83
84 2010-09-09  Joseph Myers  <joseph@codesourcery.com>
85
86         * doc/c-tic6x.texi (.c6xabi_attribute): Document directive.
87
88 2010-09-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
89
90         * config/tc-arm.c (arm_cpus): Add cortex-a15 entry.
91         * doc/c-arm.texi: Document -mcpu=cortex-a15.
92
93 2010-09-09  Gunther Nikl  <gnikl@users.sourceforge.net>
94
95         * gas/config/tc-m68k.c (tc_gen_reloc): Handle references to defined
96         weak symbols first if generating an a.out object.
97
98 2010-09-09 Tejas Belagod  <tejas.belagod@arm.com>
99
100         * config/tc-arm.c (md_apply_fix): Check if widened add, sub are
101         flag-setting and handle accordingly.
102
103 2010-09-09  Nick Clifton  <nickc@redhat.com>
104
105         PR gas/11972
106         * config/tc-arm.c (parse_big_immediate): Allow for bignums being
107         extended to the size of a .octa.
108
109 2010-09-08  Julian Brown  <julian@codesourcery.com>
110
111         * config/tc-arm.c (create_neon_reg_alias): Deal with case
112         sensitivity.
113
114 2010-09-08  Nick Clifton  <nickc@redhat.com>
115
116         PR gas/11973
117         * config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of
118         long call instruction's displacement.
119
120 2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>
121
122         PR gas/11974
123         * config/tc-i386.c (i386_finalize_immediate): Check flag_code
124         instead of use_rela_relocations for 64bit.
125
126 2010-09-02  Richard Henderson  <rth@redhat.com>
127
128         * dw2gencfi.c (TC_DWARF2_EMIT_OFFSET): Provide default.
129         (output_fde): Use it.  Make sure to fully init exp before using it.
130
131 2010-08-31  Kai Tietz  <kai.tietz@onevision.com>
132
133         * config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison.
134         (obj_coff_seh_stackalloc): Likewise.
135
136 2010-08-31  Alan Modra  <amodra@gmail.com>
137
138         * config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.
139
140 2010-08-30  Richard Henderson   <rth@redhat.com>
141
142         * config/obj-coff-seh.c: Rewrite the entire file.
143         (symtab, symptr, reltab, relcount, relsize): Remove.
144         (seh_ctx_root, seh_ctx): Remove.
145         (xdata_seg, xdata_subseg, pdata_seg): New.
146         (switch_xdata, switch_pdata): New.
147         (verify_context, verify_context_and_target, skip_whitespace_and_comma):
148         New parsing functions.  Rewrite all parsing functions to use them.
149         (obj_coff_seh_32): Fix != arm thinko.
150         (obj_coff_seh_handler): For x64, don't accept handler pointer here,
151         only flags.
152         (obj_coff_seh_handlerdata): New.
153         (do_seh_endproc): Split out of ...
154         (obj_coff_seh_endproc): ... here.
155         (obj_coff_seh_proc): Use it, if needed.
156         (seh_x64_make_prologue_element): Use XRESIZEVEC, symbol_temp_new_now.
157         (seh_x64_read_reg): Remove mm_regs alternative.  Tidy integer reg
158         alternatives.  Don't slurp commas.
159         (seh_read_offset): Remove.
160         (obj_coff_seh_pushframe): Split out from obj_coff_seh_push.
161         (obj_coff_seh_scope): Remove.
162         (obj_coff_seh_save): Decide UWOP_SAVE_* vs _FAR immediately.
163         (obj_coff_seh_stackalloc): Decide _SMALL vs _LARGE immediately.
164         (out_one, out_two, out_four): New.
165         (seh_x64_write_prologue_data, seh_x64_size_prologue_data,
166         seh_x64_write_function_xdata, write_function_xdata): Rewrite
167         from seh_x64_write_xdata, seh_needed_unwind_info, seh_store_elm_data,
168         seh_getelm_data_size, seh_getsize_of_unwind_entry,
169         seh_make_unwind_entry, seh_getsize_unwind_data, and
170         seh_create_unwind_data.
171         (seh_arm_write_function_pdata): Rewrite from seh_arm_create_pdata.
172         (write_function_pdata): Rewrite from make_function_entry_pdata.
173         (seh_write_text_eh_data, make_function_entry_pdata,
174         seh_arm_create_pdata, seh_arm_write_pdata, seh_reloc, save_relocs,
175         seh_symbol_init, seh_symbol, quick_section, seh_emit_rva,
176         seh_emit_long, seh_make_globl, seh_make_section2, seh_make_section,
177         seh_make_xlbl_name, make_seh_text_label, seh_fill_pcsyms,
178         seh_needed_unwind_info, seh_store_elm_data, seh_getelm_data_size,
179         seh_getsize_of_unwind_entry, seh_make_unwind_entry,
180         seh_getsize_unwind_data, seh_create_unwind_data,
181         seh_make_function_entry_xdata, seh_x64_makescope_elem): Remove.
182         * config/obj-coff-seh.h (SEH_CMDS): Remove seh_savemm, seh_scope.
183         Add seh_handlerdata.  Adjust function/what arguments for
184         seh_savereg, seh_pushframe, seh_stackalloc.
185         (struct seh_prologue_element): Adjust members to closer match
186         the elements of the UNWIND_CODE structure.
187         (struct seh_scope_elem): Remove.
188         (struct seh_context): Replace char* members with symbolS or
189         expressionS as appropriate.  Sort members by ARM/x64 applicability.
190         Remove obsolete stuff wrt direct symbol and reloc manipulation.
191
192 2010-08-25  Alan Modra  <amodra@gmail.com>
193
194         * NEWS: Mention ampersand in macro change.
195
196 2010-08-25  Gunther Nikl  <gnikl@users.sourceforge.net>
197
198         * configure.tgt (m68k-*-aout): Change to bfd_gas=yes.
199
200 2010-08-25  Alan Modra  <amodra@gmail.com>
201
202         * config/tc-d10v.c (do_assemble): Correctly detect overflow of
203         "name" buffer.
204         * config/tc-m68hc11.c (md_assemble): Likewise.
205         * config/tc-microblaze.c (md_assemble): Likewise.  Correct cast
206         of is_end_of_line index.
207
208 2010-08-25  Jie Zhang  <jie@codesourcery.com>
209
210         * config/tc-arm.c (encode_arm_addr_mode_2): Fix comment.
211
212 2010-08-25  Jie Zhang  <jie@codesourcery.com>
213
214         * config/tc-arm.c (encode_arm_addr_mode_2): Fix
215         BAD_PC_ADDRESSING condition.
216
217 2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
218
219         * doc/c-arm.texi (ARM Options): Document -mfpu=fp4-sp-d16.
220
221 2010-08-19  H.J. Lu  <hongjiu.lu@intel.com>
222
223         * config/tc-i386.c (VEX_check_operands): Fix a typo in comments.
224
225 2010-08-18  H.J. Lu  <hongjiu.lu@intel.com>
226
227         * config/tc-i386.c (build_modrm_byte): Check i.imm_operands
228         instead of VEXXDS.
229
230 2010-08-18  Alan Modra  <amodra@gmail.com>
231
232         * macro.c (sub_actual): Add back ampersand suffix when no
233         substitution.
234         (macro_expand_body): Correct comment.
235
236 2010-08-17  Roland McGrath  <roland@redhat.com>
237
238         * config/obj-elf.c (obj_elf_parse_section_letters): Take new
239         boolean result parameter CLONE; set it if '?' flag letter seen.
240         (obj_elf_section): Update caller.  Handle that flag by copying
241         the LINKONCE and GROUP_NAME state from NOW_SEG.
242         * doc/as.texinfo (Section): Document the ? flag.
243
244 2010-08-09  Cary Coutant  <ccoutant@google.com>
245
246         * as.c (show_usage): Don't list --compress-debug-sections if zlib not
247         installed.
248         (main): Warn if --compress-debug-sections requested and zlib not
249         installed.
250         * doc/as.texinfo: Add --compress-debug-sections,
251         --nocompress-debug-sections.
252
253 2010-08-06  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * config/tc-i386.c (set_cpu_arch): Re-indent.
256         (md_parse_option): Likewise.
257
258 2010-08-06  Quentin Neill <quentin.neill@amd.com>
259
260         * config/tc-i386.c (arch_entry): Add negated bit to
261           disambiguate flag names starting with "no".
262           (cpu_arch): Add negated bit definitions.  Add
263           ".nop" CPU extension.
264           (i386_align_code): Use new .cpunop bit to decide
265           when to generate alignment using nops.
266           (set_cpu_arch): Use negated bit instead to decide
267           when to use cpu_flags or vs. cpu_flags_and_not.
268           (md_parse_option): Likewise.
269
270 2010-08-04  H.J. Lu  <hongjiu.lu@intel.com>
271
272         * config/tc-i386.c (match_template): Move the first i.error
273         out of the loop.
274
275 2010-08-04  Alan Modra  <amodra@gmail.com>
276
277         * configure.tgt (m32c): Set endian=little.
278         * config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
279         * config/tc-m32c.c (md_number_to_chars): Revert last change.
280
281 2010-08-03  Tristan Gingold  <gingold@adacore.com>
282
283         * makefile.vms (OBJS): Add Add compress-debug.c.
284
285 2010-08-03  Alan Modra  <amodra@gmail.com>
286
287         * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.
288         * config/tc-m32c.c (md_number_to_chars): Call bigendian
289         form of number_to_chars, not littleendian.
290
291 2010-08-02  Alan Modra  <amodra@gmail.com>
292
293         * config/tc-d30v.c (d30v_cons_align): Don't align constants
294         in debug sections.
295
296 2010-08-02  Alan Modra  <amodra@gmail.com>
297
298         PR gas/11867
299         * expr.c (operand <'-' and '~'>): Widen bignums.
300         (operand <'!'>): Correct bignum result and convert to O_constant.
301         * read.c (emit_expr): Don't assert on .byte bignum.  Don't display
302         bignum truncated warning for sign extended bignums.
303
304 2010-08-02  Alan Modra  <amodra@gmail.com>
305
306         * config/tc-v850.c (md_assemble): Always pass format string to
307         as_warn.
308         (md_apply_fix): Similarly for as_warn_where.
309
310 2010-07-29  H.J. Lu  <hongjiu.lu@intel.com>
311
312         * config/tc-i386-intel.c: Reformat.
313
314 2010-07-29  Alan Modra  <amodra@gmail.com>
315
316         * config/tc-ppc.c (ppc_fix_adjustable): Add got reloc types used
317         in large toc code.
318
319 2010-07-28  Alan Modra  <amodra@gmail.com>
320
321         PR gas/11841
322         * symbols.c (symbol_clone): Correct typo in previous patch.
323
324 2010-07-28  Alan Modra  <amodra@gmail.com>
325
326         PR gas/11841
327         * symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.
328
329 2010-07-28  Alan Modra  <amodra@gmail.com>
330
331         * config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
332         syntax error message.
333
334 2010-07-27  Maciej W. Rozycki  <macro@codesourcery.com>
335
336         * config/tc-mips.c (mips16_macro_build): Pass "args" by
337         reference rather than value.
338         (macro_build): Update accordingly.
339
340 2010-07-27  Maciej W. Rozycki  <macro@codesourcery.com>
341
342         * config/tc-mips.c (mips_ip): Use symbol_temp_new_now to create
343         a fake label.
344
345 2010-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
346
347         * config/tc-mips.c (macro)[M_JAL_1, M_JAL_2]: Handle the JALR
348         delay slot in the noreorder mode with the o32 ABI.
349
350 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
351             Ina Pandit  <ina.pandit@kpitcummins.com>
352
353         * config/tc-v850.c: Update processor_mask.
354         (reg_name): Update the structure to use processors field.
355         (md_relax_table): Define SUBYPTE_COND_9_22, SUBYPTE_SA_9_22,
356         SUBYPTE_UNCOND_9_22, SUBYPTE_COND_9_22_32, SUBYPTE_SA_9_22_32,
357         SUBYPTE_UNCOND_9_22_32, SUBYPTE_COND_9_17_22,
358         SUBYPTE_SA_9_17_22, SUBYPTE_COND_9_17_22_32 and
359         SUBYPTE_SA_9_17_22_32.
360         (set_machine): Add support for V850E2 and V850E2V3.
361         (md_pseudo_table): Likewise.
362         (pre_defined_registers): Update pre defined registers suitable
363         for each family of registers.
364         (system_registers): Likewise.
365         (cc_names): Update the condition code.
366         (float_cc_names): Update the condition code for float.
367         (reg_name_search): Update based on current modifications.
368         (register_name): Likewise.
369         (system_register_name): Update to support new system registers
370         and supported families.
371         (cc_name): Update to support new condition codes.
372         (float_cc_name): New function to support float condition codes.
373         (parse_register_list): Update to support newly added registers.
374         (md_show_usage): Define support for V850E2 and V850E2V3 targets.
375         Also support added for disp-size-default-22, disp-size-default-32,
376         mextension, mno-bcond17 and mno-stld23.
377         (md_parse_option): Implement the support for above options defined
378         in md_show-usage.
379         (md_convert_frag): Implement support for subtypes defined in
380         md_relax_table to support branch operations.
381         (md_begin): Add support for V850E2 and V850E2V3.
382         (handle_hi016, handle_hi16): new relocation handling functions
383         (handle_lo16, handle_ctoff, handle_sdaoff, handle_zdaoff,
384         handle_tdaoff): Updated relocation handling functions for newly
385         added relocations.
386         (v850_reloc_prefix): Update the relocation handling functions.
387         (v850_insert_operand): Updated the functions with error message
388         parameter and modified the function to use it.
389         (md_assemble): Update according to the latest modifications.
390         (md_apply_fix): Updated the functions with error message parameter
391         and modified the function to use it.
392         (v850_force_relocation): Update with newly added relocations.
393         * configure.tgt: Match all v850 targets.
394         * doc/c-v850.texi: Document the newly added targets.
395         * NEWS: Likewise.
396
397 2010-07-23  Alan Modra  <amodra@gmail.com>
398
399         PR gas/11834
400         * macro.c (macro_expand): Recover gracefully from named args that
401         don't match params.
402
403 2010-07-22  Thomas Schwinge  <thomas@codesourcery.com>
404
405         Switch MIPS to 32-bit DWARF format.
406         * config/tc-mips.h (DWARF2_FORMAT): Only define for [TE_IRIX].
407         * config/tc-mips.c (mips_dwarf2_format): Likewise.
408
409 2010-07-20  Alan Modra  <amodra@gmail.com>
410
411         * config/tc-ppc.c (ppc_setup_opcodes): Add all macros for -many.
412
413 2010-07-16  Alan Modra  <amodra@gmail.com>
414
415         * config/tc-rx.c (md_estimate_size_before_relax): Fix format
416         specifier warnings for 32-bit host when --enable-64-bit-bfd.
417         (rx_relax_frag, md_convert_frag): Likewise.
418
419 2010-07-15  Cary Coutant  <ccoutant@google.com>
420
421         * gas/NEWS: Add note about --compress-debug-sections.
422         * gas/as.c (show_usage): Add --compress-debug-sections and
423         --nocompress-debug-sections.
424
425 2010-07-15  Rhonda Wittels  <rhonda@codesourcery.com>
426
427         * config/obj-elf.c (get_sym_from_input_line_and_check): New
428         function to catch missing pseudo-op arguments.
429         (obj_elf_local): Call new function.
430         (obj_elf_weak): Likewise.
431         (obj_elf_visibility): Likewise.
432         (obj_elf_vtable_entry): Likewise.
433         (obj_elf_type): Likewise.
434
435 2010-07-15  Kai Tietz  <kai.tietz@onevision.com>
436
437         * config/obj-coff-seh.c
438         (seh_getelm_data_size): New.
439         (seh_read_offset): Handle negative values.
440         (obj_coff_seh_push): Handle offset for save-register store.
441         (obj_coff_seh_setframe): Add unwind-information for frame.
442         (seh_store_elm_data): New.
443         (seh_getelm_data_size): Return additionally unaligned element count.
444         (seh_make_unwind_entry): Correct tweak about element count.
445
446 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
447
448         PR gas/11806
449         * config/tc-i386-intel.c (i386_intel_simplify): Restore fall
450         through patch for O_multiply.
451
452 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
453
454         PR ld/11612
455         * config/obj-coff.c (obj_common_parse): Quote symbol-name.
456
457 2010-07-08 Tejas Belagod <tejas.belagod@arm.com>
458
459         * tc-arm.c (OP_oBARRIER): Remove.
460         (OP_oBARRIER_I15): Add.
461         (po_barrier_or_imm): Add macro.
462         (parse_operands): Improve OP_oBARRIER_I15 operand parsing.
463         (do_barrier): Check correct immediate range.
464         (do_t_barrier): Likewise.
465         (barrier_opt_names): Add entries for more symbolic operands.
466         (insns): Replace OP_oBARRIER with OP_oBARRIER_I15 for barriers.
467
468 2010-07-08  Daniel Gutson  <dgutson@codesourcery.com>
469
470         * config/tc-arm.c (tc_gen_reloc): Add BFD_RELOC_ARM_T32_OFFSET_IMM
471         error message.
472
473 2010-07-06  Maciej W. Rozycki  <macro@codesourcery.com>
474
475         * config/tc-mips.c (mips_frob_file): Use symbol_same_p to match
476         symbols.
477
478 2010-07-06  Maciej W. Rozycki  <macro@codesourcery.com>
479
480         * config/tc-mips.c (nops_for_insn_or_target): Replace
481         MIPS16_INSN_BRANCH with MIPS16_INSN_UNCOND_BRANCH and
482         MIPS16_INSN_COND_BRANCH.
483
484 2010-07-05  Jim Wilson  <wilson@codesourcery.com>
485
486         PR gas/10531
487         PR gas/11789
488         * dwarf2dbg.c (dwarf2_finish): Don't generate .debug_line section
489         if it isn't empty.
490
491 2010-07-05  Alan Modra  <amodra@gmail.com>
492
493         * config/tc-moxie.c (md_apply_fix): Delete set but otherwise
494         unused var.
495
496 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
497
498         * Makefile.am (CONFIG_OBJS): Removed.
499         (GENERIC_OBJS): Likewise.
500         (OBJS): Likewise.
501         * Makefile.in: Regenerated.
502
503 2010-07-03  Jan Beulich  <jbeulich@novell.com>
504
505         PR gas/11732
506         * config/tc-i386.c (i386_finalize_displacement): Don't call
507         section_symbol() with expr_section.
508
509 2010-07-03  Cary Coutant  <ccoutant@google.com>
510
511         * Makefile.am: Add compress-debug.c and compress-debug.h.
512         * Makefile.in: Regenerate.
513         * config.in: Add HAVE_ZLIB_H.
514         * configure.in: Check for zlib.h.
515         * configure: Regenerate.
516
517         * as.c (parse_args): Add --compress-debug-sections and
518         --nocompress-debug-sections.
519         * as.h (flag_compress_debug): New variable.
520         * compress-debug.c: New file.
521         * compress-debug.h: New file.
522         * write.c: Include compress-debug.h.
523         (compress_frag): New function.
524         (compress_debug): New function.
525         (write_object_file): Compress debug sections if requested.
526
527 2010-07-03  Andreas Schwab  <schwab@linux-m68k.org>
528
529         * config/tc-ppc.c (ppc_set_cpu): Cast PPC_OPCODE_xxx to ppc_cpu_t
530         before inverting.
531
532 2010-07-03  Alan Modra  <amodra@gmail.com>
533
534         * config/tc-ppc.c (ppc_set_cpu): Remove old opcode flags.
535         (ppc_setup_opcodes): Likewise.  Simplify opcode selection.
536
537 2010-07-02  DJ Delorie  <dj@redhat.com>
538
539         * config/tc-rx.h (md_do_align): New.
540         (MAX_MEM_FOR_RS_ALIGN_CODE): New.
541         * config/tc-rx.c (nops): New.
542         (rx_handle_align): Use various sized nops to align code.
543
544         * config/tc-rx.c (rx_bytesT): Add grown/shrank counters for
545         relaxation.
546         (rx_relax_frag): Prevent infinite loops of grow/shrink/grow/etc.
547
548 2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>
549
550         AVX Programming Reference (June, 2010)
551         * config/tc-i386.c (cpu_arch): Add .xsaveopt, .fsgsbase, .rdrnd
552         and .f16c.
553
554         * doc/c-i386.texi: Document xsaveopt, fsgsbase, rdrnd and f16c.
555
556 2010-07-01  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
557
558         * config/tc-arm.c (do_t_mov_cmp): Fix reporting of unpredictable and
559         deprecated mov register instructions.
560
561 2010-07-01  Alan Modra  <amodra@gmail.com>
562
563         * config/tc-ppc.c (toc_reloc_types): New variable.
564         (md_assemble): Set it.
565         (ppc_frob_file_before_adjust): Don't warn about toc section size
566         if we have large toc relocs and no small toc relocs.
567
568 2010-06-29  Alan Modra  <amodra@gmail.com>
569
570         * config/tc-maxq.h: Delete file.
571         * config/tc-maxq.c: Delete file.
572         * Makefile.am: Remove references to maxq.
573         * configure.tgt: Likewise.
574         * config/obj-coff.h: Likewise.
575         * Makefile.in: Regenerate.
576         * configure: Regenerate.
577         * po/POTFILES.in: Regenerate.
578
579 2010-06-28  Alan Modra  <amodra@gmail.com>
580
581         * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.
582         * config/tc-crx.c (gettrap): Constify arg.
583         (handle_LoadStor, get_cinv_parameters): Likewise.
584         (getreg_image): Fix enum warning
585         (md_assemble): Restore input line char.
586         * config/tc-hppa.c (tc_gen_reloc): Fix enum warning.
587         * config/tc-i960.c (mem_fmt): Rename var to fix shadow warning.
588         * config/tc-sh.c (sh_fdpic): Only define when OBJ_ELF.
589         (build_Mytes): Fix build failure for non-elf targets.
590         * config/tc-tic4x.c (tic4x_eval): Restore terminator char.
591         * config/tc-xtensa.c (xtensa_end_directive): Fix switch enum warning.
592
593         * cgen.c (gas_cgen_md_apply_fix): Avoid set but unused warning.
594         * ecoff.c (add_ecoff_symbol): Likewise.
595         * itbl-ops.c (append_insns_as_macros): Likewise.
596         * listing.c (debugging_pseudo): Likewise.
597         * read.c (s_mri_common, stringer): Likewise.
598         * config/obj-coff.c (coff_frob_section): Likewise.
599         * config/tc-alpha.c (emit_ldgp, s_alpha_proc): Likewise.
600         * config/tc-arm.c (my_get_expression): Likewise.
601         * config/tc-hppa.c (process_exit, pa_type_args): Likewise.
602         * config/tc-m32c.c (md_assemble): Likewise.
603         * config/tc-microblaze.c (md_convert_frag): Likewise.
604         * config/tc-mips.c (s_change_section): Likewise.
605         * config/tc-mt.c (mt_fix_adjustable): Likewise.
606         * config/tc-xtensa.c (xtensa_literal_pseudo): Likewise.
607
608         * config/obj-aout.c (obj_aout_frob_symbol): Delete set but otherwise
609         unused vars.
610         * config/tc-alpha.c (load_expression): Likewise.
611         (s_alpha_rdata, s_alpha_section, s_alpha_prologue): Likewise.
612         * config/tc-arm.c (parse_neon_el_struct_list): Likewise.
613         * config/tc-avr.c (extract_word): Likewise.
614         * config/tc-cris.c (cris_get_expression): Likewise.
615         * config/tc-d30v.c (build_insn, find_format): Likewise.
616         * config/tc-dlx.c (machine_ip): Likewise.
617         * config/tc-hppa.c (pa_get_absolute_expression): Likewise.
618         * config/tc-i370.c (md_assemble): Likewise.
619         * config/tc-i960.c (brtab_emit): Likewise.
620         * config/tc-iq2000.c (s_iq2000_ent): Likewise.
621         * config/tc-m32c.c (md_convert_frag): Likewise.
622         * config/tc-m68hc11.c (fixup24, build_jump_insn): Likewise.
623         (md_estimate_size_before_relax, md_apply_fix): Likewise.
624         * config/tc-m68k.c (md_show_usage): Likewise.
625         * config/tc-microblaze.c (microblaze_s_lcomm): Likewise.
626         * config/tc-mips.c (s_mips_end): Likewise.
627         * config/tc-mmix.c (mmix_byte, mmix_cons): Likewise.
628         * config/tc-mn10300.c (md_assemble): Likewise.
629         * config/tc-msp430.c (extract_word): Likewise.
630         * config/tc-mt.c (md_assemble): Likewise.
631         * config/tc-or32.c (machine_ip): Likewise.
632         * config/tc-pj.c (md_apply_fix): Likewise.
633         * config/tc-s390.c (md_gather_operands): Likewise.
634         * config/tc-sh.c (sh_cons_align): Likewise.
635         * config/tc-sparc.c (sparc_cons_align): Likewise.
636         * config/tc-tic4x.c (tic4x_sect): Likewise.
637         * config/tc-tic54x.c (tic54x_stringer): Likewise.
638         * config/tc-vax.c (vip_op): Likewise.
639         * config/tc-xstormy16.c (xstormy16_cons_fix_new): Likewise.
640         * config/tc-xtensa.c (md_assemble): Likewise.
641         (xtensa_fix_short_loop_frags, convert_frag_immed): Likewise.
642         (xtensa_move_literals): Likewise.
643
644 2010-06-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
645
646         * config/tc-arm.c (parse_neon_alignment): New function.
647         (parse_address_main): Fix Neon load/store alignment parsing.
648
649 2010-06-22  Jan Beulich  <jbeulich@novell.com>
650
651         * config/tc-i386-intel.c (i386_intel_parse_name): Handle pseudo
652         symbols named "$".
653         (i386_intel_operand): Remove bogus handling of pseudo symbols
654         named "$".
655         * expr.c (current_location): Remove 'static' and local
656         declaration.
657         * expr.h (current_location): Declare.
658
659 2010-06-21  Sterling Augustine  <sterling@tensilica.com>
660
661         PR gas/11728
662         * as.c: Globalize keep_it.
663         (main): Remove keep_it. Move conditional from here...
664         (close_output_file): ...to here.
665
666 2010-06-21  Andreas Schwab  <schwab@redhat.com>
667
668         * doc/as.texinfo (Overview): Use @itemx for grouped @table
669         items.
670         * doc/c-alpha.texi (Alpha Options): Likewise.
671         * doc/c-arm.texi (ARM Directives): Likewise.
672         * doc/c-bfin.texi (Blackfin Options): Likewise.
673         * doc/c-d10v.texi (D10V-Opts): Likewise.
674         * doc/c-i386.texi (i386-Options): Likewise.
675         * doc/c-ia64.texi (IA-64 Options): Likewise.
676         * doc/c-m68k.texi (M68K-Opts): Likewise.
677         * doc/c-tic54x.texi (TIC54X-Directives): Likewise.
678         * doc/internals.texi (Symbols): Likewise.
679
680 2010-06-21  Alan Modra  <amodra@gmail.com>
681
682         PR gas/11733
683         * config/tc-sh.c (find_cooked_opcode): Correct array bounds check.
684
685 2010-06-18  Joseph Myers  <joseph@codesourcery.com>
686
687         * config/tc-tic6x.h (tic6x_segment_info_type): Add field
688         func_units_used.
689         * config/tc-tic6x.c (tic6x_cons_align: Clear func_units_used.
690         (md_assemble): Clear func_units_used for new execute packet.
691         Check for duplicate functional units and update func_units_used
692         for instructions using a functional unit.
693
694 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
695
696         * config/tc-tic6x.c: Include elf/tic6x.h.
697         (tic6x_arch_attribute, tic6x_seen_insns): New.
698         (tic6x_arch_table, tic6x_arches): Add attribute values.
699         (tic6x_use_arch): Handle attribute settings.
700         (tic6x_attributes_set_explicitly, s_tic6x_c6xabi_attribute,
701         tic6x_attribute_table, tic6x_attributes,
702         tic6x_convert_symbolic_attribute): New.
703         (md_pseudo_table): Add c6xabi_attribute.
704         (md_assemble): Set tic6x_seen_insns and tic6x_arch_attribute.
705         (tic6x_set_attribute_int, tic6x_set_attributes): New.
706         (tic6x_end): Call tic6x_set_attributes.
707         * config/tc-tic6x.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define.
708         (tic6x_convert_symbolic_attribute): Declare.
709
710 2010-06-14  Alan Modra  <amodra@gmail.com>
711
712         * config/tc-ppc.c (md_assemble): Emit APUinfo section for
713         PPC_OPCODE_E500.
714
715 2010-06-11  Jan Beulich  <jbeulich@novell.com>
716
717         * config/tc-i386.c (md_parse_option): Ignore impossible processor
718         types.
719         (show_arch): New parameter 'check'.
720         (md_show_usage): Adjust calls to show_arch().
721
722 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
723
724         * config/tc-i386.c (update_code_flag): New.
725         (set_code_flag): Use it.
726         (i386_target_format): Replace set_code_flag with update_code_flag.
727
728 2010-06-10  Tristan Gingold  <gingold@adacore.com>
729
730         * config/obj-som.h: Includes som/reloc.h
731
732 2010-06-10  Jan Beulich  <jbeulich@novell.com>
733
734         * config/tc-i386.c (cpu_arch): Add comment.
735         (i386_target_format): Set cpu_arch_isa_flags and cpu_arch_tune_flags
736         from the generic entries of cpu_arch[].
737
738 2010-06-08  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
739
740         * config/tc-arm.c (operand_parse_code): Add OP_RRnpctw enum
741         value.
742         (parse_operands): Add support for OP_RRnpctw.
743         (insns): Update floating-point load/store multiples so the
744         first register is of type OP_RRnpctw.
745
746 2010-06-08  Quentin Neill  <quentin.neill@amd.com>
747
748         * config/tc-i386.c (pi): Rename local loop counter
749         variable i that shadows global static i386_insn i
750         when DEBUG386 is defined.
751         (pte) Ditto.
752
753 2010-06-08  Nick Clifton  <nickc@redhat.com>
754
755         * doc/as.texinfo: Replace abbreviated 20th century year numbers
756         with full versions.
757
758 2010-06-02  Quentin Neill  <quentin.neill@amd.com>
759
760         * config/tc-i386.c (OPTION_MAVXSCALAR): Fix define.
761
762 2010-06-02  Tristan Gingold  <gingold@adacore.com>
763
764         * as.h: Remove conditionnal definition of HAVE_STDARG_H,
765         USE_STDARG, va_alist, va_dcl, va_list, va_start, va_end.
766         Remove conditionnal inclusion of stdarg.h and varargs.h.
767         Assume ISO C.
768         * config.in: Regenerate.
769         * configure: Regenerate.
770         * configure.in: Remove stdarg.h and varargs.h from
771         AC_CHECK_HEADERS list.
772         * messages.c (as_tsktsk): Remove non ISO C version.
773         (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
774
775 2010-05-31  Tristan Gingold  <gingold@adacore.com>
776
777         * config/tc-alpha.c: Add comments for evax.
778         * config/obj-evax.c: Ditto.
779
780 2010-05-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
781
782         * config/tc-arm.c (do_t_mov_cmp): In unified syntax encode movs as
783         lsls and not adds.
784
785 2010-05-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
786
787         * config/tc-arm.c (encode_thumb2_ldmstm): Make warning about
788         writeback when base register is in register list an error, and
789         correct check.
790         (do_t_ldmstm): Change warnings.
791
792 2010-05-26  Catherine Moore  <clm@codesourcery.com>
793
794         * config/tc-mips.c (is_opcode_valid): Remove expansionp.
795         (macro_build): Change invocation of is_opcode_valid.
796         (mips_ip): Likewise.
797
798 2010-05-25  Nick Clifton  <nickc@redhat.com>
799
800         * Makefile.am (MOSTLYCLEANFILES): Fix typo.
801         * Makefile.in: Regenerate.
802
803 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
804             Joseph Myers  <joseph@codesourcery.com>
805             Andrew Stubbs  <ams@codesourcery.com>
806
807         * config/tc-sh.c (sh_fdpic): New.
808         (sh_check_fixup): Handle relocations on movi20.
809         (parse_exp): Do not reject PIC operators here.
810         (build_Mytes): Check for unhandled PIC operators here.  Use
811         sh_check_fixup for movi20.
812         (enum options): Add OPTION_FDPIC.
813         (md_longopts, md_parse_option, md_show_usage): Add --fdpic.
814         (sh_fix_adjustable, md_apply_fix): Handle FDPIC and movi20 relocations.
815         (sh_elf_final_processing): Handle --fdpic.
816         (sh_uclinux_target_format): New.
817         (sh_parse_name): Handle FDPIC relocation operators.
818         * config/tc-sh.h (TARGET_FORMAT): Define specially for TE_UCLINUX.
819         (sh_uclinux_target_format): Declare for TE_UCLINUX.
820         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): Set
821         em=uclinux.
822         * doc/c-sh.texi (SH Options): Document --fdpic.
823
824 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
825
826         PR ld/11621
827         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
828         * Makefile.in: Regenerate.
829
830 2010-05-25  Alan Modra  <amodra@gmail.com>
831
832         * config/tc-ppc.c (ppc_section_flags): Add ATTRIBUTE_UNUSED to "attr".
833
834 2010-05-19  Nick Clifton  <nickc@redhat.com>
835
836         * config/tc-h8300.c (h8300_elf_section): Add .zdebug to the list
837         of known section prefixes.
838
839 2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
840
841         PR gas/11600
842         * obj-elf.c (obj_elf_change_section): Handle SHF_EXCLUDE.
843         (obj_elf_parse_section_letters): Likewise.
844         (obj_elf_section_word): Likewise.
845
846         * config/tc-ppc.c (ppc_section_letter): Removed.
847         (ppc_section_word): Likewise.
848         * config/tc-ppc.h (ppc_section_letter): Likewise.
849         (ppc_section_word): Likewise.
850         (md_elf_section_letter): Likewise.
851         (md_elf_section_word): Likewise.
852
853         * doc/as.texinfo: Document `e' and `#exclude'.
854
855 2010-05-13  Nathan Sidwell  <nathan@codesourcery.com>
856
857         * config/tc-arm.c (md_assemble): Clarify current mode in error
858         messages about unsupported instructions.
859         (UT): Delete #define.
860         (insns): Adjust cbnz, cbz appropriately.
861
862 2010-05-11  Andrew Stubbs  <ams@codesourcery.com>
863
864         * config/tc-arm.c (aeabi_set_public_attributes): Set Tag_DIV_use.
865
866 2010-05-11  Jie Zhang  <jie@codesourcery.com>
867
868         * config/tc-arm.c (aeabi_set_public_attributes): Set
869         Tag_ABI_HardFP_use to 1 if a single precision FPU is selected.
870
871 2010-05-07  Tristan Gingold  <gingold@adacore.com>
872
873         * Makefile.in: Regenerate with automake 1.11.1.
874         * aclocal.m4: Ditto.
875         * doc/Makefile.in: Ditto.
876
877 2010-05-05  Nick Clifton  <nickc@redhat.com>
878
879         * po/es.po: Updated Spanish translation.
880
881 2010-05-05  Julian Brown  <julian@codesourcery.com>
882
883         * read.c (cons_worker): Detect and reject unexpected string argument.
884
885 2010-05-04  Nick Clifton  <nickc@redhat.com>
886
887         * write.c (fixup_segment): Revert previous delta.
888         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Also force the
889         generation of relocations for fixups against weak symbols.
890
891 2010-04-29  Nathan Sidwell  <nathan@codesourcery.com>
892
893         * write.c (fixup_segment): Do not assume we know the section a
894         defined weak symbol is in.
895         * config/tc-arm.c (relax_adr, relax_branch, md_apply_fix): Treat
896         weak symbols as not known to be in the same section, even if they
897         are defined.
898
899 2010-04-27  Joseph Myers  <joseph@codesourcery.com>
900
901         * config/tc-tic6x.h (tic6x_label_list): New.
902         (tic6x_segment_info_type): Keep a list of labels and a current
903         frag instead of a boolean for whether labels seen and a count of
904         instructions.
905         (tic6x_frag_info, TC_FRAG_TYPE, TC_FRAG_INIT, tic6x_frag_init,
906         md_do_align, tic6x_do_align, md_end, tic6x_end): New.
907         * config/tc-tic6x.c (tic6x_frob_label): Put label on list.
908         (tic6x_cleanup): Correct comment.
909         (tic6x_free_label_list): New.
910         (tic6x_cons_align): Free label list and update for
911         tic6x_segment_info_type changes.
912         (tic6x_do_align): New.
913         (md_assemble): Handle list of labels and saved frag for execute
914         packet.  Create machine-dependent frag for new execute packet and
915         adjust labels accordingly.
916         (tic6x_adjust_section, tic6x_frag_init, tic6x_end): New.
917         (md_convert_frag, md_estimate_size_before_relax): Update comments.
918
919 2010-04-24  H.J. Lu  <hongjiu.lu@intel.com>
920
921         PR gas/11535
922         * config/tc-i386-intel.c (intel_state): Add is_indirect.
923         (i386_intel_operand): Initialize intel_state.is_indirect.  Check
924         intel_state.is_indirect for "call|jmp [symbol]".
925
926 2010-04-22  Nick Clifton  <nickc@redhat.com>
927
928         * po/gas.pot: Updated by the Translation project.
929
930 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
931
932         * config/tc-i386.c (i386_is_register): Removed.
933         (x86_cons): Don't use i386_is_register.
934         (parse_register): Likewise.
935         * config/tc-i386-intel.c (i386_intel_simplify): Likewise.
936         (i386_intel_operand): Likewise.
937
938 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
939
940         * config/tc-i386.c (tc_x86_parse_to_dw2regnum): Don't use
941         i386_is_register.
942
943 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
944
945         * config/tc-i386.c (i386_is_register): Remove is_intel_syntax.
946         (x86_cons): Updated.
947         (parse_register): Likewise.
948         (tc_x86_parse_to_dw2regnum): Likewise.
949         * config/tc-i386-intel.c (i386_intel_simplify): Likewise.
950         (i386_intel_operand): Likewise.
951
952 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
953
954         PR gas/11509
955         * config/tc-i386-intel.c (i386_intel_simplify_register): New.
956         (i386_intel_simplify): Use i386_is_register and
957         i386_intel_simplify_register. Set X_md for O_register and
958         check X_md for O_constant.
959         (i386_intel_operand): Use i386_is_register.
960
961         * config/tc-i386.c (i386_is_register): New.
962         (x86_cons): Initialize the X_md field.  Use i386_is_register.
963         (parse_register): Use i386_is_register.
964         (tc_x86_parse_to_dw2regnum): Likewise.
965
966 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
967
968         * expr.c (expr): Initialize the X_md field.
969
970 2010-04-20  Joseph Myers  <joseph@codesourcery.com>
971
972         * config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
973         (md_longopts): Add -mgenerate-rel.
974         (tic6x_generate_rela): New.
975         (md_parse_option): Handle -mgenerate-rel.
976         (md_show_usage): Add comment that -mgenerate-rel is undocumented.
977         (tic6x_init_after_args): New.
978         (md_apply_fix): Correct shift calculations for SB-relative
979         relocations.
980         (md_pcrel_from): Change to tic6x_pcrel_from_section.  Do not
981         adjust addresses for relocations referencing symbols in other
982         sections.
983         (tc_gen_reloc): Adjust addend calculations for REL relocations.
984         * config/tc-tic6x.h (MD_PCREL_FROM_SECTION,
985         tic6x_pcrel_from_section, tc_init_after_args,
986         tic6x_init_after_args): New.
987
988 2010-04-20  Nick Clifton  <nickc@redhat.com>
989
990         PR gas/11507
991         * macro.c (macro_expand_body): Do not treat LOCAL as a keyword in
992         altmacro mode if found inside a quoted string.
993
994 2010-04-20  Mike Frysinger  <vapier@gentoo.org>
995
996         * config/bfin-lex.l (parse_int): Change index() to strchr().
997
998 2010-04-16  Nick Clifton  <nickc@redhat.com>
999
1000         PR gas/11395
1001         * config/tc-hppa.c (pa_ip): Do not allow 64-bit add condition
1002         matcher to accept and unconditional 32-bit add instruction.
1003         (pa_build_unwind_subspace): Cope with error conditions not
1004         allowing the start symbol to be set.
1005
1006 2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1007
1008         * config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
1009         new tag names in v2.08 of ARM ABI.
1010         * doc/c-arm.texi: Document new tag names in ABI.
1011
1012 2010-04-14  Tristan Gingold  <gingold@adacore.com>
1013
1014         * config/tc-alpha.c: Includes vms/egps.h on EVAX.
1015         (s_alpha_comm): Used new EGPS macros from egps.h
1016         (RGPS__V_NO_SHIFT, EGPS__V_MASK): New local macros.
1017         (s_alpha_section_word): Add comments.  Use new EGPS macros.
1018         Adjust for modified bfd_vms_set_section_flags function.
1019
1020 2010-04-10  Alan Modra  <amodra@gmail.com>
1021
1022         PR gas/11486
1023         * config/tc-ppc.c (ppc_elf_cons): Clear frag contents.
1024
1025 2010-04-09  Nick Clifton  <nickc@redhat.com>
1026
1027         * as.c (create_obj_attrs_section): Remove unused variable addr.
1028         * listing.c (listing_listing): Remove unused variable message.
1029         * read.c: Remove unnecessary register type qualifiers.
1030         (s_mri): Only define/use old_flag variable if MRI_MODE_CHANGE is
1031         defined.
1032
1033 2010-04-07  Eric B. Weddington  <eric.weddington@atmel.com>
1034
1035         * config/tc-avr.c (mcu_types): Add support for atmega16a, atmega168a,
1036         atmega164a, atmega165a, atmega169a, atmega169pa, atmega16hva2,
1037         atmega324a, atmega324pa, atmega325a, atmega3250a, atmega328,
1038         atmega329a, atmega329pa, atmega3290a, atmega48a, atmega644a,
1039         atmega645a, atmega645p, atmega6450a, atmega6450p, atmega649a,
1040         atmega649p, atmega6490a, atmega6490p, atmega64hve, atmega88a,
1041         atmega88pa, attiny461a, attiny84a, m3000.
1042         Remove support for atmega8m1, atmega8c1, atmega16c1, atmega4hvd,
1043         atmega8hvd, attiny327, m3000f, m3000s, m3001b.
1044         * doc/c-avr.texi: Same.
1045
1046 2010-04-07  Jie Zhang  <jie@codesourcery.com>
1047
1048         * config/tc-arm.c (make_mapping_symbol): Handle the case
1049         that multiple mapping symbols have the same value 0.
1050
1051 2010-04-07  Alan Modra  <amodra@gmail.com>
1052
1053         * configure: Regenerate.
1054
1055 2010-04-06  Nick Clifton  <nickc@redhat.com>
1056
1057         * po/ru.po: New Russian translation.
1058         * configure.in (ALL_LINGUAS): Add ru.
1059         * configure: Regenerate.
1060
1061 2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1062
1063         PR gas/11456
1064         * input-scrub.c (input_scrub_next_buffer): Use memmove instead
1065         of memcpy to copy overlap memory.
1066
1067 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
1068
1069         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
1070         (TARGET_CPU_HFILES): Add config/tc-tic6x.h.
1071         * Makefile.in: Regenerate.
1072         * NEWS: Add news entry for TI C6X support.
1073         * app.c (do_scrub_chars): Handle "||^" for TI C6X.  Handle
1074         TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR.  Keep spaces in
1075         operands if TC_KEEP_OPERAND_SPACES.
1076         * configure.tgt (tic6x-*-*): New.
1077         * config/tc-ia64.h (TC_PREDICATE_START_CHAR,
1078         TC_PREDICATE_END_CHAR): Define.
1079         * config/tc-tic6x.c, config/tc-tic6x.h: New.
1080         * doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
1081         * doc/Makefile.in: Regenerate.
1082         * doc/all.texi (TIC6X): Define.
1083         * doc/as.texinfo: Add TI C6X documentation.  Include c-tic6x.texi.
1084         * doc/c-tic6x.texi: New.
1085
1086 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1087
1088         * config/tc-i386.c (lex_got): Use STRING_COMMA_LEN on gotrel.
1089
1090 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1091
1092         * config/tc-i386.c (i386_error): Replace oprand_size_mismatch
1093         with operand_size_mismatch.
1094         (operand_size_match): Updated.
1095         (match_template): Likewise.
1096
1097 2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1098
1099         * config/tc-i386.c (i386_error): New.
1100         (_i386_insn): Replace err_msg with error.
1101         (operand_size_match): Set error instead of err_msg on failure.
1102         (operand_type_match): Likewise.
1103         (operand_type_register_match): Likewise.
1104         (VEX_check_operands): Likewise.
1105         (match_template): Likewise.  Use error instead of err_msg with
1106         as_bad.
1107
1108 2010-03-19  Jie Zhang  <jie@codesourcery.com>
1109
1110         * config/tc-arm.c (make_mapping_symbol): Hanle the case
1111         that two mapping symbols have the same value.
1112
1113 2010-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
1114
1115         * doc/c-arm.texi (.setfp): Correct example.
1116
1117 2010-03-18  Wei Guozhi  <carrot@google.com>
1118
1119         PR gas/11323
1120         * config/tc-arm.c (reloc_names): New relocation names.
1121         (md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
1122         (tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
1123         * doc/c-arm.texi (ARM-Relocations): Document the new relocation.
1124
1125 2010-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1126
1127         * dw2gencfi.c (output_cie): Consider emitting the S augmentation in all
1128         cases, and not only for .eh_frame.
1129
1130         * dw2gencfi.c (output_cie): Make it more explicit which code paths
1131         belong to .eh_frame only.
1132
1133 2010-03-13  Segher Boessenkool  <segher@kernel.crashing.org>
1134
1135         * config/tc-v850.c (v850_insert_operand): Handle out-of-range
1136         assembler constants on 64-bit hosts.
1137
1138 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
1139
1140         * bfin-defs.h, bfin-lex.l, bfin-parse.y, tc-bfin.c, tc-bfin.h:
1141         Strip trailing whitespace.
1142
1143 2010-03-10  Mike Frysinger  <michael.frysinger@analog.com>
1144
1145         * doc/c-bfin.texi (-mcpu): Add bf504 and bf506.
1146         * config/tc-bfin.c (bfin_cpu_type): Add BFIN_CPU_BF504 and
1147         BFIN_CPU_BF506.
1148         (bfin_cpus[]): Add 0.0 for bf504 and bf506.
1149
1150 2010-03-10  Jie Zhang  <jie@codesourcery.com>
1151
1152         * doc/as.texinfo: Add Blackfin options.
1153         * doc/c-bfin.texi: Document -mfdpic, -mno-fdpic and -mnopic.
1154         * config/tc-bfin.c (md_show_usage): Show usage for all
1155         Blackfin specific options.
1156
1157 2010-03-09  Alan Modra  <amodra@gmail.com>
1158
1159         PR gas/11356
1160         * listing.c (listing_newline): Correct backslash quote logic.
1161
1162 2010-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1163
1164         * config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.
1165         (ELF_TARGET_FORMAT64): Define.
1166
1167 2010-03-05  Paul Brook  <paul@codesourcery.com>
1168
1169         * config/tc-arm.c (arm_cpu_option_table): Add cortex-m4.
1170
1171 2010-03-02  Andrew Stubbs  <ams@codesourcery.com>
1172
1173         * config/tc-sh.c (get_specific): Move overflow checking code to avoid
1174         reading uninitialized data.
1175
1176 2010-03-01  Tristan Gingold  <gingold@adacore.com>
1177
1178         * config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.
1179
1180 2010-02-26  Doug Evans  <dje@sebabeach.org>
1181
1182         * configure.tgt: Fix mep cpu case.
1183
1184 2010-02-26  Jie Zhang  <jie@codesourcery.com>
1185
1186         * config/tc-arm.c (do_t_strexd): Remove
1187         operand[1] != operand[2] contraint.
1188
1189 2010-02-26  Jie Zhang  <jie@codesourcery.com>
1190
1191         * config/tc-arm.c (neon_select_shape): No need to match
1192         the remaining operands in the shape when one operand does
1193         not match.
1194
1195 2010-02-26  Jie Zhang  <jie@codesourcery.com>
1196
1197         * config/tc-arm.c (do_neon_ld_st_interleave): Reject bad
1198         alignment.
1199
1200 2010-02-25  Doug Evans  <dje@sebabeach.org>
1201
1202         * cgen.c: Whitespace fixes.
1203         (weak_operand_overflow_check): Formatting fix.
1204
1205 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
1206
1207         * config/tc-i386.c (match_template): Update error messages.
1208
1209 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         * config/tc-i386.c (_i386_insn): Add err_msg.
1212         (operand_size_match): Set err_msg on failure.
1213         (operand_type_match): Likewise.
1214         (operand_type_register_match): Likewise.
1215         (VEX_check_operands): Likewise.
1216         (match_template): Likewise.  Use i.err_msg with as_bad.
1217
1218 2010-02-25  Wu Zhangjin <wuzhangjin@gmail.com>
1219
1220         * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
1221         mips_fix_loongson2f_jump): New variables.
1222         (md_longopts): Add New options -mfix-loongson2f-nop/jump,
1223         -mno-fix-loongson2f-nop/jump.
1224         (md_parse_option): Initialize variables via above options.
1225         (options): New enums for the above options.
1226         (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
1227         (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
1228         New functions.
1229         (append_insn): call fix_loongson2f().
1230         (mips_handle_align): Replace the implicit nops.
1231         * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
1232         for the new mips_handle_align().
1233         * doc/c-mips.texi: Document the new options.
1234
1235 2010-02-23  Daniel Gutson  <dgutson@codesourcery.com>
1236
1237         * config/tc-arm.c (do_rd_rm_rn): Added warning
1238         for obsolete insns.
1239
1240 2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
1241
1242         PR binutils/11297
1243         * config/tc-avr.c (md_apply_fix): Handle BFD_RELOC_8.
1244         (avr_cons_fix_new): Handle fixups of a single byte.
1245
1246 2010-02-22  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1247
1248         PR 9861
1249         * config/tc-arm.c (CPU_DEFAULT): Do not define based upon build
1250         compiler's predefines.
1251
1252 2010-02-19  Alan Modra  <amodra@gmail.com>
1253
1254         * configure.tgt: Whiltespace.  Sort moxie entry.
1255
1256 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1257
1258         * config/tc-arm.c (arm_convert_symbolic_attribute): Add Tag_DIV_use.
1259         * doc/c-arm.texi: Likewise.
1260
1261 2010-02-12  Daniel Gutson <dgutson@codesourcery.com>
1262
1263         * config/tc-arm.c (asm_opcode): operands type
1264         change.
1265         (BAD_PC_ADDRESSING): New macro message.
1266         (BAD_PC_WRITEBACK): Likewise.
1267         (MIX_ARM_THUMB_OPERANDS): New macro.
1268         (operand_parse_code): Added enum values.
1269         (parse_operands): Added thumb/arm distinction,
1270         plus new enum values handling.
1271         (encode_arm_addr_mode_2): Validations enhanced.
1272         (encode_arm_addr_mode_3): Likewise.
1273         (do_rm_rd_rn): Likewise.
1274         (encode_thumb32_addr_mode): Likewise.
1275         (do_t_ldrex): Likewise.
1276         (do_t_ldst): Likewise.
1277         (do_t_strex): Likewise.
1278         (md_assemble): Call parse_operands with
1279         a new parameter.
1280         (OPS_1): New macro.
1281         (OPS_2): Likewise.
1282         (OPS_3): Likewise.
1283         (OPS_4): Likewise.
1284         (OPS_5): Likewise.
1285         (OPS_6): Likewise.
1286         (insns): Updated insns operands.
1287
1288 2010-02-12  Tristan Gingold  <gingold@adacore.com>
1289             Douglas B Rupp  <rupp@gnat.com>
1290
1291         * config/tc-ia64.c (enum reloc_func): Add FUNC_SLOTCOUNT_RELOC.
1292         (DUMMY_RELOC_IA64_SLOTCOUNT): Added.
1293         (pseudo_func): Add an entry for slotcount.
1294         (md_begin): Initialize slotcount pseudo symbol.
1295         (ia64_parse_name): Handle @slotcount parameter.
1296         (ia64_gen_real_reloc_type): Handle slotcount.
1297         (md_apply_fix): Ditto.
1298         * doc/c-ia64.texi (IA-64-Relocs): Document @slotcount.
1299
1300 2010-02-11  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
1301
1302         * config/tc-xtensa.c (istack_init): Don't call memset.
1303
1304 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
1305
1306         * config/tc-xtensa.c (cache_literal_section): Handle prefixes as
1307         well as suffixes.
1308
1309 2010-02-11  Sterling Augustine  <sterling@tensilica.com>
1310
1311         * config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
1312
1313 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
1314
1315         * config/tc-i386.c (build_modrm_byte): Reformat.
1316
1317 2010-02-11  H.J. Lu  <hongjiu.lu@intel.com>
1318
1319         * config/tc-i386.c: Update copyright.
1320
1321 2010-02-10  Quentin Neill  <quentin.neill@amd.com>
1322             Sebastian Pop  <sebastian.pop@amd.com>
1323
1324         * config/tc-i386.c (vec_imm4) New operand type.
1325         (fits_in_imm4): New.
1326         (VEX_check_operands): New.
1327         (check_reverse): Call VEX_check_operands.
1328         (build_modrm_byte): Reintroduce code for 5
1329         operand insns.  Fix whitespace.
1330
1331 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
1332
1333         * config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
1334         -mpwr6 and -mpwr7.
1335
1336 2010-02-09  Sterling Augustine  <sterling@tensilica.com>
1337
1338         * config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New.
1339         (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES.
1340         (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
1341
1342 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
1343
1344         * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
1345         non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
1346         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
1347         BFD_RELOC_ARM_PCREL_CALL)
1348
1349 2010-02-08  Sterling Augustine  <sterling@tensilica.com>
1350
1351         * config/tc-xtensa.c (frag_format_size): Generalize logic to
1352         handle more instruction sizes and fetch widths.
1353         (branch_align_power): Likewise.
1354         (text_align_power): Likewise.
1355         (bytes_to_stretch): Likewise.
1356
1357 2010-02-08  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1358
1359         * config/tc-ppc.c (md_show_usage): Mention -mtitan.  Don't use tabs.
1360         (ppc_mach): Handle titan.
1361         * doc/c-ppc.texi: Mention -mtitan.
1362
1363 2010-02-05  Sterling Augustine  <sterling@tensilica.com>
1364
1365         * config/tc-xtensa.c (UNREACHABLE_MAX_WIDTH): Delete and
1366         replace with...
1367         (xtensa_fetch_width) ...this.
1368
1369 2010-02-05  Joseph Myers  <joseph@codesourcery.com>
1370
1371         * Makefile.am (CPU_TYPES, OBJ_FORMATS, CPU_OBJ_VALID,
1372         MULTI_CPU_TYPES, MULTI_CPU_OBJ_VALID): Remove.
1373         * Makefile.in: Regenerate.
1374
1375 2010-02-03  Quentin Neill  <quentin.neill@amd.com>
1376
1377         * config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
1378         (i386_align_code): Rename  PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
1379         * config/tc-i386.h (processor_type): Same.
1380         * doc/c-i386.texi: Change amdfam15 to bdver1.
1381
1382 2010-01-29  Nick Clifton  <nickc@redhat.com>
1383
1384         PR 11136
1385         * config/tc-arm.c (neon_check_type): Handle a neon_shape value of
1386         NS_NULL.
1387
1388 2010-01-27  Dave Korn  <dave.korn.cygwin@gmail.com>
1389
1390         * NEWS: Mention new feature.
1391         * config/obj-coff.c (obj_coff_section): Accept digits and use
1392         to override default section alignment power if specified.
1393         * doc/as.texinfo (.section directive): Update documentation.
1394
1395 2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>
1396
1397         * config/tc-i386.c (avxscalar): New.
1398         (OPTION_MAVXSCALAR): Likewise.
1399         (build_vex_prefix): Select vector_length for scalar instructions
1400         based on avxscalar.
1401         (md_longopts): Add OPTION_MAVXSCALAR.
1402         (md_parse_option): Handle OPTION_MAVXSCALAR.
1403         (md_show_usage): Add -mavxscalar=.
1404
1405         * doc/c-i386.texi: Document -mavxscalar=.
1406
1407 2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         * config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
1410         0xc4 individually.
1411
1412 2010-01-23  Richard Sandiford  <r.sandiford@uk.ibm.com>
1413
1414         * write.h (fix_at_start): Declare.
1415         * write.c (fix_new_internal): Add at_beginning parameter.
1416         Use it instead of REVERSE_SORT_RELOCS.  Fix the handling of
1417         seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
1418         (fix_new, fix_new_exp): Update accordingly.
1419         (fix_at_start): New function.
1420         * config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
1421         (ppc_ref): New function, for OBJ_XCOFF.
1422         (md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
1423         * config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
1424
1425 2010-01-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1426
1427         * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
1428         on 64-bit Solaris/x86.
1429         Include obj-format.h earlier.
1430
1431 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1432
1433         * config/tc-s390.c (s390_elf_final_processing): New function.
1434         * config/tc-s390.h (elf_tc_final_processing): New macro definition.
1435         (s390_elf_final_processing): Added prototype.
1436
1437
1438 2010-01-20  Nick Clifton  <nickc@redhat.com>
1439
1440         PR 11109
1441         * config/tc-arm.c (do_neon_cvt): Rename to do_neon_cvt_1.  Add
1442         code to handle round-to-zero for VCVT conversions.
1443         (do_neon_cvt): New.  Call do_neon_cvt_1.
1444         (do_neon_cvtr): New.  Call do_neon_cvt_1.
1445         (insns): Use do_neon_cvt for VCVT insn and do_neon_cvtr for VCVTR
1446         insn.
1447
1448 2010-01-18  Tristan Gingold  <gingold@adacore.com>
1449
1450         * config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
1451
1452 2010-01-15  Sebastian Pop  <sebastian.pop@amd.com>
1453
1454         * config/tc-i386.c (md_assemble): Before accessing the IMM field
1455         check that it's not an XOP insn.
1456
1457 2010-01-14  Jie Zhang  <jie.zhang@analog.com>
1458
1459         * config/bfin-aux.h: Remove argument names in function
1460         declarations.
1461         * config/bfin-lex.l (parse_int): Fix shadowed variable name
1462         warning.
1463         * config/bfin-parse.y (value_match): Remove argument names
1464         in declaration.
1465         (notethat): Likewise.
1466         (yyerror): Likewise.
1467
1468 2010-01-13  Daniel Jacobowitz  <dan@codesourcery.com>
1469
1470         * config/tc-arm.c (do_t_nop): Correct check for Thumb-2 NOP.
1471
1472 2010-01-13  Nick Clifton  <nickc@redhat.com>
1473
1474         * config/tc-h8300.c (h8300_elf_section): New function - issue a
1475         warning message if a new section is created without setting any
1476         attributes for it.
1477         (md_pseudo_table): Intercept section creation pseudos.
1478         (md_pcrel_from): Replace abort with an error message.
1479         * config/obj-elf.c (obj_elf_section_name): Export this function.
1480         * config/obj-elf.h (obj_elf_section_name): Prototype.
1481
1482 2010-01-12  Alan Modra  <amodra@gmail.com>
1483
1484         PR 11122
1485         * listing.c (print_source): Add one to line number.
1486
1487 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1488
1489         * Makefile.in: Regenerate.
1490         * configure: Regenerate.
1491         * doc/Makefile.in: Regenerate.
1492
1493 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1494
1495         * version.c (parse_args): Change to "Copyright 2010".
1496
1497 2010-01-06  Quentin Neill  <quentin.neill@amd.com>
1498
1499         * config/tc-i386.c (cpu_arch): Add amdfam15.
1500         (i386_align_code): Add PROCESSOR_AMDFAM15 cases.
1501         * config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
1502         * doc/c-i386.texi: Add amdfam15.
1503
1504 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
1505
1506         * config/tc-arm.c (do_neon_logic): Accept imm value
1507         in the third operand too.
1508         (operand_parse_code): OP_RNDQ_IMVNb renamed to
1509         OP_RNDQ_Ibig.
1510         (parse_operands): OP_NILO case removed, applied renaming.
1511         (insns): Neon shape changed for some logic instructions.
1512
1513 2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
1514
1515         * config/tc-arm.c (do_neon_ldx_stx): Added
1516         validation for vector load/store insns.
1517
1518 2010-01-04  Edmar Wienskoski  <edmar@freescale.com>
1519
1520         * config/tc-ppc.c (md_show_usage): Document -me500mc64.
1521
1522 2010-01-03  Daniel Gutson  <dgutson@codesourcery.com>
1523
1524         * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
1525         (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
1526         (NEON_ENCODE): New macro.
1527         (check_neon_suffixes): New macro.
1528         (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
1529         (do_vfp_nsyn_opcode): Likewise.
1530         (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
1531         (do_vfp_nsyn_cmp): Likewise.
1532         (do_neon_shl_imm): Likewise.
1533         (do_neon_qshl_imm): Likewise.
1534         (neon_dyadic_misc): Likewise.
1535         (do_neon_mac_maybe_scalar): Likewise.
1536         (do_neon_qdmulh): Likewise.
1537         (do_neon_qmovn): Likewise.
1538         (do_neon_qmovun): Likewise.
1539         (do_neon_movn): Likewise.
1540         (neon_mac_reg_scalar_long): Likewise.
1541         (do_neon_vmull): Likewise.
1542         (do_neon_trn): Likewise.
1543         (do_neon_ldx_stx): Likewise.
1544         (neon_dp_fixup): Changed signature and set the flag.
1545         (neon_three_same): Call the above with new signature.
1546         (neon_two_same): Likewise.
1547         (neon_imm_shift): Likewise.
1548         (neon_mul_mac): Likewise.
1549         (do_neon_abs_neg): Likewise.
1550         (neon_mixed_length): Likewise.
1551         (do_neon_ext): Likewise.
1552         (do_neon_mov): Likewise.
1553         (do_neon_tbl_tbx): Likewise.
1554         (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
1555         (neon_compare): Likewise.
1556         (do_neon_shll): Likewise.
1557         (do_neon_cvt): Likewise.
1558         (do_neon_mvn): Likewise.
1559         (do_neon_dup): Likewise.
1560         (md_assemble): Call check_neon_suffixes ().
1561
1562 For older changes see ChangeLog-2009
1563 \f
1564 Local Variables:
1565 mode: change-log
1566 left-margin: 8
1567 fill-column: 74
1568 version-control: never
1569 End: