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