* doc/as.texinfo (Local): New description of ELF .local directive.
[platform/upstream/binutils.git] / gas / ChangeLog
1 2008-10-06  Bob Wilson  <bob.wilson@acm.org>
2
3         * doc/as.texinfo (Local): New description of ELF .local directive.
4
5 2008-10-06  Nick Clifton  <nickc@redhat.com>
6
7         PR 6926
8         * read.c (get_line_sb): Renamed to get_non_macro_line_sb.
9         (_find_end_of_line): Add extra parameter indicating if the line is
10         inside a macro.  If it is then do not allow the @ character to be
11         treated as a line separator character.
12         (read_a_source): Update use of _find_end_of_line.
13         (find_end_of_line): Likewise.
14         (s_irp): Update use of get_line_sb.
15         (s_macro): Likewise.
16         (do_repeat): Likewise.
17         (get_line_sb): New function.  Like the old version of get_line_sb
18         except that it takes an extra parameter indicating whether the
19         line is inside a macro.
20         (get_macro_line_sb): New function.
21
22 2008-10-04  Hans-Peter Nilsson  <hp@axis.com>
23
24         * config/tc-cris.c: Update all comments regarding explicit relocations
25         to, besides PIC, also imply TLS or to say "relocation specifier" or
26         similar.
27         (RELOC_SUFFIX_CHAR): Rename from PIC_SUFFIX_CHAR.  Change all callers.
28         (cris_get_reloc_suffix): Rename from cris_get_pic_suffix.  Change all
29         callers.  Also handle TLS relocs.
30         (cris_get_specified_reloc_size): Rename from cris_get_pic_reloc_size.
31         Change all callers.  Also handle TLS relocs.
32         (tls): New constant.
33         (cris_process_instruction): Check for non-PIC TLS relocations and
34         adjust message when emitting error message about relocation not
35         fitting.
36         (get_autoinc_prefix_or_indir_op): Also check for relocation suffix
37         when tls is true.
38         (get_3op_or_dip_prefix_op): Ditto.
39         (cris_number_to_imm, tc_gen_reloc): Handle TLS relocs like PIC relocs.
40
41 2008-10-03  Kazu Hirata  <kazu@codesourcery.com>
42
43         * listing.c (buffer_line): Open the source file with FOPEN_RB.
44         Manually process line ends.
45
46 2008-09-30  Wesley W. Terpstra  <wesley@terpstra.ca>
47             Nick Clifton  <nickc@redhat.com>
48
49         * config/tc-tic4x.c (tic4x_globl): Call S_SET_EXTERNAL as well as
50         S_SET_STORAGE_CLASS.
51
52 2008-09-30  Wesley W. Terpstra  <wesley@terpstra.ca>
53             Nick Clifton  <nickc@redhat.com>
54
55         * coffgen.c (coff_write_symbols): Check to see if a symbol's flags
56         do not match it class and if necessary update the class.
57         (null_error_handler): New function.  Suppresses the generation of
58         bfd error messages.
59         * coff64-rs6000.c (bfd_xcoff_backend_data): Update comment.
60
61 2008-09-30  Alan Modra  <amodra@bigpond.net.au>
62
63         * Makefile.am: Run "make dep-am".
64         * Makefile.in: Regenerate.
65
66 2008-09-29  Nick Clifton  <nickc@redhat.com>
67
68         * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
69         tc_cfi_emit_pcrel_expr macro.
70
71 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
72             Steve Ellcey  <sje@cup.hp.com>
73
74         * configure: Regenerate for new libtool.
75         * aclocal.m4: Ditto.
76         * Makefile.in: Ditto.
77         * doc/Makefile.in: Ditto.
78
79 2008-09-29  Nick Clifton  <nickc@redhat.com>
80
81         PR 6878
82         * app.c (do_scrub_chars): Only issue warnings about tick
83         characters detected in symbol strings if hex ticks are supported.
84
85 2008-09-29  Nick Clifton  <nickc@redhat.com>
86
87         * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
88         tc_cfi_emit_pcrel_expr macro.
89
90 2008-09-28  Daniel Jacobowitz  <dan@codesourcery.com>
91
92         * NEWS: Mention .cfi_val_encoded_addr.
93
94 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
95
96         * Makefile.am (TARG_ENV_HFILES): Add config/te-solaris.h.
97         * Makefile.in (TARG_ENV_HFILES): Likewise.
98         * configure.tgt (Solaris targets): Set em=solaris.
99         * config/te-solaris.h: New file.
100
101 2008-09-26  Jie Zhang  <jie.zhang@analog.com>
102
103         * config/bfin-parse.y (asm_1): Fix reduce/reduce conflicts.
104
105 2008-09-24  Richard Henderson  <rth@redhat.com>
106
107         * dw2gencfi.c (DWARF2_ADDR_SIZE): Provide default.
108         (struct cfi_insn_data): Add ea member.
109         (CFI_val_encoded_addr, dot_cfi_val_encoded_addr): New.
110         (output_cfi_insn): Handle CFI_val_encoded_addr.
111         (select_cie_for_fde): Don't match CFI_val_encoded_addr.
112         * doc/as.texinfo (.cfi_val_encoded_addr): Document.
113
114 2008-09-25  Alan Modra  <amodra@bigpond.net.au>
115
116         PR 6913
117         * listing.c (print_options): Don't call fprintf without format string.
118
119 2008-09-19  Alan Modra  <amodra@bigpond.net.au>
120
121         * write.c (TC_FORCE_RELOCATION_SUB_LOCAL): Heed md_register_arithmetic.
122         (TC_VALIDATE_FIX_SUB): Likewise.
123         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
124         * config/tc-hppa.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
125         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Likewise.
126         * config/tc-sh.h (TC_VALIDATE_FIX_SUB): Likewise.
127         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
128         * config/tc-sh64.h (TC_VALIDATE_FIX_SUB): Likewise.
129         * config/tc-xtensa.h (TC_VALIDATE_FIX_SUB): Likewise.
130         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS,
131         TC_FORCE_RELOCATION_SUB_LOCAL, TC_VALIDATE_FIX_SUB): Show new param.
132
133         * write.c (md_register_arithmetic): Define.
134         (fixup_segment): Adjust TC_FORCE_RELOCATION_SUB_ABS invocation.
135         Modify error message when registers involved.
136         (TC_FORCE_RELOCATION_SUB_ABS): Heed md_register_arithmetic.
137         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Likewise.
138
139 2008-09-15  Alan Modra  <amodra@bigpond.net.au>
140
141         * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
142
143 2008-09-15  Alan Modra  <amodra@bigpond.net.au>
144
145         * config/tc-frv.c (md_apply_fix): Use abs_section_sym for
146         relocs with no symbol.
147         * config/tc-mmix.c (md_assemble): Mark fake symbol on
148         BFD_RELOC_MMIX_BASE_PLUS_OFFSET as OK for use by relocs.
149         (mmix_md_end): Likewise mark mmix reg contents section symbol.
150
151 2008-09-14  Chris Smith <chris@zxdesign.info>
152
153         * config/tc-z80.c: Opcode generation of ld a,(bc) and ld a,(de) was
154         broken, as the opcode of ld a,(de) was being emitted for both.
155
156 2008-09-12  Sterling Augustine  <sterling@tensilica.com>
157
158         * config/tc-xtensa.c (init_op_placement_info_table): Allow number of
159         operands equal to MAX_INSN_ARGS.
160
161 2008-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
162
163         * configure.in: Call AC_SYS_LARGEFILE.
164         * config.in: Regenerate.
165         * configure: Regenerate.
166
167 2008-09-09  Peter Bergner  <bergner@vnet.ibm.com>
168
169         * config/tc-ppc.c (ppc_setup_opcodes): Simplify POWER4/NOPOWER4 test.
170         Remove POWER5 and POWER6 tests.
171
172 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
173
174         * config/tc-hppa.c (hppa_regname_to_dw2regnum): Add register name to
175         number support for 32-bit targets.
176
177 2008-09-08  Tristan Gingold  <gingold@adacore.com>
178
179         * NEWS: Add a marker for the 2.19 features.
180
181 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
182
183         * config/tc-hppa.h (DIFF_EXPR_OK): Define for SOM target.  Revise
184         comment regarding use of difference expressions.
185         (TC_FORCE_RELOCATION_SUB_LOCAL): Define to 1.
186
187         * dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
188         (dot_cfi_personality): Use CFI_DIFF_EXPR_OK instead of DIFF_EXPR_OK.
189         (dot_cfi_lsda, output_cie, output_fde): Likewise.
190         * config/tc-hppa.h (CFI_DIFF_EXPR_OK): Define.
191
192 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
193
194         * config/tc-mips.h (DWARF2_FDE_RELOC_SIZE): Define.
195
196 2008-09-03  Nick Clifton  <nickc@redhat.com>
197
198         * config/tc-i386.c (pe_lcomm_internal): New function.  Allows the
199         alignment field of the .lcomm directive to be optional.
200         (pe_lcomm): New function.  Pass pe_lcomm_internal to
201         s_comm_internal.
202         (md_pseudo_table): Implement .lcomm directive for COFF based
203         targets.
204         * doc/c-i386.texi (i386-Directives): New node.  Used to document
205         the .lcomm directive.
206         
207 2008-08-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
208
209         * config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
210         and NetBSD.
211
212 2008-08-29  Eric B. Weddington  <eric.weddington@atmel.com>
213
214         * config/tc-avr.c (mcu_types): Add atmega16u4.
215         * doc/c-avr.texi: Likewise.
216
217 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
218
219         * config/tc-ia64.c (CR_IIB0): New.
220         (CR_IIB1): Likewise.
221         (cr): Add cr.iib0 and cr.iib1.
222         (specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.
223
224 2008-08-28  Jan Beulich  <jbeulich@novell.com>
225
226         * config/tc-i386.c (md_assemble): Force number of displacement
227         operands to zero when processing string instruction.
228         (i386_index_check): Special-case string instruction operands. Don't
229         fudge address prefix if there already was a memory operand. Fix
230         error message to correctly reflect the addressing mode used.
231         (i386_att_operand): Fix comment.
232         (i386_intel_operand): Snapshot, clear, and restore base and index
233         reg for each operand processed. Increment count of memory operands
234         later.
235
236 2008-08-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
237
238         * config/tc-hppa.c (is_SB_relative): New macro.
239         (fix_new_hppa): Remove $segrel$ marker.
240         (cons_fix_new_hppa): Set reloc type R_PARISC_SEGREL32 if expression is
241         segment relative.
242         * config/tc-hppa.h (tc_frob_symbol): Check for $segrel$.
243
244 2008-08-27  Jan Beulich  <jbeulich@novell.com>
245
246         * config/tc-i386.c (check_string): Use register_prefix for error
247         message.
248         (process_operands): Likewise.
249
250 2008-08-26  Mark Mitchell  <mark@codesourcery.com>
251
252         * c-arm.texi: Add tutorial on ARM unwinding pseudo ops.
253
254 2008-08-26  Jie Zhang  <jie.zhang@analog.com>
255
256         * config/bfin-parse.y (check_macfunc_option): Fix instruction
257         mode checking.
258         (asm_1): Check mode for 16-bit multiply instructions.
259
260 2008-08-24  Alan Modra  <amodra@bigpond.net.au>
261
262         * configure.in: Update a number of obsolete autoconf macros.
263         * configure: Regenerate.
264         * aclocal.m4: Regenerate.
265
266 2008-08-22  Nick Clifton  <nickc@redhat.com>
267
268         * config/tc-mcore.c (md_assemble): Increase length of name array
269         to include terminating NUL.
270
271 2008-08-22  Jie Zhang  <jie.zhang@analog.com>
272
273         * config/bfin-lex.l (NUMBER): Protect special `.'.
274
275 2008-08-22  Alan Modra  <amodra@bigpond.net.au>
276
277         * symbols.c (symbol_clone): Ensure clones are not external.
278
279 2008-08-22  Alan Modra  <amodra@bigpond.net.au>
280
281         * config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".
282
283 2008-08-21  Richard Henderson  <rth@redhat.com>
284
285         * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.
286         (output_cie, output_fde): Use it.
287         (DWARF2_EH_FRAME_READ_ONLY): New.
288         (cfi_finish): Use it.
289
290         * config/tc-hppa.h (DWARF2_FDE_RELOC_SIZE): Set to 8 for 64-bit.
291         (DWARF2_CIE_DATA_ALIGNMENT): Change sign.
292         (DWARF2_EH_FRAME_READ_ONLY): New.
293         * config/tc-hppa.c (tc_gen_reloc): Generate pc-relative relocations
294         from the results of DIFF_EXPR_OK manipulation.
295
296 2008-08-21  Sterling Augustine  <sterling@tensilica.com>
297
298         * config/xtensa-istack.h (MAX_INSN_ARGS): Increase to 64.
299
300 2008-08-20  Bob Wilson  <bob.wilson@acm.org>
301
302         * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
303         (O_tpoff, O_dtpoff): Define.
304         (suffix_relocs): Add entries for TLS suffixes.
305         (xtensa_elf_cons): Check for invalid use of TLS relocations.
306         (map_operator_to_reloc): Add is_literal parameter and use it to
307         control translating TLS instruction relocations to the corresponding
308         literal relocations.
309         (xg_valid_literal_expression): Allow TLS operators.
310         (xg_build_to_insn): Copy TLS operators from pseudo-instruction
311         operands to generated literals.
312         (xg_assemble_literal): Handle TLS operators.  Update call to
313         map_operator_to_reloc.
314         (md_assemble): Handle CALLXn.TLS pseudo-instruction.
315         (md_apply_fix): Handle TLS relocations.
316         (emit_single_op): Handle TLS operators.
317         (convert_frag_immed): Update call to map_operator_to_reloc.
318         (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
319         * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
320         * config/xtensa-relax.c (append_literal_op): Add src_op parameter
321         to initialize the op_data field of the BuildOp.
322         (build_transition): Use it here to record the source operand
323         corresponding to a generated literal.
324         * config/xtensa-relax.h (build_op): Comment op_data use for literals.
325
326 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
327
328         AVX Programming Reference (August, 2008)
329         * config/tc-i386.c (CPU_FLAGS_AES_MATCH): New.
330         (CPU_FLAGS_AVX_MATCH): Likewise.
331         (CPU_FLAGS_32BIT_MATCH): Updated.
332         (cpu_flags_match): Likewise.
333
334 2008-08-20  Alan Modra  <amodra@bigpond.net.au>
335
336         PR 6848
337         * write.c (install_reloc): Check that reloc symbols have been
338         written.
339         (set_symtab): Mark symbols with BSF_KEEP.
340
341 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
342
343         * config/tc-i386.c (i386_align_code): Fix a comment typo.
344
345 2008-08-15  Alan Modra  <amodra@bigpond.net.au>
346
347         PR 6526
348         * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
349         * Makefile.in: Regenerate.
350         * aclocal.m4: Regenerate.
351         * config.in: Regenerate.
352         * configure: Regenerate.
353         * doc/Makefile.in: Regenerate.
354
355 2008-08-14  Alan Modra  <amodra@bigpond.net.au>
356
357         * config/tc-tic4x.c (tic4x_operands_parse): Make static.
358
359 2008-08-13  Ben Elliston  <bje@au.ibm.com>
360
361         * doc/as.texinfo (Align): Document the PowerPC behaviour.
362
363 2008-08-13  Alan Modra  <amodra@bigpond.net.au>
364
365         * as.c, as.h, ecoff.c, hash.c, macro.c, symbols.c, config/obj-evax.c,
366         config/obj-som.c, config/tc-alpha.c, config/tc-arm.c, config/tc-bfin.c,
367         config/tc-bfin.h, config/tc-crx.c, config/tc-frv.c, config/tc-frv.h,
368         config/tc-hppa.h, config/tc-i386.c, config/tc-i860.c, config/tc-i960.h,
369         config/tc-ia64.c, config/tc-ia64.h, config/tc-m32c.c, config/tc-m32c.h,
370         config/tc-m68k.c, config/tc-maxq.c, config/tc-s390.c, config/tc-s390.h,
371         config/tc-sparc.c, config/tc-sparc.h, config/tc-spu.c, config/tc-spu.h,
372         config/tc-tic4x.c, config/tc-tic4x.h, config/tc-tic54x.c,
373         config/tc-tic54x.h, config/tc-vax.c, doc/internals.texi: Banish PARAMS
374         and PTR.  Convert to ISO C.  Delete unnecessary forward declarations.
375
376 2008-08-12  Alan Modra  <amodra@bigpond.net.au>
377
378         * config/tc-arm.c (s_unreq): Adjust hash_delete call.
379         * config/tc-ia64.c (dot_rot): Likewise.
380
381 2008-08-11  Alan Modra  <amodra@bigpond.net.au>
382
383         PR 6575
384         * hash.c: Expand PTR to void *.
385         (hash_delete): Add "freeme" parameter.  Call obstack_free.
386         * hash.h: Expand PTR to void *.
387         (hash_delete): Update prototype.
388         * macro.c (macro_expand_body): hash_delete LOCALs from formal_hash.
389         * config/tc-tic54x.c (tic54x_remove_local_label): Update hash_delete
390         call.
391         (subsym_substitute): Likewise.
392         * doc/internals.texi (hash_delete): Update.
393
394 2008-08-08  Anatoly Sokolov  <aesok@post.ru>
395
396         * config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
397         architectures. Reorganize list to put mcu types in correct
398         architectures and to order list same as in GCC. Use new ISA
399         definitions in include/opcode/avr.h.
400         * doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
401         descriptions. Reorganize descriptions to put mcu types in correct
402         architectures and to order lists same as in GCC.
403
404 2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
405             Daniel Jacobowitz  <dan@codesourcery.com>
406
407         * config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
408         (OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
409         (OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
410         (OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
411         (md_longopts): Add -call_nonpic.
412         (md_parse_option): Handle OPTION_CALL_NONPIC.
413         (md_show_usage): Add -call_nonpic.
414
415 2008-08-08  Sterling Augustine  <sterling@tensilica.com>
416
417         * config/tc-xtensa.c (exclude_section_from_property_tables): New.
418         (xtensa_create_property_segments): Use it.
419         (xtensa_create_xproperty_segments): Likewise.
420
421 2008-08-08  Alan Modra  <amodra@bigpond.net.au>
422
423         * doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.
424
425 2008-08-06  Richard Sandiford  <rdsandiford@googlemail.com>
426
427         * config/tc-mips.c (mips16_reloc_p, got16_reloc_p, hi16_reloc_p)
428         (lo16_reloc_p): New functions.
429         (reloc_needs_lo_p): Use hi16_reloc_p and got16_reloc_p to
430         generalize relocation checks.
431         (matching_lo_reloc): New function.
432         (fixup_has_matching_lo_p): Use it.
433         (mips16_mark_labels): Don't clobber a symbol's visibility.
434         (append_insn): Use hi16_reloc_p and lo16_reloc_p.
435         (mips16_ip): Handle BFD_RELOC_MIPS16_GOT16 and BFD_RELOC_MIPS16_CALL16.
436         (md_apply_fix): Likewise.
437         (mips16_percent_op): Add %got and %call16.
438         (mips_frob_file): Use got16_reloc_p to generalize relocation checks.
439         Use matching_lo_reloc.
440         (mips_force_relocation): Use hi16_reloc_p and lo16_reloc_p to
441         generalize relocation checks.
442         (mips_fix_adjustable): Use lo16_reloc_p to generalize relocation
443         checks.
444
445 2008-08-06  DJ Delorie  <dj@redhat.com>
446
447         * NEWS: Mention these changes.
448
449         * config/tc-h8300.h (H_TICK_HEX): Define.
450         * config/tc-h8300.c (OPTION_H_TICK_HEX): New.
451         (md_longopts): Add "-h-tick-hex".
452         (md_parse_option): Support it.
453         * doc/c-h8300.texi (H8/300 Options): Document it.
454         * doc/as.texinfo (Overview): Likewise.
455
456         * config/tc-sh.h (H_TICK_HEX): Define.
457         * config/tc-sh.c (OPTION_H_TICK_HEX): New.
458         (md_longopts): Add "-h-tick-hex".
459         (md_parse_option): Support it.
460         * doc/c-sh.texi (SH Options): Document it.
461         * doc/c-sh64.texi (SH64 Options): Document it.
462         * doc/as.texinfo (Overview): Likewise.
463
464 2008-08-05  Alan Modra  <amodra@bigpond.net.au>
465
466         PR gas/6656
467         * dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
468         debug info if we see compiler generated debug info.
469         (dwarf2_directive_loc): Likewise.  Remove redundant debug_type test.
470
471 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
472
473         * dwarf2dbg.c: Remove superfluous forward function declarations.
474         (DWARF2_FORMAT): Add section arg.
475         (out_header): New function, split out from..
476         (out_debug_line): ..here.
477         (out_debug_aranges): Use out_header.
478         (out_debug_abbrev): Add info_seg and line_seg args.  Use
479         DW_FORM_data8 (for DW_AT_stmt_list) if line_seg is 64-bit.
480         (out_debug_info): Use out_header.  Output 8 byte DW_AT_stmt_list
481         if line_seg is 64-bit.
482         (dwarf2_finish): Adjust out_debug_abbrev call.
483         * config/tc-mips.h (DWARF2_FORMAT, mips_dwarf2_format): Add sec arg.
484         * config/tc-mips.c (mips_dwarf2_format): Likewise.
485
486 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
487
488         * Makefile.am (POTFILES.in): Set LC_ALL=C.
489         * Makefile.in: Regenerate.
490         * po/POTFILES.in: Regenerate.
491
492 2008-08-01  Peter Bergner  <bergner@vnet.ibm.com>
493
494         * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
495         Handle -mvsx and -mpower7.
496         (md_show_usage): Document -mpower7 and -mvsx.
497         * doc/as.texinfo (Target PowerPC): Document -mvsx.
498         * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
499
500 2008-07-31  Peter Bergner  <bergner@vnet.ibm.com>
501
502         * config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
503         <cell>: Likewise.
504
505 2008-07-30  Michael J. Eager  <eager@eagercon.com>
506
507         * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
508         (md_show_usage): Likewise.
509
510 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
511
512         * messages.c, symbols.c, write.c: Silence gcc warnings.
513
514 2008-07-28  Ineiev  <ineiev@yahoo.co.uk>
515
516         * config/tc-i386.c (operand_type_check): Warning fix.
517
518 2008-07-26  Michael Eager <eager@eagercon.com>
519
520         * doc/as.texinfo: Add description of single-precision attribute.
521
522 2008-07-24  Jie Zhang  <jie.zhang@analog.com>
523
524         * config/bfin-parse.y (asm_1): Error if plain symbol is used
525         as load/store offset.
526
527 2008-07-22  Chao-ying Fu  <fu@mips.com>
528
529         * config/tc-mips.c (mips_ip): Reset s to argsStart.
530
531 2008-07-22  Jie Zhang  <jie.zhang@analog.com>
532
533         * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
534
535 2008-07-21  DJ Delorie  <dj@redhat.com>
536
537         * config/tc-h8300.c (fix_operand_size): Use the default size
538         specified by the .lbranch/.sbranch pseudos.
539
540 2008-07-18  DJ Delorie  <dj@redhat.com>
541
542         * config/tc-m32c.h (H_TICK_HEX): Define.
543         * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
544         (md_longopts): Add support for it.
545         (md_parse_option): Likewise.
546         * doc/as.texinfo (Overview): Add new m32c options.
547         * doc/c-m32c.texi (M32C-Modifiers): Likewise
548
549         * as.h: (enable_h_tick_hex): New.
550         * app.c (enable_h_tick_hex): New.
551         (LEX_IS_H): New.
552         (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
553         (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
554         style hex constants and convert the input stream to 0x00 style.
555         (do_scrub_chars): If a 'X style character constant is found after
556         a symbol character (like you're or X'00), warn the user.
557
558 2008-07-10  Richard Sandiford  <rdsandiford@googlemail.com>
559
560         * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
561         (mips_fix_adjustable): Likewise.
562         (mips_frob_file_after_relocs): Likewise.
563
564 2008-07-08  Nathan Sidwell  <nathan@codesourcery.com>
565
566         * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
567         about overriding an earlier setting.
568
569 2008-07-07  Adam Nemet  <anemet@caviumnetworks.com>
570
571         * config/tc-mips.c (NO_ISA_COP): New macro.
572         (COP_INSN): New macro.
573         (is_opcode_valid): Use them.
574         (macro) <ld_st>: Use them.  Don't accept coprocessor load store
575         insns based on the ISA if CPU is NO_ISA_COP.
576         <copz>: Likewise for coprocessor operations.
577
578 2008-07-07  Paul Brook  <paul@codesourcery.com>
579
580         * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
581         relocations.
582
583 2008-07-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
584
585         * configure.tgt: Add bfin-*-rtems*.
586
587 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
588
589         * config/tc-spu.c (md_apply_fix): Handle fully resolved
590         BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
591
592 2008-06-25  Peter Bergner  <bergner@vnet.ibm.com>
593
594         * config/tc-ppc.c (parse_cpu): Handle -m464.
595         (md_show_usage): Likewise.
596
597 2008-06-24  Eric B. Weddington  <eric.weddington@atmel.com>
598
599         Add support for ATtiny13A.
600         * config/tc-avr.c (mcu_types): Add attiny13a.
601         * doc/c-avr.texi: Likewise.
602
603 2008-06-24  Bob Wilson  <bob.wilson@acm.org>
604             Alan Modra  <amodra@bigpond.net.au>
605
606         * write.c (relax_segment <rs_org>): Include current stretch
607         value when calculating whether .org is backwards.
608
609 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
610
611         * configure: Regenerate.
612
613 2008-06-17  Nick Clifton  <nickc@redhat.com>
614
615         * app.c (do_scrub_chars): Do not UNGET an EOF value.
616
617 2008-06-16  Hans-Peter Nilsson  <hp@bitrange.com>
618
619         PR gas/6607
620         * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
621         text_section.  Do the "stepping backwards" test for text_section
622         using unsigned operands.
623
624 2008-06-13  Peter Bergner  <bergner@vnet.ibm.com>
625
626         * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
627         (ppc_insert_operand): Likewise.
628         (ppc_machine): Likewise.
629         * config/tc-ppc.h: #include "opcode/ppc.h"
630         (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
631         (ppc_cpu): Update extern decl.
632
633 2008-06-12  Adam Nemet  <anemet@caviumnetworks.com>
634
635         * config/tc-mips.c (validate_mips_insn): Handle field descriptors
636         +x, +X, +p, +P, +s, +S.
637         (mips_ip): Likewise.
638
639         * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
640         (mips_ip): Likewise.
641         (macro_build): Likewise.
642         (CPU_HAS_SEQ): New macro.
643         (macro2) <M_SEQ_I, M_SNE_I>: Use it.  Emit seq/sne and seqi/snei.
644
645 2008-06-09  Eric B. Weddington  <eric.weddington@atmel.com>
646
647         * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
648         * doc/c-avr.texi: Likewise.
649
650 2008-06-04  Nick Clifton  <nickc@redhat.com>
651
652         * app.c (do_scrub_chars): Do not UNGET an EOF value.
653
654 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
655
656         * config/tc-i386.c (set_sse_check): New.
657         (md_pseudo_table): Add "sse_check".
658
659 2008-06-03  Paul Brook  <paul@codesourcery.com>
660
661         * config/tc-arm.c (do_t_rbit): Populate both rm fields.
662
663 2008-05-30  Nick Clifton  <nickc@redhat.com>
664
665         PR 5523
666         * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
667         relocs here.
668
669 2008-05-29  Maxim Kuvyrkov  <maxim@codesourcery.com>
670
671         * config/tc-mips.c (mips_cpu_info_table): Move records for
672         ST Loongson-2E/2F processors to a better place.
673
674 2008-05-23  H.J. Lu  <hongjiu.lu@intel.com>
675
676         PR gas/6518
677         * config/tc-i386.c (match_template): Report ambiguous operand
678         size, not invalid suffix when there is no match in Intel
679         syntax.
680
681 2008-05-22  Paul Brook  <paul@codesourcery.com>
682
683         * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
684
685 2008-05-21  I-Jui Sung  <ijsung@gmail.com>
686
687         * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
688         compatible cores: fa526, fa626, fa626te, fa726te.
689         * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
690         fa726te} options.
691
692 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
693
694         * Makefile.am: Run "make dep-am".
695         * Makefile.in: Regenerate.
696         * doc/Makefile.in: Regenerate.
697         * po/POTFILES.in: Regenerate.
698
699 2008-05-09  Catherine Moore  <clm@codesourcery.com>
700
701         * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
702         with non-MIPS16 relocs.
703
704 2008-05-09  Chao-ying Fu  <fu@mips.com>
705
706         * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
707         case that some characters append at the end of the name.
708         (mips_ip): Likewise.
709         (s_change_sec): Likewise.
710         (md_section_align): Likewise.
711
712 2008-05-07  Bob Wilson  <bob.wilson@acm.org>
713
714         * config/tc-xtensa.c (xtensa_create_property_segments): Use
715         xtensa_make_property_section instead of xtensa_get_property_section.
716         (xtensa_create_xproperty_segments): Likewise.
717
718 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
719
720         * NEWS: Mention XSAVE, EPT and MOVBE.
721
722         * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
723         (md_show_usage): Add .movbe and .ept.
724
725         * doc/c-i386.texi: Add movbe and ept to -march=.  Document
726         .movbe and .ept.
727
728 2008-04-29  David S. Miller  <davem@davemloft.net>
729
730         * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
731
732 2008-04-28  Adam Nemet  <anemet@caviumnetworks.com>
733
734         * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
735         New statics.
736         (OPTION_ELF_BASE): Make room for new option macros.
737         (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
738         OPTION_DOUBLE_FLOAT): New option macros.
739         (md_longopts): Add msoft-float, mhard-float, msingle-float and
740         mdouble-float.
741         (md_parse_option): Handle OPTION_SINGLE_FLOAT,
742         OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
743         (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
744         and -mdouble-float.
745         (struct mips_set_options): New fields soft_float and single_float.
746         (mips_opts): Initialized them.  Add comment for each field
747         initializer.
748         (mips_after_parse_args): Set them based on file_mips_soft_float
749         and file_mips_single_float.
750         (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
751         `.set singlefloat' and `.set doublefloat'.
752         (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
753         Handle single-float and soft-float instructions here.
754         (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
755         (is_opcode_valid_16): New function.
756         (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
757         (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
758         M_S_DOB>: Remove special-casing of r4650.
759         * doc/c-mips.texi (-march=): Add Octeon.
760         (MIPS Opts): Document -msoft-float and -mhard-float.  Document
761         -msingle-float and -mdouble-float.
762         (MIPS floating-point): New section.  Document `.set softfloat' and
763         `.set hardfloat'.  Document `.set singlefloat' and `.set
764         doublefloat'.
765
766 2008-04-25  David S. Miller  <davem@davemloft.net>
767
768         * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
769         %asr aliases.
770
771         * doc/c-sparc.texi: Consistently refer to architecture 'versions',
772         rather than occaisionally 'levels'.  Consistently refer to Sun's
773         UNIX variant as SunOS, every version of Solaris is also SunOS.
774         Document new 'softint_clear' and 'softint_set' aliases.  Clarify
775         which architecture versions support '%dcr', '%cq', and '%gl'. Add
776         section on 32-bit/64-bit opcode translations.
777
778 2008-04-23  Mike Frysinger  <vapier@gentoo.org>
779
780         * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
781         (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
782         (obj-fdpicelf.o): Define.
783         * Makefile.in: Regenerate.
784         * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
785         (bfin-*-*): Delete.
786         (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
787         (bfin-*-uclinux*): New; set fmt to elf and em to linux.
788         * config/obj-fdpicelf.c: New.
789         * config/obj-fdpicelf.h: Likewise.
790         * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
791         the OBJ_FDPIC_ELF define.
792         (OPTION_NOPIC): Define.
793         (md_longopts): Add mnopic and mno-fdpic.
794         (md_parse_option): Handle OPTION_NOPIC.
795
796 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
797
798         * aclocal.m4: Regenerate.
799         * configure: Regenerate.
800
801 2008-04-23  David S. Miller  <davem@davemloft.net>
802
803         * config/tc-sparc.c (v9a_asr_table): Add missing
804         'stick' and 'stick_cmpr', and document ordering rules
805         of table.
806         (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
807         BFD_RELOC_SPARC_PC10.
808         * doc/c-sparc.texi: New section on Sparc constants.
809         Add documentation for %stick and %stick_cmpr.
810
811 2008-04-22  David S. Miller  <davem@davemloft.net>
812
813         * config/obj-elf.c (obj_elf_section_type): Add prototype
814         before obj_elf_section_word and add 'warn' arg.
815         (obj_elf_section_word): Add type pointer arg, and if no #SECTION
816         is matched, try checking for #SECTION_TYPE.
817         (obj_elf_section): Adjust for new args.
818         (obj_elf_type_name): New function.
819         (obj_elf_type): Call it, and accept STT_foo number strings
820         in .type statements as output by SunPRO compiler.
821
822 2008-04-22  H.J. Lu  <hongjiu.lu@intel.com>
823
824         * config/tc-i386.c (md_assemble): Don't check SSE instructions
825         if noavx is 0.
826
827 2008-04-18  David S. Miller  <davem@davemloft.net>
828
829         * doc/c-sparc.texi: Add syntax section.
830
831 2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>
832
833         * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
834         REG and NDS for instructions with immediate operand.
835
836 2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>
837
838         * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
839         FMA.
840
841 2008-04-16  David S. Miller  <davem@davemloft.net>
842
843         * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
844         and relocation generation.
845         (tc_gen_reloc): Likewise.
846
847 2008-04-15  Andrew Stubbs  <andrew.stubbs@st.com>
848
849         * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
850         relocations are properly aligned, and not negative.
851
852 2008-04-15  Khem Raj  <kraj@mvista.com>
853
854         * doc/tc-arm.texi: Fix fnstart and fnend directive names.
855
856 2008-04-14  Edmar Wienskoski  <edmar@freescale.com>
857
858         * config/tc-ppc.c (parse_cpu): Handle "e500mc".  Extend "e500" to
859         accept e500mc instructions.
860         (md_show_usage): Document -me500mc.
861
862 2008-04-11  Nick Clifton  <nickc@redhat.com>
863
864         * listing.c (print_timestamp): Use localtime rather than
865         localtime_r since not all build environments provide the latter.
866
867 2008-04-10  H.J. Lu  <hongjiu.lu@intel.com>
868
869         * NEWS: Mention -msse-check=[none|error|warning].
870
871         * config/tc-i386.c (sse_check): New.
872         (OPTION_MSSE_CHECK): Likewise.
873         (md_assemble): Check SSE instructions if needed.
874         (md_longopts): Add -msse-check.
875         (md_parse_option): Handle OPTION_MSSE_CHECK.
876         (md_show_usage): Show -msse-check=[none|error|warning].
877
878         * doc/c-i386.texi: Document -msse-check=[none|error|warning].
879
880 2008-04-10  Santiago Urueña  <suruena@gmail.com>
881
882         * listing.c: Add -ag listing flag to show general information in
883         listings such as gas version, passed options, and time stamp.
884         (listing_general_info): New function.
885         (print_options): New function.
886         (print_single_option): New function.
887         (print_timestamp): New function.
888         (MAX_DATELEN): Define.
889         (listing_print): Add call to listing_general_info.
890         * listing.h (LISTING_GENERAL): Define.
891         (listing_print): Add new parameter.
892         * as.c (show_usage): Print new switch.
893         (parse_args): Parse new switch.
894         (main): Pass command line on to listing_print.
895         * NEWS: Mention this new feature.
896         * doc/as.texinfo: Document the new sub-option.
897
898 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
899
900         * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
901         call.  Delete out of date comment.
902         (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
903         (dwarf2_emit_label): Don't emit unless there has been a previous
904         .file or we are outputting assembler generated debug.
905         dwarf2_consume_line_info after emitting line info, not before.
906         (out_debug_info): Simplify files_in_use test.
907
908 2008-04-07  H.J. Lu  <hongjiu.lu@intel.com>
909
910         * config/tc-i386.c (parse_real_register): Return AVX register
911         only if AVX is enabled.
912
913 2008-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
914
915         PR gas/6043
916         * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
917         md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
918
919 2008-04-04  Adrian Bunk  <bunk@stusta.de>
920             Bob Wilson  <bob.wilson@acm.org>
921
922         * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
923         call to decode_reloc.
924
925 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
926
927         * NEWS: Mention XSAVE.  Change CLMUL to PCLMUL.
928
929         * config/tc-i386.c (cpu_arch): Add .pclmul.
930         (md_show_usage): Replace clmul with pclmul.
931         * doc/c-i386.texi: Likewise.
932
933 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
934
935         * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
936
937         * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
938         Document -msse2avx, .avx, .aes, .clmul and .fma.
939
940         * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
941         (vex_prefix): Likewise.
942         (sse2avx): Likewise.
943         (CPU_FLAGS_ARCH_MATCH): Likewise.
944         (CPU_FLAGS_64BIT_MATCH): Likewise.
945         (CPU_FLAGS_32BIT_MATCH): Likewise.
946         (CPU_FLAGS_PERFECT_MATCH): Likewise.
947         (regymm): Likewise.
948         (vex_imm4): Likewise.
949         (fits_in_imm4): Likewise.
950         (build_vex_prefix): Likewise.
951         (VEX_check_operands): Likewise.
952         (bad_implicit_operand): Likewise.
953         (OPTION_MSSE2AVX): Likewise.
954         (T_YMMWORD): Likewise.
955         (_i386_insn): Add vex.
956         (cpu_arch): Add .avx, .aes, .clmul and .fma.
957         (cpu_flags_match): Changed to take a pointer to const template.
958         Enable encoding SSE instructions with VEX prefix for -msse2avx.
959         (match_mem_size): Also check ymmword.
960         (operand_type_match): Clear ymmword.
961         (md_begin): Allow '_' in mnemonic.
962         (type_names): Add OPERAND_TYPE_VEX_IMM4.
963         (process_immext): Update assert.
964         (md_assemble): Don't call process_immext if sse2avx and immext
965         are true.  Call build_vex_prefix if vex is true.
966         (parse_insn): Updated for cpu_flags_match.
967         (swap_operands): Handle 5 operands.
968         (match_template): Handle 5 operands. Updated for cpu_flags_match.
969         Check regymm.  Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
970         (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
971         (check_byte_reg): Check regymm.
972         (process_operands): Duplicate the destination register for
973         -msse2avx if needed.
974         (build_modrm_byte): Updated for instructions with VEX encoding.
975         (output_insn): Output VEX prefix if needed.
976         (md_longopts): Add msse2avx.
977         (md_parse_option): Handle OPTION_MSSE2AVX.
978         (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
979         (intel_e09): Support YMMWORD.
980         (intel_e11): Likewise.
981         (intel_get_token): Likewise.
982
983 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
984
985         * config/tc-avr.c (mcu_types): Add attiny167.
986         * doc/c-avr.texi: Likewise.
987
988 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
989
990         * config/tc-avr.c (mcu_types): Add atmega32u4.
991         * doc/c-avr.texi: Likewise.
992
993 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
994
995         * config/tc-avr.c (mcu_types): Add atmega32c1.
996         * doc/c-avr.texi: Likewise.
997
998 2008-03-28  Paul Brook  <paul@codesourcery.com>
999
1000         * config/tc-arm.c (parse_neon_mov): Parse register before immediate
1001         to avoid spurious symbols.
1002
1003 2008-03-28  Nathan Sidwell  <nathan@codesourcery.com>
1004
1005         * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
1006         as_bad_where.
1007
1008 2008-03-27  Eric B. Weddington  <eric.weddington@atmel.com>
1009
1010         * config/tc-avr.c (mcu_types): Add atmega32m1.
1011         * doc/c-avr.texi: Likewise.
1012
1013 2008-03-27  Ineiev  <ineiev@yahoo.co.uk>
1014
1015         * config/tc-arm.c (do_neon_cvt): Move variable declarations to
1016         start of block.
1017         (do_neon_ext): Fix sign of comparison.
1018
1019 2008-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
1020
1021         From Jie Zhang  <jie.zhang@analog.com>
1022         * config/bfin-parse.y (asm_1): Check AREGS in comparison
1023         instructions. And call yyerror when comparing PREG with
1024         DREG.
1025         (check_macfunc_option): New.
1026         (check_macfuncs): Check option by calling check_macfunc_option.
1027         Fix comparison always true warnings.  Both scalar instructions
1028         of vector instruction must share the same mode option.  Only allow
1029         option mode at the end of the second instruction of the vector.
1030         (asm_1): Check option by calling check_macfunc_option.
1031
1032         * config/bfin-parse.y (check_macfunc_option): Allow (IU)
1033         option for multiply and multiply-accumulate to data register
1034         instruction.
1035         (check_macfuncs): Don't check if accumulator matches the data register
1036         here.
1037         (assign_macfunc): Check if accumulator matches the
1038         data register in each rule that moves to the data
1039         register.
1040
1041         * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
1042         generated for LOOP_BEGIN and LOOP_END instructions.
1043         (bfin_gen_loop): Likewise.
1044
1045 2008-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1046
1047         * config/tc-s390.c (md_parse_option): z10 option added.
1048
1049 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1050
1051         * aclocal.m4: Regenerate.
1052         * configure: Likewise.
1053         * Makefile.in: Likewise.
1054         * doc/Makefile.in: Likewise.
1055
1056 2008-03-17  Adrian Bunk  <bunk@stusta.de>
1057
1058         PR 5946
1059         * config/tc-hppa.c (is_same_frag): Delete.
1060
1061 2008-03-14  Sterling Augustine  <sterling@tensilica.com>
1062
1063         * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
1064         RELAX_LOOP_END_ADD_NOP.
1065
1066 2008-03-13  Evandro Menezes  <evandro@yahoo.com>
1067
1068         PR gas/5895
1069         * read.c (s_mexit): Warn if attempting to exit a macro when not
1070         inside a macro definition.
1071
1072 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
1073
1074         * Makefile.am: Run "make dep-am".
1075         * Makefile.in: Regenerate.
1076         * configure: Regenerate.
1077
1078 2008-03-09  Paul Brook  <paul@codesourcery.com>
1079
1080         * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
1081         * doc/c-arm.texi: Add cortex-a9.
1082
1083 2008-03-09  Paul Brook  <paul@codesourcery.com>
1084
1085         * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
1086         (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
1087         (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
1088         (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
1089         * doc/c-arm.texi: Document new ARM FPU variants.
1090
1091 2008-03-07  Paul Brook  <paul@codesourcery.com>
1092
1093         * config/tc-arm.c (md_apply_fix): Use correct offset range.
1094
1095 2008-03-07  Alan Modra  <amodra@bigpond.net.au>
1096
1097         * config/tc-ppc.c (ppc_setup_opcodes): Tidy.  Add code to test
1098         for strict ordering of powerpc_opcodes, but disable for now.
1099
1100 2008-03-04  Paul Brook  <paul@codesourcery.com>
1101
1102         * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
1103         (arm_ext_v7m): Rename...
1104         (arm_ext_m): ... to this.  Include v6-M.
1105         (do_t_add_sub): Allow narrow low-reg non flag setting adds.
1106         (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
1107         (md_assemble): Allow wide msr instructions.
1108         (insns): Add classifications for v6-m instructions.
1109         (arm_cpu_option_table): Add cortex-m1.
1110         (arm_arch_option_table): Add armv6-m.
1111         (cpu_arch): Add ARM_ARCH_V6M.  Fix numbering of other v6 variants.
1112
1113 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
1114             Bob Wilson  <bob.wilson@acm.org>
1115
1116         * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
1117         (md_begin): Initialize it.
1118         (resources_conflict): Use it.
1119
1120 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
1121
1122         * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
1123
1124 2008-03-03  Denys Vlasenko <vda.linux@googlemail.com>
1125             H.J. Lu  <hongjiu.lu@intel.com>
1126
1127         PR gas/5543
1128         * read.c (pseudo_set): Don't allow global register symbol.
1129
1130         * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
1131         global.
1132
1133 2008-03-03  H.J. Lu  <hongjiu.lu@intel.com>
1134
1135         PR gas/5543
1136         * write.c (write_object_file): Don't allow symbols which were
1137         equated to register.  Stop if there is an error.
1138
1139 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
1140
1141         * config/tc-ppc.h (struct _ppc_fix_extra): New.
1142         (ppc_cpu): Declare.
1143         (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
1144         * config/tc-ppc.c (ppu_cpu): Make global.
1145         (ppc_insert_operand): Add ppu_cpu parameter.
1146         (md_assemble): Adjust for above change.
1147         (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
1148
1149 2008-02-22  Nick Clifton  <nickc@redhat.com>
1150
1151         * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
1152         targeted ARM ports, otherwise just skip generating the reloc.
1153
1154 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
1155
1156         * doc/c-i386.texi: Update -march= and .arch.
1157
1158 2008-02-18  Nick Clifton  <nickc@redhat.com>
1159
1160         * config/tc-mn10300.c (has_known_symbol_location): New function.
1161         Do not regard weak symbols as having a known location.
1162         (md_estimate_size_before_relax): Use new function.
1163         (md_pcrel_from): Do not compute a pcrel against a weak symbol.
1164
1165 2008-02-18  Jan Beulich  <jbeulich@novell.com>
1166
1167         * config/tc-i386.c (match_template): Disallow 'l' suffix when
1168         currently selected CPU has no 32-bit support.
1169         (parse_real_register): Do not return registers not available on
1170         currently selected CPU.
1171
1172 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
1173
1174         * config/tc-i386.c (process_immext): Fix format.
1175
1176 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         * config/tc-i386.c (inoutportreg): New.
1179         (process_immext): New.
1180         (md_assemble): Use it.
1181         (update_imm): Use imm16 and imm32s.
1182         (i386_att_operand): Use inoutportreg.
1183
1184 2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1185
1186         * config/tc-i386.c (operand_type_all_zero): New.
1187         (operand_type_set): Likewise.
1188         (operand_type_equal): Likewise.
1189         (cpu_flags_all_zero): Likewise.
1190         (cpu_flags_set): Likewise.
1191         (cpu_flags_equal): Likewise.
1192         (UINTS_ALL_ZERO): Removed.
1193         (UINTS_SET): Likewise.
1194         (UINTS_CLEAR): Likewise.
1195         (UINTS_EQUAL): Likewise.
1196         (cpu_flags_match): Updated.
1197         (smallest_imm_type): Likewise.
1198         (set_cpu_arch): Likewise.
1199         (md_assemble): Likewise.
1200         (optimize_imm): Likewise.
1201         (match_template): Likewise.
1202         (process_suffix): Likewise.
1203         (update_imm): Likewise.
1204         (process_drex): Likewise.
1205         (process_operands): Likewise.
1206         (build_modrm_byte): Likewise.
1207         (i386_immediate): Likewise.
1208         (i386_displacement): Likewise.
1209         (i386_att_operand): Likewise.
1210         (parse_real_register): Likewise.
1211         (md_parse_option): Likewise.
1212         (i386_target_format): Likewise.
1213
1214 2008-02-14  Dimitry Andric  <dimitry@andric.com>
1215
1216         PR gas/5712
1217         * config/tc-arm.c (s_arm_unwind_save): Advance the input line
1218         pointer past the comma after parsing a floating point register
1219         name.
1220
1221 2008-02-14  Hakan Ardo  <hakan@debian.org>
1222
1223         PR gas/2626
1224         * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
1225         to AVR_ISA_2xxe.
1226         (avr_operand): Disallow post-increment addressing in the lpm
1227         instruction for the attiny26.
1228
1229 2008-02-13  Jan Beulich  <jbeulich@novell.com>
1230
1231         * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
1232         if not in Intel mode.
1233         (i386_intel_operand): Ignore segment overrides in immediate and
1234         offset operands.
1235         (intel_e11): Range-check i.mem_operands before use as array
1236         index. Filter out FLAT for uses other than as segment override.
1237         (intel_get_token): Remove broken promotion of "FLAT:" to mean
1238         "offset FLAT:".
1239
1240 2008-02-13  Jan Beulich  <jbeulich@novell.com>
1241
1242         * config/tc-i386.c (intel_e09): Also special-case 'bound'.
1243
1244 2008-02-13  Jan Beulich  <jbeulich@novell.com>
1245
1246         * config/tc-i386.c (allow_pseudo_reg): New.
1247         (parse_real_register): Check for NULL just once. Allow all
1248         register table entries when allow_pseudo_reg is non-zero.
1249         Don't allow any registers without type when allow_pseudo_reg
1250         is zero.
1251         (tc_x86_regname_to_dw2regnum): Replace with ...
1252         (tc_x86_parse_to_dw2regnum): ... this.
1253         (tc_x86_frame_initial_instructions): Adjust for above change.
1254         * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
1255         (tc_parse_to_dw2regnum): New.
1256         (tc_x86_regname_to_dw2regnum): Replace with ...
1257         (tc_x86_parse_to_dw2regnum): ... this.
1258         * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
1259         (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
1260         error handling.
1261
1262 2008-02-12  Nick Clifton  <nickc@redhat.com>
1263
1264         * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
1265         argument.
1266         (tic4x_insn_add): Likewise.
1267         (md_begin): Drop cast that was discarding a const qualifier.
1268         * config/tc-d30v.c (get_reloc): Add const qualifier to op
1269         argument.
1270         (build_insn): Drop cast that was discarding a const qualifier.
1271
1272 2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>
1273
1274         * config/tc-i386.c (cpu_arch): Add .xsave.
1275         (md_show_usage): Add .xsave.
1276
1277         * doc/c-i386.texi: Add xsave to -march=.
1278
1279 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
1280
1281         * read.c (s_weakref): Don't pass unadorned NULL to concat.
1282         * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
1283
1284 2008-02-05  Sterling Augustine  <sterling@tensilica.com>
1285
1286         * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
1287         checks into assertions.  When relaxation produces an operation that
1288         does not fit in the current FLIX instruction, make sure that the
1289         operation is relaxed as needed to account for being placed following
1290         the current instruction.
1291
1292 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1293
1294         PR 5715
1295         * configure: Regenerated.
1296
1297 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
1298
1299         * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
1300
1301 2008-01-31  Marc Gauthier  <marc@tensilica.com>
1302
1303         * configure.tgt (xtensa*-*-*): Recognize processor variants.
1304
1305 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
1306
1307         * read.c: (emit_expr): Correct for mingw use of printf size
1308         specifier.
1309
1310 2008-01-24  Bob Wilson  <bob.wilson@acm.org>
1311
1312         * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
1313         can only be encoded in FLIX instructions but are not specified as such.
1314         (Xtensa Automatic Alignment): Remove obsolete comment about debugging
1315         labels.
1316
1317 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1318
1319         * NEWS: Mention new command line options for x86 targets.
1320
1321 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
1322
1323         * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
1324
1325 2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>
1326
1327         * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
1328
1329 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
1330
1331         * config/tc-i386.c (md_show_usage): Show more processors for
1332         -march=/-mtune=.
1333
1334 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         * config/tc-i386.c (i386_target_format): Remove cpummx2.
1337
1338 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
1339
1340         * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
1341         (XXX_MNEM_SUFFIX): Likewise.
1342         (END_OF_INSN): Likewise.
1343         (templates): Likewise.
1344         (modrm_byte): Likewise.
1345         (rex_byte): Likewise.
1346         (DREX_XXX): Likewise.
1347         (drex_byte): Likewise.
1348         (sib_byte): Likewise.
1349         (processor_type): Likewise.
1350         (arch_entry): Likewise.
1351         (cpu_sub_arch_name): Remove const.
1352         (cpu_arch): Add .vmx and .smx.
1353         (set_cpu_arch): Append cpu_sub_arch_name.
1354         (md_parse_option): Support -march=CPU[,+EXTENSION...].
1355         (md_show_usage): Updated.
1356
1357         * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
1358         (XXX_MNEM_SUFFIX): Likewise.
1359         (END_OF_INSN): Likewise.
1360         (templates): Likewise.
1361         (modrm_byte): Likewise.
1362         (rex_byte): Likewise.
1363         (DREX_XXX): Likewise.
1364         (drex_byte): Likewise.
1365         (sib_byte): Likewise.
1366         (processor_type): Likewise.
1367         (arch_entry): Likewise.
1368
1369         * doc/as.texinfo: Update i386 -march option.
1370
1371         * doc/c-i386.texi: Update -march= for ISA.
1372
1373 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
1374
1375         * config/tc-xtensa.c (xtensa_leb128): New function.
1376         (md_pseudo_table): Use it for sleb128 and uleb128.
1377         (is_leb128_expr): New internal flag.
1378         (xtensa_symbol_new_hook): Check new flag.
1379
1380 2008-01-16  Eric B. Weddington  <eric.weddington@atmel.com>
1381
1382         * config/tc-avr.c (mcu_types): Change opcode set for avr3,
1383         at90usb82, at90usb162.
1384         * doc/c-avr.texi: Change architecture grouping for at90usb82,
1385         at90usb162.
1386         These changes support the new avr35 architecture group in gcc.
1387
1388 2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1389
1390         * config/tc-i386.c (md_assemble): Also zap movzx and movsx
1391         suffix for AT&T syntax.
1392
1393 2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         * config/tc-i386.c (match_reg_size): New.
1396         (match_mem_size): Likewise.
1397         (operand_size_match): Likewise.
1398         (operand_type_match): Also clear all size fields.
1399         (match_template): Skip Intel syntax when in AT&T syntax.
1400         Call operand_size_match to check operand size.
1401         (i386_att_operand): Set the mem field to 1 for memory
1402         operand.
1403         (i386_intel_operand): Likewise.
1404
1405 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1406
1407         PR gas/5534
1408         * config/tc-i386.c (_i386_insn): Update comment.
1409         (operand_type_match): Also clear unspecified.
1410         (operand_type_register_match): Likewise.
1411         (parse_operands): Initialize unspecified.
1412         (i386_intel_operand): Likewise.
1413         (match_template): Check memory and accumulator operand size.
1414         (i386_att_operand): Clear unspecified on register operand.
1415         (intel_e11): Likewise.
1416         (intel_e09): Set operand size and clean unspecified for
1417         "XXX PTR".
1418
1419 2008-01-11  Andreas Schwab  <schwab@suse.de>
1420
1421         * read.c (s_space): Declare `repeat' as offsetT.
1422
1423 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1424
1425         * config/tc-i386.c (match_template): Check processor support
1426         first.
1427
1428 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1429
1430         * config/tc-i386.c (match_template): Continue if processor
1431         doesn't match.
1432
1433 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
1434
1435         * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
1436         unwind personality function address.
1437
1438 2008-01-09  Bob Wilson  <bob.wilson@acm.org>
1439
1440         * dwarf2dbg.c (out_sleb128): Delete.
1441         (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
1442         (out_fixed_inc_line_addr): Delete.
1443         (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
1444         size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
1445         (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
1446         (process_entries): Remove calls to out_fixed_inc_line_addr.  When
1447         DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
1448         * read.h (emit_expr_fix): New prototype.
1449         * read.c (emit_expr): Move code to emit_expr_fix and use it here.
1450         (emit_expr_fix): New.
1451
1452 2008-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1453
1454         * config/tc-i386.c (match_template): Check register size
1455         only when size of operands can be encoded the canonical way.
1456
1457 2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1458
1459         * config/tc-i386.c (i386_operand): Renamed to ...
1460         (i386_att_operand): This.
1461         (parse_operands): Updated.
1462
1463 2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>
1464
1465         * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
1466
1467         * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
1468         only.
1469         (md_assemble): Remove Intel mode workaround.
1470         (match_template): Check support for old gcc, AT&T mnemonic
1471         and Intel Syntax.
1472         (md_parse_option): Don't set intel_mnemonic to 0 for
1473         OPTION_MOLD_GCC.
1474
1475 2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1476
1477         * config/tc-i386.h: Update copyright to 2008.
1478
1479 2008-01-04  Nick Clifton  <nickc@redhat.com>
1480
1481         * config/tc-ppc.c (parse_cpu): Preserve the settings of the
1482         PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
1483
1484 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1485
1486         * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
1487         of SYSV386_COMPAT.
1488
1489 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1490
1491         * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
1492         (cpu_flags_not): Likewise.
1493         (cpu_flags_match): Updated to check 64bit and arch.
1494         (set_code_flag): Remove cpu_arch_flags_not.
1495         (set_16bit_gcc_code_flag): Likewise.
1496         (set_cpu_arch): Likewise.
1497         (md_begin): Likewise.
1498         (parse_insn): Call cpu_flags_match to check 64bit and arch.
1499         (match_template): Likewise.
1500
1501 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
1502
1503         * config/tc-i386.c (process_drex): Initialize modrm_reg and
1504         modrm_regmem to 0 instead of None.
1505
1506 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1507
1508         * config/tc-i386.c (match_template): Use the xmmword field
1509         instead of no_xsuf.
1510
1511 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
1512
1513         * config/tc-i386.c (process_suffix): Fix a typo.
1514
1515 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
1516
1517         PR gas/5534
1518         * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1519         Check memory size in Intel mode.
1520         (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1521         (intel_e09): Likewise.
1522
1523         * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1524
1525 2008-01-02  Catherine Moore  <clm@codesourcery.com>
1526
1527         * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1528
1529 For older changes see ChangeLog-2007
1530 \f
1531 Local Variables:
1532 mode: change-log
1533 left-margin: 8
1534 fill-column: 74
1535 version-control: never
1536 End: