* config/tc-ppc.c (md_apply_fix): For PPC_TOC16 on XCOFF, uses offset
[platform/upstream/binutils.git] / gas / ChangeLog
1 2007-11-07  Tristan Gingold  <gingold@adacore.com>
2
3         * config/tc-ppc.c (md_apply_fix): For PPC_TOC16 on XCOFF, uses offset
4         within the TOC instead of the VMA.
5
6 2007-11-06  Paul Brook  <paul@codesourcery.com>
7
8         * config/tc-arm.c (do_mull): Allow overlapping Rm for armv6.
9
10 2007-11-06  Nick Clifton  <nickc@redhat.com>
11
12         * ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke
13         it to see if the optimizations should be applied.
14         * config/tc-mn10300.h (md_allow_eh_opt): Define.  Only allow call
15         frame optimization if linker relaxation is not enabled.
16
17 2007-11-05  Danny Smith  <dannysmith@users.sourceforge.net>
18
19         * read.c (ALIGN_LIMIT): Rename to ...
20         (TC_ALIGN_LIMIT): Guard against prior definition.
21         * config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define.
22
23 2007-11-01  Sterling Augustine  <sterling@tensilica.com>
24
25         * config/tc-xtensa.c (xtensa_symbol_new_hook): New.
26         (xtensa_mark_difference_of_two_symbols): New.
27         (xtensa_post_relax_hook): Call xtensa_mark_difference_of_two_symbols.
28         * config/tc-xtensa.h (xtensa_symfield_type): Add next_expr_symbol.
29         (tc_symbol_new_hook): Define.
30
31 2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>
32
33         * config/tc-i386.c (md_assemble): Replace no_xsuf with
34         no_ldsuf.
35         (match_template): Likewise.
36
37 2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>
38
39         * config/tc-i386.h (LONG_DOUBLE_MNEM_SUFFIX): Use a non-ascii
40         letter.
41
42 2007-11-01  H.J. Lu  <hongjiu.lu@intel.com>
43
44         * config/tc-i386.c (process_suffix): Check addrprefixop0 to
45         see if the address size override prefix changes the size of the
46         first operand. 
47         (check_byte_reg): Don't warn if byteokintel is set.
48         (check_long_reg): Set i.suffix to QWORD_MNEM_SUFFIX if toqword
49         is set.
50         (check_qword_reg): Set i.suffix to LONG_MNEM_SUFFIX if todword
51         is set.
52
53 2007-10-31  Eric B. Weddington  <eweddington@cso.atmel.com>
54
55         * config/tc-avr.c (mcu_types): Remove devices that were never produced:
56         attiny10, atmega83, atmega85, atmega603.
57         * doc/c-avr.texi: Likewise.
58
59 2007-10-30  Nick Clifton  <nickc@redhat.com>
60
61         * config/tc-mn10300.c (tc_gen_reloc): Fix test that decides when
62         sym_diff relocs should be generated.
63         (md_apply_fix): Skip R_MN10300_ALIGN relocs.
64         (mn10300_fix_adjustable): Do not adjust R_MN10300_ALIGN relocs.
65         (mn10300_handle_align): New function.  Generate R_MN10300_ALIGN
66         relocs to record alignment requests.
67         * config/tc-mn10300.h (TC_FORCE_RELOCATION_SUB_SAME): Also force
68         R_MN10300_ALIGN relocs.
69         (HANDLE_ALIGN): Define.  Call mn10300_handle_align.
70
71 2007-10-30  Nick Clifton  <nickc@redhat.com>
72
73         * doc/as.texinfo (Section): Replace "subsegment" with
74         "subsection".
75
76 2007-10-27  H.J. Lu  <hongjiu.lu@intel.com>
77
78         PR gas/5221
79         * config/obj-elf.c (obj_elf_section): Handle optional
80         parameters for .pushsection.
81
82         * doc/as.texinfo: Document optional parameters for
83         .pushsection.
84
85 2007-10-24  H.J. Lu  <hongjiu.lu@intel.com>
86
87         * configure.in: Move AM_PROG_LIBTOOL after AC_GNU_SOURCE.
88         * configure: Regenerated.
89
90 2007-10-24  Alan Modra  <amodra@bigpond.net.au>
91
92         * Makefile.am (INCLUDES, DEP_INCLUDES): Remove -D_GNU_SOURCE.
93         Run "make dep-am".
94         * configure.in: Invoke AC_GNU_SOURCE.
95         * Makefile.in: Regenerate.
96         * config.in: Regenerate.
97         * configure: Regenerate.
98
99 2007-10-19  Nick Clifton  <nickc@redhat.com>
100
101         * expr.c (expr): Test md_allow_local_subtract (if defined) before
102         allowing the evaluation of an expression involving two symbols
103         defined in the same section.
104         * doc/internals.texi (md_allow_local_subtract): Document the new
105         macro.
106         * config/tc-mn10300.h (md_allow_local_subtract): Define.
107         (RELAX_EXPANSION_POSSIBLE): Define.
108         (MAX_RELOC_EXPANSION): Define.
109         (TC_FRAG_TYPE): Define.
110         * config/tc-mn10300.c (md_assemble): Mark fragments as containing code.
111         (tc_gen_reloc): Return an array of relocs.  If necessary generate
112         two relocs to handle an expressions involving the difference of
113         two symbols.
114         (mn10300_fix_adjustable): Do not test TC_FORCE_RELOCATION_LOCAL
115         when then fixup is not pc-relative.
116         (mn10300_allow_local_subtract): New function.  Determine when it
117         is safe to compute the difference between two symbols at assemble
118         time.
119
120 2007-10-19  Alan Modra  <amodra@bigpond.net.au>
121
122         * config/tc-ppc.c (ppc_parse_name): Skip leading '%'.
123         (md_assemble): When parsing PPC_OPERAND_CR, add '%' to set of
124         chars that can start a name.
125
126 2007-10-18  Carlos O'Donell  <carlos@systemhalted.org>
127
128         * config/tc-hppa.c (pa_ip): Fix comment typo.
129         (pa_comm): Likewise.
130
131 2007-10-18  Nick Clifton  <nickc@redhat.com>
132
133         PR gas/5172
134         * config/tc-arc.c (md_estimate_size_before_relax): Change error
135         message.
136         (md_convert_frag): Just call abort.
137         * config/tc-i860.c (md_estimate_size_before_relax): Change error
138         message.
139         * config/tc-i860.h (md_convert_frag): Just call abort.
140         * config/tc-ip2k.c (md_estimate_size_before_relax): Change error
141         message.
142         (md_convert_frag): Just call abort.
143         * config/tc-m68k.c (m68k_ip): Do not attempt translation of
144         architecture names.
145         PR gas/5174
146         * config/tc-arm.c: Fix formatting and spelling errors.
147         PR gas/5175
148         * config/tc-xc16x.c: Fix formatting and internationalization.
149         * po/gas.pot: Regenerate.
150
151 2007-10-17  Nick Clifton  <nickc@redhat.com>
152
153         PR gas/5173
154         * as.h (ieee_md_atof, vax_md_atof): New prototypes.
155         * read.c (s_float_space): Allow a zero length return from md_atof
156         if the error message has been set.
157         (float_cons): Likewise.
158         * config/atof-ieee.c (ieee_md_atof): New function.  Performs the
159         md_atof() function in a generic way for IEEE using targets.
160         * config/atof-vax.c (md_atof): Rename to vax_md_atof.  Use the
161         same error message as ieee_md_atof.
162         * tc-alpha.c (md_atof): Use ieee_md_atof.  Remove #define of vax_md_atof.
163         * tc-arc.c (md_atof): Use ieee_md_atof.
164         * tc-arm.c (md_atof): Use sizeof (LITTLENUM_TYPE) instead of the
165         constant 2.  Use a precision of 5 for the 'x' and 'p' types.
166         * tc-avr.c (md_atof): Use ieee_md_atof.
167         * tc-bfin.c (md_atof): Use ieee_md_atof.
168         * tc-cr16.c (md_atof): Use ieee_md_atof.
169         * tc-crx.c (md_atof): Use ieee_md_atof.
170         * tc-d10v.c (md_atof): Use ieee_md_atof.
171         * tc-d30v.c (md_atof): Use ieee_md_atof.
172         * tc-dlx.c (md_atof): Use ieee_md_atof.
173         * tc-fr30.c (md_atof): Use ieee_md_atof.
174         * tc-frv.c (md_atof): Use ieee_md_atof.
175         * tc-h8300.c (md_atof): Use ieee_md_atof.
176         * tc-hppa.c (md_atof): Use ieee_md_atof.
177         * tc-i370.c (md_atof): Use ieee_md_atof.
178         (i370_dc): Convert the 'E' type to 'f' before calling md_atof.
179         * tc-i386.c (md_atof): Use ieee_md_atof.
180         * tc-i860.c (md_atof): Use ieee_md_atof.
181         * tc-i960.c (md_atof): Use ieee_md_atof.
182         * tc-ia64.c (md_atof): Use the same error message as ieee_md_atof.
183         * tc-ip2k.c (md_atof): Use ieee_md_atof.
184         * tc-iq2000.c (md_atof): Use ieee_md_atof.
185         * tc-m32c.c (md_atof): Use ieee_md_atof.
186         * tc-m32r.c (md_atof): Use ieee_md_atof.
187         * tc-m68hc11.c (md_atof): Use ieee_md_atof.
188         * tc-m68k.c (md_atof): Use ieee_md_atof.
189         * tc-maxq.c (md_atof): Use ieee_md_atof.
190         * tc-mcore.c (md_atof): Use ieee_md_atof.
191         * tc-mep.c (md_atof): Use ieee_md_atof.
192         * tc-mips.c (md_atof): Use ieee_md_atof.
193         * tc-mmix.c (md_atof): Use ieee_md_atof.
194         * tc-mn10200.c (md_atof): Use ieee_md_atof.
195         * tc-mn10300.c (md_atof): Use ieee_md_atof.
196         * tc-msp430.c (md_atof): Use ieee_md_atof.
197         * tc-mt.c (md_atof): Use ieee_md_atof.
198         * tc-ns32k.c (md_atof): Use ieee_md_atof.
199         * tc-openrisc.c (md_atof): Use ieee_md_atof.
200         * tc-or32.c (md_atof): Use ieee_md_atof.
201         * tc-pdp11.c (md_atof): New function.  Call vax_md_atof.
202         * tc-pj.c (md_atof): Use ieee_md_atof.
203         * tc-ppc.c (md_atof): Use ieee_md_atof.
204         * tc-s390.c (md_atof): Use ieee_md_atof.
205         * tc-score.c (md_atof): Use ieee_md_atof.
206         * tc-sh.c (md_atof): Use ieee_md_atof.
207         * tc-sparc.c (md_atof): Use ieee_md_atof.
208         * tc-spu.c (md_atof): Use ieee_md_atof.
209         * tc-tic30.c (md_atof): Use the same error message as ieee_md_atof.
210         * tc-tic4x.c (md_atof): Use the same error message as ieee_md_atof.
211         * tc-tic54.c (md_atof): Use ieee_md_atof.
212         * tc-v850.c (md_atof): Use ieee_md_atof.
213         * tc-vax.c (md_atof): New function.  Call vax_md_atof.
214         * tc-xc16x.c (md_atof): Use ieee_md_atof.
215         * tc-xstormy16.c (md_atof): Use ieee_md_atof.
216         * tc-xtensa.c (md_atof): Use ieee_md_atof.
217         * tc-z8k.c (md_atof): Use ieee_md_atof.
218         * doc/internals.texi: Update description of md_atof function.
219         * po/gas.pot: Regenerate.
220
221 2007-10-16  Bob Wilson  <bob.wilson@acm.org>
222         
223         * doc/as.texinfo (Overview): Add Xtensa --rename-section option.
224         
225 2007-10-16  Nick Clifton  <nickc@redhat.com>
226
227         * config/obj-elf.c (obj_elf_type): Accept "common" as a valid
228         symbol type.
229         * doc/as.texinfo (.type): Document the types accepted by the
230         type pseudo op, including "common".
231
232 2007-10-15  Peter Bergner  <bergner@vnet.ibm.com>
233
234         * config/tc-ppc.c (ppc_setup_opcodes): Verify instructions are sorted
235         according to major opcode number.
236
237 2007-10-15  Alan Modra  <amodra@bigpond.net.au>
238
239         * read.c (do_s_func): Check asprintf return status.
240         * stabs.c (stabs_generate_asm_func): Likewise.
241         (stabs_generate_asm_endfunc): Likewise.
242
243 2007-10-12  H.J. Lu  <hongjiu.lu@intel.com>
244
245         * config/tc-i386.c (process_operands): Simplify implicit xmm0
246         handling.
247
248 2007-10-12  H.J. Lu  <hongjiu.lu@intel.com>
249
250         * config/tc-i386.c (process_operands): Check the firstxmm0
251         field in opcode_modifier for instruction with a implicit
252         xmm0 as the first operand.
253
254 2007-10-12  Eric B. Weddington  <eweddington@cso.atmel.com>
255
256         * config/tc-avr.c (mcu_types): Add new devices: AT90PWM2B,
257         AT90PWM3B.
258         * doc/c-avr.texi: Document new devices.
259
260 2007-10-12  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
261
262         * config/tc-cr16.c: Update the md_relax_table for 1 word b<cc>
263         instruction range information.
264
265 2007-10-12  Daniel Jacobowitz  <dan@codesourcery.com>
266
267         * doc/as.texinfo (Object Attributes): New chapter.
268         (Pseudo Ops): Document .gnu_attribute.
269         (LNS directives): Correct .loc_mark_labels documentation.
270
271 2007-10-11  Nick Clifton  <nickc@redhat.com>
272
273         * config/obj-elf.c (obj_elf_section): When pushing a section, if
274         there is a comma then the following argument must be a subsection
275         number.
276
277 2007-10-11  H.J. Lu  <hongjiu.lu@intel.com>
278
279         * doc/c-i386.texi: Update which instruction's operands are
280         swapped.
281
282 2007-10-11  Nick Clifton  <nickc@redhat.com>
283
284         PR gas/5161
285         * config/tc-ia64.c: Allow for translations of error and warning
286         messages.
287         * po/gas.pot: Regenerate.
288
289         PR gas/5158
290         * config/tc-h8300.c (tc_gen_reloc): Allow for translation of error
291         message.
292         * po/gas.pot: Regenerate.
293
294         PR gas/5155
295         * config/tc-msp430.c: Fix spelling typos.
296
297 2007-10-11  Nick Clifton  <nickc@redhat.com>
298
299         * doc/as.texinfo (Type): Fix typo: STT_FUNC not STT_FUNCTION.
300
301 2007-10-08  Maciej W. Rozycki  <macro@linux-mips.org>
302
303         * config/tc-mips.c (AT): Rename to...
304         (ATREG): ... this.
305         (AT): New definition.
306         (mips_set_options): Rename "noat" to "at"; change the type.
307         (mips_opts): Update accordingly.
308         (append_insn): Likewise.
309         (macro_build_ldst_constoffset): Likewise.
310         (load_address): Likewise.
311         (macro, macro2): Likewise.
312         (s_mipsset): Handle ".set at=REG".  Update handling of ".set at"
313         and ".set noat".
314
315 2007-10-08  Nick Clifton  <nickc@redhat.com>
316
317         * doc/as.texinfo (Previous): Clarify explanation of the behaviour
318         of this pseudo-op and add a couple of examples.
319
320 2007-10-08  Nick Clifton  <nickc@redhat.com>
321
322         PR gas/5121 gas/5122 gas/5123
323         * Makefile.am (CFILES): Add cgen.c
324         (TARGET_CPU_CFILES): Add tc-iq2000.c, tc-maxq.c, tc-mt.c,
325         tc-tic4x.c and xtensa-relax.c.
326         (TARGET_CPU_HFILES): Add tc-iq2000.h, tc-maxq.h, tc-mt.h,
327         tc-tic4x.h and xtensa-relax.h.
328         (TARG_ENV_HFILES): Remove te-aux.h, te-delta.h, te-delt88.h,
329         te-ic960.h, te-linux.h.  Add te-aix5.h, te-armeabi.h,
330         te-freebsd.h, te-gnu.h, te-interix.h, te-vxworks.h.
331         (CONFIG_ATOF_CFILES): New variable.
332         (POTFILES): Add CONFIG_ATOF_CFILES to dependencies.  Fix typo with
333         dependency upon TARG_ENV_HFILES.
334         (DEPTC): Do not put "#include opcodes/<foo>-desc.h" into
335         cgen-desc.h when foo-desc.h does not exit.
336         Run make dep-am.
337         * Makefile.in: Regenerate.
338         * doc/Makefile.in: Regenerate.
339         * po/POTFILES.in: Regenerate.
340         PR gas/5124 gas/5125
341         * po/es.po: Regenerate.
342         * po/fr.po: Regenerate.
343         * po/gas.pot: Regenerate.
344         * po/rw.po: Regenerate.
345         * po/tr.po: Regenerate.
346         * config/obj-elf.c (obj_elf_vtable_inherit): Allow for translation
347         of error messages.
348         PR gas/5126
349         * config/obj-som.c: Likewise.
350         PR gas/5129
351         * config/tc-arc.c: Likewise.
352         PR gas/5131 gas/5132
353         * config/tc-arm.c: Likewise.
354         PR gas/5137
355         * config/tc-bfin.c: Likewise.
356         PR gas/5143
357         * config/tc-frv.c: Likewise.
358         PR gas/5142
359         * config/tc-dlx.c: Likewise.
360
361 2007-10-08  Eric B. Weddington  <eweddington@cso.atmel.com>
362
363         * config/tc-avr.c (mcu_types): Add new devices: ATtiny43U,
364         ATtiny48, AT90PWM216, AT90PWM316.
365         * doc/c-avr.texi: Document new devices.
366
367 2007-10-08  Nick Clifton  <nickc@redhat.com>
368
369         PR gas/5133
370         * config/tc-arm.c (md_apply_fix): Correct error message.
371         PR gas/5134     
372         * config/tc-arm.c (md_apply_fix): Likewise.
373         PR gas/5136
374         * config/tc-bfin.c (md_apply_fix): Fix error message.
375         PR gas/5135
376         (Expr_Node_Gen_Reloc_R): Fix spelling typos in error messages.
377
378 2007-10-05  H.J. Lu  <hongjiu.lu@intel.com>
379
380         * config/tc-i386.c (build_modrm_byte): Check the first 2 8bit
381         immediate operands directly for instructions with 4 operands.
382
383 2007-10-04  H.J. Lu  <hongjiu.lu@intel.com>
384
385         PR gas/5109
386         * config/tc-i386.c (process_suffix): Clear QWORD suffix if it
387         is ignored in Intel mode.
388
389 2007-10-04  Helge Deller  <deller@gmx.de>
390
391         * read.c (potable): Add string8, string16, string32 and string64.
392         Add bit size for stringer function.
393         (stringer_append_char): New.
394         (stringer): Use stringer_append_char().
395         * config/obj-coff.c (obj_coff_ident): Add bit size for stringer function.
396         * config/obj-elf.c (obj_elf_ident): Likewise.
397         * config/tc-alpha.c (s_alpha_stringer): Likewise.
398         * config/tc-dlx.c (dlx_pseudo_table): Likewise.
399         * config/tc-hppa.c (pa_stringer): Likewise.
400         * config/tc-ia64.c (md_pseudo_table, pseudo_opcode): Likewise.
401         * config/tc-m68hc11.c (md_pseudo_table): Likewise.
402         * config/tc-mcore.c (md_pseudo_table): Likewise.
403         * config/tc-mips.c (mips_pseudo_table): Likewise.
404         * config/tc-spu.c (md_pseudo_table): Likewise.
405         * config/tc-s390.c (md_pseudo_table): Likewise. Replace '2' by '1'.
406         * doc/as.texinfo (ABORT): Fix identing.
407         (String): Document new string8, string16, string32, string64
408         functions.
409         * NEWS: Mention the new feature.
410
411 2007-10-03  Nick Clifton  <nickc@redhat.com>
412
413         PR gas/5078
414         * config/tc-avr.c (avr_get_constant): Extend error message to
415         mention that the constant must be positive.
416
417 2007-10-03  Nick Clifton  <nickc@redhat.com>
418
419         * config/tc-avr.c (avr_get_constant): 
420         PR gas/5089
421         * config/tc-arm.c (s_arm_unwind_handlerdata): Fix spelling typo.
422         PR gas/5090
423         (md_assemble): Fix spelling typo.
424
425 2007-10-03  Alan Modra  <amodra@bigpond.net.au>
426
427         PR 4303
428         * stabs.c (aout_process_stab): Set BSF_DEBUGGING.
429
430 2007-10-01  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
431
432         * config/tc-cr16.c: Replaced 'tabs' with white spaces and
433         added R_CR16_DISP8 as default reloc type for b<cc> instructions.
434
435 2007-09-30  H.J. Lu  <hongjiu.lu@intel.com>
436
437         PR gas/5080
438         * config/tc-i386.c (check_long_reg): Also handle cvttss2si.
439         (check_qword_reg): Also handle cvttsd2si.
440
441 2007-09-27  Kazu Hirata  <kazu@codesourcery.com>
442
443         * config/m68k-parse.h (m68k_register): Use MBO instead of MBB.
444         (last_movec_reg): Change to MBO.
445         * config/tc-m68k.c (fido_ctrl): Use MBO instead of MBB.
446         (m68k_ip): Use MBO instead of MBO.
447         (init_table): Use MBO instead of MBO.  Add an entry for mbo.
448
449 2007-09-26  Jan Beulich  <jbeulich@novell.com>
450
451         * config/tc-i386.c (build_modrm_byte): Also check for RegEip
452         when considering IP-relative addressing.
453
454 2007-09-26  Jan Beulich  <jbeulich@novell.com>
455
456         * config/tc-i386.h (md_register_arithmetic): Define.
457         * config/tc-ia64.h (md_register_arithmetic): Likewise.
458         * doc/internals.texi: Document md_register_arithmetic.
459         * expr.c (make_expr_symbol): Force O_register expressions into
460         reg_section.
461         (expr): Provide default for md_register_arithmetic. Don't resolve
462         adding/subtracting constants to/from registers if
463         md_register_arithmetic is zero.
464
465 2007-09-26  Jan Beulich  <jbeulich@novell.com>
466
467         * dw2gencfi.c: Conditionalize whole body upon TARGET_USE_CFIPOP.
468         (cfi_finish): Add second empty instance.
469
470 2007-09-26  Jan Beulich  <jbeulich@novell.com>
471
472         * config/tc-ia64.c (dot_pred_rel): Replace specialized handling
473         with simple call to parse_operand.
474
475 2007-09-26  Jan Beulich  <jbeulich@novell.com>
476
477         * config/tc-i386.c (NUM_FLAG_CODE): Remove.
478
479 2007-09-26  Jan Beulich  <jbeulich@novell.com>
480
481         * as.c (itbl_parse): Remove #define.
482         (struct itbl_file_list): Move down and ...
483         (itbl_files): .. conditionalize upon HAVE_ITBL_CPU.
484         (show_usage): Conditionalize printing of --itbl option upon
485         HAVE_ITBL_CPU.
486         (parse_args): Conditionalize handling of -t/--itbl options upon
487         HAVE_ITBL_CPU. Remove OPTION_INSTTBL and replace its use with
488         't'.
489
490 2007-09-25  H.J. Lu  <hongjiu.lu@intel.com>
491
492         * config/tc-i386.c (output_insn): Use i.tm.opcode_length to
493         check opcode length.
494
495 2007-09-25  Nathan Sidwell  <nathan@codesourcery.com>
496
497         * config/tc-m68k.c (LONG_BRANCH_VIA_COND): New.
498         (BRANCHBWPL, FRAG_VAR_SIZE): New.
499         (md_relax_table): Add BRANCHBWPL entries.
500         (m68k_ip): Choose BRANCHBWPL relaxation if necessary.
501         (md_assemble): Use FRAG_VAR_SIZE.
502         (md_convert_frag_1): Add BRANCHBWPL cases.
503         (md_estimate_size_before_relaz): Likewise.
504
505 2007-09-24  Carlos O'Donell  <carlos@codesourcery.com>
506
507         * config/tc-mips.c (s_align): Set max_alignment to 28.
508         
509 2007-09-20  H.J. Lu  <hongjiu.lu@intel.com>
510
511         PR 658
512         * config/tc-i386.c (SCALE1_WHEN_NO_INDEX): Removed.
513         (set_allow_index_reg): New.
514         (allow_index_reg): Likewise.
515         (md_pseudo_table): Add "allow_index_reg" and
516         "disallow_index_reg".
517         (build_modrm_byte): Set i.sib.index to NO_INDEX_REGISTER for
518         fake index registers.
519         (i386_scale): Updated.
520         (i386_index_check): Support fake index registers.
521         (parse_real_register): Return NULL on eiz/riz if fake index
522         registers aren't allowed.
523
524 2007-09-19  Nick Clifton  <nickc@redhat.com>
525
526         * config/tc-h8300.c (md_apply_fix): Do not abort or handle 8 byte
527         fixups.
528
529 2007-09-19  Bob Wilson  <bob.wilson@acm.org>
530
531         * doc/c-xtensa.texi (Xtensa Immediate Relaxation): Fix "addi" typo.
532
533 2007-09-18  Bernd Schmidt  <bernd.schmidt@analog.com>
534
535         * config/bfin-parse.y (asm_1): Slightly improve error messages
536         for "reg += const;".
537
538 2007-09-18  Alan Modra  <amodra@bigpond.net.au>
539
540         PR gas/5026
541         * read.c (emit_expr): Only use long long if required and available.
542
543 2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>
544
545         * config/tc-i386.c (baseindex): Removed.
546         (build_modrm_byte): Check reg_num for RIP register instead of
547         reg_type.
548         (i386_index_check): Likewise.
549
550 2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>
551
552         PR gas/5035
553         * config/obj-coff.c (obj_coff_endef): Remove checking size of
554         def_symbol_in_progress.
555
556 2007-09-17  Evandro Menezes  <evandro@yahoo.com>
557
558         PR gas/5026
559         * read.c (emit_expr): Use unsigned long long values in warning
560         message about truncated expressions.
561
562 2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>
563
564         * config/tc-i386.c (intel_e04): Revert the last change.
565
566 2007-09-17  Nick Clifton  <nickc@redhat.com>
567
568         * po/es.po: Updated Spanish translation.
569
570 2007-09-15  H.J. Lu  <hongjiu.lu@intel.com>
571
572         PR gas/5034
573         * config/tc-i386.c (intel_e04): Return 1 if cur_token.code is
574         T_NIL.
575
576 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
577
578         * config/tc-i386.c (build_modrm_byte): Adjust comment line
579         wrap.
580
581 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
582
583         * config/tc-i386.c (build_modrm_byte): Use (A || B) instead
584         of (A || B) != 0.
585
586 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
587
588         * config/tc-i386.c (build_modrm_byte): Adjust indentation.
589
590 2007-09-14  Michael Meissner  <michael.meissner@amd.com>
591             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
592             Tony Linthicum  <tony.linthicum@amd.com>
593
594         * NEWS: Add SSE5 support to NEWS file.
595         
596         * config/tc-i386.h (drex_byte): Add fields to allow process_drex
597         and build_modrm_byte to communicate.
598         (DREX_OC0): New SSE5 macro.
599         (DREX_OC0_MASK): Ditto.
600         (DREX_OC1): Ditto.
601         (DREX_OC1_MASK): Ditto.
602         (DREX_XMEM_X1_X2_X2): Ditto.
603         (DREX_X1_XMEM_X2_X2): Ditto.
604         (DREX_X1_XMEM_X2_X1: Ditto.
605         (DREX_X1_X2_XMEM_X1: Ditto.
606         (DREX_XMEM_X1_X2): Ditto.
607         (DREX_X1_XMEM_X2): Ditto.
608         (drex_byte): New structure to describe the DREX byte.
609
610         * config/tc-i386.c (process_drex): New function to handle SSE5
611         DREX bits.
612         (build_modrm_byte): Use the information cached away in
613         process_drex in the case of DREX instructions.
614         (i386_insn): Add drex field.
615         (pi): Add debugging of drex field.
616         (md_assemble): Treat SSE5 like SSE3 in instructions with an
617         immediate byte.  Move REX field to DREX if this is a DREX
618         instruction.
619         (process_operands): Add SSE5 support.
620         (build_modrm_byte): Ditto.
621         (output_insn): Ditto.
622         (cpu_arch): Ditto.
623         (i386_align_code): Ditto.
624
625 2007-09-12  Jan Beulich  <jbeulich@novell.com>
626
627         * config/tc-i386.c (md_assemble): Move handling of extrq/insertq
628         after generic operand swapping, and swap only the immediate operands.
629
630 2007-09-11  Nathan Sidwell  <nathan@codesourcery.com>
631
632         * config/tc-m68k.c (m68k_ip): Add mcfisa_c case.
633         (m68k_elf_final_processing): Add EF_M68K_CF_ISA_C_NODIV.
634
635 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
636
637         * tc-i386.c (output_insn): Only check SSE4.2 and ABM for 3
638         byte opcode.
639
640 2007-09-08  H.J. Lu  <hongjiu.lu@intel.com>
641
642         * config/tc-i386.c (cpu_flags_check_x64): Renamed to ...
643         (cpu_flags_check_cpu64): This. Inline.
644         (uints_all_zero): New.
645         (uints_set): Likewise
646         (uints_equal): Likewise
647         (UINTS_ALL_ZERO): Likewise
648         (UINTS_SET): Likewise
649         (UINTS_CLEAR): Likewise
650         (UINTS_EQUAL): Likewise
651         (cpu_flags_and): Likewise.
652         (cpu_flags_or): Likewise.
653         (operand_type_and): Likewise.
654         (operand_type_or): Likewise.
655         (operand_type_xor): Likewise.
656         (cpu_flags_not): Inline and use switch instead of loop.
657         (cpu_flags_match): Updated.
658         (operand_type_match): Likewise.
659         (smallest_imm_type): Likewise.
660         (set_cpu_arch): Likewise.
661         (pt): Likewise.
662         (md_assemble): Likewise.
663         (parse_insn): Likewise.
664         (optimize_imm): Likewise.
665         (match_template): Likewise.
666         (process_suffix): Likewise.
667         (update_imm): Likewise.
668         (finalize_imm): Likewise.
669         (process_operands): Likewise.
670         (build_modrm_byte): Likewise.
671         (i386_immediate): Likewise.
672         (i386_displacement): Likewise.
673         (i386_index_check): Likewise.
674         (i386_operand): Likewise.
675         (i386_target_format): Likewise.
676         (intel_e11): Likewise.
677         (operand_type): Remove implicitregister.
678         (operand_type_check): Updated. Inline.
679         (cpu_flags_all_zero): Removed.
680         (operand_type_all_zero): Likewise.
681         (i386_array_biop): Likewise.
682         (cpu_flags_biop): Likewise.
683         (operand_type_biop): Likewise.
684
685 2007-09-08  H.J. Lu  <hongjiu.lu@intel.com>
686
687         * Makefile.am: Run "make dep-am".
688         * Makefile.in: Regenerate.
689
690 2007-09-08  H.J. Lu  <hongjiu.lu@intel.com>
691
692         * configure.in (AC_CHECK_HEADERS): Add limits.h.
693         * configure: Regenerated.
694         * config.in: Likewise.
695
696         * config/tc-i386.c: Include "opcodes/i386-init.h".
697         (_i386_insn): Use i386_operand_type for types.
698         (cpu_arch_flags): Updated to new types with bitfield.
699         (cpu_arch_tune_flags): Likewise.
700         (cpu_arch_isa_flags): Likewise.
701         (cpu_arch): Likewise.
702         (i386_align_code): Likewise.
703         (set_code_flag): Likewise.
704         (set_16bit_gcc_code_flag): Likewise.
705         (set_cpu_arch): Likewise.
706         (md_assemble): Likewise.
707         (parse_insn): Likewise.
708         (process_operands): Likewise.
709         (output_branch): Likewise.
710         (output_jump): Likewise.
711         (parse_real_register): Likewise.
712         (mode_from_disp_size): Likewise.
713         (smallest_imm_type): Likewise.
714         (pi): Likewise.
715         (type_names): Likewise.
716         (pt): Likewise.
717         (pte): Likewise.
718         (swap_2_operands): Likewise.
719         (optimize_imm): Likewise.
720         (optimize_disp): Likewise.
721         (match_template): Likewise.
722         (check_string): Likewise.
723         (process_suffix): Likewise.
724         (check_byte_reg): Likewise.
725         (check_long_reg): Likewise.
726         (check_qword_reg): Likewise.
727         (check_word_reg): Likewise.
728         (finalize_imm): Likewise.
729         (build_modrm_byte): Likewise.
730         (output_insn): Likewise.
731         (disp_size): Likewise.
732         (imm_size): Likewise.
733         (output_disp): Likewise.
734         (output_imm): Likewise.
735         (gotrel): Likewise.
736         (i386_immediate): Likewise.
737         (i386_displacement): Likewise.
738         (i386_index_check): Likewise.
739         (i386_operand): Likewise.
740         (parse_real_register): Likewise.
741         (i386_intel_operand): Likewise.
742         (intel_e09): Likewise.
743         (intel_bracket_expr): Likewise.
744         (intel_e11): Likewise.
745         (cpu_arch_flags_not): New.
746         (cpu_flags_check_x64): Likewise.
747         (cpu_flags_all_zero): Likewise.
748         (cpu_flags_not): Likewise.
749         (i386_cpu_flags_biop): Likewise.
750         (cpu_flags_biop): Likewise.
751         (cpu_flags_match); Likewise.
752         (acc32): New.
753         (acc64): Likewise.
754         (control): Likewise.
755         (reg16_inoutportreg): Likewise.
756         (disp16): Likewise.
757         (disp32): Likewise.
758         (disp32s): Likewise.
759         (disp16_32): Likewise.
760         (anydisp): Likewise.
761         (baseindex): Likewise.
762         (regxmm): Likewise.
763         (imm8): Likewise.
764         (imm8s): Likewise.
765         (imm16): Likewise.
766         (imm32): Likewise.
767         (imm32s): Likewise.
768         (imm64): Likewise.
769         (imm16_32): Likewise.
770         (imm16_32s): Likewise.
771         (imm16_32_32s): Likewise.
772         (operand_type): Likewise.
773         (operand_type_check): Likewise.
774         (operand_type_match): Likewise.
775         (operand_type_register_match): Likewise.
776         (update_imm): Likewise.
777         (set_code_flag): Also update cpu_arch_flags_not.
778         (set_16bit_gcc_code_flag): Likewise.
779         (md_begin): Likewise.
780         (parse_insn): Use cpu_flags_check_x64 to check 64bit support.
781         Use cpu_flags_match to match instructions.
782         (i386_target_format): Update cpu_arch_isa_flags and
783         cpu_arch_tune_flags to i386_cpu_flags type with bitfield.
784         (smallest_imm_type): Check cpu_arch_tune to tune for i486.
785         (match_template): Don't initialize overlap0, overlap1,
786         overlap2, overlap3 and operand_types.
787         (process_suffix): Handle crc32 with 64bit register.
788         (MATCH): Removed.
789         (CONSISTENT_REGISTER_MATCH): Likewise.
790
791         * config/tc-i386.h (arch_entry): Updated to i386_cpu_flags
792         type.
793
794 2007-09-06  H.J. Lu  <hongjiu.lu@intel.com>
795
796         * config/tc-i386.c (match_template): Handle invlpga, vmload,
797         vmrun and vmsave in SVME.
798         (process_suffix): Likewise.
799
800 2007-09-05  H.J. Lu  <hongjiu.lu@intel.com>
801
802         * config/tc-i386.c (i386_index_check): Don't use RegRex
803         on the reg_type field.
804         (parse_real_register): Use `||' instead of `|'.
805
806 2007-09-04  H.J. Lu  <hongjiu.lu@intel.com>
807
808         * config/tc-i386.c (process_operands): Remove segment override
809         check on SVME instructions.
810         (i386_index_check): Remove memory operand check on SVME
811         instructions.
812
813 2007-09-04  Alan Modra  <amodra@bigpond.net.au>
814
815         * config/tc-spu.c (struct spu_insn): Delete "flag".  Add "reloc".
816         (md_assemble): Update init of insn.  Use insn.reloc instead of
817         calculating from flag.
818         (get_imm): Set reloc rather than flag.
819         (calcop): Formatting.
820
821 2007-08-29  Daniel Jacobowitz  <dan@codesourcery.com>
822
823         * dwarf2dbg.c (dwarf2_directive_loc): Emit duplicate .loc directives.
824
825 2007-08-28  Daniel Jacobowitz  <dan@codesourcery.com>
826
827         * doc/c-arc.texi: Fix typo.
828
829 2007-08-28  H.J. Lu  <hongjiu.lu@intel.com>
830
831         * config/tc-i386.c (process_suffix): Handle cmpxchg8b in
832         Intel mode.
833
834 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
835
836         * config/tc-m68k.c (mcf52235_ctrl): Add cache registers.
837         (mcf5253_ctrl): Add RAMBAR, MBAR, MBAR2.
838         (mcf5407_ctrl): New.
839         (m68k_cpus): Adjust 5407 entry.
840
841 2007-08-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
842
843         * config/tc-m68k.c (mcf51qe_ctrl): Define 51QE control registers.
844         (m68k_cpus): Define 51QE cpu.
845
846 2007-08-28  Mark Shinwell  <shinwell@codesourcery.com>
847             Joseph Myers  <joseph@codesourcery.com>
848
849         * as.c (main): Flush stderr before printing listings to ensure
850         consistent output order across platforms.
851
852 2007-08-28  Robert Sebastian Gerus  <arachnist@gmail.com>
853
854         * configure.tgt: Add support for i[3-7]86-*-dragonfly*.
855
856 2007-08-24  Joseph Myers  <joseph@codesourcery.com>
857             Paul Brook  <paul@codesourcery.com>
858
859         * remap.c: New.
860         * as.h (remap_debug_filename, add_debug_prefix_map): Declare.
861         * as.c (show_usage): Document --debug-prefix-map option.
862         (parse_args): Handle --debug-prefix-map.
863         * dwarf2dbg.c (out_file_list, out_debug_info): Remap debug paths.
864         * stabs.c (stabs_generate_asm_file): Remap debug paths.
865         * Makefile.am (GAS_CFILES): Add remap.c
866         (GENERIC_OBJS): Add remap.o.
867         Regenerate dependencies.
868         * Makefile.in: Regenerate.
869         * doc/as.texinfo (--debug-prefix-map): Document.
870
871 2007-08-24  Aurelien Jarno  <aurel32@debian.org>
872
873         * config/tc-arm.c (md_apply_fix): Cast bfd_vma values to long
874         before printing them.
875
876 2007-08-24  Anders Waldenborg  <anders@0x63.nu>
877             Alan Modra  <amodra@bigpond.net.au>
878
879         * config/tc-i386.c (lex_got): Don't scan past a comma.
880
881 2007-08-23  Ben Elliston  <bje@au.ibm.com>
882
883         * config/tc-ppc.c (parse_cpu): Handle "750cl".
884         (pre_defined_registers): Add "gqr0" to "gqr7", "gqr.0" to "gqr.7".
885         (md_show_usage): Document -m750cl.
886         (md_assemble): Handle two delimiters in succession (eg. `),').
887         * doc/c-ppc.texi (PowerPC-Opts): Document -m750cl.
888         * testsuite/gas/ppc/ppc.exp: Run ppc70ps dump tests.
889         * testsuite/gas/ppc/ppc750ps.s: New file.
890         * testsuite/gas/ppc/ppc750ps.d: Likewise.
891
892 2007-08-23  Ben Elliston  <bje@au.ibm.com>
893
894         * doc/c-arm.texi (ARM Directives): Move brackets out of @vars.
895
896 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
897
898         PR gas/4079
899         * config/tc-i386.c (x86_cons): Complain about invalid @got etc.
900         expressions.
901         (i386_immediate): Detect and complain about more cases of
902         invalid immediate expressions.  Return failure rather than
903         converting them to zero.
904         (i386_displacement): Likewise.
905
906 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
907
908         * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
909
910 2007-08-14  Andreas Schwab  <schwab@suse.de>
911
912         * config/tc-ia64.c (tc_gen_reloc): Return NULL if relocation is
913         unrepresentable.
914
915 2007-08-12  Matthias Klose  <doko@ubuntu.com>
916
917         * doc/Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Include
918         $(top_srcdir)/../../bfd/doc.
919         * doc/Makefile.in: Regenerate.
920
921 2007-08-10  Nick Clifton  <nickc@redhat.com>
922
923         * NEWS: Add a marker for the 2.18 features.
924
925 2007-08-09  Paul Brook  <paul@codesourcery.com>
926
927         * config/tc-arm.c (relaxed_symbol_addr): Compensate for alignment.
928
929 2007-08-09  H.J. Lu  <hongjiu.lu@intel.com>
930
931         * config/tc-i386.c (check_byte_reg): Support pextrb and pinsrb.
932
933 2007-07-29  H.J. Lu  <hongjiu.lu@intel.com>
934
935         * config/tc-i386.c (check_long_reg): Allow cvtss2si to convert
936         DWORD memory to Reg64 in Intel synax.
937         (check_qword_reg): Allow cvtsd2si to convert QWORD memory to
938         Reg32 in Intel syntax.
939
940 2007-07-25  Sterling Augustine  <sterling@tensilica.com>
941
942         * config/tc-xtensa.c (xtensa_extui_opcode): New.
943         (xg_expand_assembly_insn): Check for invalid extui operands.
944         (md_begin): Initialize xtensa_extui_opcode.
945
946 2007-07-24  Nick Clifton  <nickc@redhat.com>
947
948         * config/tc-mep.h (skip_whitespace): Remove definition.
949
950 2007-07-23  H.J. Lu  <hongjiu.lu@intel.com>
951
952         * config/tc-i386.c (cpu_arch): Change i386 to PROCESSOR_I386.
953         (f32_15): Removed.
954         (jump_31): New.
955         (f32_patt): Remove f32_15.
956         (f16_patt): Likewise.
957         (i386_align_code): Updated to alt_long_patt for 64bit by
958         default.
959
960         * config/tc-i386.h (processor_type): Add PROCESSOR_I386.
961
962 2007-07-23  Evandro Menezes  <evandro.menezes@amd.com>
963
964         * config/tc-i386.c (i386_align_code): Enable alignment up to
965         MAX_MEM_FOR_RS_ALIGN_CODE bytes.  Remove special treatment
966         for K8.
967
968         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Changed to 31.
969
970 2007-07-20  Nick Clifton  <nickc@redhat.com>
971
972         * app.c (do_scrub_chars): Provide a one character buffer to hold a
973         pushed back newline at the end of an unterminated quoted string.
974
975 2007-07-14  Nick Clifton  <nickc@redhat.com>
976
977         * config/tc-arm.c (create_register_alias): Return a boolean rather
978         than an integer.
979         Check the return value of insert_reg_alias and do not continue to
980         create aliases once an insertion has failed.
981         (s_unreq): Delete the all-upper-case and all-lower-case
982         alternatives as well.
983
984 2007-07-12  Kai Tietz   <kai.tietz@onevision.com>
985
986         * symbols.c: Print bfd_hostptr_t to file via fprintf_vma.
987         * write.c: Likewise.
988
989 2007-07-11  Daniel Jacobowitz  <dan@codesourcery.com>
990
991         * config/tc-mips.c (mips_dwarf2_format, mips_dwarf2_addr_size): Use
992         HAVE_64BIT_SYMBOLS.
993
994 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
995
996         * config/tc-mips.c (mips_cpu_info_table): Add new entries for
997         {24k,24ke,34k,74k}f{2_1,1_1,x}.  Also add an entry for 74kf3_2.
998         Deprecate *x and *fx.
999         * doc/c-mips.texi: Document the new CPU arguments.  Deprecate
1000         *x and *fx.
1001
1002 2007-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1003
1004         * config/obj-coff.h (x86_64_target_format): Renamed to ...
1005         (i386_target_format): This
1006         (TARGET_FORMAT): Use i386_target_format.
1007
1008         * config/tc-i386.c (x86_64_target_format): Removed.
1009         (i386_target_format): Handle PE formats.
1010
1011 2007-07-04  Nick Clifton  <nickc@redhat.com>
1012
1013         * symbols.c (symbol_relc_make_value): Use bfd_sprintf_vma in order
1014         to get the right length of printed value.
1015
1016 2007-07-03  Nick Clifton  <nickc@redhat.com>
1017
1018         * COPYING: Replace with GPLv3 text.
1019         * app.c: Update copyright notice to refer to GPLv3.
1020         * as.c, as.h, asintl.h, atof_generic.c, bignum.h, bit_fix.h,
1021         cgen.c, cond.c, debug.c, depend.c, dw2gencfi.c, dw2gencfi.h,
1022         dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c, emul.h,
1023         emul_target.h, expr.c, expr.h, flonum-copy.c, flonum.h,
1024         flonum-konst.c, frags.c, frags.h, hash.c, hash.h, input-file.c,
1025         input-file.h, input-scrub.c, ibtl-lex.h, itbl-lex.l, itbl-ops.c,
1026         itbl-ops.h, itbl-parse.y, listing.c, listing.h, literal.c,
1027         macro.c, messages.c, obj.h, output-file.c, output-file.h, read.c,
1028         read.h, sb.c, sb,h, stabs.c, struc-symbol.h, subsegs.c, subsegs.h,
1029         symbols.c, symbols.h, tc.h, write.c, write.h, config/aout_gnu.h,
1030         config/config/atof-ieee.c, config/atof-vax.c, config/bfin-aux.h, 
1031         config/bfin-defs.h, config/bfin-lex.l, config/bfin-parse.y,
1032         config/itbl-mips.h, config/m68k-parse.h, config/m68k-parse.y,
1033         config/obj-aout.c, config/obj-aout.h, config/obj-coff.c,
1034         config/obj-coff.h, config/obj-ecoff.c, config/obj-ecoff.h,
1035         config/obj-elf.c, config/obj-elf.h, config/obj-evax.c,
1036         config/obj-evax.h, config/obj-multi.h, config/obj-som.c,
1037         config/obj-som.h, config/tc-alpha.c, config/tc-alpha.h,
1038         config/tc-arc.c, config/tc-arc.h, config/tc-arm.c,
1039         config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
1040         config/tc-bfin.c, config/tc-bfin.h, config/tc-cr16.c,
1041         config/tc-cr16.h, config/tc-cris.c, config/tc-cris.h,
1042         config/tc-crx.c, config/tc-crx.h, config/tc-d10v.c,
1043         config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1044         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c,
1045         config/tc-fr30.h, config/tc-frv.c, config/tc-frv.h,
1046         config/tc-generic.c, config/tc-generic.h, config/tc-h8300.c,
1047         config/tc-h8300.h, config/tc-hppa.c, config/tc-hppa.h,
1048         config/tc-i370.c, config/tc-i370.h, config/tc-i386.c,
1049         config/tc-i386.h, config/tc-i860.c, config/tc-i860.h,
1050         config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c,
1051         config/tc-ia64.h, config/tc-ip2k.c, config/tc-ip2k.h,
1052         config/tc-iq2000.c, config/tc-iq2000.h, config/tc-m32c.c,
1053         config/tc-m32c.h, config/tc-m32r.c, config/tc-m32r.h,
1054         config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
1055         config/tc-m68k.h, config/tc-maxq.c, config/tc-maxq.h,
1056         config/tc-mcore.c, config/tc-mcore.h, config/tc-mep.c,
1057         config/tc-mep.h, config/tc-mips.c, config/tc-mips.h,
1058         config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
1059         config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
1060         config/tc-msp430.c, config/tc-msp430.h, config/tc-mt.c,
1061         config/tc-mt.h, config/tc-ns32k.c, config/tc-ms32k.h,
1062         config/tc-openrisc.c, config/tc-openrisc.h, config/tc-or32.c,
1063         config/tc-or32.h, config/tc-pdp11.c, config/tc-pdp11.h,
1064         config/tc-pj.c, config/tc-pj.h, config/tc-ppc.c, config/tc-ppc.h,
1065         config/tc-s390.c, config/tc-s390.h, config/tc-score.c,
1066         config/tc-score.h, config/tc-sh64.c, config/tc-sh64.h,
1067         config/tc-sh.c, config/tc-sh.h, config/tc-sparc.c,
1068         config/tc-sparc.h, config/tc-spu.c, config/tc-spu.h,
1069         config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
1070         config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
1071         config/tc-v850.c, config/tc-v850.h, config/tc-vax.c,
1072         config/tc-vax.h, config/tc-xc16x.c, config/tc-x16x.h,
1073         config/tc-xstormy16.c, config/tc-xstormy16.h, config/tc-xtensa.c,
1074         config/tc-xtensa.h, config/tc-z80.c, config/tc-z80.h,
1075         config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
1076         config/te-freebsd.h, config/te-hppa.h, config/te-irix.h,
1077         config/te-netware.h, config/te-sparcaout.h,  config/te-tmips.h,
1078         config/te-vxworks.h, config/vax-inst.h, config/xtensa-istack.h,
1079         config/xtensa-relax.c, config/xtensa-relax.h: Likewise.
1080         
1081         * flonum-mult.c: Likewise, and also correct typo referring to
1082         non-existant GNU Assembler General Public License.
1083         * config/tc-m68851.h: Likewise.
1084         * NEWS: Mention the new license.  Also note where the 2.17 release
1085         happened.
1086         * config/e-crisaout.c: Add copyright header.
1087         * config/e-criself.c, config/e-i386aout.c, config/e-i386coff.c,
1088         config/e-i386elf.c, config/e-mipscoff.c, config/e-mipself.c,
1089         config/obj-multi.c, config/te-aix5.h, config/te-armeabi.h,
1090         config/te-armlinuxeabi.h, config/te-dynix.h, config/te-epoc-pe.h,
1091         config/te-generic.h, config/te-gnu.h, config/te-go32.h,
1092         config/te-hppa64.h, config/te-hppalinux64.h, config/te-hpux.h,
1093         config/te-i386aix.h, config/te-ia64aix.h, config/te-interix.h,
1094         config/te-linux.h, config/te-lnews.h, config/te-lynx.h,
1095         config/te-mach.h, config/te-macos.h, config/te-nbsd532.h,
1096         config/te-nbsd.h, config/te-pc532mach.h, config/te-pe.h,
1097         config/te-pep.h, config/te-psos.h, config/te-riscix.h,
1098         config/te-sun3.h, config/te-svr4.h, config/te-symbian.h,
1099         config/te-wince-pe.h: Likewise.
1100
1101 2007-07-03  Nathan Sidwell  <nathan@codesourcery.com>
1102
1103         * config/tc-m68k.c (m68k_ip): Add j & K operand types.
1104         (install_operand): Add E encoding.
1105         (md_begin): Check and skip initial '.' arg character.
1106         (get_num): Add 0..511 case.
1107
1108 2007-07-03  Alan Modra  <amodra@bigpond.net.au>
1109
1110         PR 4713
1111         * config/obj-elf.c (elf_ecoff_set_ext): Make static when OBJ_MAYBE_ELF.
1112         * config/obj-elf.h (obj_ecoff_set_ext): Comment.
1113
1114 2007-07-03  Mikkel Lauritsen  <renard@nospam.dk>
1115
1116         PR 4722
1117         * app.c (do_scrub_chars <state 5>): Check for output buffer full
1118         after memcpy.
1119
1120 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
1121
1122         * config/tc-mips.c (s_dtprelword, s_dtpreldword,
1123         s_dtprel_internal): New.
1124         (mips_pseudo_table): Add .dtprelword and .dtpreldword.
1125         (md_apply_fix): Handle BFD_RELOC_MIPS_TLS_DTPREL32 and
1126         BFD_RELOC_MIPS_TLS_DTPREL64.
1127
1128 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
1129
1130         * Makefile.am: Run "make dep-am".
1131         * Makefile.in: Regenerate.
1132         * aclocal.m4: Regenerate.
1133         * config.in: Regenerate.
1134         * doc/Makefile.in: Regenerate.
1135         * po/POTFILES.in: Regenerate.
1136         * po/gas.pot: Regenerate.
1137
1138 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
1139
1140         * config/tc-ppc.c (ppc_pe_section): Comment out code assigning
1141         coff section flag values to bfd section flag.
1142
1143 2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1144
1145         * aclocal.m4: Regenerated.
1146         * doc/Makefile.in: Likewise.
1147         * Makefile.in: Likewise.
1148
1149 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
1150
1151         * as.c (main): Only call create_obj_attrs_section if IS_ELF.
1152
1153 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
1154
1155         * as.c (create_obj_attrs_section): New.
1156         (main): Call create_obj_attrs_section for ELF.
1157         * read.c (s_gnu_attribute, skip_whitespace, skip_past_char,
1158         skip_past_comma, s_vendor_attribute): New.
1159         (potable): Add gnu_attribute for ELF.
1160         * read.h (s_vendor_attribute): Declare.
1161         * config/tc-arm.c (s_arm_eabi_attribute): Replace by wrapper
1162         round s_vendor_attribute.
1163         (aeabi_set_public_attributes): Update for new attributes
1164         interfaces.
1165         (arm_md_end): Remove attributes contents setting now done
1166         generically.
1167
1168 2007-06-29  M R Swami Reddy  <MR.Swami.Redd@nsc.com>
1169
1170         * Makefile.am: Add CR16 related entry.
1171         * Makefile.in: Regenerate.
1172         * config/tc-cr16.h: New file
1173         * config/tc-cr16.c: New file
1174         * doc/c-cr16.texi: New file for cr16 
1175         * doc/all.texi: Entry for cr16 
1176         * doc/Makefile.am: Added c-cr16.texi
1177         * doc/Makefile.in: Regenerate 
1178         * doc/as.texinfo: Entry for CR16 target
1179         * NEWS: Announce the support for the new target.
1180
1181 2007-06-26  Paul Brook  <paul@codesourcery.com>
1182
1183         * config/tc-arm.c (parse_operands): Accept generic coprocessor regs
1184         for OP_RVC.
1185         (reg_names): Add fpinst, pfinst2, mvfr0 and mvfr1.
1186
1187 2007-06-25  H.J. Lu  <hongjiu.lu@intel.com>
1188
1189         * config/tc-i386.c (process_operands): Replace regKludge
1190         with RegKludge.
1191
1192 2007-06-25  Richard Sandiford  <richard@codesourcery.com>
1193
1194         * config/tc-mips.h (TC_SYMFIELD_TYPE): New.
1195         * config/tc-mips.c (append_insn): Record which symbols have
1196         R_MIPS16_26 relocations against them.
1197         (mips_fix_adjustable): Don't reduce relocations against such symbols.
1198
1199 2007-06-22  Sterling Augustine  <sterling@tensilica.com>
1200
1201         * config/tc-xtensa.c (xg_assembly_relax): Comment termination rules.
1202         (frag_format_size): Handle RELAX_IMMED_STEP3.
1203         (xtensa_relax_frag, md_convert_frag): Likewise.
1204         * config/tc-xtensa.h (xtensa_relax_statesE): Add RELAX_IMMED_STEP3.
1205         (RELAX_IMMED_MAXSTEPS): Adjust.
1206         * config/xtensa-relax.c (widen_spec_list): Add transitions from
1207         wide branches to branch-over-jumps.
1208         (build_transition): Handle wide branches in transition patterns.
1209         
1210 2007-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1211
1212         * config/tc-i386.c (disp_size): New.
1213         (imm_size): Likewise.
1214         (output_disp): Use disp_size and imm_size.
1215         (output_imm): Use imm_size.
1216
1217 2007-06-19  Sterling Augustine  <sterling@tensilica.com>
1218
1219         * config/tc-xtensa.h (struct xtensa_frag_type): Update comment about
1220         use of literal_frag field.
1221         * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Record frag
1222         in the literal_frag field.
1223         (xtensa_move_literals): Use it here instead of searching.  Update
1224         literal_frag field with new value.
1225
1226 2007-06-14  Paul Brook  <paul@codesourcery.com>
1227
1228         * config/tc-arm.c (do_t_mov_cmp): Handle shift by register and
1229         narrow shift by immediate.
1230
1231 2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
1232
1233         * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
1234
1235         * acinclude.m4: Don't include m4 files.
1236         (BFD_BINARY_FOPEN): Removed.
1237         Remove libtool kludge.
1238
1239         * Makefile.in: Regenerated.
1240         * doc/Makefile.in: Likewise.
1241         * aclocal.m4: Likewise.
1242         * configure: Likewise.
1243
1244 2007-06-11  Sterling Augustine  <sterling@tensilica.com>
1245             Bob Wilson  <bob.wilson@acm.org>
1246         
1247         * config/tc-xtensa.c (XTENSA_PROP_INSN_NO_TRANSFORM): Renamed to...
1248         (XTENSA_PROP_NO_TRANSFORM): ...this.
1249         (frag_flags_struct): Move is_no_transform out of the insn sub-struct.
1250         (xtensa_mark_frags_for_org): New.
1251         (xtensa_handle_align): Set RELAX_ORG frag subtype for rs_org.
1252         (xtensa_post_relax_hook): Call xtensa_mark_frags_for_org.
1253         (get_frag_property_flags): Adjust reference to is_no_transform flag.
1254         (xtensa_frag_flags_combinable): Likewise.
1255         (frag_flags_to_number): Likewise.  Use XTENSA_PROP_NO_TRANSFORM.
1256         * config/tc-xtensa.h (xtensa_relax_statesE): Add RELAX_ORG.
1257         
1258 2007-06-06  Paul Brook  <paul@codesourcery.com>
1259
1260         * config/tc-arm.c (s_align): Pad code sections appropriately.
1261
1262 2007-06-05  Paul Brook  <paul@codesourcery.com>
1263
1264         * config/tc-arm.c (insns): Correct Thumb-2 ldrd/strd opcodes.
1265
1266 2007-06-05  Nick Clifton  <nickc@redhat.com>
1267
1268         PR gas/4587
1269         * config/tc-sparc.c (sparc_ip): Terminate tls_ops array.
1270
1271 2007-06-05  Alan Modra  <amodra@bigpond.net.au>
1272
1273         * config/tc-spu.c (spu_cons): Use deferred_expression.  Handle
1274         number@ppu.
1275         (tc_gen_reloc): Abort if neither addsy or subsy is set.
1276         (md_apply_fix): Don't attempt to resolve SPU_PPU relocs.
1277         * config/tc-spu.h (md_operand): Handle @ppu without sym.
1278
1279 2007-05-31  Paul Brook  <paul@codesourcery.com>
1280
1281         * config/tc-arm.c (insns): Allow strex on M profile cores.
1282
1283 2007-05-29  David S. Miller  <davem@davemloft.net>
1284             Jakub Jelinek  <jakub@redhat.com>
1285
1286         PR gas/4558
1287         * config/tc-sparc.c (md_apply_fix): Fix relocation overflow checks
1288         for BFD_RELOC_SPARC_WDISP16 and BFD_RELOC_SPARC_WDISP19.
1289
1290 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
1291
1292         * config/tc-spu.h: Wrap in #ifndef/#endif.  Delete coff macros.
1293
1294 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
1295
1296         * config/tc-ppc.c: Convert to ISO C.
1297         * config/tc-ppc.c: Likewise.
1298
1299 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
1300
1301         * write.h (EXEC_MACHINE_TYPE): Delete.
1302         (string_byte_count, section_alignment): Delete.
1303
1304 2007-05-28  Nathan Sidwell  <nathan@codesourcery.com>
1305
1306         * app.c (do_scrub_chars): Cope with \ at end of buffer.
1307
1308 2007-05-26  Alan Modra  <amodra@bigpond.net.au>
1309
1310         * config/tc-ppc.c (ppc_insert_operand): Truncate sign bits in
1311         top 32 bits of 64 bit value if so doing results in passing
1312         range check.  Rewrite sign extension fudges similarly.  Enable
1313         fudges for powerpc64 too.  Report user value if range check
1314         fails rather than fudged value.  Negate PPC_OPERAND_NEGATIVE
1315         range rather than value, also to report user value on failure.
1316
1317 2007-03-25  Paul Brook  <paul@codesourcery.com>
1318
1319         * config/tc-arm.c (T2_SUBS_PC_LR): Define.
1320         (do_t_add_sub): Correctly encode subs pc, lr, #const.
1321         (do_t_mov_cmp): Correctly encode movs pc, lr.
1322
1323 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
1324
1325         * Makefile.in: Regnerate.
1326         * configure: Regenerate.
1327         * aclocal.m4: Regenerate.
1328         * doc/Makefile.in: Regenerate.
1329
1330 2007-05-22  Bob Wilson  <bob.wilson@acm.org>
1331         
1332         * doc/c-xtensa.texi (Xtensa Automatic Alignment): Remove statements
1333         and index entries about automatic alignment of ENTRY instructions.
1334         
1335 2007-05-22  Nick Clifton  <nickc@redhat.com>
1336
1337         * doc/as.texinfo: Use @copying around the copyright notice.
1338
1339 2007-05-18  Joseph Myers  <joseph@codesourcery.com>
1340
1341         * config/tc-mips.c (s_mipsset): Use generic s_set for directives
1342         containing a comma.
1343
1344 2007-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1345
1346         PR gas/4517
1347         2003-06-05  Michal Ludvig  <mludvig@suse.cz>
1348         * doc/as.texinfo: Document new directives: .cfi_restore, 
1349         .cfi_undefined, .cfi_same_value, .cfi_return_column, 
1350         .cfi_remember_state and .cfi_restore_state.
1351
1352 2007-05-17  Nathan Sidwell  <nathan@codesourcery.com>
1353
1354         * config/tc-m68k.c (md_apply_fix): Show value of out of range
1355         fixups in error message.
1356         (md_conver_frag_1): Propagate the fix source location and use
1357         as_bad_where rather than fatal, for better error messages.
1358
1359 2007-05-16  Paul Brook  <paul@codesourcery.com>
1360
1361         * config/tc-arm.c (v7m_psrs): Add uppercase PSR names and xpsr.
1362
1363 2007-05-15  Mark Shinwell  <shinwell@codesourcery.com>
1364
1365         * app.c (do_scrub_chars): Don't damage \@ pseudo-variables.
1366
1367 2007-05-15  Vincent Riviere  <vincent.riviere@freesbee.fr>      
1368
1369         PR gas/3041
1370         * config/tc-m68k.c (relaxable_symbol): Make sure that the correct
1371         addend is stored for relocs against weak symbols.
1372         (md_apply_fix): So not loose track of addend for relocs against
1373         weak symbols.
1374
1375 2007-05-14  Thiemo Seufer  <ths@mips.com>
1376
1377         * config/tc-mips.c (md_parse_option): Fix parsing of -O option.
1378
1379 2007-05-14  Mei Ligang  <ligang@sunnorth.com.cn>
1380
1381         * config/tc-score.c (data_op2, validate_immediate): Fix bug for
1382         addri, addri.c, subi, and subi.c when immediate number is hex.
1383         (score_insns): Remove subis and subis.c.
1384         (do_sub_rdi16): Delete.
1385         
1386 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
1387
1388         * config/tc-spu.c (md_pseudo_table): Add int, long, quad.  Call
1389         spu_cons for word.
1390         (md_assemble): Tidy use of insn.flag.
1391         (get_imm): Likewise.  Handle uppercase input too.
1392         (spu_cons): New function.
1393         * config/tc-spu.h (tc_fix_adjustable): Don't adjust SPU_PPU relocs.
1394         (TC_FORCE_RELOCATION): Don't resolve them either.
1395
1396 2007-05-05  Mark Shinwell  <shinwell@codesourcery.com>
1397  
1398         * config/tc-arm.c (md_apply_fix): Generate more accurate
1399         diagnostic when 8-bit immediate range is exceeded for
1400         BFD_RELOC_ARM_OFFSET_IMM8.
1401
1402 2007-05-04  Alan Modra  <amodra@bigpond.net.au>
1403
1404         PR gas/4460
1405         * config/tc-i386.c (lex_got): Don't replace the reloc token with
1406         a space if we already have a space.
1407
1408 2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         * config/tc-i386.c (match_template): Don't explicitly check
1411         suffix for crc32 in Intel mode.
1412         (process_suffix): Issue an error for crc32 if the operand size
1413         is ambiguous.
1414
1415 2007-05-03  Vincent Riviere  <vincent.riviere@freesbee.fr>
1416             Nick Clifton  <nickc@redhat.com>
1417
1418         PR gas/3041
1419         * config/tc-m68k.c (relaxable_symbol): Do not relax weak symbols.
1420         (tc_gen_reloc): Adjust the addend of relocs against weak symbols.
1421         (md_apply_fix): Put zero values into the frags referencing weak
1422         symbols.
1423
1424 2007-05-02  Alan Modra  <amodra@bigpond.net.au>
1425
1426         PR 4448
1427         * config/tc-ppc.c (ppc_insert_operand): Don't increase min for
1428         PPC_OPERAND_PLUS1.
1429
1430 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1431
1432         * config/tc-i386.c (match_template): Check suffix for crc32 in
1433         Intel mdoe.
1434         (process_suffix): Default the suffix of 8bit crc32 to
1435         BYTE_MNEM_SUFFIX.
1436         (check_byte_reg): Skip check for 8bit crc32.
1437
1438 2007-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1439
1440         * config/tc-i386.c (md_assemble): Use register_prefix in
1441         error/warning message.
1442         (check_byte_reg): Likewise.
1443         (check_long_reg): Likewise.
1444         (check_qword_reg): Likewise.
1445         (check_word_reg): Likewise.
1446         (process_operands): Likewise.
1447
1448 2007-04-30  Alan Modra  <amodra@bigpond.net.au>
1449
1450         PR 4436
1451         * config/tc-ppc.c (ppc_insert_operand): Disable range check if
1452         min > max.
1453
1454 2007-04-28  Thiemo Seufer  <ths@networkno.de>
1455
1456         * config/tc-mips.c: Fix comment.
1457
1458 2007-04-26  Anatoly Sokolov <aesok@post.ru>
1459
1460         * config/tc-avr.c (mcu_types): Add support for atmega8hva and
1461         atmega16hva devices. Move at90usb82 device to 'avr5' architecture.
1462         * doc/c-avr.texi: Document new devices.
1463
1464 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
1465
1466         * Makefile.am: Run "make dep-am".
1467         * Makefile.in: Regenerate.
1468
1469 2007-04-23  Nathan Sidwell  <nathan@codesourcery.com>
1470
1471         * config/tc-m68k.c (mcf54455_ctrl): New.
1472         (HAVE_LONG_DISP, HAVE_LONG_CALL, HAVE_LONG_COND): New.
1473         (m68k_archs): Add isac.
1474         (m68k_cpus): Add 54455 family.
1475         (m68k_ip): Split Bg into Bb, Bs, Bg.
1476         (m68k_elf_final_processing): Add ISA_C.
1477         * doc/c-m68k.texi (M680x0 Options): Add isac.
1478
1479 2007-04-22  Alan Modra  <amodra@bigpond.net.au>
1480
1481         * read.c (read_a_source_file): Skip multiple spaces to
1482         cover hack in mmix md_start_line_hook which overwrites a
1483         colon with a space.  Delete sermon and needless assertion.
1484
1485 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
1486
1487         * config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
1488         (md_atof): Make number_of_chars unsigned.  Revert last change.
1489         * config/tc-or32.c (md_apply_fix): Delete bogus assertions.
1490         * config/tc-sh.c (sh_optimize_expr): Only define for OBJ_ELF.
1491         * config/tc-sh.h (md_optimize_expr): Likewise.
1492         * config/tc-sh64.c (shmedia_md_pcrel_from_section): Delete bogus
1493         assertion.
1494         * config/tc-xtensa.c (convert_frag_immed_finish_loop): Likewise.
1495
1496 2007-04-21  Nick Clifton  <nickc@redhat.com>
1497
1498         * config/atof-vax.c (md_atof): Fix comparison inside know().
1499
1500         * config/tc-ia64.c (emit_one_bundle): Fix typo.
1501
1502 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
1503
1504         * expr.c (expr): Assert on rankarg, not rank which can be unsigned.
1505         * read.c (read_a_source_file): Remove buffer_limit[-1] assertion.
1506         Don't skip over NUL char.
1507         (pseudo_set): Set X_op for registers to O_register.
1508         * symbols.c (symbol_clone): Remove assertion that sym is defined.
1509         (resolve_symbol_value): Resolve O_register symbols.
1510         * config/tc-i386.c (parse_real_register): Don't use i386_float_regtab.
1511         Instead find st(0) by hash lookup.
1512         * config/tc-ppc.c (ppc_macro): Warning fix.
1513
1514         * as.h (ENABLE_CHECKING): Default define to 0.
1515         (know): Assert if ENABLE_CHECKING.
1516         (struct relax_type): Remove superfluous declaration.
1517         * configure.in (--enable-checking): New.
1518         * configure: Regenerate.
1519         * config.in: Regenerate.
1520         * config/tc-ppc.c (ppc_setup_opcodes): Do checks when ENABLE_CHECKING.
1521         Check for duplicate powerpc_operands entries.
1522
1523 2007-04-20  Nathan Sidwell  <nathan@codesourcery.com>
1524
1525         * config/tc-m68k.c (mcf5253_ctrl): New.
1526         (mcf52223_ctrl): New.
1527         (m68k_cpus): Add 5253, 52221, 52223.
1528
1529         * config/m68k-parse.h (RAMBAR_ALT): New.
1530         * config/tc-m68k.c (mcf5206_ctrl, mcf5307_ctrl): New.
1531         (mcf_ctrl, mcf5208_ctrl, mcf5210a_ctrl, mcf5213_ctrl, mcf52235_ctrl,
1532         mcf5225_ctrl, mcf5235_ctrl, mcf5271_ctrl, mcf5275_ctrl,
1533         mcf5282_ctrl, mcf5329_ctrl, mcf5373_ctrl, mcfv4e_ctrl,
1534         mcf5475_ctrl, mcf5485_ctrl): Add RAMBAR synonym for
1535         RAMBAR1.
1536         (mcf5272_ctrl): Add RAMBAR0, replace add RAMBAR with RAMBAR_ALT.
1537         (m68k_cpus): Adjust 5206, 5206e & 5307 entries.
1538         (m68k_ip) <Case J>: Detect when RAMBAR_ALT should be used.  Add it
1539         to control register mapping.
1540
1541 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
1542
1543         * messages.c (as_internal_value_out_of_range): Fix typo in
1544         error message.  Return after printing domain error.
1545         * config/tc-ppc.c (ppc_insert_operand): Preserve low zero bits
1546         in max when shifting right.
1547
1548 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
1549
1550         * messages.c (as_internal_value_out_of_range): Extend to report
1551         errors for values with invalid low bits set.
1552         * config/tc-ppc.c (ppc_setup_opcodes): Check powerpc_operands bitm
1553         fields.  Check that operands and opcode fields are disjoint.
1554         (ppc_insert_operand): Check operands using mask rather than bit
1555         count.   Check low bits too.  Handle PPC_OPERAND_PLUS1.  Adjust
1556         insertion code.
1557         (md_apply_fix): Adjust for struct powerpc_operand change.
1558
1559 2007-04-19  Paul Brook  <paul@codesourcery.com>
1560
1561         * config/tc-arm.c (md_assemble): Only allow 16-bit instructions on
1562         Thumb-1.  Add sanity check for bogus relaxations.
1563
1564 2007-04-19  Paul Brook  <paul@codesourcery.com>
1565
1566         * config/tc-arm.c (insns): Allow rsb and rsbs on Thumb-1.
1567
1568 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
1569
1570         * Makefile.am: Run "make dep-am".
1571         * Makefile.in: Regenerate.
1572
1573 2007-04-19  Nathan Froyd <froydnj@codesourcery.com>
1574
1575         * doc/c-ppc.texi (PowerPC-Opts): Document -me500, -me500x2, -mspe.
1576
1577 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
1578
1579         * doc/c-i386.texi; Document .ssse3, .sse4.1, .sse4.2 and .sse4.
1580
1581 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
1582
1583         * config/tc-i386.c (cpu_arch): Add .sse4.2 and .sse4.
1584         (match_template): Handle operand size for crc32 in SSE4.2.
1585         (process_suffix): Handle operand type for crc32 in SSE4.2.
1586         (output_insn): Support SSE4.2.
1587
1588 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
1589
1590         * config/tc-i386.c (cpu_arch): Add .sse4.1.
1591         (process_operands): Adjust implicit operand for blendvpd,
1592         blendvps and pblendvb in SSE4.1.
1593         (output_insn): Support SSE4.1.
1594
1595 2007-04-18  Paul Brook  <paul@codesourcery.com>
1596
1597         * config/tc-arm.c (do_t_rsb): Use 16-bit encoding when possible.
1598
1599 2007-04-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1600
1601         * config/tc-sh.c (sh_handle_align):  Call as_bad_where instead
1602         of as_warn_where for misaligned data.
1603
1604 2007-04-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1605
1606         * config/tc-sh.c (align_test_frag_offset_fixed_p): Handle
1607         rs_fill frags.
1608
1609 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1610
1611         * Makefile.am: Add ACLOCAL_AMFLAGS.
1612         * Makefile.in: Regenerate.
1613
1614 2007-04-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1615
1616         * config/tc-sh.c (align_test_frag_offset_fixed_p): New.
1617         (sh_optimize_expr): Likewise.
1618         * config/tc-sh.h (md_optimize_expr): Define.
1619         (sh_optimize_expr): Prototype.
1620
1621 2007-04-06  Matt Thomas  <matt@netbsd.org>
1622
1623         * config/tc-vax.c (vax_cons): Added to support %pcrel{8,16,32}(exp)
1624         to emit pcrel relocations by DWARF2 in non-code sections.  Borrowed
1625         heavily from tc-sparc.c.  (vax_cons_fix_new): Likewise.
1626
1627 2007-04-04  Kazu Hirata  <kazu@codesourcery.com>
1628
1629         * config/tc-m68k.c (HAVE_LONG_BRANCH): Add fido_a.
1630
1631 2007-04-04  Paul Brook  <paul@codesourcery.com>
1632
1633         * config/tc-arm.c (do_neon_ext): Enforce immediate range.
1634         (insns): Use I15 for vext.
1635
1636 2007-04-04  Paul Brook  <paul@codesourcery.com>
1637
1638         * configure.tgt: Loosen checks for arm uclinux eabi targets.
1639
1640 2007-04-02  Sterling Augustine  <sterling@tensilica.com>
1641
1642         * config/tc-xtensa.c (xtensa_flush_pending_output): Check
1643         outputting_stabs_line_debug.
1644
1645 2007-03-26  Anatoly Sokolov <aesok@post.ru>
1646
1647         * config/tc-avr.c (mcu_types): Add support for at90pwm1, at90usb82,
1648         at90usb162, atmega325p, atmega329p, atmega3250p and atmega3290p
1649         devices.
1650         * doc/c-avr.texi: Document new devices.
1651
1652 2007-04-02  Richard Sandiford  <richard@codesourcery.com>
1653
1654         * doc/as.texinfo: Add -mvxworks-pic to the list of MIPS options.
1655         * doc/c-mips.texi (-KPIC, -mvxworks-pic): Document.
1656         * config/tc-mips.c (md_show_usage): Mention -mvxworks-pic.
1657
1658 2007-03-30  Sterling Augustine  <sterling@tensilica.com>
1659             Bob Wilson  <bob.wilson@acm.org>
1660
1661         * config/tc-xtensa.c (xtensa_move_labels): Remove loops_ok argument.
1662         Do not check is_loop_target flag.
1663         (xtensa_frob_label): Adjust calls to xtensa_move_labels.
1664         (xg_assemble_vliw_tokens): Likewise.  Also avoid calling
1665         xtensa_move_labels for alignment of loop opcodes.
1666         
1667 2007-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1668
1669         * config/tc-i386.c (process_suffix): Reindent a bit.
1670
1671 2007-03-30  Paul Brook  <paul@codesourcery.com>
1672
1673         * config/tc-arm.c (encode_thumb2_ldmstm): New function.
1674         (do_t_ldmstm): Generate 16-bit push/pop.  Use encode_thumb2_ldmstm.
1675         (do_t_push_pop):  Use encode_thumb2_ldmstm.
1676
1677 2007-03-29  DJ Delorie  <dj@redhat.com>
1678
1679         * config/tc-m32c.c (rl_for, relaxable): Protect argument.
1680         (md_relax_table): Add entries for ADJNZ macros.
1681         (M32C_Macros): Add ADJNZ macros.
1682         (subtype_mappings): Add entries for ADJNZ macros.
1683         (insn_to_subtype): Check for adjnz and sbjnz insns.
1684         (md_estimate_size_before_relax): Pass insn to insn_to_subtype.
1685         (md_convert_frag): Convert adjnz and sbjnz.
1686
1687 2007-03-29  Nick Clifton  <nickc@redhat.com>
1688
1689         * itbl-ops.c (itbl_entry): Remove unnecessary and excessively long
1690         initialization.
1691         * itbl-ops.h (enum e_processor): Initialise the e_nprocs field
1692         using ITBL_NUMBER_OF_PROCESSORS.
1693         * itbl-parse.y (yyerror): Remove use of redundant macro PARAMS.
1694
1695 2007-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1696
1697         * config/tc-i386.c (build_modrm_byte): For instructions with 2
1698         register operands, encode destination in i.rm.regmem if its
1699         RegMem bit is set.
1700
1701 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
1702             Phil Edwards  <phil@codesourcery.com>
1703
1704         * doc/as.texinfo: Put the contents after the title page rather
1705         than at the end of the document.
1706
1707 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
1708
1709         * NEWS: Mention ".reloc".
1710
1711 2007-03-26  Sterling Augustine  <sterling@tensilica.com>
1712         
1713         * config/tc-xtensa.c (xg_translate_idioms): Allow assembly idioms
1714         in FLIX instructions.
1715         
1716 2007-03-26  Julian Brown  <julian@codesourcery.com>
1717
1718         * config/tc-arm.c (arm_it): Add immisfloat field.
1719         (parse_qfloat_immediate): Disallow integer syntax for floating-point
1720         immediates. Fix hex immediates, handle 0.0 and -0.0 specially.
1721         (parse_neon_mov): Set immisfloat bit for operand if it parsed as a
1722         float.
1723         (neon_cmode_for_move_imm): Reject non-float immediates for float
1724         operands.
1725         (neon_move_immediate): Pass immisfloat bit to neon_cmode_for_move_imm.
1726
1727 2007-03-26  Julian Brown  <julian@codesourcery.com>
1728
1729         * doc/c-arm.texi: Add documentation for .dn/.qn directives.
1730
1731 2007-03-26  Alan Modra  <amodra@bigpond.net.au>
1732
1733         * doc/as.texinfo (Reloc): Document.
1734         * read.c (potable): Add "reloc".
1735         (s_reloc): New function.
1736         * write.c (reloc_list): New global var.
1737         (resolve_reloc_expr_symbols): New function.
1738         (write_object_file): Call it.
1739         (write_relocs): Process reloc_list.
1740         * write.h (struct reloc_list): New.
1741         (reloc_list): Declare.
1742
1743 2007-03-24  Paul Brook  <paul@codesourcery.com>
1744
1745         * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
1746
1747 2007-03-24  Paul Brook  <paul@codesourcery.com>
1748         Mark Shinwell  <shinwell@codesourcery.com>
1749
1750         * config/tc-arm.c (operand_parse_code): Add OP_oRRw.
1751         (parse_operands): Don't expect comma if first operand missing.
1752         Handle OP_oRRw.
1753         (do_srs): Encode register number, checking it is r13.  Update comment.
1754         (insns): Update SRS entries to take a register.
1755
1756 2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1757
1758         * config/tc-i386.c (md_begin): Allow '.' in mnemonic.
1759
1760 2007-03-23  Mark Shinwell  <shinwell@codesourcery.com>
1761
1762         * config/tc-arm.c (md_apply_fix): Turn CBZ instructions that
1763         attempt to jump to the next instruction into NOPs.
1764
1765 2007-03-23  Alan Modra  <amodra@bigpond.net.au>
1766
1767         * config/tc-spu.c: Don't include opcode/spu.h.
1768         (md_assemble): Set tc_fix_data.insn_tag and arg_format.
1769         (md_apply_fix): Adjust.
1770         * config/tc-spu.h: Include opcode/spu.h.
1771         (struct tc_fix_info): New.
1772         (TC_FIX_TYPE, TC_INIT_FIX_DATA): Adjust.
1773         (TC_FORCE_RELOCATION): Define.
1774
1775 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
1776
1777         * doc/as.texinfo: Include VERSION_PACKAGE when reporting version.
1778
1779 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1780
1781         * config/tc-i386.c (process_suffix): Check 0x90 instead of
1782         xchg for xchg %rax,%rax.
1783
1784 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1785
1786         * config/tc-i386.c: Replace REX_MODE64, REX_EXTX, REX_EXTY
1787         and REX_EXTZ with REX_W, REX_R, REX_X and REX_B respectively.
1788
1789 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1790
1791         PR binutils/4218
1792         * config/tc-i386.c (match_template): Properly handle 64bit mode
1793         "xchg %eax, %eax".
1794
1795 2007-03-21  Anton Ertl  <anton@mips.complang.tuw>
1796
1797         PR gas/4124
1798         * config/tc-alpha.c (emit_ustX): Fix ustq code generation.
1799
1800 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1801
1802         * Makefile.am: Run dep-am.
1803         * Makefile.in: Regenerated.
1804
1805         * config/tc-i386.c: Don't include "opcodes/i386-opc.h".
1806
1807         * config/tc-i386.h: Include "opcodes/i386-opc.h".
1808         (NOP_OPCODE): Removed.
1809         (template): Likewise.
1810
1811 2007-03-21  Andreas Schwab  <schwab@suse.de>
1812
1813         * config/tc-i386.h (NOP_OPCODE): Restore.
1814
1815 2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
1816
1817         * config/tc-arm.c (do_mul): Don't warn about overlapping
1818         Rd and Rm operands when assembling for v6 or above.
1819         Correctly capitalize register names in the messages.
1820         (do_mlas): Likewise.  Delete spurious blank line.
1821
1822 2007-03-16  Kazu Hirata  <kazu@codesourcery.com>
1823
1824         * config/tc-m68k.c (m68k_cpus): Add an entry for fidoa.
1825
1826 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1827
1828         * config/tc-i386.c (md_begin): Use i386_regtab_size to scan 
1829         i386_regtab.
1830         (parse_register): Use i386_regtab_size instead of ARRAY_SIZE
1831         on i386_regtab.
1832
1833 2007-03-15  Alexandre Oliva  <aoliva@redhat.com>
1834
1835         PR gas/4184
1836         * app.c (do_scrub_chars): PUT after setting states.
1837
1838 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1839
1840         * Makefile.am: Run "make dep-am".
1841         * Makefile.in: Regenerated.
1842
1843         * config/tc-i386.c: Include "opcodes/i386-opc.h" instead of
1844         "opcode/i386.h".
1845         (md_begin): Check reg_name != NULL for the last entry in
1846         i386_regtab.
1847
1848         * config/tc-i386.h: Move many entries to opcode/i386.h and
1849         opcodes/i386-opc.h.
1850
1851         * configure.in (need_opcodes): Set true for i386.
1852         * configure: Regenerated.
1853
1854 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
1855
1856         * Makefile.am (REPORT_BUGS_TO): Removed.
1857         (INCLUDES): Remove -DREPORT_BUGS_TO.
1858         * Makefile.in: Regenerated.
1859
1860         * configure.in (--with-bugurl): Removed.
1861         * configure: Regenerated.
1862
1863         * doc/Makefile.am (as_TEXINFOS): Remove gasver.texi.
1864         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
1865         (TEXI2DVI): Likewise.
1866         (gasver.texi): Removed.
1867         (MOSTLYCLEANFILES): Remove gasver.texi.
1868         (as.1): Don't depend on gasver.texi.
1869         * doc/Makefile.in: Regenerated.
1870
1871         * doc/as.texi: Include bfdver.texi instead of gasver.texi.
1872
1873 2007-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
1874
1875         * config/tc-arm.c (arm_copy_symbol_attributes): New.
1876         * config/tc-arm.h (arm_copy_symbol_attributes): Declare.
1877         (TC_COPY_SYMBOL_ATTRIBUTES): Define.
1878         * gas/symbols.c (copy_symbol_attributes): Use
1879         TC_COPY_SYMBOL_ATTRIBUTES.
1880
1881 2007-03-14  Paul Brook  <paul@codesourcery.com>
1882
1883         * config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
1884
1885 2007-03-14  Alan Modra  <amodra@bigpond.net.au>
1886
1887         PR 4029
1888         * write.c (relax_segment): Insert extra alignment padding
1889         to break infinite relax loop when given impossible
1890         gcc_except_table assembly.
1891
1892 2007-03-12  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         * config/tc-i386.c (md_assemble): Use Opcode_XXX instead of XXX
1895         on i.tm.base_opcode.
1896         (match_template): Likewise.
1897         (process_operands): Use ~0x3 mask to match MOV_AX_DISP32.
1898
1899         * config/tc-i386.h (Opcode_D): New.
1900         (Opcode_FloatR): Likewise.
1901         (Opcode_FloatD): Likewise.
1902         (D): Redefined.
1903         (W): Likewise.
1904         (FloatMF): Likewise.
1905         (FloatR): Likewise.
1906         (FloatD): Likewise.
1907
1908 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1909
1910         * app.c (do_scrub_chars): Recognize comments after # line "file".
1911         * read.c (get_linefile_number): New.
1912         (s_app_line): Accept ill-formed .linefile lines as comments.
1913
1914 2007-03-09  Alan Modra  <amodra@bigpond.net.au>
1915
1916         * config/tc-i386.h (WORKING_DOT_WORD): Define.
1917
1918 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1919
1920         * app.c (do_scrub_chars): Turn #<line>"file"flags into .linefile.
1921         * as.h (new_logical_line_flags): New.
1922         * input-scrub.c (new_logical_line): Turned into wrapper for...
1923         (new_logical_line_flags): this.  Handle flags.
1924         * read.c (potable): Add linefile.  Adjust appline argument.
1925         (s_app_file): Fake .appfiles no more.
1926         (s_app_line): For .linefile, accept file name and flags.
1927
1928 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
1929
1930         * symbols.c (symbol_relc_make_sym): Comment typo fixes.
1931
1932 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
1933
1934         * Makefile.am: Run "make dep-am".
1935         * Makefile.in: Regenerate.
1936         * po/POTFILES.in: Regenerate.
1937
1938 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
1941         bug-reporting URL.
1942         * doc/Makefile.am (gasver.texi): Define BUGURL.
1943         * doc/as.texinfo: Use BUGURL.
1944         * Makefile.in, configure, doc/Makefile.in: Regenerate.
1945
1946 2007-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1947
1948         * config/tc-s390.c (md_parse_option): z9-ec option added.
1949
1950 2007-03-02  Paul Brook  <paul@codesourcery.com>
1951
1952         * config/tc-arm.c (relax_immediate): Always return positive values.
1953         (relaxed_symbol_addr): New function.
1954         (relax_adr, relax_branch): Use it.
1955         (arm_relax_frag): Pass strect argument.  Adjust infinite loop check.
1956
1957 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
1958
1959         * as.c (parse_args): Update copyright date.
1960
1961 2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
1962
1963         * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
1964
1965 2007-02-28  Nick Clifton  <nickc@redhat.com>
1966
1967         PR gas/3797
1968         * config/tc-d10v.c (do_assemble): Do not generate error messages,
1969         just return -1 whenever a problem is encountered.
1970         (md_assemble): If do_assemble returns -1 generate a non-fatal
1971         error message and return.
1972
1973         PR gas/2623
1974         * config/tc-msp430.c (line_separator_char): Change to '{'.
1975
1976 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
1977
1978         * config/tc-m68hc11.c (fixup24): Correct fixup size.
1979         (build_jump_insn): Likewise.
1980         (build_insn): Likewise.
1981         (s_m68hc11_relax): Likewise.
1982
1983 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
1984
1985         * config/obj-elf.c (elf_frob_file): frag_wane any new frags.
1986
1987 2007-02-25  Mark Shinwell  <shinwell@codesourcery.com>
1988
1989         * config/tc-arm.c (do_vfp_nsyn_pop): Use fldmias/fldmiad.
1990
1991 2007-02-23  Alan Modra  <amodra@bigpond.net.au>
1992
1993         * config/tc-mn10300.c (md_convert_frag): Correct fixup size.
1994         (md_assemble): Likewise.
1995
1996 2007-02-22  Alan Modra  <amodra@bigpond.net.au>
1997
1998         * write.c (size_seg): Always clear SEC_RELOC here.
1999         (install_reloc): New function, extracted from..
2000         (write_relocs): ..here.  Combine RELOC_EXPANSION_POSSIBLE code
2001         with !RELOC_EXPANSION_POSSIBLE code.  Don't add fr_offset when
2002         testing frag size.  Set SEC_RELOC here.
2003
2004 2007-02-21  Alan Modra  <amodra@bigpond.net.au>
2005
2006         PR 4082
2007         * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
2008
2009 2007-02-20  Thiemo Seufer  <ths@mips.com>
2010
2011         * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
2012
2013 2007-02-20  Thiemo Seufer  <ths@mips.com>
2014
2015         * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
2016
2017 2007-02-20  Thiemo Seufer  <ths@mips.com>
2018             Chao-Ying Fu  <fu@mips.com>
2019
2020         * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
2021         ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
2022         (macro_build): Add case '2'.
2023         (macro): Expand M_BALIGN to nop, packrl.ph or balign.
2024         (validate_mips_insn): Add support for balign instruction.
2025         (mips_ip): Handle DSP R2 instructions. Support balign instruction.
2026         (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
2027         md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
2028         command line options.
2029         (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
2030         (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
2031         * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
2032         .set dspr2, .set nodspr2.
2033
2034 2007-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2035
2036         * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
2037         (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
2038
2039 2007-02-18  Alan Modra  <amodra@bigpond.net.au>
2040
2041         * write.c (TC_FX_SIZE_SLACK): Define.
2042         (write_relocs): Reinstate check for fixup within frag.
2043         * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
2044         * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
2045         * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
2046         * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
2047         * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
2048
2049 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
2050             Nathan Sidwell  <nathan@codesourcery.com>
2051             Vladimir Prus  <vladimir@codesourcery.com
2052             Joseph Myers  <joseph@codesourcery.com>
2053
2054         * configure.in (--with-bugurl): New option.
2055         * configure: Regenerate.
2056         * dep-in.sed: Remove bin-bugs.h.
2057         * Makefile.am (REPORT_BUGS_TO): Define.
2058         (INCLUDES): Define REPORT_BUGS_TO.
2059         (DEP_INCLUDES): Likewise.
2060         ($(OBJS)): No longer depend on bin-bugs.h.
2061         * Makefile.in: Regenerate.
2062         * doc/Makefile.in: Regenerate.
2063         * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
2064         * as.h: Remove include of bin-bugs.h.
2065
2066 2007-02-17  Alan Modra  <amodra@bigpond.net.au>
2067
2068         * write.c: White space fixes.
2069         (fixup_segment): Move symbol_mri_common_p adjustments..
2070         (write_relocs): ..and symbol_equated_reloc_p adjustments..
2071         (adjust_reloc_syms): ..to here.
2072
2073 2007-02-16  Alan Modra  <amodra@bigpond.net.au>
2074
2075         * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
2076         xmalloc, memset.  Don't bother assigning NULL to known zero mem.
2077         (subseg_set_rest): Remove unnecessary cast.
2078         * write.c: Include libbfd.h.  Replace PTR with void * throughout.
2079         Remove unnecessary forward declarations and casts.
2080         (set_symtab): Delete extern bfd_alloc.
2081         (fixup_segment): Move.
2082
2083 2007-02-15  Nathan Sidwell  <nathan@codesourcery.com>
2084
2085         * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
2086         * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
2087         (mcf5475_ctrl, mcf5485_ctrl): New.
2088         (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
2089         (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
2090         (init_table): Add asid, mmubar, adjust rombar0.
2091
2092 2007-02-14  Alan Modra  <amodra@bigpond.net.au>
2093
2094         * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
2095         * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
2096         (process_operands): Move old Seg2ShortForm and Seg3ShortForm
2097         code, and test for these insns using a combination of
2098         opcode_modifier and operand_types.
2099
2100 2007-02-07  Paul Brook  <paul@codesourcery.com>
2101
2102         * configure.tgt: Add arm*-*-uclinux-*eabi.
2103
2104 2007-02-05  Dave Brolley  <brolley@redhat.com>
2105             Richard Sandiford  <rsandifo@redhat.com>
2106             DJ Delorie  <dj@redhat.com>
2107             Stan Cox  <scox@redhat.com>
2108             Jim Blandy  <jimb@redhat.com>
2109             Nick Clifton  <nickc@redhat.com>
2110             Jim Wilson  <wilson@redhat.com>
2111             Frank Ch. Eigler  <fche@redhat.com>
2112             Graydon Hoare  <graydon@redhat.com>
2113             Ben Elliston  <bje@redhat.com>
2114             John Healy  <jhealy@redhat.com>
2115             Richard Henderson  <rth@redhat.com>
2116
2117         * Makefile.am (CPU_TYPES): Add mep.
2118         (TARGET_CPU_CFILES): Add tc-mep.c.
2119         (TARGET_CPU_HFILES): Add tc-mep.h.
2120         (DEPTC_mep_elf): New variable.
2121         (DEPTC_mep_coff): Likewise.
2122         (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
2123         * configure.in: Support mep.
2124         * configure.tgt: Likewise.
2125         * config/tc-mep.c: New file.
2126         * config/obj-elf.c: New file.
2127         * config/tc-mep.c: New file.
2128         * config/tc-mep.h: New file.
2129         * testsuite/gas/mep: New testsuite with content.
2130         * Makefile.in: Regenerate.
2131         * configure: Regenerate.
2132
2133 2007-02-05  Dave Brolley  <brolley@redhat.com>
2134
2135         * cgen.c (gas_cgen_install_complex_reloc): Removed.
2136         (complex_reloc_installation_howto): Removed.
2137
2138 2007-02-05  Dave Brolley  <brolley@redhat.com>
2139             Graydon Hoare  <graydon@redhat.com>
2140             DJ Delorie  <dj@redhat.com>
2141             Catherine Moore  <clm@redhat.com>
2142             Michael Chastain  <chastain@redhat.com>
2143             Frank Ch. Eigler  <fche@redhat.com>
2144
2145         * symbols.c (use_complex_relocs_for): New, to decide
2146         when to use complex relocs. Add signed RELC support.
2147         (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
2148         encode expression symbols as mangled complex relocation symbols (when
2149         compiled with -DOBJ_COMPLEX_RELOC).
2150         (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
2151         * cgen.c (gas_cgen_md_apply_fix3):  Only set signed_p if RELC. Call
2152         encode_addend with new args. Modify to get start, length from
2153         ifield whenever it is set. Also change condition on which
2154         self-describing relocs are encoded. Add hook into
2155         gas_cgen_encode_addend.
2156         (queue_fixup_recursively): Add signed RELC support. Change from masked
2157         expr to trunc flag. Restore assignment of sub-field value to
2158         temporary in fixups array. Reflect changed meaning of last arg to
2159         queue_fixup_recursively.
2160         (fixup): Add cgen_maybe_multi_ifield member.
2161         (make_right_shifted_expr): New function.
2162         (queue_fixup): Change to recursive function that fragments
2163         fixups if operand has a multi-ifield.
2164         (gas_cgen_parse_operand): Add RELC code to wrap expressions in
2165         symbols, call weak_operand_overflow_check, and fragment call
2166         queue_fixup with operand fields.
2167         (gas_cgen_finish_insn) Modify to manage ifield pointer.
2168         (weak_operand_overflow_check): New function to try to select
2169         insns correctly.
2170         (gas_cgen_encode_addend): New function for relc.
2171         (gas_cgen_install_complex_reloc): Likewise.
2172         (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
2173         * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
2174         cgen_maybe_multi_ifield field to fx_cgen substructure.
2175         * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
2176         * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
2177         
2178 2007-02-03  DJ Delorie  <dj@delorie.com>
2179
2180         * config/tc-m32c.c (m32c_cons_fix_new): New.  Added to support 3
2181         byte relocs.
2182         * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
2183         (m32c_cons_fix_new): Prototype.
2184
2185 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
2186         
2187         * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
2188         (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
2189         
2190 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
2191
2192         * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
2193         (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
2194         (map_suffix_reloc_to_operator): New.
2195         (map_operator_to_reloc): New.
2196         (expression_maybe_register): Fix incorrect test of return value from
2197         xtensa_elf_suffix.  Rearrange to use map_suffix_reloc_to_operator.
2198         (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
2199
2200 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
2201
2202         * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
2203         (tinsn_get_tok): Delete prototype.
2204         * config/tc-xtensa.c (tinsn_get_tok): Delete.
2205         
2206 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
2207
2208         * config/xtensa-relax.h (struct build_instr): Delete id field.
2209         * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
2210         and LABEL tokens.
2211         (append_literal_op, append_label_op): Remove litnum/labnum arguments;
2212         set op_data fields to zero.
2213         (parse_id_constant): Delete.
2214         (build_transition): Remove code to handle numbered literals and labels.
2215
2216 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
2217
2218         * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
2219         (build_transition_table): Likewise.
2220
2221 2007-02-01  Bob Wilson  <bob.wilson@acm.org>
2222
2223         * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
2224         fx_tcbit.
2225         * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
2226
2227 2007-02-02  Alan Modra  <amodra@bigpond.net.au>
2228
2229         * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
2230         (struct fix <fx_plt>): Rename to tcbit2.
2231         * write.c (fix_new_internal): Adjust.
2232         (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
2233         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2234         * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2235         * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2236         * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2237         * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2238         * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2239         * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
2240         * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
2241         * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
2242         * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
2243         Instead, compare fx_r_type.
2244         * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
2245         fx_tcbit in place of fx_plt.
2246         * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
2247         * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
2248         to fx_plt.
2249
2250 2007-01-30  Nick Clifton  <nickc@redhat.com>
2251
2252         * as.c (main): Mark symbols created via the --defsym command line
2253         option as volatile so that they can be overridden later on by a
2254         .set directive.  This maintains compatibility with the behaviour
2255         of earlier versions of the assembler.
2256         * doc/as.texinfo (--defsym): Document that the defined symbol's
2257         value can be overridden via a .set directive.
2258
2259 2007-01-28  H.J. Lu  <hongjiu.lu@intel.com>
2260
2261         * config/tc-i386.c (swap_imm_operands): Renamed to ...
2262         (swap_2_operands): This.  Take 2 ints.
2263         (md_assemble): Updated.
2264         (swap_operands): Call swap_2_operands to swap 2 operands.
2265
2266 2007-01-24  DJ Delorie  <dj@redhat.com>
2267
2268         * config/tc-m32c.c (md_pseudo_table): Add .3byte.
2269
2270 2007-01-22  Nick Clifton  <nickc@redhat.com>
2271
2272         PR gas/3871
2273         * tc-score.c: Remove unnecessary uses of _().
2274         Make the err_msg[] a file level local array in order to save
2275         storage space.
2276         Remove unnecessary sprintf()s.
2277
2278 2007-01-18  Mei Ligang  <ligang@sunnorth.com.cn>
2279
2280         PR gas/3871
2281         * config/tc-score.c : Using _() for const string.
2282         Do not assign inst.error with a local string pointer.
2283         (md_section_align): Pad section.
2284         
2285 2007-01-13  H.J. Lu  <hongjiu.lu@intel.com>
2286
2287         * config/tc-i386.c (build_modrm_byte): Check number of operands
2288         when procssing memory/register operand.
2289
2290 2007-01-12  Nick Clifton  <nickc@redhat.com>
2291
2292         PR gas/3856
2293         * macro.c (expand_irp): Do not ignore spaces inside quoted
2294         strings.
2295
2296 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
2297
2298         * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
2299         * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
2300         * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
2301         (TC_FORCE_RELOCATION): Define.
2302         (TC_FORCE_RELOCATION_LOCAL): Define.
2303         * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
2304
2305 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
2306
2307         * input-file.c (input_file_open): Check fgets return.
2308
2309 2007-01-11  Paul Brook  <paul@codesourcery.com>
2310
2311         * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
2312
2313 2007-01-11  Nick Clifton  <nickc@redhat.com>
2314
2315         PR gas/3707
2316         * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
2317         variable.
2318
2319         * config/tc-mcore.c (md_number_to_chars): Use
2320         number_to_chars_{big|little}endian.
2321
2322 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
2323
2324         * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
2325         architecture by itself.
2326         (m68k_ip): Don't issue a warning for tbl instructions on fido.
2327         (m68k_elf_final_processing): Treat Fido as an architecture by
2328         itself.
2329
2330 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
2331
2332         * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
2333
2334 2007-01-05  H.J. Lu  <hongjiu.lu@intel.com>
2335
2336         * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
2337         depending on allow_naked_reg.
2338
2339 2007-01-04  Paul Brook  <paul@codesourcery.com>
2340
2341         * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
2342
2343 2007-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2344
2345         PR gas/3830
2346         * config/tc-i386.c (register_prefix): New.
2347         (set_intel_syntax): Set set_intel_syntax to "" if register
2348         prefix isn't needed.
2349         (check_byte_reg): Use register_prefix for error message.
2350         (check_long_reg): Likewise.
2351         (check_qword_reg): Likewise.
2352         (check_word_reg): Likewise.
2353
2354 2007-01-04  Julian Brown  <julian@codesourcery.com>
2355
2356         * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
2357         (do_neon_qshl_imm): Likewise.
2358         (do_neon_rshl): New function. Handle rounding variants of
2359         v{q}shl-by-register.
2360         (insns): Use do_neon_rshl for vrshl, vqrshl.
2361
2362 2007-01-04  Paul Brook  <paul@codesourcery.com>
2363
2364         * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
2365         and vacle.
2366
2367 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2368
2369         * config/tc-i386.c (swap_operands): Remove branches.
2370
2371 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2372
2373         * config/tc-i386.c: Update copyright year.
2374         * config/tc-i386.h: Likewise.
2375
2376 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2377
2378         * config/tc-i386.c (smallest_imm_type): Return unsigned int
2379         instead of int.
2380
2381 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2382
2383         * config/tc-i386.c: Convert to ISO C90 formatting
2384         * config/tc-i386.h: Likewise.
2385
2386 2007-01-03  David Daney  <ddaney@avtrex.com>
2387
2388         * config/tc-mips.c (md_show_usage):  Clean up -mno-shared
2389         documentation.
2390
2391 For older changes see ChangeLog-2006
2392 \f
2393 Local Variables:
2394 mode: change-log
2395 left-margin: 8
2396 fill-column: 74
2397 version-control: never
2398 End: