Convert unmaintained files over to ISO-C90 and fix formatting.
[platform/upstream/binutils.git] / gas / ChangeLog
1 2005-03-24  Nick Clifton  <nickc@redhat.com>
2
3         * write.h (bit_fix_new): Remove redundant prototype.
4         * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
5         * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
6         * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
7         * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
8         * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
9         * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
10         * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
11         * config/obj-som.c: Convert to ISO-C90 and fix formatting.
12         * config/obj-som.h: Convert to ISO-C90 and fix formatting.
13         * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
14         * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
15         * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
16         * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
17         * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
18         * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
19         * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
20         * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
21         * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
22         * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
23         * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
24         * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
25         * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
26         * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
27         * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
28         * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
29         * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
30         * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
31         * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
32         * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
33         * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
34         * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
35         * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
36         * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
37         * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
38         * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
39         * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
40         * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
41         * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
42         * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
43         * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
44         * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
45         * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
46         * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
47         * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
48         * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
49         * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
50         * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
51         * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
52         * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
53         * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
54         * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
55         * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
56         * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
57         * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
58         * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting. 
59
60 2005-03-23  Jim Blandy  <jimb@redhat.com>
61
62         * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
63         attributes properly.
64
65 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
66             Nick Clifton  <nickc@redhat.com>
67
68         * configure.tgt: Accept any C library to accompany a GNU Linux
69         implementation, not just the GNU C library.
70         * configure.in: Likewise.
71         * configure: Regenerate.
72
73 2005-03-23  Nick Clifton  <nickc@redhat.com>
74
75         * config/tc-tic30.c: Convert to ISO C90 formatting.
76         * config/tc-tic30.h: Convert to ISO C90 formatting.
77         * config/tc-pdp11.c: Convert to ISO C90 formatting.
78         * config/atof-vax.c: Convert to ISO C90 formatting.
79
80 2005-03-21  Maciej W. Rozycki  <macro@mips.com>
81
82         * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
83         relocations correctly as well.
84         (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
85         relocations in mergeable sections section-relative either.
86
87 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
88
89         * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
90
91 2005-03-21  Nick Clifton  <nickc@redhat.com>
92
93         * config/tc-sh.c (sh_elf_final_processing): Fix compile time
94         warning by providing a prototype for sh_symbian_find_elf_flags.
95
96         * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
97         previous delta.
98
99 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
100
101         * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
102         along with other formats that set bfd_gas.  Remove unnecessary
103         setting of bfd_gas.  Delete strongarm cases in generic_target
104         switch.
105
106 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
107
108         PR gas/780
109         * config/tc-m68k.c (TRUNC, SEXT): Define.
110         (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
111         (m68k_ip): Truncate or sign extend expressions as appropriate.
112         (get_num): Likewise.
113         (md_apply_fix3): Use SEXT.
114
115 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
116
117         * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
118         (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
119         (obj-vms.o): Delete rule.
120         Run "make dep-am".
121         * Makefile.in: Regenerate.
122         * aclocal.m4: Regenerate.
123         * doc/Makefile.in: Regenerate.
124         * po/POTFILES.in: Regenerate.
125
126 2005-03-18  C Jaiprakash  <cjaiprakash@noida.hcltech.com>
127
128         * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
129         flag for coldfire v4e.
130
131 2005-03-17  Bob Wilson  <bob.wilson@acm.org>
132
133         * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
134         xg_apply_fix_value and return a value to indicate success.
135         (md_pcrel_from): Skip check of fx_done.  Return 0 if not PC-relative.
136         (xtensa_force_relocation): Remove checks for VTABLE relocs.
137         (xtensa_validate_fix_sub): New.
138         (xtensa_fix_adjustable): Remove check for external or weak symbols.
139         (tc_gen_reloc): Move code to handle difference of symbols and code to
140         apply tentative fix values to ...
141         (md_apply_fix3): ...here.  Enable standard overflow checks for simple
142         8, 16, and 32 bit relocations.  Apply fixes for slot-specific
143         relocations when linkrelax flag is not set.
144         * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
145         (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
146
147 2005-03-17  Jan Beulich  <jbeulich@novell.com>
148
149         * config/tc-i386.c (i386_scale): Beautify error message.
150         (Intel syntax comments): Update.
151         (struct intel_parser_s): Add fields in_offset, in_bracket, and
152         next_operand.
153         (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
154         Remove declarations.
155         (intel_bracket_expr): Declare.
156         (i386_intel_operand): Initialize new intel_parser fields. Wrap most
157         of the function body in a loop allowing to split an operand into two.
158         Replace calls to malloc and checks of it returning non-NULL with
159         calls to xmalloc/xstrdup.
160         (intel_expr): SHORT no longer handled here. Add comment indicating
161         comparison ops need implementation.
162         (intel_e04, intel_e04_1): Combine, replace recursion with loop.
163         Check right operand of - does not specify a register when parsing
164         the address of a memory reference.
165         (intel_e05, intel_e05_1): Combine, replace recursion with loop.
166         Check operands do not specify a register when parsing the address of
167         a memory reference.
168         (intel_e06, intel_e06_1): Likewise.
169         (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
170         handle SHORT as well as unary + and -. Don't accept : except for
171         segment overrides or in direct far jump/call insns.
172         (intel_brack_expr): New.
173         (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
174         intel_brack_expr.
175         (intel_e11): Replace chain of if/else-if by switch, alloing fall-
176         through in certain cases. Use intel_brack_expr. Add new diagnostics.
177         Allow symbolic constants as register scale value.
178         (intel_get_token): Replace call to malloc and check of return value
179         with call to xmalloc. Change handling for FLAT to match MASM's.
180         (intel_putback_token): Don't try to back up/free current token if
181         that is T_NIL.
182
183 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
184
185         * configure.tgt: Set emulation for arm-*-eabi*.
186         * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
187         * config/te-armeabi.h: New file.
188         * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
189         * config/te-symbian.h: Include "te-armeabi.h".
190
191 2005-03-16  Nick Clifton  <nickc@redhat.com>
192
193         * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
194         local variable in case it is clobbered by the setjmp.
195
196 2005-03-16  Nick Clifton  <nickc@redhat.com>
197             Ben Elliston  <bje@au.ibm.com>
198
199         * configure.in (werror): New switch: Add -Werror to the
200         compiler command line.  Enabled by default.  Disable via
201         --disable-werror.
202         * configure: Regenerate.
203
204 2005-03-16  Nick Clifton  <nickc@redhat.com>
205
206         * config/obj-coff.h: Convert to ISO C90 formatting.
207         * config/obj-coff.c: Convert to ISO C90 formatting.
208
209 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
210
211         * config/tc-arm.c (do_mla): Rename to do_mlas, take second
212         is_mls parameter; do not diagnose Rm==Rd when is_mls.
213         (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
214         (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
215         (insns): Add ARMv6T2 instructions:
216         bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
217         (arm_archs): Add V6T2 variants.
218
219 2005-03-15  Nick Clifton  <nickc@redhat.com>
220
221         * NEWS: Add cutoff for changes in 2.16 release.
222
223 2005-03-15  Jan Beulich  <jbeulich@novell.com>
224
225         * expr.c (operand): Merge handling of unary + into that for unary
226         -, !, and ~.
227
228 2005-03-14  Eric Christopher  <echristo@redhat.com>
229
230         * config/tc-mips.c: Include dw2gencfi.h.
231         (mips_cfi_frame_initial_instructions): New.
232         * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
233         (tc_cfi_frame_initial_instructions): Ditto.
234         (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
235         (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
236         * Makefile.am: Update dependencies.
237         * Makefile.in: Regenerate.
238
239 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
240
241         * po/es.po: Commit new Spanish translation.
242
243 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
244
245         * po/tr.po: Commit new Turkish translation.
246
247 2005-03-12  Zack Weinberg  <zack@codesourcery.com>
248
249         * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
250         wfi, yield.
251
252 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
253
254         * config-gas.com: Mark vax-vms as obsolete.
255         * configure.in: Remove fmt=vms support.
256         * config.in: Regenerate.
257         * configure: Regenerate.
258         * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
259
260 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
261
262         * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
263         when checking if xg_resolve_literals needs to be called.
264         * config/tc-xtensa.h: Fix spelling typo in a comment.
265
266 2005-03-10  Jan Beulich  <jbeulich@novell.com>
267
268         * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
269         * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
270         crafted structure declarations with the types from macro.h.
271
272 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
273
274         * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
275         for -mno-shared optimization.
276
277 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
278
279         * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
280         (MAX_NOPS): Bump to 4.
281         (mips_fix_vr4130): New variable.
282         (nops_for_vr4130): New function.
283         (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS.  Use
284         nops_for_vr4130 if working around VR4130 errata.
285         (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
286         (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
287         (md_parse_option): Handle them.
288         (md_show_usage): Print them.
289         * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
290
291 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
292
293         * config/tc-mips.c (append_insn): Remove cop_interlocks test from
294         branch delay code.
295
296 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
297
298         * config/tc-mips.h (mips_flush_pending_output): Delete.
299         (mips_emit_delays): Declare.
300         (md_flush_pending_output): Use mips_emit_delays.
301         * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
302         the previous instructions.
303         (md_begin, append_insn, md_parse_option): Update callers.
304         (mips_emit_delay): Remove parameter.  Move INSNS != 0 code to
305         start_noreorder.
306         (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
307         (s_gpdword): Update callers.
308         (start_noreorder, end_noreorder): New functions.
309         (macro, macro2, mips16_macro, s_mipsset): Use them instead of
310         manipulating mips_opts or prev_nop_frag directly.
311         (mips_flush_pending_output): Delete.
312
313 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
314
315         * config/tc-mips.c (mips_move_labels): New function, taken from...
316         (append_insn, mips_emit_delays): ...here.
317
318 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
319
320         * config/tc-mips.c (MAX_NOPS): New macro.
321         (history): Resize to 1 + MAX_NOPS.
322         (fix_vr4120_class): New enumeration.
323         (vr4120_conflicts): New variable.
324         (init_vr4120_conflicts): New function.
325         (md_begin): Call it.
326         (insn_uses_reg): Constify first argument.
327         (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
328         (nops_for_insn_or_target): New functions.
329         (append_insn): Use the new nops_for_* functions instead of inline
330         delay checks.  Generalize prev_nop_frag handling to handle an
331         arbitrary history length.  Insert nops into the history buffer
332         once the number of nops in prev_nop_frag is fixed.
333         (emit_delays): Use nops_for_insn instead of inline delay checks.
334
335 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
336
337         * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
338         check from branch delay code.  Remove unnecessary check for branches.
339
340 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
341
342         * config/tc-mips.c (dummy_opcode): Delete.
343         (nop_insn, mips16_nop_insn): New variables.
344         (NOP_INSN): New macro.
345         (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
346         (add_relaxed_insn, insert_into_history, emit_nop): New functions.
347         (md_begin): Initialize nop_insn and mips16_nop_insn.
348         (append_insn): Use the new emit_nop function to add nops, recording
349         them in the history buffer.  Use add_fixed_insn or add_relaxed_insn
350         to reserve room for the instruction and install_insn to install the
351         final form.  Use insert_into_history to record the instruction in
352         the history buffer.  Use move_insn to do delay slot filling.
353         (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
354         (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
355         (mips16_ip): Use create_insn to initialize mips_cl_insns.
356
357 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
358
359         * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
360         (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
361         (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
362         (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
363         (mips16_ip): Use the new macros instead of explicit masks and shifts.
364
365 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
366
367         * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
368         and extended_p fields with a single fixed_p field.
369         (append_insn, mips_no_prev_insn): Adjust accordingly.
370
371 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
372
373         * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
374         a single mips16_absolute_jump_p bit.
375         (append_insn): Adjust accordingly.
376
377 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
378
379         * config/tc-mips.h (mips_cl_insn): Move definition to...
380         * config/tc-mips.c (mips_cl_insn): ...here.  Add new fields:
381         frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
382         and extended_p.
383         (history): New variable.
384         (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
385         (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
386         (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
387         (prev_prev_insn_unreordered): Delete.
388         (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
389         (macro_start): Replace uses of prev_insn* with the equivalent history[]
390         field.
391
392 2005-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
393
394         * doc/Makefile.am: Update as.info dependencies.
395         * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
396
397 2005-03-08  Jan Beulich  <jbeulich@novell.com>
398
399         * doc/as.texinfo: Add sentence to indicate redefining a macro is an
400         error, and point to .purgem documentation if someone really needs
401         re-definitions.
402         * NEWS: Mention macro redefinition is now an error.
403
404 2005-03-08  Jan Beulich  <jbeulich@novell.com>
405
406         * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
407         emitted to. Add more precise diagnostics for non-fitting insns based
408         on that. Eliminate now superfluous special casing of MLX. Clear out
409         slot information when dropping an insn.
410
411 2005-03-08  Jan Beulich  <jbeulich@novell.com>
412
413         * config/tc-ia64.c (parse_section_name): Rename to...
414         (cross_section): In addition to separating the name from the rest of
415         the arguments, also carry out the operation.
416         (dot_xdata): Use cross_section.
417         (dot_float_cons): Likewise.
418         (dot_xstringer): Likewise.
419         (dot_xdata_ua): Likewise.
420         (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
421
422 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
423
424         * po/gas.pot: Regenerate.
425
426 2005-03-04  David Daney  <ddaney@avtrex.com>
427
428         * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
429         instead of '_gp' for -mno-shared optimization.
430         (s_cpload): Ditto.
431         (s_abicalls): Document it in the comment.
432         (md_show_usage): Document the -mno-shared option.
433
434 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
435
436         * config/tc-mips.c (mips_set_options): Add sym32 field.
437         (mips_opts): Initialize it.
438         (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
439         (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
440         (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
441         (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
442         when deciding whether to use a symbolic %highest/%higher expansion.
443         (macro): Likewise.  Remove o64/n32 linux hack.  Always use
444         ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
445         and "la".  Handle constants separately from symbolic expressions in
446         the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
447         and using load_register to load the high part of the address.
448         (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
449         (OPTION_ELF_BASE): Bump by 2.
450         (md_longopts): Add entries for -msym32 and -mno-sym32.
451         (md_parse_option): Handle them.
452         (usage): Document them.
453         (s_mipsset): Handle ".set sym32" and ".set nosym32".
454         (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
455         HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
456         * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
457         -msym32 and -mno-sym32.
458
459 2005-03-03  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
460
461         * config/tc-mips.c (load_address): Implement GP optimization
462         for 64bit address space non-PIC. Fix formatting.
463         (macro): Likewise. Simplify code.
464         (md_parse_option): Don't bail out if -G 0 is set for PIC code.
465         (mips_after_parse_args): Simplify code.
466
467 2005-03-03  Nick Clifton  <nickc@redhat.com>
468
469         * expr.c (operand): Remove redundant code enclosed by #ifdef
470         RELAX_PAREN_GROUPING....#endif.
471
472         * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
473         reloc is the difference of two symbols defined in the same
474         section.
475
476         * config/tc-iq2000.c (line_comment_chars): Include the # character
477         as otherwise this breaks #APP/#NO_APP processing.
478
479 2005-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
480
481         * config/tc-arc.c(md_assemble): Remove dead code for handling
482         immediate indexing of ld and st .
483
484 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
485             Joseph Myers  <joseph@codesourcery.com>
486
487         * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
488         %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
489         (parse_relocation): Check for a word break after a relocation
490         operator.
491         (md_apply_fix3): Handle TLS relocations, and mark thread-local
492         symbols.
493
494 2005-03-02  Alan Modra  <amodra@bigpond.net.au>
495
496         * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
497
498 2005-03-02  Jan Beulich  <jbeulich@novell.com>
499
500         * as.c (main): Use unlink_if_ordinary instead of unlink.
501         * messages.c (as_fatal): Likewise.
502
503 2005-03-02  Jan Beulich  <jbeulich@novell.com>
504
505         * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
506         accesses.
507         (parse_register): Allow cr8...15 in all modes.
508
509 2005-03-02  Jan Beulich  <jbeulich@novell.com>
510
511         * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
512         etc. like normal symbol references (T_ID).
513
514 2005-03-02  Alan Modra  <amodra@bigpond.net.au>
515
516         * symbols.c (fb_label_name): Fix silly thinko in last change.
517
518 2005-03-02  Alan Modra  <amodra@bigpond.net.au>
519
520         * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
521         * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
522
523         * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
524
525 2005-03-01  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
526
527         PR gas/708
528         * config/tc-arc.c (md_assemble): Initialize suffix for extension
529         suffixes also.
530
531 2005-03-01  Alan Modra  <amodra@bigpond.net.au>
532
533         * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
534
535         * as.h (assert): Warning fix.
536         * expr.c (expr): Correct assertion.
537         * read.c (s_comm_internal): Remove assertion.
538         * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
539         (fixup_segment): Remove assertion.
540         * config/tc-dlx.c (machine_ip): Remove untrue assertions.
541         (md_apply_fix3): Likewise.
542         * config/tc-i370.c (md_begin): Correct assertion.
543         (i370_macro): Warning fix for assertion.
544
545 2005-03-01  Alan Modra  <amodra@bigpond.net.au>
546
547         * configure.in (AC_C_BIGENDIAN): Invoke.
548         * configure: Regenerate.
549         * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
550         host variable to set string header size.
551         * config/obj-aout.c (obj_header_append): Don't use host structs.
552         (obj_symbol_to_chars): Likewise.
553         (obj_emit_strings): Likewise.  Use the passed in output pointer.
554         * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
555         * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
556         not sizeof host struct.
557         (obj_header_append, obj_symbol_to_chars): Don't use host structs.
558         (obj_emit_strings): Likewise.
559         * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
560         (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
561         sizeof host struct.
562         (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
563         sizeof host struct.
564         (host_number_to_chars): Define.
565         * config/obj-hp300.c (hp300_header_append): Don't use sizeof
566         host internal struct to set header sizes.
567         * config/tc-i960.c (md_number_to_field): Warning fix.
568         (md_ri_to_chars): Use host byte order.
569         (get_cdisp, md_apply_fix3): Warning fix.
570         * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
571
572 2005-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
573
574         * doc/c-arc.texi: Update documentation about ARC's extension
575         instructions.
576
577 2005-02-27  Svein E. Seldal  <svein@dev.seldal.com>
578
579         * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
580         address for myself.
581
582 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
583
584         * cgen.c: Warning fixes.
585         * config/tc-arc.c: Likewise.
586         * config/tc-arm.c: Likewise.
587         * config/tc-avr.c: Likewise.
588         * config/tc-d10v.c: Likewise.
589         * config/tc-d30v.c: Likewise.
590         * config/tc-frv.c: Likewise.
591         * config/tc-frv.h: Likewise.
592         * config/tc-h8300.c: Likewise.
593         * config/tc-h8500.c: Likewise.
594         * config/tc-i370.c: Likewise.
595         * config/tc-i960.c: Likewise.
596         * config/tc-ia64.c: Likewise.
597         * config/tc-ip2k.c: Likewise.
598         * config/tc-m68hc11.c: Likewise.
599         * config/tc-maxq.c: Likewise.
600         * config/tc-mcore.c: Likewise.
601         * config/tc-mips.c: Likewise.
602         * config/tc-msp430.c: Likewise.
603         * config/tc-pj.c: Likewise.
604         * config/tc-ppc.c: Likewise.
605         * config/tc-ppc.h: Likewise.
606         * config/tc-s390.c: Likewise.
607         * config/tc-sh.c: Likewise.
608         * config/tc-sh64.c: Likewise.
609         * config/tc-tic4x.c: Likewise.
610         * config/tc-tic80.c: Likewise.
611         * config/tc-v850.c: Likewise.
612         * config/tc-vax.c: Likewise.
613         * config/tc-w65.c: Likewise.
614         * config/tc-xstormy16.c: Likewise.
615         * config/tc-z8k.c: Likewise.
616
617 2005-02-22  Catherine Moore  <clm@cm00re.com>
618
619         * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
620         * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
621
622 2005-02-22  Eric Christopher  <echristo@redhat.com>
623
624         * config/tc-mips.c (struct proc): Change isym to
625         func_sym. New member func_end_sym.
626         (s_mips_ent): Update.
627         (s_mips_end): Ditto. Add code to compute function size.
628
629 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
630
631         * read.c: Warning fixes.
632         * config/obj-elf.c: Likewise.
633
634 2005-02-22  Maciej W. Rozycki  <macro@mips.com>
635
636         * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
637         emitting insn.
638
639 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
640
641         * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
642         SEC_COFF_SHARED.
643
644         * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
645         SEC_TIC54X_BLOCK.
646         (demand_empty_rest_of_line): Likewise.
647         (tic54x_sblock): Likewise.
648         (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
649
650 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
651
652         * read.c (address_bytes): New function.
653         (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
654         (potable): Add "dc.a".
655         (cons_worker): Handle "dc.a".
656         * doc/internals.texi (TC_ADDRESS_BYTES): Document.
657
658 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
659
660         * input-file.c (input_file_open): Rearrange to avoid warning.
661
662 2005-02-19  Alan Modra  <amodra@bigpond.net.au>
663
664         * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
665         * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
666         * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
667
668 2005-02-18  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
669
670         * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
671         uses after .set noat.
672         (load_address): Likewise.
673         (macro): Likewise. Don't try to avoid $at use by sacrificing
674         the target register before it is stored, it won't work.
675
676 2005-02-17  James E Wilson  <wilson@specifixinc.com>
677
678         * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
679         see an instruction that specifies a template.
680
681 2005-02-18  Alan Modra  <amodra@bigpond.net.au>
682
683         * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
684         * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
685         * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
686
687 2005-02-17  H.J. Lu  <hongjiu.lu@intel.com>
688
689         * NEWS: Mention "-mhint.b=[ok|warning|error]".
690
691         * config/tc-ia64.c (md): Add hint_b.
692         (emit_one_bundle): Handle md.hint_b for "hint".
693         (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
694         (md_show_usage): Add "-mhint.b=[ok|warning|error]".
695         (ia64_init): Set md.hint_b to error.
696         (md_assemble): Handle md.hint_b for "hint.b".
697
698         * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
699         * doc/c-ia64.texi: Likewise.
700
701 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
702
703         * tc.h (struct relax_type, relax_typeS): Move from here..
704         * as.h: ..to here.  Make rlx_forward and rlx_backward an offsetT.
705         * ecoff.c (ecoff_new_file): Add appfile param.
706         * ecoff.h (ecoff_new_file): Likewise.
707         * itbl-lex.h: New file.
708         * itbl-lex.l: Include itbl-lex.h.
709         * itbl-parse.y: Likewise.
710         (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
711         * read.c (s_app_file_string): Mark appfile possibly unused.
712         * subsegs.c (seg_not_empty_p): Make sec possibly unused.
713         * subsegs.h (struct seg_info_trash): Delete.
714         (seg_info): Use segment_info_type instead.
715         * config/obj-coff.c (struct filename_list): Make filename const char *.
716         * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
717         * config/obj-elf.c (elf_file_symbol): Similarly.
718         * config/tc-a29k.c (md_apply_fix3): Make val a valueT.  Don't use
719         signed right shift.
720         * config/tc-arc.c (md_operand): Warning fix.
721         * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
722         (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
723         * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
724         * config/tc-frv.c (frv_force_relocation): Warning fix.
725         * config/tc-m68k.c (md_parse_option): Delete unused var.
726         * config/tc-mcore.c (mylog2): Rename from log2 throughout.
727         * config/tc-sparc.c: Likewise.
728         (s_common): Warning fix.
729         * config/tc-mips.c (append_insn): Use unsigned long long expressions.
730         * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
731         addressT.
732         * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
733         * config/tc-sh.c (sh_cfi_frame_initial_instructions,
734         sh_regname_to_dw2regnum): Only define for OBJ_ELF.
735         * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
736         (tic4x_do_align): Use TIC_NOP_OPCODE.
737         * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
738         * config/tc-vax.c: Include netinet/in.h.
739         (tc_headers_hook): Formatting.
740         * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
741
742 2005-02-17  Jan Beulich  <jbeulich@novell.com>
743
744         * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
745         parsing inN, locN, outN. Set 'idx' to offset register number starts
746         at. Don't handle numbers with leading zeroes or beyond 95. Remove
747         pointless cast.
748
749 2005-02-16  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
750
751         * config/tc-mips.c (load_address): Fix formatting.
752         (macro): Don't use AT if .set noat is in effect. Fix formatting.
753         Catch macros which are unexpandable without AT. Remove duplicate
754         zeroing of used_at.
755         (macro2): Remove duplicate zeroing of used_at.
756
757 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
758
759         * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
760         than zero.
761
762 2005-02-15  Nigel Stephens  <nigel@mips.com>
763             Maciej W. Rozycki  <macro@mips.com>
764
765         * config/tc-mips.c (reloc_needs_lo_p): Handle
766         BFD_RELOC_MIPS16_HI16_S.
767         (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
768         (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
769         and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
770         complaints on.
771         (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
772         BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
773         Call my_getSmallExpression() to parse percent operators.
774         (percent_op_match, mips_percent_op): Separate definitions.
775         (mips16_percent_op): Define percent operators for the MIPS16 mode.
776         (parse_relocation): Handle the MIPS16 mode using
777         mips16_percent_op.
778         (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
779         BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
780
781 2005-02-15  Jan Beulich  <jbeulich@novell.com>
782
783         * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
784         instead of explicitly dealing with the translation; exclude
785         relocations that are already pcrel, however.
786
787 2005-02-15  Jan Beulich  <jbeulich@novell.com>
788
789         * config/tc-ia64.c: Include limits.h (if available).
790         (gr_values[0]): Set path to INT_MAX.
791         (dot_reg_val): Don't allow changing value of r0. Limit range of
792         general registers at r127.
793         (specify_resource): Default resource index is -1. Don't set resource
794         index (in case IA64_RS_RSE) without setting the specific flag.
795         (note_register_values): Check operand is O_constant before tracking
796         input value of moves. Add tracking for dep.z with constant inputs.
797         (print_dependency): Resource index of specific resource may be zero.
798         (check_dependencies): Likewise.
799
800 2005-02-15  Jan Beulich  <jbeulich@novell.com>
801
802         * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
803         reg_class. Check operands and emit diagnostics for illegal use of
804         registers.
805
806 2005-02-15  Jan Beulich  <jbeulich@novell.com>
807
808         * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
809         new variables type, suffix, and width. Handle
810         BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
811         Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
812         FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
813         FUNC_DTP_RELATIVE case. Return incoming relocation type if
814         BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
815         if unable to translate relocation type, using the new variables.
816
817 2005-02-15  Jan Beulich  <jbeulich@novell.com>
818
819         * config/tc-ia64.h (ia64_symbol_chars): Declare.
820         (ty_symbol_chars): Define.
821         * config/tc-ia64.c (ia64_symbol_chars): Define.
822
823 2005-02-15  Jan Beulich  <jbeulich@novell.com>
824
825         * config/tc-ia64.c (ia64_parse_name): Only update next character if
826         input_line_pointer was advanced.
827
828 2005-02-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
829
830         * config/tc-sh.c (md_apply_fix3): Add parentheses around &
831         within |.
832
833 2005-02-13  Jan Beulich  <jbeulich@novell.com>
834
835         * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
836         (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
837         indicator.
838         (ia64_init): Set md.detect_dv.
839         (ia64_start_line): New static variable warned. Warn only once when
840         encountering explicit stops in automatic mode.
841         * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
842         * NEWS: Mention new default mode.
843
844 2005-02-13  Jan Beulich  <jbeulich@novell.com>
845
846         * config/tc-ia64.c (dot_rot): Add comment that name strings should
847         be freed when wiping out previous state. Canonicalize names before
848         use. Free name string when detecting redefinition.
849         (dot_pred_rel): Call generic expression parser to process arguments.
850         Handle O_register case for individual predicates and O_subtract for
851         ranges.
852         (ia64_parse_name): Canonicalize name before looking it up in dynamic
853         register hash.
854         (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
855         Warn if multiple found, issue error if resulting symbol name has zero
856         length.
857         (dot_alias): Canonicalize name before use.
858
859 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
860
861         * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
862         and 0 for error.
863         (in_procedure): Return -1 for warning.
864         (in_prologue): Likewise.
865         (in_body): Likewise.
866
867 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
868
869         * config/tc-ia64.c (dot_xdata): Undo the last change.
870         (dot_float_cons): Likewise.
871         (dot_xstringer): Likewise.
872         (dot_xdata_ua): Likewise.
873         (dot_float_cons_ua): Likewise.
874
875 2005-02-11  H.J. Lu  <hongjiu.lu@intel.com>
876
877         * NEWS: Mention "-munwind-check=[warning|error]".
878
879         * config/tc-ia64.c (md): Add unwind_check.
880         (unwind_diagnostic): New.
881         (in_procedure): Call unwind_diagnostic when a directive isn't
882         in procedure.
883         (in_prologue): Call unwind_diagnostic when a directive isn't in
884         prologue.
885         (in_body): Call unwind_diagnostic when a directive isn't in
886         body region.
887         (dot_endp): Set md.unwind_check to error before calling
888         in_procedure and restore it after. When the name is missing or
889         couldn't be found, use the one from the last .proc if
890         md.unwind_check isn't error. Warn if md.unwind_check is
891         warning.
892         (md_parse_option): Handle "-munwind-check=[warning|error]".
893         (md_show_usage): Add "-munwind-check=[warning|error]".
894         (ia64_init): Set md.unwind_check to warning.
895
896         * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
897         * doc/c-ia64.texi: Likewise.
898
899 2005-02-11  Jan Beulich  <jbeulich@novell.com>
900
901         * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
902         (LEX_QM): Likewise.
903         (ia64_parse_name): New third parameter.
904         (md_parse_name): Pass third argument.
905         * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
906         (md_operand): Handling of '@'-prefixed symbols moved from here...
907         (ia64_parse_name): ...to here.
908
909 2005-02-11  Jan Beulich  <jbeulich@novell.com>
910
911         * config/tc-ia64.c (md): Remove last_groups and group_idx.
912         (errata_nop_necessary_p): Remove declaraction and definition.
913         (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
914         update md.group_idx. Don't reset md.last_groups.
915
916 2005-02-11  Jan Beulich  <jbeulich@novell.com>
917
918         * config/tc-ia64.c (parse_section_name): Handle non-quoted first
919         argument.
920         (dot_xdata): Free section name after use.
921         (dot_float_cons): Likewise.
922         (dot_xstringer): Likewise.
923         (dot_xdata_ua): Likewise.
924         (dot_float_cons_ua): Likewise.
925         (md_pseudo_table): Add xdata16 and xdata16.ua.
926
927 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
928
929         * doc/all.texi: Add IA64.
930         * doc/as.texinfo: Likewise.
931
932         * doc/c-ia64.texi: Fix typos.
933
934 2005-02-10  Julian Brown  <julian@codesourcery.com>
935
936         * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
937         BFD_RELOC_UNUSED.
938         (do_t_push_pop): Likewise.
939         (md_assemble): Likewise.
940         (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
941         BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
942         (create_unwind_entry): Output dependency on the required personality
943         routines.
944         testsuite/gas/arm/unwind.d: Alter expected output to include
945         dependency on __aeabi_unwind_cpp_pr[01].
946
947 2005-02-07  Nathan Sidwell  <nathan@codesourcery.com>
948
949         * as.h (seg_not_empty_p): Return int, not bfd_boolean.
950         * subsegs.c (seg_not_empty_p): Likewise.
951
952 2005-02-07  Inderpreet Singh <inderpreetb@noida.hcltech.com>
953
954         * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
955         relative jump calculation.
956         <md_convert_frag) : Likewise.
957         <output_disp): Likewise.
958
959 2005-02-07  Hans-Peter Nilsson  <hp@axis.com>
960
961         * write.c (write_object_file): Recognize warning-symbol construct
962         and skip object- and target- handling for the second symbol.
963
964 2005-02-02  Jan Beulich  <jbeulich@novell.com>
965
966         * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
967         designators along with quoted ones. Free copy of quoted designator
968         when done.
969
970 2005-02-01  Ben Elliston  <bje@au.ibm.com>
971
972         * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
973         config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
974         config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
975         config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
976         config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
977         config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
978         config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
979         config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
980         config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
981         config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
982         config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
983         config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
984         config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
985         #if 0'd code throughout.
986
987 2005-01-31  Nick Clifton  <nickc@redhat.com>
988
989         * as.c (parse_args): Bump copyright date reported by --version to
990         2005.
991
992 2005-01-31  Nick Clifton  <nickc@redhat.com>
993
994         * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
995         and vax-vms.
996
997 2005-01-31  Jan Beulich  <jbeulich@novell.com>
998
999         * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
1000         that can end with .endr in that case. Make requiring/permitting
1001         pseudo-ops without leading dot closer to the logic in read.c serving
1002         the same purpose.
1003         (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
1004         ignored.
1005
1006 2005-01-31  Jan Beulich  <jbeulich@novell.com>
1007
1008         * macro.c (do_formals): Adjust to no longer accept empty parameter
1009         names.
1010         (define_macro): Adjust to no longer accept empty macro name, garbage
1011         following the parameters, or macros that were previously defined.
1012         * read.c (s_bad_end): Declare.
1013         (potable): Add endm. Handler for endr and endm is s_bad_end.
1014         (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
1015         and .endr.
1016         * read.h (s_bad_endr): Remove.
1017
1018 2005-01-31  Jan Beulich  <jbeulich@novell.com>
1019
1020         * config/tc-ia64.c (parse_operands): Parse all specified operands,
1021         immediately discarding (but counting) those exceeding the maximum
1022         possible amount. Track whether output and input operand counts ever
1023         matched, and use this to better indicate which of the operands/
1024         operand types was wrong; specifically don't default to pointing to
1025         the first operand.
1026
1027 2005-01-31  Jan Beulich  <jbeulich@novell.com>
1028
1029         * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
1030         variable in dot_endp). Add body and insn. Make prologue,
1031         prologue_mask, body, and insn bitfields.
1032         (fixup_unw_records): Remove spurious new-lines from end of diagnostic
1033         messages.
1034         (in_procedure, in_prologue, in_body): New.
1035         (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
1036         dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
1037         dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
1038         dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
1039         dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
1040         dot_personality): Use the appropriate one of the above.
1041         (dot_proc): Clear unwind.proc_start; set to current location only if
1042         none of the entry points were valid. Check for non-zero-length entry
1043         point names. Check that entry points aren't defined, yet. Clear
1044         unwind.prologue, unwind.body, and unwind.insn.
1045         (dot_body): Call in_procedure. Check that first directive in procedure
1046         had no insns emitted before. Set unwind.body.
1047         (dot_prologue): Call in_procedure. Check that not already in prologue.
1048         Check that first directive in procedure had no insns emitted before.
1049         Clear unwind.body.
1050         (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
1051         length entry point names. Check that entry points became defined.
1052         (md_assemble): Set unwind.insn once unwind.proc_start is defined.
1053
1054 2005-01-31  Jan Beulich  <jbeulich@novell.com>
1055
1056         * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
1057         before actually using it. Don't generate an error in manual bundling
1058         mode when looking at an insn requiring slot 2 but not yet at slot 2.
1059         Don't generate an error in manual bundling mode when looking at an
1060         insn required to be last in its group but the required slot hasn't
1061         been reached, yet. Allow conversion from MII to MI;I for bundle
1062         consisting of only 2 insns with the stop between them. Suppress
1063         various meaningless errors resulting from detecting earlier ones.
1064
1065 2005-01-31  Jan Beulich  <jbeulich@novell.com>
1066
1067         * config/tc-ia64.c (parse_operands): Also handle alloc without first
1068         input being ar.pfs.
1069
1070 2005-01-28  Christian Groessler  <chris@groessler.org>
1071
1072         * config/tc-z8k.c (md_assemble): Improve error detection.
1073
1074 2005-01-28  Jan Beulich  <jbeulich@novell.com>
1075
1076         * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
1077         for personality routine pointer only if there is one.
1078         (ia64_convert_frag): Likewise.
1079         (generate_unwind_image): Likewise.
1080
1081 2005-01-27  Christian Groessler  <chris@groessler.org>
1082
1083         * config/tc-z8k.c (INSERT): Remove, not used anywhere.
1084         (md_apply_fix3): Make relative branches out of range an error
1085         instead of a warning.  Display correct line number for out of
1086         range branches/calls/memory accesses.
1087
1088 2005-01-27  Nathan Sidwell  <nathan@codesourcery.com>
1089
1090         * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
1091         to emit .debug_line and other debug sections.
1092         * as.h (seg_not_empty_p): Declare.
1093         * subsegs.c (seg_not_empty_p): New predicate.
1094
1095 2005-01-27  Andrew Cagney  <cagney@gnu.org>
1096
1097         * configure: Regenerate to track ../gettext.m4 change.
1098
1099 2005-01-27  Jan Beulich  <jbeulich@novell.com>
1100
1101         * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
1102
1103 2005-01-27  Jan Beulich  <jbeulich@novell.com>
1104
1105         * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
1106         to/from application registers dynamic insns.
1107         (md_assemble): Defer resolution of move to/from application registers
1108         dynamic insns when they can be issued on either the I- or M-units.
1109
1110 2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
1111
1112         * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
1113         2004-12-10  Alexandre Oliva  <aoliva@redhat.com>
1114         * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
1115         2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
1116         * cgen.c (gas_cgen_parse_operand): Handle
1117         CGEN_PARSE_OPERAND_SYMBOLIC.
1118         * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
1119         (frv_force_relocation): Likewise.  Fix handling of PIC
1120         relocations.
1121         (md_apply_fix3): Likewise.
1122
1123 2005-01-21  Ben Elliston  <bje@au.ibm.com>
1124
1125         * as.h: Remove #if 0'd code.
1126         * atof-generic.c (atof_generic): Likewise.
1127         * ecoff.c (ecoff_directive_frame): Likewise.
1128         * frags.h (FRAG_APPEND_1_CHAR): Likewise.
1129         * itbl-ops.c (itbl_add_reg): Likewise.
1130         * listing.c (calc_hex): Likewise.
1131         * read.c (MASK_CHAR): Likewise.
1132         * subsegs.c (subsegs_print_statistics): Likewise.
1133         * symbols.c (indent): Likewise.
1134         * write.c (write_relocs): Likewise.
1135         (write_object_file): Likewise.
1136         (relax_frag): Likewise.
1137
1138 2005-01-20  Nick Clifton  <nickc@redhat.com>
1139
1140         * as.c (std_longopts): Add an entry for "--a" in order to prevent
1141         getopt_long_only() from considering -a as an abbreviation for
1142         --alternate.
1143         (parse_args): Fix the parsing of -a=<file>.
1144
1145 2005-01-20  Alan Modra  <amodra@bigpond.net.au>
1146
1147         PR gas/684
1148         * read.c (s_incbin): Adjust default count for skip.  Check validity
1149         of count and skip rigorously.
1150
1151 2005-01-19  Fred Fish  <fnf@specifixinc.com>
1152
1153         * config/tc-mips.c (dummy_opcode): Add init for new struct member.
1154
1155 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
1156
1157         * read.c (convert_to_bignum): New function, split out from...
1158         (emit_expr): ...here.  Handle the case where X_add_number is
1159         positive and the input value is negative.
1160         (output_big_sleb128): Fix setting of continuation bit.  Check whether
1161         the final byte needs to be sign-extended.  Fix size-shrinking loop.
1162         (emit_leb128_expr): When generating a signed leb128, see whether the
1163         sign of an O_constant's X_add_number matches the sign of the input
1164         value.  Use a bignum if not.
1165
1166 2005-01-17  Andrew Stubbs  <andrew.stubbs@st.com>
1167
1168         * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
1169         arch_sh_up in order to match the external name and make the
1170         testsuite's job easier.
1171
1172 2005-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1173
1174         PR 659
1175         * config/tc-i386.c (i386_scale): Disallow 0 scale.
1176
1177 2005-01-12  Nick Clifton  <nickc@redhat.com>
1178
1179         * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
1180         ignored_arguments array.
1181
1182 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * write.c (write_object_file): Disallow a symbol equated to
1185         common symbol.
1186
1187 2005-01-10  Inderpreet Singh <inderpreetb@noida.hcltech.com>
1188
1189         * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
1190         bfd_mach_maxq20.
1191         (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
1192         (maxq_target): New function: Set the machine type.
1193
1194 2005-01-06  Paul Brook  <paul@codesourcery.com>
1195
1196         * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
1197         (md_begin): Handle TE_VXWORKS for FP defaults.
1198         (md_apply_fix3): Correct rela offsets.
1199         (elf32_arm_target_format): Add VxWorks targets.
1200
1201 2005-01-06  Paul Brook  <paul@codesourcery.com>
1202
1203         * configure.tgt: Set em=vxworks for *-*-vxworks.
1204         * config/te-vxworks.h: New File.
1205
1206 2005-01-06  Paul Brook  <paul@codesourcery.com>
1207
1208         * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
1209
1210 2005-01-04  Dmitry Diky  <diwil@spec.ru>
1211
1212         * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
1213         global label.
1214
1215 2005-01-03  David Mosberger  <davidm@hpl.hp.com>
1216
1217         * config/tc-ia64.c (md): Add member "loc_directive_seen".
1218         (dot_loc): New function.
1219         (md_pseudo_table): Add entry to map .loc to dot_loc().
1220         (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
1221         seen a .loc directive or we're generating DWARF2 debug info for
1222         assembly source.
1223
1224 2004-12-29  Alan Modra  <amodra@bigpond.net.au>
1225
1226         PR gas/619
1227         * read.c (s_comm_internal): Don't zero end of name until size
1228         expression has been parsed.
1229
1230 2004-12-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1231
1232         * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
1233
1234 2004-12-23  Tomer Levi  <Tomer.Levi@nsc.com>
1235
1236         * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
1237         case).
1238
1239 2004-12-22  Ian Lance Taylor  <ian@airs.com>
1240
1241         * configure.tgt: New.
1242         * configure.in: Move setting of cpu_type, fmt, etc., to
1243         configure.tgt.
1244         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
1245         $(srcdir)/configure.tgt.
1246         * configure, Makefile.in: Rebuild.
1247
1248 2004-12-22  Klaus Rudolph  <lts-rudolph@gmx.de>
1249
1250         * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
1251         R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
1252         instructions.
1253         (avr_offset_expression): New function to parse offsets for LDI
1254         instructions.
1255         (avr_operand): Use it.
1256         (md_apply_fix3): Generate the relocs.
1257
1258 2004-12-16  Andrew Stubbs  <andrew.stubbs@st.com>
1259
1260         * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
1261         BFD_RELOC_SH_IMMS10BY8 relocation.
1262
1263         * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
1264         than just ignoring bad code.
1265
1266 2004-12-16  Richard Sandiford  <rsandifo@redhat.com>
1267
1268         * config/tc-v850.c (handle_lo16): New function.
1269         (v850_reloc_prefix): Use it to check lo().
1270         (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
1271
1272 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
1273
1274         * configure.in: Add s390x-ibm-tpf support.
1275         * configure: Regenerate.
1276
1277 2004-12-15 Jan Beulich  <jbeulich@novell.com>
1278
1279         * config/obj-elf.c (obj_elf_change_section): Only set type and
1280         attributes on new sections. Emit warning when type of re-declared
1281         section doesn't match.
1282
1283 2004-12-15 Jan Beulich  <jbeulich@novell.com>
1284
1285         * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
1286         '.cfi_startproc simple' doesn't inherit the old value.
1287
1288 2004-12-15  Jan Beulich  <jbeulich@novell.com>
1289
1290         * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
1291         to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
1292         generation to emit a factored offset.
1293
1294 2004-12-10  Ian Lance Taylor  <ian@wasabisystems.com>
1295
1296         * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
1297         which is too large in the case of NO_PIC without 64-bit
1298         addresses.
1299
1300         * config/tc-mips.c (mips_in_shared): New static variable.
1301         (macro_build_lui): Permit "_gp" if !mips_in_shared.
1302         (md_longopts): Add -mshared and -mno-shared.
1303         (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
1304         (s_cpload): Implement !mips_in_shared case.
1305         (s_cpsetup): Likewise.
1306         * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
1307         * NEWS: Mention -mno-shared.
1308
1309 2004-12-09  Paul Brook  <paul@codesourcery.com>
1310
1311         * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
1312         for function start.
1313
1314 2004-12-09  Ian Lance Taylor  <ian@wasabisystems.com>
1315
1316         * config/tc-mips.c (append_insn): If we emit a nop during a relax
1317         sequence, increase the size of the sequence.
1318
1319         * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
1320         use CPU_RM9000.
1321
1322 2004-12-07  Ben Elliston  <bje@gnu.org>
1323
1324         * read.c (s_align): Use an align_limit temporary to allay a GCC
1325         signed/unsigned comparison warning.
1326
1327 2004-12-01  Mark Mitchell  <mark@codesourcery.com>
1328
1329         * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
1330         * configure.in: Use it for arm*-*-linux-gnueabi*.
1331         * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
1332         * config/te-armlinuxeabi.h: New file.
1333         * Makefile.in: Regenerated.
1334         * aclocal.m4: Likewise.
1335         * configure: Likewise.
1336         * doc/Makefile.in: Regenerated.
1337
1338 2004-12-02  Bob Wilson  <bob.wilson@acm.org>
1339
1340         * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
1341         (xtensa_restore_emit_state): Likewise.
1342
1343 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
1344
1345         * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
1346         (s_align): Use it.
1347
1348 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
1349
1350         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1351         * Makefile.in: Regenerate.
1352
1353 2004-11-29  Tomer Levi  <Tomer.Levi@nsc.com>
1354
1355         * config/tc-crx.c: Major code cleanup. Remove unused variables and
1356         functions, give functions a meaningful name, add comments.
1357         (check_range): New function - Replace operand size calculation
1358         with range checking.
1359         (assemble_insn): Update Algorithm, improve error issuing.
1360         (enum op_err): New.
1361         (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
1362         handling.
1363
1364 2004-11-29  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1365
1366         * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
1367         miss between different section in the same module.
1368         (tc_gen_reloc): Likewise.
1369
1370 2004-11-25  Theodore A. Roth  <troth@openavr.org>
1371
1372         * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
1373         atmega325, atmega3250, atmega645 and atmega6450.
1374
1375 2004-11-25 Jan Beulich  <jbeulich@novell.com>
1376
1377         * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1378         permissible for the selected instruction suffix.
1379         (process_suffix): For DefaultSize instructions, suppressing the
1380         guessing of a 'q' suffix if the instruction doesn't support it is
1381         pointless, because only an 'l' suffix can be guessed in this place.
1382
1383 2004-11-24  Nick Clifton  <nickc@redhat.com>
1384
1385         * config/tc-iq2000.c: Remove support for IQ10 processor.
1386         Convert to ISO C90 formatting.
1387         * config/tc-iq2000.h: Likewise.
1388
1389 2004-11-23  Nick Clifton  <nickc@redhat.com>
1390
1391         * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
1392         in this table.  They should be correct now.
1393
1394 2004-11-23 Jan Beulich <jbeulich@novell.com>
1395
1396         * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
1397         indicate the MMX extensions added by both SSE and 3DNow!A.
1398         (Cpu3dnowA): Declare.
1399         (CpuUnknownFlags): Update.
1400         * config/tc-i386.c (cpu_sub_arch_name): Declare.
1401         (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
1402         neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
1403         3DNow!. Athlon additionally implies 3DNow!A. Several new
1404         entries (those starting with a dot are for sub-arch specification).
1405         (set_cpu_arch): Handle sub-arch specifications.
1406         (parse_insn): Distinguish between instructions not supported because
1407         of insufficient CPU features and because of 64-bit mode.
1408         * doc/c-i386.texi: Describe enhanced .arch directive.
1409
1410 2004-11-22  Bob Wilson  <bob.wilson@acm.org>
1411
1412         * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
1413
1414 2004-11-22  Bob Wilson  <bob.wilson@acm.org>
1415
1416         * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
1417         without a corresponding .debug_info section.
1418
1419 2004-11-22  Hans-Peter Nilsson  <hp@axis.com>
1420
1421         * read.c (potable): Add "error" and "warning".
1422         (s_errwarn): New function.
1423         * read.h (s_errwarn): Declare.
1424         * doc/as.texinfo (Error, Warning): Document .error and .warning.
1425
1426 2004-11-22  Nick Clifton  <nickc@redhat.com>
1427
1428         * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
1429         c_dot_file_symbol.
1430
1431 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
1432
1433         * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
1434         struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
1435
1436 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
1437
1438         * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
1439         (coff_adjust_symtab): Adjust call.
1440         (crawl_symbols): Likewise.
1441         * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
1442         (obj_app_file): Adjust.
1443
1444 2004-11-18  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
1445
1446         * configure.in: Enable bfd_assember for the MAXQ port.
1447         * configure: Regenerate.
1448
1449 2004-11-12  Bob Wilson  <bob.wilson@acm.org>
1450             Sterling Augustine  <sterling@tensilica.com>
1451
1452         * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
1453         there is a conflict.
1454         (check_t1_t2_reads_and_writes): Check for both reads and writes to
1455         interfaces that are related as determined by xtensa_interface_class_id.
1456
1457 2004-11-12  Nick Clifton  <nickc@redhat.com>
1458
1459         * config/tc-mn10300.c (md_relax_table): Fix off by one negative
1460         offsets for conditional branches.
1461
1462 2004-11-11  Bob Wilson  <bob.wilson@acm.org>
1463
1464         * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
1465
1466 2004-11-10  Bob Wilson  <bob.wilson@acm.org>
1467
1468         * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
1469         relaxing at the end of a loop.  Don't mark frags as UNREACHABLE or
1470         MAYBE_UNREACHABLE.
1471         (relax_frag_immed): Update call to update_next_frag_state.
1472
1473 2004-11-10  Alan Modra  <amodra@bigpond.net.au>
1474
1475         * obj.h (struct format_ops <app_file>): Add int param.
1476         * read.h (s_app_file_string): Likewise.
1477         * read.c (s_app_file_string): Likewise.
1478         (s_app_file): Adjust s_app_file_string call.
1479         * config/tc-mips.c (s_mips_file): Likewise.
1480         * config/obj-coff.h (obj_app_file): Add app param.
1481         * config/obj-ecoff.h (obj_app_file): Likewise.
1482         * config/obj-multi.h (obj_app_file): Likewise.
1483         * config/obj-elf.h (elf_file_symbol): Likewise.
1484         * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
1485         if called for # preprocessor lines.
1486
1487 2004-11-08  H.J. Lu  <hongjiu.lu@intel.com>
1488
1489         PR 528
1490         * symbols.c (resolve_symbol_value): Convert weak symbols only
1491         for Windows PECOFF.
1492         (symbol_equated_reloc_p): Don't equate weaks when relocating
1493         only for Windows PECOFF.
1494
1495 2004-11-08  Tomer Levi  <Tomer.Levi@nsc.com>
1496
1497         * config/tc-crx.c (print_insn): Check and set insn_addr.
1498         * config/tc-crx.h (md_frag_check): Define.
1499
1500 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
1501             Vineet Sharma      <vineets@noida.hcltech.com>
1502
1503         * configure.in: Add support for new target maxq-coff.
1504         * configure: Regenerate.
1505         * NEWS: Mention new support.
1506         * config/tc-maxq.c: New file.
1507         * config/tc-maxq.h: New file.
1508         * config/obj-coff.h: Add support for maxq-coff.
1509
1510 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1511
1512         * symbols.c (any_external_name): Define.
1513         (resolve_symbol_value): Convert weak symbols.
1514         (S_SET_EXTERNAL): Support any_external_name.
1515         (S_SET_NAME): Qualify parameter const.
1516         (symbol_equated_reloc_p): Equate to weaks when relocating.
1517         * symbols.h (S_SET_NAME): Qualfiy parameter const.
1518         * tc.h (any_external_name): Declare.
1519         * config/obj-coff.c ("coff/pe.h"): Include for BFD
1520         assemblers also.
1521         (weak_is_altname): Declare and define.
1522         (weak_name2altname): Same.
1523         (weak_altname2name): Same.
1524         (weak_uniquify): Same.
1525         (weak_altprefix): Define.
1526         (obj_coff_weak): Change .weak syntax and handling.
1527         (coff_frob_symbol): Fix PE weak symbol alternates.
1528         * config/obj-coff.h (USE_UNIQUE): Define.
1529         * config/tc-i386.c (md_apply_fix3): Assume weak symbols
1530         are in another segment.
1531         (tc_gen_reloc): Remove broken addend hack.
1532         doc/as.texinfo: Update.
1533
1534 2004-11-05  Sterling Augustine  <sterling@tensilica.com>
1535
1536         * config/tc-xtensa.c (total_frag_text_expansion): New.
1537         (md_estimate_size_before_relax): Use it.
1538         (find_address_of_next_align_frag): Likewise.
1539
1540 2004-11-05  Tomer Levi  <Tomer.Levi@nsc.com>
1541
1542         * config/tc-crx.c: Rename argument types.
1543         (processing_arg_number): Rename to 'cur_arg_num'.
1544         (get_number_of_bits): Rename to 'set_operand_size'.
1545         (get_operandtype): Rename to 'parse_operand', totally rewrite.
1546         (set_cons_rparams): Rename to 'set_operand', totally rewrite.
1547         (set_indexmode_parameters): Remove function, integrate its code into
1548         'set_operand'.
1549         (set_operand_size): Get rid of 'Operand Number' function parameter -
1550         use global variable 'cur_arg_num' instead.
1551         Use a local 'argument' pointer to reference the current argument.
1552         (parse_operand): Likewise.
1553         (set_operand): Likewise.
1554         (process_label_constant): Likewise.
1555
1556 2004-11-04  Bob Wilson  <bob.wilson@acm.org>
1557
1558         * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
1559         (add_section_rename): Delete.  Inlined into...
1560         (build_section_rename): ...here.  Use xstrdup instead of strdup.
1561         (xtensa_section_rename): Drop "const" from argument and return types.
1562         (md_show_usage): Indent to match show_usage().
1563         * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
1564         (tc_canonicalize_section_name): Define.
1565         (md_elf_section_rename): Remove unused macro.
1566         * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
1567         * doc/c-xtensa.texi (Xtensa Options): Likewise.
1568         (Frame Directive): Delete.
1569
1570 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
1571
1572         * configure.in: Remove arm-*-oabi and thumb-*-oabi.
1573         * config/tc-arm.c (target_oabi): Delete.
1574         (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
1575         (arm_opts): Remove moabi.
1576         * doc/as.texinfo (Overview): Remove documentation of -moabi.
1577         * doc/c-arm.texi (ARM Options): Likewise.
1578         * configure: Regenerated.
1579
1580 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
1581
1582         * configure.in (crisv32): Recognize.  AC_DEFINE_UNQUOTED
1583         DEFAULT_CRIS_ARCH.  Handle crisv32-*-linux-gnu* like
1584         cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
1585         * configure: Regenerate.
1586         * config/tc-cris.c (enum cris_archs): New.
1587         (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
1588         (cris_insn_ver_valid_for_arch): New functions.
1589         (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
1590         (cris_arch): New variable.
1591         (md_pseudo_table): New pseudo .arch.
1592         (err_for_dangerous_mul_placement): Initialize according to
1593         DEFAULT_CRIS_ARCH.
1594         (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
1595         All users changed.
1596         (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
1597         (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
1598         (BRANCH_WF_V32, BRANCH_WB_V32): New.
1599         (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
1600         use in md_cris_relax_table.
1601         (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
1602         STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
1603         Update and improve head comment.
1604         (OPTION_PIC): Define in terms of previous option, OPTION_US.
1605         (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
1606         (OPTION_ARCH): New.
1607         (md_longopts): New option --march=...
1608         (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
1609         macros.
1610         (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
1611         (HANDLE_RELAXABLE): New macro.
1612         (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
1613         cases.  Check for weak symbols and assume not relaxable.  Handle
1614         STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
1615         STATE_ABS_BRANCH_V32, STATE_LAPC.  Use new variable symbolP, not
1616         fragP->fr_symbol.
1617         (md_convert_frag): Handle STATE_COND_BRANCH_V32,
1618         STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
1619         (cris_create_short_jump): Adjust for CRISv32.
1620         (cris_relax_frag): Handle new states.
1621         (md_create_long_jump): Ditto.  Emit error for common_v10_v32.
1622         (md_begin): Define symbols "..asm.arch.cris.v32",
1623         "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
1624         "..asm.arch.cris.any_v0_v10".  Use cris_insn_ver_valid_for_arch
1625         when entering opcode table entry points.
1626         (md_assemble): Adjust branch handling for CRISv32.  Handle LAPC
1627         relaxation.  In fix_new_exp call for main insn, pass 1 for pcrel
1628         parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
1629         (cris_process_instruction): Initialize out_insnp->insn_type to
1630         CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
1631         <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
1632         cases.
1633         <case 'm'>: Check that modified_char == '.'.
1634         <invalid operands>: Consume the rest of the line.
1635         When operands don't match, skip over subsequent insns with
1636         non-matching version specifier but same mnemonic.
1637         <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
1638         special registers in CRISv32 are always 32 bit long.
1639         <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
1640         New cases.
1641         (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
1642         and compatible.  Recognize "ACR" for v32, unless followed by "+".
1643         (get_spec_reg): Consider cris_arch when looking up register.
1644         (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
1645         v32 or compatible.
1646         (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
1647         (cris_get_expression): Restore input_line_pointer if failing "early".
1648         (get_flags): Consider cris_arch and recognize flags accordingly.
1649         (branch_disp): Adjust for CRISv32.
1650         (gen_cond_branch_32): Similar.  Emit error for common_v10_v32.
1651         (cris_number_to_imm): Use as_bad_where, not as_bad.  Remove
1652         related FIXME.  Don't insist on BFD_RELOC_32_PCREL fixup to be
1653         resolved.  Don't enter zeros in object file for
1654         BFD_RELOC_32_PCREL.
1655         <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
1656         <case BFD_RELOC_CRIS_SIGNED_8>: New case.
1657         (md_parse_option): Break out "return 1".
1658         <OPTION_ARCH> New case.
1659         (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
1660         <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
1661         <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
1662         <case BFD_RELOC_32_PCREL>: New cases.
1663         Addends for non-zero fx_pcrel are too in fx_offset.
1664         (md_show_usage): Show --march=<arch>.
1665         (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
1666         (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
1667         (s_syntax) <struct syntaxes>: Properly constify member operand.
1668         * config/tc-cris.h (TARGET_MACH): Define.
1669         (cris_mach): Declare.
1670         * doc/as.texinfo (Overview) <CRIS>: Add --march=...
1671         * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
1672         (CRIS-Opts): Document --march=...
1673         (CRIS-Pseudos): Document .arch.
1674
1675 2004-11-04 Jan Beulich <jbeulich@novell.com>
1676
1677         * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
1678         intel syntax and no register prefix, allow $ in symbol names when
1679         intel syntax.
1680         (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
1681         (intel_float_operand): Add fourth return value indicating math control
1682         operations. Make classification more precise.
1683         (md_assemble): Complain if memory operand of mov[sz]x has no size
1684         specified.
1685         (parse_insn): Translate word operands to floating point instructions
1686         operating on integers as well as control instructions to short ones
1687         as expected by AT&T syntax. Translate 'd' suffix to short one only for
1688         floating point instructions operating on non-integer operands.
1689         (match_template): Remove fldcw special case. Adjust q-suffix handling
1690         to permit it on fild/fistp/fisttp in AT&T mode.
1691         (process_suffix): Don't guess DefaultSize insns' suffix from
1692         stackop_size for certain floating point control instructions. Guess
1693         suffix for branch and [ls][gi]dt based on flag_code. Split error
1694         messages for Intel and AT&T syntax, and make the condition more strict
1695         for the former. Adjust suppressing of generation of operand size
1696         overrides.
1697         (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
1698         OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
1699         more error checking.
1700         * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
1701         SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
1702
1703 2004-11-03  Hans-Peter Nilsson  <hp@axis.com>
1704
1705         * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
1706         md_short_jump_size, md_long_jump_size.
1707         * write.c [!WORKING_DOT_WORD]: Ditto.
1708         * tc.h [!WORKING_DOT_WORD]: Declare them here.  Drop const
1709         qualifier.
1710         * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
1711         declare.
1712         * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
1713         const qualifier in these definitions.
1714         * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
1715         config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
1716
1717 2004-11-02  Nick Clifton  <nickc@redhat.com>
1718
1719         * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
1720         table before deciding to produce a .debug_line section to match up
1721         with a user provided .debug_info section.
1722
1723 2004-10-28  Tomer Levi  <Tomer.Levi@nsc.com>
1724
1725         * config/tc-crx.c (getreg_image): Bug fix, a return value was
1726         mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
1727
1728 2004-10-27  Tomer Levi  <Tomer.Levi@nsc.com>
1729
1730         * config/tc-crx.c: Remove global variable 'post_inc_mode'.
1731         (get_flags): New function.
1732         (get_number_of_bits): Edit comments, update numeric values to
1733         supported sizes.
1734         (process_label_constant): Don't support the colon
1735         format (SYMBOL:[s|m|l]).
1736         (set_cons_rparams): Support argument type 'arg_rbase'.
1737         (get_operandtype): Bug fix in 'rbase' operand type parsing.
1738         (handle_LoadStor): Bug fix, first handle post-increment mode.
1739         (getreg_image): Remove redundant code, update according to latest
1740         CRX spec.
1741         (print_constant): Bug fix relate to 3-word instructions.
1742         (assemble_insn): Bug fix, when matching instructions, verify also
1743         instruction type (not only mnemonic).
1744         Add various error checking.
1745         (preprocess_reglist): Support HI/LO and user registers.
1746
1747 2004-10-25  David Mosberger-Tang  <davidm@hpl.hp.com>
1748
1749         * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
1750         in an epilogue directive go negative.
1751
1752 2004-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1753
1754         PR 474
1755         * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
1756         after reporting template error during manual bundling. Reported
1757         by Michael Dupont, michaelx.dupont@intel.com.
1758
1759 2004-10-25  Daniel Jacobowitz  <dan@debian.org>
1760
1761         * Makefile.am: Run dep-am.
1762         * aclocal.m4: Regenerate with automake 1.9.2.
1763         * Makefile.in: Regenerate with automake 1.9.2.
1764         * doc/Makefile.in: Likewise.
1765
1766         * config/tc-arm.c: Include "dw2gencfi.h".
1767         (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
1768         New functions.
1769         * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
1770         (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
1771         (tc_cfi_frame_initial_instructions): Define.
1772         (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
1773         Add prototypes.
1774
1775 2004-10-21  Tomer Levi  <Tomer.Levi@nsc.com>
1776
1777         * config/tc-crx.c (assemble_insn): Check unsigned immediate
1778         operands validity.
1779         Update coprocessor id to be unsigned immediate.
1780
1781 2004-10-18  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1782
1783         * config/tc-i386.c (O_secrel): Delete.
1784         (tc_pe_dwarf2_emit_offset): New function.
1785         * config/tc-i386.h (O_secrel): Define as O_md1.
1786         (TC_DWARF2_EMIT_OFFSET): Define.
1787
1788 2004-10-18  Nick Clifton  <nickc@redhat.com>
1789
1790         * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
1791         ignore @fptr() directives for 4-byte fixups.
1792
1793 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
1794
1795         * Makefile.am: Run "make dep-am"
1796         * Makefile.in: Regenerate.
1797
1798 2004-10-14  Bob Wilson  <bob.wilson@acm.org>
1799
1800         * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
1801         Remove comments about placement of literal pools.
1802         (Literal Directive): Update description of literal placement.
1803         (Literal Prefix Directive): Remove statement that this does not apply
1804         to absolute-mode literals.  Describe new section naming scheme.
1805
1806 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
1807
1808         * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
1809         (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
1810         is_windowed_return_opcode): Delete.
1811         (xtensa_frob_label): Use get_subseg_target_freq.
1812         (md_assemble): Inline call to is_entry_opcode.
1813         (xtensa_handle_align): Inline call to get_frag_is_literal.
1814         (relaxation_requirements): Inline call to is_jx_opcode.
1815         (emit_single_op): Inline call to is_movi_opcode.
1816         (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
1817         get_frag_is_no_transform, is_entry_opcode, and
1818         set_frag_is_specific_opcode.  Use get_subseg_total_freq.
1819         (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
1820         xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
1821         Inline calls to get_frag_is_no_transform.
1822         (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
1823         (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
1824         get_frag_is_no_transform.
1825         (convert_frag_immed_finish_loop): Inline calls to get_expression_value
1826         and set_frag_is_no_transform.
1827         (get_expression_value): Delete.
1828         (subseg_map struct): Rename cur_total_freq to total_freq.  Rename
1829         cur_target_freq to target_freq.
1830         (get_subseg_info): Split out code to create a new map entry into ...
1831         (add_subseg_info): ... this new function.
1832         (get_last_insn_flags): Check if get_subseg_info succeeded.
1833         (set_last_insn_flags): Call add_subseg_info if needed.
1834         (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
1835         (xtensa_reorder_segments): Compute last_sec while counting sections.
1836         Remove call to get_last_sec.
1837         (get_last_sec): Delete.
1838         (cache_literal_section): Inline call to retrieve_literal_seg and its
1839         callees, seg_present and add_seg_list.
1840         (retrieve_literal_seg, seg_present, add_seg_list): Delete.
1841         (get_frag_is_insn, get_frag_is_no_transform,
1842         set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
1843         * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
1844
1845 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
1846
1847         * config/tc-xtensa.c: Use ISO C90 formatting.
1848         * config/tc-xtensa.h: Likewise.
1849         * config/xtensa-istack.h: Likewise.
1850         * config/xtensa-relax.c: Likewise.
1851         * config/xtensa-relax.h: Likewise.
1852
1853 2004-10-12  Paul Brook  <paul@codesourcery.com>
1854
1855         * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
1856         EF_ARM_EABI_VER4.
1857         (arm_eabis): Ditto.
1858         * doc/c-arm.texi: Document that we actually support -meabi=4, not
1859         -meabi=3.
1860
1861 2004-10-08  Bob Wilson  <bob.wilson@acm.org>
1862
1863         * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
1864         entries.
1865         (Acknowledgements): Use "GAS" instead of AS variable.
1866
1867 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
1868
1869         * config/tc-i386.c: Include "elf/x86-64.h".
1870         (i386_elf_section_type): New function.
1871         * config/tc-i386.h (md_elf_section_type): Define.
1872         (i386_elf_section_type): New prototype.
1873
1874 2004-10-08  Linus Nielsen Feltzing  <linus@haxx.se>
1875
1876         * config/m68k-parse.h (enum m68k_register): New control register,
1877         MBAR2 (for MCF5249)
1878         * config/tc-m68k.c: Correct control register set for MCF5249.
1879
1880 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
1881             Sterling Augustine  <sterling@tensilica.com>
1882
1883         * config/tc-xtensa.c (absolute_literals_supported): New global flag.
1884         (UNREACHABLE_MAX_WIDTH): Define.
1885         (XTENSA_FETCH_WIDTH): Delete.
1886         (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
1887         prefer_const16, prefer_l32r): New global variables.
1888         (LIT4_SECTION_NAME): Define.
1889         (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
1890         (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
1891         (frag_flags struct): New.
1892         (xtensa_block_info struct): Move from tc-xtensa.h.  Add flags field.
1893         (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
1894         (bitfield, bit_is_set, set_bit, clear_bit): Define.
1895         (MAX_FORMATS): Define.
1896         (op_placement_info struct, op_placement_table): New.
1897         (O_pltrel, O_hi16, O_lo16): Define.
1898         (directiveE enum): Rename directive_generics to directive_transform.
1899         Delete directive_relax.  Add directive_schedule,
1900         directive_absolute_literals, and directive_last_directive.
1901         (directive_info): Rename "generics" to "transform".  Delete "relax".
1902         Add "schedule" and "absolute-literals".
1903         (directive_state): Adjust entries to match changes in directive_info.
1904         (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
1905         (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
1906         xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
1907         (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
1908         (align_only_targets, software_a0_b_retw_interlock,
1909         software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
1910         software_avoid_short_loop, software_avoid_close_loop_end,
1911         software_avoid_all_short_loops, specific_opcode): Delete.
1912         (warn_unaligned_branch_targets): New.
1913         (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
1914         workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
1915         (option_[no_]link_relax, option_[no_]transform,
1916         option_[no_]absolute_literals, option_warn_unaligned_targets,
1917         option_prefer_l32r, option_prefer_const16, option_target_hardware):
1918         New enum values.
1919         (option_[no_]align_only_targets, option_literal_section_name,
1920         option_text_section_name, option_data_section_name,
1921         option_bss_section_name, option_eb, option_el): Delete.
1922         (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
1923         warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
1924         and target-hardware.  Delete entries for [no-]target-align-only,
1925         literal-section-name, text-section-name, data-section-name, and
1926         bss-section-name.
1927         (md_parse_option): Handle new options and remove old ones.  Accept but
1928         ignore [no-]density options.  Warn for [no-]generics and [no-]relax
1929         and treat them as [no-]transform.
1930         (md_show_usage): Add new options and remove old ones.
1931         (xtensa_setup_hw_workarounds): New.
1932         (md_pseudo_table): Change "word" entry to use xtensa_elf_cons.  Add
1933         "long", "short", "loc" and "frequency" entries.
1934         (use_generics): Rename to ...
1935         (use_transform): ... this function.  Add past_xtensa_end check.
1936         (use_longcalls): Add past_xtensa_end check.
1937         (code_density_available, can_relax): Delete.
1938         (do_align_targets): New.
1939         (get_directive): Accept dashes in directive names.  Warn about
1940         [no-]generics and [no-]relax directives and treat them as
1941         [no-]transform.
1942         (xtensa_begin_directive): Call md_flush_pending_output only for some
1943         directives.  Check for directives inside instruction bundles.  Warn
1944         about deprecated ".begin literal" usage.  Warn and ignore [no-]density
1945         directives.  Handle new directives.  Check generating_literals flag
1946         for literal_prefix.
1947         (xtensa_end_directive): Check for directives inside instruction
1948         bundles.  Warn and ignore [no-]density directives.  Handle new
1949         directives.  Call xtensa_set_frag_assembly_state.
1950         (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
1951         xtensa_dwarf2_emit_insn): New.
1952         (xtensa_literal_position): Call md_flush_pending_output.  Do not check
1953         use_literal_section flag.
1954         (xtensa_literal_pseudo): Call md_flush_pending_output.  Handle absolute
1955         literals.  Use xtensa_elf_cons to parse the expression.
1956         (xtensa_literal_prefix): Do not check use_literal_section.  Support
1957         ".lit4" sections for absolute literals.  Change prefix convention to
1958         replace ".text" (or ".t" in a linkonce section).  No need to call
1959         subseg_set.
1960         (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
1961         (expression_end): Handle closing braces and colons.
1962         (PLT_SUFFIX, plt_suffix): Delete.
1963         (expression_maybe_register): Use new xtensa-isa.h functions.  Use
1964         xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
1965         and O_hi16 expressions as well.
1966         (tokenize_arguments): Handle closing braces and colons.
1967         (parse_arguments): Use new xtensa-isa.h functions.  Handle "invisible"
1968         operands and paired register syntax.
1969         (get_invisible_operands): New.
1970         (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax.  Use
1971         new xtensa-isa.h functions.
1972         (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
1973         (xg_translate_idioms): Check if inside bundle.  Use use_transform.
1974         Handle new Xtensa LX RSR/WSR/XSR syntax.  Remove code to widen density
1975         instructions.  Use xtensa_translate_zero_immed.
1976         (operand_is_immed, operand_is_pcrel_label): Delete.
1977         (get_relaxable_immed): Use new xtensa-isa.h functions.
1978         (get_opcode_from_buf): Add slot parameter.  Use new xtensa-isa.h
1979         functions.
1980         (xtensa_print_insn_table, print_vliw_insn): New.
1981         (is_direct_call_opcode): Use new xtensa-isa.h functions.
1982         (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
1983         is_branch_or_jump_opcode): Delete.
1984         (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
1985         (opnum_to_reloc, reloc_to_opnum): Delete.
1986         (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
1987         xtensa-isa.h functions.  Operate on one slot of an instruction.
1988         (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
1989         xg_get_insn_size): Delete.
1990         (xg_get_build_instr_size): Use xg_get_single_size.
1991         (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
1992         xg_build_widen_table.  Use xg_get_single_size.
1993         (xg_get_max_narrow_insn_size): Delete.
1994         (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
1995         xg_is_relaxable_insn): Update calls to xg_build_widen_table.  Use
1996         xg_get_single_size.
1997         (xg_build_to_insn): Record the loc field.  Handle OP_OPERAND_HI16U and
1998         OP_OPERAND_LOW16U.  Check xg_valid_literal_expression.
1999         (xg_expand_to_stack, xg_expand_narrow): Update calls to
2000         xg_build_widen_table.  Use xg_get_single_size.
2001         (xg_immeds_fit): Use new xtensa-isa.h functions.  Update call to
2002         xg_check_operand.
2003         (xg_symbolic_immeds_fit): Likewise.  Also handle O_lo16 and O_hi16, and
2004         treat weak symbols conservatively.
2005         (xg_check_operand): Use new xtensa-isa.h functions.
2006         (is_dnrange): Delete.
2007         (xg_assembly_relax): Inline previous calls to tinsn_copy.
2008         (xg_finish_frag): Specify separate relax states for the frag and slot0.
2009         (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
2010         xtensa-isa.h functions.
2011         (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
2012         xg_instruction_matches_options): New.
2013         (xg_instruction_matches_rule): Handle O_register expressions.  Call
2014         xg_instruction_matches_options.
2015         (transition_rule_cmp): New.
2016         (xg_instruction_match): Update call to xg_build_simplify_table.
2017         (xg_build_token_insn): Record loc fields.
2018         (xg_simplify_insn): Check is_specific_opcode field and
2019         density_supported flag.
2020         (xg_expand_assembly_insn): Skip checking code_density_available.  Use
2021         new xtensa-isa.h functions.  Call use_transform instead of can_relax.
2022         (xg_assemble_literal): Add error handling for O_big.  Call
2023         record_alignment.  Handle O_pltrel.
2024         (xg_valid_literal_expression): New.
2025         (xg_assemble_literal_space): Add slot parameter.  Remove call to
2026         set_expr_symbol_offset.  Add call to record_alignment.  Update call to
2027         xg_finish_frag.
2028         (xg_emit_insn): Delete.
2029         (xg_emit_insn_to_buf): Add format parameter.  Update calls to
2030         xg_add_opcode_fix and xtensa_insnbuf_to_chars.
2031         (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
2032         and slot parameters.  Handle new "alternate" relocations for absolute
2033         literals and CONST16 instructions.  Check for bad uses of O_lo16 and
2034         O_hi16.  Use new xtensa-isa.h functions.
2035         (xg_assemble_tokens): Delete.
2036         (is_register_writer): Use new xtensa-isa.h functions.
2037         (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
2038         old-style RSR from LCOUNT.
2039         (next_frag_opcode): Delete.
2040         (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
2041         update_next_frag_state): New.
2042         (update_next_frag_nop_state): Delete.
2043         (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
2044         (xtensa_mark_literal_pool_location): Check use_literal_section flag and
2045         the state of the absolute-literals directive.  Add calls to
2046         record_alignment and xtensa_set_frag_assembly_state.  Call
2047         xtensa_switch_to_non_abs_literal_fragment instead of
2048         xtensa_switch_to_literal_fragment.
2049         (build_nop): New.
2050         (assemble_nop): Use build_nop.  Update call to xtensa_insnbuf_to_chars.
2051         (get_expanded_loop_offset): Change check for undefined opcode to an
2052         assertion.
2053         (xtensa_set_frag_assembly_state, relaxable_section,
2054         xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
2055         xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
2056         (md_begin): Update call to xtensa_isa_init.  Initialize linkrelax to 1.
2057         Set lit4_seg_name.  Call xg_init_vinsn.  Initialize new global opcodes.
2058         Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
2059         (xtensa_init_fix_data): New.
2060         (xtensa_frob_label): Reset label symbol to the current frag.  Check
2061         do_align_targets and generating_literals flag.  Propagate frequency
2062         info to new alignment frag.  Call xtensa_set_frag_assembly_state.
2063         (xtensa_unrecognized_line): New.
2064         (xtensa_flush_pending_output): Check if inside a bundle.  Add a call
2065         to xtensa_set_frag_assembly_state.
2066         (error_reset_cur_vinsn): New.
2067         (md_assemble): Remove check for literal frag.  Remove call to
2068         istack_init.  Call use_transform instead of use_generics.  Parse
2069         explicit instruction format specifiers.  Move code for
2070         a0_b_retw_interlock workaround to xg_assemble_vliw_tokens.  Call
2071         error_reset_cur_vinsn on errors.  Add call to get_invisible_operands.
2072         Add dwarf2_where call.  Remote automatic alignment for ENTRY
2073         instructions.  Move call to xtensa_clear_insn_labels to the end.
2074         Rearrange to handle bundles.
2075         (xtensa_cons_fix_new): Delete.
2076         (xtensa_handle_align): New.
2077         (xtensa_frag_init): Call xtensa_set_frag_assembly_state.  Remove
2078         assignment to is_no_density field.
2079         (md_pcrel_from): Use new xtensa-isa.h functions.  Use decode_reloc
2080         instead of reloc_to_opnum.  Handle "alternate" relocations.
2081         (xtensa_force_relocation, xtensa_check_inside_bundle,
2082         xtensa_elf_section_change_hook): New.
2083         (xtensa_symbol_new_hook): Delete.
2084         (xtensa_fix_adjustable): Check for difference of symbols with an
2085         offset.  Check for external and weak symbols.
2086         (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
2087         (md_estimate_size_before_relax): Return expansion for the first slot.
2088         (tc_gen_reloc): Handle difference of symbols by producing
2089         XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
2090         into the output.  Handle new XTENSA_SLOT*_OP relocs by storing the
2091         tentative values into the output when linkrelax is set.
2092         (XTENSA_PROP_SEC_NAME): Define.
2093         (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
2094         Create literal tables only if using literal sections.  Create new
2095         property tables instead of old instruction tables.  Check for unaligned
2096         branch targets and loops.
2097         (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
2098         new_resource_table, clear_resource_table, resize_resource_table,
2099         resources_available, reserve_resources, release_resources,
2100         opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
2101         resources_conflict, xg_find_narrowest_format, relaxation_requirements,
2102         bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
2103         (xtensa_end): Call xtensa_flush_pending_output.  Set past_xtensa_end
2104         flag.  Update checks for workaround options.  Call
2105         xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
2106         (xtensa_cleanup_align_frags): Add special case for branch targets.
2107         Check for and mark unreachable frags.
2108         (xtensa_fix_target_frags): Remove use of align_only_targets flag.
2109         Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
2110         end of a zero-overhead loop body.
2111         (frag_can_negate_branch): Handle instructions with multiple slots.
2112         Use new xtensa-isa.h functions
2113         (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
2114         xtensa_mark_zcl_first_insns): New.
2115         (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
2116         transformations are disabled.
2117         (next_instrs_are_b_retw): Use new xtensa-isa.h functions.  Handle
2118         multislot instructions.
2119         (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
2120         Likewise.  Also error if transformations are disabled.
2121         (unrelaxed_frag_max_size): New.
2122         (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
2123         xtensa-isa.h functions.
2124         (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
2125         xtensa_opcode_is_loop instead of is_loop_opcode.
2126         (get_text_align_power): Replace as_fatal with assertion.
2127         (get_text_align_fill_size): Iterate instead of using modulus when
2128         use_nops is false.
2129         (get_noop_aligned_address): Assert that this is for a machine-dependent
2130         RELAX_ALIGN_NEXT_OPCODE frag.  Use next_frag_opcode_is_loop,
2131         xg_get_single_size, and frag_format_size.
2132         (get_widen_aligned_address): Rename to ...
2133         (get_aligned_diff): ... this function.  Add max_diff parameter.
2134         Remove handling of rs_align/rs_align_code frags.  Use
2135         next_frag_format_size, get_text_align_power, get_text_align_fill_size,
2136         next_frag_opcode_is_loop, and xg_get_single_size.  Compute max_diff
2137         and pass it back to caller.
2138         (xtensa_relax_frag): Use relax_frag_loop_align.  Add code for new
2139         RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
2140         RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types.  Check relax_seen.
2141         (relax_frag_text_align): Rename to ...
2142         (relax_frag_loop_align): ... this function.  Assume loops can only be
2143         in the first slot of an instruction.
2144         (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
2145         instruction.  Remove call to frag_wane.
2146         (relax_frag_narrow): Rename to ...
2147         (relax_frag_for_align): ... this function.  Extend to handle
2148         RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
2149         RELAX_NARROW for the first slot.
2150         (find_address_of_next_align_frag, bytes_to_stretch): New.
2151         (future_alignment_required): Use find_address_of_next_align_frag and
2152         bytes_to_stretch.  Look ahead to subsequent frags to make smarter
2153         alignment decisions.
2154         (relax_frag_immed): Add format, slot, and estimate_only parameters.
2155         Check if transformations are enabled for b_j_loop_end workaround.
2156         Use new xtensa-isa.h functions and handle multislot instructions.
2157         Update call to xg_assembly_relax.
2158         (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
2159         RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
2160         frag types.
2161         (convert_frag_narrow): Add segP, format and slot parameters.  Call
2162         convert_frag_immed for branch instructions.  Adjust calls to
2163         tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf.  Use
2164         xg_get_single_size and xg_get_single_format.
2165         (convert_frag_fill_nop): New.
2166         (convert_frag_immed): Add format and slot parameters.  Handle multislot
2167         instructions and use new xtensa-isa.h functions.  Update calls to
2168         tinsn_immed_from_frag and xg_assembly_relax.  Check if transformations
2169         enabled for b_j_loop_end workaround.  Use build_nop instead of
2170         assemble_nop.  Check is_specific_opcode flag.  Check for unreachable
2171         frags.  Use xg_get_single_size.  Handle O_pltrel.
2172         (fix_new_exp_in_seg): Remove check for old plt flag.
2173         (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
2174         xtensa_insnbuf_to_chars.  Call tinsn_immed_from_frag.  Change check
2175         for loop opcode to an assertion.  Mark all frags up to the end of the
2176         loop as not transformable.
2177         (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
2178         (get_subseg_info): New.
2179         (xtensa_move_literals): Call xtensa_set_frag_assembly_state.  Add null
2180         check for dest_seg.
2181         (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
2182         literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
2183         (xtensa_switch_to_non_abs_literal_fragment): New.
2184         (cache_literal_section): Add is_code parameter and pass it through to
2185         retrieve_literal_seg.
2186         (retrieve_literal_seg): Add is_code parameter and use it to set the
2187         flags on the literal section.  Handle case where head parameter is 0.
2188         (get_frag_is_no_transform, set_frag_is_specific_opcode,
2189         set_frag_is_no_transform): New.
2190         (xtensa_create_property_segments): Add end_property_function parameter
2191         and pass it through to add_xt_block_frags.  Call bfd_get_section_flags
2192         and skip SEC_DEBUGGING and !SEC_ALLOC sections.
2193         (xtensa_create_xproperty_segments, section_has_xproperty): New.
2194         (add_xt_block_frags): Add end_property_function parameter and call it
2195         if it is non-zero.  Call xtensa_frag_flags_init.
2196         (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
2197         get_frag_property_flags, frag_flags_to_number,
2198         xtensa_frag_flags_combinable, xt_block_aligned_size,
2199         xtensa_xt_block_combine, add_xt_prop_frags,
2200         init_op_placement_info_table, opcode_fits_format_slot,
2201         xg_get_single_size, xg_get_single_format): New.
2202         (istack_push): Inline call to tinsn_copy.
2203         (tinsn_copy): Delete.
2204         (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
2205         CONST16 opcodes.  Handle O_big, O_illegal, and O_absent.
2206         (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
2207         (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
2208         functions.  Handle invisible operands.
2209         (tinsn_to_slotbuf): New.
2210         (tinsn_check_arguments): Use new xtensa-isa.h functions.
2211         (tinsn_from_chars): Add slot parameter.  Rewrite using xg_init_vinsn,
2212         vinsn_from_chars, and xg_free_vinsn.
2213         (tinsn_from_insnbuf): New.
2214         (tinsn_immed_from_frag): Add slot parameter and handle multislot
2215         instructions.  Handle symbol differences.
2216         (get_num_stack_text_bytes): Use xg_get_single_size.
2217         (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
2218         xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
2219         get_expr_register, set_expr_symbol_offset_diff): New.
2220         * config/tc-xtensa.h (MAX_SLOTS): Define.
2221         (xtensa_relax_statesE): Move from tc-xtensa.c. Add
2222         RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
2223         RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
2224         RELAX_NONE types.
2225         (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
2226         (xtensa_frag_type struct): Add is_assembly_state_set,
2227         use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
2228         is_align, is_text_align, alignment, and is_first_loop_insn fields.
2229         Replace is_generics and is_relax fields by is_no_transform field.
2230         Delete is_text and is_longcalls fields.  Change text_expansion and
2231         literal_expansion to arrays of MAX_SLOTS entries.  Add arrays of
2232         per-slot information: literal_frags, slot_subtypes, slot_symbols,
2233         slot_sub_symbols, and slot_offsets.  Add fr_prev field.
2234         (xtensa_fix_data struct): New.
2235         (xtensa_symfield_type struct): Delete plt field.
2236         (xtensa_block_info struct): Move definition to tc-xtensa.h.  Add
2237         forward declaration here.
2238         (xt_section_type enum): Delete xt_insn_sec.  Add xt_prop_sec.
2239         (XTENSA_SECTION_RENAME): Undefine.
2240         (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
2241         tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
2242         HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
2243         (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
2244         (unit_num_copies_func, opcode_num_units_func,
2245         opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
2246         (resource_table struct): New.
2247         * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
2248         (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
2249         literal_space, symbol, sub_symbol, offset, and literal_frag fields.
2250         (tinsn_copy): Delete prototype.
2251         (vliw_insn struct): New.
2252         * config/xtensa-relax.c (insn_pattern_struct): Add options field.
2253         (widen_spec_list): Add option conditions for density and boolean
2254         instructions.  Add expansions using CONST16 and conditions for using
2255         CONST16 vs. L32R.  Use new Xtensa LX RSR/WSR syntax.  Add entries for
2256         predicted branches.
2257         (simplify_spec_list): Add option conditions for density instructions.
2258         Add entry for NOP instruction.
2259         (append_transition): Add cmp function pointer parameter and use it to
2260         insert the new entry in order.
2261         (operand_function_LOW16U, operand_function_HI16U): New.
2262         (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
2263         OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2264         (enter_opname, split_string): Use xstrdup instead of strdup.
2265         (init_insn_pattern): Initialize new options field.
2266         (clear_req_or_option_list, clear_req_option_list,
2267         clone_req_or_option_list, clone_req_option_list, parse_option_cond):
2268         New.
2269         (parse_insn_pattern): Parse option conditions.
2270         (transition_applies): New.
2271         (build_transition): Use new xtensa-isa.h functions.  Fix incorrectly
2272         swapped last arguments in calls to append_constant_value_condition.
2273         Call clone_req_option_list.  Add warning about invalid opcode.
2274         Handle LOW16U and HI16U function names.
2275         (build_transition_table): Add cmp parameter and use it in calls to
2276         append_transition.  Use new xtensa-isa.h functions.  Check
2277         transition_applies before adding entries.
2278         (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
2279         pass it through to build_transition_table.
2280         * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
2281         ReqOption, transition_cmp_fn): New types.
2282         (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2283         (transition_rule struct): Add options field.
2284         * doc/as.texinfo (Overview): Update Xtensa options.
2285         * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
2286         --[no-]relax, and --[no-]generics options.  Update descriptions of
2287         --text-section-literals and --[no-]longcalls.  Add
2288         --[no-]absolute-literals and --[no-]transform.
2289         (Xtensa Syntax): Add description of syntax for FLIX instructions.
2290         Remove use of "generic" and "specific" terminology for opcodes.
2291         (Xtensa Registers): Generalize the syntax description to include
2292         user-defined register files.
2293         (Xtensa Automatic Alignment): Update.
2294         (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
2295         (Xtensa Call Relaxation): Linker can now remove most of the overhead.
2296         (Xtensa Directives): Remove confusing rules about precedence.
2297         (Density Directive, Relax Directive): Delete.
2298         (Schedule Directive): New.
2299         (Generics Directive): Rename to ...
2300         (Transform Directive): ... this node.
2301         (Literal Directive): Update for absolute literals.  Missing
2302         literal_position directive is now an error.
2303         (Literal Position Directive): Update for absolute literals.
2304         (Freeregs Directive): Delete.
2305         (Absolute Literals Directive): New.
2306         (Frame Directive): Minor editing.
2307         * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
2308         Update dependencies.
2309         * Makefile.in: Regenerate.
2310
2311 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
2312
2313         * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
2314         to build the second and third fixups for a composite relocation.
2315         (macro_read_relocs): New function.
2316         (macro_build): Use it.
2317         (s_cpsetup): Pass all three composite relocation codes to macro_build.
2318         Simplify fragging code accordingly.
2319         (s_gpdword): Use fix_new rather than fix_new_exp for the second part
2320         of the composite relocation.  Set fx_tcbit in both fixups.
2321
2322 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
2323
2324         * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
2325         (md_apply_fix3): Don't treat composite relocs as done.
2326
2327 2004-10-07  Jan Beulich <jbeulich@novell.com>
2328
2329         * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
2330         prefix for symbol names generated from the LOCAL macro directive.
2331
2332         * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
2333         FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
2334
2335 2004-10-07  Tomer Levi  <Tomer.Levi@nsc.com>
2336
2337         * config/tc-crx.c (preprocess_reglist): Handle Co-processor
2338         Special registers.
2339         (md_assemble): Add error checking for Co-Processor instructions.
2340         (get_cinv_parameters): Add 'b' option to invalidate the
2341         branch-target cache.
2342
2343 2004-10-05  Paul Brook  <paul@codesourcery.com>
2344
2345         * config/tc-arm.c (unwind): New variable.
2346         (vfp_sp_encode_reg): New function.
2347         (vfp_sp_reg_required_here): Use it.
2348         (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
2349         (vfp_parse_reg_list): New function.
2350         (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
2351         s_arm_unwind_personality, s_arm_unwind_personalityindex,
2352         s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
2353         s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
2354         functions.
2355         (md_pseudo_table): Add them.
2356         (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
2357         (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
2358         (set_section, add_unwind_adjustsp, flush_pending_unwind,
2359         finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
2360         require_hashconst, add_unwind_opcode): New functions.
2361         * doc/c-arm.texi: Document unwinding opcodes.
2362         * NEWS: Mention the new feature.
2363
2364 2004-10-04  Eric Christopher  <echristo@redhat.com>
2365
2366         * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
2367
2368 2004-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2369
2370         * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
2371         TLS relocations.
2372         * config/tc-s390.c (md_apply_fix3): Likewise.
2373         * config/tc-sparc.c (md_apply_fix3): Likewise.
2374
2375 2004-10-01  Paul Brook  <paul@codesourcery.com>
2376
2377         * config/tc-arm.c (arm_elf_section_type): New function.
2378         (arm_elf_change_section): Set section link for exidx sections.
2379         * config/tc-arm.h (arm_elf_section_type): Add prototype.
2380         (md_elf_section_type): Define.
2381
2382 2004-10-01  Bill Farmer  <Bill@the-farmers.freeserve.co.uk>
2383
2384         * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
2385         instruction's offset.
2386
2387 2004-10-01  Adam Nemet  <anemet@lnxw.com>
2388
2389         * (TARGET_FORMAT): Remove LynxOS COFF definition.
2390
2391 2004-10-01  Ravi Ramaseshan  <ravi.ramaseshan@codito.com>
2392
2393         * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
2394         asymbol *, instead use symbol_get_bfdsym.
2395
2396 2004-09-30  Linus Nielsen Feltzing  <linus@haxx.se>
2397
2398         * config/tc-m68k.c (select_control_regs): Add mcf5249.
2399
2400 2004-09-30  Paul Brook  <paul@codesourcery.com>
2401
2402         * config/tc-arm.c (do_smi, do_nop): New functions.
2403         (insns): Add ARMv6ZK instructions.
2404         (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
2405         (tc_gen_reloc): Ditto.
2406         (arm_cpus): Add mpcore and arm1176.
2407         (arm_archs): Add armv6{k,z,zk}.
2408         * doc/c-arm.texi: Document new cores and architectures.
2409
2410 2004-09-30  Nick Clifton  <nickc@redhat.com>
2411
2412         * config/tc-arm.c: Use ISO C90 formatting.
2413
2414 2004-09-30  Vladimir Ivanov  <vladitx@nucleusys.com>
2415
2416         * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
2417         as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
2418         REG_TYPE_MVDX is expected.
2419
2420 2004-09-29  Marc Bevand  <m.bevand@gmail.com>
2421
2422         * doc/c-i386.texi (i386-Mnemonics): Fix typo.
2423
2424 2004-09-21  James E Wilson  <wilson@specifixinc.com>
2425
2426         * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
2427         (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
2428         output_spill_base, output_unat_psprel, output_lc_psprel,
2429         output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
2430         output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
2431         output_spill_psprel_p): Use it.
2432
2433 2004-09-20  Tomer Levi  <Tomer.Levi@nsc.com>
2434
2435         * config/tc-crx.c (handle_LoadStor): New function.
2436         Handle load/stor unique instructions before parsing.
2437
2438 2004-09-17  Paul Brook  <paul@codesourcery.com>
2439
2440         * config/tc-arm.c (s_arm_rel31): New funciton.
2441         (md_pseudo_table): Add .rel31.
2442         (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
2443         BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
2444         (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
2445         (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
2446         (arm_parse_reloc): Add (target2).
2447
2448 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
2449
2450         * Makefile.am: Run "make dep-am".
2451         * Makefile.in: Regenerate.
2452         * aclocal.m4: Regenerate.
2453         * configure: Regenerate.
2454         * doc/Makefile.in: Regenerate.
2455         * po/POTFILES.in: Regenerate.
2456         * po/gas.pot: Regenerate.
2457
2458 2004-09-14  Hideki IWAMOTO  <h-iwamoto@kit.hi-ho.ne.jp>
2459
2460         * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
2461         [!LLONG_MAX]: Ditto.
2462
2463 2004-09-13  Paul Brook  <paul@codesourcery.com>
2464
2465         * config/tc-arm.c: Rename RELABS to TARGET1.
2466
2467 2004-09-13  Alan Modra  <amodra@bigpond.net.au>
2468
2469         * messages.c (as_internal_value_out_of_range): Cast values passed
2470         to as_bad_where or as_warn_where to proper type.
2471
2472 2004-09-11  Theodore A. Roth  <troth@openavr.org>
2473
2474         * config/tc-avr.c: Add support for
2475         atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
2476
2477 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
2478
2479         * dw2gencfi.c (select_cie_for_fde): When separating CIE out
2480         from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
2481
2482 2004-09-08  Paul Brook  <paul@codesourcery.com>
2483
2484         * config/obj-elf.c (obj_elf_section_type): Handle init_array,
2485         fini_array and preinit_array section types.
2486         * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
2487         and fini_array.
2488         * doc/as.texinfo: Document extra section types.
2489
2490 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
2491
2492         * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
2493         * Makefile.in: Regenerated.
2494         * configure.in: Set em for arm*-*-symbianelf*.
2495         * configure: Regenerated.
2496         * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
2497         vectors when appropriate.
2498         * config/te-symbian.h: New file.
2499
2500 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
2501
2502         * config/tc-crx.c (gettrap): Exception vector can be case
2503         insensitive.
2504         (process_label_constant): Fix a 32-bit displacement bug in branch
2505         instructions.
2506         (get_operandtype) : Bug fix, wrong operand was used.
2507         (process_label_constant): Initialize relocation type to
2508         BFD_RELOC_NONE
2509
2510 2004-09-01  Richard Earnshaw < reanrsha@arm.com>
2511
2512         * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
2513         for synthesizable cores.
2514
2515         * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
2516
2517 2004-08-25  Dmitry Diky  <diwil@spec.ru>
2518
2519         * config/tc-msp430.c:   Clean-up the code.
2520         (md_relax_table): New relax table.
2521         (mcu_types): Sort MCU types.
2522         (md_pseudo_table): Add .profiler pseudo handler.
2523         (pow2value): New function.
2524         (msp430_profiler): New function.
2525         (msp430_operands): Add new insns handlers.
2526         (msp430_srcoperand): Add register operand handler, allow complex
2527         expressions.
2528         (md_estimate_size_before_relax): Rewritten.
2529         (md_convert_frag): Rewritten.
2530         (msp430_relax_frag): New function.
2531         * config/tc-msp430.h (md_relax_frag): define macro
2532         * doc/c-msp430.texi: Update information.
2533
2534 2004-08-24  Nick Clifton  <nickc@redhat.com>
2535
2536         * as.c (std_shortopts): Allow -g to take an optional argument.
2537         (parse_args): Pass any switch starting with -g on to the backend
2538         for parsing.
2539
2540 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
2541
2542         * configure.in (arm*-*-symbianelf*): New target.
2543         (arm*-*-eabi*): Likewise.
2544         * configure: Regenerated.
2545
2546 2004-08-18  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2547         * config/tc-mips.c (append_insn): Handle delay slots in branch likely
2548         correctly.
2549
2550 2004-08-18  Jakub Jelinek  <jakub@redhat.com>
2551
2552         * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
2553         argument, don't do anything if current section is not
2554         .gnu.linkonce.t.* and linkonce_empty is set.
2555         (generate_unwind_image, dot_endp): Adjust callers, call
2556         start_unwind_section (*, 1) if nothing will be put into the
2557         section.
2558
2559 2004-08-17  Nick Clifton  <nickc@redhat.com>
2560
2561         * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
2562         (show_usage): Add -g.
2563         (std_longopts): Add --gen-debug.  Alpha sort the table.
2564         (parse_args): Print an error message if a switch is not handled.
2565         Handle the -g switch, calling md_debug_format_selector() if
2566         necessary.
2567         * NEWS: Mention new feature.
2568         * doc/as.texinfo: Document new switch.
2569         * doc/internals.texi: Document behaviour of md_parse_option.
2570
2571         * config/tc-arm.c (md_parse_option): Do not issue an error message
2572         if the switch is not recognised.
2573         * config/tc-m68k.c (md_parse_option): Likewise.
2574         * config/tc-pdp11.c (md_parse_option): Likewise.
2575         * config/tc-v850.c (md_parse_option): Likewise.
2576
2577         * as.h: Fix up formatting.
2578         * tc.h: Likewise.
2579
2580 2004-08-16  Nick Clifton  <nickc@redhat.com>
2581
2582         * macro.c (macro_set_alternate): Use ISO C90 formatting.
2583
2584         * configure.in: Sort architecture based tables alphabetically.
2585         * configure: Regenerate.
2586
2587 2004-08-16  Alan Modra  <amodra@bigpond.net.au>
2588
2589         * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
2590         { "cc", 68 }, with { "cr", 70 }.
2591
2592 2004-08-13 Jan Beulich <jbeulich@novell.com>
2593            Nick Clifton <nickc@redhat.com>
2594
2595         * as.c: Add and handle new --alternate command line option.
2596         * macro.c (macro_set_alternate): New.
2597         * macro.h (macro_set_alternate): Declare.
2598         * read.c: Add and handle new .altmacro and .noaltmacro directives.
2599         * doc/as.texinfo: Document new command line option and pseudo-ops
2600         as well as insert documentation originating from gasp about
2601         alternate macro syntax.
2602         * NEWS: Mention new command line option and pseudo-ops.
2603
2604 2004-08-10  Mark Mitchell  <mark@codesourcery.com>
2605
2606         * expr.c (operand): Handle the "~", "-", and "!" operators applied
2607         to bignums.
2608
2609 2004-08-06  Paul Brook  <paul@codesourcery.com>
2610
2611         * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
2612         Handle new relocations.
2613         * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
2614
2615 2004-08-05  Bob Wilson  <bob.wilson@acm.org>
2616
2617         * write.c (relax_segment): Use was_address instead of address when
2618         setting fr_fix field for align frag due to backwards .org.
2619
2620 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
2621
2622         Introduce SH2a support.
2623         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
2624         * config/tc-sh.c (get_specific): Change arch_sh2a_up to
2625         arch_sh2a_nofpu_up.
2626         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
2627         * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
2628         2004-02-20  Corinna Vinschen  <vinschen@redhat.com>
2629         * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
2630         to end of conditional expression.
2631         2004-02-20  Corinna Vinschen  <vinschen@redhat.com>
2632         * config/tc-sh.c: Add sh2a-nofpu support.
2633         2003-12-29  DJ Delorie  <dj@redhat.com>
2634         * tc-sh.c: Add sh2a support.
2635         (parse_reg): Add tbr.
2636         (parse_at): Support @@(disp,tbr).
2637         (get_specific): Support sh2a opcodes.
2638         (insert4): New, for 4 byte relocs.
2639         (build_Mytes): Support sh2a opcodes.
2640         (md_apply_fix3_Mytes): Support sh2a opcodes.
2641         2003-12-02  Michael Snyder  <msnyder@redhat.com>
2642         * config/tc-sh.c (md_parse_option): Handle sh2a.
2643         (sh_elf_final_processing): Ditto.
2644
2645 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
2646
2647         * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
2648         for TE_NetBSD.
2649
2650 2004-07-27  Alan Modra  <amodra@bigpond.net.au>
2651
2652         * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
2653         (ppc_arch): Expand comment.
2654
2655 2004-07-27  Tomer Levi  <Tomer.Levi@nsc.com>
2656
2657         * config/tc-crx.c: Support evaluating the difference between two
2658         symbols.
2659         * config/tc-crx.h: Likewise.
2660
2661 2004-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2662
2663         * config/tc-ia64.c (start_unwind_section): Set the linked-to
2664         section.
2665         (ia64_elf_section_change_hook): Set the linked-to section for
2666         SHT_IA_64_UNWIND.
2667
2668 2004-07-26  Dmitry Diky  <diwil@spec.ru>
2669
2670         * config/tc-msp430.c: Add new subtargets: msp430x1610,
2671         msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
2672         msp430xG438, msp430xG439.
2673
2674 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
2675
2676         * doc/as.texinfo (Section, PushSection): Correct documentation
2677         for ELF.
2678
2679 2004-07-21  Jan Beulich  <jbeulich@novell.com>
2680
2681         * config/tc-i386.c (optimize_imm): Adjust immediates to only those
2682         permissible for the selected instruction suffix.
2683         (match_template): Don't permit 64-bit general purpose operands in
2684         32-bit mode.
2685         (finalize_imm): Permit 64-bit immediates.
2686         (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
2687         specially except for the width of the used base and/or index
2688         registers.  For 32-bit displacements, use sign-extended
2689         relocations only when using 64-bit addressing.
2690         Force zero displacement on rip-relative addressing when there is
2691         no other displacement.
2692         (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
2693         specially except for the width of the used base and/or index
2694         registers.
2695         (parse_register): Disallow Reg64 registers in 32-bit mode.
2696
2697         * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
2698         suffix if the instruction doesn't support it.
2699
2700 2004-07-20  Maciej W. Rozycki  <macro@linux-mips.org>
2701
2702         * config/tc-mips.c (append_insn): Handle constant expressions with
2703         no associated relocation.
2704         (mips_ip): Cancel the expression after use for the Q format
2705         specifier.
2706         (parse_relocation): Return no relocation for unsupported
2707         operators.
2708         (my_getSmallExpression): Return no relocation if no relocation
2709         operators are used.
2710
2711 2004-07-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2712
2713         * config/obj-som.c (adjust_stab_sections): Add prototype.
2714         (obj_som_compiler, obj_som_version, obj_som_copyright,
2715         adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
2716         * config/tc-hppa.c (update_subspace):  Likewise.
2717         (is_defined_subspace): Amplify comment.
2718         * config/obj-som.h (som_frob_file): Add prototype.
2719
2720 2004-07-19  Christopher Faylor  <cgf@timesys.com>
2721             H.J. Lu  <hongjiu.lu@intel.com>
2722
2723         * subsegs.c (section_symbol): Don't create a new segment when
2724         existing segment is undefined.
2725
2726 2004-07-16  Richard Earnshaw  <rearnsha@arm.com>
2727
2728         * config/tc-arm.c: Include include/opcode/arm.h.
2729         (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
2730         (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
2731         (FPU_ARCH_*): Delete.
2732         * Makefile.am: Update dependencies.
2733         * Makefile.in: Regenerate.
2734
2735 2004-07-15  Nick Clifton  <nickc@redhat.com>
2736
2737         * configure.in: Accept armbe as a big-endian arm configuration.
2738         * configure: Regenerate.
2739
2740 2004-07-13  Thomas Nystrom  <thn@saeab.se>
2741
2742         * config/tc-i386.c (T_SHIFTOP): New constant.
2743         (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
2744         (intel_el1): Handle '~'.
2745         (intel_get_token): Handle '<>', '&', '|' and '~'.
2746
2747 2004-07-13  Nick Clifton <nickc@redhat.com>
2748
2749         (md_assemble): Remove spurious newline from end of as_bad error
2750         message.
2751         (intel_e05_1): Likewise.
2752         (intel_e11): Likewise.
2753         (intel_match_token): Likewise.
2754
2755 2004-07-11  Andreas Schwab  <schwab@suse.de>
2756
2757         * config/tc-m68k.c: Convert to C90.  Remove redundant
2758         declarations.  Indentation fixup.
2759         [M68KCOFF]: Include "obj-coff.h" instead of declaring
2760         obj_coff_section ourselves.
2761
2762 2004-07-09  James E Wilson  <wilson@specifixinc.com>
2763
2764         * config/tc-ia64.c (default_big_endian): New.
2765         (dot_byteorder, md_begin): Use it.
2766         (md_parse_option): Set it.
2767
2768 2004-07-09  Nick Clifton  <nickc@redhat.com>
2769
2770         * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
2771         * configure: Regenerate.
2772         * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
2773         * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
2774         sh_find_elf_flags if necessary.
2775
2776 2004-07-08  Richard Sandiford  <rsandifo@redhat.com>
2777
2778         * config/tc-mips.c (mips_fix_adjustable): If the full addend is
2779         going to be split into more than one in-place addend, return 0
2780         for relocations against mergeable sections.  Associate comments
2781         with code.
2782
2783 2004-07-07  Tomer Levi  <Tomer.Levi@nsc.com>
2784
2785         * Makefile.am (CPU_TYPES): Add crx.
2786         (TARGET_CPU_CFILES): Add config/tc-crx.c.
2787         (TARGET_CPU_HFILES): Add config/tc-crx.h.
2788         (DEPTC_crx_elf): New target.
2789         (DEPOBJ_crx_elf): Likewise.
2790         (DEP_crx_elf): Likewise.
2791         * Makefile.in: Regenerate.
2792         * configure.in: Add crx* target.
2793         * configure: Regenerate.
2794         * config/tc-crx.c: New file.
2795         * config/tc-crx.h: New file.
2796         * NEWS: Mention new target.
2797
2798 2004-07-06  Nick Clifton  <nickc@redhat.com>
2799
2800         * config.in: Undefine TARGET_SYMBIAN by default.
2801         * configure.in:
2802         * configure: Regenerate. Add sh-symbian-elf target.  If
2803         selected define TARGET_SYMBIAN.
2804         * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
2805         format if TARGET_SYMBIAN has been defined.
2806
2807         * output-file.c (output_file_create): Report the target format
2808         chosen when bfd_openw reports that it is invalid.
2809
2810         * config/obj-coff.c (coff_pseudo_table): Only define the weak
2811         pseudo for BFD based assemblers.
2812
2813 2004-07-05  Andrew Stubbs <andrew.stubbs@superh.com>
2814
2815         gas:
2816         * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
2817         (md_parse_option): Remove redundant -isa testing.
2818         Make bfd_arch variable const.
2819         (md_show_usage): Make bfd_arch variable const.
2820
2821 2004-07-03  James E Wilson  <wilson@specifixinc.com>
2822
2823         * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
2824         * config/tc-ia64.h (md_frag_check): Define.
2825
2826 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
2827
2828         * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
2829         externals.
2830         * doc/as.texinfo (Weak): Document PE weak symbols.
2831
2832 2004-07-03  Richard Sandiford  <rsandifo@redhat.com>
2833
2834         * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
2835         (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
2836         (mips_frob_file): Rework so that only a single pass through the
2837         relocs is needed.  Allow %lo()s to have higher offsets than their
2838         corresponding %hi()s or %got()s.
2839
2840 2004-07-02  Nick Clifton  <nickc@redhat.com>
2841
2842         * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
2843         allow values which have come from undefined symbols.
2844         Always consider this fixup to have been processed as a reloc
2845         cannot be generated for it.
2846
2847 2004-07-02  Alan Modra  <amodra@bigpond.net.au>
2848
2849         * frags.h (struct frag): Add has_code and insn_addr fields.
2850         * write.c (cvt_frag_to_fill): Invoke md_frag_check.
2851         * config/tc-ppc.c (md_assemble): Check and set insn_addr.
2852         * config/tc-ppc.h (md_frag_check): Define.
2853
2854 2004-06-28  Maciej W. Rozycki  <macro@linux-mips.org>
2855
2856         * doc/Makefile.am (info): Rename goal to...
2857         (info-local): ... this, to preserve implicit dependencies.
2858         * doc/Makefile.in: Regenerate with automake 1.8.5.
2859
2860 2004-06-25  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2861
2862         * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
2863         (m32r_cgen_record_fixup_exp): Changed for  @GOTOFF, @GOT.
2864         (m32r_fix_adjustable): Changed for  @GOTOFF, @GOT, @PLT.
2865         (tc_gen_reloc): Likewise.
2866         (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
2867         (m32r_parse_name): Likewise.
2868         (m32r_cgen_parse_fix_exp): Likewise.
2869         * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
2870         (O_PIC_reloc): Likewise.
2871         (TC_CGEN_PARSE_FIX_EXP): Likewise..
2872         * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
2873         for @GOTOFF, @GOT, @PLT.
2874
2875 2004-06-21 Jan Beulich  <jbeulich@novell.com>
2876
2877         * gas/symbols.c: While discarding ordinary local absolute symbols
2878         when --strip-local-absolute is in effect, retain file symbols.
2879
2880 2004-06-20  Andreas Schwab  <schwab@suse.de>
2881
2882         * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
2883         (md_parse_option): Likewise.
2884
2885 2004-06-17  Jan Beulich <jbeulich@novell.com>
2886
2887         * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
2888         * config/te-netware.h: New file.
2889         * config/te-ppcnw.h: Delete: Obsolete.
2890         * configure.in: Eliminate ill NetWare targets. Make generic
2891         NetWare target use proper emulation.
2892         * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
2893         reference to new te-netware.h.
2894         * configure: Regenerate.
2895         * Makefile.in: Regenerate.
2896
2897 2004-06-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2898
2899         * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
2900         comparison in .insn pseudo operation.
2901
2902 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
2903
2904         * config/obj-coff.c (coff_adjust_section_syms): Use
2905         bfd_get_section_size instead of bfd_get_section_size_before_reloc.
2906         (coff_frob_section): Likewise.
2907         * config/tc-mips.c (md_apply_fix3): Likewise.
2908         * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
2909         (elf_frob_file_after_relocs): Likewise.
2910
2911 2004-06-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2912
2913         * config/tc-hppa.c (log2): Rename to exact_log2.
2914         (pa_next_subseg): Delete unused function.
2915         (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
2916         (create_new_subspace): Likewise.
2917
2918         Bug gas/213
2919         * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
2920         labels.  Fix warning.
2921
2922 2004-05-28  DJ Delorie  <dj@redhat.com>
2923
2924         * config/tc-mn10300.h (tc_fix_adjustable): Define.
2925         * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
2926         or non-merged symbols.
2927
2928 2004-05-28  H.J. Lu  <hongjiu.lu@intel.com>
2929
2930         * config/tc-ia64.c (remove_marked_resource): Save, clear and
2931         restore the old slot when inserting srlz.i/srlz.d.
2932
2933 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
2934
2935         * Makefile.am: Regenerate dependecies.
2936         * Makefile.in: Regenerate.
2937         * config/tc-sh.c (valid_arch): Make unsigned.
2938         (preset_target_arch): Likewise.
2939         (md_begin): Use new architecture flags system.
2940         (get_specific): Likewise.
2941         (assemble_ppi): Likewise.
2942         (md_assemble): Likewise. Also fix error check for bad opcodes.
2943         (md_parse_option): Likewise. Also generate -isa values according
2944         to the table in bfd/cpu-sh.c instead of just constants. Also
2945         allow <arch>-up ISA variants.
2946         (sh_elf_final_processing): Replace if-else chain with a call to
2947         sh_find_elf_flags().
2948         * testsuite/gas/sh/arch: New directory.
2949         * testsuite/gas/sh/arch/arch.exp: New test script.
2950         * testsuite/gas/sh/arch/arch_expected.txt: New file.
2951         * testsuite/gas/sh/arch/sh.s: New file.
2952         * testsuite/gas/sh/arch/sh2.s: New file.
2953         * testsuite/gas/sh/arch/sh-dsp.s: New file.
2954         * testsuite/gas/sh/arch/sh2e.s: New file.
2955         * testsuite/gas/sh/arch/sh3-nommu.s: New file.
2956         * testsuite/gas/sh/arch/sh3.s: New file.
2957         * testsuite/gas/sh/arch/sh3-dsp.s: New file.
2958         * testsuite/gas/sh/arch/sh3e.s: New file.
2959         * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
2960         * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
2961         * testsuite/gas/sh/arch/sh4.s: New file.
2962         * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
2963         * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
2964         * testsuite/gas/sh/arch/sh4a.s: New file.
2965
2966 2004-05-28  Peter Barada <peter@the-baradas.com>
2967
2968         * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
2969         with zero offset into mode 2 addressing to save a word.
2970
2971 2004-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2972
2973         * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
2974         (ar_is_only_in_integer_unit): New.
2975         (ar_is_only_in_memory_unit): New.
2976         (generate_unwind_image): Silence gcc on 32bit host.
2977         (md_assemble): Use ar_is_only_in_integer_unit instead of
2978         ar_is_in_integer_unit. Check AR access.
2979
2980 2004-05-27  Peter Barada  <peter@the-baradas.com>
2981
2982         * config/tc-m68k.c (md_begin): Sort the opcode table into
2983         alphabetical order.
2984         (m68k_compare_opcode): New function to do the sorting.
2985
2986 2004-05-24  Peter Barada  <peter@the-baradas.com>
2987
2988         * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
2989         addressing on MIT style operands.
2990         * config/m68k-parse.y(yylex): Allow '-&' for predecrement
2991         w/mask addressing.
2992         * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
2993         operands.
2994
2995 2004-05-23  Alan Modra  <amodra@bigpond.net.au>
2996
2997         * expr.c (operand, operator): Don't reject '++' and '--'.
2998
2999 2004-05-20  Richard Sandiford  <rsandifo@redhat.com>
3000
3001         * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
3002         dwarf tables.
3003
3004 2004-05-17  Adam Nemet  <anemet@lnxw.com>
3005
3006         * configure.in: Add ppc-*-lynxos*.  Update i386-*-lynxos* to ELF.
3007         * configure: Regenerate.
3008
3009 2004-05-13  Paul Brook  <paul@codesourcery.com>
3010
3011         * dw2gencfi.c (output_cie):  Handle dwarf3 format CIE entries.
3012
3013 2004-05-13  Joel Sherrill <joel@oarcorp.com>
3014
3015         * configure.in (or32-*-rtems*): Switch to elf.
3016         * configure: Regenerate.
3017
3018 2004-05-13  Nick Clifton  <nickc@redhat.com>
3019
3020         * po/fr.po: Updated French translation.
3021
3022 2004-05-11  Nick Clifton  <nickc@redhat.com>
3023
3024         * doc/as.texinfo (Section): Document G and T flags to .section
3025         directive.  Document the extra arguments that the G flag
3026         requires.  Document the #tls flag.
3027
3028 2004-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3029
3030         * subsegs.c (section_symbol): Create a new section symbol if
3031         the existing one doesn't match.
3032         * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
3033
3034 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
3035
3036         * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
3037         to cope with VR4181A errata MD(1) and MD(4).
3038
3039 2004-05-07  Brian Ford  <ford@vss.fsi.com>
3040
3041         * NEWS: Mention .secrel32 for pe[i]-i386.
3042
3043 2004-05-07  Alexandre Oliva  <aoliva@redhat.com>
3044
3045         * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3046         (HANDLE_ALIGN): New.
3047
3048 2004-05-06  Daniel Jacobowitz  <dan@debian.org>
3049
3050         * Makefile.am (DIST_SUBDIRS): Define.
3051         * aclocal.m4: Regenerate with automake 1.8.4.
3052         * Makefile.in: Likewise.
3053         * doc/Makefile.in: Likewise.
3054
3055 2004-05-06  David Mosberger-Tang  <davidm@hpl.hp.com>
3056
3057         * config/tc-ia64.c (dot_serialize): Declare.
3058         (dot_serialize): New function.
3059         (md_pseudo_table): Add ".serialize.data" and
3060         ".serialize.instruction" directives.
3061
3062 2004-05-06  Nick Clifton  <nickc@redhat.com>
3063
3064         * messages (as_internal_value_out_of_range): Print a message about
3065         a value being out of range.  Be consistent about whether the
3066         values are printed in decimal or hexadecimal.
3067         (as_warn_value_out_of_range): Generate a warning message about an
3068         out of range value.
3069         (as_bad_value_out_of_range): Generate an error message about an
3070         out of range value.
3071         * as.h: Prototype the new functions.
3072         * config/tc-alpha.c (insert_operand): Use new function.
3073         * config/tc-arc.c (arc_insert_operand): Likewise.
3074         * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
3075         * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
3076         * config/tc-ppc.c (ppc_insert_operand): Likewise.
3077         * config/tc-s390.c (s390_insert_operand): Likewise.
3078         * config/tc-v850.c (v850_insert_operand): Likewise.
3079
3080 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
3081
3082         * configure.in: Set em=linux for frv-*-*linux*.
3083         * configure: Rebuilt.
3084         * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
3085         (frv_md_fdpic_enabled): New.
3086         * config/tc-frv.c (frv_md_fdpic_enabled): New.
3087         (DEFAULT_FDPIC): New.
3088         (frv_flags): Use DEFAULT_FDPIC.
3089         (frv_pic_flag): Likewise.
3090         (OPTION_NOPIC): New.
3091         (md_longopts): Add -mnopic.
3092         (md_parse_option): Handle it.
3093         (md_show_usage): Add -mfdpic and -mnopic.
3094
3095 2004-05-05  Peter Barada  <peter@the-baradas.com>
3096
3097         * config/tc-m68k.c: Add find_cf_chip to print list of valid
3098         chips for invalid coldfire instructions, rename selectors
3099         for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
3100         add current_chip to track which chip is referred to(including save/restore),
3101         use current_chip to select control registers, not current_arch.
3102         (md_show_usage): Add new chips.
3103         * doc/c-m68k.texi: Document new command line switches.
3104
3105 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
3106
3107         * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
3108         (NOP_OPCODE): Define.
3109         (s390_align_code): Remove prototype.
3110         * tc-s390.c (s390_align_code): Remove.
3111
3112 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3113
3114         * config/tc-ia64.c (make_unw_section_name): Removed.
3115         (start_unwind_section): New function.
3116         (generate_unwind_image): Take const segT instead of const
3117         char *.
3118         (dot_handlerdata): Adjusted.
3119         (dot_endp): Likewise.
3120
3121 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * config/obj-elf.c (obj_elf_change_section): Allow the
3124         ".note.GNU-stack" section has SHF_EXECINSTR.
3125
3126 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
3127
3128         * config/obj-elf.c (get_section): Return bfd_boolean.
3129         (obj_elf_change_section): Call bfd_get_section_by_name_if
3130         instead of bfd_map_over_sections.
3131
3132 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
3133
3134         * config/obj-elf.c (get_section): New function.
3135         (obj_elf_change_section): Support multiple sections with same
3136         name.
3137
3138 2004-04-30  Nick Clifton  <nickc@redhat.com>
3139
3140         * config/tc-arm.c (create_register_alias): Fix typo checking for
3141         case sensitive register aliases.
3142         (co_proc_number): Use error message string in all_reg_maps[]
3143         array.
3144         (cp_reg_required_here): Likewise.
3145         (fp_reg_required_here): Likewise.
3146
3147 2004-04-29  Brian Ford  <ford@vss.fsi.com>
3148
3149         * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
3150
3151 2004-04-28  Chris Demetriou  <cgd@broadcom.com>
3152
3153         * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
3154         (load_address, macro, mips_ip, md_parse_option)
3155         (mips_force_relocation, mips_validate_fix, md_apply_fix3)
3156         (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
3157         embedded-PIC handling, and update comments.
3158         (SWITCH_TABLE): Remove.
3159         * config/tc-mips.h (DIFF_EXPR_OK): Delete.
3160         (enum mips_pic_level): Remove EMBEDDED_PIC.
3161         (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
3162         (TC_FORCE_RELOCATION): Update comment.
3163         * ecoff.c (ecoff_build_lineno): Add comment about some code that
3164         might be safe to remove now that MIPS embedded-PIC is gone.
3165
3166 2004-04-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3167
3168         * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
3169         call to obj_set_subsection_attributes.
3170         (obj_som_init_stab_section): Likewise.
3171         * config/tc-hppa.c (default_subspace_dict): Add comdat field.
3172         (pa_def_subspaces): Provide comdat default.
3173         (pa_subspace): Handle new "comdat" parameter.  Set SEC_LINK_ONCE and
3174         not SEC_IS_COMMON if section is comdat, common or dup_common.  Update
3175         calls to create_new_subspace and update_subspace to pass comdat flag.
3176         (create_new_subspace, update_subspace): Add new comdat argument.  Use
3177         it in calls to obj_set_subsection_attributes.
3178         * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
3179         and use of comdat, common and dup_comm parameters.
3180
3181 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
3182
3183         * config/obj-elf.c (obj_elf_change_section): Check if the old
3184         group name is NULL before comparison.
3185
3186 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
3187
3188         * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
3189
3190 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
3191
3192         * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
3193
3194 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
3195
3196         * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
3197         (OPTION_MEMBEDDED_PIC): Remove.
3198         (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
3199         (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
3200         (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
3201         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
3202         (OPTION_ELF_BASE): Renumber.
3203         (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
3204         (md_show_usage): Remove mention of -membedded-pic.
3205         * doc/as.texinfo: Remove mention of -membedded-pic.
3206
3207 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
3208
3209         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
3210         * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
3211         a.out support.
3212         (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
3213         s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
3214         USE_GLOBAL_POINTER_OPT.
3215
3216 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
3217
3218         * config/tc-mips.c (macro): One more use of load_delay_nop.
3219
3220 2004-04-22  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
3221
3222         * config/tc-mips.c (load_delay_nop): New function.
3223         (load_address, macro): Use load_delay_nop() to build a nop
3224         which can be omitted with gpr_interlocks.
3225
3226 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
3227
3228         * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
3229         cop_interlocks): Remove superfluous CPU entries.
3230
3231 2004-04-22  Paul Brook  <paul@codesourcery.com>
3232
3233         * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
3234
3235 2004-04-22  Peter Barada <peter@the-baradas.com>
3236
3237         * NEWS: Added support for EMAC instructions and MAC/EMAC
3238         Motorola syntax.
3239         * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
3240         scale factor tokens, trailing_ampersand to mark mask addressing
3241         for MAC/EMAC instructions.
3242         * config/m68k-parse.y: Add options_ampersand clause, '<<',
3243         '>>'.
3244         (yylex): Handle '>', '<', and '&' following '+'.
3245         * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
3246         architectures in archs[].
3247         (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
3248         for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
3249         respectively.
3250         (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
3251         (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
3252         cases.
3253         Add EMAC operands to init_table[].
3254
3255 2004-04-22  Bruno De Bus <bdebus@elis.ugent.be>
3256
3257         * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
3258         state.
3259         (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
3260         * config/tc-arm.c (enum mstate): Delete from here.
3261         (mapping_state): Remove the static mapstate variable and instead
3262         store the state in the segment.  This allows a per-section mapping
3263         state.  Handle and ignore MAP_UNDEFINED states.
3264         (arm_elf_change_section): Get the current mapping state from the
3265         new section.
3266         (s_ltorg): Set the mapping state to MAP_DATA.
3267         (arm_cleanup): Use arm_elf_change_section to get the mapping state
3268         for each pool as it is emitted.
3269
3270 2004-04-22  Nick Clifton  <nickc@redhat.com>
3271
3272         * config/tc-arm.h: Formatting tidy ups.
3273
3274 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
3275
3276         * NEWS: Note that MIPS -membedded-pic option is deprecated.
3277
3278 2004-04-20  DJ Delorie  <dj@redhat.com>
3279
3280         * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
3281         * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
3282         [TE_PE] (O_secrel): Define.
3283         [TE_PE] (x86_pe_cons_fix_new): New.
3284         [TE_PE] (pe_directive_secrel): Likewise.
3285         (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
3286
3287 2004-04-19  Eric Christopher  <echristo@redhat.com>
3288
3289         * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
3290         of previous patch for fix in gcc.
3291
3292 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
3293
3294         * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
3295
3296 2004-04-19  Nathan Sidwell  <nathan@codesourcery.com>
3297
3298         * read.c (do_align): Call md_flush_pending_output, if defined.
3299
3300 2004-04-16  Alan Modra  <amodra@bigpond.net.au>
3301
3302         * expr.c (operand): Correct checks for ++ and --.
3303
3304 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3305
3306         * config/tc-generic.c: Add some comments.
3307
3308 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
3309
3310         * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
3311         -{no-}mfix-vr4122-bugs.
3312         * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
3313         (append_insn, mips_emit_delays): Update accordingly.
3314         (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
3315         (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
3316         (md_parse_option): Update after above changes.
3317         (md_show_usage): Add -mfix-vr4120.
3318
3319 2004-04-13  Bob Wilson  <bob.wilson@acm.org>
3320
3321         * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
3322         of .section directive; add a reference to the ELF .subsection
3323         directive.
3324
3325 2004-04-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3326
3327         * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
3328         in parallel.
3329
3330 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
3331
3332         * Makefile.am: Remove mips from aout targets.
3333         * Makefile.in: Regenerate.
3334         * configure.in: Remove mips-dec-bsd* target.
3335         * configure: Regenerate.
3336
3337 2004-04-07  Alan Modra  <amodra@bigpond.net.au>
3338
3339         PR 96
3340         * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
3341         to struct map_bfd.  Adjust MAP macro, and define MAP32, MAP64.
3342         Update "mapping".  Restrict some @ modifiers to 32 bit.
3343
3344 2004-04-01  Asgari Jinia  <asgarij@kpitcummins.com>
3345             Dhananjay Deshpande <dhananjayd@kpitcummins.com>
3346
3347         * config/tc-sh.c (dont_adjust_reloc_32): New variable.
3348         (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
3349         dont_adjust_reloc_32 is set.
3350         (md_longopts): Add option -renesas.
3351         (md_parse_option, md_show_usage): Likewise.
3352         * doc/c-sh.texi: Likewise.
3353
3354 2004-04-01  Dave Korn  <dk@artimi.com>
3355
3356         * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
3357         hi16 and lo16 fixS structs.
3358         (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
3359         exactly the same way as for RELOC_DLX_REL16.
3360         (machine_ip): properly respect LO flag in the_insn and
3361         output RELOC_DLX_LO16 rather than RELOC_DLX_16.
3362         (md_apply_fix3): apply RELOC_DLX_LO16.
3363
3364 2004-03-30  Stan Shebs  <shebs@apple.com>
3365
3366         Remove long-obsolete MPW support.
3367         * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
3368         * configure.in: Remove mention of ppc-*-mpw* config.
3369         * configure.in: Likewise.
3370
3371 2004-03-30  Nick Clifton  <nickc@redhat.com>
3372
3373         * config/tc-arm.c (meabi_flags): Make its use conditional upon
3374         OBJ_ELF being defined.
3375
3376 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
3377
3378         * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
3379
3380 2004-03-23  Paul Brook  <paul@codesourcery.com>
3381
3382         * config/tc-arm.c (meabi_flags): New variable.
3383         (arm_parse_eabi): New function.
3384         (md_begin): Set flags for EABI v3.
3385         (arm_eabis): Add.
3386         (arm_long_opts): Add meabi.
3387         * doc/as.texinfo <ARM>: Document -meabi.
3388         * doc/c-arm.texi: Ditto.
3389
3390 2004-03-22  Bob Wilson  <bob.wilson@acm.org>
3391
3392         * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
3393         tables even when use_literal_section flag is not set.
3394
3395 2004-03-22  Alan Modra  <amodra@bigpond.net.au>
3396
3397         * config/tc-sh.c: Remove trailing whitespace.
3398
3399 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
3400
3401         * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
3402         --mul-bug-abort and the default behavior.
3403         * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
3404         (err_for_dangerous_mul_placement): New variable.
3405         (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
3406         macros.
3407         (md_cris_relax_table): Have placeholder for STATE_MUL.
3408         (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
3409         (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
3410         case doing nothing.
3411         (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
3412         STATE_BYTE)>: Ditto.
3413         (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
3414         alignment and position of this frag, emit error message if
3415         suspicious.
3416         (md_assemble): For a multiply insn and when checking it,
3417         transform the current frag into a special frag for that purpose.
3418         (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
3419         OPTION_MULBUG_ABORT_ON>: Handle new options.
3420
3421 2004-03-19  Bob Wilson  <bob.wilson@acm.org>
3422
3423         * config/tc-xtensa.c (mark_literal_frags): New function.
3424         (xtensa_move_literals): Call mark_literal_frags for all literal
3425         segments, including init and fini literal segments.
3426         (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
3427
3428 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3429
3430         * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
3431         (pa_comm): Set BSF_OBJECT in symbol flags.
3432
3433 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
3434
3435         * Makefile.am: Run "make dep-am".
3436         * Makefile.in: Regenerate.
3437         * doc/Makefile.in: Regenerate.
3438         * config.in: Regenerate.
3439         * po/gas.pot: Regenerate.
3440
3441 2004-03-18  Nathan Sidwell  <nathan@codesourcery.com>
3442
3443         * read.c (read_a_source_file): Use demand_empty_rest_of_line.
3444         (demand_empty_rest_of_line): Issue an error here.
3445         (ignore_rest_of_line): Silently skip to end.
3446         (demand_copy_string): Issue an error, not warning.
3447         (equals): Likewise.
3448         * config/obj-elf.c (obj_elf_section_name): Likewise.
3449         (obj_elf_section): Likewise.
3450         * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
3451         (arc_extinst): Likewise.
3452         * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
3453         (dot_spill): Likewise.
3454         (dot_unwabi): Likewise.
3455         (dot_prologue): Likewise.
3456
3457         * expr.c (operand): Reject ++ and --.
3458         (operator): Likewise.
3459
3460 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3461
3462         * config/tc-sh.c: Include dw2gencfi.h.
3463         (sh_cfi_frame_initial_instructions): New function.
3464         (sh_regname_to_dw2regnum): Likewise.
3465         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
3466         file.
3467         (TARGET_USE_CFIPOP): Define.
3468         (tc_cfi_frame_initial_instructions): Likewise.
3469         (tc_regname_to_dw2regnum): Likewise.
3470         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
3471         * Makefile.am: Update dependencies.
3472         * Makefile.in: Regenerate.
3473
3474 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3475
3476         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
3477         * configure: Regenerate.
3478
3479 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
3480
3481         * read.c (s_leb128): Call md_flush_pending_output.
3482
3483 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
3484
3485         * config/tc-i386.c (output_insn): Handle PadLock instructions.
3486         * config/tc-i386.h (CpuPadLock): New define.
3487         (CpuUnknownFlags): Added CpuPadLock.
3488
3489 2004-03-07  Andreas Schwab  <schwab@suse.de>
3490
3491         * doc/c-hppa.texi (HPPA Directives): Fix typo.
3492
3493 2004-03-07  Richard Henderson  <rth@redhat.com>
3494
3495         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
3496         (cfi_finish): Likewise for fde.
3497
3498 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3499
3500         * config/tc-ia64.c (md_assemble): Properly handle NULL
3501         align_frag.
3502         (ia64_handle_align): Don't abort if failed to add a stop bit.
3503
3504 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
3505
3506         * Makefile.in: Regenerated.
3507         * aclocal.m4: Likewise.
3508         * configure: Likewise.
3509         * doc/Makefile.in: Likewise.
3510
3511 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
3512
3513         * config/tc-ia64.c (dot_align): New.
3514         (ia64_do_align): Make it static.
3515         (md_pseudo_table): Use "dot_align" for "align".
3516         (ia64_md_do_align): Don't set align_frag here.
3517         (ia64_handle_align): Add a stop bit to the previous bundle if
3518         needed.
3519
3520         * config/tc-ia64.h (ia64_do_align): Removed.
3521
3522 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
3523
3524         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
3525         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
3526         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
3527         the most general type or the user specifically requested it.
3528         (md_assemble): Add a new error message for when an instruction
3529         is understood, but is not allowed due to an -isa option.
3530
3531 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
3532
3533         * config/tc-ia64.c (align_frag): New.
3534         (md_assemble): Set the tc_frag_data field in align_frag for
3535         IA64_OPCODE_FIRST instructions.
3536         (ia64_md_do_align): Set align_frag.
3537         (ia64_handle_align): Add a stop bit if needed.
3538
3539         * config/tc-ia64.h (TC_FRAG_TYPE): New.
3540         (TC_FRAG_INIT): New.
3541
3542 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
3543
3544         * config/tc-frv.c (fr400_audio): New variable.
3545         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
3546         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
3547         (target_implements_insn_p): New function.
3548         (md_assemble): Report an error if the processor doesn't implement
3549         the instruction.
3550
3551 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3552
3553         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
3554         (md_parse_option): Ditto.
3555         (OPTION_NO_SPECIAL_M32R): Added.
3556         (md_show_usage): Document it.
3557         (enable_speial_m32r): Changed a default value from 0 to 1.
3558         * doc/c-m32r.texi: Document the -no-bitinst option.
3559
3560 2004-02-27  Nick Clifton  <nickc@redhat.com>
3561
3562         * config/tc-sh.c (get_operand): Revert previous delta.
3563         (tc_gen_reloc): Check for an unknown reloc type before processing
3564         the addend.
3565
3566 2004-02-27  Hannes Reinecke  <hare@suse.de>
3567
3568         * config/tc-s390.c (s390_insn): Correct range check for opcode in
3569         .insn pseudo operation.
3570
3571 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
3572
3573         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
3574         added for wrong syntax.
3575
3576 2004-02-26  Eric Christopher  <echristo@redhat.com>
3577
3578         * config/tc-mips.c (mips_dwarf2_addr_size): New.
3579         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
3580
3581 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
3582
3583         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
3584         nibble types to assembler.
3585
3586 2004-02-25  Fred Fish  <fnf@redhat.com>
3587
3588         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
3589
3590 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3591
3592         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
3593         finalize_syms.
3594         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
3595         (ia64_estimate_size_before_relax): New.
3596         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
3597         (generate_unwind_image): Pass 1 to fixup_unw_records.
3598         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
3599         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
3600
3601 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
3602
3603         * stabs.c (generate_asm_file): Avoid warning about use of
3604         uninitialized variable.
3605
3606 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
3607
3608         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
3609         body, and endp, allow unwind records which do not have a "t"
3610         (time/instruction) field.
3611
3612 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
3613
3614         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
3615         (do_mav_dspsc_2): Likewise.
3616         Fix accumulator registers move opcodes.
3617
3618 2004-02-13  Hannes Reinecke  <hare@suse.de>
3619             Jakub Jelinek  <jakub@redhat.com>
3620
3621         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
3622
3623 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
3624
3625         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
3626         (tc_frob_symbol): New macro definition.
3627         * config/tc-ia64.c (ia64_frob_symbol): New routine.
3628
3629 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
3630
3631         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
3632         read-only.
3633
3634 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
3635
3636         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
3637         (TC_CASE_SENSITIVE): ... this.
3638         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
3639         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
3640
3641 2004-02-06  James E Wilson  <wilson@specifixinc.com>
3642
3643         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
3644         (generate_unwind_image): Re-add it here.
3645
3646 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
3647
3648         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
3649         * read.h (SKIP_WHITESPACE): Turn into an expression.
3650         * read.c (read_a_source_file): A pseudo is removed by having a
3651         NULL handler.
3652
3653 2004-02-05  James E Wilson  <wilson@specifixinc.com>
3654
3655         * config/tc-ia64.c (output_endp): New.
3656         (count_bits): Delete.
3657         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
3658         endp unwind records.
3659         (fixup_unw_records): Handle endp unwind records.  Delete code for
3660         shortening prologue regions not followed by a body record.
3661         (dot_endp): Call add_unwind_entry to emit endp unwind record.
3662         * config/tc-ia64.h (unw_record_type): Add endp.
3663
3664 2004-02-03  James E Wilson  <wilson@specifixinc.com>
3665
3666         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
3667         fill padding bytes with zeroes.
3668         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
3669         sets unwind_record slot_number and slot_frag fields.
3670
3671 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3672
3673         * config/tc-mips.c (add_got_offset_hilo): New function.
3674         (macro): Use load_register() and add_got_offset_hilo() to load
3675         constants instead of hardcoding code sequences throughout.
3676
3677 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
3678
3679         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
3680
3681 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
3682
3683         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
3684         like m68k-elf.
3685         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
3686         of hard-coded test for TARGET_OS=elf.
3687
3688 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
3689
3690         * config/tc-mips.c (hilo_interlocks): Change definition
3691         so that MIPS32, MIPS64 and later ISAs are included, along with
3692         the already-included machines.  Update comments.
3693
3694 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
3695
3696         * config/tc-arm.c (tc_gen_reloc): Improve error message for
3697         undefined local labels.
3698
3699 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
3700
3701         * config/tc-mips.c (load_address, macro): Update comments about
3702         NewABI GP relaxation.
3703
3704 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
3705
3706         * config/tc-mips.c (macro_build): Remove place and counter arguments.
3707         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
3708         (mips16_macro_build, macro_build_jalr): Remove counter argument.
3709         (set_at, load_register, load_address, move_register): Likewise.
3710         (load_got_offset, add_got_offset): Likewise.
3711         Update all calls and tidy accordingly.
3712
3713 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
3714
3715         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
3716         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
3717         (RELAX_USE_SECOND): Bump to 0x10000.
3718         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
3719         (mips_macro_warning): New variable.
3720         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
3721         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
3722         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
3723         of RELAX_ENCODE.
3724         (append_insn): Update mips_macro_warning.sizes.
3725         (macro_start, macro_warning, macro_end): New functions.
3726         (macro_build): Don't emit warnings here.
3727         (macro_build_lui, md_estimate_size_before_relax): ...or here.
3728         (md_convert_frag): Check for cases where one macro alternative
3729         needs a warning and the other doesn't.  Emit a warning if the
3730         longer sequence was chosen.
3731
3732 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
3733
3734         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
3735         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
3736         the first sequence, the size of the second sequence, and a flag
3737         that says whether we should warn.
3738         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
3739         (RELAX_FIRST, RELAX_SECOND): New.
3740         (mips_relax): New variable.
3741         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
3742         (append_insn): Remove "place" argument.  Use mips_relax.sequence
3743         rather than "place" to check whether we're expanding the second
3744         alternative of a relaxable macro.  Remove redundant check for
3745         branch relaxation.  If generating a normal insn, and there
3746         is not enough room in the current frag, call relax_close_frag()
3747         to close it.  Update mips_relax.sizes[].  Emit fixups for the
3748         second version of a relaxable macro.  Record the first relaxable
3749         fixup in mips_relax.  Remove tc_gen_reloc workaround.
3750         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
3751         in the same way as in append_insn.
3752         (mips16_macro_build): Remove "place" argument.
3753         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
3754         when generating the second version of a relaxable macro.
3755         (load_got_offset, add_got_offset): New functions.
3756         (load_address, macro): Use new relaxation machinery.  Remove
3757         tc_gen_reloc workarounds.
3758         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
3759         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
3760         first version is needed.
3761         (tc_gen_reloc): Remove relaxation handling.
3762         (md_convert_frag): Go through the fixups for a relaxable macro and
3763         mark those that belong to the unneeded alternative as done.  If the
3764         second alternative is needed, adjust the fixup addresses to account
3765         for the deleted first alternative.
3766
3767 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
3768
3769         * frags.h (frag_room): Declare.
3770         * frags.c (frag_room): New function.
3771         * doc/internals.texi: Document it.
3772
3773 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3774
3775         * config/tc-mips.c (append_insn): Don't do r3900 interlock
3776         optimization for -mtune=r3900, as this will break on other CPUs.
3777
3778 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
3779
3780         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
3781         be relaxed, use fixup.
3782         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
3783
3784 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
3785
3786         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
3787         precision operands.
3788
3789 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3790
3791         * config/tc-mips.c (append_insn): Properly detect variant frags
3792         that preclude swapping of relaxed branches.  Correctly swap
3793         instructions between frags when dealing with relaxed branches.
3794
3795 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3796
3797         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
3798         throughout.
3799         * aclocal.m4: Regenerate.
3800         * configure: Regenerate.
3801
3802 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
3803
3804         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
3805         manipulation insns.
3806
3807 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
3808
3809         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
3810         reloc, reserve space for the delay slot as well as the jalr itself.
3811
3812 2004-01-09  Paul Brook  <paul@codesourcery.com>
3813
3814         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
3815         (do_vfp_sp2_from_reg2): New function.
3816         (insns): Use them.
3817         (do_vfp_dp_from_reg2): Check return values properly.
3818
3819 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
3820
3821         * config/tc-mips.c (warn_nops): Remove static variable.
3822         (macro): Remove test of warn_nops.
3823         (md_shortops): Remove 'n'.
3824         (md_parse_option): Remove 'n' case.
3825         (md_show_usage): Remove -n.
3826         * doc/as.texinfo (Overview): Remove MIPS -n option.
3827         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
3828         * NEWS: Mention removal of MIPS -n option.
3829
3830         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
3831         (cop_interlocks): Check ISA level.
3832         (cop_mem_interlocks): Define.
3833         (reg_needs_delay): Check cop_interlocks rather than
3834         ISA_HAS_COPROC_DELAYS.
3835         (append_insn): Likewise.  Use cop_mem_interlocks rather than
3836         directly checking mips_opts.isa.
3837         (mips_emit_delays): Likewise.
3838
3839 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
3840
3841         * config/tc-ia64.c (unwind): Move next_slot_number and
3842         next_slot_frag to ...
3843         (unw_rec_list): Here.
3844         (free_list_records): Removed.
3845         (output_unw_records): Likewise.
3846         (generate_unwind_image): Make it void.
3847         (alloc_record): Initialize next_slot_number and next_slot_frag.
3848         (slot_index): Take .org, .space and .align into account.
3849         (fixup_unw_records): Don't set slot_number to 0. Use
3850         list->next_slot_number and list->next_slot_frag instead of
3851         unwind.next_slot_number and unwind.next_slot_frag.
3852         (ia64_convert_frag): New.
3853         (generate_unwind_image): Generate a rs_machine_dependent frag
3854         for unwind record.
3855         (emit_one_bundle): Use list->next_slot_number and
3856         list->next_slot_frag instead of unwind.next_slot_number and
3857         unwind.next_slot_frag.
3858
3859         * config/tc-ia64.h (md_convert_frag): Defined as
3860         ia64_convert_frag.
3861         (md_estimate_size_before_relax): Defined as (f)->fr_var.
3862
3863 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
3864
3865         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
3866         * config/tc-frv.h (md_apply_fix3): Don't define.
3867         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
3868         operands.
3869         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3870         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
3871         * config/tc-frv.c (line_separator_chars): Add `!'.
3872         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
3873         * config/tc-frv.c (md_assemble): Clear insn upfront.
3874         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
3875         * config/tc-frv.c (OPTION_FDPIC): New macro.
3876         (md_longopts): Add mfdpic.
3877         (md_parse_option): Handle it.
3878         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
3879         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
3880         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
3881         (frv_pic_ptr): Parse funcdesc.
3882
3883 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3884
3885         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
3886         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
3887
3888 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3889
3890         * Makefile.am (Makefile): Move the dependency on
3891         $(BFDDIR)/configure.in to...
3892         (CONFIG_STATUS_DEPENDENCIES): ... here.
3893         (AUTOMAKE_OPTIONS): Require automake 1.8.
3894         * Makefile.in: Regenerate.
3895         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
3896         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
3897         $(BFDDIR)/configure.in here as well.
3898         * doc/Makefile.in: Regenerate.
3899
3900 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3901
3902         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
3903         * Makefile.in: Regenerate.
3904         * aclocal.m4: Regenerate.
3905         * doc/Makefile.am (install, install-info): Remove.
3906         (install-data-local): A new hook for install-info.
3907         (AUTOMAKE_OPTIONS): Require automake 1.8.
3908         * doc/Makefile.in: Regenerate.
3909
3910 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
3911
3912         * doc/c-sh.texi: Update description about floating point behavior
3913         of SH family.
3914
3915 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
3916
3917         * configure.in: Add m68k-uClinux target.
3918         * configure: Regenerate.
3919
3920 For older changes see ChangeLog-0203
3921 \f
3922 Local Variables:
3923 mode: change-log
3924 left-margin: 8
3925 fill-column: 74
3926 version-control: never
3927 End: