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