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