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