366981c57b8123782946d65786c058bf1c49e368
[platform/upstream/binutils.git] / gas / ChangeLog
1 2005-07-26  Jan Beulich  <jbeulich@novell.com>
2
3         * config/tc-i386.c (optimize_imm): Calculate candidate immediates
4         mask from guessed suffix, but mask out other immediate types only
5         if at least on candidate is valid for the insn.
6
7 2005-07-25  DJ Delorie  <dj@redhat.com>
8
9         * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
10         Support %mod() modifiers from opcodes.
11         * doc/c-m32c.texi (M32C-Modifiers): New section.
12
13 2005-07-25  Jan Hubicka  <jh@suse.cz>
14             H.J. Lu  <hongjiu.lu@intel.com>
15
16         * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
17         defined.
18         (elf_com_section_ptr): New.
19         (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
20         (elf_common_parse): Make it global. Use elf_com_section_ptr
21         instead of bfd_com_section_ptr.
22         (obj_elf_change_section): Handle x86-64 large bss sections.
23
24         * config/obj-elf.h (elf_com_section_ptr): New.
25         (elf_common_parse): New.
26
27         * config/tc-i386.c (handle_large_common): New.
28         (md_pseudo_table): Add "largecomm".
29         (x86_64_section_letter): New.
30         (x86_64_section_word): New.
31
32         * config/tc-i386.h (x86_64_section_word): New.
33         (x86_64_section_letter): New.
34         (md_elf_section_letter): New. Defined.
35         (md_elf_section_word): Likewise.
36
37 2005-07-21  Ralf Corsepius  <ralf.corsepius@rtems.org>
38
39         * configure.tgt: Remove i386-*-rtemself*.
40         Remove sparc-*-rtemself*.
41
42 2005-07-21  Ben Elliston  <bje@gnu.org>
43
44         * config/tc-m68k.h: Remove TE_LYNX conditional code.
45
46 2005-07-21  Paul Brook  <paul@codesourcery.com>
47
48         * config/tc-arm.c (encode_thumb32_addr_mode): Don't set
49         inst.reloc.pc_rel.
50
51 2005-07-20  Tavis Ormandy <taviso@gentoo.org>
52
53         * messages.c: Use vsnprintf instead of vsprintf.
54
55 2005-07-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
56
57         * config/tc-m32r.c (tc_gen_reloc): Check BFD_RELOC_32_PCREL and
58         BFD_RELOC_16_PCREL to Support R_M32R_REL32.
59
60 2005-07-18  Nick Clifton  <nickc@redhat.com>
61
62         * configure.tgt: Restore alpha ordering to list of arches.
63
64 2005-07-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
65
66         * tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
67
68 2005-07-18  Jan Beulich  <jbeulich@novell.com>
69
70         * config/tc-i386.c (md_begin): Use IS_ELF.
71         (tc_i386_fix_adjustable): Likewise.
72         (md_estimate_size_before_relax): Likewise.
73         (md_apply_fix): Likewise.
74         (i386_target_format): Likewise.
75         (lex_got): Define to NULL when not ELF or when LEX_AT. Check IS_ELF.
76         (i386_immediate): Remove #ifdef LEX_AT.
77         (i386_displacement): Likewise.
78         * config/tc-i386.h (x86_cons): Prototype only when ELF and when not
79         LEX_AT.
80
81 2005-07-18  Jan Beulich  <jbeulich@novell.com>
82
83         * config/tc-i386.c (reloc): Convert to ISO C90. Change first
84         parameter to unsigned. Parameter sign now is tristate - zero/
85         positive mean unsigned/signed, negative means signedness doesn't
86         matter. Check field size,
87         signedness, and pcrel-ness are in agreement between relocated field
88         and relocation type. Adjust diagnostics.
89         (optimize_imm): And type mask of operand instead of overwriting it.
90         (lex_got): Convert to ISO C90. Add third parameter. Add new field to
91         local structure and initialize gotrel accordingly. Pass caller as
92         mask of types that the operator can match.
93         (x86_cons_fix_new): Let reloc know that signedness of relocation
94         doesn't matter.
95         (x86_pe_cons_fix_new): Likewise.
96         (x86_cons): Pass additional argument to lex_got.
97         (i386_immediate): New local variable 'types'. Pass its address as
98         additional argument to lex_got. Mask out operand types not supported
99         befoe returning.
100         (i386_displacement): Likewise. Set bigdisp to all types supported in
101         64-bit mode, combining the previously split initialization.
102
103 2005-07-18  Jan Beulich  <jbeulich@novell.com>
104
105         * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
106         current mode.
107
108 2005-07-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
109
110         * config/tc-hppa.c (pa_ip): Search entire mnemonic before considering
111         promoted match.
112
113 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
114
115         * Makefile.am: Run "make dep-am".
116         * Makefile.in: Regenerate.
117
118 2007-07-15  H.J. Lu <hongjiu.lu@intel.com>
119
120         * gas/config/tc-i386.h (CpuVMX): New.
121         (CpuUnknownFlags): Add CpuVMX.
122
123 2005-07-14  Jim Blandy  <jimb@redhat.com>
124
125         Add support for the Renesas M32C.
126         * Makefile.am (CPU_TYPES): List m32c.
127         (TARGET_CPU_CFILES): List config/tc-m32c.c.
128         (TARGET_CPU_HFILES): List config/tc-m32c.h.
129         * configure.in: Add case for m32c.
130         * configure.tgt: Add cases for m32c and m32c-*-elf.
131         * configure: Regenerated.
132         * config/tc-m32c.c, config/tc-m32c.h: New files.
133         * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
134         * doc/Makefile.in: Regenerated.
135         * doc/all.texi: Set M32C.
136         * doc/as.texinfo: Add text for the M32C-specific options and line
137         comment characters, and refer to c-m32c.texi.
138         * doc/c-m32c.texi: New file.
139         
140 2005-07-14  Nick Clifton  <nickc@redhat.com>
141
142         PR 1069
143         * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
144         the ins_parse buffer.
145
146 2005-07-10  Ralf Corsepius <ralf.corsepius@rtems.org>
147
148         * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
149         i386-*-rtemscoff*, sparc-*-rtemsaout*.
150
151 2005-07-10  H.J. Lu  <hongjiu.lu@intel.com>
152
153         * config/tc-i386.c (optimize_disp): Optimize signed 32bit
154         displacements.
155
156 2005-07-08  Ben Elliston  <bje@au.ibm.com>
157
158         * frags.h: Remove ANSI_PROTOTYPES conditional code.
159         * config/obj-elf.h: Likewise.
160         * config/tc-h8300.h: Likewise.
161         * config/tc-h8500.h: Likewise.
162         * config/tc-i370.h: Likewise.
163         * config/tc-i386.h: Likewise.
164         * config/tc-m68hc11.h: Likewise.
165         * config/tc-m68k.h: Likewise.
166         * config/tc-ppc.h: Likewise.
167         * config/tc-s390.h: Likewise.
168         * config/tc-sh.h: Likewise.
169         * config/tc-sparc.h: Likewise.
170         * config/tc-tic30.c: Likewise.
171         * config/tc-w65.h: Likewise.
172         * config/tc-xtensa.h: Likewise.
173
174 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
175
176         PR gas/1049
177         * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
178
179 2005-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
180
181         * config/tc-tic30.c (debug): Add format attribute.  Fix format
182         bugs.
183
184 2005-07-06  H.J. Lu  <hongjiu.lu@intel.com>
185
186         * config/tc-i386.c (cpu_arch): Add sse3.
187
188         * config/tc-i386.h (CpuSSE3): Renamed from ...
189         (CpuPNI): This. Defined as CpuSSE3.
190
191         * doc/c-i386.texi: Document .sse3.
192
193 2005-07-06  Jan Beulich  <jbeulich@novell.com>
194
195         * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
196
197 2005-07-05  Nick Clifton  <nickc@redhat.com>
198
199         * config/tc-pdp11.c (md_apply_fix): Cast first argument to
200         md_chars_to_numbers to an unsigned pointer in order to avoid a
201         compile time warning.
202
203 2005-07-05  Paul Brook  <paul@codesourcery.com>
204
205         * config/tc-ppc.c (ppc_target_format): Add VxWorks.
206
207 2005-07-05  Aldy Hernandez  <aldyh@redhat.com>
208
209         * config/tc-ms1.c: New.
210         * config/tc-ms1.h: New.
211         * testsuite/gas/ms1/allinsn.d: New.
212         * testsuite/gas/ms1/allinsn.s: New.
213         * testsuite/gas/ms1/badinsn.s: New.
214         * testsuite/gas/ms1/badinsn1.s: New.
215         * testsuite/gas/ms1/badoffsethigh.s: New.
216         * testsuite/gas/ms1/badoffsetlow.s: New.
217         * testsuite/gas/ms1/badorder.s: New.
218         * testsuite/gas/ms1/badreg.s: New.
219         * testsuite/gas/ms1/badsignedimmhigh.s: New.
220         * testsuite/gas/ms1/badsignedimmlow.s: New.
221         * testsuite/gas/ms1/badsyntax.s: New.
222         * testsuite/gas/ms1/badsyntax1.s: New.
223         * testsuite/gas/ms1/badunsignedimmhigh.s: New.
224         * testsuite/gas/ms1/badunsignedimmlow.s: New.
225         * testsuite/gas/ms1/errors.exp: New.
226         * testsuite/gas/ms1/ldst.s: New.
227         * testsuite/gas/ms1/misc.d: New.
228         * testsuite/gas/ms1/misc.s: New.
229         * testsuite/gas/ms1/ms1-16-003.d: New.
230         * testsuite/gas/ms1/ms1-16-003.s: New.
231         * testsuite/gas/ms1/ms1.exp: New.
232         * testsuite/gas/ms1/msys.d: New.
233         * testsuite/gas/ms1/msys.s: New.
234         * testsuite/gas/ms1/relocs.d: New.
235         * testsuite/gas/ms1/relocs.exp: New.
236         * testsuite/gas/ms1/relocs1.s: New.
237         * testsuite/gas/ms1/relocs2.s: New.
238
239 2005-07-05  Jan Beulich  <jbeulich@novell.com>
240
241         * config/tc-i386.h (CpuSVME): New.
242         (CpuUnknownFlags): Include CpuSVME.
243         * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
244         as alias of sledgehammer.
245         (md_assemble): Include invlpga in the check for insns with two source
246         operands.
247         (process_operands): Include SVME insns in the check for ignored
248         segment overrides. Adjust diagnostic.
249         (i386_index_check): Special-case SVME insns with memory operands.
250
251 2005-07-04  Khem Raj  <kraj@mvista.com>
252             Nick Clifton  <nickc@redhat.com>
253
254         * tc-arm.c (struct arm_it): Make operands.imm signed to match its
255         use an immediate value.
256         (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
257         since the register field of the operands structure is unsigned.
258         (s_arm_unwind_save_vfp): Make "reg" unsigned.
259         (parse_operands): Make the 2ns parameter an unsigned pointer to
260         match its use.
261         (do_ldrd): When using the imm field of the operands structure as a
262         second register field, treat it as unsigned.
263
264 2005-07-04  Alan Modra  <amodra@bigpond.net.au>
265
266         PR 1004
267         * config/obj-elf.c (obj_elf_change_section): Use backend
268         get_sec_type_attr.
269
270 2005-07-01  Jan Beulich  <jbeulich@novell.com>
271
272         * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
273         (output_spill_psprel, output_spill_psprel_p): Combine.
274         (output_spill_sprel, output_spill_sprel_p): Combine.
275         (output_spill_reg, output_spill_regp_p): Combine.
276         (process_one_record): Handle psp_psprel.
277         (parse_predicate_and_operand): New.
278         (convert_expr_to_ab_reg): Two new parameters. Return void. Always
279         initialize output values. Emit diagnostic case here.
280         (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
281         (add_unwind_entry): New second parameter. Allow first parameter to
282         be NULL. Parse optional tag, emit warning about further support for
283         it otherwise being missing. Check end-of-line when requested.
284         (dot_fframe): Clear operand when wrong. Allow tag.
285         (dot_vframe): Likewise.
286         (dot_vframesp): Likewise. Rename parameter, issue warning when psp
287         relative.
288         (dot_vframepsp): Remove.
289         (dot_altrp): Clear operand when wrong. Allow tag.
290         (dot_save): Likewise. Let default case also go through
291         add_unwind_entry.
292         (dot_savemem): Likewise.
293         (dot_restore): Don't return when wrong operand. Allow tag.
294         (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
295         parse_predicate_and_operand and the new arguments to
296         convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
297         when wrong operand. Allow tag.
298         (dot_restorereg, dot_restorereg_p): Likewise.
299         (dot_spillmem, dot_spillmem_p): Likewise.
300         (dot_saveg): Clear operand when wrong. Perform tighter operand
301         checks. Allow tag.
302         (dot_savef): Likewise.
303         (dot_saveb): Likewise.
304         (dot_savegf): Likewise.
305         (dot_spill): Remove end-of-line check.  Combine. Simplify by using
306         parse_predicate_and_operand and the new arguments to
307         convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
308         when wrong operand. Allow tag.
309         (popcount): New.
310         (dot_label_state): Don't return when wrong operand.
311         (dot_copy_state): Likewise.
312         (dot_unwabi): Likewise. Check if in prologue.
313         (dot_body): Don't call demand_empty_rest_of_line.
314         (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
315         operand checks.
316         (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
317         use dot_spillreg for .spillreg.p. Also use dot_spillmem for
318         .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
319         (parse_operand): New second parameter. Don't deal with '}' here
320         anymore. Don't advance past end-of-line.
321         (parse_operands): Pass second argument to parse_operand.
322         (ia64_start_line): Prevent out-of-bounds access through
323         input_line_pointer. Deal with '}' here.
324         (ia64_unrecognized_line): Don't deal with '}' here.
325         (dot_alias): Use ignore_rest_of_line not its deprecated alias
326         discard_rest_of_line.
327
328 2005-06-30  Zack Weinberg  <zack@codesourcery.com>
329
330         * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
331         (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
332         (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
333         (do_branch): Always set inst.reloc.pc_rel.
334         (s_arm_elf_cons): Disallow use of (plt) suffix.
335         (do_adrl): Adjust X_add_number unconditionally.
336         (md_pcrel_from): Rename md_pcrel_from_section, add second segT
337         argument.  Handle all adjustment for pipeline offset here.
338         (md_apply_fix): No need to undo work of md_pcrel_from.  No
339         need to extract pre-encoded pipeline adjustments from various
340         branch instructions.  Generally, assume instructions are already
341         all-bits-zero in the field being fixed up.  Remove all OBJ_ELF
342         special cases.  Handle BFD_RELOC_ARM_PLT32 like
343         BFD_RELOC_ARM_PCREL_BRANCH.
344         (tc_gen_reloc): Remove OBJ_ELF special case.
345         * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
346
347 2005-06-30  Ben Elliston  <bje@gnu.org>
348
349         * Makefile.am (check-DEJAGNU): Don't search for expect.
350         * Makefile.in: Regenerate.
351
352 2005-06-30  Ben Elliston  <bje@gnu.org>
353
354         * Makefile.am (EXPECT): Set to expect.
355         (RUNTEST): Likewise, set to runtest.
356         * Makefile.in: Regenerate.
357
358 2005-06-23  Ben Elliston  <bje@gnu.org>
359
360         * config/m68k-parse.h: Use ISO C90.
361         * config/m68k-parse.y: Likewise.
362         * config/tc-m68k.h: Likewise.
363
364 2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>
365
366         PR 1013
367         * config/tc-i386.c (md_assemble): Don't call optimize_disp on
368         movabs.
369         (optimize_disp): Optimize only if possible. Don't use 64bit
370         displacement on non-constants and do same on constants if
371         possible.
372
373 2005-06-17  Jan Beulich  <jbeulich@novell.com>
374
375         * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
376         (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
377         BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
378         (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
379         and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
380         aborting.
381         (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
382         Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
383         (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
384         Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
385         BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
386         BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
387         convert 8-byte pc-relative relocations.
388         (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
389         (i386_validate_fix): Likewise.
390         (x86_cons): Also handle quad values in 64-bit mode.
391         (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
392         (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
393         BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
394         to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
395
396 2005-06-13  Zack Weinberg  <zack@codesourcery.com>
397
398         * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
399         symbolP as well as for names with a leading dot.  Use ACONCAT.
400         (md_apply_fix): For branch relocations, only replace value
401         with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
402         (arm_force_relocation): Remove #ifdef OBJ_ELF case.
403         * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
404         (LOCAL_LABEL_PREFIX): Don't define.
405
406 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
407
408         * config/tc-hppa.c (pa_block): Allocate just one byte for the
409         fill pattern.
410
411 2005-06-08  James E Wilson  <wilson@specifixinc.com>
412
413         PR 994
414         * config/tc-ia64.c (slot_index): Revert last change.  If first_frag
415         is NULL, then emit a warning, and return the current index.
416
417 2005-06-08  Tomas Hurka  <tom@hukatronic.cz>
418
419         PR 991
420         * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
421         temporary copy of the operands array so that changes can be safely
422         backed out if the insn does not match.
423         (m68k_compare_opcode): Shortcut the test when the parameters are
424         the same.  Return 1 if the names match but the second opcode is
425         further on in the array than the first.
426
427 2005-06-08  Nick Clifton  <nickc@redhat.com>
428
429         PR 994
430         * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
431
432 2005-06-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
433
434         * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
435
436 2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
437             Michael Snyder  <msnyder@redhat.com>
438             Stan Cox  <scox@redhat.com>
439
440         * configure.in: Add ms1 case.
441
442         * configure: Regenerate.
443
444         * configure.tgt: Add ms1 case.
445
446 2005-06-07  Bob Wilson  <bob.wilson@acm.org>
447
448         * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
449         * config/tc-xtensa.c (new_resource_table): Likewise.
450         (resize_resource_table): Likewise.
451         (release_resources): Fix assertion for unsigned values.
452
453 2005-06-07  Zack Weinberg  <zack@codesourcery.com>
454
455         * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
456         * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
457         * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
458         * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
459         * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
460         * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
461         * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
462         * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
463         * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
464         * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
465         * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
466         * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
467         * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
468         * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
469         * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
470         * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
471         * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
472         * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
473         * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
474         * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
475         * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
476         * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
477         * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
478         * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
479         * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
480         * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
481         * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
482         * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
483         * config/tc-xtensa.c, config/tc-z8k.c:
484         Replace all instances of the string "_apply_fix3" with
485         "_apply_fix".
486         * po/POTFILES.in, po/gas.pot: Regenerate.
487
488 2005-06-08  Alan Modra  <amodra@bigpond.net.au>
489
490         * Makefile.am: Run "make dep-am".
491         (POTFILES): Remove GAS_CFILES.
492         * Makefile.in: Regenerate.
493
494 2005-06-07  David Ung  <davidu@mips.com>
495
496         * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
497         24kc, 24kf and 24kfx under MIPS32 release 2.
498
499 2005-06-04  Nick Clifton  <nickc@redhat.com>
500
501         * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
502         to their Thumb-enabled equivalents.
503
504 2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>
505
506         * config/tc-mips.c (load_register): Add leading "0x" to the
507         output of sprintf_vma().
508         (macro): Likewise.
509
510 2005-06-01  Nick Clifton  <nickc@redhat.com>
511
512         * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
513         test for the presence of thumb version of the parsing functions
514         since they must always exist and the test generates a compile time
515         warning message.
516
517 2005-05-31  Richard Henderson  <rth@redhat.com>
518
519         * config/tc-alpha.c (O_lituse_jsrdirect): New.
520         (alpha_reloc_op): Add it.
521         (debug_exp): Handle it.
522         (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
523         (emit_insn): Handle it.
524         * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
525
526 2005-05-31  Christian Groessler  <chris@groessler.org>
527
528         * write.c (dump_section_relocs): Convert to ISO-C.
529         (write_relocs): Avoid signed/unsigned and fprintf argument
530         warnings in debug code.
531
532 2005-05-26  Zack Weinberg  <zack@codesourcery.com>
533
534         * config/tc-arm.h (TC_FIX_TYPE): Change to int.
535         (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
536         * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
537         (md_apply_fix3): Delete fix_is_thumb variable; refer to
538         fixP->tc_fix_data directly in the sole place it was used.
539         Explicitly truncate value, *valP, fixP->fx_addnumber, and
540         fixP->fx_offset to 32 bits, for consistent behavior between 32-
541         and 64-bit hosts.
542
543 2005-05-27  Jan Beulich  <jbeulich@novell.com>
544
545         * config/tc-ia64.c (struct proc_pending): New.
546         (unwind): Replace proc_start with proc_pending.
547         (unwind_diagnostic): Check unwind.proc_pending.sym.
548         (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
549         Check if previous proc not closed. Record all entry points.
550         (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
551         Set symbol sizes for entry points recorded in dot_proc. Check
552         arguments for consistency with respective .proc's.
553         (md_assemble): Replace unwind.proc_start with
554         unwind.proc_pending.sym.
555
556 2005-05-27  Jan Beulich  <jbeulich@novell.com>
557
558         * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
559         and last_ptr. Check all in-use slots for first one with non-NULL
560         unwind_record. Don't reload end_ptr before second update round.
561
562 2005-05-26  James E Wilson  <wilson@specifixinc.com>
563
564         * config/tc-ia64.c (extra_goodness): Update comment.
565         (md_begin): Add debugging code to print best_template table.
566
567 2005-05-25  Jan Beulich  <jbeulich@novell.com>
568
569         * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
570         template.
571
572 2005-05-25  Jan Beulich  <jbeulich@novell.com>
573
574         * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
575         BFD_RELOC_UNUSED when determining the width of the reloc.
576
577 2005-05-25  Jan Beulich  <jbeulich@novell.com>
578
579         * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
580         section entry.
581
582 2005-05-25  Jan Beulich  <jbeulich@novell.com>
583
584         * config/tc-ia64.c (dot_radix): Rewrite.
585
586 2005-05-25  Jan Beulich  <jbeulich@novell.com>
587
588         * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
589         and next_slot_frag.
590         (alloc_record): Remove references to next_slot_number and
591         next_slot_frag.
592         (emit_one_bundle): Likewise.
593
594 2005-05-22  Nick Clifton  <nickc@redhat.com>
595
596         * config/tc-v850.c (md_apply_fix3): Pass the address of the
597         message buffer when invoking the insert function.
598
599 2005-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
600
601         * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
602         only if an instruction match is found.
603
604 2005-05-20  Bob Wilson  <bob.wilson@acm.org>
605
606         * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
607         to addition in argument to xtensa_dwarf2_emit_insn.
608
609 2005-05-19  Zack Weinberg  <zack@codesourcery.com>
610
611         * Makefile.am: Have 'all' depend on 'info'.
612         * Makefile.in: Regenerate.
613
614 2005-05-19  Alan Modra  <amodra@bigpond.net.au>
615
616         * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
617
618 2005-05-19  Anton Blanchard  <anton@samba.org>
619
620         * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
621         (md_show_usage): Document it.
622         (ppc_setup_opcodes): Insert POWER5 mnemonics.
623         * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
624
625 2005-05-19  Jan Beulich  <jbeulich@novell.com>
626
627         * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
628         relocations in unwind section.
629
630 2005-05-18  Nick Clifton  <nickc@redhat.com>
631
632         * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
633         if one exists.  Ignore any error messages it may produce, just
634         allow it to perform the insertion.
635
636 2005-05-17  Zack Weinberg  <zack@codesourcery.com>
637
638         * hash.c (hash_lookup): Add len parameter.  All callers changed.
639         (hash_find_n): New interface.
640         * hash.h: Prototype hash_find_n.
641         * sb.c: Include as.h.
642         (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
643         (sb_scrub_and_add_sb): New interface.
644         * sb.h: Prototype sb_scrub_and_add_sb.
645         * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
646
647         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
648         reference to BFD_RELOC_ARM_GOT12 which is never generated.
649         * config/tc-arm.c: Rewrite, adding Thumb-2 support.
650
651 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
652
653         * doc/Makefile.am (gasver.texi): Don't use $<.
654         * doc/Makefile.in: Regenerated.
655
656 2005-05-17  Nick Clifton  <nickc@redhat.com>
657
658         PR 876
659         * symbols.c (resolve_symbol_value): Do not move symbols whose
660         value expression has not been resolved or finalized into the
661         absolute section as this will confuse other parts of the assembler
662         into thinking that their value is zero.
663
664 2005-05-17  Jan Beulich  <jbeulich@novell.com>
665
666         * read.c (_find_end_of_line): New.
667         (find_end_of_line): New.
668         (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
669         (read_a_source_file): Use it.
670         (s_globl): Use it.
671         (s_macro): Use it.
672         (get_line_sb): Use it.
673         (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
674         (s_comm_internal): Likewise.
675         (s_lsym): Likewise.
676         (s_macro): Likewise.
677         (s_ignore): Use ignore_rest_of_line.
678         * read.h (find_end_of_line): Prototype.
679         (discard_rest_of_line): Remove prototype. #define to
680         ignore_rest_of_line.
681
682 2005-05-17  Nick Clifton  <nickc@redhat.com>
683
684         * config/tc-v850,h (TC_FIX_TYPE): Define.
685         (TC_INIT_FIX_TYPE): Define.
686         * config/tc-v850.c (md_assemble): When creating a fix record the
687         operand in the tc_fix_data field.
688         (md_apply_fix3): When applying a resolved fix use the operand's
689         insertion procedure to store the value, if the operand has been
690         recorded.
691
692 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
693
694         * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
695         invocation.
696         * Makefile.in: Regenerated.
697
698 2005-05-13  Sterling Augustine  <sterling@tensilica.com>
699             Bob Wilson  <bob.wilson@acm.org>
700
701         * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
702         message.
703         (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
704         for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
705
706 2005-05-11  Alan Modra  <amodra@bigpond.net.au>
707
708         * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
709         BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
710
711 2005-05-10  Michael Matz  <matz@suse.de>
712
713         * frags.c (frag_grow): Don't be too greedy in allocating memory.
714
715         * config/tc-hppa.c (pa_block): Check arguments to .block[z].
716
717 2005-05-10  Hans-Peter Nilsson  <hp@bitrange.com>
718
719         PR binutils/886
720         * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
721         Handle label-without-colon before ordinary dot-pseudo as an
722         ordinary label.  Don't leak memory for label-without-colon alone
723         on a line.  Don't mmixal-munge operands for dot-pseudos.
724
725 2005-05-10  Jan Beulich  <jbeulich@novell.com>
726
727         * macro.c (get_any_string): Remove the two last parameters. Replace
728         references to the former expand parameter by using macro_alternate.
729         Simplify loop condition for checking for end-of-string.
730         (get_string): Remove redunant call to sb_skip_white.
731         (do_formals): Remove two last arguments to get_any_string.
732         (macro_expand): Likewise.
733         (expand_irp): Likewise.
734
735 2005-05-10  Jan Beulich  <jbeulich@novell.com>
736
737         * read.c (s_macro): Move local variable 'local' to smaller scope.
738         Call sb_kill on it when done.
739
740 2005-05-09  Jan Beulich  <jbeulich@novell.com>
741
742         * config/tc-i386.c (optimize_disp): Discard displacement entirely
743         when zero and not required by encoding constraints.
744
745 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
746
747         PR 936
748         * config/tc-sh64.c (sh64_fake_label): New.
749
750         * config/tc-sh64.h (TC_FAKE_LABEL): New.
751
752         * doc/internals.texi (TC_FAKE_LABEL): Document.
753
754         * write.c (TC_FAKE_LABEL): New.
755         (adjust_reloc_syms): Use it.
756         (write_object_file): Likewise.
757
758 2005-05-09  Jan Beulich  <jbeulich@novell.com>
759
760         * config/tc-i386.c (parse_insn): Disallow use of prefix separator
761         and comma in Intel mode.
762
763 2005-05-09  Jan Beulich  <jbeulich@novell.com>
764
765         * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
766         names to match ABI. Add more registers for 32-bit and 64-bit modes.
767         Make name array static and const. Adjust lookup to account for NULL
768         entries (standing for unused register numbers).
769
770 2005-05-09  Jan Beulich  <jbeulich@novell.com>
771
772         * config/tc-i386.c (parse_insn): Consider all matching instructions
773         when checking for string instruction after string-only prefix.
774
775 2005-05-07  H.J. Lu  <hongjiu.lu@intel.com>
776
777         PR 940
778         * config/tc-ia64.c (start_unwind_section): Properly check
779         comdat group with SHF_GROUP.
780
781 2005-05-06  Bob Wilson  <bob.wilson@acm.org>
782
783         * doc/c-xtensa.texi (Literal Directive): Spelling correction.
784
785 2005-05-06  Bob Wilson  <bob.wilson@acm.org>
786
787         * config/tc-xtensa.c: Remove excess whitespace.
788         * config/tc-xtensa.h: Likewise.
789         * config/xtensa-istack.h: Likewise.
790         * config/xtensa-relax.c: Likewise.
791         * config/xtensa-relax.h: Likewise.
792
793 2005-05-06  Nick Clifton  <nickc@redhat.com>
794
795         * sb.h: Fix formatting of comments.
796         * sb.c: Fix formatting of comments.
797
798 2005-05-06  Jan Beulich  <jbeulich@novell.com>
799
800         * sb.h (sb_add_buffer): Reintroduce.
801         * sb.c (sb_add_buffer): Likewise.
802
803 2005-05-06  Jan Beulich  <jbeulich@novell.com>
804
805         * macro.c (new_formal, del_formal): New.
806         (do_formals): Use new_formal. Check for and parse qualifier. Warn if
807         required argument has default value. Stop looking for more formal
808         when there was a vararg one.
809         (macro_expand_body): Use new_formal and del_formal.
810         (macro_expand): Likewise. Initialize local variable err. Don't
811         return immediately when encountering an error. Warn when keyword
812         argument already had a value assigned. Eliminate duplicate clearing
813         of argument value. When current positional argument matches parameter
814         of vararg type, assign to it all the remaining arguments. Issue error
815         when required parameter does not have value.
816         (free_macro): Use del_formal.
817         (expand_irp): Initialize formal type. Free buffers associated with
818         formal prior to returning.
819         * macro.h (struct formal_struct): Add new field 'type' with new
820         enumeration type 'formal_type'.
821         * doc/as.texinfo: Document macro parameter qualifiers.
822         * NEWS: Mention new functionality.
823
824 2005-05-06  Jan Beulich  <jbeulich@novell.com>
825
826         * cond.c (s_ifb): New.
827         * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
828         * read.h (s_ifb): Prototype.
829         * doc/as.texinfo: Document .ifb and .ifnb.
830
831 2005-05-05  Steve Ellcey  <sje@cup.hp.com>
832
833         * config/tc-ia64.c (MIN): Undef.
834
835 2005-05-05  Paul Brook  <paul@codesourcery.com>
836
837         * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
838
839 2005-05-05  Matt Thomas <matt@3am-software.com>
840
841         * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
842         bytes.
843
844 2005-05-05  Nick Clifton  <nickc@redhat.com>
845
846         * Update the address and phone number of the FSF organization in
847         the GPL notices in the following files:
848         COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
849         bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
850         dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
851         emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
852         flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
853         input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
854         itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
855         literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
856         output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
857         struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
858         write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
859         config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
860         config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
861         config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
862         config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
863         config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
864         config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
865         config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
866         config/obj-multi.h, config/obj-som.c, config/obj-som.h,
867         config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
868         config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
869         config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
870         config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
871         config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
872         config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
873         config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
874         config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
875         config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
876         config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
877         config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
878         config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
879         config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
880         config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
881         config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
882         config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
883         config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
884         config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
885         config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
886         config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
887         config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
888         config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
889         config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
890         config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
891         config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
892         config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
893         config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
894         config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
895         config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
896         config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
897         config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
898         config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
899         config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
900         config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
901         config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
902         config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
903         config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
904         config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
905         config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
906         config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
907         config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
908         config/xtensa-istack.h, config/xtensa-relax.c,
909         config/xtensa-relax.h, doc/fdl.texi
910
911 2005-05-05  Nick Clifton  <nickc@redhat.com>
912
913         * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
914         the target_big_endian variable to false.
915
916 2005-05-04  Alan Modra  <amodra@bigpond.net.au>
917
918         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
919         list traversal.  Use bfd_section_list_prepend.
920         * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
921         over the section list.
922         * config/tc-xtensa.c (xtensa_remove_section): Delete.
923         (xtensa_insert_section): Delete.
924         (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
925         and bfd_section_list_prepend.
926         (xtensa_reorder_seg_list): Use bfd_section_list_remove and
927         bfd_section_list_insert_after.
928
929 2005-05-03  Nick Clifton  <nickc@redhat.com>
930
931         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
932         of bfd_section_list... macros.
933         * config/tc-mmix.c (mmix_frob_file): Likewise.
934         * config/tc-xtensa.c (xtensa_remove_section): Likewise.
935         (xtensa_insert_section): Likewise.
936
937         * macro.c (macro_hash): Remove static.
938         * macro.h (macro_hash): Provide an external declaration.
939
940 2005-05-02  H.J. Lu  <hongjiu.lu@intel.com>
941
942         * write.c (write_object_file): Use bfd_section_double_list_remove
943         to remove sections.
944
945 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
946
947         * doc/Makefile.am (gasver.texi): Correct quoting.
948         * doc/Makefile.in: Regenerated.
949
950 2005-04-29  Ralf Corsepius <ralf.corsepius@rtems.org>
951
952         * configure.tgt: Add h8300*-*-rtemscoff.
953         Switch h8300*-*-rtems* to elf.
954
955 2005-04-29  H.J. Lu  <hongjiu.lu@intel.com>
956
957         * hash.c: Undo the last change.
958         * hash.h: Likewise.
959
960 2005-04-29  Daniel Jacobowitz  <dan@codesourcery.com>
961
962         * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
963         of Makefile.
964         (DISTCLEANFILES): Remove.
965         (MAINTAINERCLEANFILES): Add asconfig.texi.
966         * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
967
968 2005-04-29  Ben Elliston  <bje@au.ibm.com>
969
970         * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
971         (GENERIC_OBJS): Likewise, remove bignum-copy.o.
972         (bignum-copy.o): Remove.
973         * Makefile.in: Regenerate.
974         * makefile.vms (OBJS): Remove bignum-copy.obj.
975         * symbols.h (local_symbol_make): Remove declaration.
976         (verify_symbol_chain_2): Likewise.
977         * symbols.c (local_symbol_make): Make static.
978         (max_indent_level): Likewise.
979         (verify_symbol_chain_2): Remove.
980         * macro.c (macro_hash): Make static.
981         * messages.c (fprint_value): Remove.
982         * read.h (get_absolute_expr): Remove.
983         (emit_leb128_expr): Likewise.
984         (do_s_func): Likewise.
985         * read.c (do_s_func): Make static.
986         (emit_leb128_expr): Likewise.
987         (get_absolute_expr): Likewise.
988         * as.h (as_howmuch): Remove declaration.
989         (fprint_value): Likewise.
990         * as.c (myname): Make static.
991         * input-scrub.c (as_howmuch): Remove.
992         (as_1_char): Likewise.
993         * input-file.h (input_file_is_open): Remove.
994         * input-file.c (input_file_is_open): Likewise.
995         * expr.h (expr_build_unary): Remove declaration.
996         (expr_build_binary): Likewise.
997         * expr.c (expr_build_unary): Remove.
998         (expr_build_binary): Likewise.
999         * hash.h (hash_replace): Remove declaration.
1000         (hash_delete): Likewise.
1001         * hash.c (hash_replace): Remove.
1002         (hash_delete): Likewise.
1003         * bignum-copy.c (bignum_copy): Move from here ..
1004         * config/tc-vax.c (bignum_copy): .. to here.
1005         * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
1006         (bignum_copy): Remove extern declaration.
1007         * sb.h (string_count): Remove extern declaration.
1008         (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1009         (sb_name): Likewise.
1010         * sb.c (dsize): Replace preprocessor macro with static int.
1011         (string_count): Make static.
1012         (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1013         (sb_name): Likewise.
1014         * config/obj-coff.c (dim_index): Make static.
1015         * config/tc-i386.c (GOT_symbol): Likewise.
1016         (output_invalid_buf): Likewise.
1017         * doc/internals.texi (Warning and error messages): Remove the
1018         prototype for fprint_value.
1019
1020 2005-04-27  Ben Elliston  <bje@au.ibm.com>
1021
1022         * link.cmd: Remove.
1023
1024 2005-04-26  H.J. Lu  <hongjiu.lu@intel.com>
1025
1026         * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
1027
1028         * read.c (pseudo_set): Disallow symbol set to common symbol.
1029
1030         PR 857
1031         * write.c (write_object_file): Report common symbol name when
1032         disallowing local symbol set to common symbol.
1033         (adjust_reloc_syms): Disallow local symbol set to undefined
1034         symbol.
1035
1036 2005-04-25  Jan Beulich  <jbeulich@novell.com>
1037
1038         * macro.c (macro_expand_body): Replace locals indicator parameters
1039         with actual macro_entry. New local variables macro_line and err.
1040         Don't return when encountering an error, just record the fact.
1041         Detect local symbol name colliding with parameter. Track line number
1042         inside of macro expansion.
1043         (do_formals): Move local variable name to wider scope. Check
1044         parameter of the same name doesn't already exist. In MRI mode, also
1045         check it doesn't collide with the argument count pseudo-parameter).
1046         (define_macro): Add file and line number parameters. Remove local
1047         variable namestr. New local variable error. Initialize macro_entry
1048         members file, line, and name. Don't return when encountering an
1049         error, just record the fact. Use %s in some diagnostics for read.c
1050         to insert the macro name. Free macro_entry on error.
1051         (macro_expand): Pass macro_entry to macro_epand_body. Don't return
1052         when encountering an error, just record the fact.
1053         (expand_irp): Don't return when encountering an error, just record
1054         the fact.
1055         * macro.h (macro_struct): New members name, file, and line.
1056         (define_macro): Add file and line number parameters.
1057         * read.c (s_macro): Pass file and line to define_macro. Tag warning
1058         regarding pseudo-op redefinition with the file/line that macro
1059         definition started at.
1060
1061 2005-04-22  Bob Wilson  <bob.wilson@acm.org>
1062
1063         * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
1064         (future_alignment_required): Remove ifdefs that use it.
1065
1066 2005-04-22  Bob Wilson  <bob.wilson@acm.org>
1067
1068         * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
1069         (xg_is_narrow_insn, xg_expand_narrow): Remove.  Merge into...
1070         (xg_is_single_relaxable_insn): ...here.  Add "targ" and "narrow_only"
1071         parameters.
1072         (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
1073         convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
1074
1075 2005-04-21  Christian Groessler  <chris@groessler.org>
1076
1077         * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
1078         array.
1079
1080 2005-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1081
1082         * config/obj-aout.h (S_IS_EXTERN): Removed.
1083         * config/obj-bout.h (S_IS_EXTERN): Likewise.
1084         * config/obj-coff.h (S_IS_EXTERN): Likewise.
1085         * symbols.c (S_IS_EXTERN): Likewise.
1086         * symbols.h (S_IS_EXTERN): Likewise.
1087
1088         * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
1089         S_IS_EXTERNAL.
1090         * config/tc-d10v.c (md_apply_fix3): Likewise.
1091         * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
1092         * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
1093         * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
1094         * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
1095         * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
1096         (shmedia_md_convert_frag): Likewise.
1097         * symbols.c (print_symbol_value_1): Likewise.
1098         * write.c (write_object_file): Likewise.
1099
1100 2005-04-20  Nick Clifton  <nickc@redhat.com>
1101
1102         * config/tc-xtensa.c (get_aligned_diff): Change type of
1103         branch_align to offsetT so that its signedness matches that of
1104         target_size.
1105
1106         * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
1107         number into a readable string.
1108         (load_register): Likewise.
1109
1110 2005-04-20  Andreas Schwab  <schwab@suse.de>
1111
1112         * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
1113
1114 2005-04-19  David S. Miller  <davem@davemloft.net>
1115
1116         * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
1117         NULL insn, exit early.  Remove now spurious NULL checks.
1118         (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
1119         to NULL and exit.
1120
1121 2005-04-19  Jan Beulich  <jbeulich@novell.com>
1122
1123         * symbols.h (symbol_find_base): Remove prototype.
1124         * symbols.c (save_symbol_name): Remove code section conditional upon
1125         STRIP_UNDERSCORE.
1126         (symbol_find): Remove.
1127         (symbol_find_base): Rename to symbol_find.
1128         * subsegs.c (section_symbol): Replace use of symbol_find_base with
1129         symbol_find.
1130         * config/obj-coff.c (tag_insert): Remove code section conditional
1131         upon STRIP_UNDERSCORE.
1132         (obj_coff_def): Likewise.
1133         (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
1134         (coff_frob_symbol): Likewise.
1135         (yank_symbols): Likewise.
1136         (c_section_symbol): Likewise.
1137         * config/obj-coff.h (DO_NOT_STRIP): Remove.
1138         * config/tc-arm.c (symbol_locate): Remove code section conditional
1139         upon STRIP_UNDERSCORE.
1140         * config/tc-h8300.h (DO_NOT_STRIP): Remove.
1141         * config/tc-h8500.h (DO_NOT_STRIP): Remove.
1142         * config/tc-sh.h (DO_NOT_STRIP): Remove.
1143         * config/tc-w65.h (DO_NOT_STRIP): Remove.
1144         * config/tc-z8k.h (DO_NOT_STRIP): Remove.
1145
1146 2005-04-19  Andreas Schwab  <schwab@suse.de>
1147
1148         * config/tc-ia64.c (md_assemble): Fix error message for wrong
1149         access to application registers.
1150
1151 2005-04-19  Jan Beulich  <jbeulich@novell.com>
1152
1153         * config/te-sysv32.h: Remove.
1154         * Makefile.am (TARG_ENV_HFILES): Remove reference to
1155         config/te-sysv32.h.
1156         * Makefile.in (TARG_ENV_HFILES): Likewise.
1157
1158 2005-04-19  Jan Beulich  <jbeulich@novell.com>
1159
1160         PR/847
1161         * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
1162         length symbols.
1163
1164 2005-04-18  Mark Kettenis  <kettenis@gnu.org>
1165
1166         * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
1167
1168 2005-04-18  Maciej W. Rozycki  <macro@linux-mips.org>
1169
1170         * config/tc-mips.c (normalize_constant_expr): Don't check for
1171         HAVE_32BIT_GPRS.
1172         (check_absolute_expr): Only call normalize_constant_expr() if
1173         HAVE_32BIT_GPRS.
1174         (mips_ip): Likewise.
1175
1176         * config/tc-mips.c (check_absolute_expr): Fix formatting.
1177
1178 2005-04-18  Jan Beulich  <jbeulich@novell.com>
1179
1180         * macro.c (free_token): New, freeing all the memory associated with a
1181         macro.
1182         (do_formals): Move initializers to ...
1183         (define_macro): ... here.
1184         (delete_macro): Convert passed in name to lower case. Warn when
1185         purging macro that doesn't exist. Use hash_jam instead of hash_delete.
1186
1187 2005-04-15  Maciej W. Rozycki  <macro@linux-mips.org>
1188
1189         * config/tc-mips.c (normalize_constant_expr): Fix formatting.
1190
1191 2005-04-15  Jan Beulich  <jbeulich@novell.com>
1192
1193         * config/obj-elf.c (obj_elf_struct): New.
1194         (elf_pseudo_table). Use it for .offset and .struct.
1195
1196 2005-04-14  Bob Wilson  <bob.wilson@acm.org>
1197             Sterling Augustine  <sterling@tensilica.com>
1198
1199         * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
1200         than the section alignment.
1201
1202 2005-04-14  Bob Wilson  <bob.wilson@acm.org>
1203             H.J. Lu  <hongjiu.lu@intel.com>
1204
1205         * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
1206         * config/tc-xtensa.c (xg_translate_sysreg_op,
1207         xtensa_translate_old_userregs_ops,
1208         xtensa_find_unaligned_branch_targets,
1209         xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
1210         relax_frag_add_nop): Support 64-bit host.
1211         (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
1212         tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
1213
1214 2005-04-14  Mark Kettenis  <kettenis@gnu.org>
1215
1216         * configure.tgt: Add support for OpenBSD/sparc ELF.
1217
1218         * configure.tgt: Set emulation for mips-*-openbsd*.
1219         Remove broken mips-dec-openbsd* config.
1220         * configure.in: Set default ABI for mips64-*-openbsd*.
1221         * configure: Regenerate.
1222
1223 2005-04-14  Maciej W. Rozycki  <macro@linux-mips.org>
1224
1225         * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
1226         optimization for constant addresses.
1227
1228 2005-04-14  Nick Clifton  <nickc@redhat.com>
1229
1230         * as.c (main): Move parse_args before symbol_begin and frag_init
1231         so that the hash table size can be set before it is used.
1232         * hash.c: Use an unsigned long type for the size of the hash
1233         tables.
1234         * hash.h (set_gas_hash_table_size): Update the prototype.
1235
1236 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
1237
1238         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
1239         * acinclude.m4: Include ../bfd/warning.m4.
1240         * configure.in: Invoke AM_BINUTILS_WARNINGS.
1241         * Makefile.in: Regenerate.
1242         * configure: Regenerate.
1243         * doc/Makefile.in: Regenerate.
1244
1245 2005-04-13  Maciej W. Rozycki  <macro@linux-mips.org>
1246
1247         * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
1248         (normalize_address_expr): New function to sign-extend address
1249         offsets that fit into 32 bits in 32-bit mode.
1250         (macro_build_ldst_constoffset): Use normalize_address_expr()
1251         instead of a handcoded sequence.
1252         (load_register): Likewise.  Report oversized numbers in a useful
1253         way.
1254         (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
1255         for constant addresses.  Report oversized numbers in a useful way.
1256         (mips_ip): Use normalize_address_expr() for addresses.
1257
1258 2005-04-12  Mark Kettenis  <kettenis@gnu.org>
1259
1260         * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
1261         similar to other instructions now that they're marked as ImmExt.
1262
1263 2005-04-12  Nick Clifton  <nickc@redhat.com>
1264
1265         * hash.c (DEFAULT_SIZE): Delete.  Replace with:
1266         (gas_hash_table_size): New static variable.
1267         (set_gas_hash_table_size): New function:  Records a requested size
1268         for the hash tables.
1269         (get_gas_hash_table_size): New function: Return a prime number
1270         near the requested size of the hash table.
1271         (hash_new): Use get_gas_hash_table_size.
1272         * hash.h: Add a prototype for set_gas_hash_table_size.
1273         * as.c (show_usage): Add description of new switches: --hash-size
1274         and --reduce-memory-overheads.
1275         (option_values): Add OPTION_HASH_TABLE_SIZE and
1276         OPTION_REDUCE_MEMORY_OVERHEADS.
1277         (std_longpopts): Add entries for the new options.
1278         (parse_args): Handle the new options.
1279         * Makefile.am: Add a dependency of as.c on hash.h.
1280         * Makefile.in: Regenerate.
1281         * doc/as.texinfo: Document the new switches.
1282         * NEWS: Mention the new switches.
1283
1284 2005-04-12  Nick Clifton  <nickc@redhat.com>
1285
1286         PR gas/818
1287         * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
1288         synonyms.
1289
1290 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
1291
1292         * Makefile.am: Run "make dep-am".
1293         * Makefile.in: Regenerate.
1294
1295 2005-04-11  Sterling Augustine  <sterling@tensilica.com>
1296             Bob Wilson  <bob.wilson@acm.org>
1297
1298         * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
1299
1300 2005-04-11  Mark Kettenis  <kettenis@gnu.org>
1301
1302         * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
1303
1304 2005-04-11  Jan Beulich  <jbeulich@novell.com>
1305
1306         * NEWS: Mention these changes and their effects.
1307         * macro.c (get_token): Use is_name_beginner/is_part_of_name/
1308         is_name_ender.
1309         (check_macro): Likewise.
1310         (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
1311         labels together with the closing pseudo-op.
1312         (macro_expand_body): Adjust comment. Range-check input before use.
1313         Adjust mis-spelled diagnostic. Use is_name_beginner.
1314         * read.c (try_macro): New.
1315         (read_a_source_file): New static variable last_eol. Don't list
1316         macro expansion lines more than once. Call try_macro.
1317         (s_macro): Set section of line_label to absolute instead of undefined.
1318         * doc/as.texinfo: Add information on the caveats of these changes.
1319
1320 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
1321
1322         * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
1323         * symbols.h (symbol_X_add_number): Update prototype.
1324
1325 2005-04-10  Eric Christopher  <echristo@redhat.com>
1326
1327         * symbols.c (symbol_X_add_number): Fix warning.
1328
1329 2005-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1330
1331         * config/tc-m68k.c (md_begin): Support 64bit host.
1332         (get_num): Support 64bit BFD on 32bit host.
1333
1334 2005-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
1337
1338 2005-04-09  Alan Modra  <amodra@bigpond.net.au>
1339
1340         * read.c (assign_symbol): Remove const from parm.  Fix xcalloc
1341         call.  Don't do the COFF hacks for multi-emulation gas.  Move
1342         demand_empty_rest_of_line back to caller.
1343         (s_set, equals): demand_empty_rest_of_line here.
1344
1345         PR gas/827
1346         * as.h (rs_dummy): Define.
1347         * symbols.c (symbol_X_add_number): New function.
1348         * symbols.h (symbol_X_add_number): Declare.
1349         * stabs.c (aout_process_stab): Tidy symbol frag setting.
1350         * read.c (assign_symbol): New function, split out from s_set.
1351         Use symbol_find_or_make.  Leave fr_type of dummy frag as rs_dummy.
1352         Fix COFF hacks for multi-emulation gas.
1353         (s_set): Call assign_symbol.  Remove "register" keyword.
1354         (set_zero_frag): New function.
1355         (pseudo_set): Always check for assignment to section syms.
1356         Always set segment and frag of symbol, and likewise extern for
1357         aout/bout.  Handle assignment of sym=sym+/-const specially.  Don't
1358         special case exp.X_add_number non-zero for O_symbol expressions.
1359         (equals): Use assign_symbol.
1360
1361 2005-04-08  Bob Wilson  <bob.wilson@acm.org>
1362
1363         * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
1364         SEC_MERGE sections.
1365
1366 2005-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1367
1368         * config/tc-i386.c (tc_gen_reloc): Don't turn
1369         BFD_RELOC_X86_64_32S into BFD_RELOC_32.
1370
1371 2005-04-06  Nick Clifton  <nickc@redhat.com>
1372
1373         * po/rw.po: New translation: Kinyarwanda
1374         * configure.in (ALL_LINGUAS): Add rw
1375         * configure: Regenerate.
1376
1377 2005-04-05  Sterling Augustine  <sterling@tensilica.com>
1378             Bob Wilson  <bob.wilson@acm.org>
1379
1380         * config/tc-xtensa.c (branch_align_power): New.
1381         (xtensa_find_unaligned_branch_targets, get_aligned_diff,
1382         future_alignment_required): Use branch_align_power to check section
1383         alignment as well as xtensa_fetch_width when aligning branch targets.
1384
1385 2005-04-05  Bob Wilson  <bob.wilson@acm.org>
1386
1387         * config/tc-xtensa.c: Warning fixes throughout.
1388         (xtensa_fetch_width): Change to unsigned.
1389         (assemble_nop, xtensa_find_unaligned_branch_targets,
1390         xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
1391         is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
1392         min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
1393         unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
1394         count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
1395         get_text_align_max_fill_size, get_text_align_nop_count,
1396         get_text_align_nth_nop_size, get_noop_aligned_address,
1397         get_aligned_diff, convert_frag_align_next_opcode,
1398         convert_frag_immed_finish_loop, xtensa_create_property_segments,
1399         xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
1400         types, avoiding size_t and using offsetT and addressT appropriately.
1401         (get_text_align_power): Clean up types.  Avoid incorrect bound.
1402         (get_text_align_fill_size): Clean up types.  Restructure for clarity.
1403
1404 2005-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1405
1406         * config/tc-ia64.c (start_unwind_section): Undo the change
1407         of 2004-08-18.
1408         (generate_unwind_image, dot_endp): Likewise.
1409
1410 2005-04-01 David Mosberger  <davidm@hpl.hp.com>
1411
1412         * config/tc-ia64.c (ia64_handle_align): Move le_nop and
1413         le_nop_stop arrays and initializers to file scope.
1414         (md_begin): When generating code for anything other than
1415         Itanium 1, use MMI instead of MFI NOP bundles as a filler.
1416
1417 2005-04-01  Jan Beulich  <jbeulich@novell.com>
1418
1419         * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
1420         immediates.
1421
1422 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1423
1424         * NEWS: Mention [fdgh]_floating.
1425         * config/atof-vax.c: Fix some whitespace.
1426         * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
1427
1428 2005-04-01  Nick Clifton  <nickc@redhat.com>
1429
1430         * configure.in: Add a check for <unistd.h> providing a prototype
1431         for getopt() which is compatible with the one in
1432         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
1433         * configure: Regenerate.
1434         * config.in (HAVE_DECL_GETOPT): Add.
1435
1436 2005-04-01  Jan Beulich  <jbeulich@novell.com>
1437
1438         * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
1439
1440 2005-04-01  Jan Beulich  <jbeulich@novell.com>
1441
1442         * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
1443         (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
1444
1445 2005-03-30  Julian Brown  <julian@codesourcery.com>
1446
1447         * config/tc-arm.c (arm_adjust_symtab): Rename
1448         bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
1449
1450 2005-03-30  Julian Brown  <julian@codesourcery.com>
1451
1452         * config/tc-arm.c (mapping_state): Change documentation in function
1453         comment to cross-reference spec instead. Change type of mapping symbols
1454         to BSF_NO_TYPE.
1455         (arm_adjust_symtab): Don't change type of mapping symbols here.
1456
1457 2005-03-30  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1458
1459         * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
1460         * config.in: Regenerate.
1461         * configure: Regenerate.
1462         * configure.in: Check for ffs decl and alphabetize.
1463
1464 2005-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
1465             Phil Blundell  <philb@gnu.org>
1466
1467         * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
1468         (md_apply_fix3): Mark TLS symbols.
1469         (tc_gen_reloc): Handle TLS relocations.
1470         (arm_fix_adjustable): Ignore TLS relocations.
1471         (s_arm_elf_cons): Support expressions after decorated symbols.
1472
1473 2005-03-29  Julian Brown  <julian@codesourcery.com>
1474
1475         * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
1476         whether personality routine index N has been output for this section.
1477         (mapping_state): tc_segment_info_data now struct not enum.
1478         (arm_elf_change_section): Likewise, and marked_pr_dependency is now
1479         handled on section change.
1480         (create_unwind_entry): Previous code to output dependency removed.
1481         (s_arm_unwind_fnend): Output dependency if it hasn't been done already
1482         for this section.
1483         * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
1484         arm_segment_info_type.
1485         (arm_segment_info_type): New struct.
1486
1487 2005-03-28  Sterling Augustine  <sterling@tensilica.com>
1488             Bob Wilson  <bob.wilson@acm.org>
1489
1490         * config/tc-xtensa.c (do_align_targets): Update comment.
1491         (xtensa_frob_label): Compute "freq" before possibly switching frags.
1492         Insert a LOOP_END frag before every loop target, and do not overload
1493         DESIRE_ALIGN_IF_TARGET frags with loop end information.
1494         (xg_assemble_vliw_tokens): Use do_align_targets.
1495         (xtensa_fix_target_frags): Remove code to convert a
1496         DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
1497         negatable branch at the end of a loop.
1498         (frag_can_negate_branch): Delete.
1499
1500 2005-03-28  David Mosberger  <davidm@hpl.hp.com>
1501             H.J. Lu  <hongjiu.lu@intel.com>
1502
1503         PR 803
1504         NEWS: Mention "-mtune=[itanium1|itanium2]".
1505
1506         * config/tc-ia64.c (md): Add tune.
1507         (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
1508         (md_show_usage): Add "-mtune=[itanium1|itanium2]".
1509         (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
1510         B unit NOPs are discouraged for McKinley-derived cores.
1511         (md_begin): Don't hardcode the "extra_goodness()" function in
1512         the comment...
1513         (ia64_init): Set md.tune to itanium2.
1514
1515         * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
1516         * doc/c-ia64.texi: Likewise.
1517
1518 2005-03-27  Ian Lance Taylor  <ian@airs.com>
1519
1520         * config/obj-coff.c (coff_frob_symbol): When crashing because of a
1521         bad C_EFCN symbol, print its name.
1522
1523 2005-03-25  Bob Wilson  <bob.wilson@acm.org>
1524
1525         * config/tc-xtensa.c (use_longcalls): Delete.
1526         (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
1527         the use_longcalls flag is set.  Do this before checking the segment.
1528         (xg_expand_assembly_insn): Rearrange to use new do_expand flag.  Never
1529         expand direct calls at this point.
1530         (xtensa_set_frag_assembly_state): Set use_longcalls flag.
1531         (xtensa_find_unmarked_state_frags): Likewise.
1532         (md_assemble): Do not disable longcalls by setting is_specific_opcode.
1533         (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
1534         (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
1535         * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
1536
1537 2005-03-25  Hans-Peter Nilsson  <hp@bitrange.com>
1538
1539         * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
1540
1541 2005-03-25  Hans-Peter Nilsson  <hp@axis.com>
1542
1543         * config/tc-cris.h: Convert to ISO C90.
1544         * config/tc-cris.c: Ditto.
1545         (md_estimate_size_before_relax): Remove obsolete comment for
1546         parameter "segment_type".
1547         (md_begin): Document reason for cast of hash_insert argument.
1548         (md_atof): Correct type of parameter "type".
1549
1550 2005-03-24  Nick Clifton  <nickc@redhat.com>
1551
1552         * write.h (bit_fix_new): Remove redundant prototype.
1553         * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
1554         * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
1555         * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
1556         * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
1557         * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
1558         * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
1559         * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
1560         * config/obj-som.c: Convert to ISO-C90 and fix formatting.
1561         * config/obj-som.h: Convert to ISO-C90 and fix formatting.
1562         * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
1563         * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
1564         * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
1565         * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
1566         * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
1567         * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
1568         * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
1569         * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
1570         * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
1571         * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
1572         * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
1573         * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
1574         * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
1575         * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
1576         * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
1577         * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
1578         * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
1579         * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
1580         * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
1581         * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
1582         * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
1583         * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
1584         * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
1585         * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
1586         * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
1587         * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
1588         * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
1589         * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
1590         * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
1591         * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
1592         * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
1593         * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
1594         * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
1595         * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
1596         * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
1597         * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
1598         * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
1599         * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
1600         * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
1601         * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
1602         * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
1603         * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
1604         * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
1605         * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
1606         * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
1607         * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
1608
1609 2005-03-23  Jim Blandy  <jimb@redhat.com>
1610
1611         * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
1612         attributes properly.
1613
1614 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
1615             Nick Clifton  <nickc@redhat.com>
1616
1617         * configure.tgt: Accept any C library to accompany a GNU Linux
1618         implementation, not just the GNU C library.
1619         * configure.in: Likewise.
1620         * configure: Regenerate.
1621
1622 2005-03-23  Nick Clifton  <nickc@redhat.com>
1623
1624         * config/tc-tic30.c: Convert to ISO C90 formatting.
1625         * config/tc-tic30.h: Convert to ISO C90 formatting.
1626         * config/tc-pdp11.c: Convert to ISO C90 formatting.
1627         * config/atof-vax.c: Convert to ISO C90 formatting.
1628
1629 2005-03-21  Maciej W. Rozycki  <macro@mips.com>
1630
1631         * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
1632         relocations correctly as well.
1633         (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
1634         relocations in mergeable sections section-relative either.
1635
1636 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
1637
1638         * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
1639
1640 2005-03-21  Nick Clifton  <nickc@redhat.com>
1641
1642         * config/tc-sh.c (sh_elf_final_processing): Fix compile time
1643         warning by providing a prototype for sh_symbian_find_elf_flags.
1644
1645         * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
1646         previous delta.
1647
1648 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1649
1650         * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
1651         along with other formats that set bfd_gas.  Remove unnecessary
1652         setting of bfd_gas.  Delete strongarm cases in generic_target
1653         switch.
1654
1655 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1656
1657         PR gas/780
1658         * config/tc-m68k.c (TRUNC, SEXT): Define.
1659         (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
1660         (m68k_ip): Truncate or sign extend expressions as appropriate.
1661         (get_num): Likewise.
1662         (md_apply_fix3): Use SEXT.
1663
1664 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1665
1666         * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
1667         (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
1668         (obj-vms.o): Delete rule.
1669         Run "make dep-am".
1670         * Makefile.in: Regenerate.
1671         * aclocal.m4: Regenerate.
1672         * doc/Makefile.in: Regenerate.
1673         * po/POTFILES.in: Regenerate.
1674
1675 2005-03-18  C Jaiprakash  <cjaiprakash@noida.hcltech.com>
1676
1677         * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
1678         flag for coldfire v4e.
1679
1680 2005-03-17  Bob Wilson  <bob.wilson@acm.org>
1681
1682         * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
1683         xg_apply_fix_value and return a value to indicate success.
1684         (md_pcrel_from): Skip check of fx_done.  Return 0 if not PC-relative.
1685         (xtensa_force_relocation): Remove checks for VTABLE relocs.
1686         (xtensa_validate_fix_sub): New.
1687         (xtensa_fix_adjustable): Remove check for external or weak symbols.
1688         (tc_gen_reloc): Move code to handle difference of symbols and code to
1689         apply tentative fix values to ...
1690         (md_apply_fix3): ...here.  Enable standard overflow checks for simple
1691         8, 16, and 32 bit relocations.  Apply fixes for slot-specific
1692         relocations when linkrelax flag is not set.
1693         * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
1694         (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
1695
1696 2005-03-17  Jan Beulich  <jbeulich@novell.com>
1697
1698         * config/tc-i386.c (i386_scale): Beautify error message.
1699         (Intel syntax comments): Update.
1700         (struct intel_parser_s): Add fields in_offset, in_bracket, and
1701         next_operand.
1702         (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
1703         Remove declarations.
1704         (intel_bracket_expr): Declare.
1705         (i386_intel_operand): Initialize new intel_parser fields. Wrap most
1706         of the function body in a loop allowing to split an operand into two.
1707         Replace calls to malloc and checks of it returning non-NULL with
1708         calls to xmalloc/xstrdup.
1709         (intel_expr): SHORT no longer handled here. Add comment indicating
1710         comparison ops need implementation.
1711         (intel_e04, intel_e04_1): Combine, replace recursion with loop.
1712         Check right operand of - does not specify a register when parsing
1713         the address of a memory reference.
1714         (intel_e05, intel_e05_1): Combine, replace recursion with loop.
1715         Check operands do not specify a register when parsing the address of
1716         a memory reference.
1717         (intel_e06, intel_e06_1): Likewise.
1718         (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
1719         handle SHORT as well as unary + and -. Don't accept : except for
1720         segment overrides or in direct far jump/call insns.
1721         (intel_brack_expr): New.
1722         (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
1723         intel_brack_expr.
1724         (intel_e11): Replace chain of if/else-if by switch, alloing fall-
1725         through in certain cases. Use intel_brack_expr. Add new diagnostics.
1726         Allow symbolic constants as register scale value.
1727         (intel_get_token): Replace call to malloc and check of return value
1728         with call to xmalloc. Change handling for FLAT to match MASM's.
1729         (intel_putback_token): Don't try to back up/free current token if
1730         that is T_NIL.
1731
1732 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
1733
1734         * configure.tgt: Set emulation for arm-*-eabi*.
1735         * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
1736         * config/te-armeabi.h: New file.
1737         * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
1738         * config/te-symbian.h: Include "te-armeabi.h".
1739
1740 2005-03-16  Nick Clifton  <nickc@redhat.com>
1741
1742         * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
1743         local variable in case it is clobbered by the setjmp.
1744
1745 2005-03-16  Nick Clifton  <nickc@redhat.com>
1746             Ben Elliston  <bje@au.ibm.com>
1747
1748         * configure.in (werror): New switch: Add -Werror to the
1749         compiler command line.  Enabled by default.  Disable via
1750         --disable-werror.
1751         * configure: Regenerate.
1752
1753 2005-03-16  Nick Clifton  <nickc@redhat.com>
1754
1755         * config/obj-coff.h: Convert to ISO C90 formatting.
1756         * config/obj-coff.c: Convert to ISO C90 formatting.
1757
1758 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
1759
1760         * config/tc-arm.c (do_mla): Rename to do_mlas, take second
1761         is_mls parameter; do not diagnose Rm==Rd when is_mls.
1762         (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
1763         (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
1764         (insns): Add ARMv6T2 instructions:
1765         bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
1766         (arm_archs): Add V6T2 variants.
1767
1768 2005-03-15  Nick Clifton  <nickc@redhat.com>
1769
1770         * NEWS: Add cutoff for changes in 2.16 release.
1771
1772 2005-03-15  Jan Beulich  <jbeulich@novell.com>
1773
1774         * expr.c (operand): Merge handling of unary + into that for unary
1775         -, !, and ~.
1776
1777 2005-03-14  Eric Christopher  <echristo@redhat.com>
1778
1779         * config/tc-mips.c: Include dw2gencfi.h.
1780         (mips_cfi_frame_initial_instructions): New.
1781         * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
1782         (tc_cfi_frame_initial_instructions): Ditto.
1783         (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
1784         (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
1785         * Makefile.am: Update dependencies.
1786         * Makefile.in: Regenerate.
1787
1788 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
1789
1790         * po/es.po: Commit new Spanish translation.
1791
1792 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1793
1794         * po/tr.po: Commit new Turkish translation.
1795
1796 2005-03-12  Zack Weinberg  <zack@codesourcery.com>
1797
1798         * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
1799         wfi, yield.
1800
1801 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
1802
1803         * config-gas.com: Mark vax-vms as obsolete.
1804         * configure.in: Remove fmt=vms support.
1805         * config.in: Regenerate.
1806         * configure: Regenerate.
1807         * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
1808
1809 2005-03-10  Sterling Augustine  <sterling@tensilica.com>
1810             Bob Wilson  <bob.wilson@acm.org>
1811
1812         * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
1813         when checking if xg_resolve_literals needs to be called.
1814         * config/tc-xtensa.h: Fix spelling typo in a comment.
1815
1816 2005-03-10  Jan Beulich  <jbeulich@novell.com>
1817
1818         * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
1819         * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
1820         crafted structure declarations with the types from macro.h.
1821
1822 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1823
1824         * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
1825         for -mno-shared optimization.
1826
1827 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1828
1829         * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
1830         (MAX_NOPS): Bump to 4.
1831         (mips_fix_vr4130): New variable.
1832         (nops_for_vr4130): New function.
1833         (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS.  Use
1834         nops_for_vr4130 if working around VR4130 errata.
1835         (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
1836         (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
1837         (md_parse_option): Handle them.
1838         (md_show_usage): Print them.
1839         * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
1840
1841 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1842
1843         * config/tc-mips.c (append_insn): Remove cop_interlocks test from
1844         branch delay code.
1845
1846 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1847
1848         * config/tc-mips.h (mips_flush_pending_output): Delete.
1849         (mips_emit_delays): Declare.
1850         (md_flush_pending_output): Use mips_emit_delays.
1851         * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
1852         the previous instructions.
1853         (md_begin, append_insn, md_parse_option): Update callers.
1854         (mips_emit_delay): Remove parameter.  Move INSNS != 0 code to
1855         start_noreorder.
1856         (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
1857         (s_gpdword): Update callers.
1858         (start_noreorder, end_noreorder): New functions.
1859         (macro, macro2, mips16_macro, s_mipsset): Use them instead of
1860         manipulating mips_opts or prev_nop_frag directly.
1861         (mips_flush_pending_output): Delete.
1862
1863 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1864
1865         * config/tc-mips.c (mips_move_labels): New function, taken from...
1866         (append_insn, mips_emit_delays): ...here.
1867
1868 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1869
1870         * config/tc-mips.c (MAX_NOPS): New macro.
1871         (history): Resize to 1 + MAX_NOPS.
1872         (fix_vr4120_class): New enumeration.
1873         (vr4120_conflicts): New variable.
1874         (init_vr4120_conflicts): New function.
1875         (md_begin): Call it.
1876         (insn_uses_reg): Constify first argument.
1877         (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
1878         (nops_for_insn_or_target): New functions.
1879         (append_insn): Use the new nops_for_* functions instead of inline
1880         delay checks.  Generalize prev_nop_frag handling to handle an
1881         arbitrary history length.  Insert nops into the history buffer
1882         once the number of nops in prev_nop_frag is fixed.
1883         (emit_delays): Use nops_for_insn instead of inline delay checks.
1884
1885 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1886
1887         * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
1888         check from branch delay code.  Remove unnecessary check for branches.
1889
1890 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1891
1892         * config/tc-mips.c (dummy_opcode): Delete.
1893         (nop_insn, mips16_nop_insn): New variables.
1894         (NOP_INSN): New macro.
1895         (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
1896         (add_relaxed_insn, insert_into_history, emit_nop): New functions.
1897         (md_begin): Initialize nop_insn and mips16_nop_insn.
1898         (append_insn): Use the new emit_nop function to add nops, recording
1899         them in the history buffer.  Use add_fixed_insn or add_relaxed_insn
1900         to reserve room for the instruction and install_insn to install the
1901         final form.  Use insert_into_history to record the instruction in
1902         the history buffer.  Use move_insn to do delay slot filling.
1903         (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
1904         (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
1905         (mips16_ip): Use create_insn to initialize mips_cl_insns.
1906
1907 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1908
1909         * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
1910         (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
1911         (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
1912         (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
1913         (mips16_ip): Use the new macros instead of explicit masks and shifts.
1914
1915 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1916
1917         * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
1918         and extended_p fields with a single fixed_p field.
1919         (append_insn, mips_no_prev_insn): Adjust accordingly.
1920
1921 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1922
1923         * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
1924         a single mips16_absolute_jump_p bit.
1925         (append_insn): Adjust accordingly.
1926
1927 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
1928
1929         * config/tc-mips.h (mips_cl_insn): Move definition to...
1930         * config/tc-mips.c (mips_cl_insn): ...here.  Add new fields:
1931         frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
1932         and extended_p.
1933         (history): New variable.
1934         (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
1935         (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
1936         (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
1937         (prev_prev_insn_unreordered): Delete.
1938         (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
1939         (macro_start): Replace uses of prev_insn* with the equivalent history[]
1940         field.
1941
1942 2005-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
1943
1944         * doc/Makefile.am: Update as.info dependencies.
1945         * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
1946
1947 2005-03-08  Jan Beulich  <jbeulich@novell.com>
1948
1949         * doc/as.texinfo: Add sentence to indicate redefining a macro is an
1950         error, and point to .purgem documentation if someone really needs
1951         re-definitions.
1952         * NEWS: Mention macro redefinition is now an error.
1953
1954 2005-03-08  Jan Beulich  <jbeulich@novell.com>
1955
1956         * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
1957         emitted to. Add more precise diagnostics for non-fitting insns based
1958         on that. Eliminate now superfluous special casing of MLX. Clear out
1959         slot information when dropping an insn.
1960
1961 2005-03-08  Jan Beulich  <jbeulich@novell.com>
1962
1963         * config/tc-ia64.c (parse_section_name): Rename to...
1964         (cross_section): In addition to separating the name from the rest of
1965         the arguments, also carry out the operation.
1966         (dot_xdata): Use cross_section.
1967         (dot_float_cons): Likewise.
1968         (dot_xstringer): Likewise.
1969         (dot_xdata_ua): Likewise.
1970         (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
1971
1972 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
1973
1974         * po/gas.pot: Regenerate.
1975
1976 2005-03-04  David Daney  <ddaney@avtrex.com>
1977
1978         * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
1979         instead of '_gp' for -mno-shared optimization.
1980         (s_cpload): Ditto.
1981         (s_abicalls): Document it in the comment.
1982         (md_show_usage): Document the -mno-shared option.
1983
1984 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
1985
1986         * config/tc-mips.c (mips_set_options): Add sym32 field.
1987         (mips_opts): Initialize it.
1988         (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
1989         (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
1990         (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
1991         (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
1992         when deciding whether to use a symbolic %highest/%higher expansion.
1993         (macro): Likewise.  Remove o64/n32 linux hack.  Always use
1994         ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
1995         and "la".  Handle constants separately from symbolic expressions in
1996         the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
1997         and using load_register to load the high part of the address.
1998         (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
1999         (OPTION_ELF_BASE): Bump by 2.
2000         (md_longopts): Add entries for -msym32 and -mno-sym32.
2001         (md_parse_option): Handle them.
2002         (usage): Document them.
2003         (s_mipsset): Handle ".set sym32" and ".set nosym32".
2004         (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
2005         HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
2006         * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
2007         -msym32 and -mno-sym32.
2008
2009 2005-03-03  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2010
2011         * config/tc-mips.c (load_address): Implement GP optimization
2012         for 64bit address space non-PIC. Fix formatting.
2013         (macro): Likewise. Simplify code.
2014         (md_parse_option): Don't bail out if -G 0 is set for PIC code.
2015         (mips_after_parse_args): Simplify code.
2016
2017 2005-03-03  Nick Clifton  <nickc@redhat.com>
2018
2019         * expr.c (operand): Remove redundant code enclosed by #ifdef
2020         RELAX_PAREN_GROUPING....#endif.
2021
2022         * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
2023         reloc is the difference of two symbols defined in the same
2024         section.
2025
2026         * config/tc-iq2000.c (line_comment_chars): Include the # character
2027         as otherwise this breaks #APP/#NO_APP processing.
2028
2029 2005-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
2030
2031         * config/tc-arc.c(md_assemble): Remove dead code for handling
2032         immediate indexing of ld and st .
2033
2034 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
2035             Joseph Myers  <joseph@codesourcery.com>
2036
2037         * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
2038         %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
2039         (parse_relocation): Check for a word break after a relocation
2040         operator.
2041         (md_apply_fix3): Handle TLS relocations, and mark thread-local
2042         symbols.
2043
2044 2005-03-02  Alan Modra  <amodra@bigpond.net.au>
2045
2046         * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
2047
2048 2005-03-02  Jan Beulich  <jbeulich@novell.com>
2049
2050         * as.c (main): Use unlink_if_ordinary instead of unlink.
2051         * messages.c (as_fatal): Likewise.
2052
2053 2005-03-02  Jan Beulich  <jbeulich@novell.com>
2054
2055         * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
2056         accesses.
2057         (parse_register): Allow cr8...15 in all modes.
2058
2059 2005-03-02  Jan Beulich  <jbeulich@novell.com>
2060
2061         * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
2062         etc. like normal symbol references (T_ID).
2063
2064 2005-03-02  Alan Modra  <amodra@bigpond.net.au>
2065
2066         * symbols.c (fb_label_name): Fix silly thinko in last change.
2067
2068 2005-03-02  Alan Modra  <amodra@bigpond.net.au>
2069
2070         * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
2071         * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
2072
2073         * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
2074
2075 2005-03-01  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
2076
2077         PR gas/708
2078         * config/tc-arc.c (md_assemble): Initialize suffix for extension
2079         suffixes also.
2080
2081 2005-03-01  Alan Modra  <amodra@bigpond.net.au>
2082
2083         * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
2084
2085         * as.h (assert): Warning fix.
2086         * expr.c (expr): Correct assertion.
2087         * read.c (s_comm_internal): Remove assertion.
2088         * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
2089         (fixup_segment): Remove assertion.
2090         * config/tc-dlx.c (machine_ip): Remove untrue assertions.
2091         (md_apply_fix3): Likewise.
2092         * config/tc-i370.c (md_begin): Correct assertion.
2093         (i370_macro): Warning fix for assertion.
2094
2095 2005-03-01  Alan Modra  <amodra@bigpond.net.au>
2096
2097         * configure.in (AC_C_BIGENDIAN): Invoke.
2098         * configure: Regenerate.
2099         * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
2100         host variable to set string header size.
2101         * config/obj-aout.c (obj_header_append): Don't use host structs.
2102         (obj_symbol_to_chars): Likewise.
2103         (obj_emit_strings): Likewise.  Use the passed in output pointer.
2104         * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
2105         * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
2106         not sizeof host struct.
2107         (obj_header_append, obj_symbol_to_chars): Don't use host structs.
2108         (obj_emit_strings): Likewise.
2109         * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
2110         (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
2111         sizeof host struct.
2112         (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
2113         sizeof host struct.
2114         (host_number_to_chars): Define.
2115         * config/obj-hp300.c (hp300_header_append): Don't use sizeof
2116         host internal struct to set header sizes.
2117         * config/tc-i960.c (md_number_to_field): Warning fix.
2118         (md_ri_to_chars): Use host byte order.
2119         (get_cdisp, md_apply_fix3): Warning fix.
2120         * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
2121
2122 2005-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
2123
2124         * doc/c-arc.texi: Update documentation about ARC's extension
2125         instructions.
2126
2127 2005-02-27  Svein E. Seldal  <svein@dev.seldal.com>
2128
2129         * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
2130         address for myself.
2131
2132 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
2133
2134         * cgen.c: Warning fixes.
2135         * config/tc-arc.c: Likewise.
2136         * config/tc-arm.c: Likewise.
2137         * config/tc-avr.c: Likewise.
2138         * config/tc-d10v.c: Likewise.
2139         * config/tc-d30v.c: Likewise.
2140         * config/tc-frv.c: Likewise.
2141         * config/tc-frv.h: Likewise.
2142         * config/tc-h8300.c: Likewise.
2143         * config/tc-h8500.c: Likewise.
2144         * config/tc-i370.c: Likewise.
2145         * config/tc-i960.c: Likewise.
2146         * config/tc-ia64.c: Likewise.
2147         * config/tc-ip2k.c: Likewise.
2148         * config/tc-m68hc11.c: Likewise.
2149         * config/tc-maxq.c: Likewise.
2150         * config/tc-mcore.c: Likewise.
2151         * config/tc-mips.c: Likewise.
2152         * config/tc-msp430.c: Likewise.
2153         * config/tc-pj.c: Likewise.
2154         * config/tc-ppc.c: Likewise.
2155         * config/tc-ppc.h: Likewise.
2156         * config/tc-s390.c: Likewise.
2157         * config/tc-sh.c: Likewise.
2158         * config/tc-sh64.c: Likewise.
2159         * config/tc-tic4x.c: Likewise.
2160         * config/tc-tic80.c: Likewise.
2161         * config/tc-v850.c: Likewise.
2162         * config/tc-vax.c: Likewise.
2163         * config/tc-w65.c: Likewise.
2164         * config/tc-xstormy16.c: Likewise.
2165         * config/tc-z8k.c: Likewise.
2166
2167 2005-02-22  Catherine Moore  <clm@cm00re.com>
2168
2169         * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
2170         * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
2171
2172 2005-02-22  Eric Christopher  <echristo@redhat.com>
2173
2174         * config/tc-mips.c (struct proc): Change isym to
2175         func_sym. New member func_end_sym.
2176         (s_mips_ent): Update.
2177         (s_mips_end): Ditto. Add code to compute function size.
2178
2179 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
2180
2181         * read.c: Warning fixes.
2182         * config/obj-elf.c: Likewise.
2183
2184 2005-02-22  Maciej W. Rozycki  <macro@mips.com>
2185
2186         * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
2187         emitting insn.
2188
2189 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
2190
2191         * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
2192         SEC_COFF_SHARED.
2193
2194         * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
2195         SEC_TIC54X_BLOCK.
2196         (demand_empty_rest_of_line): Likewise.
2197         (tic54x_sblock): Likewise.
2198         (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
2199
2200 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
2201
2202         * read.c (address_bytes): New function.
2203         (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
2204         (potable): Add "dc.a".
2205         (cons_worker): Handle "dc.a".
2206         * doc/internals.texi (TC_ADDRESS_BYTES): Document.
2207
2208 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
2209
2210         * input-file.c (input_file_open): Rearrange to avoid warning.
2211
2212 2005-02-19  Alan Modra  <amodra@bigpond.net.au>
2213
2214         * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
2215         * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
2216         * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
2217
2218 2005-02-18  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2219
2220         * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
2221         uses after .set noat.
2222         (load_address): Likewise.
2223         (macro): Likewise. Don't try to avoid $at use by sacrificing
2224         the target register before it is stored, it won't work.
2225
2226 2005-02-17  James E Wilson  <wilson@specifixinc.com>
2227
2228         * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
2229         see an instruction that specifies a template.
2230
2231 2005-02-18  Alan Modra  <amodra@bigpond.net.au>
2232
2233         * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
2234         * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
2235         * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
2236
2237 2005-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2238
2239         * NEWS: Mention "-mhint.b=[ok|warning|error]".
2240
2241         * config/tc-ia64.c (md): Add hint_b.
2242         (emit_one_bundle): Handle md.hint_b for "hint".
2243         (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
2244         (md_show_usage): Add "-mhint.b=[ok|warning|error]".
2245         (ia64_init): Set md.hint_b to error.
2246         (md_assemble): Handle md.hint_b for "hint.b".
2247
2248         * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
2249         * doc/c-ia64.texi: Likewise.
2250
2251 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
2252
2253         * tc.h (struct relax_type, relax_typeS): Move from here..
2254         * as.h: ..to here.  Make rlx_forward and rlx_backward an offsetT.
2255         * ecoff.c (ecoff_new_file): Add appfile param.
2256         * ecoff.h (ecoff_new_file): Likewise.
2257         * itbl-lex.h: New file.
2258         * itbl-lex.l: Include itbl-lex.h.
2259         * itbl-parse.y: Likewise.
2260         (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
2261         * read.c (s_app_file_string): Mark appfile possibly unused.
2262         * subsegs.c (seg_not_empty_p): Make sec possibly unused.
2263         * subsegs.h (struct seg_info_trash): Delete.
2264         (seg_info): Use segment_info_type instead.
2265         * config/obj-coff.c (struct filename_list): Make filename const char *.
2266         * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
2267         * config/obj-elf.c (elf_file_symbol): Similarly.
2268         * config/tc-a29k.c (md_apply_fix3): Make val a valueT.  Don't use
2269         signed right shift.
2270         * config/tc-arc.c (md_operand): Warning fix.
2271         * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
2272         (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
2273         * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
2274         * config/tc-frv.c (frv_force_relocation): Warning fix.
2275         * config/tc-m68k.c (md_parse_option): Delete unused var.
2276         * config/tc-mcore.c (mylog2): Rename from log2 throughout.
2277         * config/tc-sparc.c: Likewise.
2278         (s_common): Warning fix.
2279         * config/tc-mips.c (append_insn): Use unsigned long long expressions.
2280         * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
2281         addressT.
2282         * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
2283         * config/tc-sh.c (sh_cfi_frame_initial_instructions,
2284         sh_regname_to_dw2regnum): Only define for OBJ_ELF.
2285         * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
2286         (tic4x_do_align): Use TIC_NOP_OPCODE.
2287         * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
2288         * config/tc-vax.c: Include netinet/in.h.
2289         (tc_headers_hook): Formatting.
2290         * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
2291
2292 2005-02-17  Jan Beulich  <jbeulich@novell.com>
2293
2294         * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
2295         parsing inN, locN, outN. Set 'idx' to offset register number starts
2296         at. Don't handle numbers with leading zeroes or beyond 95. Remove
2297         pointless cast.
2298
2299 2005-02-16  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2300
2301         * config/tc-mips.c (load_address): Fix formatting.
2302         (macro): Don't use AT if .set noat is in effect. Fix formatting.
2303         Catch macros which are unexpandable without AT. Remove duplicate
2304         zeroing of used_at.
2305         (macro2): Remove duplicate zeroing of used_at.
2306
2307 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
2308
2309         * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
2310         than zero.
2311
2312 2005-02-15  Nigel Stephens  <nigel@mips.com>
2313             Maciej W. Rozycki  <macro@mips.com>
2314
2315         * config/tc-mips.c (reloc_needs_lo_p): Handle
2316         BFD_RELOC_MIPS16_HI16_S.
2317         (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
2318         (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
2319         and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
2320         complaints on.
2321         (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
2322         BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
2323         Call my_getSmallExpression() to parse percent operators.
2324         (percent_op_match, mips_percent_op): Separate definitions.
2325         (mips16_percent_op): Define percent operators for the MIPS16 mode.
2326         (parse_relocation): Handle the MIPS16 mode using
2327         mips16_percent_op.
2328         (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
2329         BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
2330
2331 2005-02-15  Jan Beulich  <jbeulich@novell.com>
2332
2333         * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
2334         instead of explicitly dealing with the translation; exclude
2335         relocations that are already pcrel, however.
2336
2337 2005-02-15  Jan Beulich  <jbeulich@novell.com>
2338
2339         * config/tc-ia64.c: Include limits.h (if available).
2340         (gr_values[0]): Set path to INT_MAX.
2341         (dot_reg_val): Don't allow changing value of r0. Limit range of
2342         general registers at r127.
2343         (specify_resource): Default resource index is -1. Don't set resource
2344         index (in case IA64_RS_RSE) without setting the specific flag.
2345         (note_register_values): Check operand is O_constant before tracking
2346         input value of moves. Add tracking for dep.z with constant inputs.
2347         (print_dependency): Resource index of specific resource may be zero.
2348         (check_dependencies): Likewise.
2349
2350 2005-02-15  Jan Beulich  <jbeulich@novell.com>
2351
2352         * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
2353         reg_class. Check operands and emit diagnostics for illegal use of
2354         registers.
2355
2356 2005-02-15  Jan Beulich  <jbeulich@novell.com>
2357
2358         * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
2359         new variables type, suffix, and width. Handle
2360         BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
2361         Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
2362         FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
2363         FUNC_DTP_RELATIVE case. Return incoming relocation type if
2364         BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
2365         if unable to translate relocation type, using the new variables.
2366
2367 2005-02-15  Jan Beulich  <jbeulich@novell.com>
2368
2369         * config/tc-ia64.h (ia64_symbol_chars): Declare.
2370         (ty_symbol_chars): Define.
2371         * config/tc-ia64.c (ia64_symbol_chars): Define.
2372
2373 2005-02-15  Jan Beulich  <jbeulich@novell.com>
2374
2375         * config/tc-ia64.c (ia64_parse_name): Only update next character if
2376         input_line_pointer was advanced.
2377
2378 2005-02-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2379
2380         * config/tc-sh.c (md_apply_fix3): Add parentheses around &
2381         within |.
2382
2383 2005-02-13  Jan Beulich  <jbeulich@novell.com>
2384
2385         * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
2386         (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
2387         indicator.
2388         (ia64_init): Set md.detect_dv.
2389         (ia64_start_line): New static variable warned. Warn only once when
2390         encountering explicit stops in automatic mode.
2391         * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
2392         * NEWS: Mention new default mode.
2393
2394 2005-02-13  Jan Beulich  <jbeulich@novell.com>
2395
2396         * config/tc-ia64.c (dot_rot): Add comment that name strings should
2397         be freed when wiping out previous state. Canonicalize names before
2398         use. Free name string when detecting redefinition.
2399         (dot_pred_rel): Call generic expression parser to process arguments.
2400         Handle O_register case for individual predicates and O_subtract for
2401         ranges.
2402         (ia64_parse_name): Canonicalize name before looking it up in dynamic
2403         register hash.
2404         (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
2405         Warn if multiple found, issue error if resulting symbol name has zero
2406         length.
2407         (dot_alias): Canonicalize name before use.
2408
2409 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
2410
2411         * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
2412         and 0 for error.
2413         (in_procedure): Return -1 for warning.
2414         (in_prologue): Likewise.
2415         (in_body): Likewise.
2416
2417 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
2418
2419         * config/tc-ia64.c (dot_xdata): Undo the last change.
2420         (dot_float_cons): Likewise.
2421         (dot_xstringer): Likewise.
2422         (dot_xdata_ua): Likewise.
2423         (dot_float_cons_ua): Likewise.
2424
2425 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
2426
2427         * NEWS: Mention "-munwind-check=[warning|error]".
2428
2429         * config/tc-ia64.c (md): Add unwind_check.
2430         (unwind_diagnostic): New.
2431         (in_procedure): Call unwind_diagnostic when a directive isn't
2432         in procedure.
2433         (in_prologue): Call unwind_diagnostic when a directive isn't in
2434         prologue.
2435         (in_body): Call unwind_diagnostic when a directive isn't in
2436         body region.
2437         (dot_endp): Set md.unwind_check to error before calling
2438         in_procedure and restore it after. When the name is missing or
2439         couldn't be found, use the one from the last .proc if
2440         md.unwind_check isn't error. Warn if md.unwind_check is
2441         warning.
2442         (md_parse_option): Handle "-munwind-check=[warning|error]".
2443         (md_show_usage): Add "-munwind-check=[warning|error]".
2444         (ia64_init): Set md.unwind_check to warning.
2445
2446         * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
2447         * doc/c-ia64.texi: Likewise.
2448
2449 2005-02-11  Jan Beulich  <jbeulich@novell.com>
2450
2451         * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
2452         (LEX_QM): Likewise.
2453         (ia64_parse_name): New third parameter.
2454         (md_parse_name): Pass third argument.
2455         * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
2456         (md_operand): Handling of '@'-prefixed symbols moved from here...
2457         (ia64_parse_name): ...to here.
2458
2459 2005-02-11  Jan Beulich  <jbeulich@novell.com>
2460
2461         * config/tc-ia64.c (md): Remove last_groups and group_idx.
2462         (errata_nop_necessary_p): Remove declaraction and definition.
2463         (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
2464         update md.group_idx. Don't reset md.last_groups.
2465
2466 2005-02-11  Jan Beulich  <jbeulich@novell.com>
2467
2468         * config/tc-ia64.c (parse_section_name): Handle non-quoted first
2469         argument.
2470         (dot_xdata): Free section name after use.
2471         (dot_float_cons): Likewise.
2472         (dot_xstringer): Likewise.
2473         (dot_xdata_ua): Likewise.
2474         (dot_float_cons_ua): Likewise.
2475         (md_pseudo_table): Add xdata16 and xdata16.ua.
2476
2477 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2478
2479         * doc/all.texi: Add IA64.
2480         * doc/as.texinfo: Likewise.
2481
2482         * doc/c-ia64.texi: Fix typos.
2483
2484 2005-02-10  Julian Brown  <julian@codesourcery.com>
2485
2486         * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
2487         BFD_RELOC_UNUSED.
2488         (do_t_push_pop): Likewise.
2489         (md_assemble): Likewise.
2490         (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
2491         BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
2492         (create_unwind_entry): Output dependency on the required personality
2493         routines.
2494
2495 2005-02-07  Nathan Sidwell  <nathan@codesourcery.com>
2496
2497         * as.h (seg_not_empty_p): Return int, not bfd_boolean.
2498         * subsegs.c (seg_not_empty_p): Likewise.
2499
2500 2005-02-07  Inderpreet Singh <inderpreetb@noida.hcltech.com>
2501
2502         * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
2503         relative jump calculation.
2504         <md_convert_frag) : Likewise.
2505         <output_disp): Likewise.
2506
2507 2005-02-07  Hans-Peter Nilsson  <hp@axis.com>
2508
2509         * write.c (write_object_file): Recognize warning-symbol construct
2510         and skip object- and target- handling for the second symbol.
2511
2512 2005-02-02  Jan Beulich  <jbeulich@novell.com>
2513
2514         * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
2515         designators along with quoted ones. Free copy of quoted designator
2516         when done.
2517
2518 2005-02-01  Ben Elliston  <bje@au.ibm.com>
2519
2520         * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
2521         config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
2522         config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
2523         config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
2524         config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
2525         config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
2526         config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
2527         config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
2528         config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
2529         config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
2530         config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
2531         config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
2532         config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
2533         #if 0'd code throughout.
2534
2535 2005-01-31  Nick Clifton  <nickc@redhat.com>
2536
2537         * as.c (parse_args): Bump copyright date reported by --version to
2538         2005.
2539
2540 2005-01-31  Nick Clifton  <nickc@redhat.com>
2541
2542         * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
2543         and vax-vms.
2544
2545 2005-01-31  Jan Beulich  <jbeulich@novell.com>
2546
2547         * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
2548         that can end with .endr in that case. Make requiring/permitting
2549         pseudo-ops without leading dot closer to the logic in read.c serving
2550         the same purpose.
2551         (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
2552         ignored.
2553
2554 2005-01-31  Jan Beulich  <jbeulich@novell.com>
2555
2556         * macro.c (do_formals): Adjust to no longer accept empty parameter
2557         names.
2558         (define_macro): Adjust to no longer accept empty macro name, garbage
2559         following the parameters, or macros that were previously defined.
2560         * read.c (s_bad_end): Declare.
2561         (potable): Add endm. Handler for endr and endm is s_bad_end.
2562         (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
2563         and .endr.
2564         * read.h (s_bad_endr): Remove.
2565
2566 2005-01-31  Jan Beulich  <jbeulich@novell.com>
2567
2568         * config/tc-ia64.c (parse_operands): Parse all specified operands,
2569         immediately discarding (but counting) those exceeding the maximum
2570         possible amount. Track whether output and input operand counts ever
2571         matched, and use this to better indicate which of the operands/
2572         operand types was wrong; specifically don't default to pointing to
2573         the first operand.
2574
2575 2005-01-31  Jan Beulich  <jbeulich@novell.com>
2576
2577         * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
2578         variable in dot_endp). Add body and insn. Make prologue,
2579         prologue_mask, body, and insn bitfields.
2580         (fixup_unw_records): Remove spurious new-lines from end of diagnostic
2581         messages.
2582         (in_procedure, in_prologue, in_body): New.
2583         (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
2584         dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
2585         dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
2586         dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
2587         dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
2588         dot_personality): Use the appropriate one of the above.
2589         (dot_proc): Clear unwind.proc_start; set to current location only if
2590         none of the entry points were valid. Check for non-zero-length entry
2591         point names. Check that entry points aren't defined, yet. Clear
2592         unwind.prologue, unwind.body, and unwind.insn.
2593         (dot_body): Call in_procedure. Check that first directive in procedure
2594         had no insns emitted before. Set unwind.body.
2595         (dot_prologue): Call in_procedure. Check that not already in prologue.
2596         Check that first directive in procedure had no insns emitted before.
2597         Clear unwind.body.
2598         (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
2599         length entry point names. Check that entry points became defined.
2600         (md_assemble): Set unwind.insn once unwind.proc_start is defined.
2601
2602 2005-01-31  Jan Beulich  <jbeulich@novell.com>
2603
2604         * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
2605         before actually using it. Don't generate an error in manual bundling
2606         mode when looking at an insn requiring slot 2 but not yet at slot 2.
2607         Don't generate an error in manual bundling mode when looking at an
2608         insn required to be last in its group but the required slot hasn't
2609         been reached, yet. Allow conversion from MII to MI;I for bundle
2610         consisting of only 2 insns with the stop between them. Suppress
2611         various meaningless errors resulting from detecting earlier ones.
2612
2613 2005-01-31  Jan Beulich  <jbeulich@novell.com>
2614
2615         * config/tc-ia64.c (parse_operands): Also handle alloc without first
2616         input being ar.pfs.
2617
2618 2005-01-28  Christian Groessler  <chris@groessler.org>
2619
2620         * config/tc-z8k.c (md_assemble): Improve error detection.
2621
2622 2005-01-28  Jan Beulich  <jbeulich@novell.com>
2623
2624         * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
2625         for personality routine pointer only if there is one.
2626         (ia64_convert_frag): Likewise.
2627         (generate_unwind_image): Likewise.
2628
2629 2005-01-27  Christian Groessler  <chris@groessler.org>
2630
2631         * config/tc-z8k.c (INSERT): Remove, not used anywhere.
2632         (md_apply_fix3): Make relative branches out of range an error
2633         instead of a warning.  Display correct line number for out of
2634         range branches/calls/memory accesses.
2635
2636 2005-01-27  Nathan Sidwell  <nathan@codesourcery.com>
2637
2638         * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
2639         to emit .debug_line and other debug sections.
2640         * as.h (seg_not_empty_p): Declare.
2641         * subsegs.c (seg_not_empty_p): New predicate.
2642
2643 2005-01-27  Andrew Cagney  <cagney@gnu.org>
2644
2645         * configure: Regenerate to track ../gettext.m4 change.
2646
2647 2005-01-27  Jan Beulich  <jbeulich@novell.com>
2648
2649         * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
2650
2651 2005-01-27  Jan Beulich  <jbeulich@novell.com>
2652
2653         * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
2654         to/from application registers dynamic insns.
2655         (md_assemble): Defer resolution of move to/from application registers
2656         dynamic insns when they can be issued on either the I- or M-units.
2657
2658 2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
2659
2660         * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
2661         2004-12-10  Alexandre Oliva  <aoliva@redhat.com>
2662         * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
2663         2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
2664         * cgen.c (gas_cgen_parse_operand): Handle
2665         CGEN_PARSE_OPERAND_SYMBOLIC.
2666         * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
2667         (frv_force_relocation): Likewise.  Fix handling of PIC
2668         relocations.
2669         (md_apply_fix3): Likewise.
2670
2671 2005-01-21  Ben Elliston  <bje@au.ibm.com>
2672
2673         * as.h: Remove #if 0'd code.
2674         * atof-generic.c (atof_generic): Likewise.
2675         * ecoff.c (ecoff_directive_frame): Likewise.
2676         * frags.h (FRAG_APPEND_1_CHAR): Likewise.
2677         * itbl-ops.c (itbl_add_reg): Likewise.
2678         * listing.c (calc_hex): Likewise.
2679         * read.c (MASK_CHAR): Likewise.
2680         * subsegs.c (subsegs_print_statistics): Likewise.
2681         * symbols.c (indent): Likewise.
2682         * write.c (write_relocs): Likewise.
2683         (write_object_file): Likewise.
2684         (relax_frag): Likewise.
2685
2686 2005-01-20  Nick Clifton  <nickc@redhat.com>
2687
2688         * as.c (std_longopts): Add an entry for "--a" in order to prevent
2689         getopt_long_only() from considering -a as an abbreviation for
2690         --alternate.
2691         (parse_args): Fix the parsing of -a=<file>.
2692
2693 2005-01-20  Alan Modra  <amodra@bigpond.net.au>
2694
2695         PR gas/684
2696         * read.c (s_incbin): Adjust default count for skip.  Check validity
2697         of count and skip rigorously.
2698
2699 2005-01-19  Fred Fish  <fnf@specifixinc.com>
2700
2701         * config/tc-mips.c (dummy_opcode): Add init for new struct member.
2702
2703 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
2704
2705         * read.c (convert_to_bignum): New function, split out from...
2706         (emit_expr): ...here.  Handle the case where X_add_number is
2707         positive and the input value is negative.
2708         (output_big_sleb128): Fix setting of continuation bit.  Check whether
2709         the final byte needs to be sign-extended.  Fix size-shrinking loop.
2710         (emit_leb128_expr): When generating a signed leb128, see whether the
2711         sign of an O_constant's X_add_number matches the sign of the input
2712         value.  Use a bignum if not.
2713
2714 2005-01-17  Andrew Stubbs  <andrew.stubbs@st.com>
2715
2716         * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
2717         arch_sh_up in order to match the external name and make the
2718         testsuite's job easier.
2719
2720 2005-01-14  H.J. Lu  <hongjiu.lu@intel.com>
2721
2722         PR 659
2723         * config/tc-i386.c (i386_scale): Disallow 0 scale.
2724
2725 2005-01-12  Nick Clifton  <nickc@redhat.com>
2726
2727         * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
2728         ignored_arguments array.
2729
2730 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2731
2732         * write.c (write_object_file): Disallow a symbol equated to
2733         common symbol.
2734
2735 2005-01-10  Inderpreet Singh <inderpreetb@noida.hcltech.com>
2736
2737         * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
2738         bfd_mach_maxq20.
2739         (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
2740         (maxq_target): New function: Set the machine type.
2741
2742 2005-01-06  Paul Brook  <paul@codesourcery.com>
2743
2744         * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
2745         (md_begin): Handle TE_VXWORKS for FP defaults.
2746         (md_apply_fix3): Correct rela offsets.
2747         (elf32_arm_target_format): Add VxWorks targets.
2748
2749 2005-01-06  Paul Brook  <paul@codesourcery.com>
2750
2751         * configure.tgt: Set em=vxworks for *-*-vxworks.
2752         * config/te-vxworks.h: New File.
2753
2754 2005-01-06  Paul Brook  <paul@codesourcery.com>
2755
2756         * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
2757
2758 2005-01-04  Dmitry Diky  <diwil@spec.ru>
2759
2760         * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
2761         global label.
2762
2763 2005-01-03  David Mosberger  <davidm@hpl.hp.com>
2764
2765         * config/tc-ia64.c (md): Add member "loc_directive_seen".
2766         (dot_loc): New function.
2767         (md_pseudo_table): Add entry to map .loc to dot_loc().
2768         (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
2769         seen a .loc directive or we're generating DWARF2 debug info for
2770         assembly source.
2771
2772 2004-12-29  Alan Modra  <amodra@bigpond.net.au>
2773
2774         PR gas/619
2775         * read.c (s_comm_internal): Don't zero end of name until size
2776         expression has been parsed.
2777
2778 2004-12-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2779
2780         * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
2781
2782 2004-12-23  Tomer Levi  <Tomer.Levi@nsc.com>
2783
2784         * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
2785         case).
2786
2787 2004-12-22  Ian Lance Taylor  <ian@airs.com>
2788
2789         * configure.tgt: New.
2790         * configure.in: Move setting of cpu_type, fmt, etc., to
2791         configure.tgt.
2792         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
2793         $(srcdir)/configure.tgt.
2794         * configure, Makefile.in: Rebuild.
2795
2796 2004-12-22  Klaus Rudolph  <lts-rudolph@gmx.de>
2797
2798         * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
2799         R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
2800         instructions.
2801         (avr_offset_expression): New function to parse offsets for LDI
2802         instructions.
2803         (avr_operand): Use it.
2804         (md_apply_fix3): Generate the relocs.
2805
2806 2004-12-16  Andrew Stubbs  <andrew.stubbs@st.com>
2807
2808         * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
2809         BFD_RELOC_SH_IMMS10BY8 relocation.
2810
2811         * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
2812         than just ignoring bad code.
2813
2814 2004-12-16  Richard Sandiford  <rsandifo@redhat.com>
2815
2816         * config/tc-v850.c (handle_lo16): New function.
2817         (v850_reloc_prefix): Use it to check lo().
2818         (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
2819
2820 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
2821
2822         * configure.in: Add s390x-ibm-tpf support.
2823         * configure: Regenerate.
2824
2825 2004-12-15 Jan Beulich  <jbeulich@novell.com>
2826
2827         * config/obj-elf.c (obj_elf_change_section): Only set type and
2828         attributes on new sections. Emit warning when type of re-declared
2829         section doesn't match.
2830
2831 2004-12-15 Jan Beulich  <jbeulich@novell.com>
2832
2833         * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
2834         '.cfi_startproc simple' doesn't inherit the old value.
2835
2836 2004-12-15  Jan Beulich  <jbeulich@novell.com>
2837
2838         * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
2839         to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
2840         generation to emit a factored offset.
2841
2842 2004-12-10  Ian Lance Taylor  <ian@wasabisystems.com>
2843
2844         * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
2845         which is too large in the case of NO_PIC without 64-bit
2846         addresses.
2847
2848         * config/tc-mips.c (mips_in_shared): New static variable.
2849         (macro_build_lui): Permit "_gp" if !mips_in_shared.
2850         (md_longopts): Add -mshared and -mno-shared.
2851         (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
2852         (s_cpload): Implement !mips_in_shared case.
2853         (s_cpsetup): Likewise.
2854         * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
2855         * NEWS: Mention -mno-shared.
2856
2857 2004-12-09  Paul Brook  <paul@codesourcery.com>
2858
2859         * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
2860         for function start.
2861
2862 2004-12-09  Ian Lance Taylor  <ian@wasabisystems.com>
2863
2864         * config/tc-mips.c (append_insn): If we emit a nop during a relax
2865         sequence, increase the size of the sequence.
2866
2867         * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
2868         use CPU_RM9000.
2869
2870 2004-12-07  Ben Elliston  <bje@gnu.org>
2871
2872         * read.c (s_align): Use an align_limit temporary to allay a GCC
2873         signed/unsigned comparison warning.
2874
2875 2004-12-01  Mark Mitchell  <mark@codesourcery.com>
2876
2877         * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
2878         * configure.in: Use it for arm*-*-linux-gnueabi*.
2879         * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
2880         * config/te-armlinuxeabi.h: New file.
2881         * Makefile.in: Regenerated.
2882         * aclocal.m4: Likewise.
2883         * configure: Likewise.
2884         * doc/Makefile.in: Regenerated.
2885
2886 2004-12-02  Bob Wilson  <bob.wilson@acm.org>
2887
2888         * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
2889         (xtensa_restore_emit_state): Likewise.
2890
2891 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
2892
2893         * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
2894         (s_align): Use it.
2895
2896 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
2897
2898         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
2899         * Makefile.in: Regenerate.
2900
2901 2004-11-29  Tomer Levi  <Tomer.Levi@nsc.com>
2902
2903         * config/tc-crx.c: Major code cleanup. Remove unused variables and
2904         functions, give functions a meaningful name, add comments.
2905         (check_range): New function - Replace operand size calculation
2906         with range checking.
2907         (assemble_insn): Update Algorithm, improve error issuing.
2908         (enum op_err): New.
2909         (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
2910         handling.
2911
2912 2004-11-29  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2913
2914         * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
2915         miss between different section in the same module.
2916         (tc_gen_reloc): Likewise.
2917
2918 2004-11-25  Theodore A. Roth  <troth@openavr.org>
2919
2920         * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
2921         atmega325, atmega3250, atmega645 and atmega6450.
2922
2923 2004-11-25 Jan Beulich  <jbeulich@novell.com>
2924
2925         * config/tc-i386.c (optimize_imm): Adjust immediates to only those
2926         permissible for the selected instruction suffix.
2927         (process_suffix): For DefaultSize instructions, suppressing the
2928         guessing of a 'q' suffix if the instruction doesn't support it is
2929         pointless, because only an 'l' suffix can be guessed in this place.
2930
2931 2004-11-24  Nick Clifton  <nickc@redhat.com>
2932
2933         * config/tc-iq2000.c: Remove support for IQ10 processor.
2934         Convert to ISO C90 formatting.
2935         * config/tc-iq2000.h: Likewise.
2936
2937 2004-11-23  Nick Clifton  <nickc@redhat.com>
2938
2939         * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
2940         in this table.  They should be correct now.
2941
2942 2004-11-23 Jan Beulich <jbeulich@novell.com>
2943
2944         * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
2945         indicate the MMX extensions added by both SSE and 3DNow!A.
2946         (Cpu3dnowA): Declare.
2947         (CpuUnknownFlags): Update.
2948         * config/tc-i386.c (cpu_sub_arch_name): Declare.
2949         (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
2950         neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
2951         3DNow!. Athlon additionally implies 3DNow!A. Several new
2952         entries (those starting with a dot are for sub-arch specification).
2953         (set_cpu_arch): Handle sub-arch specifications.
2954         (parse_insn): Distinguish between instructions not supported because
2955         of insufficient CPU features and because of 64-bit mode.
2956         * doc/c-i386.texi: Describe enhanced .arch directive.
2957
2958 2004-11-22  Bob Wilson  <bob.wilson@acm.org>
2959
2960         * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
2961
2962 2004-11-22  Bob Wilson  <bob.wilson@acm.org>
2963
2964         * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
2965         without a corresponding .debug_info section.
2966
2967 2004-11-22  Hans-Peter Nilsson  <hp@axis.com>
2968
2969         * read.c (potable): Add "error" and "warning".
2970         (s_errwarn): New function.
2971         * read.h (s_errwarn): Declare.
2972         * doc/as.texinfo (Error, Warning): Document .error and .warning.
2973
2974 2004-11-22  Nick Clifton  <nickc@redhat.com>
2975
2976         * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
2977         c_dot_file_symbol.
2978
2979 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
2980
2981         * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
2982         struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
2983
2984 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
2985
2986         * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
2987         (coff_adjust_symtab): Adjust call.
2988         (crawl_symbols): Likewise.
2989         * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
2990         (obj_app_file): Adjust.
2991
2992 2004-11-18  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
2993
2994         * configure.in: Enable bfd_assember for the MAXQ port.
2995         * configure: Regenerate.
2996
2997 2004-11-12  Bob Wilson  <bob.wilson@acm.org>
2998             Sterling Augustine  <sterling@tensilica.com>
2999
3000         * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
3001         there is a conflict.
3002         (check_t1_t2_reads_and_writes): Check for both reads and writes to
3003         interfaces that are related as determined by xtensa_interface_class_id.
3004
3005 2004-11-12  Nick Clifton  <nickc@redhat.com>
3006
3007         * config/tc-mn10300.c (md_relax_table): Fix off by one negative
3008         offsets for conditional branches.
3009
3010 2004-11-11  Bob Wilson  <bob.wilson@acm.org>
3011
3012         * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
3013
3014 2004-11-10  Bob Wilson  <bob.wilson@acm.org>
3015
3016         * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
3017         relaxing at the end of a loop.  Don't mark frags as UNREACHABLE or
3018         MAYBE_UNREACHABLE.
3019         (relax_frag_immed): Update call to update_next_frag_state.
3020
3021 2004-11-10  Alan Modra  <amodra@bigpond.net.au>
3022
3023         * obj.h (struct format_ops <app_file>): Add int param.
3024         * read.h (s_app_file_string): Likewise.
3025         * read.c (s_app_file_string): Likewise.
3026         (s_app_file): Adjust s_app_file_string call.
3027         * config/tc-mips.c (s_mips_file): Likewise.
3028         * config/obj-coff.h (obj_app_file): Add app param.
3029         * config/obj-ecoff.h (obj_app_file): Likewise.
3030         * config/obj-multi.h (obj_app_file): Likewise.
3031         * config/obj-elf.h (elf_file_symbol): Likewise.
3032         * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
3033         if called for # preprocessor lines.
3034
3035 2004-11-08  H.J. Lu  <hongjiu.lu@intel.com>
3036
3037         PR 528
3038         * symbols.c (resolve_symbol_value): Convert weak symbols only
3039         for Windows PECOFF.
3040         (symbol_equated_reloc_p): Don't equate weaks when relocating
3041         only for Windows PECOFF.
3042
3043 2004-11-08  Tomer Levi  <Tomer.Levi@nsc.com>
3044
3045         * config/tc-crx.c (print_insn): Check and set insn_addr.
3046         * config/tc-crx.h (md_frag_check): Define.
3047
3048 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
3049             Vineet Sharma      <vineets@noida.hcltech.com>
3050
3051         * configure.in: Add support for new target maxq-coff.
3052         * configure: Regenerate.
3053         * NEWS: Mention new support.
3054         * config/tc-maxq.c: New file.
3055         * config/tc-maxq.h: New file.
3056         * config/obj-coff.h: Add support for maxq-coff.
3057
3058 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3059
3060         * symbols.c (any_external_name): Define.
3061         (resolve_symbol_value): Convert weak symbols.
3062         (S_SET_EXTERNAL): Support any_external_name.
3063         (S_SET_NAME): Qualify parameter const.
3064         (symbol_equated_reloc_p): Equate to weaks when relocating.
3065         * symbols.h (S_SET_NAME): Qualfiy parameter const.
3066         * tc.h (any_external_name): Declare.
3067         * config/obj-coff.c ("coff/pe.h"): Include for BFD
3068         assemblers also.
3069         (weak_is_altname): Declare and define.
3070         (weak_name2altname): Same.
3071         (weak_altname2name): Same.
3072         (weak_uniquify): Same.
3073         (weak_altprefix): Define.
3074         (obj_coff_weak): Change .weak syntax and handling.
3075         (coff_frob_symbol): Fix PE weak symbol alternates.
3076         * config/obj-coff.h (USE_UNIQUE): Define.
3077         * config/tc-i386.c (md_apply_fix3): Assume weak symbols
3078         are in another segment.
3079         (tc_gen_reloc): Remove broken addend hack.
3080         doc/as.texinfo: Update.
3081
3082 2004-11-05  Sterling Augustine  <sterling@tensilica.com>
3083
3084         * config/tc-xtensa.c (total_frag_text_expansion): New.
3085         (md_estimate_size_before_relax): Use it.
3086         (find_address_of_next_align_frag): Likewise.
3087
3088 2004-11-05  Tomer Levi  <Tomer.Levi@nsc.com>
3089
3090         * config/tc-crx.c: Rename argument types.
3091         (processing_arg_number): Rename to 'cur_arg_num'.
3092         (get_number_of_bits): Rename to 'set_operand_size'.
3093         (get_operandtype): Rename to 'parse_operand', totally rewrite.
3094         (set_cons_rparams): Rename to 'set_operand', totally rewrite.
3095         (set_indexmode_parameters): Remove function, integrate its code into
3096         'set_operand'.
3097         (set_operand_size): Get rid of 'Operand Number' function parameter -
3098         use global variable 'cur_arg_num' instead.
3099         Use a local 'argument' pointer to reference the current argument.
3100         (parse_operand): Likewise.
3101         (set_operand): Likewise.
3102         (process_label_constant): Likewise.
3103
3104 2004-11-04  Bob Wilson  <bob.wilson@acm.org>
3105
3106         * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
3107         (add_section_rename): Delete.  Inlined into...
3108         (build_section_rename): ...here.  Use xstrdup instead of strdup.
3109         (xtensa_section_rename): Drop "const" from argument and return types.
3110         (md_show_usage): Indent to match show_usage().
3111         * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
3112         (tc_canonicalize_section_name): Define.
3113         (md_elf_section_rename): Remove unused macro.
3114         * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
3115         * doc/c-xtensa.texi (Xtensa Options): Likewise.
3116         (Frame Directive): Delete.
3117
3118 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
3119
3120         * configure.in: Remove arm-*-oabi and thumb-*-oabi.
3121         * config/tc-arm.c (target_oabi): Delete.
3122         (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
3123         (arm_opts): Remove moabi.
3124         * doc/as.texinfo (Overview): Remove documentation of -moabi.
3125         * doc/c-arm.texi (ARM Options): Likewise.
3126         * configure: Regenerated.
3127
3128 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
3129
3130         * configure.in (crisv32): Recognize.  AC_DEFINE_UNQUOTED
3131         DEFAULT_CRIS_ARCH.  Handle crisv32-*-linux-gnu* like
3132         cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
3133         * configure: Regenerate.
3134         * config/tc-cris.c (enum cris_archs): New.
3135         (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
3136         (cris_insn_ver_valid_for_arch): New functions.
3137         (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
3138         (cris_arch): New variable.
3139         (md_pseudo_table): New pseudo .arch.
3140         (err_for_dangerous_mul_placement): Initialize according to
3141         DEFAULT_CRIS_ARCH.
3142         (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
3143         All users changed.
3144         (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
3145         (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
3146         (BRANCH_WF_V32, BRANCH_WB_V32): New.
3147         (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
3148         use in md_cris_relax_table.
3149         (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
3150         STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3151         Update and improve head comment.
3152         (OPTION_PIC): Define in terms of previous option, OPTION_US.
3153         (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
3154         (OPTION_ARCH): New.
3155         (md_longopts): New option --march=...
3156         (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
3157         macros.
3158         (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
3159         (HANDLE_RELAXABLE): New macro.
3160         (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
3161         cases.  Check for weak symbols and assume not relaxable.  Handle
3162         STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
3163         STATE_ABS_BRANCH_V32, STATE_LAPC.  Use new variable symbolP, not
3164         fragP->fr_symbol.
3165         (md_convert_frag): Handle STATE_COND_BRANCH_V32,
3166         STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3167         (cris_create_short_jump): Adjust for CRISv32.
3168         (cris_relax_frag): Handle new states.
3169         (md_create_long_jump): Ditto.  Emit error for common_v10_v32.
3170         (md_begin): Define symbols "..asm.arch.cris.v32",
3171         "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
3172         "..asm.arch.cris.any_v0_v10".  Use cris_insn_ver_valid_for_arch
3173         when entering opcode table entry points.
3174         (md_assemble): Adjust branch handling for CRISv32.  Handle LAPC
3175         relaxation.  In fix_new_exp call for main insn, pass 1 for pcrel
3176         parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
3177         (cris_process_instruction): Initialize out_insnp->insn_type to
3178         CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
3179         <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
3180         cases.
3181         <case 'm'>: Check that modified_char == '.'.
3182         <invalid operands>: Consume the rest of the line.
3183         When operands don't match, skip over subsequent insns with
3184         non-matching version specifier but same mnemonic.
3185         <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
3186         special registers in CRISv32 are always 32 bit long.
3187         <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
3188         New cases.
3189         (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
3190         and compatible.  Recognize "ACR" for v32, unless followed by "+".
3191         (get_spec_reg): Consider cris_arch when looking up register.
3192         (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
3193         v32 or compatible.
3194         (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
3195         (cris_get_expression): Restore input_line_pointer if failing "early".
3196         (get_flags): Consider cris_arch and recognize flags accordingly.
3197         (branch_disp): Adjust for CRISv32.
3198         (gen_cond_branch_32): Similar.  Emit error for common_v10_v32.
3199         (cris_number_to_imm): Use as_bad_where, not as_bad.  Remove
3200         related FIXME.  Don't insist on BFD_RELOC_32_PCREL fixup to be
3201         resolved.  Don't enter zeros in object file for
3202         BFD_RELOC_32_PCREL.
3203         <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
3204         <case BFD_RELOC_CRIS_SIGNED_8>: New case.
3205         (md_parse_option): Break out "return 1".
3206         <OPTION_ARCH> New case.
3207         (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
3208         <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
3209         <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
3210         <case BFD_RELOC_32_PCREL>: New cases.
3211         Addends for non-zero fx_pcrel are too in fx_offset.
3212         (md_show_usage): Show --march=<arch>.
3213         (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
3214         (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
3215         (s_syntax) <struct syntaxes>: Properly constify member operand.
3216         * config/tc-cris.h (TARGET_MACH): Define.
3217         (cris_mach): Declare.
3218         * doc/as.texinfo (Overview) <CRIS>: Add --march=...
3219         * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
3220         (CRIS-Opts): Document --march=...
3221         (CRIS-Pseudos): Document .arch.
3222
3223 2004-11-04 Jan Beulich <jbeulich@novell.com>
3224
3225         * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
3226         intel syntax and no register prefix, allow $ in symbol names when
3227         intel syntax.
3228         (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
3229         (intel_float_operand): Add fourth return value indicating math control
3230         operations. Make classification more precise.
3231         (md_assemble): Complain if memory operand of mov[sz]x has no size
3232         specified.
3233         (parse_insn): Translate word operands to floating point instructions
3234         operating on integers as well as control instructions to short ones
3235         as expected by AT&T syntax. Translate 'd' suffix to short one only for
3236         floating point instructions operating on non-integer operands.
3237         (match_template): Remove fldcw special case. Adjust q-suffix handling
3238         to permit it on fild/fistp/fisttp in AT&T mode.
3239         (process_suffix): Don't guess DefaultSize insns' suffix from
3240         stackop_size for certain floating point control instructions. Guess
3241         suffix for branch and [ls][gi]dt based on flag_code. Split error
3242         messages for Intel and AT&T syntax, and make the condition more strict
3243         for the former. Adjust suppressing of generation of operand size
3244         overrides.
3245         (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
3246         OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
3247         more error checking.
3248         * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
3249         SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
3250
3251 2004-11-03  Hans-Peter Nilsson  <hp@axis.com>
3252
3253         * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
3254         md_short_jump_size, md_long_jump_size.
3255         * write.c [!WORKING_DOT_WORD]: Ditto.
3256         * tc.h [!WORKING_DOT_WORD]: Declare them here.  Drop const
3257         qualifier.
3258         * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
3259         declare.
3260         * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
3261         const qualifier in these definitions.
3262         * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
3263         config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
3264
3265 2004-11-02  Nick Clifton  <nickc@redhat.com>
3266
3267         * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
3268         table before deciding to produce a .debug_line section to match up
3269         with a user provided .debug_info section.
3270
3271 2004-10-28  Tomer Levi  <Tomer.Levi@nsc.com>
3272
3273         * config/tc-crx.c (getreg_image): Bug fix, a return value was
3274         mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
3275
3276 2004-10-27  Tomer Levi  <Tomer.Levi@nsc.com>
3277
3278         * config/tc-crx.c: Remove global variable 'post_inc_mode'.
3279         (get_flags): New function.
3280         (get_number_of_bits): Edit comments, update numeric values to
3281         supported sizes.
3282         (process_label_constant): Don't support the colon
3283         format (SYMBOL:[s|m|l]).
3284         (set_cons_rparams): Support argument type 'arg_rbase'.
3285         (get_operandtype): Bug fix in 'rbase' operand type parsing.
3286         (handle_LoadStor): Bug fix, first handle post-increment mode.
3287         (getreg_image): Remove redundant code, update according to latest
3288         CRX spec.
3289         (print_constant): Bug fix relate to 3-word instructions.
3290         (assemble_insn): Bug fix, when matching instructions, verify also
3291         instruction type (not only mnemonic).
3292         Add various error checking.
3293         (preprocess_reglist): Support HI/LO and user registers.
3294
3295 2004-10-25  David Mosberger-Tang  <davidm@hpl.hp.com>
3296
3297         * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
3298         in an epilogue directive go negative.
3299
3300 2004-10-25  H.J. Lu  <hongjiu.lu@intel.com>
3301
3302         PR 474
3303         * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
3304         after reporting template error during manual bundling. Reported
3305         by Michael Dupont, michaelx.dupont@intel.com.
3306
3307 2004-10-25  Daniel Jacobowitz  <dan@debian.org>
3308
3309         * Makefile.am: Run dep-am.
3310         * aclocal.m4: Regenerate with automake 1.9.2.
3311         * Makefile.in: Regenerate with automake 1.9.2.
3312         * doc/Makefile.in: Likewise.
3313
3314         * config/tc-arm.c: Include "dw2gencfi.h".
3315         (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3316         New functions.
3317         * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
3318         (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
3319         (tc_cfi_frame_initial_instructions): Define.
3320         (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3321         Add prototypes.
3322
3323 2004-10-21  Tomer Levi  <Tomer.Levi@nsc.com>
3324
3325         * config/tc-crx.c (assemble_insn): Check unsigned immediate
3326         operands validity.
3327         Update coprocessor id to be unsigned immediate.
3328
3329 2004-10-18  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3330
3331         * config/tc-i386.c (O_secrel): Delete.
3332         (tc_pe_dwarf2_emit_offset): New function.
3333         * config/tc-i386.h (O_secrel): Define as O_md1.
3334         (TC_DWARF2_EMIT_OFFSET): Define.
3335
3336 2004-10-18  Nick Clifton  <nickc@redhat.com>
3337
3338         * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
3339         ignore @fptr() directives for 4-byte fixups.
3340
3341 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
3342
3343         * Makefile.am: Run "make dep-am"
3344         * Makefile.in: Regenerate.
3345
3346 2004-10-14  Bob Wilson  <bob.wilson@acm.org>
3347
3348         * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
3349         Remove comments about placement of literal pools.
3350         (Literal Directive): Update description of literal placement.
3351         (Literal Prefix Directive): Remove statement that this does not apply
3352         to absolute-mode literals.  Describe new section naming scheme.
3353
3354 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
3355
3356         * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
3357         (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
3358         is_windowed_return_opcode): Delete.
3359         (xtensa_frob_label): Use get_subseg_target_freq.
3360         (md_assemble): Inline call to is_entry_opcode.
3361         (xtensa_handle_align): Inline call to get_frag_is_literal.
3362         (relaxation_requirements): Inline call to is_jx_opcode.
3363         (emit_single_op): Inline call to is_movi_opcode.
3364         (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
3365         get_frag_is_no_transform, is_entry_opcode, and
3366         set_frag_is_specific_opcode.  Use get_subseg_total_freq.
3367         (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
3368         xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
3369         Inline calls to get_frag_is_no_transform.
3370         (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
3371         (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
3372         get_frag_is_no_transform.
3373         (convert_frag_immed_finish_loop): Inline calls to get_expression_value
3374         and set_frag_is_no_transform.
3375         (get_expression_value): Delete.
3376         (subseg_map struct): Rename cur_total_freq to total_freq.  Rename
3377         cur_target_freq to target_freq.
3378         (get_subseg_info): Split out code to create a new map entry into ...
3379         (add_subseg_info): ... this new function.
3380         (get_last_insn_flags): Check if get_subseg_info succeeded.
3381         (set_last_insn_flags): Call add_subseg_info if needed.
3382         (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
3383         (xtensa_reorder_segments): Compute last_sec while counting sections.
3384         Remove call to get_last_sec.
3385         (get_last_sec): Delete.
3386         (cache_literal_section): Inline call to retrieve_literal_seg and its
3387         callees, seg_present and add_seg_list.
3388         (retrieve_literal_seg, seg_present, add_seg_list): Delete.
3389         (get_frag_is_insn, get_frag_is_no_transform,
3390         set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
3391         * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
3392
3393 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
3394
3395         * config/tc-xtensa.c: Use ISO C90 formatting.
3396         * config/tc-xtensa.h: Likewise.
3397         * config/xtensa-istack.h: Likewise.
3398         * config/xtensa-relax.c: Likewise.
3399         * config/xtensa-relax.h: Likewise.
3400
3401 2004-10-12  Paul Brook  <paul@codesourcery.com>
3402
3403         * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
3404         EF_ARM_EABI_VER4.
3405         (arm_eabis): Ditto.
3406         * doc/c-arm.texi: Document that we actually support -meabi=4, not
3407         -meabi=3.
3408
3409 2004-10-08  Bob Wilson  <bob.wilson@acm.org>
3410
3411         * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
3412         entries.
3413         (Acknowledgements): Use "GAS" instead of AS variable.
3414
3415 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
3416
3417         * config/tc-i386.c: Include "elf/x86-64.h".
3418         (i386_elf_section_type): New function.
3419         * config/tc-i386.h (md_elf_section_type): Define.
3420         (i386_elf_section_type): New prototype.
3421
3422 2004-10-08  Linus Nielsen Feltzing  <linus@haxx.se>
3423
3424         * config/m68k-parse.h (enum m68k_register): New control register,
3425         MBAR2 (for MCF5249)
3426         * config/tc-m68k.c: Correct control register set for MCF5249.
3427
3428 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
3429             Sterling Augustine  <sterling@tensilica.com>
3430
3431         * config/tc-xtensa.c (absolute_literals_supported): New global flag.
3432         (UNREACHABLE_MAX_WIDTH): Define.
3433         (XTENSA_FETCH_WIDTH): Delete.
3434         (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
3435         prefer_const16, prefer_l32r): New global variables.
3436         (LIT4_SECTION_NAME): Define.
3437         (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
3438         (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
3439         (frag_flags struct): New.
3440         (xtensa_block_info struct): Move from tc-xtensa.h.  Add flags field.
3441         (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
3442         (bitfield, bit_is_set, set_bit, clear_bit): Define.
3443         (MAX_FORMATS): Define.
3444         (op_placement_info struct, op_placement_table): New.
3445         (O_pltrel, O_hi16, O_lo16): Define.
3446         (directiveE enum): Rename directive_generics to directive_transform.
3447         Delete directive_relax.  Add directive_schedule,
3448         directive_absolute_literals, and directive_last_directive.
3449         (directive_info): Rename "generics" to "transform".  Delete "relax".
3450         Add "schedule" and "absolute-literals".
3451         (directive_state): Adjust entries to match changes in directive_info.
3452         (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
3453         (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
3454         xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
3455         (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
3456         (align_only_targets, software_a0_b_retw_interlock,
3457         software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
3458         software_avoid_short_loop, software_avoid_close_loop_end,
3459         software_avoid_all_short_loops, specific_opcode): Delete.
3460         (warn_unaligned_branch_targets): New.
3461         (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
3462         workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
3463         (option_[no_]link_relax, option_[no_]transform,
3464         option_[no_]absolute_literals, option_warn_unaligned_targets,
3465         option_prefer_l32r, option_prefer_const16, option_target_hardware):
3466         New enum values.
3467         (option_[no_]align_only_targets, option_literal_section_name,
3468         option_text_section_name, option_data_section_name,
3469         option_bss_section_name, option_eb, option_el): Delete.
3470         (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
3471         warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
3472         and target-hardware.  Delete entries for [no-]target-align-only,
3473         literal-section-name, text-section-name, data-section-name, and
3474         bss-section-name.
3475         (md_parse_option): Handle new options and remove old ones.  Accept but
3476         ignore [no-]density options.  Warn for [no-]generics and [no-]relax
3477         and treat them as [no-]transform.
3478         (md_show_usage): Add new options and remove old ones.
3479         (xtensa_setup_hw_workarounds): New.
3480         (md_pseudo_table): Change "word" entry to use xtensa_elf_cons.  Add
3481         "long", "short", "loc" and "frequency" entries.
3482         (use_generics): Rename to ...
3483         (use_transform): ... this function.  Add past_xtensa_end check.
3484         (use_longcalls): Add past_xtensa_end check.
3485         (code_density_available, can_relax): Delete.
3486         (do_align_targets): New.
3487         (get_directive): Accept dashes in directive names.  Warn about
3488         [no-]generics and [no-]relax directives and treat them as
3489         [no-]transform.
3490         (xtensa_begin_directive): Call md_flush_pending_output only for some
3491         directives.  Check for directives inside instruction bundles.  Warn
3492         about deprecated ".begin literal" usage.  Warn and ignore [no-]density
3493         directives.  Handle new directives.  Check generating_literals flag
3494         for literal_prefix.
3495         (xtensa_end_directive): Check for directives inside instruction
3496         bundles.  Warn and ignore [no-]density directives.  Handle new
3497         directives.  Call xtensa_set_frag_assembly_state.
3498         (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
3499         xtensa_dwarf2_emit_insn): New.
3500         (xtensa_literal_position): Call md_flush_pending_output.  Do not check
3501         use_literal_section flag.
3502         (xtensa_literal_pseudo): Call md_flush_pending_output.  Handle absolute
3503         literals.  Use xtensa_elf_cons to parse the expression.
3504         (xtensa_literal_prefix): Do not check use_literal_section.  Support
3505         ".lit4" sections for absolute literals.  Change prefix convention to
3506         replace ".text" (or ".t" in a linkonce section).  No need to call
3507         subseg_set.
3508         (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
3509         (expression_end): Handle closing braces and colons.
3510         (PLT_SUFFIX, plt_suffix): Delete.
3511         (expression_maybe_register): Use new xtensa-isa.h functions.  Use
3512         xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
3513         and O_hi16 expressions as well.
3514         (tokenize_arguments): Handle closing braces and colons.
3515         (parse_arguments): Use new xtensa-isa.h functions.  Handle "invisible"
3516         operands and paired register syntax.
3517         (get_invisible_operands): New.
3518         (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax.  Use
3519         new xtensa-isa.h functions.
3520         (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
3521         (xg_translate_idioms): Check if inside bundle.  Use use_transform.
3522         Handle new Xtensa LX RSR/WSR/XSR syntax.  Remove code to widen density
3523         instructions.  Use xtensa_translate_zero_immed.
3524         (operand_is_immed, operand_is_pcrel_label): Delete.
3525         (get_relaxable_immed): Use new xtensa-isa.h functions.
3526         (get_opcode_from_buf): Add slot parameter.  Use new xtensa-isa.h
3527         functions.
3528         (xtensa_print_insn_table, print_vliw_insn): New.
3529         (is_direct_call_opcode): Use new xtensa-isa.h functions.
3530         (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
3531         is_branch_or_jump_opcode): Delete.
3532         (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
3533         (opnum_to_reloc, reloc_to_opnum): Delete.
3534         (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
3535         xtensa-isa.h functions.  Operate on one slot of an instruction.
3536         (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
3537         xg_get_insn_size): Delete.
3538         (xg_get_build_instr_size): Use xg_get_single_size.
3539         (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
3540         xg_build_widen_table.  Use xg_get_single_size.
3541         (xg_get_max_narrow_insn_size): Delete.
3542         (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
3543         xg_is_relaxable_insn): Update calls to xg_build_widen_table.  Use
3544         xg_get_single_size.
3545         (xg_build_to_insn): Record the loc field.  Handle OP_OPERAND_HI16U and
3546         OP_OPERAND_LOW16U.  Check xg_valid_literal_expression.
3547         (xg_expand_to_stack, xg_expand_narrow): Update calls to
3548         xg_build_widen_table.  Use xg_get_single_size.
3549         (xg_immeds_fit): Use new xtensa-isa.h functions.  Update call to
3550         xg_check_operand.
3551         (xg_symbolic_immeds_fit): Likewise.  Also handle O_lo16 and O_hi16, and
3552         treat weak symbols conservatively.
3553         (xg_check_operand): Use new xtensa-isa.h functions.
3554         (is_dnrange): Delete.
3555         (xg_assembly_relax): Inline previous calls to tinsn_copy.
3556         (xg_finish_frag): Specify separate relax states for the frag and slot0.
3557         (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
3558         xtensa-isa.h functions.
3559         (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
3560         xg_instruction_matches_options): New.
3561         (xg_instruction_matches_rule): Handle O_register expressions.  Call
3562         xg_instruction_matches_options.
3563         (transition_rule_cmp): New.
3564         (xg_instruction_match): Update call to xg_build_simplify_table.
3565         (xg_build_token_insn): Record loc fields.
3566         (xg_simplify_insn): Check is_specific_opcode field and
3567         density_supported flag.
3568         (xg_expand_assembly_insn): Skip checking code_density_available.  Use
3569         new xtensa-isa.h functions.  Call use_transform instead of can_relax.
3570         (xg_assemble_literal): Add error handling for O_big.  Call
3571         record_alignment.  Handle O_pltrel.
3572         (xg_valid_literal_expression): New.
3573         (xg_assemble_literal_space): Add slot parameter.  Remove call to
3574         set_expr_symbol_offset.  Add call to record_alignment.  Update call to
3575         xg_finish_frag.
3576         (xg_emit_insn): Delete.
3577         (xg_emit_insn_to_buf): Add format parameter.  Update calls to
3578         xg_add_opcode_fix and xtensa_insnbuf_to_chars.
3579         (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
3580         and slot parameters.  Handle new "alternate" relocations for absolute
3581         literals and CONST16 instructions.  Check for bad uses of O_lo16 and
3582         O_hi16.  Use new xtensa-isa.h functions.
3583         (xg_assemble_tokens): Delete.
3584         (is_register_writer): Use new xtensa-isa.h functions.
3585         (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
3586         old-style RSR from LCOUNT.
3587         (next_frag_opcode): Delete.
3588         (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
3589         update_next_frag_state): New.
3590         (update_next_frag_nop_state): Delete.
3591         (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
3592         (xtensa_mark_literal_pool_location): Check use_literal_section flag and
3593         the state of the absolute-literals directive.  Add calls to
3594         record_alignment and xtensa_set_frag_assembly_state.  Call
3595         xtensa_switch_to_non_abs_literal_fragment instead of
3596         xtensa_switch_to_literal_fragment.
3597         (build_nop): New.
3598         (assemble_nop): Use build_nop.  Update call to xtensa_insnbuf_to_chars.
3599         (get_expanded_loop_offset): Change check for undefined opcode to an
3600         assertion.
3601         (xtensa_set_frag_assembly_state, relaxable_section,
3602         xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
3603         xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
3604         (md_begin): Update call to xtensa_isa_init.  Initialize linkrelax to 1.
3605         Set lit4_seg_name.  Call xg_init_vinsn.  Initialize new global opcodes.
3606         Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
3607         (xtensa_init_fix_data): New.
3608         (xtensa_frob_label): Reset label symbol to the current frag.  Check
3609         do_align_targets and generating_literals flag.  Propagate frequency
3610         info to new alignment frag.  Call xtensa_set_frag_assembly_state.
3611         (xtensa_unrecognized_line): New.
3612         (xtensa_flush_pending_output): Check if inside a bundle.  Add a call
3613         to xtensa_set_frag_assembly_state.
3614         (error_reset_cur_vinsn): New.
3615         (md_assemble): Remove check for literal frag.  Remove call to
3616         istack_init.  Call use_transform instead of use_generics.  Parse
3617         explicit instruction format specifiers.  Move code for
3618         a0_b_retw_interlock workaround to xg_assemble_vliw_tokens.  Call
3619         error_reset_cur_vinsn on errors.  Add call to get_invisible_operands.
3620         Add dwarf2_where call.  Remote automatic alignment for ENTRY
3621         instructions.  Move call to xtensa_clear_insn_labels to the end.
3622         Rearrange to handle bundles.
3623         (xtensa_cons_fix_new): Delete.
3624         (xtensa_handle_align): New.
3625         (xtensa_frag_init): Call xtensa_set_frag_assembly_state.  Remove
3626         assignment to is_no_density field.
3627         (md_pcrel_from): Use new xtensa-isa.h functions.  Use decode_reloc
3628         instead of reloc_to_opnum.  Handle "alternate" relocations.
3629         (xtensa_force_relocation, xtensa_check_inside_bundle,
3630         xtensa_elf_section_change_hook): New.
3631         (xtensa_symbol_new_hook): Delete.
3632         (xtensa_fix_adjustable): Check for difference of symbols with an
3633         offset.  Check for external and weak symbols.
3634         (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
3635         (md_estimate_size_before_relax): Return expansion for the first slot.
3636         (tc_gen_reloc): Handle difference of symbols by producing
3637         XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
3638         into the output.  Handle new XTENSA_SLOT*_OP relocs by storing the
3639         tentative values into the output when linkrelax is set.
3640         (XTENSA_PROP_SEC_NAME): Define.
3641         (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
3642         Create literal tables only if using literal sections.  Create new
3643         property tables instead of old instruction tables.  Check for unaligned
3644         branch targets and loops.
3645         (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
3646         new_resource_table, clear_resource_table, resize_resource_table,
3647         resources_available, reserve_resources, release_resources,
3648         opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
3649         resources_conflict, xg_find_narrowest_format, relaxation_requirements,
3650         bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
3651         (xtensa_end): Call xtensa_flush_pending_output.  Set past_xtensa_end
3652         flag.  Update checks for workaround options.  Call
3653         xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
3654         (xtensa_cleanup_align_frags): Add special case for branch targets.
3655         Check for and mark unreachable frags.
3656         (xtensa_fix_target_frags): Remove use of align_only_targets flag.
3657         Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
3658         end of a zero-overhead loop body.
3659         (frag_can_negate_branch): Handle instructions with multiple slots.
3660         Use new xtensa-isa.h functions
3661         (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
3662         xtensa_mark_zcl_first_insns): New.
3663         (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
3664         transformations are disabled.
3665         (next_instrs_are_b_retw): Use new xtensa-isa.h functions.  Handle
3666         multislot instructions.
3667         (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
3668         Likewise.  Also error if transformations are disabled.
3669         (unrelaxed_frag_max_size): New.
3670         (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
3671         xtensa-isa.h functions.
3672         (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
3673         xtensa_opcode_is_loop instead of is_loop_opcode.
3674         (get_text_align_power): Replace as_fatal with assertion.
3675         (get_text_align_fill_size): Iterate instead of using modulus when
3676         use_nops is false.
3677         (get_noop_aligned_address): Assert that this is for a machine-dependent
3678         RELAX_ALIGN_NEXT_OPCODE frag.  Use next_frag_opcode_is_loop,
3679         xg_get_single_size, and frag_format_size.
3680         (get_widen_aligned_address): Rename to ...
3681         (get_aligned_diff): ... this function.  Add max_diff parameter.
3682         Remove handling of rs_align/rs_align_code frags.  Use
3683         next_frag_format_size, get_text_align_power, get_text_align_fill_size,
3684         next_frag_opcode_is_loop, and xg_get_single_size.  Compute max_diff
3685         and pass it back to caller.
3686         (xtensa_relax_frag): Use relax_frag_loop_align.  Add code for new
3687         RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
3688         RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types.  Check relax_seen.
3689         (relax_frag_text_align): Rename to ...
3690         (relax_frag_loop_align): ... this function.  Assume loops can only be
3691         in the first slot of an instruction.
3692         (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
3693         instruction.  Remove call to frag_wane.
3694         (relax_frag_narrow): Rename to ...
3695         (relax_frag_for_align): ... this function.  Extend to handle
3696         RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
3697         RELAX_NARROW for the first slot.
3698         (find_address_of_next_align_frag, bytes_to_stretch): New.
3699         (future_alignment_required): Use find_address_of_next_align_frag and
3700         bytes_to_stretch.  Look ahead to subsequent frags to make smarter
3701         alignment decisions.
3702         (relax_frag_immed): Add format, slot, and estimate_only parameters.
3703         Check if transformations are enabled for b_j_loop_end workaround.
3704         Use new xtensa-isa.h functions and handle multislot instructions.
3705         Update call to xg_assembly_relax.
3706         (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
3707         RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
3708         frag types.
3709         (convert_frag_narrow): Add segP, format and slot parameters.  Call
3710         convert_frag_immed for branch instructions.  Adjust calls to
3711         tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf.  Use
3712         xg_get_single_size and xg_get_single_format.
3713         (convert_frag_fill_nop): New.
3714         (convert_frag_immed): Add format and slot parameters.  Handle multislot
3715         instructions and use new xtensa-isa.h functions.  Update calls to
3716         tinsn_immed_from_frag and xg_assembly_relax.  Check if transformations
3717         enabled for b_j_loop_end workaround.  Use build_nop instead of
3718         assemble_nop.  Check is_specific_opcode flag.  Check for unreachable
3719         frags.  Use xg_get_single_size.  Handle O_pltrel.
3720         (fix_new_exp_in_seg): Remove check for old plt flag.
3721         (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
3722         xtensa_insnbuf_to_chars.  Call tinsn_immed_from_frag.  Change check
3723         for loop opcode to an assertion.  Mark all frags up to the end of the
3724         loop as not transformable.
3725         (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
3726         (get_subseg_info): New.
3727         (xtensa_move_literals): Call xtensa_set_frag_assembly_state.  Add null
3728         check for dest_seg.
3729         (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
3730         literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
3731         (xtensa_switch_to_non_abs_literal_fragment): New.
3732         (cache_literal_section): Add is_code parameter and pass it through to
3733         retrieve_literal_seg.
3734         (retrieve_literal_seg): Add is_code parameter and use it to set the
3735         flags on the literal section.  Handle case where head parameter is 0.
3736         (get_frag_is_no_transform, set_frag_is_specific_opcode,
3737         set_frag_is_no_transform): New.
3738         (xtensa_create_property_segments): Add end_property_function parameter
3739         and pass it through to add_xt_block_frags.  Call bfd_get_section_flags
3740         and skip SEC_DEBUGGING and !SEC_ALLOC sections.
3741         (xtensa_create_xproperty_segments, section_has_xproperty): New.
3742         (add_xt_block_frags): Add end_property_function parameter and call it
3743         if it is non-zero.  Call xtensa_frag_flags_init.
3744         (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
3745         get_frag_property_flags, frag_flags_to_number,
3746         xtensa_frag_flags_combinable, xt_block_aligned_size,
3747         xtensa_xt_block_combine, add_xt_prop_frags,
3748         init_op_placement_info_table, opcode_fits_format_slot,
3749         xg_get_single_size, xg_get_single_format): New.
3750         (istack_push): Inline call to tinsn_copy.
3751         (tinsn_copy): Delete.
3752         (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
3753         CONST16 opcodes.  Handle O_big, O_illegal, and O_absent.
3754         (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
3755         (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
3756         functions.  Handle invisible operands.
3757         (tinsn_to_slotbuf): New.
3758         (tinsn_check_arguments): Use new xtensa-isa.h functions.
3759         (tinsn_from_chars): Add slot parameter.  Rewrite using xg_init_vinsn,
3760         vinsn_from_chars, and xg_free_vinsn.
3761         (tinsn_from_insnbuf): New.
3762         (tinsn_immed_from_frag): Add slot parameter and handle multislot
3763         instructions.  Handle symbol differences.
3764         (get_num_stack_text_bytes): Use xg_get_single_size.
3765         (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
3766         xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
3767         get_expr_register, set_expr_symbol_offset_diff): New.
3768         * config/tc-xtensa.h (MAX_SLOTS): Define.
3769         (xtensa_relax_statesE): Move from tc-xtensa.c. Add
3770         RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
3771         RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
3772         RELAX_NONE types.
3773         (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
3774         (xtensa_frag_type struct): Add is_assembly_state_set,
3775         use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
3776         is_align, is_text_align, alignment, and is_first_loop_insn fields.
3777         Replace is_generics and is_relax fields by is_no_transform field.
3778         Delete is_text and is_longcalls fields.  Change text_expansion and
3779         literal_expansion to arrays of MAX_SLOTS entries.  Add arrays of
3780         per-slot information: literal_frags, slot_subtypes, slot_symbols,
3781         slot_sub_symbols, and slot_offsets.  Add fr_prev field.
3782         (xtensa_fix_data struct): New.
3783         (xtensa_symfield_type struct): Delete plt field.
3784         (xtensa_block_info struct): Move definition to tc-xtensa.h.  Add
3785         forward declaration here.
3786         (xt_section_type enum): Delete xt_insn_sec.  Add xt_prop_sec.
3787         (XTENSA_SECTION_RENAME): Undefine.
3788         (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
3789         tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
3790         HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
3791         (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
3792         (unit_num_copies_func, opcode_num_units_func,
3793         opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
3794         (resource_table struct): New.
3795         * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
3796         (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
3797         literal_space, symbol, sub_symbol, offset, and literal_frag fields.
3798         (tinsn_copy): Delete prototype.
3799         (vliw_insn struct): New.
3800         * config/xtensa-relax.c (insn_pattern_struct): Add options field.
3801         (widen_spec_list): Add option conditions for density and boolean
3802         instructions.  Add expansions using CONST16 and conditions for using
3803         CONST16 vs. L32R.  Use new Xtensa LX RSR/WSR syntax.  Add entries for
3804         predicted branches.
3805         (simplify_spec_list): Add option conditions for density instructions.
3806         Add entry for NOP instruction.
3807         (append_transition): Add cmp function pointer parameter and use it to
3808         insert the new entry in order.
3809         (operand_function_LOW16U, operand_function_HI16U): New.
3810         (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
3811         OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
3812         (enter_opname, split_string): Use xstrdup instead of strdup.
3813         (init_insn_pattern): Initialize new options field.
3814         (clear_req_or_option_list, clear_req_option_list,
3815         clone_req_or_option_list, clone_req_option_list, parse_option_cond):
3816         New.
3817         (parse_insn_pattern): Parse option conditions.
3818         (transition_applies): New.
3819         (build_transition): Use new xtensa-isa.h functions.  Fix incorrectly
3820         swapped last arguments in calls to append_constant_value_condition.
3821         Call clone_req_option_list.  Add warning about invalid opcode.
3822         Handle LOW16U and HI16U function names.
3823         (build_transition_table): Add cmp parameter and use it in calls to
3824         append_transition.  Use new xtensa-isa.h functions.  Check
3825         transition_applies before adding entries.
3826         (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
3827         pass it through to build_transition_table.
3828         * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
3829         ReqOption, transition_cmp_fn): New types.
3830         (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
3831         (transition_rule struct): Add options field.
3832         * doc/as.texinfo (Overview): Update Xtensa options.
3833         * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
3834         --[no-]relax, and --[no-]generics options.  Update descriptions of
3835         --text-section-literals and --[no-]longcalls.  Add
3836         --[no-]absolute-literals and --[no-]transform.
3837         (Xtensa Syntax): Add description of syntax for FLIX instructions.
3838         Remove use of "generic" and "specific" terminology for opcodes.
3839         (Xtensa Registers): Generalize the syntax description to include
3840         user-defined register files.
3841         (Xtensa Automatic Alignment): Update.
3842         (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
3843         (Xtensa Call Relaxation): Linker can now remove most of the overhead.
3844         (Xtensa Directives): Remove confusing rules about precedence.
3845         (Density Directive, Relax Directive): Delete.
3846         (Schedule Directive): New.
3847         (Generics Directive): Rename to ...
3848         (Transform Directive): ... this node.
3849         (Literal Directive): Update for absolute literals.  Missing
3850         literal_position directive is now an error.
3851         (Literal Position Directive): Update for absolute literals.
3852         (Freeregs Directive): Delete.
3853         (Absolute Literals Directive): New.
3854         (Frame Directive): Minor editing.
3855         * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
3856         Update dependencies.
3857         * Makefile.in: Regenerate.
3858
3859 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
3860
3861         * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
3862         to build the second and third fixups for a composite relocation.
3863         (macro_read_relocs): New function.
3864         (macro_build): Use it.
3865         (s_cpsetup): Pass all three composite relocation codes to macro_build.
3866         Simplify fragging code accordingly.
3867         (s_gpdword): Use fix_new rather than fix_new_exp for the second part
3868         of the composite relocation.  Set fx_tcbit in both fixups.
3869
3870 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
3871
3872         * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
3873         (md_apply_fix3): Don't treat composite relocs as done.
3874
3875 2004-10-07  Jan Beulich <jbeulich@novell.com>
3876
3877         * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
3878         prefix for symbol names generated from the LOCAL macro directive.
3879
3880         * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
3881         FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
3882
3883 2004-10-07  Tomer Levi  <Tomer.Levi@nsc.com>
3884
3885         * config/tc-crx.c (preprocess_reglist): Handle Co-processor
3886         Special registers.
3887         (md_assemble): Add error checking for Co-Processor instructions.
3888         (get_cinv_parameters): Add 'b' option to invalidate the
3889         branch-target cache.
3890
3891 2004-10-05  Paul Brook  <paul@codesourcery.com>
3892
3893         * config/tc-arm.c (unwind): New variable.
3894         (vfp_sp_encode_reg): New function.
3895         (vfp_sp_reg_required_here): Use it.
3896         (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
3897         (vfp_parse_reg_list): New function.
3898         (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
3899         s_arm_unwind_personality, s_arm_unwind_personalityindex,
3900         s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
3901         s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
3902         functions.
3903         (md_pseudo_table): Add them.
3904         (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
3905         (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
3906         (set_section, add_unwind_adjustsp, flush_pending_unwind,
3907         finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
3908         require_hashconst, add_unwind_opcode): New functions.
3909         * doc/c-arm.texi: Document unwinding opcodes.
3910         * NEWS: Mention the new feature.
3911
3912 2004-10-04  Eric Christopher  <echristo@redhat.com>
3913
3914         * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
3915
3916 2004-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3917
3918         * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
3919         TLS relocations.
3920         * config/tc-s390.c (md_apply_fix3): Likewise.
3921         * config/tc-sparc.c (md_apply_fix3): Likewise.
3922
3923 2004-10-01  Paul Brook  <paul@codesourcery.com>
3924
3925         * config/tc-arm.c (arm_elf_section_type): New function.
3926         (arm_elf_change_section): Set section link for exidx sections.
3927         * config/tc-arm.h (arm_elf_section_type): Add prototype.
3928         (md_elf_section_type): Define.
3929
3930 2004-10-01  Bill Farmer  <Bill@the-farmers.freeserve.co.uk>
3931
3932         * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
3933         instruction's offset.
3934
3935 2004-10-01  Adam Nemet  <anemet@lnxw.com>
3936
3937         * (TARGET_FORMAT): Remove LynxOS COFF definition.
3938
3939 2004-10-01  Ravi Ramaseshan  <ravi.ramaseshan@codito.com>
3940
3941         * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
3942         asymbol *, instead use symbol_get_bfdsym.
3943
3944 2004-09-30  Linus Nielsen Feltzing  <linus@haxx.se>
3945
3946         * config/tc-m68k.c (select_control_regs): Add mcf5249.
3947
3948 2004-09-30  Paul Brook  <paul@codesourcery.com>
3949
3950         * config/tc-arm.c (do_smi, do_nop): New functions.
3951         (insns): Add ARMv6ZK instructions.
3952         (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
3953         (tc_gen_reloc): Ditto.
3954         (arm_cpus): Add mpcore and arm1176.
3955         (arm_archs): Add armv6{k,z,zk}.
3956         * doc/c-arm.texi: Document new cores and architectures.
3957
3958 2004-09-30  Nick Clifton  <nickc@redhat.com>
3959
3960         * config/tc-arm.c: Use ISO C90 formatting.
3961
3962 2004-09-30  Vladimir Ivanov  <vladitx@nucleusys.com>
3963
3964         * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
3965         as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
3966         REG_TYPE_MVDX is expected.
3967
3968 2004-09-29  Marc Bevand  <m.bevand@gmail.com>
3969
3970         * doc/c-i386.texi (i386-Mnemonics): Fix typo.
3971
3972 2004-09-21  James E Wilson  <wilson@specifixinc.com>
3973
3974         * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
3975         (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
3976         output_spill_base, output_unat_psprel, output_lc_psprel,
3977         output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
3978         output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
3979         output_spill_psprel_p): Use it.
3980
3981 2004-09-20  Tomer Levi  <Tomer.Levi@nsc.com>
3982
3983         * config/tc-crx.c (handle_LoadStor): New function.
3984         Handle load/stor unique instructions before parsing.
3985
3986 2004-09-17  Paul Brook  <paul@codesourcery.com>
3987
3988         * config/tc-arm.c (s_arm_rel31): New funciton.
3989         (md_pseudo_table): Add .rel31.
3990         (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
3991         BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
3992         (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
3993         (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
3994         (arm_parse_reloc): Add (target2).
3995
3996 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
3997
3998         * Makefile.am: Run "make dep-am".
3999         * Makefile.in: Regenerate.
4000         * aclocal.m4: Regenerate.
4001         * configure: Regenerate.
4002         * doc/Makefile.in: Regenerate.
4003         * po/POTFILES.in: Regenerate.
4004         * po/gas.pot: Regenerate.
4005
4006 2004-09-14  Hideki IWAMOTO  <h-iwamoto@kit.hi-ho.ne.jp>
4007
4008         * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
4009         [!LLONG_MAX]: Ditto.
4010
4011 2004-09-13  Paul Brook  <paul@codesourcery.com>
4012
4013         * config/tc-arm.c: Rename RELABS to TARGET1.
4014
4015 2004-09-13  Alan Modra  <amodra@bigpond.net.au>
4016
4017         * messages.c (as_internal_value_out_of_range): Cast values passed
4018         to as_bad_where or as_warn_where to proper type.
4019
4020 2004-09-11  Theodore A. Roth  <troth@openavr.org>
4021
4022         * config/tc-avr.c: Add support for
4023         atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
4024
4025 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
4026
4027         * dw2gencfi.c (select_cie_for_fde): When separating CIE out
4028         from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
4029
4030 2004-09-08  Paul Brook  <paul@codesourcery.com>
4031
4032         * config/obj-elf.c (obj_elf_section_type): Handle init_array,
4033         fini_array and preinit_array section types.
4034         * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
4035         and fini_array.
4036         * doc/as.texinfo: Document extra section types.
4037
4038 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
4039
4040         * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
4041         * Makefile.in: Regenerated.
4042         * configure.in: Set em for arm*-*-symbianelf*.
4043         * configure: Regenerated.
4044         * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
4045         vectors when appropriate.
4046         * config/te-symbian.h: New file.
4047
4048 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
4049
4050         * config/tc-crx.c (gettrap): Exception vector can be case
4051         insensitive.
4052         (process_label_constant): Fix a 32-bit displacement bug in branch
4053         instructions.
4054         (get_operandtype) : Bug fix, wrong operand was used.
4055         (process_label_constant): Initialize relocation type to
4056         BFD_RELOC_NONE
4057
4058 2004-09-01  Richard Earnshaw < reanrsha@arm.com>
4059
4060         * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
4061         for synthesizable cores.
4062
4063         * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
4064
4065 2004-08-25  Dmitry Diky  <diwil@spec.ru>
4066
4067         * config/tc-msp430.c:   Clean-up the code.
4068         (md_relax_table): New relax table.
4069         (mcu_types): Sort MCU types.
4070         (md_pseudo_table): Add .profiler pseudo handler.
4071         (pow2value): New function.
4072         (msp430_profiler): New function.
4073         (msp430_operands): Add new insns handlers.
4074         (msp430_srcoperand): Add register operand handler, allow complex
4075         expressions.
4076         (md_estimate_size_before_relax): Rewritten.
4077         (md_convert_frag): Rewritten.
4078         (msp430_relax_frag): New function.
4079         * config/tc-msp430.h (md_relax_frag): define macro
4080         * doc/c-msp430.texi: Update information.
4081
4082 2004-08-24  Nick Clifton  <nickc@redhat.com>
4083
4084         * as.c (std_shortopts): Allow -g to take an optional argument.
4085         (parse_args): Pass any switch starting with -g on to the backend
4086         for parsing.
4087
4088 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
4089
4090         * configure.in (arm*-*-symbianelf*): New target.
4091         (arm*-*-eabi*): Likewise.
4092         * configure: Regenerated.
4093
4094 2004-08-18  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4095         * config/tc-mips.c (append_insn): Handle delay slots in branch likely
4096         correctly.
4097
4098 2004-08-18  Jakub Jelinek  <jakub@redhat.com>
4099
4100         * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
4101         argument, don't do anything if current section is not
4102         .gnu.linkonce.t.* and linkonce_empty is set.
4103         (generate_unwind_image, dot_endp): Adjust callers, call
4104         start_unwind_section (*, 1) if nothing will be put into the
4105         section.
4106
4107 2004-08-17  Nick Clifton  <nickc@redhat.com>
4108
4109         * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
4110         (show_usage): Add -g.
4111         (std_longopts): Add --gen-debug.  Alpha sort the table.
4112         (parse_args): Print an error message if a switch is not handled.
4113         Handle the -g switch, calling md_debug_format_selector() if
4114         necessary.
4115         * NEWS: Mention new feature.
4116         * doc/as.texinfo: Document new switch.
4117         * doc/internals.texi: Document behaviour of md_parse_option.
4118
4119         * config/tc-arm.c (md_parse_option): Do not issue an error message
4120         if the switch is not recognised.
4121         * config/tc-m68k.c (md_parse_option): Likewise.
4122         * config/tc-pdp11.c (md_parse_option): Likewise.
4123         * config/tc-v850.c (md_parse_option): Likewise.
4124
4125         * as.h: Fix up formatting.
4126         * tc.h: Likewise.
4127
4128 2004-08-16  Nick Clifton  <nickc@redhat.com>
4129
4130         * macro.c (macro_set_alternate): Use ISO C90 formatting.
4131
4132         * configure.in: Sort architecture based tables alphabetically.
4133         * configure: Regenerate.
4134
4135 2004-08-16  Alan Modra  <amodra@bigpond.net.au>
4136
4137         * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
4138         { "cc", 68 }, with { "cr", 70 }.
4139
4140 2004-08-13 Jan Beulich <jbeulich@novell.com>
4141            Nick Clifton <nickc@redhat.com>
4142
4143         * as.c: Add and handle new --alternate command line option.
4144         * macro.c (macro_set_alternate): New.
4145         * macro.h (macro_set_alternate): Declare.
4146         * read.c: Add and handle new .altmacro and .noaltmacro directives.
4147         * doc/as.texinfo: Document new command line option and pseudo-ops
4148         as well as insert documentation originating from gasp about
4149         alternate macro syntax.
4150         * NEWS: Mention new command line option and pseudo-ops.
4151
4152 2004-08-10  Mark Mitchell  <mark@codesourcery.com>
4153
4154         * expr.c (operand): Handle the "~", "-", and "!" operators applied
4155         to bignums.
4156
4157 2004-08-06  Paul Brook  <paul@codesourcery.com>
4158
4159         * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
4160         Handle new relocations.
4161         * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
4162
4163 2004-08-05  Bob Wilson  <bob.wilson@acm.org>
4164
4165         * write.c (relax_segment): Use was_address instead of address when
4166         setting fr_fix field for align frag due to backwards .org.
4167
4168 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
4169
4170         Introduce SH2a support.
4171         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
4172         * config/tc-sh.c (get_specific): Change arch_sh2a_up to
4173         arch_sh2a_nofpu_up.
4174         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
4175         * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
4176         2004-02-20  Corinna Vinschen  <vinschen@redhat.com>
4177         * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
4178         to end of conditional expression.
4179         2004-02-20  Corinna Vinschen  <vinschen@redhat.com>
4180         * config/tc-sh.c: Add sh2a-nofpu support.
4181         2003-12-29  DJ Delorie  <dj@redhat.com>
4182         * tc-sh.c: Add sh2a support.
4183         (parse_reg): Add tbr.
4184         (parse_at): Support @@(disp,tbr).
4185         (get_specific): Support sh2a opcodes.
4186         (insert4): New, for 4 byte relocs.
4187         (build_Mytes): Support sh2a opcodes.
4188         (md_apply_fix3_Mytes): Support sh2a opcodes.
4189         2003-12-02  Michael Snyder  <msnyder@redhat.com>
4190         * config/tc-sh.c (md_parse_option): Handle sh2a.
4191         (sh_elf_final_processing): Ditto.
4192
4193 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
4194
4195         * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
4196         for TE_NetBSD.
4197
4198 2004-07-27  Alan Modra  <amodra@bigpond.net.au>
4199
4200         * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
4201         (ppc_arch): Expand comment.
4202
4203 2004-07-27  Tomer Levi  <Tomer.Levi@nsc.com>
4204
4205         * config/tc-crx.c: Support evaluating the difference between two
4206         symbols.
4207         * config/tc-crx.h: Likewise.
4208
4209 2004-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4210
4211         * config/tc-ia64.c (start_unwind_section): Set the linked-to
4212         section.
4213         (ia64_elf_section_change_hook): Set the linked-to section for
4214         SHT_IA_64_UNWIND.
4215
4216 2004-07-26  Dmitry Diky  <diwil@spec.ru>
4217
4218         * config/tc-msp430.c: Add new subtargets: msp430x1610,
4219         msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
4220         msp430xG438, msp430xG439.
4221
4222 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
4223
4224         * doc/as.texinfo (Section, PushSection): Correct documentation
4225         for ELF.
4226
4227 2004-07-21  Jan Beulich  <jbeulich@novell.com>
4228
4229         * config/tc-i386.c (optimize_imm): Adjust immediates to only those
4230         permissible for the selected instruction suffix.
4231         (match_template): Don't permit 64-bit general purpose operands in
4232         32-bit mode.
4233         (finalize_imm): Permit 64-bit immediates.
4234         (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
4235         specially except for the width of the used base and/or index
4236         registers.  For 32-bit displacements, use sign-extended
4237         relocations only when using 64-bit addressing.
4238         Force zero displacement on rip-relative addressing when there is
4239         no other displacement.
4240         (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
4241         specially except for the width of the used base and/or index
4242         registers.
4243         (parse_register): Disallow Reg64 registers in 32-bit mode.
4244
4245         * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
4246         suffix if the instruction doesn't support it.
4247
4248 2004-07-20  Maciej W. Rozycki  <macro@linux-mips.org>
4249
4250         * config/tc-mips.c (append_insn): Handle constant expressions with
4251         no associated relocation.
4252         (mips_ip): Cancel the expression after use for the Q format
4253         specifier.
4254         (parse_relocation): Return no relocation for unsupported
4255         operators.
4256         (my_getSmallExpression): Return no relocation if no relocation
4257         operators are used.
4258
4259 2004-07-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4260
4261         * config/obj-som.c (adjust_stab_sections): Add prototype.
4262         (obj_som_compiler, obj_som_version, obj_som_copyright,
4263         adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
4264         * config/tc-hppa.c (update_subspace):  Likewise.
4265         (is_defined_subspace): Amplify comment.
4266         * config/obj-som.h (som_frob_file): Add prototype.
4267
4268 2004-07-19  Christopher Faylor  <cgf@timesys.com>
4269             H.J. Lu  <hongjiu.lu@intel.com>
4270
4271         * subsegs.c (section_symbol): Don't create a new segment when
4272         existing segment is undefined.
4273
4274 2004-07-16  Richard Earnshaw  <rearnsha@arm.com>
4275
4276         * config/tc-arm.c: Include include/opcode/arm.h.
4277         (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
4278         (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
4279         (FPU_ARCH_*): Delete.
4280         * Makefile.am: Update dependencies.
4281         * Makefile.in: Regenerate.
4282
4283 2004-07-15  Nick Clifton  <nickc@redhat.com>
4284
4285         * configure.in: Accept armbe as a big-endian arm configuration.
4286         * configure: Regenerate.
4287
4288 2004-07-13  Thomas Nystrom  <thn@saeab.se>
4289
4290         * config/tc-i386.c (T_SHIFTOP): New constant.
4291         (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
4292         (intel_el1): Handle '~'.
4293         (intel_get_token): Handle '<>', '&', '|' and '~'.
4294
4295 2004-07-13  Nick Clifton <nickc@redhat.com>
4296
4297         (md_assemble): Remove spurious newline from end of as_bad error
4298         message.
4299         (intel_e05_1): Likewise.
4300         (intel_e11): Likewise.
4301         (intel_match_token): Likewise.
4302
4303 2004-07-11  Andreas Schwab  <schwab@suse.de>
4304
4305         * config/tc-m68k.c: Convert to C90.  Remove redundant
4306         declarations.  Indentation fixup.
4307         [M68KCOFF]: Include "obj-coff.h" instead of declaring
4308         obj_coff_section ourselves.
4309
4310 2004-07-09  James E Wilson  <wilson@specifixinc.com>
4311
4312         * config/tc-ia64.c (default_big_endian): New.
4313         (dot_byteorder, md_begin): Use it.
4314         (md_parse_option): Set it.
4315
4316 2004-07-09  Nick Clifton  <nickc@redhat.com>
4317
4318         * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
4319         * configure: Regenerate.
4320         * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
4321         * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
4322         sh_find_elf_flags if necessary.
4323
4324 2004-07-08  Richard Sandiford  <rsandifo@redhat.com>
4325
4326         * config/tc-mips.c (mips_fix_adjustable): If the full addend is
4327         going to be split into more than one in-place addend, return 0
4328         for relocations against mergeable sections.  Associate comments
4329         with code.
4330
4331 2004-07-07  Tomer Levi  <Tomer.Levi@nsc.com>
4332
4333         * Makefile.am (CPU_TYPES): Add crx.
4334         (TARGET_CPU_CFILES): Add config/tc-crx.c.
4335         (TARGET_CPU_HFILES): Add config/tc-crx.h.
4336         (DEPTC_crx_elf): New target.
4337         (DEPOBJ_crx_elf): Likewise.
4338         (DEP_crx_elf): Likewise.
4339         * Makefile.in: Regenerate.
4340         * configure.in: Add crx* target.
4341         * configure: Regenerate.
4342         * config/tc-crx.c: New file.
4343         * config/tc-crx.h: New file.
4344         * NEWS: Mention new target.
4345
4346 2004-07-06  Nick Clifton  <nickc@redhat.com>
4347
4348         * config.in: Undefine TARGET_SYMBIAN by default.
4349         * configure.in:
4350         * configure: Regenerate. Add sh-symbian-elf target.  If
4351         selected define TARGET_SYMBIAN.
4352         * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
4353         format if TARGET_SYMBIAN has been defined.
4354
4355         * output-file.c (output_file_create): Report the target format
4356         chosen when bfd_openw reports that it is invalid.
4357
4358         * config/obj-coff.c (coff_pseudo_table): Only define the weak
4359         pseudo for BFD based assemblers.
4360
4361 2004-07-05  Andrew Stubbs <andrew.stubbs@superh.com>
4362
4363         gas:
4364         * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
4365         (md_parse_option): Remove redundant -isa testing.
4366         Make bfd_arch variable const.
4367         (md_show_usage): Make bfd_arch variable const.
4368
4369 2004-07-03  James E Wilson  <wilson@specifixinc.com>
4370
4371         * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
4372         * config/tc-ia64.h (md_frag_check): Define.
4373
4374 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
4375
4376         * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
4377         externals.
4378         * doc/as.texinfo (Weak): Document PE weak symbols.
4379
4380 2004-07-03  Richard Sandiford  <rsandifo@redhat.com>
4381
4382         * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
4383         (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
4384         (mips_frob_file): Rework so that only a single pass through the
4385         relocs is needed.  Allow %lo()s to have higher offsets than their
4386         corresponding %hi()s or %got()s.
4387
4388 2004-07-02  Nick Clifton  <nickc@redhat.com>
4389
4390         * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
4391         allow values which have come from undefined symbols.
4392         Always consider this fixup to have been processed as a reloc
4393         cannot be generated for it.
4394
4395 2004-07-02  Alan Modra  <amodra@bigpond.net.au>
4396
4397         * frags.h (struct frag): Add has_code and insn_addr fields.
4398         * write.c (cvt_frag_to_fill): Invoke md_frag_check.
4399         * config/tc-ppc.c (md_assemble): Check and set insn_addr.
4400         * config/tc-ppc.h (md_frag_check): Define.
4401
4402 2004-06-28  Maciej W. Rozycki  <macro@linux-mips.org>
4403
4404         * doc/Makefile.am (info): Rename goal to...
4405         (info-local): ... this, to preserve implicit dependencies.
4406         * doc/Makefile.in: Regenerate with automake 1.8.5.
4407
4408 2004-06-25  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4409
4410         * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
4411         (m32r_cgen_record_fixup_exp): Changed for  @GOTOFF, @GOT.
4412         (m32r_fix_adjustable): Changed for  @GOTOFF, @GOT, @PLT.
4413         (tc_gen_reloc): Likewise.
4414         (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
4415         (m32r_parse_name): Likewise.
4416         (m32r_cgen_parse_fix_exp): Likewise.
4417         * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
4418         (O_PIC_reloc): Likewise.
4419         (TC_CGEN_PARSE_FIX_EXP): Likewise..
4420         * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
4421         for @GOTOFF, @GOT, @PLT.
4422
4423 2004-06-21 Jan Beulich  <jbeulich@novell.com>
4424
4425         * gas/symbols.c: While discarding ordinary local absolute symbols
4426         when --strip-local-absolute is in effect, retain file symbols.
4427
4428 2004-06-20  Andreas Schwab  <schwab@suse.de>
4429
4430         * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
4431         (md_parse_option): Likewise.
4432
4433 2004-06-17  Jan Beulich <jbeulich@novell.com>
4434
4435         * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
4436         * config/te-netware.h: New file.
4437         * config/te-ppcnw.h: Delete: Obsolete.
4438         * configure.in: Eliminate ill NetWare targets. Make generic
4439         NetWare target use proper emulation.
4440         * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
4441         reference to new te-netware.h.
4442         * configure: Regenerate.
4443         * Makefile.in: Regenerate.
4444
4445 2004-06-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4446
4447         * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
4448         comparison in .insn pseudo operation.
4449
4450 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
4451
4452         * config/obj-coff.c (coff_adjust_section_syms): Use
4453         bfd_get_section_size instead of bfd_get_section_size_before_reloc.
4454         (coff_frob_section): Likewise.
4455         * config/tc-mips.c (md_apply_fix3): Likewise.
4456         * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
4457         (elf_frob_file_after_relocs): Likewise.
4458
4459 2004-06-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4460
4461         * config/tc-hppa.c (log2): Rename to exact_log2.
4462         (pa_next_subseg): Delete unused function.
4463         (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
4464         (create_new_subspace): Likewise.
4465
4466         Bug gas/213
4467         * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
4468         labels.  Fix warning.
4469
4470 2004-05-28  DJ Delorie  <dj@redhat.com>
4471
4472         * config/tc-mn10300.h (tc_fix_adjustable): Define.
4473         * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
4474         or non-merged symbols.
4475
4476 2004-05-28  H.J. Lu  <hongjiu.lu@intel.com>
4477
4478         * config/tc-ia64.c (remove_marked_resource): Save, clear and
4479         restore the old slot when inserting srlz.i/srlz.d.
4480
4481 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
4482
4483         * Makefile.am: Regenerate dependecies.
4484         * Makefile.in: Regenerate.
4485         * config/tc-sh.c (valid_arch): Make unsigned.
4486         (preset_target_arch): Likewise.
4487         (md_begin): Use new architecture flags system.
4488         (get_specific): Likewise.
4489         (assemble_ppi): Likewise.
4490         (md_assemble): Likewise. Also fix error check for bad opcodes.
4491         (md_parse_option): Likewise. Also generate -isa values according
4492         to the table in bfd/cpu-sh.c instead of just constants. Also
4493         allow <arch>-up ISA variants.
4494         (sh_elf_final_processing): Replace if-else chain with a call to
4495         sh_find_elf_flags().
4496
4497 2004-05-28  Peter Barada <peter@the-baradas.com>
4498
4499         * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
4500         with zero offset into mode 2 addressing to save a word.
4501
4502 2004-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4503
4504         * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
4505         (ar_is_only_in_integer_unit): New.
4506         (ar_is_only_in_memory_unit): New.
4507         (generate_unwind_image): Silence gcc on 32bit host.
4508         (md_assemble): Use ar_is_only_in_integer_unit instead of
4509         ar_is_in_integer_unit. Check AR access.
4510
4511 2004-05-27  Peter Barada  <peter@the-baradas.com>
4512
4513         * config/tc-m68k.c (md_begin): Sort the opcode table into
4514         alphabetical order.
4515         (m68k_compare_opcode): New function to do the sorting.
4516
4517 2004-05-24  Peter Barada  <peter@the-baradas.com>
4518
4519         * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
4520         addressing on MIT style operands.
4521         * config/m68k-parse.y(yylex): Allow '-&' for predecrement
4522         w/mask addressing.
4523         * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
4524         operands.
4525
4526 2004-05-23  Alan Modra  <amodra@bigpond.net.au>
4527
4528         * expr.c (operand, operator): Don't reject '++' and '--'.
4529
4530 2004-05-20  Richard Sandiford  <rsandifo@redhat.com>
4531
4532         * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
4533         dwarf tables.
4534
4535 2004-05-17  Adam Nemet  <anemet@lnxw.com>
4536
4537         * configure.in: Add ppc-*-lynxos*.  Update i386-*-lynxos* to ELF.
4538         * configure: Regenerate.
4539
4540 2004-05-13  Paul Brook  <paul@codesourcery.com>
4541
4542         * dw2gencfi.c (output_cie):  Handle dwarf3 format CIE entries.
4543
4544 2004-05-13  Joel Sherrill <joel@oarcorp.com>
4545
4546         * configure.in (or32-*-rtems*): Switch to elf.
4547         * configure: Regenerate.
4548
4549 2004-05-13  Nick Clifton  <nickc@redhat.com>
4550
4551         * po/fr.po: Updated French translation.
4552
4553 2004-05-11  Nick Clifton  <nickc@redhat.com>
4554
4555         * doc/as.texinfo (Section): Document G and T flags to .section
4556         directive.  Document the extra arguments that the G flag
4557         requires.  Document the #tls flag.
4558
4559 2004-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4560
4561         * subsegs.c (section_symbol): Create a new section symbol if
4562         the existing one doesn't match.
4563         * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
4564
4565 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
4566
4567         * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
4568         to cope with VR4181A errata MD(1) and MD(4).
4569
4570 2004-05-07  Brian Ford  <ford@vss.fsi.com>
4571
4572         * NEWS: Mention .secrel32 for pe[i]-i386.
4573
4574 2004-05-07  Alexandre Oliva  <aoliva@redhat.com>
4575
4576         * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
4577         (HANDLE_ALIGN): New.
4578
4579 2004-05-06  Daniel Jacobowitz  <dan@debian.org>
4580
4581         * Makefile.am (DIST_SUBDIRS): Define.
4582         * aclocal.m4: Regenerate with automake 1.8.4.
4583         * Makefile.in: Likewise.
4584         * doc/Makefile.in: Likewise.
4585
4586 2004-05-06  David Mosberger-Tang  <davidm@hpl.hp.com>
4587
4588         * config/tc-ia64.c (dot_serialize): Declare.
4589         (dot_serialize): New function.
4590         (md_pseudo_table): Add ".serialize.data" and
4591         ".serialize.instruction" directives.
4592
4593 2004-05-06  Nick Clifton  <nickc@redhat.com>
4594
4595         * messages (as_internal_value_out_of_range): Print a message about
4596         a value being out of range.  Be consistent about whether the
4597         values are printed in decimal or hexadecimal.
4598         (as_warn_value_out_of_range): Generate a warning message about an
4599         out of range value.
4600         (as_bad_value_out_of_range): Generate an error message about an
4601         out of range value.
4602         * as.h: Prototype the new functions.
4603         * config/tc-alpha.c (insert_operand): Use new function.
4604         * config/tc-arc.c (arc_insert_operand): Likewise.
4605         * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
4606         * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
4607         * config/tc-ppc.c (ppc_insert_operand): Likewise.
4608         * config/tc-s390.c (s390_insert_operand): Likewise.
4609         * config/tc-v850.c (v850_insert_operand): Likewise.
4610
4611 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
4612
4613         * configure.in: Set em=linux for frv-*-*linux*.
4614         * configure: Rebuilt.
4615         * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
4616         (frv_md_fdpic_enabled): New.
4617         * config/tc-frv.c (frv_md_fdpic_enabled): New.
4618         (DEFAULT_FDPIC): New.
4619         (frv_flags): Use DEFAULT_FDPIC.
4620         (frv_pic_flag): Likewise.
4621         (OPTION_NOPIC): New.
4622         (md_longopts): Add -mnopic.
4623         (md_parse_option): Handle it.
4624         (md_show_usage): Add -mfdpic and -mnopic.
4625
4626 2004-05-05  Peter Barada  <peter@the-baradas.com>
4627
4628         * config/tc-m68k.c: Add find_cf_chip to print list of valid
4629         chips for invalid coldfire instructions, rename selectors
4630         for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
4631         add current_chip to track which chip is referred to(including save/restore),
4632         use current_chip to select control registers, not current_arch.
4633         (md_show_usage): Add new chips.
4634         * doc/c-m68k.texi: Document new command line switches.
4635
4636 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
4637
4638         * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
4639         (NOP_OPCODE): Define.
4640         (s390_align_code): Remove prototype.
4641         * tc-s390.c (s390_align_code): Remove.
4642
4643 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4644
4645         * config/tc-ia64.c (make_unw_section_name): Removed.
4646         (start_unwind_section): New function.
4647         (generate_unwind_image): Take const segT instead of const
4648         char *.
4649         (dot_handlerdata): Adjusted.
4650         (dot_endp): Likewise.
4651
4652 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
4653
4654         * config/obj-elf.c (obj_elf_change_section): Allow the
4655         ".note.GNU-stack" section has SHF_EXECINSTR.
4656
4657 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
4658
4659         * config/obj-elf.c (get_section): Return bfd_boolean.
4660         (obj_elf_change_section): Call bfd_get_section_by_name_if
4661         instead of bfd_map_over_sections.
4662
4663 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4664
4665         * config/obj-elf.c (get_section): New function.
4666         (obj_elf_change_section): Support multiple sections with same
4667         name.
4668
4669 2004-04-30  Nick Clifton  <nickc@redhat.com>
4670
4671         * config/tc-arm.c (create_register_alias): Fix typo checking for
4672         case sensitive register aliases.
4673         (co_proc_number): Use error message string in all_reg_maps[]
4674         array.
4675         (cp_reg_required_here): Likewise.
4676         (fp_reg_required_here): Likewise.
4677
4678 2004-04-29  Brian Ford  <ford@vss.fsi.com>
4679
4680         * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
4681
4682 2004-04-28  Chris Demetriou  <cgd@broadcom.com>
4683
4684         * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
4685         (load_address, macro, mips_ip, md_parse_option)
4686         (mips_force_relocation, mips_validate_fix, md_apply_fix3)
4687         (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
4688         embedded-PIC handling, and update comments.
4689         (SWITCH_TABLE): Remove.
4690         * config/tc-mips.h (DIFF_EXPR_OK): Delete.
4691         (enum mips_pic_level): Remove EMBEDDED_PIC.
4692         (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
4693         (TC_FORCE_RELOCATION): Update comment.
4694         * ecoff.c (ecoff_build_lineno): Add comment about some code that
4695         might be safe to remove now that MIPS embedded-PIC is gone.
4696
4697 2004-04-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4698
4699         * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
4700         call to obj_set_subsection_attributes.
4701         (obj_som_init_stab_section): Likewise.
4702         * config/tc-hppa.c (default_subspace_dict): Add comdat field.
4703         (pa_def_subspaces): Provide comdat default.
4704         (pa_subspace): Handle new "comdat" parameter.  Set SEC_LINK_ONCE and
4705         not SEC_IS_COMMON if section is comdat, common or dup_common.  Update
4706         calls to create_new_subspace and update_subspace to pass comdat flag.
4707         (create_new_subspace, update_subspace): Add new comdat argument.  Use
4708         it in calls to obj_set_subsection_attributes.
4709         * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
4710         and use of comdat, common and dup_comm parameters.
4711
4712 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
4713
4714         * config/obj-elf.c (obj_elf_change_section): Check if the old
4715         group name is NULL before comparison.
4716
4717 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
4718
4719         * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
4720
4721 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4722
4723         * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
4724
4725 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
4726
4727         * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
4728         (OPTION_MEMBEDDED_PIC): Remove.
4729         (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
4730         (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
4731         (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
4732         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
4733         (OPTION_ELF_BASE): Renumber.
4734         (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
4735         (md_show_usage): Remove mention of -membedded-pic.
4736         * doc/as.texinfo: Remove mention of -membedded-pic.
4737
4738 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4739
4740         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
4741         * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
4742         a.out support.
4743         (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
4744         s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
4745         USE_GLOBAL_POINTER_OPT.
4746
4747 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4748
4749         * config/tc-mips.c (macro): One more use of load_delay_nop.
4750
4751 2004-04-22  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
4752
4753         * config/tc-mips.c (load_delay_nop): New function.
4754         (load_address, macro): Use load_delay_nop() to build a nop
4755         which can be omitted with gpr_interlocks.
4756
4757 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4758
4759         * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
4760         cop_interlocks): Remove superfluous CPU entries.
4761
4762 2004-04-22  Paul Brook  <paul@codesourcery.com>
4763
4764         * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
4765
4766 2004-04-22  Peter Barada <peter@the-baradas.com>
4767
4768         * NEWS: Added support for EMAC instructions and MAC/EMAC
4769         Motorola syntax.
4770         * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
4771         scale factor tokens, trailing_ampersand to mark mask addressing
4772         for MAC/EMAC instructions.
4773         * config/m68k-parse.y: Add options_ampersand clause, '<<',
4774         '>>'.
4775         (yylex): Handle '>', '<', and '&' following '+'.
4776         * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
4777         architectures in archs[].
4778         (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
4779         for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
4780         respectively.
4781         (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
4782         (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
4783         cases.
4784         Add EMAC operands to init_table[].
4785
4786 2004-04-22  Bruno De Bus <bdebus@elis.ugent.be>
4787
4788         * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
4789         state.
4790         (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
4791         * config/tc-arm.c (enum mstate): Delete from here.
4792         (mapping_state): Remove the static mapstate variable and instead
4793         store the state in the segment.  This allows a per-section mapping
4794         state.  Handle and ignore MAP_UNDEFINED states.
4795         (arm_elf_change_section): Get the current mapping state from the
4796         new section.
4797         (s_ltorg): Set the mapping state to MAP_DATA.
4798         (arm_cleanup): Use arm_elf_change_section to get the mapping state
4799         for each pool as it is emitted.
4800
4801 2004-04-22  Nick Clifton  <nickc@redhat.com>
4802
4803         * config/tc-arm.h: Formatting tidy ups.
4804
4805 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
4806
4807         * NEWS: Note that MIPS -membedded-pic option is deprecated.
4808
4809 2004-04-20  DJ Delorie  <dj@redhat.com>
4810
4811         * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
4812         * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
4813         [TE_PE] (O_secrel): Define.
4814         [TE_PE] (x86_pe_cons_fix_new): New.
4815         [TE_PE] (pe_directive_secrel): Likewise.
4816         (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
4817
4818 2004-04-19  Eric Christopher  <echristo@redhat.com>
4819
4820         * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
4821         of previous patch for fix in gcc.
4822
4823 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
4824
4825         * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
4826
4827 2004-04-19  Nathan Sidwell  <nathan@codesourcery.com>
4828
4829         * read.c (do_align): Call md_flush_pending_output, if defined.
4830
4831 2004-04-16  Alan Modra  <amodra@bigpond.net.au>
4832
4833         * expr.c (operand): Correct checks for ++ and --.
4834
4835 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4836
4837         * config/tc-generic.c: Add some comments.
4838
4839 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
4840
4841         * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
4842         -{no-}mfix-vr4122-bugs.
4843         * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
4844         (append_insn, mips_emit_delays): Update accordingly.
4845         (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
4846         (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
4847         (md_parse_option): Update after above changes.
4848         (md_show_usage): Add -mfix-vr4120.
4849
4850 2004-04-13  Bob Wilson  <bob.wilson@acm.org>
4851
4852         * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
4853         of .section directive; add a reference to the ELF .subsection
4854         directive.
4855
4856 2004-04-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4857
4858         * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
4859         in parallel.
4860
4861 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4862
4863         * Makefile.am: Remove mips from aout targets.
4864         * Makefile.in: Regenerate.
4865         * configure.in: Remove mips-dec-bsd* target.
4866         * configure: Regenerate.
4867
4868 2004-04-07  Alan Modra  <amodra@bigpond.net.au>
4869
4870         PR 96
4871         * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
4872         to struct map_bfd.  Adjust MAP macro, and define MAP32, MAP64.
4873         Update "mapping".  Restrict some @ modifiers to 32 bit.
4874
4875 2004-04-01  Asgari Jinia  <asgarij@kpitcummins.com>
4876             Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4877
4878         * config/tc-sh.c (dont_adjust_reloc_32): New variable.
4879         (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
4880         dont_adjust_reloc_32 is set.
4881         (md_longopts): Add option -renesas.
4882         (md_parse_option, md_show_usage): Likewise.
4883         * doc/c-sh.texi: Likewise.
4884
4885 2004-04-01  Dave Korn  <dk@artimi.com>
4886
4887         * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
4888         hi16 and lo16 fixS structs.
4889         (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
4890         exactly the same way as for RELOC_DLX_REL16.
4891         (machine_ip): properly respect LO flag in the_insn and
4892         output RELOC_DLX_LO16 rather than RELOC_DLX_16.
4893         (md_apply_fix3): apply RELOC_DLX_LO16.
4894
4895 2004-03-30  Stan Shebs  <shebs@apple.com>
4896
4897         Remove long-obsolete MPW support.
4898         * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
4899         * configure.in: Remove mention of ppc-*-mpw* config.
4900         * configure.in: Likewise.
4901
4902 2004-03-30  Nick Clifton  <nickc@redhat.com>
4903
4904         * config/tc-arm.c (meabi_flags): Make its use conditional upon
4905         OBJ_ELF being defined.
4906
4907 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
4908
4909         * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
4910
4911 2004-03-23  Paul Brook  <paul@codesourcery.com>
4912
4913         * config/tc-arm.c (meabi_flags): New variable.
4914         (arm_parse_eabi): New function.
4915         (md_begin): Set flags for EABI v3.
4916         (arm_eabis): Add.
4917         (arm_long_opts): Add meabi.
4918         * doc/as.texinfo <ARM>: Document -meabi.
4919         * doc/c-arm.texi: Ditto.
4920
4921 2004-03-22  Bob Wilson  <bob.wilson@acm.org>
4922
4923         * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
4924         tables even when use_literal_section flag is not set.
4925
4926 2004-03-22  Alan Modra  <amodra@bigpond.net.au>
4927
4928         * config/tc-sh.c: Remove trailing whitespace.
4929
4930 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
4931
4932         * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
4933         --mul-bug-abort and the default behavior.
4934         * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
4935         (err_for_dangerous_mul_placement): New variable.
4936         (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
4937         macros.
4938         (md_cris_relax_table): Have placeholder for STATE_MUL.
4939         (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
4940         (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
4941         case doing nothing.
4942         (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
4943         STATE_BYTE)>: Ditto.
4944         (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
4945         alignment and position of this frag, emit error message if
4946         suspicious.
4947         (md_assemble): For a multiply insn and when checking it,
4948         transform the current frag into a special frag for that purpose.
4949         (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
4950         OPTION_MULBUG_ABORT_ON>: Handle new options.
4951
4952 2004-03-19  Bob Wilson  <bob.wilson@acm.org>
4953
4954         * config/tc-xtensa.c (mark_literal_frags): New function.
4955         (xtensa_move_literals): Call mark_literal_frags for all literal
4956         segments, including init and fini literal segments.
4957         (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
4958
4959 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4960
4961         * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
4962         (pa_comm): Set BSF_OBJECT in symbol flags.
4963
4964 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
4965
4966         * Makefile.am: Run "make dep-am".
4967         * Makefile.in: Regenerate.
4968         * doc/Makefile.in: Regenerate.
4969         * config.in: Regenerate.
4970         * po/gas.pot: Regenerate.
4971
4972 2004-03-18  Nathan Sidwell  <nathan@codesourcery.com>
4973
4974         * read.c (read_a_source_file): Use demand_empty_rest_of_line.
4975         (demand_empty_rest_of_line): Issue an error here.
4976         (ignore_rest_of_line): Silently skip to end.
4977         (demand_copy_string): Issue an error, not warning.
4978         (equals): Likewise.
4979         * config/obj-elf.c (obj_elf_section_name): Likewise.
4980         (obj_elf_section): Likewise.
4981         * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
4982         (arc_extinst): Likewise.
4983         * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
4984         (dot_spill): Likewise.
4985         (dot_unwabi): Likewise.
4986         (dot_prologue): Likewise.
4987
4988         * expr.c (operand): Reject ++ and --.
4989         (operator): Likewise.
4990
4991 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4992
4993         * config/tc-sh.c: Include dw2gencfi.h.
4994         (sh_cfi_frame_initial_instructions): New function.
4995         (sh_regname_to_dw2regnum): Likewise.
4996         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
4997         file.
4998         (TARGET_USE_CFIPOP): Define.
4999         (tc_cfi_frame_initial_instructions): Likewise.
5000         (tc_regname_to_dw2regnum): Likewise.
5001         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
5002         * Makefile.am: Update dependencies.
5003         * Makefile.in: Regenerate.
5004
5005 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5006
5007         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
5008         * configure: Regenerate.
5009
5010 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
5011
5012         * read.c (s_leb128): Call md_flush_pending_output.
5013
5014 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
5015
5016         * config/tc-i386.c (output_insn): Handle PadLock instructions.
5017         * config/tc-i386.h (CpuPadLock): New define.
5018         (CpuUnknownFlags): Added CpuPadLock.
5019
5020 2004-03-07  Andreas Schwab  <schwab@suse.de>
5021
5022         * doc/c-hppa.texi (HPPA Directives): Fix typo.
5023
5024 2004-03-07  Richard Henderson  <rth@redhat.com>
5025
5026         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
5027         (cfi_finish): Likewise for fde.
5028
5029 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5030
5031         * config/tc-ia64.c (md_assemble): Properly handle NULL
5032         align_frag.
5033         (ia64_handle_align): Don't abort if failed to add a stop bit.
5034
5035 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5036
5037         * Makefile.in: Regenerated.
5038         * aclocal.m4: Likewise.
5039         * configure: Likewise.
5040         * doc/Makefile.in: Likewise.
5041
5042 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5043
5044         * config/tc-ia64.c (dot_align): New.
5045         (ia64_do_align): Make it static.
5046         (md_pseudo_table): Use "dot_align" for "align".
5047         (ia64_md_do_align): Don't set align_frag here.
5048         (ia64_handle_align): Add a stop bit to the previous bundle if
5049         needed.
5050
5051         * config/tc-ia64.h (ia64_do_align): Removed.
5052
5053 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
5054
5055         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
5056         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
5057         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
5058         the most general type or the user specifically requested it.
5059         (md_assemble): Add a new error message for when an instruction
5060         is understood, but is not allowed due to an -isa option.
5061
5062 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
5063
5064         * config/tc-ia64.c (align_frag): New.
5065         (md_assemble): Set the tc_frag_data field in align_frag for
5066         IA64_OPCODE_FIRST instructions.
5067         (ia64_md_do_align): Set align_frag.
5068         (ia64_handle_align): Add a stop bit if needed.
5069
5070         * config/tc-ia64.h (TC_FRAG_TYPE): New.
5071         (TC_FRAG_INIT): New.
5072
5073 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
5074
5075         * config/tc-frv.c (fr400_audio): New variable.
5076         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
5077         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
5078         (target_implements_insn_p): New function.
5079         (md_assemble): Report an error if the processor doesn't implement
5080         the instruction.
5081
5082 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5083
5084         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
5085         (md_parse_option): Ditto.
5086         (OPTION_NO_SPECIAL_M32R): Added.
5087         (md_show_usage): Document it.
5088         (enable_speial_m32r): Changed a default value from 0 to 1.
5089         * doc/c-m32r.texi: Document the -no-bitinst option.
5090
5091 2004-02-27  Nick Clifton  <nickc@redhat.com>
5092
5093         * config/tc-sh.c (get_operand): Revert previous delta.
5094         (tc_gen_reloc): Check for an unknown reloc type before processing
5095         the addend.
5096
5097 2004-02-27  Hannes Reinecke  <hare@suse.de>
5098
5099         * config/tc-s390.c (s390_insn): Correct range check for opcode in
5100         .insn pseudo operation.
5101
5102 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
5103
5104         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
5105         added for wrong syntax.
5106
5107 2004-02-26  Eric Christopher  <echristo@redhat.com>
5108
5109         * config/tc-mips.c (mips_dwarf2_addr_size): New.
5110         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
5111
5112 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
5113
5114         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
5115         nibble types to assembler.
5116
5117 2004-02-25  Fred Fish  <fnf@redhat.com>
5118
5119         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
5120
5121 2004-02-20  James E Wilson  <wilson@specifixinc.com>
5122
5123         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
5124         finalize_syms.
5125         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
5126         (ia64_estimate_size_before_relax): New.
5127         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
5128         (generate_unwind_image): Pass 1 to fixup_unw_records.
5129         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
5130         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
5131
5132 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
5133
5134         * stabs.c (generate_asm_file): Avoid warning about use of
5135         uninitialized variable.
5136
5137 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
5138
5139         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
5140         body, and endp, allow unwind records which do not have a "t"
5141         (time/instruction) field.
5142
5143 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
5144
5145         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
5146         (do_mav_dspsc_2): Likewise.
5147         Fix accumulator registers move opcodes.
5148
5149 2004-02-13  Hannes Reinecke  <hare@suse.de>
5150             Jakub Jelinek  <jakub@redhat.com>
5151
5152         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
5153
5154 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
5155
5156         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
5157         (tc_frob_symbol): New macro definition.
5158         * config/tc-ia64.c (ia64_frob_symbol): New routine.
5159
5160 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
5161
5162         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
5163         read-only.
5164
5165 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
5166
5167         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
5168         (TC_CASE_SENSITIVE): ... this.
5169         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
5170         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
5171
5172 2004-02-06  James E Wilson  <wilson@specifixinc.com>
5173
5174         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
5175         (generate_unwind_image): Re-add it here.
5176
5177 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
5178
5179         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
5180         * read.h (SKIP_WHITESPACE): Turn into an expression.
5181         * read.c (read_a_source_file): A pseudo is removed by having a
5182         NULL handler.
5183
5184 2004-02-05  James E Wilson  <wilson@specifixinc.com>
5185
5186         * config/tc-ia64.c (output_endp): New.
5187         (count_bits): Delete.
5188         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
5189         endp unwind records.
5190         (fixup_unw_records): Handle endp unwind records.  Delete code for
5191         shortening prologue regions not followed by a body record.
5192         (dot_endp): Call add_unwind_entry to emit endp unwind record.
5193         * config/tc-ia64.h (unw_record_type): Add endp.
5194
5195 2004-02-03  James E Wilson  <wilson@specifixinc.com>
5196
5197         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
5198         fill padding bytes with zeroes.
5199         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
5200         sets unwind_record slot_number and slot_frag fields.
5201
5202 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5203
5204         * config/tc-mips.c (add_got_offset_hilo): New function.
5205         (macro): Use load_register() and add_got_offset_hilo() to load
5206         constants instead of hardcoding code sequences throughout.
5207
5208 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
5211
5212 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
5213
5214         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
5215         like m68k-elf.
5216         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
5217         of hard-coded test for TARGET_OS=elf.
5218
5219 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
5220
5221         * config/tc-mips.c (hilo_interlocks): Change definition
5222         so that MIPS32, MIPS64 and later ISAs are included, along with
5223         the already-included machines.  Update comments.
5224
5225 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
5226
5227         * config/tc-arm.c (tc_gen_reloc): Improve error message for
5228         undefined local labels.
5229
5230 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
5231
5232         * config/tc-mips.c (load_address, macro): Update comments about
5233         NewABI GP relaxation.
5234
5235 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
5236
5237         * config/tc-mips.c (macro_build): Remove place and counter arguments.
5238         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
5239         (mips16_macro_build, macro_build_jalr): Remove counter argument.
5240         (set_at, load_register, load_address, move_register): Likewise.
5241         (load_got_offset, add_got_offset): Likewise.
5242         Update all calls and tidy accordingly.
5243
5244 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
5245
5246         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
5247         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
5248         (RELAX_USE_SECOND): Bump to 0x10000.
5249         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
5250         (mips_macro_warning): New variable.
5251         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
5252         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
5253         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
5254         of RELAX_ENCODE.
5255         (append_insn): Update mips_macro_warning.sizes.
5256         (macro_start, macro_warning, macro_end): New functions.
5257         (macro_build): Don't emit warnings here.
5258         (macro_build_lui, md_estimate_size_before_relax): ...or here.
5259         (md_convert_frag): Check for cases where one macro alternative
5260         needs a warning and the other doesn't.  Emit a warning if the
5261         longer sequence was chosen.
5262
5263 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
5264
5265         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
5266         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
5267         the first sequence, the size of the second sequence, and a flag
5268         that says whether we should warn.
5269         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
5270         (RELAX_FIRST, RELAX_SECOND): New.
5271         (mips_relax): New variable.
5272         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
5273         (append_insn): Remove "place" argument.  Use mips_relax.sequence
5274         rather than "place" to check whether we're expanding the second
5275         alternative of a relaxable macro.  Remove redundant check for
5276         branch relaxation.  If generating a normal insn, and there
5277         is not enough room in the current frag, call relax_close_frag()
5278         to close it.  Update mips_relax.sizes[].  Emit fixups for the
5279         second version of a relaxable macro.  Record the first relaxable
5280         fixup in mips_relax.  Remove tc_gen_reloc workaround.
5281         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
5282         in the same way as in append_insn.
5283         (mips16_macro_build): Remove "place" argument.
5284         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
5285         when generating the second version of a relaxable macro.
5286         (load_got_offset, add_got_offset): New functions.
5287         (load_address, macro): Use new relaxation machinery.  Remove
5288         tc_gen_reloc workarounds.
5289         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
5290         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
5291         first version is needed.
5292         (tc_gen_reloc): Remove relaxation handling.
5293         (md_convert_frag): Go through the fixups for a relaxable macro and
5294         mark those that belong to the unneeded alternative as done.  If the
5295         second alternative is needed, adjust the fixup addresses to account
5296         for the deleted first alternative.
5297
5298 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
5299
5300         * frags.h (frag_room): Declare.
5301         * frags.c (frag_room): New function.
5302         * doc/internals.texi: Document it.
5303
5304 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5305
5306         * config/tc-mips.c (append_insn): Don't do r3900 interlock
5307         optimization for -mtune=r3900, as this will break on other CPUs.
5308
5309 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
5310
5311         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
5312         be relaxed, use fixup.
5313         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
5314
5315 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
5316
5317         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
5318         precision operands.
5319
5320 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5321
5322         * config/tc-mips.c (append_insn): Properly detect variant frags
5323         that preclude swapping of relaxed branches.  Correctly swap
5324         instructions between frags when dealing with relaxed branches.
5325
5326 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5327
5328         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
5329         throughout.
5330         * aclocal.m4: Regenerate.
5331         * configure: Regenerate.
5332
5333 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
5334
5335         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
5336         manipulation insns.
5337
5338 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
5339
5340         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
5341         reloc, reserve space for the delay slot as well as the jalr itself.
5342
5343 2004-01-09  Paul Brook  <paul@codesourcery.com>
5344
5345         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
5346         (do_vfp_sp2_from_reg2): New function.
5347         (insns): Use them.
5348         (do_vfp_dp_from_reg2): Check return values properly.
5349
5350 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
5351
5352         * config/tc-mips.c (warn_nops): Remove static variable.
5353         (macro): Remove test of warn_nops.
5354         (md_shortops): Remove 'n'.
5355         (md_parse_option): Remove 'n' case.
5356         (md_show_usage): Remove -n.
5357         * doc/as.texinfo (Overview): Remove MIPS -n option.
5358         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
5359         * NEWS: Mention removal of MIPS -n option.
5360
5361         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
5362         (cop_interlocks): Check ISA level.
5363         (cop_mem_interlocks): Define.
5364         (reg_needs_delay): Check cop_interlocks rather than
5365         ISA_HAS_COPROC_DELAYS.
5366         (append_insn): Likewise.  Use cop_mem_interlocks rather than
5367         directly checking mips_opts.isa.
5368         (mips_emit_delays): Likewise.
5369
5370 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5371
5372         * config/tc-ia64.c (unwind): Move next_slot_number and
5373         next_slot_frag to ...
5374         (unw_rec_list): Here.
5375         (free_list_records): Removed.
5376         (output_unw_records): Likewise.
5377         (generate_unwind_image): Make it void.
5378         (alloc_record): Initialize next_slot_number and next_slot_frag.
5379         (slot_index): Take .org, .space and .align into account.
5380         (fixup_unw_records): Don't set slot_number to 0. Use
5381         list->next_slot_number and list->next_slot_frag instead of
5382         unwind.next_slot_number and unwind.next_slot_frag.
5383         (ia64_convert_frag): New.
5384         (generate_unwind_image): Generate a rs_machine_dependent frag
5385         for unwind record.
5386         (emit_one_bundle): Use list->next_slot_number and
5387         list->next_slot_frag instead of unwind.next_slot_number and
5388         unwind.next_slot_frag.
5389
5390         * config/tc-ia64.h (md_convert_frag): Defined as
5391         ia64_convert_frag.
5392         (md_estimate_size_before_relax): Defined as (f)->fr_var.
5393
5394 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
5395
5396         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
5397         * config/tc-frv.h (md_apply_fix3): Don't define.
5398         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
5399         operands.
5400         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
5401         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
5402         * config/tc-frv.c (line_separator_chars): Add `!'.
5403         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
5404         * config/tc-frv.c (md_assemble): Clear insn upfront.
5405         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
5406         * config/tc-frv.c (OPTION_FDPIC): New macro.
5407         (md_longopts): Add mfdpic.
5408         (md_parse_option): Handle it.
5409         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
5410         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
5411         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
5412         (frv_pic_ptr): Parse funcdesc.
5413
5414 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5415
5416         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
5417         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
5418
5419 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5420
5421         * Makefile.am (Makefile): Move the dependency on
5422         $(BFDDIR)/configure.in to...
5423         (CONFIG_STATUS_DEPENDENCIES): ... here.
5424         (AUTOMAKE_OPTIONS): Require automake 1.8.
5425         * Makefile.in: Regenerate.
5426         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
5427         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
5428         $(BFDDIR)/configure.in here as well.
5429         * doc/Makefile.in: Regenerate.
5430
5431 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5432
5433         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
5434         * Makefile.in: Regenerate.
5435         * aclocal.m4: Regenerate.
5436         * doc/Makefile.am (install, install-info): Remove.
5437         (install-data-local): A new hook for install-info.
5438         (AUTOMAKE_OPTIONS): Require automake 1.8.
5439         * doc/Makefile.in: Regenerate.
5440
5441 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
5442
5443         * doc/c-sh.texi: Update description about floating point behavior
5444         of SH family.
5445
5446 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
5447
5448         * configure.in: Add m68k-uClinux target.
5449         * configure: Regenerate.
5450
5451 For older changes see ChangeLog-0203
5452 \f
5453 Local Variables:
5454 mode: change-log
5455 left-margin: 8
5456 fill-column: 74
5457 version-control: never
5458 End: