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