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