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