Remove -8 bias on PC-relative load instructions for arm-wince-pe target
[binutils.git] / gas / ChangeLog
blob53f129476a2051459577c911cc98f793e9c8b675
1 2003-12-16  Dmitry Semyonov  <Dmitry.Semyonov@oktet.ru>
3         * tc-arm.c (do_adr): Do not adjust pc by -8 if TE_WINCE is
4         defined.
5         (do_adrl): Likewise.
7 2003-12-15  Christian Groessler  <chris@groessler.org>
9         * config/tc-z8k.c (struct z8k_exp): Remove, not used anywhere.
10         (ctrl_table): Add "flags" keyword and some comments.
11         (flag_table): Convert to uppercase.
12         (get_flags_operand): Be case insensitive.
13         (get_interrupt_operand): Be case insensitive.  Support notation
14         where the inperrupt arguments are separated by commas.
15         (get_operands): Check whether get_flags_operand consumed all
16         arguments.  Return failure if get_ctrl_operand didn't recognize a
17         valid control register.
18         (get_specific): Add case CLASS_CTRL: Test for valid control
19         register for ldctlb opcode.
20         (build_bytes): Check for valid control registers.
22 2003-12-15  Nick Clifton  <nickc@redhat.com>
24         * config/obj-aout.c (obj_crawl_symbol_chain): Skip defined
25         symbols which resolve to symbolic values.
27 2003-12-13  Alan Modra  <amodra@bigpond.net.au>
29         * config/obj-elf.c: Convert to C90, remove unneeded prototypes and
30         casts.  Formatting.
31         * config/obj-elf.h: Remove PARAMS.
33         * read.c (s_lcomm_internal): Make global.
34         * read.h (s_lcomm_internal): Declare.
35         * config/obj-elf.c (elf_pseudo_table): Handle lcomm.
36         (obj_elf_lcomm): New function.
38 2003-12-13  Alan Modra  <amodra@bigpond.net.au>
40         * read.c: Remove unneeded prototypes.
41         (s_comm): Split out code to..
42         (s_comm_internal): ..here.  Tidy error returns.  Rearrange so that
43         "name" from input line may be used in more places.  Merge code
44         testing for valid size from elf_common.  Merge code from
45         s_lcomm_internal.  Call comm_parse_extra.
46         (bss_alloc): New function, split out of s_lcomm_internal and
47         elf_common.
48         (parse_align): Likewise.
49         (s_lcomm_internal): Rewrite.
50         (s_lcomm, s_lcomm_bytes): Use s_comm_internal.
51         * read.h (bss_alloc, parse_align, s_comm_internal): Declare.
52         * config/obj-elf.c (elf_common): Split out code to..
53         (elf_common_parse): ..here.  Remove code common to s_comm_internal,
54         parse_align and bss_alloc.  Rearrange and Tidy.
55         * config/tc-alpha.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Define.
57 2003-12-10  Zack Weinberg  <zack@codesourcery.com>
59         * tc-ppc.c (md_assemble): Rewrite comment about optional operands
60         to indicate that 'all or none' is also handled.  Pluralize a
61         word in another comment.
63 2003-12-10  Paul Brook  <paul@codesourcery.com>
65         * config/tc-arm.c (FPU_MAVERICK): Define.
66         (FPU_ARCH_MAVERICK): Define.
67         (arm_float_abi): Define.
68         (mfloat_abi_opt): New variable.
69         (md_begin): Use them.
70         (arm_opts): Add msoft-float and mhard-float.
71         (arm_cpus): Use FPU_ARCH_MAVERICK.
72         (arm_fpus): Add maverick.
73         (arm_float_abis): Add.
74         (arm_parse_float_abi): New function.
75         (arm_long_options): Add mfloat-abi.
76         * doc/as.texinfo: Document -mfloat-abi=.
77         * doc/c-arm.text: Ditto. Menution -fpu=maverick.
79 2003-12-09  Paul Brook  <paul@codesourcery.com>
81         * config/tc-arm.c (do_umaal): Fix typo.
83 2003-12-06  Kazu Hirata  <kazu@cs.umass.edu>
85         * dwarf2dbg.c: Convert to ISO-C.
86         * write.c: Likewise.
87         * write.h: Likewise.
89 2003-12-06  Richard Sandiford  <rsandifo@redhat.com>
91         * config/tc-mips.c (macro): Switch misordered call to frag_grow()
92         and setting of tc_fr_offset.
94 2003-12-05  Ricardo Anguiano <anguiano@codesourcery.com>
95             Mark Mitchell  <mark@codesourcery.com>
96             Richard Earnshaw  <rearnsha@arm.com>
98         Add V6 support.
99         * config/tc-arm.c (ARM_EXT_V6): New macro.
100         (ARM_ARCH_V6): Likewise.
101         (SHIFT_IMMEDIATE): Likewise.
102         (SHIFT_LSL_OR_ASR_IMMEDIATE): Likewise.
103         (SHIFT_ASR_IMMEDIATE): Likewise.
104         (SHIFT_LSL_IMMMEDIATE): Likewise.
105         (do_cps): New function.
106         (do_cpsi): Likewise.
107         (do_ldrex): Likewise.
108         (do_pkhbt): Likewise.
109         (do_pkhtb): Likewise.
110         (do_qadd16): Likewise.
111         (do_rev): Likewise.
112         (do_rfe): Likewise.
113         (do_sxtah): Likewise.
114         (do_sxth): Likewise.
115         (do_setend): Likewise.
116         (do_smlad): Likewise.
117         (do_smlald): Likewise.
118         (do_smmul): Likewise.
119         (do_ssat): Likewise.
120         (do_usat): Likewise.
121         (do_srs): Likewise.
122         (do_ssat16): Likewise.
123         (do_usat16): Likewise.
124         (do_strex): Likewise.
125         (do_umaal): Likewise.
126         (do_cps_mode): Likewise.
127         (do_cps_flags): Likewise.
128         (do_endian_specifier): Likewise.
129         (do_pkh_core): Likewise.
130         (do_sat): Likewise.
131         (do_sat16): Likewise.
132         (insns): Add V6 instructions.
133         (do_t_cps): New function.
134         (do_t_cpy): Likewise.
135         (do_t_setend): Likewise.
136         (THUMB_CPY): New macro.
137         (tinsns): Add V6 instructions.
138         (decode_shift): Handle V6 restricted-shift options.
139         (thumb_mov_compare): Support CPY.
140         (arm_cores): Add arm1136js and arm1136jfs.
141         (arm_archs): Add armv6.
142         (arm_fpus): Add arm1136jfs.
143         * doc/c-arm.texi (ARM Options): Mention arm1136js, arm1136jfs, and
144         armv6 options.
146 2003-12-06  Christian Groessler  <chris@groessler.org>
148         * config/tc-z8k.c (parse_reg): Be case insensitive when checking
149         register names.
150         (get_ctrl_operand): Be case insensitive when checking ctrl names.
152 2003-12-05  Nick Clifton  <nickc@redhat.com>
154         * config/tc-sh.c (md_show_usage): Fix compilation errors
155         introduced by the previous delta.
157 2003-12-03  Alexandre Oliva  <aoliva@redhat.com>
159         * config/tc-sh.c: Add support for sh4a and no-fpu variants.
160         * testsuite/gas/sh/basic.exp: Call tests for sh4a.
161         * testsuite/gas/sh/{err-sh4a-fp.s, err-sh4a.s,
162         err-sh4al-dsp.s, sh4a-dsp.d, sh4a-dsp.s, sh4a-fp.d,
163         sh4a-fp.s, sh4a.d, sh4a.s, sh4al-dsp.d, sh4al-dsp.s:
164         New files, tests for sh4a and related variants.
166 2003-12-05  Michael Snyder  <msnyder@redhat.com>
168         * config/tc-sh.c (md_show_usage): Mention new -isa options.
169         * doc/c-sh.texi: Document new -isa options.
170         * doc/c-sh64.texi: Ditto.
171         * NEWS: Mention new support for sh4a.
173 2003-12-03  H.J. Lu  <hongjiu.lu@intel.com>
175         * config/tc-alpha.c (s_alpha_end): Don't crash if there is no
176         matching .ent.
178 2003-12-04  Alan Modra  <amodra@bigpond.net.au>
180         * tc.h (md_pcrel_from): Don't declare if defined as a macro.
182 2003-12-03  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
184         * config/tc-m32r.h : Add support for new machine m32r2.
185         * config/tc-m32r.c : Likewise.
186         Add new command line switches and directives to allow endian-ness
187         to be selected and some warnings to be turned into errors.
188         (line_separator_chars) : Use '!'.
189         * doc/c-m32r.texi: Document new switches and directives.
190         * NEWS: Mention new support.
192 2003-12-03  Dave Airlie  <airlied@linux.ie>
194         * configure.in: Likewise.
195         * configure: Regenerate.
196         * config/tc-vax.c (md_shortopts): Add 'Q'.
197         (md_parse_option): Ignore 'Q' for now.
199 2003-12-02  Kazu Hirata  <kazu@cs.umass.edu>
201         * messages.c: Convert to ISO-C.
202         * obj.h: Likewise.
203         * output-file.c: Likewise.
204         * output-file.h: Likewise.
205         * sb.c: Likewise.
206         * sb.h: Likewise.
207         * stabs.c: Likewise.
208         * subsegs.c: Likewise.
209         * subsegs.h: Likewise.
210         * tc.h: Likewise.
212 2003-12-02  Kazu Hirata  <kazu@cs.umass.edu>
214         * config/obj-elf.c: Remove ARGSUSED.
216 2003-12-02  Alan Modra  <amodra@bigpond.net.au>
218         * Makefile.am: Run "make dep-am".
219         * Makefile.in: Regenerate.
221 2003-11-30  Kazu Hirata  <kazu@cs.umass.edu>
223         * symbols.c: Convert to ISO-C.
224         * symbols.h: Likewise.
226 2003-11-28  Christian Groessler  <chris@groessler.org>
228         * config/tc-z8k.c: Convert to ISO-C.
229         * config/tc-z8k.h: Likewise.
231 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
233         * read.c: Convert to ISO-C.
234         * read.h: Likewise.
236 2003-11-27  Nick Clifton  <nickc@redhat.com>
238         * config/tc-sh.c (sh_elf_cons): If md_cons_align is defined
239         call it to make sure that the constants that are going to be
240         emitted are correctly aligned.
242 2003-11-27  Alexandre Oliva  <aoliva@redhat.com>
244         * config/tc-frv.c (md_pcrel_from_section): Don't adjust when
245         referencing symbol in a different section.
247 2003-11-26  Christian Groessler  <chris@groessler.org>
249         * config/tc-z8k.c (s_segm): Fix indentation.
250         (md_apply_fix3): Likewise.
251         (cc_names): Add alias names for the names generated by the
252         disassembler.
253         (get_cc_operand): Be case insensitive.
254         (get_operands): Improve error handling for cc operands.
255         (check_operand): Not used, remove.
256         (md_assemble): Remove unused variable prev_opcode.  Skip
257         whitespace until end-of-line only.  Restore *op_end after call to
258         hash_find.
260 2003-11-26  Nick Clifton  <nickc@redhat.com>
262         * config/tc-h8300.c (get_operand): Allow er4-er7 for ldm/stm
263         instructions on the H8SX.
265 2003-11-25  Kazu Hirata  <kazu@cs.umass.edu>
267         * config/tc-h8300.c (h8_exp): Remove.
269 2003-11-25  Asgari Jinia  <asgarij@kpitcummins.com>
271         * config/tc-h8300.c (md_assemble): Check operands validity for
272         ldm/stm.
273         (get_operand): Check register pair's validity as per technical
274         note TN-H8*-193A/E from Renesas for H8s and for H8Sx manual.
276 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
278         * listing.c: Convert to ISO-C.
279         * listing.h: Likewise.
280         * macro.c: Likewise.
281         * macro.h: Likewise.
283 2003-11-24  Jakub Jelinek  <jakub@redhat.com>
285         * app.c (do_scrub_chars): Add PUT (ch) and ch = GET ()
286         when transitioning from states 14 or 15 to 0 or 1.
288 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
290         * hash.c: Convert to ISO-C.
291         * hash.h: Likewise.
292         * input-file.c: Likewise.
293         * input-file.h: Likewise.
294         * input-scrub.c: Likewise.
295         * itbl-ops.c: Likewise.
296         * itbl-ops.h: Likewise.
298 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
300         * config/tc-h8300.c (Hmode): Make it global.
301         (Smode): Likewise.
302         (Nmode): Likewise.
303         (SXmode): Likewise.
305 2003-11-22  Kazu Hirata  <kazu@cs.umass.edu>
307         * ehopt.c: Convert to ISO-C.
308         * emul.h: Likewise.
309         * expr.c: Likewise.
310         * expr.h: Likewise.
311         * flonum-copy.c: Likewise.
312         * flonum-mult.c: Likewise.
313         * flonum.h: Likewise.
314         * frags.c: Likewise.
315         * frags.h: Likewise.
317 2003-11-22  Alan Modra  <amodra@bigpond.net.au>
319         * doc/c-ppc.texi (PowerPC-Pseudo): Add section.
321         * app.c (do_scrub_chars): Revert 2003-04-23 and 2003-04-22.
323 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
325         * ecoff.c: Convert to ISO-C.
326         * ecoff.h: Likewise.
328 2003-11-22  Alan Modra  <amodra@bigpond.net.au>
330         * config/tc-ppc.c (parse_cpu): New function, broken out from..
331         (md_parse_option): ..here.
332         (ppc_setup_opcodes): New function, broken out from..
333         (md_begin): ..here.
334         (ppc_machine): Implement .machine pseudo op.
336 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
338         * depend.c: Convert to ISO-C.
339         * dwarf2dbg.c: Likewise.
340         * dwarf2dbg.h: Likewise.
342 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
344         * app.c: Convert to ISO-C.
345         * as.h: Likewise.
346         * atof-generic.c: Likewise.
347         * bignum-copy.c: Likewise.
348         * bignum.h: Likewise.
349         * cgen.c: Likewise.
350         * cgen.h: Likewise.
351         * cond.c: Likewise.
353 2003-11-20  DJ Delorie  <dj@redhat.com>
355         * config/tc-sh64.c (shmedia_frob_section): Only frob elf32
356         sections.
358 2003-11-19  Kazu Hirata  <kazu@cs.umass.edu>
360         * config/tc-h8300.c: Make some functions and global
361         variables static appropriately.
363 2003-11-19  Kazu Hirata  <kazu@cs.umass.edu>
365         * config/obj-ieee.c: Remove duplicate prototypes.
366         * config/tc-h8300.c: Likewise.
368 2003-11-19  Kazu Hirata  <kazu@cs.umass.edu>
370         * config/tc-h8300.c: Convert to ISO-C.
371         * config/tc-h8300.h: Likewise.
373 2003-11-19  Kazu Hirata  <kazu@cs.umass.edu>
375         * config/tc-mcore.h: Remove prototypes already in tc.h.
376         * config/tc-tic4x.c: Likewise.
378 2003-11-19  Kazu Hirata  <kazu@cs.umass.edu>
380         * config/tc-arc.c: Remove a local prototype of atof_ieee.
381         * config/tc-ip2k.c: Likewise.
382         * config/tc-iq2000.c: Likewise.
383         * config/tc-tic30.c: Remove a comment.
385 2003-11-19  Bob Wilson  <bob.wilson@acm.org>
387         * config/tc-xtensa.c (xg_emit_insn): Include "dwarf2dbg.h" and add
388         call to dwarf2_emit_insn.
390 2003-11-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
392         * config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"
393         for loading addresses using CALL relocations.
394         Don't emit CALL relocations when a base register is used.
396 2003-11-15  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
398         * config/tc-mips.c: Formatting fixes.
400 2003-11-14  Ben Elliston  <bje@wasabisystems.com>
402         * config/tc-arm.c (arm_elf_change_section): Not static.
404 2003-11-13  Nick Clifton  <nickc@redhat.com>
406         * tc-arm.c (mapping_state): New function.  Emit a mapping
407         symbol if necessary.
408         (arm_elf_change_section): New function.  Intercept section
409         changes and generate mapping symbols.
410         (s_bss): Likewise.
411         (s_arm_elf_cons): Likewise.
412         (opcode_select): Choose the correct mapping state.
413         (md_assemble): Likewise.
414         * tc-arm.h (md_elf_section_change_hook): Define.
415         * doc/c-arm.texi (ARM Mapping Symbols): New node.
416         * NEWS: Mention new feature.
418 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
420         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Define.
421         * doc/Makefile.am (install-info): Define.
423         * aclocal.m4: Regenerate.
424         * Makefile.in: Regenerate.
425         * doc/Makefile.in: Regenerate.
427 2003-11-11  Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
429         * configure.in: Add support for arm-wince-pe target.
430         * configure: Regenerate.
432 2003-11-11  Jan Hubicka  <jh@suse.cz>
434         * config/tc-i386.c (tc_i386_fix_adjustable):
436 2003-11-10  Alan Modra  <amodra@bigpond.net.au>
438         * config/tc-ia64.c (ia64_handle_align): Remove bogus be_nop.
440 2003-11-10  Alan Modra  <amodra@bigpond.net.au>
442         * README: Update bug report address.  Move bug reporting info to
443         binutils/README.
445 2003-11-07  Christian Groessler  <chris@groessler.org>
447         * doc/c-z8k.texi: Document command-line options.  Fix byte
448         register names.  Document '.z8001' and '.z8002' directives.
449         Extend addressing modes documentation.
451 2003-11-07  Jonathan R. Grant  <jg-binutils@jguk.org>
453         * input-file.c (input_file_open): Use "No such file" error
454         message.
456 2003-11-06  Pete Gonzalez  <pgonzalez@bluel.com>
458         * config/tc-arm.texi (struct reg_entry): Add new field 'builtin'.
459         (rn_table, iwmmxt_table, cp_table, cn_table, fn_table, sn_table,
460         dn_table, mav_mvf_table, mac_mvd_table, mav_mvfx_table,
461         mav_mvax_table, mav_dspc_table): Initialise new field.
462         (insert_reg_alias): Initialise new field.
463         (md_pseudo_table): Add "unreq" entry.
464         (s_unreq): New function: Undo the effects of a previous .req.
465         * doc/c-arm.texi: Document new pseudo op.
466         * NEWS: Mention new feature.
468 2003-11-06  Bruno Rohee  <bruno@rohee.com>
470         * config/obj-vms.c: Fix "the the" typo.
471         * doc/c-arm.texi: Likewise.
473 2003-11-06  Nick Clifton  <nickc@redhat.com>
475         * config/obj-vms.c: Convert to ISO-C.
477 2003-11-05  Alan Modra  <amodra@bigpond.net.au>
479         * config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
481 2003-10-31  Christian Groessler  <chris@groessler.org>
483         * config/tc-i860.c (md_pcrel_from): Fix typo in comment.
485 2003-10-29  Phil Edwards  <phil@codesourcery.com>
487         * configure.in (arm-*-vxworks, i386-*-vxworks, mips-*-vxworks,
488         ppc-*-vxworks, ppc-*-windiss):  Remove separate outdated stanzas.
489         (*-*-vxworks, *-*-windiss):  Use common stanzas, all ELF.
490         * configure:  Regenerated.
492 2003-10-27  Kazu Hirata  <kazu@cs.umass.edu>
494         * ChangeLog: Fix typos.
495         * ChangeLog-9295: Likewise.
496         * as.c: Fix comment typos.
497         * as.h: Likewise.
498         * atof-generic.c: Likewise.
499         * bit_fix.h: Likewise.
500         * frags.h: Likewise.
501         * hash.c: Likewise.
502         * input-file.c: Likewise.
503         * input-scrub.c: Likewise.
504         * itbl-ops.c: Likewise.
505         * itbl-parse.y: Likewise.
506         * listing.c: Likewise.
507         * macro.h: Likewise.
508         * read.c: Likewise.
509         * sb.c: Likewise.
510         * sb.h: Likewise.
511         * symbols.c: Likewise.
512         * symbols.h: Likewise.
514 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
516         * config/tc-m68hc11.c: Convert to ISO C90.
517         * config/tc-m68hc11.h: Likewise.
519 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
521         * doc/c-sh64.texi: Fix a typo.
523 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
525         * doc/c-alpha.texi: Fix typos.
526         * doc/c-ia64.texi: Likewise.
527         * doc/c-mmix.texi: Likewise.
528         * doc/c-sh64.texi: Likewise.
529         * doc/c-xtensa.texi: Likewise.
530         * doc/internals.texi: Likewise.
532 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
534         * config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
535         for .interp, .strtab and .symtab. Use specified section
536         attributes.
538 2003-10-22  Andreas Schwab  <schwab@suse.de>
539             H.J. Lu  <hongjiu.lu@intel.com>
540             Jim Wilson <wilson@specifixinc.com>
542         * config/tc-ia64.c (update_qp_mutex): New.
543         (note_register_values): Properly handle one of PRs in compare
544         is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
545         Clear mutex relation for .none/.unc. Don't clear mutex relation
546         on predicated compare.
548 2003-10-21  Wouter van Heyst <wouter@vidicode.nl>
550         * config/tc-arm.c (all_reg_maps): Correct text describing Maverick
551         register requirements.
552         (md_begin): Remove F_SOFT_FLOAT if enabling MAVERICK FP.
554 2003-10-21  Peter Barada  <pbarada@mail.wm.sps.mot.com>
555             Bernardo Innocenti  <bernie@develer.com>
557         * config/tc-m68k.c: Add MCF528x (MCFv4) support.
558         * config/m68k-parse.h: Likewise.
559         * NEWS: Mention the new support.
560         * doc/c-m68k.texi: Document new processor selection switch.
562 2003-10-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
564         * config/tc-mips.c (normalize_constant_expr): New function to fix sign
565         extensions broken by gas' expression evaluation of constants.
566         (check_absolute_expr): Use it.
567         (mips_ip): Likewise.
569 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
571         Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
572         * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
573         --no-stubs.
574         * config/tc-mmix.c: Include limits.h.  Expand on mmix_relax_table
575         comment.
576         (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
577         (pushj_stubs): New variable.
578         (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
579         (PUSHJSTUB_MAX): New macros.
580         (md_longopts): New options "--no-pushj-stubs" and synonym
581         "--no-stubs".
582         (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
583         (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
584         (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
585         PUSHJ stub relaxation.
586         (md_convert_frag): Handle STATE_PUSHJSTUB.
587         (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
588         (tc_gen_reloc): Ditto.
589         (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
590         * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
591         (struct mmix_segment_info_type): New.
593 2003-10-17  Paul Dale  <pauli@snapgear.com>
594             Bernardo Innocenti  <bernie@develer.com>
596         * config/tc-m68k.c (make_pcrel_absolute): Enforce
597         PC-relative jumps with --pcrel.
598         (md_convert_frag_1): Likewise.
599         (md_create_long_jump): Likewise.
601 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
603         * config/tc-h8300.c (PSIZE): Correct for Normal mode.
604         (get_operand): Accept both 16 bit 32 bit registers as pointer
605         registers, when operating in Normal mode.
606         (fix_operand_size): Make default address size 16 for Normal mode.
608 2003-10-17  Ian Lance Taylor  <ian@wasabisystems.com>
610         * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
611         registers.
612         (do_iwmmxt_word_addr): With a control register, reject conditional
613         execution and reject a non-word size.
615 2003-10-16  Peter Bergner  <bergner@vnet.ibm.com>
617         * configure.in: Set em=linux for ppc-*-linux-gnu* target.
618         * configure: Regenerate.
620 2003-10-15  Alan Modra  <amodra@bigpond.net.au>
622         * doc/as.texinfo (Align): Correct list of byte targets.
624 2003-10-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
626         * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
627         Fix indentation. Better error message.
629 2003-10-14  Bob Wilson  <bob.wilson@acm.org>
631         * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
632         argument in call to xtensa_get_property_section_name.  Formatting.
634 2003-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
636         * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
637         parenthesis.
639 2003-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
641         * config/tc-sh.c: Convert to ISO C90.  Remove unnecessary
642         prototypes and casts.
643         * config/tc-sh.h: Likewise.
644         * config/tc-sh64.c: Likewise.
645         * config/tc-sh64.h: Likewise.
647 2003-10-08  Dave Brolley  <brolley@redhat.com>
649         * config/tc-frv.c (fr550_check_insn_acc_range): New function.
650         (fr550_check_acc_range): New function.
651         (md_assemble): Call fr550_check_acc_range.
653 2003-10-08  Dave Brolley  <brolley@redhat.com>
655         * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
656         (md_parse_option): Handle OPTION_CPU==fr550.
657         (md_show_usage): Document fr550.
659 2003-10-08  Philippe De Muyter  <phdm@macqel.be>
661         * as.c (use_gnu_debug_info_extensions) : New variable.
662         (parse_args) : Accept new --gstabs+ option, and set
663         `use_gnu_debug_info_extensions'.
664         (show_usage) : Document --gstabs+ option.
665         * as.h (use_gnu_debug_info_extensions) : New extern declaration.
666         * stabs.c (stabs_generate_asm_file) : If
667         `use_gnu_debug_info_extensions' is set, add the compilation
668         directory to the stabs debug info.
669         * doc/as.texinfo : Document --gstabs+ option.
670         * NEWS: Mention new feature.
672 2003-10-06  Matt Thomas  <matt@3am-software.com>
674         Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
675         assembler syntax.
677         * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
678         register names.  Change all "defined (TE_LINUX)" to
679         "(defined (TE_LINUX) || defined (TE_NETBSD))".
681         * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
682         Remove NetBSD's use of LABELS_WITHOUT_COLONS.
684 2003-10-06  Robert Millan  <robertmh@gnu.org>
686         * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
687         * configure: Regenerate.
689 2003-10-05  Nick Clifton  <nickc@redhat.com>
691         * as.c (parse_args): Revert patch to change handling of -f
692         option.  Its behaviour is mandated by the POSIX 2 spec.
694 2003-10-04  Christian Groessler  <chris@groessler.org>
696         * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
697         (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
698         (md_pcrel_from): This function now gets called. Supply return
699         value.
701 2003-10-04  Nick Clifton  <nickc@redhat.com>
703         * as.c: Convert to ISO C90.
705 2003-10-04  Nick Clifton  <nickc@redhat.com>
707         * as.c (std_shortopts): Remove 'f'.
708         (std_longopts): Add 'f'.  Doing this prevents -f<foo> being
709         acecpted as an alias for -f.
711 2003-10-04  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
713         * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
714         Make 'r' mean readonly data.
716 2003-10-01  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
718         * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
719         Unbreak overflow checks.
721 2003-10-01  Chris Demetriou  <cgd@broadcom.com>
723         * config/tc-mips.c (s_cpreturn): Correct errors in comment.
725 2003-10-01  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
727         * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
728         tests.
729         (load_register): Likewise.
730         (macro): Likewise.
732 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
734         * config/tc-mips.c (mips_ip): Capitalize first word of
735         existing condition code warning, and add condition code
736         warnings for .ps instructions, and for bc1any[24][tf].
738 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
740         * NEWS: Mention support for MIPS64 Release 2.
742 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
744         * NEWS: Add an indication of the cutoff for 2.14.
746 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
748         * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
749         * configure: Regenerate.
750         * config/tc-mips.c (imm2_expr): New variable.
751         (md_assemble, mips16_ip): Initialize imm2_expr.
752         (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
753         (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
754         (macro): Handle M_DEXT and M_DINS.
755         (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
756         (mips_ip): Likewise.
757         (OPTION_MIPS64R2): New define.
758         (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
759         OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
760         (md_parse_option): Handle OPTION_MIPS64R2.
761         (s_mipsset): Handle setting "mips64r2" ISA.
762         (mips_cpu_info_table): Add mips64r2.
763         (md_show_usage): Document -mips64r2 option.
764         * doc/as.texinfo: Docuemnt -mips64r2 option.
765         * doc/c-mips.texi: Likewise.
767 2003-09-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
769         * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
771 2003-09-26  Matt Thomas  <matt@3am-software.com>
773         * config/tc-vax.c (md_shortopts): Fix a typo.  Remove 'K'.
774         (OPTION_PIC): Define.
775         (md_longopts): Add "pic" option.
776         (md_parse_option): Change 'K' to OPTION_PIC.
778 2003-09-23  Alan Modra  <alan@modra.org>
780         * config/obj-elf.c (obj_elf_change_section): Adjust for
781         _bfd_elf_get_sec_type_attr changes.  Allow SHF_MERGE and SHF_STRINGS
782         to be set when defaults are not.  Don't set attr from defaults if
783         old_sec.
785 2003-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
787         * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
788         truncate values which won't fit im 32 bits.
789         (load_register): Likewise.
790         (macro): Likewise.
792 2003-09-17  Dmitry Diky <diwil@mail.ru>
794         * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
795         (msp430_operands): Remove redundant l2[16] within switch-case.
797 2003-09-16  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
799         * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
800         * configure: Regenerate.
802 2003-09-14  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
804         * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
805         (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
806         the function prototype.
807         (load_register): Likewise. Simplify the checks for sign-extended
808         constants.
809         (macro): Likewise. Fix code generation for 64-bit address constants
810         outside the 32-bit compatibility space. Adjust
811         macro_build_ldst_constoffset calls.
812         (s_cprestore): Adjust macro_build_ldst_constoffset call.
814 2003-09-11  Bob Wilson  <bob.wilson@acm.org>
816         * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
817         literal_syms): New global variables.
818         (xtensa_define_label, add_target_symbol, xtensa_find_label,
819         map_over_defined_symbols, is_loop_target_label,
820         xtensa_mark_target_fragments, xtensa_move_frag_symbol,
821         xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
822         (xtensa_begin_directive): Call md_flush_pending_output.  Move symbols
823         from insn_labels to saved_insn_labels when entering a literal region.
824         (xtensa_end_directive): Call md_flush_pending_output.  Restore
825         insn_labels list when leaving a literal region.
826         (xtensa_literal_position): Call xtensa_clear_insn_labels.
827         (xtensa_literal_pseudo): Add check to disallow .literal inside a
828         literal region.  Move insn_labels to saved_insn_labels and then restore
829         insn_labels on exit.
830         (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
831         code to set is_loop_target or is_branch_target flag on the symbol
832         (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
833         (xtensa_add_literal_sym, xtensa_add_insn_label,
834         xtensa_clear_insn_labels): New functions.
835         (xtensa_move_labels): Remove old_frag and old_offset arguments.  Add
836         loops_ok argument.  Rewrite to use insn_labels list instead of
837         calling xtensa_find_label and to check the is_loop_target flag on
838         symbols when loops_ok is false.
839         (xtensa_frob_label): Remove call to xtensa_define_label.  Add call
840         to either xtensa_add_literal_sym or xtensa_add_insn_label.  Adjust
841         call to xtensa_move_labels.  Propagate is_branch_target and
842         is_loop_target flags from symbols to frags.
843         (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
844         (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
845         aligning a loop instruction.  Adjust call to xtensa_move_labels for
846         aligning entry instructions.  Add call to xtensa_clear_insn_labels.
847         (xtensa_end): Remove call to xtensa_mark_target_fragments.
848         (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
849         code to use new literal_syms list.
850         * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
851         is_branch_target flags.
853 2003-09-09  Bob Wilson  <bob.wilson@acm.org>
855         * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
856         "move_labels" argument and corresponding call to xtensa_move_labels.
857         (md_assemble): Add a separate call to xtensa_move_labels and remove
858         argument for call to xtensa_mark_literal_pool_location.
859         (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
860         calls to xtensa_mark_literal_pool_location.
861         (xtensa_create_local_symbol): Delete and inline the code into...
862         (xtensa_create_literal_symbol): ...here.
863         (xtensa_frob_label): Combine conditionals.
864         (expression_maybe_register, xtensa_symbol_new_hook,
865         fix_new_exp_in_seg): Use symbol_get_tc.
867 2003-09-09  Bob Wilson  <bob.wilson@acm.org>
869         * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
870         combining identical literals.
871         (expression_maybe_register): Remove call to find_lit_sym_translation.
872         (is_duplicate_expression, cache_literal, is_duplicate_literal,
873         add_lit_sym_translation, find_lit_sym_translation): Delete.
875 2003-09-07  Nick Clifton  <nickc@redhat.com>
877         * doc/as.texinfo (Comments): Comment character for PPC is #.
879 2003-09-06  Stephane Carrez  <stcarrez@nerim.fr>
881         PR savannah/4358:
882         * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
883         overflow complain.
885 2003-09-05  Richard Sandiford  <rsandifo@redhat.com>
887         * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
889 2003-09-04  Nick Clifton  <nickc@redhat.com>
891         * config/tc-v850.c (set_machine): Accept v850e1 machine number.
892         (md_pseudo_table): Add .v850e1 pseudo op.
893         (md_show_usage): Document -mv850e1 switch.
894         (md_parse_option): Accept -mv850e1 switch.
895         (md_begin): Allow TARGET_CPU to be v850e1.
896         * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
897         * NEWS: Mention support for v850e1.
899 2003-09-04  Alan Modra  <amodra@bigpond.net.au>
901         * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
902         ppc_cpu selection rather than replacing.
903         (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
904         (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
906 2003-09-03  Robert Millan  <robertmh@gnu.org>
908         * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
909         triplet.
910         * configure: Regenerate.
912 2003-09-02  Daniel Jacobowitz  <drow@mvista.com>
914         * configure.in: Update AC_PREREQ to 2.57.  Use AC_CONFIG_FILES
915         and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
916         Specify AC_CONFIG_AUX_DIR.
917         * aclocal.m4: Regenerated with aclocal-1.7.
918         * configure: Regenerated with autoconf 2.57.
919         * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
921 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
923         * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
924         (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
925         (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
926         nor tc_cfi_emit_pcrel_expr are defined.
927         (output_fde): Use tc_cfi_emit_pcrel_expr if available and
928         DIFF_EXPR_OK is not defined.
929         * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
930         (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
931         tc_cfi_emit_pcrel_expr): Define.
932         (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
933         sparc_cfi_emit_pcrel_expr): New prototypes.
934         (sparc_cie_data_alignment): New decl.
935         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
936         * config/tc-sparc.c: Include dw2gencfi.h.
937         (sparc_cie_data_alignment): New variable.
938         (md_begin): Initialize it.
939         (sparc_cfi_frame_initial_instructions): New function.
940         (sparc_regname_to_dw2regnum): Likewise.
941         (sparc_cfi_emit_pcrel_expr): Likewise.
942         * doc/as.texinfo: Document .cfi_window_save.
944         * config/tc-sparc.c (s_common): Cast last argument to long and
945         change format string to shut up warning.
947 2003-08-25  Jason Eckhardt  <jle@rice.edu>
949         * doc/c-i860.texi: Update text about relocatable address expansions.
951 2003-08-24  Jason Eckhardt  <jle@rice.edu>
953         * config/tc-i860.c (md_assemble): Use isrc2 from the original
954         instruction when expanding E_ADDR.
956 2003-08-21  Nick Clifton  <nickc@redhat.com>
958         * po/tr.po: Updated Turkish translation.
960 2003-08-20  Alan Modra  <amodra@bigpond.net.au>
962         * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
963         PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
965 2003-08-19  Nick Clifton  <nickc@redhat.com>
967         * config/tc-arm.c (cp_address_required_here): Add code to handle
968         unindexed addressing mode.
970 2003-08-19  Alan Modra  <amodra@bigpond.net.au>
972         * config/tc-ppc.c (md_parse_option): Handle -m440.
973         (md_show_usage): Add -m440.
974         (md_apply_fix3): Warning fix.
975         * doc/c-ppc.texi: Document -m440.
977 2003-08-16  Benjamin Kalytta  <bkausbk@web.de>
979         * read.c (s_print): Check for NULL.
981 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
983         * write.c (fixup_segment): When handling an expression involving
984         the subtraction of two symbols in the same segment, don't clear
985         fx_pcrel except for TC_M68K.
987 2003-08-14  Alan Modra  <amodra@bigpond.net.au>
989         * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
990         code.
991         * config/tc-i386.c: Likewise.
992         (RELOC_ENUM): Don't define.  Replace throughout with enum.
994         * dep-in.sed: Remove libintl.h.  Ignore include/fopen-*.h
995         * Makefile.am (POTFILES.in): Unset LC_COLLATE.
996         Run "make dep-am".
997         * Makefile.in: Regenerate.
999 2003-08-08  Andreas Schwab  <schwab@suse.de>
1001         * config/tc-m68k.h (TARGET_USE_CFIPOP)
1002         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
1003         (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
1004         Define.
1005         * config/tc-m68k.c: Include "dw2gencfi.h".
1006         (tc_m68k_regname_to_dw2regnum)
1007         (tc_m68k_frame_initial_instructions): New functions.
1009 2003-08-08 Dmitry Diky <diwil@mail.ru>
1011         * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
1012         according to gcc order.
1014 2003-08-07  Jason Eckhardt  <jle@rice.edu>
1016         * config/tc-i860.c (i860_check_label): New function.
1017         * config/tc-i860.h (i860_check_label): New prototype.
1018         (tc_check_label): Define macro as i860_check_label.
1020 2003-08-06  Jason Eckhardt  <jle@rice.edu>
1022         * config/tc-i860.c (s_align_wrapper): New function and prototype.
1023         (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
1024         surrounding OBJ_ELF ifdef, and re-format slightly.
1025         * doc/c-i860.texi: Document the special .align syntax available
1026         in Intel mode.
1028 2003-08-06  Jason Eckhardt  <jle@rice.edu>
1030         * config/tc-i860.c (i860_handle_align): New function.
1031         * config/tc-i860.h (HANDLE_ALIGN): Define macro.
1032         (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
1034 2003-08-06  Jason Eckhardt  <jle@rice.edu>
1036         * config/tc-i860.c (i860_process_insn): Check that instructions
1037         with their dual-bit set are 8-byte aligned.
1039 2003-08-06  Nick Clifton  <nickc@redhat.com>
1041         * po/fr.po: Updated French translation.
1043 2003-08-05  Jason Eckhardt  <jle@rice.edu>
1045         * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
1046         setting during flop argument parsing.  Instead, do it after
1047         instruction is fully parsed.
1049 2003-08-05  Jason Eckhardt  <jle@rice.edu>
1051         * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
1052         directives are only available in Intel syntax mode.
1054 2003-08-05  Jason Eckhardt  <jle@rice.edu>
1056         * config/tc-i860.c (s_dual): Accept .dual directive only in
1057         the Intel syntax mode.
1058         (s_enddual): Likewise for .enddual.
1059         (s_atmp): Likewise for .atmp.
1061 2003-08-04  Alan Modra  <amodra@bigpond.net.au>
1063         * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
1064         for memory operands.  Pass the full operand_string to i386_index_check.
1066 2003-08-01  Jason Eckhardt  <jle@rice.edu>
1068         * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
1069         (target_intel_syntax): Declare variable.
1070         (OPTION_INTEL_SYNTAX): Declare macro.
1071         (md_longopts): Add option -mintel-syntax.
1072         (md_parse_option): Set target_intel_syntax.
1073         (md_show_usage): Add -mintel-syntax usage.
1074         (md_begin): Set reg_prefix based on target_intel_syntax.
1075         (i860_process_insn): Skip register prefix only if there is one.
1076         Parse relocatable expressions in either Intel or AT&T syntax based
1077         on target_intel_syntax instead of the SYNTAX_SVR4 macro.
1078         * doc/c-i860.texi: Document -mintel-syntax option and give blurb
1079         about the differences in syntax.
1081 2003-08-01  Dmitry Diky  <diwil@mail.ru>
1083         * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
1084         to all arches.
1086 2003-07-30  J"orn Rennecke <joern.rennecke@superh.com>
1088         * config/tc-sh.c (md_assemble): For branches, check & update
1089         valid_arch here.
1091 2003-07-30  Jason Eckhardt  <jle@rice.edu>
1093         * config/tc-i860.c: Convert to ISO C90.
1095 2003-07-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1097         * read.c (s_space): Revert 2003-07-28 change.
1099 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
1101         * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
1103 2003-07-29  Alan Modra  <amodra@bigpond.net.au>
1105         * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
1107 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
1109         * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
1111 2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1113         * config/obj-elf.c (obj_elf_section_type): Also accept "note".
1115 2003-07-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1117         * read.c (s_space): Don't warn about .space 0.
1119 2003-07-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1121         * config/tc-mips.c (mips_flag_pdr): Define.
1122         (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
1123         (s_mips_end) [OBJ_ELF]: Likewise.
1124         (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
1125         (md_parse_option) [OBJ_ELF]: Handle them.
1126         (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
1128         * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
1129         * doc/as.texinfo (Overview) [MIPS]: Likewise.
1131 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1133         * config/obj-elf.c (obj_elf_change_section): Update
1134         elf_section_type and elf_section_flags only when they are
1135         specified.
1137 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1139         * config/obj-elf.c (obj_elf_change_section): Always set section
1140         type and flags.
1142 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1144         * config/obj-elf.c (special_sections): Removed.
1145         (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
1146         elf_section_type and elf_section_flags.
1147         (elf_frob_file): Set SHT_GROUP.
1149         * config/obj-elf.h (obj_sec_set_private_data): New.
1151         * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
1152         * config/tc-ia64.h: Likewise.
1153         * config/tc-m32r.h: Likewise.
1154         * config/tc-m68hc11.h: Likewise.
1155         * config/tc-mcore.h: Likewise.
1156         * config/tc-mips.h: Likewise.
1157         * config/tc-ppc.h: Likewise.
1158         * config/tc-sh64.h: Likewise.
1159         * config/tc-v850.h: Likewise.
1160         * config/tc-xtensa.h: Likewise.
1162         * config/tc-v850.h (SHF_V850_GPREL): Removed.
1163         (SHF_V850_EPREL): Likewise.
1164         (SHF_V850_R0REL): Likewise.
1166         * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
1167         is defined.
1169 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
1171         * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
1172         debugging symbols so that we handle page memory correctly.
1174 2003-07-24  Nick Clifton  <nickc@redhat.com>
1176         * po/fr.po: Updated French translation.
1178 2003-07-23  Daniel Jacobowitz  <drow@mvista.com>
1180         * config/tc-arm.c (arm_archs): Add iwmmxt.
1182 2003-07-22  H.J. Lu <hongjiu.lu@intel.com>
1184         * read.c (do_parse_cons_expression): Mark nbytes unused to
1185         silence gcc.
1187 2003-07-22  Alexandre Oliva  <aoliva@redhat.com>
1189         * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
1190         or bsr/bs.
1192         * config/tc-h8300.c (md_assemble): Make sure characters after
1193         slash and dot are lower-case.
1195 2003-07-17  Nick Clifton  <nickc@redhat.com>
1197         * po/es.po: New Spanish translation.
1198         * po/tr.po: New Turkish translation.
1199         * po/opcodes.pot: Regenerate.
1201 2003-07-16  Alan Modra  <amodra@bigpond.net.au>
1203         * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
1204         (generic_dwarf2_emit_offset): Don't define function when
1205         TC__DWARF2_EMIT_OFFSET is defined.
1207 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
1209         * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
1210         (mips_cpu_info_table): Add rm7000 and rm9000 entries.
1211         * doc/c-mips.texi: Document -march=rm9000.
1213 2003-07-15  Alan Modra  <amodra@bigpond.net.au>
1215         * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
1216         only for V850_OPERAND_DISP operands.
1218 2003-07-15  Alan Modra  <amodra@bigpond.net.au>
1220         * frags.c (frag_more): Move segment checks to..
1221         (frag_alloc_check): ..here.  New function.
1222         (frag_append_1_char): Call frag_alloc_check.
1224 2003-07-14  Nick Clifton  <nickc@redhat.com>
1226         * po/tr.po: Update with latest version.
1227         * po/POTFILES.in: Regenerate.
1228         * po/gas.pot: Regenerate.
1229         * configure: Regenerate.
1231 2003-07-14  Nick Clifton  <nickc@redhat.com>
1233         * config/tc-ip2k.c: Remove inclusion of <ctype.h>
1234         * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
1235         "safe-ctype.h" and update use of macros.
1236         * Makefile.am: Update dependencies.
1237         * Makefile.in: Regenerate.
1239 2003-07-11  Alan Modra  <amodra@bigpond.net.au>
1241         * po/gas.pot: Regenerate.
1243 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
1245         * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
1246         (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
1247         tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
1248         DWARF2_CIE_DATA_ALIGNMENT): Define.
1249         (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
1250         prototypes.
1251         (ppc_cie_data_alignment): Declare.
1252         * config/tc-ppc.c: Include dw2gencfi.h.
1253         (ppc_cie_data_alignment): Define.
1254         (md_begin): Initialize ppc_cie_data_alignment.
1255         (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
1256         functions.
1257         * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
1258         (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
1259         tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
1260         DWARF2_CIE_DATA_ALIGNMENT): Define.
1261         (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
1262         New prototypes.
1263         (s390_cie_data_alignment): Declare.
1264         * config/tc-s390.c: Include dw2gencfi.h.
1265         (s390_cie_data_alignment): Define.
1266         (md_begin): Initialize s390_cie_data_alignment.
1267         (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
1268         New functions.
1270 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
1272         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1273         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
1274         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1275         * configure.in (am33_2.0, mn10300-*-linux*): Added.
1276         * configure: Rebuilt.
1277         * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
1278         elf32-am33lin.
1279         * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
1280         by default.
1282 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1284         2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
1285         * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
1286         for subtracts from GLOBAL_OFFSET_TABLE that could not be
1287         simplified.
1288         2002-07-18  Alexandre Oliva  <aoliva@redhat.com>
1289         * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
1290         could not be simplified.
1291         (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
1292         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
1293         * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
1294         BDF_RELOC_MN10300_GOT32.
1295         * config/tc-mn10300.c (mn10300_fix_adjustable): If
1296         TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
1297         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1298         * config/tc-mn10300.c (mn10300_parse_name): Don't return a
1299         symbol if we know its value.
1300         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1301         * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
1302         duplicate underscore prefix.
1303         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
1304         * config/tc-mn10300.c (mn10300_parse_name): Store relocation
1305         type in X_md, not X_add_number.  Zero X_add_number.
1306         (mn10300_check_fixup): Extract relocation type from X_md.
1307         * config/tc-mn10300.h: Update comment.
1308         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1309         * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
1310         (O_PIC_reloc): this.
1311         * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
1312         (mn10300_check_fixup): Likewise.
1313         (mn10300_parse_name): Set X_add_number to relocation type.
1314         * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
1315         TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
1316         O_GOTOFF, O_PLT, O_GOT): Define.
1317         * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
1318         (mn10300_check_fixup): New fn.
1319         (md_assemble): Call it.  Check for PIC-related relocs.
1320         (mn10300_cons_fix_new): Likewise.  New fn.
1321         (mn10300_end_of_match): New fn.
1322         (mn10300_md_parse_name_cont): New fn.
1324 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1326         2000-05-25  Alexandre Oliva  <aoliva@cygnus.com>
1327         * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
1328         accumulator's shift.
1329         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
1330         * config/tc-mn10300.c (md_relax_table, md_convert_frag,
1331         md_assemble, md_estimate_size_before_relax): Handle fbCC.
1332         2000-04-20  Alexandre Oliva  <aoliva@cygnus.com>
1333         * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
1334         HAVE_AM33_2.
1335         2000-04-03  Alexandre Oliva  <aoliva@cygnus.com>
1336         * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
1337         (HAVE_AM33): Match AM33_2 too.
1338         (HAVE_AM33_2): New macro.
1339         (md_assemble): Use it.  Match 2.0 registers only if HAVE_AM33_2.
1340         2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
1341         * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
1342         (float_registers, double_registers): New variables.
1343         (float_register_name, double_register_name): New functions.
1344         (md_assemble): Recognize FP registers.  Implement FMT_D3.
1345         (mn10300_insert_operand): Support FP registers.
1347 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
1349         * config/tc-mips.c (mips_validate_fix): Do not warn about branch
1350         target being a global symbol if not compiling SVR4 PIC code.
1352 2003-07-07  Nick Clifton  <nickc@redhat.com>
1354         * doc/c-m32r.texi (M32R-Directives): New node.  Document the
1355         .high, .shigh and .low directives.
1357 2003-07-07  Richard Sandiford  <rsandifo@redhat.com>
1359         * config/tc-h8300.c (h8300sxnmode): Add prototype.
1360         (DSYMMODE): Remove.
1361         (parse_exp): Replace expressionS argument with a h8_op.  Parse the
1362         operand size as well.
1363         (skip_colonthing): Remove unused expression argument.  Tighten checks
1364         for 2-digit sizes.
1365         (colonmod24): Remove.
1366         (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
1367         (get_operand): Likewise.  Use the standard code to read the size of
1368         pc-relative operands.
1369         (fix_operand_size): Include the size-guessing logic that used to be
1370         in colonmod24 and get_operand.  Don't apply dd:2 optimizations to
1371         offsets with a symbolic component.
1373 2003-07-04  Nick Clifton  <nickc@redhat.com>
1375         * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
1376         macro to compute size of selected register name array.
1378 2003-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1380         * config/tc-s390.c (md_parse_option): Add cpu type z990.
1381         (md_begin): Add minimal cpu type logic for instructions with different
1382         binary format depending on the cpu.
1383         (md_assemble): Remove check for minimal cpu.
1384         (s390_insert_operand): Add support for long displacements.
1385         (md_gather_operands): Likewise.
1386         (tc_s390_fix_adjustable): Likewise.
1387         (tc_s390_force_relocation): Likewise.
1388         (md_apply_fix3): Likewise.
1390 2003-06-30  Chris Demetriou  <cgd@broadcom.com>
1392         * config/tc-mips.c (s_mipsset): Implement -march= handling
1393         differently.
1395 2003-06-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1397         * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
1398         prototypes and casts. Replace PTR with void *. Reformat.
1399         * config/tc-mips.h: Likewise.
1401 2003-06-30  Alan Modra  <amodra@bigpond.net.au>
1403         * config/tc-ia64.c (note_register_values): Warning fix.
1404         * config/tc-mips.c (append_insn): Likewise.
1406 2003-06-29  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1408         * config/tc-mips.c (mips_set_options,mips_opts): Support for
1409         .set arch=FOO.
1410         (file_mips_arch): Rename mips_arch.
1411         (mips_arch_info,mips_tune_info): Remove.
1412         (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
1413         (mips_cpu_info_from_arch): New function.
1414         (md_begin): Use file_mips_arch.
1415         (macro_build,macro,mips_ip): Use mips_opts.arch.
1416         (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
1417         (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
1418         Use file_mips_arch.
1419         (s_mipsset): Support for .set arch=FOO.
1420         (mips_cpu_info_table): Fix typo.
1422 2003-06-26  H.J. Lu <hongjiu.lu@intel.com>
1424         * config/tc-i386.c (md_assemble): Declare "exp" before "if".
1426 2003-06-25  Richard Sandiford  <rsandifo@redhat.com>
1428         * config/tc-h8300.c (get_specific): Allow ':8' to be used for
1429         unsigned 8-bit operands.
1431 2003-06-24  Nick Clifton  <nickc@redhat.com>
1433         * read.c (s_comm): Change error message to assume an unsigned size
1434         has been passed to .comm.
1435         * config/tc-sparc.c (s_common): Likewise.
1436         * write.c (write_contents): Replace 'unsigned long' with
1437         'addressT' and 'long' with offsetT in order to allow computations
1438         with very large values to work for 64-bit addressed targets.
1439         (relax_and_size_all_segments): Likewise.
1440         (relax_frag): Likewise.
1441         (relax_segment): Likewise.
1443 2003-06-23  Mark Mitchell  <mark@codesourcery.com>
1445         * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
1447 2003-06-23  H.J. Lu <hongjiu.lu@intel.com>
1449         * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
1450         Instructions.
1452         * gas/config/tc-i386.h (CpuPNI): New.
1453         (CpuUnknownFlags): Add CpuPNI.
1455 2003-06-23    <davidm@hpl.hp.com>
1457         * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
1458         freebsd, openvms, and nsk (non-stop kernel).
1460 2003-06-22  Jason Thorpe  <thorpej@wasabisystems.com>
1462         * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
1463         all locals have been declared.
1465 2003-06-21  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1467         * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
1468         special handling for n32 ABI.
1469         (macro): Likewise.
1471 2003-06-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1473         * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
1474         2003-06-11 change.
1476 2003-06-19  Christian Groessler  <chris@groessler.org>
1478         * config/tc-z8k.c (parse_reg): Invalid registers generate an error
1479         now, not only a warning.  Add some more checks to detect invalid
1480         registers.
1481         (get_operand): For CLASS_IR remember register size in mode struct.
1482         (get_specific): Handle new CLASS_IRO type.  Add register size
1483         checks for CLASS_IR and CLASS_IRO.
1484         (md_apply_fix3): Fix undefined usage of buf.
1486 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
1488         * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
1489         (ppc_change_csect): Add align param.  Align frag at start of csect.
1490         (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
1491         (ppc_frob_section): Align vma.
1493 2003-06-18  Jakub Jelinek  <jakub@redhat.com>
1495         * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
1496         (output_cie): Don't pad.
1497         (output_fde): Add align argument.  Pad to align if not 0.
1498         (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
1499         Pad just last FDE to EH_FRAME_ALIGNMENT.
1501 2003-06-18  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1503         * config/tc-s390.c (init_default_arch): Make current_mode_mask
1504         dependent on s390_arch_size and current_cpu dependent on
1505         current_mode_mask.
1507 2003-06-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1509         * configure.in: Add c4x as an architecture variant to tic4x.
1510         * configure: Regenerate.
1511         * Makefile.in: Regenerate.
1512         * doc/Makefile.in: Regenerate.
1514 2003-06-18  Alan Modra  <amodra@bigpond.net.au>
1516         * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
1517         ".TOC." from PPC64_TOC relocs.
1519 2003-06-17  Alan Modra  <amodra@bigpond.net.au>
1521         * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
1523 2003-06-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1525         * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
1526         ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
1527         (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
1528         s_cprestore,s_cpadd): Use them.
1530 2003-06-16  Hans-Peter Nilsson  <hp@axis.com>
1532         * configure.in: Add specific case for cris-*-linux-gnu* with
1533         em=linux.
1534         * configure: Regenerate.
1535         * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
1536         if TE_LINUX defined, else FALSE.
1537         (bfd_boolean demand_register_prefix): Set default from
1538         DEFAULT_CRIS_AXIS_LINUX_GNU.
1539         (symbols_have_leading_underscore): Similar.
1540         * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
1542 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
1544         * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
1545         (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
1546         FPU_ARCH_FPA for AOUT.
1547         (md_begin): Don't try to guess the floating point architecture from
1548         the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
1550 2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
1552         * configure.in: Add i386-netbsd-gnu target.
1553         * configure: Regenerate.
1555 2003-06-12  Tom Tromey  <tromey@redhat.com>
1557         * doc/as.texinfo (Comm): Added @node.  Moved before CFI
1558         directives node.
1560 2003-06-12  Richard Sandiford  <rsandifo@redhat.com>
1562         * config/tc-mips.c (append_insn): In a compound relocation, take the
1563         field width from the final (outermost) operator.
1565 2003-06-11  Richard Henderson  <rth@redhat.com>
1567         * dw2gencfi.c (struct cfi_escape_data): New.
1568         (cfi_add_CFA_nop): Remove.
1569         (CFI_escape, dot_cfi_escape): New.
1570         (dot_cfi): Remove nop.
1571         (cfi_pseudo_table): Remove nop; add escape.
1572         (output_cfi_insn): Likewise.
1573         (select_cie_for_fde): Stop on escape.
1574         * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1575         * read.c, read.h (do_parse_cons_expression): New.
1576         * doc/as.texinfo (.cfi_escape): New.
1578 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1580         * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1581         (s_cprestore): Likewise.
1582         (s_cpreturn): Likewise.
1584 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1586         * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1587         with zeros.
1589 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1591         * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1592         (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1593         exceptions from size assert. Remove most of the addend fixup
1594         specialcasing. Remove value, use valP directly. simplify fx_addnumber
1595         handling. Remove zero addend specialcases.
1596         (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1597         the addend fixup specialcase.
1598         * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1600 2003-06-11  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1602         * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1603         in the RELOC_EXPANSION_POSSIBLE case.
1605 2003-06-11  Alan Modra  <amodra@bigpond.net.au>
1607         * config/tc-i960.c (line_comment_chars): Add '#'.
1608         * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1610 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
1612         * po/Make-in (DESTDIR): New.
1613         (install-data-yes): Support $(DESTDIR).
1614         (uninstall): Likewise.
1616 2003-06-11  Alan Modra  <amodra@bigpond.net.au>
1618         * Makefile.am: Run "make dep-am".
1619         * Makefile.in: Regenerate.
1620         * po/POTFILES.in: Regenerate.
1622 2003-06-10  Doug Evans  <dje@sebabeach.org>
1624         * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1625         CGEN_INSN_RELAXED.
1626         * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1627         * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1628         * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1630 2003-06-10  Alan Modra  <amodra@bigpond.net.au>
1631             Gary Hade <garyhade@us.ibm.com>
1633         * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1634         (md_apply_fix3): Special case lq insn.
1636 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
1638         * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1639         lists.  Allow single-register ranges.
1641 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
1643         * config/tc-h8300.c (h8300sxnmode): New.
1644         (md_pseudo_table): Add .h8300sxn entry.
1646 2003-06-09  H.J. Lu <hongjiu.lu@intel.com>
1648         * NEWS: Updated for the new -n option for the i386 assembler.
1650         * config/tc-i386.c (optimize_align_code): New.
1651         (md_shortopts): Add 'n'.
1652         (md_parse_option): Handle 'n'.
1653         (md_show_usage): Add '-n'.
1655         * config/tc-i386.h (optimize_align_code): Declared.
1656         (md_do_align): Optimize code alignment only if optimize_align_code
1657         is not 0.
1659         * doc/as.texinfo: Add the new -n option.
1661         * doc/c-i386.texi: Document the new -n option.
1663 2003-06-07  Richard Henderson  <rth@redhat.com>
1665         * doc/as.texinfo: Document .cfi_rel_offset.
1667         * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1668         (cfi_add_CFA_offset): Detect invalid offsets.
1669         (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1670         (cfi_add_CFA_restore_state): Restore it.
1671         (CFI_rel_offset): New.
1672         (cfi_pseudo_table): Add it.
1673         (dot_cfi): Handle it.
1675 2003-06-07  H.J. Lu <hongjiu.lu@intel.com>
1677         * app.c (do_scrub_chars): Add states 14 and 15 to handle
1678         predicate for ia64.
1680 2003-06-05  Michael Snyder  <msnyder@redhat.com>
1682         * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1683         (build_bytes): Ditto.
1685 2003-06-05  Richard Sandiford  <rsandifo@redhat.com>
1687         * config/tc-h8sx.c (DMODE): Remove.
1688         (colonmod24): Don't choose a default if the operand is a 16-bit
1689         constant integer.
1690         (fix_operand_size): New function.
1691         (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1692         Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1694 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
1696         * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1697         (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1698         (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1699         (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1700         (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1701         (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1702         (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1703         (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1704         (cfi_pseudo_table): New directives .cfi_return_column,
1705         .cfi_restore, .cfi_undefined, .cfi_same_value,
1706         .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1707         (dot_cfi, output_cfi_insn): Handle new directives.
1708         * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1709         (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1710         (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1712 2003-06-04  Richard Henderson  <rth@redhat.com>
1714         * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1716         * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1718 2003-06-04  Richard Henderson  <rth@redhat.com>
1720         * config/tc-alpha.c (s_alpha_usepv): New.
1721         (md_pseudo_table): Add it.
1722         (alpha_cfi_frame_initial_instructions): New.
1723         * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1724         (tc_cfi_frame_initial_instructions): New.
1725         * doc/c-alpha.texi: Document .usepv.
1727 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
1729         * as.c (show_usage): Document --execstack and --noexecstack.
1730         (parse_args): Add --execstack and --noexecstack.
1731         (main): Create .note.GNU-stack section if --execstack or
1732         --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1733         * as.h (flag_execstack, flag_noexecstack): New.
1735 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
1737         * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1738         (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1739         (OPTION_MISC_BASE): New defines.
1740         (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1741         (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1742         (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1743         (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1744         (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1745         (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1746         (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1747         (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1748         (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1749         (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1750         (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1751         (OPTION_TRAP): Redefine in terms of new defines.
1752         (md_longopts): Reorder entries.
1754 2003-05-14  Michael Snyder  <msnyder@redhat.com>
1755         From Bernd Schmidt  <bernds@redhat.com>
1756         and Michael Snyder  <msnyder@redhat.com>
1757         and Alexandre Oliva <aoliva@redhat.com>
1758         * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1759         * config/tc-h8300.h: Ditto.
1761 2003-06-03  Nick Clifton  <nickc@redhat.com>
1763         * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1764         BFD_RELOC_32_PCREL if the reloc is pc-relative.  Do this
1765         before calling bfd_reloc_type_lookup.
1767 2003-06-02  Alan Modra  <amodra@bigpond.net.au>
1769         * read.c (emit_expr): Set dot_value.
1770         * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1772 2003-06-02  Alan Modra  <amodra@bigpond.net.au>
1774         * macro.c (sub_actual): Don't lose string if it turns out that
1775         &string wasn't an arg.
1777 2003-05-31  Richard Henderson  <rth@redhat.com>
1779         * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1780         (cfi_finish): Set flag_traditional_format around .eh_frame data.
1782 2003-05-29  Richard Henderson  <rth@redhat.com>
1784         * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1785         (all_frame_data, plast_frame_data, cur_frame_data): New.
1786         (s_alpha_ent): Record data for dwarf2 cfi.
1787         (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1788         (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1789         * config/tc-alpha.h (md_end): New.
1790         (DWARF2_DEFAULT_RETURN_COLUMN): New.
1791         (DWARF2_CIE_DATA_ALIGNMENT): New.
1793 2003-05-29  Nick Clifton  <nickc@redhat.com>
1795         * configure.in: Add i386-*-freebsd* entry.
1796         * configure: Regenerate.
1798 2003-05-29  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1800         * config/tc-m32r.c: Amend comment to refer to Renesas
1802 2003-05-27  Richard Henderson  <rth@redhat.com>
1804         * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1805         symbol_create call.
1806         (current_location): Use symbol_temp_new_now.
1807         * stabs.c (s_stab_generic): Use symbol_temp_new.
1808         * symbols.c (temp_label_name): Remove.
1809         (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1811 2003-05-27  Richard Henderson  <rth@redhat.com>
1813         * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1814         * as.c (main): Always call cfi_finish.
1815         * config/tc-i386.c (x86_dwarf2_return_column): New.
1816         (x86_cie_data_alignment): New.
1817         (md_begin): Set them.
1818         (tc_x86_cfi_init): Remove.
1819         (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1820         return int, not unsigned long; don't as_bad here.
1821         (tc_x86_frame_initial_instructions): Streamline; use
1822         updated api.
1823         * config/tc-i386.h (tc_cfi_init): Remove.
1824         (DWARF2_DEFAULT_RETURN_COLUMN): New.
1825         (DWARF2_CIE_DATA_ALIGNMENT): New.
1827 2003-05-27  Richard Henderson  <rth@redhat.com>
1829         * symbols.c (temp_label_name): New.
1830         (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1831         (symbol_set_value_now): New.
1832         * symbols.h: Prototype them.
1833         * dwarf2dbg.c: Use them.
1834         (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1836 2003-05-23  Jason Eckhardt  <jle@rice.edu>
1838         * config/tc-i860.c (target_xp): Declare variable.
1839         (OPTION_XP): Declare macro.
1840         (md_longopts): Add option -mxp.
1841         (md_parse_option): Set target_xp.
1842         (md_show_usage): Add -mxp usage.
1843         (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1844         (md_assemble): Don't try expansions if XP_ONLY is set.
1845         * doc/c-i860.texi: Document -mxp option and i860XP support.
1847 2003-05-23  Eric Christopher  <echristo@redhat.com>
1849         * config/tc-mips.c (macro_build_jalr): Warning patrol.
1851 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1853         * config/tc-mips.c (append_insn): Use actual relocation size for new
1854         fixp's. Don't relax overflow checking for partial_inplace relocations.
1855         Use the actual relocation type in combined relocs, not just the type
1856         of the first one.
1857         (macro_build_jalr): Use actual relocation size for new fix.
1858         (s_cpsetup, s_gpdword): Likewise.
1860 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1862         * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1864 2003-05-22  Nick Clifton  <nickc@redhat.com>
1866         * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1867         section relative offsets for relocs that will not be based on the
1868         section symbol.
1869         (xstormy16_md_apply_fix3): Remove previous patch to this
1870         function.
1872 2003-05-07  Eric Christopher  <echristo@redhat.com>
1874         * config/tc-mips.c (mips_abicalls): New variable.
1875         (md_parse_option): Use.
1876         (s_option): Ditto.
1877         (s_abicalls): Ditto.
1878         (mips_elf_final_processing): Set EF_MIPS_PIC and
1879         EF_MIPS_CPIC dependent on above.
1881 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1883         * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1885 2003-05-21  Nick Clifton  <nickc@redhat.com>
1887         * config/obj-elf.c: Include dwarf2dbg.h.
1888         (elf_pseudo_tab): Add .file and .loc.
1889         * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1890         * config/tc-arm.c: Likewise.
1891         * config/tc-h8300.c: Likewise.
1892         * config/tc-hppa.c: Likewise.
1893         * config/tc-ia64.c: Likewise.
1894         * config/tc-m68hc11.c: Likewise.
1895         * config/tc-m68k.c: Likewise.
1896         * config/tc-mmix.c: Likewise.
1897         * config/tc-mn10300.c: Likewise.
1898         * config/tc-ppc.c: Likewise.
1899         * config/tc-sh.c: Likewise.
1900         * config/tc-sparc.c: Likewise.
1901         * config/tc-v850.c: Likewise.
1902         * config/tc-frv.c: Likewise, and remove redundant inclusion of
1903         dwarf2dbg.h.
1904         * config/tc-ip2k.c: Likewise.
1905         * config/tc-iq2000.c: Likewise.
1906         * config/tc-xstormy16.c: Likewise.
1907         * config/tc-xtensa.c: Likewise.
1908         * Makefile.am: Regenerate dependencies.
1909         * Makefile.in: Regenerate.
1910         * aclocal.m4: Regenerate.
1911         * config.in: Regenerate.
1912         * configure: Regenerate.
1913         * po/POTFILES.in: Regenerate.
1914         * po/gas.pot: Regenerate.
1916 2003-05-21  Nick Clifton  <nickc@redhat.com>
1918         * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1919         BFD_ASSEMBLER targets.
1920         (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1921         (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1922         defining BFD_ASSEMBLER.
1924 2003-05-20  Michal Ludvig  <mludvig@suse.cz>
1926         * as.c (main): Remove tc_cfi_init().
1927         * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1928         with '%'.
1929         (cfi_pseudo_table): Add "cfi_register" entry.
1930         (cfi_make_insn): Handle CFA_register.
1931         (cfi_output_insn): Ditto.
1932         (dot_cfi): Ditto.
1933         (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1934         (dot_cfi_endproc): Reuse already emitted CIEs.
1935         * testsuite/gas/cfi/cfi-i386.d: New pattern.
1936         * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1938 2003-05-20  Nick Clifton  <nickc@redhat.com>
1940         * config/tc-xstormy16.c: Include dwarf2dbg.h.
1941         (md_pseudo_table): Add entries for .loc and .line.
1943 2003-05-20  Alan Modra  <amodra@bigpond.net.au>
1945         * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1946         defined.
1947         (dot_cfi_endproc): Avoid C99 construct.
1949 2003-05-20  Michal Ludvig  <mludvig@suse.cz>
1951         * dw2gencfi.c, dw2gencfi.h: New files.
1952         * config/tc-i386.c (tc_x86_cfi_init): New function.
1953         * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1954         * as.c (parse_args): Set verbose flag on --verbose.
1955         (main): Call tc_cfi_init()/cfi_finish().
1956         * as.h (verbose): New external variable.
1957         * read.c (pobegin): Insert CFI pops to the list.
1958         * symbols.c (local_symbol_make): Make symbol external.
1959         * symbols.h (local_symbol_make): New prototype.
1960         * Makefile.am: Add dw2gencfi.[ch] files.  Run "make dep-am".
1961         * Makefile.in: Regenerate.
1962         * doc/as.texinfo: Added node "CFI directives" with description of
1963         all implemented .cfi_* directives.
1964         * doc/Makefile.in: Regenerate.
1965         * po/POTFILES.in: Regenerate.
1967 2003-05-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
1969         * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1970         insns.
1971         * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1973 2003-05-18  Jason Eckhardt  <jle@rice.edu>
1975         * config/tc-i860.c (i860_process_insn): Initialize fc after
1976         each opcode mismatch.
1978 2003-05-16  Kelley Cook  <kelleycook@wideopenwest.com>
1980         * configure.in: Accept i[3-7]86 variants.
1981         * configure: Regenerate.
1983 2003-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1985         * config/tc-mips.h: Fix comment formatting.
1987 2003-05-13  Hans-Peter Nilsson  <hp@axis.com>
1989         * read.c (old_buffer, old_input, old_limit): Remove variables.
1990         (read_a_source_file): Delete label contin.
1991         <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1992         input as with macros, instead of in separate old_* variables.
1993         Zero-terminate string being scrubbed.
1995 2003-05-12  Nick Clifton  <nickc@redhat.com>
1997         * config/tc-xstormy16.c (skipping_fptr): New local variable.
1998         (md_assemble): Reset skipping_fptr.
1999         (md_operand): If @fptr() is followed by a minus sign, set
2000         skipping_fptr and ignore the fptr.  If skipping_fptr is set and an
2001         @fptr is detected, ignore it and reset skipping_fptr.
2003 2003-05-11  Jason Eckhardt  <jle@rice.edu>
2005         * config/tc-i860.c (MAX_FIXUPS): Define.
2006         (struct i860_fi fi[]): New struct.
2007         (struct i860_it the_insn): Add above as member and move fields
2008         exp, reloc, pcrel and fup into i860_fi.
2009         (md_assemble): Replace all instances of exp, reloc, pcrel
2010         and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
2011         Add a loop to possibly emit multiple fix-ups for each insn.
2012         (i860_process_insn): Likewise.
2013         (i860_get_expression): Likewise.
2014         (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
2016 2003-05-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2018         * config/tc-s390.c (s390_target_format): Always call init_default_arch.
2020 2003-05-07  H.J. Lu <hongjiu.lu@intel.com>
2022         * config/tc-ia64.c (alias_hash): New.
2023         (alias_name_hash): New.
2024         (secalias_hash): New.
2025         (secalias_name_hash): New.
2026         (md_pseudo_table): Add "secalias".
2027         (md_begin): Initialize alias_hash, alias_name_hash,
2028         secalias_hash and secalias_name_hash.
2029         (struct alias): New.
2030         (dot_alias): Implement .alias and .secalias directives.
2031         (do_alias): New.
2032         (ia64_adjust_symtab): New.
2033         (do_secalias): New.
2034         (ia64_frob_file): New.
2036         * config/tc-ia64.h (ia64_adjust_symtab): New.
2037         (tc_adjust_symtab): Defined.
2038         (ia64_frob_file): New.
2039         (tc_frob_file): Defined.
2041 2003-05-07  Dmitry Diky  <diwil@mail.ru>
2043         * tc-msp430.c: Add missing lines to known cpus list.
2045 2003-05-06  Alexandre Oliva  <aoliva@redhat.com>
2047         * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
2048         * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
2049         * config.in, configure: Rebuilt.
2051 2003-05-05  H.J. Lu <hjl@gnu.org>
2053         * config/tc-mips.c (tc_gen_reloc): Add addend just once if
2054         howto->partial_inplace is false.
2056 2003-05-05  Daniel Jacobowitz  <drow@mvista.com>
2058         * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
2059         symbol_used_in_reloc_p check.
2060         (md_apply_fix3): Remove check for howto->pcrel_offset.
2062 2003-05-03  H.J. Lu <hjl@gnu.org>
2064         * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
2065         fatal error for unknown section attribute.
2067         * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
2068         unknown section attribute.
2069         * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
2070         * config/tc-ppc.c (ppc_section_letter): Likewise.
2072         * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
2073         (ia64_elf_section_type): Accept "unwind".
2075 2003-05-02  H.J. Lu <hjl@gnu.org>
2077         * read.h (demand_copy_string): New.
2079         * config/tc-alpha.c (demand_copy_string): Removed.
2081 2003-05-02  Michael Snyder  <msnyder@redhat.com>
2083         * write.h (FAKE_LABEL_NAME): Allow override
2084         (for targets that like eg. a leading dot in a local label).
2086 2003-05-02  Nick Clifton  <nickc@redhat.com>
2088         * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
2089         addend with the symbol's value for pc-relative relocations against
2090         a defined symbol - this will be done automatically.
2092 2003-05-01  H.J. Lu <hjl@gnu.org>
2094         * config/obj-elf.c (obj_elf_type): Accept "notype" and
2095         "STT_NOTYPE".
2097 2003-05-01  H.J. Lu <hjl@gnu.org>
2099         * config/tc-ia64.h (tc_canonicalize_section_name): New.
2101         * config/obj-elf.c (obj_elf_section_name): Call
2102         tc_canonicalize_section_name if it is defined.
2104 2003-05-01  H.J. Lu <hjl@gnu.org>
2106         * config/tc-ia64.c (ia64_check_label): New.
2107         * config/tc-ia64.h (tc_check_label): New.
2109         * read.c (read_a_source_file): Call tc_check_label after
2110         creating a user-defined label if defined.
2112 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
2114         * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
2115         -be and split strings to below 509 bytes in length.
2117 2003-05-01  Christian Groessler <chris@groessler.org>
2119         * expr.h: Fix comments in operatorT typedef.
2120         * config/tc-z8k.c: Add 2003 to copyright message.
2121         Fold s_segm() and s_unseg() into one function s_segm(parm) which
2122         decides by the parameter.
2123         (md_begin): Don't set linkrelax.  Only set Z8002 default if no
2124         command line argument was given to select the intended
2125         architecure.
2126         (get_interrupt_operand): Warn if NOP type code is emitted.
2127         (newfix): New parameter 'size', forward it to 'fix_new_exp'.
2128         (apply_fix): Call newfix with additional 'size' parameter.
2129         (build_bytes): Remove unused variable 'nib'.  Detect overflow in
2130         4 bit immediate arguments.
2131         (md_longopts): Add 'linkrelax' option.
2132         (md_parse_option): Adapt to new s_segm function.  Set 'linkrelax'
2133         variable when 'linkrelax' command line option is specified.
2134         (md_show_usage): Display 'linkrelax' option.
2135         (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8.  Add cases
2136         R_CALLR and R_REL16.
2137         * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
2139 2003-04-30  H.J. Lu <hjl@gnu.org>
2141         * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
2142         (ia64_float_to_chars): Likewise.
2143         (dot_byteorder): Set target_big_endian, ia64_number_to_chars
2144         and ia64_float_to_chars by tc_segment_info_data.endian from
2145         the current segment if byteorder == -1.
2146         (md_begin): Call dot_byteorder to set target_big_endian.
2147         (md_atof): Call ia64_float_to_chars to convert floating point.
2148         (ia64_float_to_chars_bigendian): New function.
2149         (ia64_float_to_chars_littleendian): Likewise.
2150         (ia64_elf_section_change_hook): Likewise.
2152         * config/tc-ia64.h (ia64_number_to_chars): New.
2153         (md_number_to_chars): Changed to (*ia64_number_to_chars)
2154         (ia64_elf_section_change_hook): New.
2155         (md_elf_section_change_hook): Defined.
2156         (ia64_segment_info_type): New struct.
2157         (TC_SEGMENT_INFO_TYPE): Defined.
2159 2003-04-30  H.J. Lu <hjl@gnu.org>
2161         * config/tc-ia64.c (md_section_align): Deleted.
2163         * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
2164         (md_section_align): New.
2166 2003-04-30  H.J. Lu <hjl@gnu.org>
2168         * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
2169         and add real16.
2170         (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
2171         "real16.ua".
2172         (md_atof): Add 6 byte padding of zero for real16.
2174 2003-04-29  Nick Clifton  <nickc@redhat.com>
2176         * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
2177         start of a version name.
2179 2003-04-28  Chris Demetriou  <cgd@broadcom.com>
2181         * configure.in (mips-*-*n*bsd*): Replace with...
2182         (mips-*-netbsd*, mips-*-openbsd*): These.
2183         * configure: Regenerate.
2185 2003-04-28  H.J. Lu <hjl@gnu.org>
2187         * config/tc-hppa.c (hppa_symbol_chars): New.
2188         * config/tc-hppa.h (tc_symbol_chars): Likewise.
2190 2003-04-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2192         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
2194 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
2196         * NEWS: Belatedly mention support for MIPS32 Release 2.
2198 2003-04-24  Eric Christopher  <echristo@redhat.com>
2200         * config/tc-mips.c (nopic_need_relax): Revert previous
2201         change.
2203 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2205         * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
2206         * config/tc-h8300.c (dwarf2dbg.h): Include
2207         (md_pseudo_table): Handle .loc and .file
2208         (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
2209         * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
2210         * Makefile.in: Regenerate.
2212 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2214         * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
2215         (md_pseudo_table): Add h8300hn, h8300sn.
2216         * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
2217         * doc/c-h8300.texi : Add documentation for new machine directives.
2219 2003-04-24  Nick Clifton  <nickc@redhat.com>
2221         * config/tc-ppc.c (ppc_symbol_chars): Define.
2222         * config/tc-ppc.h (tc_symbol_chars): Define.
2224 2003-04-23  J"orn Rennecke <joern.rennecke@superh.com>
2226         * config/tc-sh.c: Amend comment to refer to SuperH.
2227         * config/tc-sh.h: Likewise.
2228         (LISTING_HEADER): Amend to refer to SuperH.
2229         * config/tc-sh64.c: Change comment to refer to SuperH.
2230         * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
2231         * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
2232         * doc/c-sh.texi: Amend to refer to SuperH.
2233         Add SuperH architecture documentation references.
2234         * doc/c-sh64.texi: Change to refer to SuperH.
2236 2003-04-23  H.J. Lu <hjl@gnu.org>
2238         * app.c (do_scrub_chars): More checks for valid labels.
2240 2003-04-22  H.J. Lu <hjl@gnu.org>
2242         * app.c (do_scrub_chars): Check for valid label.
2244 2003-04-22  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2246         * doc/as.texinfo: Replace references to Mitsubishi M32R with
2247         references to Renesas M32R.
2248         * doc/c-m32r.texi: Likewise.
2250 2003-04-21  Richard Henderson  <rth@redhat.com>
2252         * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
2253         (out_file_list): Assign non-null filename after generating error.
2255 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
2257         * ehopt.c (check_eh_frame): For aug_size == 0
2258         in state_seeing_aug_size state skip the state_skipping_aug
2259         state.
2261 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
2263         * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
2264         'Renesas'.
2265         * doc/c-h8500.texi: Likewise.
2266         * doc/c-sh.texi: Likewise.
2267         * doc/c-sh64.texi: Likewise.
2268         * doc/h8.texi: Likewise.
2269         * config/tc-h8300.c: Likewise.
2270         * config/tc-h8300.h: Likewise.
2271         * config/tc-h8500.c: Likewise.
2272         * config/tc-h8500.h: Likewise.
2273         * config/tc-sh.c: Likewise.
2274         * config/tc-sh.h: Likewise.
2275         * config/tc-sh64.c: Likewise.
2276         * config/tc-sh64.h: Likewise.
2278 2003-04-10  Alexandre Oliva  <aoliva@redhat.com>
2280         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
2281         * config/tc-mips.c: Use signed add for n32 address arithmetic.
2282         (append_insn): When filling delay slots with instructions
2283         that have fixups that tc_gen_reloc might consider modifyable
2284         in variant frags, start a new frag.
2285         (load_address): Generate GOT_DISP with of without offset
2286         depending on whether symbol is local.  For -xgot, use
2287         GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
2288         (macro) <M_DLA_AB, M_LA_AB>: Likewise.
2289         <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
2290         CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
2291         <ld_st>: In NewABI with small got, always use
2292         GOT_PAGE/GOT_OFST, with the latter in the load/store
2293         instruction.  With big got, use GOT_HI16/GOT_LO16 or
2294         GOT_PAGE/GOT_OFST.
2295         (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
2296         Add tc_frag_data.tc_fr_offset to addends.  Decay CALL16,
2297         GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
2298         (md_convert_frag): Use memmove for safe copying of overlapping
2299         regions.
2301 2003-04-09  Stephane Carrez  <stcarrez@nerim.fr>
2303         * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
2304         -mlong, -mshort-double and -mlong-double options; use table @code.
2305         (M68HC11-Syntax): Update to document 68HC12 operands.
2306         (M68HC11-Modifiers): New section for operand modifiers.
2307         (M68HC11-Directives): New section for specific assembler directives.
2308         (M68HC11-Branch): Fix Overfull hbox error.
2310 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
2312         * config/tc-mips.c (macro): Add comments explaining the rationale
2313         for Chris' change.
2315 2003-04-09  Chris Demetriou  <cgd@broadcom.com>
2317         * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
2318         constant address that Alexandre took out by accident.  Reject
2319         64-bit addresses that are not sign extensions of 32 bits only if
2320         we don't support 64-bit address constants.
2322 2003-04-09  Alan Modra  <amodra@bigpond.net.au>
2324         * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
2326 2003-04-08  Nick Clifton  <nickc@redhat.com>
2328         * as.c (perform_an_assembly_pass): If using cgen, call
2329         gas_cgen_begin.
2330         * cgen.c (gas_cgen_begin): New function.  If
2331         flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
2332         otherwise call cgen_clear_signed_overflow_ok.
2333         * cgen.h: Prototype gas_cgen_begin.
2335 2003-04-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2337         * write.c (write_relocs): Remove unused variable.
2339 2003-04-06  Chris Demetriou  <cgd@broadcom.com>
2341         * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
2342         (macro): Use new macro to decide whether to emit constant address
2343         as 32 or 64 bits if addresses are 32-bit wide but registers are
2344         64-bit wide.
2346 2003-04-05  Stephane Carrez  <stcarrez@nerim.fr>
2348         * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
2349         (M6811_OP_PAGE_ADDR): New internal define.
2350         (get_operand): New modifier %page and %addr to obtain page and
2351         address part of a far-function.
2352         (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
2353         complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
2354         relocs.
2355         (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
2356         (find_opcode): Add comment.
2357         (md_estimate_size_before_relax): Force relocation of
2358         STATE_UNDEXED_OFFSET types when the symbol is not absolute.
2359         (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
2360         instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
2361         on the symbol itself so that DWARF2 strings are merged correctly.
2363 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
2365         * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
2366         default tic4x target format to 'coff2-tic4x'.
2367         * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
2368         s/c3x/tic3x/
2369         * config/tc-tic4x.h: Ditto
2371 2003-04-03  Nick Clifton  <nickc@redhat.com>
2373         * NEWS: Mention support for Xtensa architecture.
2375 2003-04-02  Philip Blundell  <philb@gnu.org>
2377         * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
2379 2003-04-02  Chris Demetriou  <cgd@broadcom.com>
2381         * config/tc-mips.c (macro2): Adjust implementation of
2382         M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
2383         in the case where the source and destination registers
2384         are the same.
2386 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
2388         * Makefile.am (CPU_TYPES): Add xtensa.
2389         (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
2390         (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
2391         (xtensa-relax.o): New target.
2392         Run "make dep-am".
2393         * Makefile.in: Regenerate.
2394         * configure.in: Handle xtensa-*-*.  Add xtensa-relax.o to
2395         extra_objects for xtensa targets.
2396         * configure: Regenerate.
2397         * write.c (write_object_file): Add new md_post_relax_hook.
2398         * config/tc-xtensa.c: New file.
2399         * config/tc-xtensa.h: Likewise.
2400         * config/xtensa-istack.h: Likewise.
2401         * config/xtensa-relax.c: Likewise.
2402         * config/xtensa-relax.h: Likewise.
2403         * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
2404         * doc/Makefile.in: Regenerate.
2405         * doc/all.texi: Set new XTENSA variable.
2406         * doc/as.texinfo: Set new Xtensa variable.  Describe
2407         Xtensa-specific options.  Define line comment character for
2408         Xtensa.  Add Xtensa processors to list of ELF targets where
2409         alignment is specified in bytes.  Add new Xtensa-Dependent node.
2410         Add acknowledgements for those contributing to the Xtensa port.
2411         * doc/internals.texi: Describe new md_post_relax_hook.
2412         * doc/c-xtensa.texi: New file.
2414 2003-04-01  Nick Clifton  <nickc@redhat.com>
2415             Richard Earnshaw  <rearnsha@arm.com>
2417         * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
2418         (ARM_ARCH_IWMMXT): Simplify.
2419         (insns): Place iwmmx instructions in correct place in table.
2420         (arm_add_note): New function: Add a note entry to a .note section.
2421         (md_begin): Make the default architecture be unknown.
2422         Suppress the creation of an arm note section.
2424 2003-03-26  Eric Christopher  <echristo@redhat.com>
2426         * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
2428 2003-03-25  Stan Cox   <scox@redhat.com>
2429             Nick Clifton  <nickc@redhat.com>
2431         Contribute support for Intel's iWMMXt chip - an ARM variant:
2433         * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
2434         WC_PREFIX, REG_TYPE_IWMMXT): New constants.
2435         (enum wreg_type, enum iwmmxt_insn_type): New types.
2436         (wr_register, wc_register, wcg_register): New macros.
2437         (iwmmxt_table): New variable.
2438         (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
2439         do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
2440         do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
2441         do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
2442         do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
2443         do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
2444         do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
2445         cp_byte_address_offset, cp_byte_address_required_here,
2446         check_iwmmxt_insn): New functions.
2447         (asm_opcode_insns): Add iWMMXt instructions.
2448         (md_begin): Set the mach value for iWMMXt targets.  Create a note
2449         section to identify iwmmxt binaries.
2450         (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
2451         * doc/c-arm.texi: Document the support for the iWMMXt.
2452         * NEWS: Mention new support.
2454 2003-03-24  Daniel Néri  <dne@mayonnaise.net>
2456         * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
2457         * doc/all.texi: Likewise.
2458         * doc/c-tic54x.texi: Likewise.
2460 2003-03-21  Andreas Schwab  <schwab@suse.de>
2462         * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
2463         avoid aliasing issue.
2465 2003-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2467         * config/tc-s390.c (s390_arch_size): Initialize to zero.
2468         (current_arch_mask): Rename to current_mode_mask.
2469         (current_arch_requested): Remove variable.
2470         (current_cpu): New variable.
2471         (init_default_arch): Set defaults values for s390_arch_size,
2472         current_mode_mask and current_cpu.
2473         (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
2474         (md_begin): Replace current_arch_mask by current_cpu.
2475         (md_assemble): Adapt check and error message to current_mode_mask and
2476         current_cpu.
2478 2003-03-09  James E Wilson  <wilson@tuliptree.org>
2480         * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
2481         * read.c (get_line_sb): Return end of line character or '\n' if
2482         it is zero or non-existent.
2484 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
2486         * config/tc-mips.c (mips_validate_fix): New function.
2487         * config/tc-mips.h (TC_VALIDATE_FIX): Define.
2488         (mips_validate_fix): Declare.
2490 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
2492         * Reverted 2003-03-02's patch.
2494 2003-03-11  Steve Ellcey  <sje@cup.hp.com>
2496         * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
2497         (TC_DWARF2_EMIT_OFFSET): Provide default.
2498         (out_debug_aranges, out_debug_info): Use it.
2499         * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
2500         (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
2501         (ia64_gen_real_reloc_type): ... here.
2502         * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2504 2003-03-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2506         * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
2507         (s_mips_ent): Likewise.
2509 2003-03-04  Dmitry Diky  <diwil@mail.ru>
2511         * config/tc-msp430.c (mcu_types): Add recently announced x1122
2512         and x1123 devices, add missed x437.
2513         (md_show_usage): Sort device list.
2515 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
2517         * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
2518         (md_begin): Use preset_target_arch.
2519         (md_longopts): Make isa option unconditional.
2520         (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
2521         set preset_target_arch.
2522         (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
2523         by -S_GET_VALUE  (fixP->fx_subsy).
2524         (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
2525         and the addend is 0.
2526         Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
2527         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2529 2003-03-02  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2531         * config/tc-mips.c (append_insn): Add handling of
2532         BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
2533         BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
2534         misaligned address and reange overflow.
2535         (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
2536         earlier warnings about misaligned address and reange overflow.
2537         (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2538         (md_apply_fix): Likewise. Fix warning output.
2539         (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2540         Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
2541         (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2543 2003-02-21  Nick Clifton  <nickc@redhat.com>
2545         * NEWS: Mention availability of test generator program.
2547 2003-02-21  Miles Bader  <miles@gnu.org>
2549         * config/tc-v850.c (system_registers): Add v850e debug registers.
2550         (system_register_name): Accept up to 27 (the last v850e sys register).
2552 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
2554         * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2555         relevant to both COFF and ELF.  Fix obvious typos and texinfo bugs.
2556         Capitalize section headings consistently.  Format index entries more
2557         consistently.  Unconditionalize text about whether text and data
2558         sections are alterable.  Use @ifnottex for alternatives to @tex output
2559         so that HTML works.  Clean up COFF vs. ELF descriptions of .section,
2560         .size and .type directives.  Be more polite about bad bug reports.
2561         Move FDL into a separate file.
2562         * doc/fdl.texi: New file.
2564 2003-02-21  Richard Sandiford  <rsandifo@redhat.com>
2566         * config/tc-mips.c (prev_reloc_op_frag): New variable.
2567         (macro): Check it to decide whether a new frag is needed.
2568         (my_getSmallExpression): Set it.
2570 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
2572         * cgen.c: Fix typo: intial -> initial.
2574 2003-02-19  Jie Zhang  <zhangjie@magima.com.cn>
2576         * app.c (do_scrub_chars): Handle '||' in two states.
2578 2003-02-13  Alan Modra  <amodra@bigpond.net.au>
2580         * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2581         * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2583 2003-02-11  Uwe Stieber  <uwe@wwws.de>
2585         * configure.in: Add support for kaOS as cross build target system.
2586         * configure: Regenerated.
2588 2003-02-10  Nick Clifton  <nickc@redhat.com>
2590         * config/tc-arm.c (md_begin): If the Maverick co-processor is
2591         selected, set the EF_ARM_MAVERICK_FLOAT flag and
2592         bfd_mach_arm_ep9312 machine number.
2594 2003-02-08  Richard Sandiford  <rsandifo@redhat.com>
2596         * config/tc-mips.c (reloc_needs_lo_p): New function.
2597         (fixup_has_matching_lo_p): New function.
2598         (append_insn): Use reloc_needs_lo_p to check whether a relocation
2599         might need a matching %lo().  Reuse the head of mips_hi_fixup_list
2600         if that fixup already has a matching %lo().  Don't call frag_wane here.
2601         (macro): Call frag_wane here if the last unmatched hi was in the
2602         current frag.
2603         (pic_need_relax): New function, split out from...
2604         (md_estimate_size_before_relax): ...here.
2605         (mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
2606         whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2608 2003-02-07  Richard Sandiford  <rsandifo@redhat.com>
2610         * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2612 2003-02-06  Alan Modra  <amodra@bigpond.net.au>
2614         * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2615         x@toc+off works.
2617 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
2619         * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2620         (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2621         accept x@got+off etc.
2622         (md_assemble): Handle TLS relocs.
2623         (ppc_force_relocation): Force for all TLS relocs.
2624         (ppc_fix_adjustable): Likewise.
2625         (md_apply_fix3): Handle TLS relocs.
2627 2003-02-04  Alan Modra  <amodra@bigpond.net.au>
2629         * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2630         SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2632 2003-02-02  Richard Sandiford  <rsandifo@redhat.com>
2634         * config/tc-mips.c (enum small_ex_type): Remove.
2635         (imm_unmatched_hi): Remove.
2636         (md_assemble): Remove use of imm_unmatched_hi.  Remove the last
2637         argument from calls to append_insn.
2638         (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2639         instead.
2640         (macro_build): Update append_insn calls.
2641         (mips16_macro_build, macro_build_lui): Likewise.
2642         (mips_ip): Rework handling of small expressions.  Move explicit
2643         relocation handling into my_getSmallExpression.  Assume that the
2644         value of 'o' operands is zero if there is only one bracketed
2645         expression left.
2646         (percent_op): Make constant.  Record the BFD relocation code
2647         associated with each operator.
2648         (my_getSmallParser, my_getPercentOp): Remove.
2649         (parse_relocation): New function.
2650         (my_getSamllExpression): Rework.  Fill in relocations here
2651         rather than in mips_ip.
2653 2003-01-29  Nick Clifton  <nickc@redhat.com>
2655         * config/tc-i386.c (line_comment_chars): Add '#'.  This makes the
2656         assembler's handling of # <linenum> "<filename>" directives work.
2658 2003-01-28  Jakub Jelinek  <jakub@redhat.com>
2660         * dwarf2dbg.c: Include filenames.h.
2661         (struct file_entry): Make filename const char *.
2662         (dirs, dirs_in_use, dirs_allocated): New variables.
2663         (get_filenum): Add NUM argument.  Build directory table.
2664         (dwarf2_where): Adjust caller.
2665         (dwarf2_directive_file): Use get_filenum to allocate
2666         slot in file and directory tables.
2667         (dwarf2_directive_loc): Recreate full filename from
2668         directory and filename part if needed for listing.
2669         (out_file_list): Output directory table.
2670         Output main source file dirname before its filename.
2672 2003-01-28    Dmitry Diky <diwil@mail.ru>
2674         * config/tc-msp430.c: Replace occurences of 'tolower' with
2675         'TOLOWER'.
2677 2003-01-27  David Mosberger  <davidm@hpl.hp.com>
2679         * config/tc-ia64.c (dot_vframesp): Correct error message.
2680         (dot_vframepsp): Ditto.
2682 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2684         * configure.in (em): Set to irix on all Irix systems.
2685         * configure: Rebuilt.
2686         * config/te-irix.h: New file.
2687         * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2688         whether to use Irix-specific 64-bit format.
2690 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2692         * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2694 2003-01-25  Jakub Jelinek  <jakub@redhat.com>
2696         * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2697         (tc_gen_reloc): Handle TLS relocs.
2698         (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2699         * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2700         relocs.
2701         * config/obj-elf.c (obj_elf_section_word): Handle tls.
2702         (obj_elf_type): Handle tls_object.
2704 2003-01-24  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2706         * config/tc-s390.c (s390_tls_suffix): New function.
2707         (elf_suffix_type): Add suffix enums for TLS relocations.
2708         (s390_elf_suffix): Add suffix strings for TLS relocations.
2709         (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2710         bfd relocations.
2711         (md_gather_operands): Map new instruction operand/elf suffix
2712         combinations for TLS to bfd relocations.
2713         (tc_s390_fix_adjustable): Add new TLS relocations.
2714         (tc_s390_force_relocation): Likewise.
2715         (md_apply_fix3): Likewise.
2717 2003-01-24  Alan Modra  <amodra@bigpond.net.au>
2719         * as.h: Update copyright date.
2720         * symbols.c: Likewise.
2721         * config/tc-d10v.h: Likewise.
2722         * config/tc-fr30.h: Likewise.
2723         * config/tc-i960.h: Likewise.
2724         * config/tc-mips.h: Likewise.
2726         * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2727         (MD_APPLY_SYM_VALUE): Move.
2729 2003-01-23  Nick Clifton  <nickc@redhat.com>
2731         * NEWS: Announce sh2e support.
2733         Add sh2e support:
2734         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
2735         * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2736         (sh_elf_final_processing): Handle arch_sh2e.
2738 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
2740         * symbols.c (S_FORCE_RELOC): Add "strict" param.
2741         * symbols.h (S_FORCE_RELOC): Likewise.
2742         * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2743         * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2744         * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2745         * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2746         * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2747         * write.c (generic_force_reloc): New function.
2748         (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2749         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2750         (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2751         * as.h (generic_force_reloc): Declare.
2752         * doc/internals.texi (S_FORCE_RELOC): Update.
2753         (TC_FORCE_RELOCATION_SUB_SAME): Update.
2755         * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2756         generic_force_reloc.
2757         (alpha_fix_adjustable): Likewise.
2758         * config/tc-arm.c (arm_force_relocation): Likewise.
2759         * config/tc-cris.c (md_cris_force_relocation): Likewise.
2760         * config/tc-frv.c (frv_force_relocation): Likewise.
2761         * config/tc-i386.c (md_apply_fix3): Likewise.
2762         * config/tc-ia64.c (ia64_force_relocation): Likewise.
2763         * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2764         * config/tc-m32r.c (m32r_force_relocation): Likewise.
2765         * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2766         * config/tc-mcore.c (mcore_force_relocation): Likewise.
2767         * config/tc-mips.c (mips_force_relocation): Likewise.
2768         * config/tc-mmix.c (mmix_force_relocation): Likewise.
2769         * config/tc-ppc.c (ppc_force_relocation): Likewise.
2770         * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2771         * config/tc-sh.c (sh_force_relocation): Likewise.
2772         (md_pcrel_from_section): Likewise.
2773         * config/tc-sparc.c (tc_gen_reloc): Likewise.
2774         * config/tc-v850.c (v850_force_relocation): Likewise.
2775         * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2776         * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2777         * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2778         * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2780         * config/tc-d10v.c (d10v_force_relocation): Delete.
2781         * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2782         * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2783         * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2784         * config/tc-fr30.c (fr30_force_relocation): Delete.
2785         * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2786         * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2787         * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2788         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2789         * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2790         * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2791         * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2792         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2793         * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2794         * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2795         * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2796         * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2797         * config/tc-i386.c (i386_force_relocation): Delete.
2798         * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2799         BFD_ASSEMBLER.
2800         (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2801         * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2802         * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2803         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2804         S_FORCE_RELOC.
2805         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2806         * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2808 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
2810         * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2811         sh64_elf_section_data.
2812         * config/tc-sh64.h: Include elf32-sh64.h.
2813         * config/tc-m68hc11.c: Don't include stdio.h.
2814         (md_show_usage): Fix missing continuation.
2815         * Makefile.am: Run "make dep-am".
2816         * Makefile.in: Regenerate.
2818 2003-01-22  Nick Clifton  <nickc@redhat.com>
2820         * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2822 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
2824         * configure.in: Handle *-*-aros*.
2825         * configure:    Regenerated from configure.in.
2827 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2829         * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2830         gotplt and pltoff relocations.
2831         (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2832         (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2833         gotplt and pltoff to bfd relocations.
2834         (md_gather_operands): Map new instruction operand/elf suffix
2835         combinations to bfd relocations.
2836         (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2837         to the list of unadjustable relocations.
2838         (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2839         and pltoff relocations.
2840         (md_apply_fix3): Add the new relocations.
2842 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2844         * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2845         with a subsy symbol.
2847 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
2849         * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2850         of relocs for memory bank addressing.
2852 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
2854         * config/tc-m68hc11.c (md_show_usage): Update usage.
2855         (md_parse_option): Recognize -m68hcs12.
2856         (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2857         HCS12.
2858         * doc/as.texinfo (Overview): Document new option -m68hcs12.
2860 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
2862         * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2864 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
2866         * Makefile.am: Run "make dep-am".
2867         * Makefile.in: Regenerate.
2868         * po/POTFILES.in: Regenerate.
2870 2003-01-11  Alan Modra  <amodra@bigpond.net.au>
2872         * read.c (get_absolute_expr): New, split out from..
2873         (get_absolute_expression): ..here.
2874         * read.h (get_absolute_expr): Declare.
2875         * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2876         Trim size to arch bits_per_address, and test for negative input
2877         via get_absolute_expr.
2879 2003-01-07  DJ Delorie  <dj@redhat.com>
2881         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2882         on operand type.
2883         (xstormy16_md_apply_fix3): Use adjustment.
2885 2003-01-02  Ben Elliston  <bje@redhat.com>
2887         * configure.in: Add iq2000-elf target.
2888         * configure: Regenerate.
2889         * config/tc-iq2000.c: New file.
2890         * config/tc-iq2000.h: Likewise.
2891         * po/gas.pot: Regenerate.
2893 2003-01-02  Chris Demetriou  <cgd@broadcom.com>
2895         * config/tc-mips.c: Update copyright years to include 2003.
2896         (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2897         Additionally, clean up their code slightly and clean up their
2898         comments some more.
2900         * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2902 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
2904         * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2905         $(CPU_DOCS)".
2906         * doc/Makefile.in: Regenerate.
2908 2003-01-01  John David Anglin  <dave.anglin@nrc.ca>
2910         * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2911         of .init and .fini sections for array initializers and finalizers.
2913 2002-12-31  Chris Demetriou  <cgd@broadcom.com>
2915         * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2916         the "+D" operand, which will be used only by the disassembler.
2918 2002-12-30  Chris Demetriou  <cgd@broadcom.com>
2920         * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2921         CPU variants.
2922         * configure: Regenerate.
2923         * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2924         (macro_build): Handle "K" operand.
2925         (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2926         CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2927         (mips_ip): New variable "lastpos", and implement "+A", "+B",
2928         and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2929         Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2930         (validate_mips_insn): Implement "+" as a way to extend the
2931         allowed operands, and implement "K", "+A", "+B", and "+C"
2932         operands.
2933         (OPTION_MIPS32R2): New define.
2934         (md_longopts): Add entry for OPTION_MIPS32R2.
2935         (OPTION_ELF_BASE): Adjust to accommodate OPTIONS_MIPS32R2.
2936         (md_parse_option): Handle OPTION_MIPS32R2.
2937         (s_mipsset): Reimplement handling of ".set mipsN" options
2938         and add support for ".set mips32r2".
2939         (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2940         (md_show_usage): Document "-mips32r2" option.
2941         * doc/as.texinfo: Document "-mips32r2" option.
2942         * doc/c-mips.texi: Likewise.
2944 2002-12-30  Dmitry Diky  <diwil@mail.ru>
2946         * configure.in: Add msp430 target.
2947         * configure: Regenerate.
2948         * Makefile.am: Add msp430 target.
2949         * Makefile.in: Regenerate.
2950         * config/tc-msp430.c: New file: msp430 assembler.
2951         * config/tc-msp430.h: New file: target macros for msp430.
2952         * doc/Makefile.am: Add msp430 target.
2953         * doc/Makefile.in: Regenerate.
2954         * doc/as.texinfo: Include msp430 documenation.
2955         * doc/all.texi: Enable msp430 documentation.
2956         * doc/c-msp430.texi: New file: document msp430 specific features
2957         of the assembler.
2959 2002-12-25  Alexandre Oliva  <aoliva@redhat.com>
2961         * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2962         (dwarf2_finish): Use it.
2963         * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2964         * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2966 2002-12-20  DJ Delorie  <dj@redhat.com>
2968         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2969         BFD_RELOC_XSTORMY16_12.
2971 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
2973         * doc/as.texinfo (Invoking): Typo fix.
2974         * config/tc-tic54x.c (encode_operand): Comment typo fix.
2976 2002-12-18  Kazu Hirata  <kazu@cs.umass.edu>
2978         * doc/c-alpha.texi: Fix typos.
2979         * doc/c-arm.texi: Likewise.
2980         * doc/c-d10v.texi: Likewise.
2981         * doc/c-i370.texi: Likewise.
2982         * doc/c-i960.texi: Likewise.
2983         * doc/c-ia64.texi: Likewise.
2984         * doc/c-mmix.texi: Likewise.
2985         * doc/c-ns32k.texi: Likewise.
2986         * doc/c-pdp11.texi: Likewise.
2987         * doc/c-pj.texi: Likewise.
2988         * doc/c-sh64.texi: Likewise.
2989         * doc/c-sparc.texi: Likewise.
2990         * doc/c-tic54x.texi: Likewise.
2991         * doc/c-v850.texi: Likewise.
2992         * doc/c-vax.texi: Likewise.
2993         * doc/internals.texi: Likewise.
2995 2002-12-18  Chris Demetriou  <cgd@broadcom.com>
2997         * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2998         use hardware rotate ops as appropriate.  In M_DROL_I, M_DROR_I,
2999         M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
3000         arrange not to issue warnings about use of AT when AT is not
3001         actually used.
3003 2002-12-17  Nick Clifton  <nickc@redhat.com>
3005         * as.c (std_longopts): Duplicate --keep-locals entry in order to
3006         prevent it being confused with -k.
3008 2002-12-16  Andrew MacLeod  <amacleod@redhat.com>
3010         * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
3011         has already been set up, use it.
3013 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
3015         * ChangeLog-9295: Fix a typo.
3016         * README: Likewise.
3017         * config/tc-d10v.c: Fix a comment typo.
3018         * config/tc-dlx.c: Likewise.
3019         * config/tc-h8300.h: Likewise.
3020         * config/tc-h8500.h: Likewise.
3021         * config/tc-mips.c: Likewise.
3022         * config/tc-s390.c: Likewise.
3023         * config/tc-sh.h: Likewise.
3024         * config/tc-tic80.h: Likewise.
3025         * config/tc-w65.h: Likewise.
3026         * config/tc-z8k.c: Likewise.
3027         * config/tc-z8k.h: Likewise.
3028         * testsuite/gas/h8300/cmpsi2.s: Likewise.
3030 2002-12-16  Alan Modra  <amodra@bigpond.net.au>
3032         * config/tc-d30v.c (check_range): Warning fixes, formatting.
3033         Simplify sign extension.  Remove redundant unsigned < 0 test.
3034         * config/tc-i960.c (md_ri_to_chars): Prototype.
3035         * config/tc-mcore.c (md_pseudo_table): Fix typo.
3036         (dump_literals): Init brarsym, and test later instead of isforce.
3038         * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
3039         (parse): Constify line and lineptr.
3040         (md_begin): Calculate endop here.
3042 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
3044         * config/obj-vms.c: Formatting.  Include fnctl.h.
3045         (Create_VMS_Object_File): Fix creat call for sane unix systems.
3046         (Object_Record_Offset): Make it a size_t.
3047         (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
3048         (VMS_TBT_Routine_End <Size>): Make var unsigned long.
3049         (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
3050         (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
3051         (vms_fixup_data_section <data_size>): Add here instead.
3052         * config/e-criself.c: Fix typo in last change.
3054 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
3056         * write.c (write_object_file): Fix signed/unsigned warning.
3057         * config/e-crisaout.c (crisaout_bfd_name): Prototype.
3058         * config/e-criself.c (criself_bfd_name): Prototype.
3059         * config/obj-aout.c (s_sect): Remove unused function.
3060         * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
3061         * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
3062         (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
3063         * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
3064         * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
3065         (VMS_RSYM_Parse <Current_Routine>): Likewise.
3066         (vms_fixup_text_section <text_siz>): Likewise.
3067         (synthesize_data_segment <data_size>): Likewise.
3068         (vms_fixup_xtors_section <sect_no>): Likewise.
3069         (structure_count): Don't use implicit int type.
3070         * config/tc-a29k.c (insert_sreg): Prototype.
3071         (define_some_regs): Prototype, make static.
3072         (parse_operand): Likewise.
3073         (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
3074         (md_show_usage <stream>): Likewise.
3075         (md_section_align <segment>): Likewise.
3076         (md_convert_frag <all args>): Likewise.
3077         (md_estimate_size_before_relax <all args>): Likewise.
3078         (md_apply_fix3): Don't cast valP pointer type.  Fix bogus >>='s.
3079         * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
3080         * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
3081         (md_undefined_symbol <name>): Likewise.
3082         (md_convert_frag <all args>): Likewise.
3083         (write_long <opcode>): Likewise.
3084         (tc_gen_reloc <seg>): Likewise.
3085         (md_estimate_size_before_relax <all args>): Likewise.
3086         (md_apply_fix3 <seg>): Likewise.
3087         (s_d30v_align <ignore>): Likewise.
3088         (build_insn): Correct format string.
3089         (md_apply_fix3): Likewise.
3090         * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
3091         (md_undefined_symbol <name>): Likewise.
3092         (md_convert_frag <all args>): Likewise.
3093         (md_cgen_lookup_reloc <insn>): Likewise.
3094         (md_begin): Delete unused vars.
3095         (md_assemble): Likewise.
3096         (md_estimate_size_before_relax): Likewise.
3097         (fr30_relax_frag): #if 0 out, seems unused.
3098         (md_atof): Remove declaration of atof_ieee.
3099         (restore_colon): Prototype.
3100         * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
3101         (frv_find_in_vliw): Likewise.
3102         (frv_debug_tomcat): Likewise.
3103         (frv_adjust_vliw_count): Likewise.
3104         (frv_tomcat_shuffle): Likewise.
3105         (frv_tomcat_analyze_vliw_chains): Likewise.  Correct args to
3106         frv_find_in_vliw call.
3107         (md_atof): Remove declaration of atof_ieee.
3108         * config/tc-h8500.c (cons): Delete declaration.
3109         (md_begin <opcode>): Constify.
3110         (displacement_size, immediate_size, absolute_size): Remove.
3111         (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
3112         (tc_crawl_symbol_chain <headers>): Likewise.
3113         (md_undefined_symbol <name>): Likewise.
3114         (tc_headers_hook <headers>): Likewise.
3115         (md_parse_option <c,arg>): Likewise.
3116         (md_show_usage <stream>): Likewise.
3117         (md_convert_frag <headers, seg>): Likewise.
3118         (tc_coff_symbol_emit_hook <ignore>): Likewise.
3119         (md_atof): Remove declaration of atof_ieee.
3120         (tc_aout_fix_to_chars): Remove unused function.
3121         (parse_reg): Prototype.
3122         (parse_exp): Prototype.
3123         (skip_colonthing): Prototype.  Use &&, not & in logical expressions.
3124         (parse_reglist): Prototype.
3125         (get_operand): Prototype.
3126         (get_operands): Prototype.
3127         (get_specific): Prototype.  Make "this_index" signed.
3128         (check): Prototype, make static.
3129         (insert): Prototype
3130         (build_relaxable_instruction): Prototype, make static.
3131         (build_bytes): Prototype.
3132         (wordify_scb): Prototype.
3133         * config/tc-h8500.h (start_label): Declare.
3134         (tc_coff_sizemachdep): Declare.
3135         * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
3136         (i370_rmode <unused>): Likewise.
3137         (i370_csect <unused>): Likewise.
3138         (i370_dc <unused>): Likewise.
3139         (i370_ds <unused>): Likewise.
3140         (i370_elf_lcomm <unused>): Likewise.
3141         (i370_ltorg <ignore>): Likewise.
3142         (i370_using <ignore>): Likewise.
3143         (i370_drop <ignore>): Likewise.
3144         (i370_byte <ignore>): Likewise.
3145         (i370_tc <ignore>): Likewise.
3146         (md_estimate_size_before_relax <fragp, seg>): Likewise.
3147         (md_convert_frag <all args>): Likewise.
3148         (md_undefined_symbol <name>): Likewise.
3149         (md_pcrel_from_section <sec>): Likewise.
3150         (tc_gen_reloc <seg>): Likewise.
3151         (i370_section_letter): #if 0 unused functions.
3152         (i370_section_word, i370_section_type, i370_section_flags): Likewise.
3153         (symbol_locate): Prototype.
3154         * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
3155         (md_number_to_disp, md_number_to_field): Remove.
3156         (md_apply_fix3): Correct format string and cast "fup".
3157         * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
3158         (s_endian <ignore>): Likewise.
3159         (md_undefined_symbol <name>): Likewise.
3160         (tc_crawl_symbol_chain <headers>): Likewise.
3161         (tc_set_bal_of_call): Likewise.
3162         (tc_coff_symbol_emit_hook <symbolP>): Likewise.
3163         (i960_handle_align <fragp>): Likewise.
3164         (i960_validate_fix <this_segment_type>): Likewise
3165         (tc_gen_reloc <section>): Likewise.
3166         (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
3167         (struct memS, struct regop): Forward declare.
3168         (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
3169         get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
3170         parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
3171         reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
3172         targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
3173         (md_chars_to_number, md_number_to_imm): Make static, prototype.
3174         (md_number_to_field): Likewise.
3175         (md_number_to_disp): Remove unused function.
3176         (md_atof): Remove declaration of atof_ieee.
3177         (md_apply_fix3): Correct md_number_to_imm call.
3178         * config/tc-ip2k.c (md_assemble): Warning fix.
3179         * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
3180         (fill_insn <ignore>): Likewise.
3181         (debug_sym <ignore>): Likewise.
3182         (md_undefined_symbol <name>): Likewise.
3183         (m32r_scomm <ignore>): Likewise.
3184         (md_convert_frag <abfd>): Likewise.
3185         (md_cgen_lookup_reloc <insn>): Likewise.
3186         (m32r_record_hi16 <seg>): Likewise.
3187         (md_estimate_size_before_relax): #if 0 old_fr_fix.
3188         (allow_m32rx): Prototype.
3189         (first_writes_to_seconds_operands): Prototype.
3190         (writes_to_pc): Prototype.
3191         (can_make_parallel): Prototype.
3192         (make_parallel): Prototype.
3193         (target_make_parallel): Prototype.
3194         (assemble_two_insns): Prototype.
3195         (m32r_record_hi16): Prototype.
3196         (md_atof): Remove declaration of atof_ieee.
3197         * config/tc-m32r.h (m32r_fix_adjustable): Declare.
3198         (m32r_force_relocation): Prototype.
3199         (m32r_elf_section_change_hook): Prototype.
3200         * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
3201         (md_show_usage): Fix signed/unsigned warning.
3202         * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
3203         (calcop): Ditto for reg_prefix var.
3204         (hexval): Add cast to fix signed/unsigned warning.
3205         (md_number_to_disp): Delete unused function.
3206         (md_number_to_field): Likewise.
3207         (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
3208         (match_name): Prototype.
3209         (get_bf2): Prototype.
3210         (get_bf_offset_expression): Prototype.
3211         * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
3212         (md_undefined_symbol <ignore>): Likewise.
3213         (md_create_short_jump <all args>): Likewise.
3214         (md_create_long_jump <all args>): Likewise.
3215         (md_convert_frag <abfd, sec>): Likewise.
3216         (md_apply_fix3 <segment>): Likewise.
3217         (md_section_align <segment>): Likewise.
3218         (md_pcrel_from_section <sec>): Likewise.
3219         (tc_gen_reloc <section>): Likewise.
3220         (reg_m, reg_n, immediate): Delete unused vars.
3221         (dump_literals): Fix signed/unsigned warning.
3222         (enter_literal): Likewise.
3223         (parse_imm): Likewise.  Also fix format string.
3224         (parse_mem): Remove unused var.
3225         (md_assemble <LS>): Abort on unexpected inst.
3226         (md_atof): Remove declaration of atof_ieee.
3227         (md_parse_option): Remove unused vars.
3228         (md_apply_fix3): Fix format strings, cast args.
3229         (tc_gen_reloc): Delete unused var.
3230         * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
3231         * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
3232         (md_undefined_symbol <name>): Likewise.
3233         (md_convert_frag <abfd>): Likewise.
3234         (tc_gen_reloc <seg>): Likewise.
3235         (check_operand <insn>): Likewise.
3236         (md_convert_frag): Fix format strings.
3237         (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
3238         * config/tc-openrisc.c (ignore_pseudo): Prototype.
3239         (md_atof): Remove declaration of atof_ieee.
3240         * config/tc-or32.c (parse_operand): Prototype non-BFD too.
3241         (md_apply_fix3): Fix bogus >>='s.
3242         (md_undefined_symbol): Delete unused var.
3243         * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
3244         (c_to_r, ipush_code, fake_opcode, alias): Likewise.
3245         (fake_opcode): Adjust for pj_opc_int_t change.
3246         (md_begin): Likewise.
3247         (md_assemble): Likewise.
3248         (ipush_code): Correct parse_exp_save_ilp call.  Test pending_reloc
3249         instead of non-existent third arg of parse_exp_save_ilp.
3250         (md_parse_option): Correct "little" and "big" calls.
3251         * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
3252         (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
3253         (tc_gen_reloc <section>): Likewise.
3254         * config/tc-tic30.c: #include stdarg.h or varargs.h.
3255         (debug): Rewrite using VA_* macros.
3256         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
3257         (md_convert_frag): Likewise.
3258         (md_parse_option): Likewise.
3259         (md_show_usage): Likewise.
3260         (md_undefined_symbol): Likewise.
3261         (tc_gen_reloc): Likewise.
3262         (md_operand): Likewise.
3263         (tc_aout_pre_write_hook): Delete.
3264         (struct tic30_insn): Make "operands" unsigned.
3265         (struct tic30_par_insn): Likewise.
3266         (md_assemble): Likewise for "count", "i" and "numops".
3267         (tic30_parallel_insn): Likewise for vars here.
3268         (tic30_operand): Likewise.  Remove useless unsigned >= 0 comparison.
3269         * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
3270         * config/tc-tic80.c (obj_coff_section): Delete declaration.
3271         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
3272         (md_undefined_symbol): Likewise.
3273         (md_parse_option): Likewise.
3274         (md_convert_frag): Likewise.
3275         (tc_coff_symbol_emit_hook): Likewise.
3276         (md_atof): Remove declaration of atof_ieee.
3277         (const_overflow): Warning fixes, tidy.
3278         (get_operands): Delete unused vars.
3279         (internal_error_a): Adjust format string to expect a long for arg.
3280         (find_opcode): Warning fixes, simplify.
3281         (build_insn): Cast internal_error_a arg.
3282         (md_begin): Likewise.
3283         (md_apply_fix3): Likewise.
3284         (md_assemble): Delete unused var.
3285         * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
3286         * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
3287         (whatreg, parse_reg, parse_exp): Make static, prototype.
3288         (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
3289         (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
3290         (get_operand, get_operands, get_specific, newfix): Likewise.
3291         (apply_fix, build_bytes): Likewise.
3292         (md_atof): Remove declaration of atof_ieee.
3293         (tc_aout_fix_to_chars): Delete.
3294         (md_begin): Constify "opcode".  Don't try to init opcode->idx.
3295         Fix s_unseg call.
3296         (md_parse_option): Fix s_segm and s_unseg calls.
3298 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
3300         * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
3301         Adjust callers.
3302         (RELAX_BRANCH_RELOC_S2): Delete.
3303         (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
3304         Do not handle BFD_RELOC_16_PCREL.
3305         (macro_build, mips_ip): Likewise.
3306         (md_pcrel_from): Return 4 for undefined symbols regardless of
3307         mips_pic.
3308         (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
3309         Don't dereference howto if no such relocation is available.
3310         Do not apply hack for in-place zero addend in NEWABI.
3311         (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
3313 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
3314             Alan Modra  <amodra@bigpond.net.au>
3316         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
3317         (TC_LINKRELAX_FIXUP): Add comments.
3319 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
3321         * config/tc-mn10300.c (set_arch_mach): Change argument type to
3322         avoid warnings.
3323         (r_register_name, xr_register_name): Add prototype declarations.
3325 2002-12-08  H.J. Lu <hjl@gnu.org>
3327         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
3328         copied from tc-i386.c.
3330 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
3332         Fix Bug savannah/1825:
3333         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
3334         (md_relax_table): Define specific relax for PC-rel offsets.
3335         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
3336         (m68hc11_relax_frag): Handle the new relax code.
3337         (md_convert_frag): Likewise.
3338         (md_estimate_size_before_relax): Likewise.
3340 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
3342         * subsegs.c (section_symbol): Use the symbol, not the section, name.
3344 2002-12-05  Richard Henderson  <rth@redhat.com>
3346         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
3347         (ia64_gen_real_reloc_type): Handle it.
3348         (pseudo_func): Add @ltoffx.
3349         (md_begin): Build .<ltoffx>.
3350         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
3352 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
3354         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
3355         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
3356         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
3357         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
3358         COFF to call arm_force_relocation.
3360 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
3362         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
3363         instruction.
3364         (emit_one_bundle): Handle "hint" instruction.
3365         (operand_match): Match IA64_OPND_AR_CSD.
3367 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
3369         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
3370         inside #if.
3372 2002-12-03  Nick Clifton  <nickc@redhat.com>
3374         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
3375         .PPC.EMB.apuinfo sections.
3377 2002-12-03  Richard Henderson  <rth@redhat.com>
3379         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
3381 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
3383         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
3384         (cons, s_align_bytes): Delete declaration.
3385         (relax): Delete.
3386         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
3387         strings common.
3388         (dot): Delete unused function.
3389         (w65_expression): Remove unused arg.
3390         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
3391         call.
3392         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
3393         parse_exp call.
3394         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
3395         value.
3396         (check): Remove unused function.
3397         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
3398         on unhandled switch case.
3399         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
3400         "opcode".
3401         (tc_crawl_symbol_chain): Delete unused function.
3402         (tc_headers_hook): Likewise.
3403         (tc_Nout_fix_to_chars): Likewise.
3404         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
3405         (md_parse_option): Likewise.
3406         (md_convert_frag): Likewise.
3407         (tc_coff_symbol_emit_hook): Likewise.
3408         (md_show_usage): Likewise.
3409         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
3410         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
3411         (w65_expression): Declare.
3413         * po/POTFILES.in: Regenerate.
3415         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
3416         and ARM_ADRL_IMMEDIATE.
3418 2002-12-02  Nick Clifton  <nickc@redhat.com>
3420         * gasp.c: Delete.  It has been deprecated.
3421         * NEWS: Mention that gasp has been removed.
3422         * Makefile.am: Remove references to gasp.
3423         * makefile.vms: Likewise.
3424         * mpw-make.sed: Likewise.
3425         * Makeile.in: Regenerate.
3426         * doc/gasp.texi: Delete.
3427         * doc/Makefile.am: Remove references to gasp.texi.
3428         * doc/Makefile.in: Regenerate.
3429         * macro.c: Delete references to gasp.
3430         Remove use of comment_char function parameter as it is no longer
3431         needed.
3432         * macro.h: Update prototypes to remove comment_char parameter.
3433         Fix formatting.
3434         * read.c (read_a_source_file, s_irp): Remove comment_char
3435         parameter from invocation of functions in macro.c
3437 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
3439         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
3441 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
3443         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
3444         (tc_gen_reloc): Mark section param as not used.
3446 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
3448         Fix Bug savannah/1825:
3449         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
3450         that are not pc-relative.
3451         (m68hc11_relax_frag): Declare.
3453         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
3454         the offsetable indexed addressing modes (n,r).
3455         (build_insn): Cleanup some locals.
3456         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
3457         relaxation of difference between two symbols of same section.
3458         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
3459         only when this is a PC-relative operand and the offset is not absolute.
3460         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
3461         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
3462         be handled by m68hc11_relax_frag.
3464 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
3466         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
3467         (32-bit int, 64-bit double).
3468         (md_longopts): New options -mshort, -mlong, -mshort-double and
3469         -mlong-double to control the ABI.
3470         (md_show_usage): Update.
3471         (md_parse_option): Handle new options.
3472         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
3474 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
3476         * symbols.c (report_op_error): New function, broken out of ...
3477         (resolve_symbol_value): ... here. Use for both monadic and dyadic
3478         operators.
3480 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3482         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
3483         for BFD_RELOC_32_PLT_PCREL.
3485 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
3487         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
3488         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
3489         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
3490         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
3491         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
3492         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
3493         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
3494         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
3495         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
3496         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
3497         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
3498         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
3499         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
3500         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
3501         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
3502         TRUE/FALSE.  Formatting.
3504 2002-11-29  Nick Clifton  <nickc@redhat.com>
3506         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
3507         assume a value of zero.
3508         (do_bkpt): Likewise.
3510 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3512         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3513         for TLS relocations.
3515 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
3517         * config/tc-ia64.c (md_apply_fix3): Add default case.
3519 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
3521         * symbols.c (S_SET_THREAD_LOCAL): New function.
3522         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
3523         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3524         for TLS relocations.
3525         * config/tc-ia64.c (md_apply_fix3): Likewise.
3526         * config/tc-alpha.c (md_apply_fix3): Likewise.
3528 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
3530         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
3531         to entsize.
3533 2002-11-26  DJ Delorie  <dj@redhat.com.
3535         * dwarf2dbg.c (scale_addr_delta): New.
3536         (size_inc_line_addr): Use it.
3537         (emit_inc_line_addr): Use it.
3539 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
3541         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
3542         (md_assemble): Don't pass on branches to constants as relaxable.
3543         Tweak comment.
3545 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
3547         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
3549 2002-11-21  Randolph Chung  <randolph@tausq.org>
3551         * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
3552         only if they have default visibility.
3554 2002-11-21  Richard Henderson  <rth@redhat.com>
3556         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3557         S_IS_DEFINED test.
3559 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
3561         * config/tc-mcore.c (mcore_pool_count): New function.
3562         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3564 2002-11-20  Klee Dienes  <kdienes@apple.com>
3566         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
3567         coalesce the name fields to use the same pointer.
3569         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
3570         the name fields to use the same pointer.
3571         (get_specific): Check for opcodes with the same name using strcmp
3572         as well as comparing the pointer.
3574 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
3576         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3577         fx_subsy non-NULL.
3579 2002-11-19  Richard Henderson  <rth@redhat.com>
3581         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3582         visibility portion of st_other.
3584 2002-11-19  Klee Dienes  <kdienes@apple.com>
3586         * config/tc-h8300.c (struct h8_instruction): New type, used to
3587         wrap h8_opcodes with length, noperands, idx, and size fields
3588         (computed at run-time).
3589         (h8_instructions): New variable.
3590         (md_begin): Allocate the storage for h8_instructions.  Fill
3591         h8_instructions with pointers to the appropriate opcode and the
3592         correct value for the additional fields.
3593         (clever_message): Update to use h8_instructions instead of
3594         h8_opcodes.
3595         (build_bytes): Ditto.
3596         (get_specific): Ditto.
3597         (md_assemble): Ditto.
3599 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3601         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3602         adjustments to symbols in merge sections.
3604 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
3606         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3608 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
3610         * dwarf2dbg.h (dwarf2_format): New enum.
3611         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3612         (out_debug_line, out_debug_info): Add code for handling 64-bit
3613         DWARF 2 formats.
3614         * config/tc-mips.h (mips_dwarf2_format): Declare.
3615         * config/tc-mips.c (mips_dwarf2_format): New function.
3616         * doc/internals.texi (DWARF2_FORMAT): Document.
3618 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
3620         * config/tc-mips.c (s_change_section): Make sure input buffer
3621         is not accessed past the end.  Don't hand
3622         obj_elf_change_section a pointer into the input buffer.
3624 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
3626         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3627         GOT_LO16 on NEWABI.
3629 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
3631         * config/tc-tic4x.c: Fixed proper commandline
3632         parameters. Added support for new opcode-list format. General
3633         error message fixups.
3634         (c4x_inst_add): Reject insn not for our CPU
3635         (md_begin): Added matrix for setting the proper opcode-level &
3636         device-flags according to cpu type and revision. Rewrite the
3637         opcode hasher.
3638         (c4x_operand_parse): Fix opcode bug
3639         (c4x_operands_match): New function argument. Added dry-run
3640         mechanism, that is optional error generation. Added constraint 'i'
3641         and 'j'.
3642         (c4x_insn_check): Added new function for post-verification of the
3643         generated insn.
3644         (md_assemble): Check all opcodes before croaking because of an
3645         argument mismatch. Need this to be able to fully support
3646         ortogonally arguments.
3647         (md_parse_options): Revised commandprompt swicthes and added new
3648         ones.
3649         (md_show_usage): Complete rewrite of printout.
3651 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
3653         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3654           (c4x_operands_match): Added check for 8-bits LDF insn. Give
3655           warning when using constant direct bigger than 2^16. Add the new
3656           arguments.
3658 2002-11-11  Christopher Faylor  <cgf@redhat.com>
3660         * configure.in: Use .gdbinit under Cygwin.
3661         * configure: Regenerate.
3663 2002-11-11  Christopher Faylor  <cgf@redhat.com>
3665         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3666         STRICT_PE_FORMAT.
3668 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
3670         * config/tc-tic4x.c: Declare as many functions as possible as
3671         static. Maintenance on the general indenting. Removed unnecessary
3672         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3673         function. Add support for new DSP, TMS320VC33. Fix bug for
3674         converting flonum constants.
3675         (c4x_do_align): Add proper align handling. Setup align to insert
3676         NOP's.
3677         (c4x_gen_to_words): Support for extended TI type floats.
3678         (md_atof): Proper dumping of multiple-word littlenums.
3679         (c4x_atof): Added support for extended TI type floats.
3680         (c4x_stringer): Added new function to handle compact strings.
3681         (c4x_emit_char): Added new function argument to handle custom
3682         length inserts, like single-byte strings.
3683         * config/tc-tic4x.h: Add proper align handling with NOP's.
3684         * Makefile.am: Added tic4x dependecy
3685         * Makefile.in: Regenerate
3687 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
3689         * macro.c (get_any_string): Correct logic for not going beyond end
3690         of in->ptr[].
3692 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
3694         * config/tc-mmix.c (get_putget_operands): Mark both possible
3695         operands as invalid at beginning.
3697         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3698         Initialize target of fixup to zero.
3700 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
3702         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3703         NEWABI, but we should still emit HI16_S for non-PIC n32.
3705 2002-11-06  Richard Henderson  <rth@redhat.com>
3707         * config/tc-alpha.c (alpha_validate_fix): Move code ...
3708         (alpha_fix_adjustable): ... here.
3709         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3711 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
3713         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3714         of a label.
3716 2002-11-05  H.J. Lu <hjl@gnu.org>
3718         * config/tc-mips.c (support_64bit_objects): Check *l before it
3719         is freed.
3721 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
3723         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3724         SEC_LOAD flags for sections marked as 's'.
3726 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
3728         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3729         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3730         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3731         default.
3733         * dep-in.sed: Fix typo.
3735 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
3737         * configure.in: Update ARM CPU patterns.
3738         * configure: Regenerated.
3740 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3742         * itbl-lex.l: Use #include <> for generated headers.
3743         * itbl-ops.c: Likewise.
3745 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
3747         * doc/gasp.texi: Fix typo in deprecation note.
3749 2002-10-23  Nick Clifton  <nickc@redhat.com>
3751         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3752         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3754 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
3756         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3757         (tc_frob_file_before_adjust): Don't define.
3758         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3759         function.
3760         (mmix_frob_file_before_adjust): Remove ineffective function.
3762 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
3764         * config/tc-cris.c (SIMPLE_EXPR): New macro.
3765         (cris_relax_frag): New function.
3766         (md_estimate_size_before_relax) <case ENCODE_RELAX
3767         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3768         expressions that will become absolute expressions to relaxation.
3769         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3770         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
3771         value, not distance to symbol.
3772         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3773         Ditto.  Correct placement of fixup.
3774         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3775         (gen_bdap): Ditto.
3776         * config/tc-cris.h (cris_relax_frag): Declare.
3777         (md_relax_frag): Define.
3779 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
3781         * config/obj-elf.c (special_sections): Use correct types for init
3782         array sections.
3783         (obj_elf_change_section): Don't mess with init array section type.
3785 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
3787         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3788         for relocs against symbols in a merged section.
3790 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
3792         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3793         table as register names.
3795 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3797         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3798         for option -m31.
3800 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
3802         * expr.c (operand): Add support for n.nn flonums.
3804 2002-10-17  Johannes Stezenbach  <js@convergence.de>
3806         * itbl-parse.y (entry): Provide empty action.
3808 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
3810         * configure.in (BFDVER_H): Set and subst.
3811         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3812         * Makefile.am: Run "make dep-am".
3813         (BFDVER_H): Define.
3814         * configure: Regenerate.
3815         * Makefile.in: Regenerate.
3816         * doc/Makefile.in: Regenerate.
3818 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
3820         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3821         (MD_APPLY_SYM_VALUE): Define for PE too.
3823 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
3825         * Makefile.am: Run "make dep-am".
3826         (CPU_OBJ_VALID): sh64 coff is invalid.
3827         * as.c: #include "bfdver.h".
3828         * Makefile.in: Regenerate.
3829         * config.in: Regenerate.
3831 2002-10-14  Momchil Velikov  <velco@fadata.bg>
3833         * config/tc-v850.c (CHECK_): Remove token pasting operator.
3835 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3837         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3838         * configure: Regenerate.
3840 2002-10-13  Eric Christopher  <echristo@redhat.com>
3841             Alexandre Oliva  <aoliva@redhat.com>
3843         * config/tc-mips.c (s_gpdword): New function.
3844         (mips_pseudo_table): Add .gpdword.
3845         (mips_need_elf_addend_fixup): never for NEWABI.
3846         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3847         GPREL32 as done.
3848         (s_cpadd): Generate .cpadd on NEWABI.
3850 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
3852         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3854 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
3856         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3857         (md_relax_frag): Adjust macro.
3858         * config/tc-mips.c (mips_relax_branch): New variable.
3859         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3860         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3861         (RELAX_MIPS16_P): Adjust.
3862         (append_insn): Emit branch to non-constant in a frag_var if
3863         branch-relaxation is desirable and possible.
3864         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3865         (OPTION_ELF_BASE): Adjust.
3866         (md_parse_option): Handle new options.
3867         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3868         branch relaxation.
3869         (relaxed_branch_length): New function.
3870         (md_estimate_size_before_relax): Handle branch frags.
3871         (mips_relax_frag): Likewise.
3872         (md_convert_frag): Handle branch frags.  Warn if branch is
3873         relaxed.
3875 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3877         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3878         emitted.
3879         (md_apply_fix3): Add TLS relocs.
3880         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3881         @DTPOFF.
3883 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
3884             Alan Modra  <amodra@bigpond.net.au>
3886         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3887         (md_estimate_size_before_relax): Likewise for 8 bit branches.
3889 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
3891         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3892         inside loop.
3894 2002-10-09  Richard Shann <richard.shann@superh.com>
3895             Stephen Clarke <stephen.clarke@superh.com>
3897         * config/tc-sh64.c (sh64_target_format): Add support for sh64
3898         Linux environment.
3900 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3902         * contig/tc-sh.c (sh_local_pcrel): New.
3903         (sh_force_relocation): Use sh_local_pcrel.
3904         (md_pcrel_from_section): Check the relocation type whether it
3905         should be resolved locally. Use S_FORCE_RELOC.
3907 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
3909         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3910         (TC_FORCE_RELOCATION): Tidy arg.
3912 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
3913             Ken Raeburn  <raeburn@cygnus.com>
3914             Aldy Hernandez  <aldyh@redhat.com>
3915             DJ Delorie  <dj@redhat.com>
3916             Michael Meissner  <meissner@redhat.com>
3917             Eric Christopher  <echristo@redhat.com>
3918             Richard Sandiford  <rsandifo@redhat.com>
3920         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3921         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
3922         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3923         (hilo_interlocks): True for CPU_VR5500.
3924         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3925         (mips_fix_vr4122_bugs): New.
3926         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3927         (mips_emit_delays): Likewise.
3928         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3929         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3930         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3931         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3932         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3933         (OPTION_ELF_BASE): Bump.
3934         (md_parse_option): Handle the new options.
3935         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3936         vr5400 and vr5500.
3938 2002-09-29  H.J. Lu <hjl@gnu.org>
3940         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3941         twice if howto->pcrel_offset is true.
3943 2002-09-28  Matt Thomas  <matt@3am-software.com>
3944             Jason Thorpe  <thorpej@wasabisystems.com>
3946         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3947         convert undefined references to GOT32/PLT32 if PIC code is
3948         requested.  Fix comment.
3950 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3952         * config/tc-sh.c (sh_force_relocation): Return 0 for
3953         some PC relative relocations when not relaxing.
3955 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
3957         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3958         Define them if not BFD_ASSEMBLER.
3959         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3960         @tlsld.
3961         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3962         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3963         (tc_gen_reloc): Handle x86-64 TLS relocs.
3965 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
3967         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3968         fixups to current or absolute section.
3970 2002-09-26  Jim Wilson  <wilson@redhat.com>
3972         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3973         and frag_more.
3975 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3977         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3978         capable configuration.
3979         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3980         generation.
3981         (mips_ip): Likewise.
3983 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3985         * config/tc-mips.c (append_insn): Fix jump overflow check.
3987 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
3989         * config/tc-i386.c (process_operands): Warn about "lea" segment
3990         overrides.
3992 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
3994         * write.c: Delete set_segment_vma and prototype. Update all callers.
3996 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
3998         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3999         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
4000         Rename "fseg" to "sym_seg".
4001         * Makefile.am: Run "make dep-am".
4002         * Makefile.in: Regenerate.
4003         * doc/Makefile.in: Regenerate.
4005 2002-09-20  Nick Clifton  <nickc@redhat.com>
4007         * symbols.c (colon): Do not allow symbols to be created in the
4008         absolute section if WORKING_DOT_WORD is not defined and
4009         new_broken_words would require a new frag to be created.
4011 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
4013         * expr.c (expr): Simplify foo-foo here.
4014         (clean_up_expression): Remove O_subtract code.
4016         * write.h (struct fix): Add fx_dot_value.
4017         (dot_value): Declare.
4018         * write.c (dot_value): New var.
4019         (fix_new_internal): Save dot_value as fx_dot_value.
4020         (fixup_segment): Adjust fx_offset using fx_dot_value.
4021         * expr.c (expr): Update dot_value.
4023 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
4025         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
4026         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
4027         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
4028         if not defined.
4029         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
4030         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
4031         BFD_RELOC_386_TLS_GOTIE.
4033 2002-09-19  Richard Henderson  <rth@redhat.com>
4035         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
4036         branch type relocs.
4037         (alpha_force_relocation): Don't special-case branch type relocs.
4039 2002-09-19  Nick Clifton  <nickc@redhat.com>
4041         * config/tc-m68k.c (select_control_regs): Handle situation where
4042         architecture has not yet been selected.
4044 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
4046         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
4047         (IS_SEXT_16BIT_NUM): New macro.
4048         (macro_build_ldst_constoffset): New function, to build a set of
4049         instructions to do a load or store from a constant offset relative
4050         to a given register.
4051         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
4052         .cprestore pseudo-op.
4054 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
4056         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
4058 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4060         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
4062 2002-09-17  Stan Cox  <scox@redhat.com>
4064         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
4065         (macro): Likewise for la.  Likewise for ld.
4066         (mips_after_parse_args): Make -xgot optional, not the default.
4067         (md_apply_fix3): Allow composite relocation to set up gp.
4068         (tc_gen_reloc): Allow relaxing for newabi.
4069         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
4070         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
4072 2002-09-17  Nick Clifton  <nickc@redhat.com>
4074         * config/tc-arm.c (md_apply_fix3): Note that an implemented
4075         BFD_RELOC_ARM_IMMEDIATE has been done.
4076         (tc_gen_reloc): Do not issue reloc number of unimplemented
4077         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
4078         their name is already in the error message - plus remove them
4079         from the default case.
4081         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
4082         behavior of instructions.
4084 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
4086         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
4087         Convert functions to K&R format.
4089 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4091         * config/tc-mips.c (pdr_seg): Define only for ELF.
4092         (s_change_section): Remove unused variable. Don't use for nonELF.
4094 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4096         * config/obj-elf.c (obj_elf_change_section): Move prototype to
4097         obj-elf.h
4098         * config/obj-elf.h (obj_elf_change_section): Likewise.
4100 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
4102         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
4103         (out_debug_info): Likewise.
4105 2002-09-16  Bruno Haible  <bruno@clisp.org>
4107         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
4108         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
4109         * config/tc-i386.c (i386_target_format): Likewise.
4110         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
4111         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
4113 2002-09-13  Nick Clifton  <nickc@redhat.com>
4115         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
4116         when deciding if any operands have been skipped.
4118 2002-09-11  Nick Clifton  <nickc@redhat.com>
4120         * NEWS: New TI port supports both C4x and C3x series of DSPs.
4122         * po/tr.po: Updated Turkish translation.
4124 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
4126         * config/tc-i386.c (md_apply_fix3): Allow addend for
4127         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
4128         BFD_RELOC_386_TLS_LE_32.
4130 2002-09-05  Jeff Law  <law@redhat.com>
4132         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
4133         marker relocations such as ENTRY/EXIT.
4134         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
4135         to both OBJ_ELF and OBJ_SOM.
4137 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
4139         * doc/internals.texi (md_apply_fix3): Expand.
4140         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
4141         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
4142         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
4143         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
4144         EXTERN_FORCE_RELOC): Document.
4145         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
4146         * as.h: Don't include struc-symbol.h for arc.
4147         (IS_ELF): Define.
4148         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
4149         subtract absolute symbol.
4150         * obj.h (struct format_ops): Add frob_file_before_fix.
4151         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
4152         * symbols.c (S_FORCE_RELOC): New function.
4153         * symbols.h (S_FORCE_RELOC): Declare.
4154         * write.c (TC_FORCE_RELOCATION): Change default.
4155         (TC_FORCE_RELOCATION_ABS): Define.
4156         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4157         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4158         (TC_FORCE_RELOCATION_SECTION): Don't define.
4159         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
4160         (TC_FORCE_RELOCATION_SUB_ABS): Define.
4161         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
4162         (TC_VALIDATE_FIX_SUB): Define.
4163         (TC_FIX_ADJUSTABLE): Don't define.
4164         (MD_APPLY_SYM_VALUE): Define this instead.
4165         (abs_section_sym): New variable.
4166         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
4167         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
4168         Don't put the absolute section sym on fixups here.
4169         (fix_segment): New function.
4170         (write_relocs): Don't call fixup_segment from here.
4171         (write_object_file): Instead call tc_frob_file_before_fix,
4172         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
4173         Don't output the absolute section symbol.
4174         (fixup_segment): Rewrite.
4175         * write.h (abs_section_sym): Declare.
4176         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
4177         obj_aout_frob_file.
4178         (aout_format_ops): Adjust to suit.
4179         * config/obj-aout.h (obj_frob_file): Don't define.
4180         (obj_frob_file_before_fix): Define.
4181         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
4182         (S_FORCE_RELOC): Define.
4183         * config/obj-bout.h (S_FORCE_RELOC): Define.
4184         * config/obj-coff.c (coff_format_ops): Init new field.
4185         * config/obj-coff.h: Formatting fixes.
4186         (obj_sec_sym_ok_for_reloc): Define.
4187         (S_FORCE_RELOC): Define.
4188         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
4189         (ecoff_frob_file): .. from here.
4190         (ecoff_format_ops): Add new function.
4191         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
4192         (obj_frob_file_before_fix): Define.
4193         * config/obj-elf.c (elf_format_ops): Init new field.
4194         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
4195         * config/obj-ieee.h: Formatting fixes.
4196         (S_FORCE_RELOC): Define.
4197         * config/obj-multi.h (obj_frob_file_before_fix): Define.
4198         * config/obj-vms.h (S_FORCE_RELOC): Define.
4199         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
4200         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
4201         for BFD_RELOC_32 and BFD_RELOC_64.
4202         (alpha_fix_adjustable): Remove extern and weak tests.
4203         (alpha_before_fix): Rename from alpha_adjust_symtab.
4204         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
4205         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
4206         (TC_VALIDATE_FIX): Tweak param name.
4207         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
4208         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4209         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4210         (MD_APPLY_SYM_VALUE): Define.
4211         (tc_adjust_symtab): Don't define.
4212         (alpha_adjust_symtab): Don't declare.
4213         (tc_frob_file_before_fix): Define.
4214         (alpha_before_fix): Declare.
4215         (TC_INIT_FIX_DATA): Tweak param names.
4216         * config/tc-arc.c: Include "struc-symbol.h".
4217         (md_pcrel_from): Remove undefined sym fudge.
4218         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
4219         Don't set fx_addnumber.
4220         (tc_gen_reloc): Remove spurious fx_addnumber comment.
4221         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
4222         (EXTERN_FORCE_RELOC): Define.
4223         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
4224         (tc_gen_reloc): Fudge ARM_GOTPC addend.
4225         (arm_validate_fix): Return void.
4226         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
4227         Add plt and got reloc tests.
4228         (arm_force_relocation): Call S_FORCE_RELOC.
4229         * config/tc-arm.h (struct fix): Forward declare.
4230         (TC_VALIDATE_FIX): No longer set add_symbolP.
4231         (arm_validate_fix): Adjust declaration.
4232         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
4233         (TC_FORCE_RELOCATION): Tweak param name.
4234         (TC_INIT_FIX_DATA): Likewise.
4235         (obj_fix_adjustable): Don't define.
4236         (tc_fix_adjustable): Call arm_fix_adjustable.
4237         (TC_FIX_ADJUSTABLE): Don't define.
4238         (MD_APPLY_SYM_VALUE): Define.
4239         (EXTERN_FORCE_RELOC): Define.
4240         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4241         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4242         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
4243         Remove *valP fudges and code to subtract abs sym.  Don't set
4244         fx_addnumber.
4245         * config/tc-avr.h: Formatting.
4246         (EXTERN_FORCE_RELOC): Define.
4247         (MD_APPLY_SYM_VALUE): Define.
4248         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
4249         (md_apply_fix3): Remove code to subtract abs sym.
4250         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
4251         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
4252         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
4253         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4254         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4255         (tc_fix_adjustable): Remove extern, weak tests.
4256         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
4257         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
4258         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
4259         and code to subtract abs sym.
4260         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4261         (d10v_force_relocation): Call S_FORCE_RELOC.
4262         * config/tc-d10v.h: Don't include write.h.
4263         (struct fix): Instead, forward declare.
4264         (MD_PCREL_FROM_SECTION): Tweak param names.
4265         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
4266         (d10v_fix_adjustable): Likewise.
4267         (obj_fix_adjustable): Don't define.
4268         (tc_fix_adjustable): Define.
4269         (TC_FORCE_RELOCATION): Tweak param name.
4270         (MD_APPLY_SYM_VALUE): Define.
4271         (EXTERN_FORCE_RELOC): Define.
4272         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
4273         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
4274         and code to subtract abs sym.
4275         * config/tc-d30v.h: Don't include write.h.
4276         (struct fix): Instead, forward declare.
4277         (MD_PCREL_FROM_SECTION): Tweak param names.
4278         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
4279         (MD_APPLY_SYM_VALUE): Define.
4280         (EXTERN_FORCE_RELOC): Define.
4281         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
4282         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
4283         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
4284         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4285         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4286         Don't use fx_addnumber.
4287         * config/tc-dlx.h: Don't include write.h.
4288         (md_convert_frag): We're not alpha twice over.
4289         (EXTERN_FORCE_RELOC): Define.
4290         (obj_fix_adjustable): Don't define.
4291         (tc_fix_adjustable): Define.
4292         (TC_FIX_ADJUSTABLE): Don't define.
4293         (MD_APPLY_SYM_VALUE): Define.
4294         (LOCAL_LABELS_DOLLAR): Undef always.
4295         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
4296         (fr30_fix_adjustable): Remove extern, weak tests.
4297         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
4298         (obj_fix_adjustable): Don't define.
4299         (tc_fix_adjustable): Define.
4300         (struct fix): Forward declare.
4301         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
4302         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
4303         (frv_fix_adjustable): Don't do extern, weak tests.
4304         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
4305         (TC_FIX_ADJUSTABLE): Don't define.
4306         (obj_fix_adjustable): Don't define.
4307         (tc_fix_adjustable): Define.
4308         (struct fix): Forward declare.
4309         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
4310         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
4311         * config/tc-h8300.h (struct fix): Forward declare.
4312         (EXTERN_FORCE_RELOC): Define.
4313         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
4314         (hppa_fix_adjustable): Don't test extern or weak.  Don't
4315         symbol_mark_used_in_reloc.
4316         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
4317         and S_IS_WEAK.
4318         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
4319         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
4320         (TC_FORCE_RELOCATION_SECTION): Don't define.
4321         (MD_APPLY_SYM_VALUE): Define.
4322         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
4323         to subtract abs sym.
4324         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
4325         (MD_APPLY_SYM_VALUE): Define.
4326         (MD_PCREL_FROM_SECTION): Tweak param name.
4327         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
4328         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
4329         (i386_force_relocation): New function.
4330         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
4331         (TC_VALIDATE_FIX): Likewise.
4332         (TC_FIX_ADJUSTABLE): Don't define.
4333         (MD_APPLY_SYM_VALUE): Define.
4334         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
4335         (i386_force_relocation): Declare.
4336         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4337         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4338         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
4339         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
4340         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
4341         (EXTERN_FORCE_RELOC): Define.
4342         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
4343         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
4344         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
4345         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
4346         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
4347         Remove #if 0 code.  Invert return boolean.
4348         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
4349         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
4350         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
4351         (tc_coff_sizemachdep): Prototype.
4352         (i960_handle_align): Likewise.
4353         (i960_validate_fix): Adjust declaration.
4354         (reloc_callj): Likewise.
4355         (EXTERN_FORCE_RELOC): Define.
4356         (TC_FORCE_RELOCATION_SUB_SAME): Define.
4357         (TC_FORCE_RELOCATION_ABS): Define.
4358         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4359         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4360         (TC_FIX_ADJUSTABLE): Don't define.
4361         (MD_APPLY_SYM_VALUE): Define.
4362         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
4363         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
4364         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4365         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4366         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
4367         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
4368         (MD_APPLY_SYM_VALUE): Define.
4369         (EXTERN_FORCE_RELOC): Define.
4370         (TC_FORCE_RELOCATION): Tweak param name.
4371         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
4372         (m32r_fix_adjustable): Don't test extern, weak.
4373         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
4374         (MD_APPLY_SYM_VALUE): Define.
4375         (obj_fix_adjustable): Don't define.
4376         (tc_fix_adjustable): Define.
4377         (tc_frob_file): Don't define.
4378         (tc_frob_file_before_fix): Define.
4379         (EXTERN_FORCE_RELOC): Define.
4380         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
4381         BFD_RELOC_VTABLE_ENTRY address.
4382         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
4383         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
4384         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
4385         Remove duplicated fx_done code.
4386         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
4387         (EXTERN_FORCE_RELOC): Define.
4388         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
4389         relaxable_symbol.
4390         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
4391         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4392         (TC_FIX_ADJUSTABLE): Don't define.
4393         (EXTERN_FORCE_RELOC): Define.
4394         (MD_APPLY_SYM_VALUE): Define.
4395         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4396         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
4397         Remove fx_addsy tests.
4398         (mcore_force_relocation): Call S_FORCE_RELOC.
4399         (mcore_fix_adjustable): Don't test fx_addsy.
4400         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
4401         (EXTERN_FORCE_RELOC): Define.
4402         (obj_fix_adjustable): Don't define.
4403         (tc_fix_adjustable): Define.
4404         (MD_APPLY_SYM_VALUE): Define.
4405         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
4406         (mips_pic): No longer static.
4407         (mips_force_relocation): Call S_FORCE_RELOC.
4408         (mips_fix_adjustable): Remove extern, weak tests.
4409         * config/tc-mips.h (enum mips_pic_level): Declare.
4410         (mips_pic): Declare.
4411         (tc_frob_file): Don't define.
4412         (tc_frob_file_before_fix): Define this instead.
4413         (EXTERN_FORCE_RELOC): Define.
4414         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
4415         with reg_section tests.  Set fx_done instead of calling
4416         symbol_clear_used_in_reloc on bad relocs.
4417         (tc_gen_reloc): Zero fx_addsy on bad relocs.
4418         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
4419         (mmix_adjust_symtab): Simplify list handling.  Abort on any
4420         nonsense.
4421         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
4422         BFD_RELOC_MMIX_LOCAL.
4423         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
4424         (EXTERN_FORCE_RELOC): Define.
4425         (MD_PCREL_FROM_SECTION): Tweak param name.
4426         (tc_frob_file): Don't define.
4427         (tc_frob_file_before_fix): Define this instead.
4428         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
4429         Remove SEC_CODE checks.
4430         (mn10300_fix_adjustable): Remove extern and weak tests.
4431         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
4432         (TC_FORCE_RELOCATION): Tweak param name.
4433         (obj_fix_adjustable): Don't define.
4434         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
4435         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
4436         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
4437         (openrisc_fix_adjustable): Don't test fx_addsy.
4438         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
4439         (obj_fix_adjustable): Don't define.
4440         (tc_fix_adjustable): Define this instead.
4441         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4442         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
4443         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4444         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4445         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
4446         (MD_APPLY_SYM_VALUE): Define.
4447         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
4448         Don't subtract symbol value.
4449         * config/tc-pj.h (md_pcrel_from): Tweak param name.
4450         (EXTERN_FORCE_RELOC): Define.
4451         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4452         (MD_APPLY_SYM_VALUE): Define.
4453         (obj_fix_adjustable): Don't define.
4454         (tc_fix_adjustable): Define this instead.
4455         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
4456         section sym.
4457         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
4458         (ppc_force_relocation <elf version>): New.
4459         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
4460         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
4461         comments.  Don't subtract fx_subsy as that is already done.
4462         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
4463         (MD_PCREL_FROM_SECTION): Likewise.
4464         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
4465         ppc_force_relocation.
4466         (TC_FORCE_RELOCATION_SECTION): Delete.
4467         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4468         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4469         (MD_APPLY_SYM_VALUE): Define.
4470         * config/tc-s390.c: #include "dwarf2dbg.h".
4471         (s390_insn): Remove excess parens.
4472         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4473         (tc_s390_force_relocation): Call S_FORCE_RELOC.
4474         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
4475         non-NULL.  Don't subtract off fx_addsy value.
4476         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4477         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4478         (TC_FIX_ADJUSTABLE): Don't define.
4479         (MD_APPLY_SYM_VALUE): Define.
4480         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
4481         (SWITCH_TABLE): Likewise.
4482         (sh_force_relocation): Call S_FORCE_RELOC.
4483         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
4484         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
4485         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
4486         fx_addnumber is zero on entry.  Save val in fx_addnumber.
4487         (tc_gen_reloc): Don't subtract fx_subsy.
4488         * config/tc-sh.h (struct fix): Move.
4489         (obj_fix_adjustable): Don't define.
4490         (tc_fix_adjustable): Define this instead.
4491         (TC_FIX_ADJUSTABLE): Don't define.
4492         (MD_APPLY_SYM_VALUE): Define.
4493         (SWITCH_TABLE_CONS): Define.
4494         (SWITCH_TABLE): Define.
4495         (TC_FORCE_RELOCATION_SUB_SAME): Define.
4496         (TC_VALIDATE_FIX_SUB): Define.
4497         (MD_PCREL_FROM_SECTION): Tweak param name.
4498         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4499         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4500         (TC_FORCE_RELOCATION_SUB_ABS): Define.
4501         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4502         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4503         (TC_FORCE_RELOCATION_SUB_SAME): Define.
4504         (TC_VALIDATE_FIX_SUB): Define.
4505         (MD_PCREL_FROM_SECTION): Tweak param name.
4506         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
4507         (tc_gen_reloc): Use S_FORCE_RELOC.
4508         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
4509         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
4510         (TC_FORCE_RELOCATION_ABS): Define this instead.
4511         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4512         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4513         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
4514         (MD_APPLY_SYM_VALUE): Define.
4515         (TC_FIX_DATA_PRINT): Tweak param name.
4516         * config/tc-tic30.c (USE_STDOUT): Don't define.
4517         (md_parse_option): Remove stupid debug code.
4518         (tc_gen_reloc): Don't use fx_addnumber.
4519         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
4520         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
4521         * config/tc-v850.h (obj_fix_adjustable): Don't define.
4522         (tc_fix_adjustable): Define this instead.
4523         (TC_FIX_ADJUSTABLE): Don't define.
4524         (MD_APPLY_SYM_VALUE): Define this instead.
4525         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4526         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4527         (TC_FIX_ADJUSTABLE): Don't define.
4528         (MD_APPLY_SYM_VALUE): Define this instead.
4529         (tc_fix_adjustable): Remove extern and weak tests.
4530         * config/tc-w65.h (struct fix): Forward declare.
4531         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
4532         S_FORCE_RELOC.
4533         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
4534         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
4535         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
4536         absolute symbol.
4537         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
4538         (MD_APPLY_SYM_VALUE): Define.
4539         (obj_fix_adjustable): Don't define.
4540         (tc_fix_adjustable): Define this instead.
4541         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
4543 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
4545         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4546         (ppc_fix_adjustable <coff version>): Cleanup.
4548         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
4549         (md_parse_option): No -a64 without BFD64.
4550         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
4551         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4553 2002-09-04  Nick Clifton  <nickc@redhat.com>
4555         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4556         instructions into the hash table if the target cpu is the BookE32.
4558 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
4560         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4561         ATTRIBUTE_UNUSED.
4563 2000-08-28  Catherine Moore  <clm@redhat.com>
4565         * tc-v850.c (v850_relax): Declare.
4566         (v850_longcode): New routine.
4567         (v850_handle_align): New routine.
4568         (md_pseudo_table): Add longcall and longjump.
4569         (md_parse_option): Check for relax option.
4570         (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4571         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4572         (md_apply_fix3): Likewise.
4573         (v850_force_relocation): Likewise.
4574         (v850_comm): Change the current section.
4575         (md_assemble): Ensure that the correct value is put in the
4576         fixup.
4577         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4578         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4579         Remove redundant v850ea support.
4580         * tc-v850.h (HANDLE_ALIGN): Define.
4581         (v850_handle_align): Declare.
4582         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4584 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
4586         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4587         * configure: Regenerate.
4588         * NEWS: Mention new port.
4590 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4592         * config/obj-coff.c: Add sdef definition.
4593         * config/obj-coff.h: Add tic4x include file and set
4594         target format.
4595         * config/tc-tic4x.c: New file.
4596         * config/tc-tic4x.h: New file.
4598 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
4600         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4601         (TC_ADJUST_RELOC_COUNT): Tweak param name.
4602         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4603         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4604         (RELOC_ENUM): Define.
4605         (fix_new_internal): Use RELOC_ENUM.
4606         (fix_new, fix_new_exp): Likewise.
4607         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
4608         Replace gotos with continue.
4609         (write_relocs): Formatting.  Avoid symbol loops in
4610         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
4611         errors, and error number in other cases.
4612         (fixup_segment): Remove param names from prototype.  Rename
4613         "this_segment_type" to "this_segment".  Update linkrelax comment.
4614         Remove "size, "place" and "where" local vars.  Formatting.  Update
4615         "no symbol" comment.  Remove #if 0 and #if 1.
4617         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
4619 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
4621         * dwarf2dbg.c: Always include dwarf2dbg.h.
4622         (dwarf2_directive_file): Adjust dummy version args.
4623         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4624         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4625         when symbol values differ.
4626         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4627         (pseudo_set <O_subtract>): Remove unnecessary segment test.
4628         * config/obj-bout.c (obj_pseudo_table): Warning fix.
4630 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
4632         * config/tc-w65.c (md_section_align): Fix typo.
4633         (md_parse_option): Return 0, not 1.
4635 2002-08-22  Nick Clifton  <nickc@redhat.com>
4637         * doc/as.texinfo (Section): Note that if '@' is a comment
4638         character then another symbol is used to prefix the section's
4639         type.
4641 2002-08-22  Christian Groessler <chris@groessler.org>
4643         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4644         "case 0" case.
4646 2002-08-12  Graeme Peterson  <gp@qnx.com>
4648         * configure.in: Add support for sh-**-nto* target.
4649         * configure: Regenerate.
4651 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
4653         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4655 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4657         * config/tc-ppc.c (ppc_cleanup): Do something only if format
4658         is ELF.
4659         (ppc_apuinfo_section_add): Define only if format is ELF.
4660         (md_assemble): Emit APUinfo section only if format is ELF.
4661         Fix formatting.
4663 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
4665         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4666         * config/tc-frv.c: Likewise.
4667         * config/tc-hppa.c: Likewise.
4668         * config/tc-ia64.c: Likewise.
4669         * config/tc-ip2k.c: Likewise.
4670         * config/tc-m68hc11.c: Likewise.
4671         * config/tc-m68k.c: Likewise.
4672         * config/tc-mmix.c: Likewise.
4673         * config/tc-mn10300.c: Likewise.
4674         * config/tc-sh.c: Likewise.
4675         * config/tc-sparc.c: Likewise.
4676         * config/tc-v850.c: Likewise.
4678 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
4680         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4681         by zero.
4683 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4685         From matthew green  <mrg@redhat.com>
4687         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4688         PPC_OPCODE_PPC is, except for BookE architectures.
4689         (md_parse_option): Add support for -mspe.
4690         (md_show_usage): Add -mspe.
4691         (md_parse_option): Add support for -me500 and
4692         -me500x2 to generate code for Motorola e500 core complex.
4693         (md_show_usage): Add -me500 and -me500x2.
4695         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4696         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4697         PPC_APUINFO_BRLOCK): New macros.
4699         (ppc_cleanup): New function.
4700         (ppc_apuinfo_section_add): New function.
4701         (APUID): New macro.
4702         (md_assemble): Collect info and write the APUinfo section.
4704         * config/tc-ppc.h (md_cleanup): Define.
4705         (ppc_cleanup): Export.
4706         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4708 2002-08-17  Stan Cox  <scox@redhat.com>
4710         * config/obj-elf.c (obj_elf_change_section): Make non-static.
4711         config/tc-mips.c (s_change_section): New function to support
4712         IRIX .section pseudo-op.
4714 2002-08-16  Nick Clifton  <nickc@redhat.com>
4716         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4718 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
4720         * config/tc-mips.c (macro_build_jalr): Make sure we generate
4721         the fix-up against on the right frag.
4722         (s_cpsetup): Likewise.  Parse third argument as expression, to
4723         handle global symbols and forward/backward labels correctly.
4725 2002-08-14  Nick Clifton  <nickc@redhat.com>
4727         * read.c (stringer): Catch attempts to create strings in the abs
4728         section.
4730         * config/tc-alpha.c: Fix compiling for COFF targets.
4731         Some minor formatting tidyups.
4733 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4735         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4736         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4737         according to the reloc.
4738         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4739         (TC_FORCE_RELOCATION): Define.
4740         (tc_m68hc11_force_relocation): Declare.
4742         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4743         (s_m68hc11_relax): New function for relax group.
4744         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4745         beginning of jump instruction.
4746         (md_pcrel_from): Rename from md_pcrel_from_section and fix
4747         address computation.
4748         (tc-gen_reloc): Update.
4749         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4750         PC-relative fixup.
4751         (tc_m68hc11_force_relocation): New function, handle new relocs.
4752         (tc_m68hc11_fix_adjustable): New to make sure there are enough
4753         reloc for the linker relax pass.
4754         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4755         and VTABLE relocs.
4757 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4759         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4760         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4761         (s_m68hc11_mode): New function for .mode pseudo op.
4762         (s_m68hc11_mark_symbol): New function for .far and .interrupt
4763         pseudo op.
4764         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4765         (m68hc11_elf_final_processing): Declare.
4767 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4769         * config/tc-m68hc11.c (md_begin): Take into account additional
4770         page operand for call instruction.
4771         (print_opcode_format): Likewise.
4772         (check_range): Likewise for page range checking.
4773         (get_operand): Don't skip a possible comma in operands.
4774         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4775         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4776         (fixup24): New to handle call reloc.
4777         (build_insn): Handle missing page operand for call instruction.
4778         (find): Likewise.
4779         (md_apply_fix3): Take into account new relocs.
4780         (get_operand): Fix the mode for indexed indirect addressing.
4781         (build_indexed_byte): Fix post index byte for indexed indirect mode.
4783 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
4785         * config/tc-mips.c (mips_ip): Don't work out the value of
4786         constant %hi()s here.
4788 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
4790         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4791         for ELF, and don't bother checking ELF relocs when non-ELF.
4792         (i386_immediate): Allow absolute_section expressions for aout.
4793         (i386_displacement): Likewise.  Also test bfd_is_com_section.
4794         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4795         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4796         not when fx_addsy.  Remove dead code.
4798 2002-08-09  Graeme Peterson  <gp@qnx.com>
4800         * configure.in: Add support for ppc-*-nto* target.
4801         * configure: Regenerate.
4803 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
4805         * config/tc-i386.h: Reorganize.
4807 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4809         * config/tc-mips.c (macro): Handle a register plus a 16-bit
4810         immediate offset in "dla" and "la" expansions.
4812 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
4814         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
4815         Remove "bfd_gas=yes" from target table when covered later.
4816         Consolidate some entries.
4817         * configure: Regenerate
4819 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
4821         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4822         at start of insn, pass it to output_disp and output_imm.
4823         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
4824         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4825         properly addend.
4826         (output_imm): Added arguments.  Compute properly addend for
4827         R_386_GOTPC.
4828         (md_apply_fix3): Remove R_386_GOTPC handling.
4830 2002-08-06  George France <france@handhelds.org>
4832         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
4833         and m21264b processor names and cpu types.
4834         * doc/c-alpha.texi: Documented new types.
4836 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
4838         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4840 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
4842         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4843         handling to BFD_RELOC_MIPS16_GPREL.
4845 2002-08-01  Nick Clifton  <nickc@redhat.com>
4847         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4848         pool is computed using signed arithmetic so that proper sign
4849         extension is performed if X_add_number is a 64-bit integer.
4851 2002-08-01  H.J. Lu  <hjl@gnu.org>
4852             Daniel Jacobowitz  <drow@mvista.com>
4854         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4855         .debug_line section unless it has line information.
4857 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
4859         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4860         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4861         Allow default displacement size to be an option "--disp-size-default".
4862         (md_number_to_disp): Make error messages include value. Use %d to
4863         print integers, not %s.
4864         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4865         get duplicate messages sometimes.
4866         (convert_iif): Grow frag to max possible instruction size. Avoid
4867         creating unnecessary fixes.
4868         (md_number_to_field) Add prototype.
4869         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4870         prototypes and make static.
4871         (struct addr_mode): Make mode and scaled_mode explicitly signed.
4872         (evaluate_expr): Use resultP argument instead of exprP global.
4873         (get_addr_mode): Quiten compiler warnings.
4874         (encode_operand): eliminate unused variables. Quiten compiler
4875         warnings. Eliminate nul character in format strings.
4876         (parse): argc is unsigned.
4877         (reloc): Type cast index to quieten compiler.
4878         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4879         (md_convert_frag): Note unused parameters. Remove unused
4880         variables.
4881         (md_create_long_jump, md_create_short_jump,
4882         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4883         unused parameters.
4885 2002-07-31  Nick Clifton  <nickc@redhat.com>
4887         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4888         of the PDP-11 and 2.11BSD a.out support.
4890 2002-07-31  Momchil Velikov  <velco@fadata.bg>
4892         * config/tc-v850.c (md_assemble): Fix range check for immediate
4893         operand.
4895 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
4897         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4898         to Broadcom SB-1 core support.
4900 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4902         * config/tc-mips.c (mips_target_format): Fix formatting.
4903         Add recognition of n32 ABI formats.
4905 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4907         * tc-mips.c (load_address): Don't clobber $at when loading a
4908         64-bit address in non-PIC code if noat is in effect.
4909         (macro): Likewise.
4911 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4913         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4914         used in division/multiply macro expansions similarly to how they
4915         are used in the variants with break instructions.
4916         (macro2): Likewise.
4918 2002-07-30  Graeme Peterson  <gp@qnx.com>
4920         * configure.in: Add support for arm-*-nto target.
4921         * configure: Regenerate.
4923 2002-07-30  Nick Clifton  <nickc@redhat.com>
4925         * config/tc-arm.c (struct literal_pool): Add fields to allow
4926         multiple literal pools to be maintained.
4927         (find_literal_pool): New function.
4928         (find_or_make_literal_pool): New function.
4929         (add_to_literal_pool): Use find_or_make_literal_pool.
4930         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4931         needed.
4932         (s_ltorg): Use find_literal_pool.
4933         (arm_cleanup): Dump all literal pools.
4934         * doc/c-arm.texi: Document new behaviour of only dumping literal
4935         pools upon request.
4937 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
4939         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4940         rather than PPC_OPCODE_32 for powerpc64*.
4942 2002-07-25  Nick Clifton  <nickc@redhat.com>
4944         * po/es.po: Updated Spanish translation.
4945         * po/fr.po: Updated French translation.
4947 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4949         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
4950         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4951         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4952         * configure, config.in: Regenerate.
4953         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4954         (mips_set_options): Remove "abi" field.
4955         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
4956         with mips_abi.
4957         (mips_cpu): Remove.
4958         (mips_arch_string, mips_arch_info): New vars.
4959         (mips_tune_string, mips_tune_info): New vars.
4960         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4961         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4962         (mips_isa_to_str, mips_cpu_to_str): Remove.
4963         (mips_ip): If the selected architecture is a generic ISA rather
4964         than a processor, only mention the ISA level in error messages.
4965         (OPTION_MCPU): Remove.
4966         (OPTION_FP64): New.
4967         (md_longopts): Add -mfp64, remove -mcpu.
4968         (mips_set_option_string): New fn.
4969         (md_parse_option): Make -mipsN update file_mips_isa rather than
4970         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
4971         Don't let -mgp32 and -mfp32 change the ABI.
4972         (show): Move to end of file.  Constify string argument.
4973         (md_show_usage): Move to the end of the file.  Read available
4974         architectures from mips_cpu_info_table.
4975         (mips_set_architecture): New fn.
4976         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
4977         is an alias for -march=mipsN.  Don't change the ABI based on other
4978         flags.  Infer the register size from the ABI as well as the
4979         architecture.  Complain about more conflicting arguments.
4980         Unify logic with GCC.
4981         (s_mipsset): Don't change the ABI.
4982         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4983         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4984         "mipsN"-type entries.  Remove entries that vary only in the
4985         manufacturer's prefix, or that have "000" replaced by "k".
4986         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
4987         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4988         (mips_parse_cpu): New fn.
4989         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4990         (mips_cpu_info_from_isa): Minor formatting tweak.
4992 2002-07-24  Nick Clifton  <nickc@redhat.com>
4994         * po/sv.po: Updated Swedish translation.
4995         * po/es.po: Updated Spanish translation.
4997 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
4999         * Makefile.am: Run "make dep-am".
5000         * Makefile.in: Regenerate.
5001         * doc/Makefile.in: Regenerate.
5002         * config.in: Regenerate.
5003         * po/POTFILES.in: Regenerate.
5005 2002-07-23  Nick Clifton  <nickc@redhat.com>
5007         * po/fr.po: Updated French translation.
5009 2002-07-23  Nick Clifton  <nickc@redhat.com>
5011         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
5012         GAS.
5014 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5016         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
5017         instead of S_IS_EXTERN.
5018         (md_estimate_size_before_relax): Likewise.
5019         (mips_fix_adjustable): Likewise.
5021 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5023         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
5025 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
5026             Nick Clifton  <nickc@redhat.com>
5028         * cond.c (s_ifdef): Treat a referenced but not yet defined
5029         symbol as if it were undefined, in exactly the same way as
5030         .equiv.
5032         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
5033         consider referenced bug not yet defined symbols to be
5034         undefined.
5036 2002-07-18  Denis Chertykov  <denisc@overta.ru>
5037             Frank Ch. Eigler  <fche@redhat.com>
5038             Alan Lehotsky  <alehotsky@cygnus.com>
5039             John Healy  <jhealy@redhat.com>
5040             Jeff Johnston  <jjohnstn@redhat.com>
5042         * configure.in: Add ip2k configuraton.
5043         * configure: Regenerate.
5044         * Makefile.am: Add ip2k configuraton.
5045         * Makefile.in: Regenerate.
5046         * configure: Regenerate.
5047         * Makefile.in: Regenerate.
5048         * config/tc-ip2k.c: New file.
5049         * config/tc-ip2k.h: New files.
5050         * NEWS: Mention new support.
5051         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
5052         * doc/Makefile.in: Regenerate.
5053         * doc/all.texi: Set IP2K
5054         * doc/as.texinfo: Add IP2K description.
5055         * doc/c-ip2k.texi: New file.
5057 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
5059         * NEWS: Reformat to match style of other NEWS files.
5061 2002-07-17  Jan Hubicka  <jh@suse.cz>
5063         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
5065 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
5067         * config/tc-z8k.c (build_bytes): Correct order of memset args.
5069 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
5071         * NEWS: Add 'Changes in 2.13'.
5073 2002-07-15  Matt Fredette  <fredette@netbsd.org>
5075         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
5077 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
5079         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
5080         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
5081         not CODE_64BIT.
5083 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
5085         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
5086         (ppc_frob_file_before_adjust): New function.
5087         * config/tc-ppc.h (tc_frob_symbol): Don't define.
5088         (ppc_elf_frob_symbol): Don't declare.
5089         (tc_frob_file_before_adjust): Define.
5090         (ppc_frob_file_before_adjust): Declare.
5092         * config/tc-ppc.c (md_pseudo_table): Warning fix.
5093         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
5094         flags.
5095         (ppc_size): Delete.
5096         (ppc_xcoff64): Rename to ppc_obj64.
5097         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
5098         (ppc_set_cpu): Set PPC_OPCODE_32 too.
5099         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
5100         or bfd_mach_ppc.
5101         (ppc_target_format): Use ppc_obj64 to select format.
5102         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
5103         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
5104         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
5105         (tc_frob_symbol): Likewise.
5106         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
5107         BFD_DEFAULT_TARGET_SIZE.
5108         (ppc_tc): Likewise.
5109         (ppc_is_toc_sym): Likewise.
5110         (md_apply_fix3): Likewise.
5111         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
5112         BFD_DEFAULT_TARGET_SIZE.
5113         (ELF_TC_SPECIAL_SECTIONS): Likewise.
5114         (tc_frob_symbol): Likewise.
5116 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5118         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
5119         (mips_ip): Likewise.
5121 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
5123         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
5124         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
5125         (md_apply_fix3): Formatting.  Remove redundant test.
5126         (tc_gen_reloc): Remove redundant code.
5127         (tc_i386_force_relocation): Delete.  Movy body of function to..
5128         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
5130 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
5132         * configure.in: Add hppa-*-openbsd* target, change
5133         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
5134         with sparc64 cpu.
5135         * configure: Regenerate.
5137 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5139         * config/tc-mips.c (macro): Shift the 32-bit address range
5140         accessible with a lone "lui" down by 32768.
5142 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5144         * config/tc-mips.c (load_address): Use non-trapping "daddu"
5145         instead of "dadd" in address calculations.
5146         (macro): Likewise.
5148 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
5150         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
5151         movzx fudges.
5152         (md_assemble): Instead, zap the suffix here.
5154 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
5156         * NEWS: Remove next release number until the release is actually
5157         upon us.
5159 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
5161         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
5162         Run "make dep-am".
5163         * Makefile.in: Regenerate.
5165 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5167         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
5168         to symbols in merge sections, even non pc-relative ones.
5170 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
5172         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
5174 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
5176         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
5177         .softregs and .eeprom.
5179 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
5181         * NEWS: Note the next release is 2.13.
5183 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
5185         * po/tr.po: New translation imported.
5187 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
5189         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
5190         (ecoff_directive_def): Likewise.
5191         (ecoff_directive_tag): Likewise.
5192         * listing.c (file_info): Likewise.
5193         * hash.c (what): Likewise.
5195 2002-06-25  H.J. Lu <hjl@gnu.org>
5197         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
5198         * Makefile.in: Regenerated.
5200 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
5202         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
5203         (assemble_ppi): Generate warning if the same register is used
5204         twice as destination in the same padd / pmuls instruction.
5206 2002-06-18  Dave Brolley  <brolley@redhat.com>
5208         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
5209         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
5210         * configure.in: Support frv-*-*.
5211         * Makefile.am (CPU_TYPES): Add frv.
5212         (TARGET_CPU_CFILES): Add tc-frv.c.
5213         (TARGET_CPU_HFILES): Add tc-frv.h.
5214         (DEPTC_frv_coff): New variable.
5215         (DEPTC_frv_elf): New variable.
5216         (DEPOBJ_frv_coff): New variable.
5217         (DEPOBJ_frv_elf): New variable.
5218         (DEP_frv_coff): New variable.
5219         (DEP_frv_elf): New variable.
5220         * tc-frv.c: New file.
5221         * tc-frv.h: New file.
5223 2002-06-17  Catherine Moore <clm@redhat.com>
5225         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
5227 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
5229         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
5231 2002-06-17  Tom Rix <trix@redhat.com>
5233         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
5235 2002-06-14  H.J. Lu  <hjl@gnu.org>
5236             Daniel Jacobowitz  <drow@mvista.com>
5238         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
5239         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
5240         * config/tc-mips.c (s_mips_file): Call s_app_file_string
5241         and new_logical_line for the first .file directive.
5242         * read.c (s_app_file_string): New function.
5243         (s_app_file): Call it.
5244         * read.h (s_app_file_string): Add declaration.
5246 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
5248         * configure.in: Remove MIPS_STABS_ELF.
5249         * configure: Regenerated.
5250         * config.in: Regenerated.
5251         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
5252         for MIPS targets.
5253         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
5254         ".extern".
5255         (pdr_seg): Declare unconditionally.
5256         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
5257         (s_mips_end): Likewise.  Generate stabs function markers.
5258         (s_mips_ent): Generate stabs function markers.
5259         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
5260         ELF.
5261         (s_mips_mask): Likewise.
5262         (mips_flag_mdebug): New.
5263         (md_longopts): Add "mdebug" and "no-mdebug".
5264         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
5265         (mips_after_parse_args): Set mips_flag_mdebug.
5266         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
5268 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5270         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
5271         value twice for RELA relocations.
5273 2002-06-12  Ben Elliston  <bje@redhat.com>
5275         * symbols.c (resolve_symbol_value): Initialise final_val.
5277         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
5279 2002-06-11  Tom Rix  <trix@redhat.com>
5281         * config/tc-ppc.c (ppc_subseg_align): Delete.
5282         (ppc_change_csect): Default csect align is 2.
5283         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
5285 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5287         * config/tc-avr.c (mcu_types): Update.
5289 2002-06-08  Matt Thomas  <matt@3am-software.com>
5291         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
5292         (vax-*-netbsd*): New targets.
5293         * configure: Regenerate.
5294         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
5295         * config/tc-vax.c: Add support for ELF and PIC.
5296         (flag_want_pic): New flag.
5297         (float_cons): Fix prototype.
5298         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
5299         (md_assemble): Introduce a new is_absolute local, and use it
5300         rather than repeating the test.  Make fatal errors actually
5301         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
5302         Add support for ELF.  Add support for PIC.
5303         (md_convert_frag): Adjust for BFD_ASSEMBLER.
5304         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
5305         BFD_ASSEMBLER.
5306         (vax_reg_parse): Make the % register prefix mandatory for ELF,
5307         optional for a.out, and not allowed for VMS.  Adjust all callers.
5308         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
5309         (md_create_long_jump): Likewise.
5310         (md_undefined_symbol): Likewise.
5311         (md_section_align): Likewise.
5312         (md_shortopts): Allow -k and -K for ELF.
5313         (md_parse_option): Set flag_want_pic if -k or -K.
5314         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
5315         (tc_gen_reloc): New function if BFD_ASSEMBLER.
5316         * config/tc-vax.h (tc_headers_hook): Remove.
5317         (TARGET_FORMAT): Set according to object format and target
5318         environment.
5319         (BFD_ARCH, TARGET_ARCH): Define.
5320         (NO_RELOC): Adjust for BFD_ASSEMBLER.
5321         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
5322         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
5323         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
5325 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
5327         * Makefile.am: Run "make dep-am".
5328         * Makefile.in: Regenerate.
5330         * as.c: Replace CONST with const.
5331         * write.c: Likewise.
5332         * config/obj-coff.c: Likewise.
5333         * config/tc-a29k.c: Likewise.
5334         * config/tc-arm.c: Likewise.
5335         * config/tc-dlx.c: Likewise.
5336         * config/tc-h8300.c: Likewise.
5337         * config/tc-h8500.c: Likewise.
5338         * config/tc-i370.c: Likewise.
5339         * config/tc-i860.c: Likewise.
5340         * config/tc-i960.c: Likewise.
5341         * config/tc-m68hc11.c: Likewise.
5342         * config/tc-m68k.c: Likewise.
5343         * config/tc-m88k.c: Likewise.
5344         * config/tc-mcore.c: Likewise.
5345         * config/tc-mips.c: Likewise.
5346         * config/tc-ns32k.c: Likewise.
5347         * config/tc-pdp11.c: Likewise.
5348         * config/tc-pj.c: Likewise.
5349         * config/tc-s390.c: Likewise.
5350         * config/tc-sh.c: Likewise.
5351         * config/tc-sparc.c: Likewise.
5352         * config/tc-tahoe.c: Likewise.
5353         * config/tc-tic80.c: Likewise.
5354         * config/tc-v850.c: Likewise.
5355         * config/tc-vax.c: Likewise.
5356         * config/tc-w65.c: Likewise.
5357         * config/tc-z8k.c: Likewise.
5359 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
5361         Based on patch from Matt Green:
5362         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
5363         * config/tc-mips.c (s_mips_file): Renamed from s_file.
5364         (s_mips_loc): New function.
5365         (mips_nonecoff_pseudo_table): Call them.
5366         (append_insn): Call dwarf2_emit_insn.
5368 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5370         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
5371         to -1.
5372         (file_ase_mips16): New veriable.
5373         (mips_eabi64): Remove.
5374         (CPU_HAS_MIPS16): New define.
5375         (CPU_HAS_MDMX): Fix data type.
5376         (md_begin): Code cleanup. Use file_ase_mips16.
5377         (mips_elf_final_processing): Handle mips16 header flag.
5378         Handle EABI flag without intermediate variable.
5380 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5382         * doc/as.texinfo: Update MIPS documentation.
5384 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5386         * config/tc-mips.c: Add define for $zero register.
5387         (md_begin): Add $zero as alias name for $0.
5388         (insn_uses_reg): Use ZERO define.
5389         (mips_ip): Add $zero as alias name for $0.
5390         (mips16_ip): Likewise.
5391         (s_cplocal): Demand empty rest of input line.
5392         (tc_get_register): Likewise. Add support for $kt0, kt1 register
5393         names. Use ZERO define. Fix input_line_pointer progress.
5395 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
5397         * symbols.c: Replace CONST by const throughout.
5398         (symbol_find_exact): Split out from..
5399         (symbol_find_base): ..here.
5400         * symbols.h: Replace CONST by const throughout.
5401         (symbol_find_exact): Declare.
5402         * config/obj-elf.c: #include "struc-symbol.h".
5403         (elf_frob_file): If group name matches an exported symbol, use that
5404         symbol for the signature and ".group" as the section name.
5406 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
5408         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
5409         but warn about it.
5411 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
5413         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
5414         and mips_opts.ase_mdmx if they are uninitialized.
5416 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5418         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
5419         (hppa_force_relocation): Check if a stub just before the start symbol
5420         of the last call_info is reachable before forcing relocation.  Fix
5421         typo.
5423 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5425         * config/tc-mips.c (mips_after_parse_args): New function.
5426         (md_begin): Move processing of defaults to mips_after_parse_args.
5427         config/tc-mips.h (md_after_parse_args): Define.
5429 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5431         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
5432         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
5433         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
5434         * configure: Regenerate.
5435         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
5436         environment.
5438 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
5440         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
5442 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
5444         * config/obj-elf.c (obj_elf_change_section): Set and check elf
5445         linkonce flag.  Print all warnings.
5446         (obj_elf_section): Parse ",comdat" for groups.
5447         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
5448         consistency of comdat flag.
5450 2002-06-02  Richard Henderson  <rth@redhat.com>
5452         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
5453         with LITERALs without sequence numbers.
5455 2002-06-01  Richard Henderson  <rth@redhat.com>
5457         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
5458         Rename them LITUSE_ALPHA_*.
5460 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
5462         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
5463         accept parentheses enclosed register lists.
5465 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
5467         * Makefile.am: Run "make dep-am".
5468         * Makefile.in: Regenerate.
5469         * po/POTFILES.in: Regenerate.
5471 2002-05-31  Graeme Peterson  <gp@qnx.com>
5473         * configure.in: Add i386-*-nto-qnx*.
5474         * configure: Regenerate.
5476 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5478         * config/tc-mips.c (mips_ip): Use unsigned long values for
5479         warning output.
5481 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5483         * config/tc-mips.c (s_cpsetup): Fix initialization of
5484         mips_cpreturn_register and mips_cpreturn_offset.
5486 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5488         * config/tc-mips.c (s_cpsetup): Fix comment.
5490 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5492         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
5493         (mips_ip): Likewise.
5494         (mips16_ip): Likewise.
5495         (tc_get_register): Likewise.
5497 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
5498             Ed Satterthwaite  <ehs@broadcom.com>
5500         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
5501         (mips_opts): Initialize "ase_mdmx" member.
5502         (file_ase_mdmx): New variable.
5503         (CPU_HAS_MDMX): New macro.
5504         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
5505         based on command line options and configuration defaults.
5506         (macro_build): Note in comment that use of MDMX in macros is
5507         not currently allowed.
5508         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
5509         "Z" MDMX operand types.
5510         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
5511         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
5512         types.
5513         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
5514         Add support for "-mdmx" and "-no-mdmx" options.
5515         (OPTION_ELF_BASE): Move to accommodate new options.
5516         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
5517         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
5518         file_ase_mdmx was set.
5519         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
5520         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
5521         nomdmx" directives.
5523 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5525         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
5526         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
5527         command line switch conforming to gcc conventions.
5528         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
5530 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5532         * config/tc-mips.c (macro_build_jalr): New Function.
5533         (md_begin): NewABI uses big GOTs.
5534         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
5535         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
5536         (load_address): Add some NewABI PIC support.
5537         (macro): Likewise.
5538         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
5539         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
5541 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5543         * config/tc-mips.c (load_address): Use mips_gp_register instead
5544         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
5545         instead.
5546         (macro): Use mips_gp_register instead of hardcoded value.
5548 2002-05-30  Richard Henderson  <rth@redhat.com>
5550         * expr.h (operatorT): Add O_md17..O_md32.
5551         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
5552         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5553         O_tprelhi, O_tprello, O_tprel): New.
5554         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5555         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5556         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5557         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5558         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
5559         (md_apply_fix3): Handle TLS relocations.
5560         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5561         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5562         associated TLS reloc.  Check lituse_tls relocs match up.
5563         (emit_insn): Handle TLS relocations.
5564         (ldX_op): Remove.
5566         * doc/c-alpha.texi: Add docs for tls relocations.
5568 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5570         * config/tc-mips.c (mips_gprel_offset): New variable.
5571         (s_gpvalue): Use it.
5573 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
5575         * gas/config/tc-d10v.c (check_resource_conflict): Only check
5576         write-write conflicts.
5577         (md_assemble): Reformat introductory comment.
5578         (parallel_ok): Prevent packing only if the first
5579         instruction cannot be packed.
5581 2002-05-30  Jason Eckhardt <jle@redhat.com>
5582             Tom Rix <trix@redhat.com>
5584         * config/tc-d10v.c (build_insn): Check for immediates.
5586 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5588         * config/tc-mips.c: Replace GP in comments by $gp.
5589         (mips_big_got): Initialize.
5590         (mips_trap): Initialize.
5591         (load_address): Use mips_gp_register instead of hardcoded value.
5592         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5593         (macro): Use mips_gp_register instead of hardcoded value.
5594         (macro2): Change load_address calls.
5595         (md_pcrel_from): Comment formatting.
5596         (s_cpload): Use mips_gp_register instead of hardcoded value.
5597         (s_cprestore): Likewise. Comment formatting.
5598         (s_gpword): Fix data type.
5599         (s_cpadd): Use mips_gp_register instead of hardcoded value.
5600         (nopic_need_relax): Replace GP in comments by $gp.
5601         (mips_elf_final_processing): Better comment.
5603 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
5605         * configure.in: Add DLX configuraton
5606         * Makefile.am: Add DLX configuraton
5607         * configure: Regenerate.
5608         * Makefile.in: Regenerate.
5609         * config/tc-dlx.c: New file.
5610         * config/tc-dlx.h: New files.
5611         * NEWS: Mention new support.
5613 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
5615         * config/obj-coff.c (write_object_file): Add missing semicolon.
5617 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5619         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5620         by the define. Remove superfluous check of mips_opts.mips16.
5621         (append_insn): Likewise. Canonicalize variable increments.
5622         (macro_build): Canonicalize variable increments.
5623         (macro_build_lui): Likewise.
5624         (load_register): Likewise.
5625         (load_address): Move pointer initialization.
5626         (macro): Move pointer to a more local scope. Canonicalize variable
5627         increments. Better comments. Replace magic constant for RA by the
5628         define.
5629         (macro2): Replace magic constant for RA by the define. Canonicalize
5630         variable increments.
5631         (mips_ip): Canonicalize variable increments.
5632         (mips16_ip): Replace magic constant for RA by the define.
5633         (my_getSmallParser): Canonicalize variable increments/decrements.
5634         (my_getPercentOp): Likewise.
5635         (my_getSmallExpression): Likewise.
5636         (s_align): Likewise.
5637         (s_mipsset): Likewise.
5638         (s_cpsetup): Likewise.
5639         (s_insn): Remove superfluous check of mips_opts.mips16.
5640         (s_mips_stab): Likewise.
5641         (mips_handle_align): Canonicalize variable increments.
5642         (s_mips_ent): Likewise.
5643         (s_mips_end): Add comment.
5645 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5647         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5648         * configure: Regenerate.
5650 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
5652         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5653         * Makefile.in: Regenerate.
5654         * dep-in.sed: Reorder to match OBJS in Makefile.am.
5655         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5656         * configure: Regenerate.
5657         * as.h: Use #include "" instead of <> for local header files.
5658         * flonum-konst.c: Likewise.
5659         * flonum-mult.c: Likewise.
5660         * gasp.c: Likewise.
5661         * listing.c: Likewise.
5662         * config/tc-ia64.h: Likewise.
5663         * config/tc-v850.h: Likewise.
5665 2002-05-24  TAMURA Kent <kent@netbsd.org>
5667         * configure.in: Add a target for i386-netbsdpe.
5668         * configure: Regenerate.
5670 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5672         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5673         (obj_elf_common): Call elf_common.
5674         (obj_elf_tls_common): New function.
5675         (elf_pseudo_tab): Support .tls_common.
5676         (special_sections): Add .tdata and .tbss.
5677         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5678         sections.
5679         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5680         (obj_elf_parse_section_letters): Include T in error message.
5681         * config/tc-ppc.c (ppc_section_letter): Likewise.
5682         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5683         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5684         SEC_MERGE.
5685         * config/tc-sparc.c (md_apply_fix3): Likewise.
5686         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5687         Define them if not BFD_ASSEMBLER.
5688         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5689         and @NTPOFF.
5690         (md_apply_fix3): Add TLS relocs.
5691         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5692         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5693         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5694         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5695         (ia64_elf_section_letter): Include T in error message.
5696         (md_begin): Support TLS operators.
5697         (md_operand): Likewise.
5698         (ia64_gen_real_reloc_type): Support TLS relocs.
5699         * write.c (adjust_reloc_syms): Don't change symbols in
5700         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5702 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
5704         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5705         round the relocation up rather than down.
5707 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
5709         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5710         flag.
5711         * doc/as.texinfo: Document that the COFF version of .section
5712         ignores the 'a' flag.
5714 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
5716         * config/tc-alpha.c (assemble_tokens): Protect use of
5717         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5719         * write.c (size_seg): Check adjustment to last frag.
5720         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5721         section alignment.
5722         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5723         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5724         (write_object_file): Invoke md_do_align if available, and use
5725         frag_align_code on text sections.
5726         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5727         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5728         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5729         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5730         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
5731         BFD_ASSEMBLER too.
5733 2002-05-22  H.J. Lu <hjl@gnu.org>
5735         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5736         for source file.
5738 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
5740         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5741         as ELF builds.
5743 2002-05-22  H.J. Lu <hjl@gnu.org>
5745         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5746         for one .loc for compiler.
5748 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5750         * config/tc-mips.c (macro): Relax warning, it's toot strict for
5751         embedded-PIC.
5753 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5755         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5756         Optimize the rotate by zero case.
5758 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
5760         * configure.in: Remove accidental enabling of bfd_gas=yes for
5761         sh-coff targets.
5762         * configure: Regenerate.
5764 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
5766         * app.c: Fix formatting.
5767         * as.c: Likewise.
5768         * ehopt.c: Likewise.
5769         * expr.c: Likewise.
5770         * input-file.c: Likewise.
5771         * listing.c: Likewise.
5772         * macro.h: Likewise.
5773         * stabs.c: Likewise.
5774         * symbols.c: Likewise.
5776 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
5778         * config/obj-generic.c: Delete file.
5779         * config/obj-generic.h: Likewise.
5781 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5783         * config/tc-avr.c (mcu_types): Update for new devices.
5785 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5787         * config/tc-mips.c (macro): Warn about wrong la/dla use.
5789 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5791         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5792         worked sometimes by accident. Fix copy&paste comment.
5794 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5796         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5797         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5798         (mips_elf_final_processing): Let n32 use .reginfo.
5800 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5802         * config/tc-mips.c (append_insn): Fix too small range of variable.
5804 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
5806         * config/tc-arm.c (arm_cleanup): Remove redundant call to
5807         listing_prev_line().
5809 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
5811         * config/tc-arm.c (md_assemble): Remove redundant call to
5812         listing_prev().
5814         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5815         loc_directive_seen.
5817         * stabs.c (s_stab_generic): Fix grammatical error in warning
5818         message.
5820 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
5822         * write.c (subsegs_finish): Don't specially align last subseg.
5824 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
5826         * stabs.c (s_stab_generic): Warn about a description field that is
5827         too big.
5829         * config/obj-coff.c: Fix compile time warnings when compiling
5830         without BFD_ASSEMBLER defined.
5831         Fix formatting.
5833         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5834         target.
5835         (md_pcrel_from_section): Use md_pcrel_from().
5837 2002-05-11  Bruno Haible  <bruno@clisp.org>
5839         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5840         by dwarf2_directive_loc, instead of calling dwarf2_where.
5842 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5844         * config/obj-coff.h: Fix formatting.
5845         * config/tc-mcore.c: Likewise.
5846         * config/tc-mn10300.c: Likewise.
5847         * config/tc-openrisc.c: Likewise.
5848         * config/tc-or32.c: Likewise.
5849         * config/tc-pdp11.c: Likewise.
5850         * config/tc-ppc.c: Likewise.
5851         * config/tc-ppc.h: Likewise.
5852         * config/tc-sh64.c: Likewise.
5853         * config/tc-sh.c: Likewise.
5854         * config/tc-tic54x.c: Likewise.
5855         * config/tc-xstormy16.c: Likewise.
5856         * config/tc-xstormy16.h: Likewise.
5858 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
5860         * config/obj-coff.c: Fix formatting.
5861         * config/obj-elf.c: Likewise.
5862         * config/tc-alpha.c: Likewise.
5863         * config/tc-arm.c: Likewise.
5864         * config/tc-d10v.c: Likewise.
5865         * config/tc-d30v.c: Likewise.
5866         * config/tc-h8300.c: Likewise.
5867         * config/tc-hppa.c: Likewise.
5869 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
5871         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5872         reloc when no_cond_jump_promotion.
5874 2002-05-08  Jim Wilson  <wilson@redhat.com>
5876         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5877         current variable part of frag.
5879 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
5881         * config/tc-mmix.c: Fix formatting.
5882         * config/tc-mmix.h: Likewise.
5884 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
5886         * configure: Regenerate.
5888 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
5890         * config/tc-m68k.c: Fix formatting.
5892 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
5894         * Makefile.am: Honour DESTDIR.
5895         * Makefile.in: Regenerate.
5897 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
5899         * config/tc-ia64.c: Fix formatting.
5900         * config/tc-ia64.h: Likewise.
5902 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
5904         * config/tc-mips.c: Fix formatting.
5905         * config/tc-s390.c: Likewise.
5906         * config/tc-s390.h: Likewise.
5908 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
5910         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5911         information for instructions.
5913 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
5915         * as.h: Fix formatting.
5916         * cgen.c: Likewise.
5917         * cgen.h: Likewise.
5918         * dwarf2dbg.c: Likewise.
5919         * frags.h: Likewise.
5920         * gasp.c: Likewise.
5921         * macro.c: Likewise.
5922         * read.c: Likewise.
5923         * stabs.c: Likewise.
5924         * symbols.c: Likewise.
5926 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
5928         * app.c (mri_pseudo): Only declare for TC_M68K.
5930         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5931         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5932         BFD_RELOC_16_BASEREL.
5933         (md_assemble): Likewise.
5934         (md_apply_fix3): Likewise.
5936 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
5938         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5939         zero into an add of zero - it is not the same.
5941 2002-05-01  Arati Dikey <aratid@kpit.com>
5943         * tc-sh.c (get_specific): Generate warning if the same
5944         destination register is used in parallel instructions.
5946 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
5948         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5950 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
5952         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5953         backwards to prevent cascading errors.
5955 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
5957         * configure.in: Add support for powerpc-*-windiss.
5958         * configure: Regenerated.
5960 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
5962         * config/tc-s390.c (md_parse_option): Formatting.
5964         * config/tc-i386.c: Formatting fixes, add missing space in error
5965         message.
5967 2002-04-24  Christian Groessler <chris@groessler.org>
5969         * config/tc-z8k.c (build_bytes): Add support for new cases:
5970         CLASS_IGNORE and ARG_NIM4.
5971         (md_assemble): Prevent destruction of input_line_pointer if
5972         get_operands returns failure.
5974 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
5976         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5977         instructions to be generated by macros.
5979 2002-04-24  Andreas Schwab  <schwab@suse.de>
5981         * config/tc-i386.c (output_jump, output_disp)
5982         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5983         more.
5984         (md_apply_fix3): Remember addend value for rela relocations.
5985         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5987 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
5989         * config/tc-mips.c (macro_build): Add close-parenthesis missing
5990         from previous change.
5992 2002-04-22  Eric Christopher  <echristo@redhat.com>
5994         * config/tc-mips.c (macro_build): Add warning if macro instructions
5995         are expanded into a branch delay slot.
5997 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
5999         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
6000         numbers, gdb relies on them to detect the start of the prologue.
6002 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6004         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
6005         symbols in merge sections.
6007 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
6009         * as.c (main): Don't reference _bfd_chunksize.
6011 2002-04-15  Tom Rix  <trix@redhat.com>
6013         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
6014         symbols in merge sections.
6016 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
6018         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
6019         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
6020         argument for the precision.
6021         (gen_to_words): Update accordingly.
6023 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
6025         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
6026         BFD_VERSION_STRING unavailable.
6027         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
6029 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
6031         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
6032         symbol_used_in_reloc_p is true.
6034         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
6035         endian hosts.
6037 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
6039         * dep-in.sed: Cope with absolute paths.
6040         * Makefile.am (dep.sed): Subst TOPDIR.
6041         Run "make dep-am".
6042         * Makefile.in: Regenerate.
6044 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6046         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
6047         (mips_ip): Remove unused variable.
6048         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
6049         unsigned char with bfd_byte.
6050         (s_file): Remove unused variable.
6051         (s_mips_ent): Likewise.
6053 2002-04-03  Tom Rix  <trix@redhat.com>
6055         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
6056         (build_insn): Same.
6057         (find_opcode): Fix warning in as_warn.
6058         * config/tc-d10v.h: Update Copyright.
6060 2002-04-03  Alan Matsuoka <alanm@redhat.com>
6061             Tom Rix  <trix@redhat.com>
6063         From Jeff Knaggs <jknaggs@redhat.com>
6064         * config/tc-d10v.c (check_resource_conflict): New function to
6065         check for resource conflicts.
6067         From Jason Eckhardt  <jle@redhat.com>
6068         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
6069         imm3 fields.
6070         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
6071         reserved control registers is used.
6072         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
6073         imm3 fields.
6075         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
6076         * tc-d10v.c (parallel_ok): Prevent packing only if the first
6077         instruction cannot be packed.
6079         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
6080         * gas/config/tc-d10v.c (check_resource_conflict): Only check
6081         write-write conflicts.
6082         (md_assemble): Reformat introductory comment.
6083         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
6084         arguments.
6086 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
6088         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
6089         O_logical_not>): Derive final_seg from add_symbol.
6090         <O_multiply..O_logical_or>: More final_seg twiddles.
6092 2002-04-01  Jessica Han  <jessica@cup.hp.com>
6094         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
6095         in 32-bit mode.
6097 2002-03-27  Andreas Schwab  <schwab@suse.de>
6099         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
6100         field for pc-relative fixups.
6101         (output_disp): Likewise.
6102         (md_estimate_size_before_relax): Likewise.
6103         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
6104         pc-relative fixups in 64bit mode.
6106 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
6108         * config/te-aix5.h: Typo fix.
6110 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
6112         * Makefile.am: Run "make dep-am".
6113         * Makefile.in: Regenerate.
6114         * doc/Makefile.in: Regenerate.
6116 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
6118         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
6119         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
6121 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
6123         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
6124         the EXTENDED bit here; report the estimate according to the
6125         current size.
6127 2002-03-18  Tom Rix  <trix@redhat.com>
6129         * configure.in: Add AIX 5 support.
6130         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
6131         * config/te-aix5.h: New file. AIX 5 support.
6132         * configure: Regenerate.
6134 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
6136         * po/fr.po: Updated version.
6138 2002-03-16  Andreas Jaeger  <aj@suse.de>
6140         * doc/c-mips.texi (Machine Dependencies): Add new node.
6142 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
6144         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
6145         (mips_opts): Initialize "ase_mips3d" member.
6146         (file_ase_mips3d): New variable.
6147         (CPU_HAS_MIPS3D): New macro.
6148         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
6149         based on command line options and configuration defaults.
6150         (macro_build, mips_ip): Accept MIPS-3D instructions if
6151         mips_opts.ase_mips3d is set.
6152         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
6153         Add support for "-mips3d" and "-no-mips3d" options.
6154         (OPTION_ELF_BASE): Move to accommodate new options.
6155         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
6156         (mips_elf_final_processing): Add a comment indicating that a
6157         MIPS-3D ASE ELF header flag should be set, when one exists.
6158         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
6159         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
6160         nomips3d" directives.
6162 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
6164         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
6165         a weak symbol in same section to be within reach.
6167 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
6169         * po/fr.po: Updated version.
6171 2002-03-12  Andreas Schwab  <schwab@suse.de>
6173         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
6174         body record so that an error is given for misplaced .save
6175         pseudo-ops.
6177 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
6179         * config/tc-i386.h (REX_OPCODE): Define.
6180         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
6181         (rex_byte): typedef to int.
6182         * config/tc-i386.c: Group prototypes and vars together.
6183         Formatting fixes.  Remove occurrences of "register" keyword.
6184         (true): Delete.
6185         (false): Delete.
6186         (mode_from_disp_size): Add INLINE keyword to prototype.
6187         (fits_in_signed_byte): Likewise.
6188         (fits_in_unsigned_byte): Likewise.
6189         (fits_in_unsigned_word): Likewise.
6190         (fits_in_signed_word): Likewise.
6191         (fits_in_unsigned_long): Likewise.
6192         (fits_in_signed_long): Likewise.
6193         (type_names): Constify.
6194         (intel_float_operand): Constify param.
6195         (add_prefix): Use REX_OPCODE.
6196         (md_assemble): Likewise.  Modify for changed rex_byte.
6197         (parse_insn): Split out of md_assemble.
6198         (parse_operands): Likewise.
6199         (swap_operands): Likewise.
6200         (optimize_imm): Likewise.
6201         (optimize_disp): Likewise.
6202         (match_template): Likewise.
6203         (check_string): Likewise.
6204         (process_suffix): Likewise.
6205         (check_byte_reg): Likewise.
6206         (check_long_reg): Likewise.
6207         (check_qword_reg): Likewise.
6208         (check_word_reg): Likewise.
6209         (finalize_imm): Likewise.
6210         (process_operands): Likewise.
6211         (build_modrm_byte): Likewise.
6212         (output_insn): Likewise.
6213         (output_branch): Likewise.
6214         (output_jump): Likewise.
6215         (output_interseg_jump): Likewise.
6216         (output_disp): Likewise.
6217         (output_imm): Likewise.
6219 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
6221         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
6223 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
6225         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
6226         relocs except when BFD64.
6228         * write.c (number_to_chars_bigendian): Don't abort when N is
6229         larger than sizeof (VAL).
6230         (number_to_chars_littleendian): Likewise.
6232 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6234         * config/tc-hppa.c (md_apply_fix3): Add cast.
6235         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
6236         e_rrsel.
6238 2002-03-05  Paul Koning  <pkoning@equallogic.com>
6240         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
6241         (parse_ac5): New function for parsing float regs in float operand.
6242         (parse_expression): Remove attempt to make literals be octal.
6243         (parse_op_no_deferred): Support float literals.
6244         (parse_op): Reject attempts to refer to float regs.
6245         (parse_fop): New function, like parse_op but for float operand.
6246         (md_assemble): Add cases to parse float operands.  Also fix
6247         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
6249 2002-03-04  H.J. Lu <hjl@gnu.org>
6251         * config/obj-elf.c (special_section): Add .init_array,
6252         .fini_array and .preinit_array.
6254         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
6255         .init_array and .fini_array.
6257 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
6259         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
6260         visibility.
6261         (obj_frob_symbol): Copy visibility.
6263 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6265         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
6266         s_text.
6267         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
6269 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
6271         * po/es.po: Updated.
6273 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
6275         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
6276         only, undo the changes made on 2001-06-08, with the
6277         effect being that common or extern symbols are
6278         adjusted for embedded-PIC, but weak symbols are not.
6279         (md_estimate_size_before_relax: Likewise, with the effect
6280         that extern symbols are treated the same as weak symbols
6281         only if not embedded-PIC.
6282         (mips_fix_adjustable) Likewise, with the effect that
6283         weak or extern symbols are not adjusted for embedded-PIC.
6284         (md_apply_fix3): Tweak so that the case where value is zero
6285         is handled more correctly for embedded-PIC code.
6287 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
6289         * doc/as.texinfo (Overview): Add missing @ifset IA64
6291         * configure.in (LINGUAS): Add es.po.
6292         * configure: Regenerate.
6293         * po/es.po: New file.
6295 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6297         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
6298         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
6299         and NO_PIC cases. Code cleanup.
6300         (macro2): Fix handling of 64bit register loads.
6302 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
6304         * doc/as.texinfo: Add entry for IA64.
6305         * doc/c-ia64.texi: New file.
6307 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
6309         * config/tc-hppa.c: Update copyright date.
6311         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
6312         Remove references to chip manufacturers.
6313         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
6314         Correct comments.
6315         (md_show_usage): Remove references to chip manufacturers.  Mention
6316         -mpower4.
6317         (md_begin): Test power4 opcode flag bits.
6319 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
6321         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
6322         count exceeds prologue count.
6323         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
6324         (unwind.label_prologue_count): New member.
6326         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
6328         (get_saved_prologue_count): New function.
6329         (save_prologue_count): New function.
6330         (free_saved_prologue_count): New function.
6331         (dot_label_state): Record state label by calling save_prologue_count().
6332         (dot_copy_state): Restore prologue count by calling
6333         get_saved_prologue_count().
6334         (generate_unwind_image): Free up list of saved prologue
6335         counts by calling free_saved_prologue_counts().
6337 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
6339         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
6340         function declarations.
6342 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
6344         * NEWS: Note that GASP is now deprecated.
6345         * Makefile.am: Do not build gasp-new by default.
6346         * Makefile.in: Regenerate.
6347         * doc/Makefile.am: Do not install gasp.info.
6348         * doc/Makefile.in: Regenerate.
6349         * gas/gasp.texi: Note that gasp is now deprecated.
6351 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
6353         * NEWS: Mark 2.12 branch.
6355 2002-02-19  Tom Tromey  <tromey@redhat.com>
6357         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
6359 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6361         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
6362         option input.
6364 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6366         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
6367         Make bit size independent of architecture switch.
6368         (md_begin): Add warning for -m64 with -Aesa.
6369         (s390_md_end): Use renamed architecture defines.
6371 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
6373         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
6375 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
6377         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
6378         instead of CRIS.
6380 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
6382         * config/tc-mips.c (md_estimate_size_before_relax): Really
6383         make sure we treat weak like extern only for ELF.  (Fixes
6384         patch from 2001-07-25.)
6386 2002-02-15  Ben Elliston  <bje@redhat.com>
6388         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
6389         works as expected.
6391 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
6393         * NEWS: Mention support for MMIX.
6395 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
6397         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
6398         a sequence of indpendent 'if' statements for easier debugging
6399         and future modification.
6401 2002-02-13  Matt Fredette  <fredette@netbsd.org>
6403         * config/tc-m68k.c (md_show_usage): No longer display a
6404         hard-coded "68020" for the default CPU, instead display the
6405         canonical name of the true, configured default CPU.
6406         (m68k_elf_final_processing): Mark objects for sub-68020
6407         CPUs with the new EF_M68000 flag.
6409 2002-02-13  Andreas Schwab  <schwab@suse.de>
6411         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
6412         pc-relative relocations to merge sections in 64-bit mode.
6414 2002-02-13  Ben Elliston  <bje@redhat.com>
6416         * NEWS: Document floating point number handling in gasp.
6417         * gasp.c: Include <assert.h> and "xregex.h".
6418         (is_flonum): New function.
6419         (chew_flownum): Likewise.
6420         (change_base): Consume flonums from the input, where possible.
6421         * doc/gasp.texi (Constants): Document floating point numbers.
6423 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6425         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
6426         that implicitly use LR and RR selectors.
6428 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
6430         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
6431         and `epsw' as available on AM33 and above only.
6432         (other_register_name): Add logic to handle machine type encoded in
6433         reg_number.
6435 2002-02-11  Tom Rix  <trix@redhat.com>
6437         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
6438         xcoff64.
6440 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
6442         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
6443         Use all over.
6445 2002-02-11  Jan Hubicka  <jh@suse.cz>
6447         * i386.c (md_assemble): Support 32bit address prefix.
6448         (i386_displacement): Likewise.
6449         (i386_index_check): Accept 32bit addressing in 64bit mode.
6451 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6453         * config/tc-sh.c (dot): Removed unused function.
6455 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
6457         * Makefile.am: "make dep-am".
6458         * Makefile.in: Regenerate.
6459         * aclocal.m4: Regenerate.
6460         * config.in: Regenerate.
6461         * configure: Regenerate.
6462         * doc/Makefile.in: Regenerate.
6464 2002-02-10  Richard Henderson  <rth@redhat.com>
6466         * doc/c-alpha.texi: New file.
6467         * doc/Makefile.am (CPU_DOCS): Add it.
6468         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
6470 2002-02-09  Richard Henderson  <rth@redhat.com>
6472         * config/tc-alpha.c (O_samegp): New.
6473         (USER_RELOC_P): Include it.
6474         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
6475         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
6476         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
6477         (alpha_validate_fix): New.
6478         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
6480 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
6482         * doc/c-cris.texi: New.
6483         * doc/all.texi: @set CRIS.
6484         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
6485         Include c-cris.texi.
6486         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
6487         * doc/Makefile.in: Regenerate.
6489 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6491         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
6492         determine if a number is a sign-extended 32-bit number.
6493         (load_register): Use IS_SEXT_32BIT_NUM.
6494         (macro): Check if load/store macro handling is using a
6495         constant 32-bit address on 64-bit address systems, and if
6496         so optimize the generation of that address.
6498 2002-02-08  Richard Henderson  <rth@redhat.com>
6500         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
6501         we've eliminated all foreign relocation types yet.
6502         (alpha_fix_adjustable): Likewise.
6504 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
6506         Contribute sh64-elf.
6507         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
6508                     Stephen Clarke <Stephen.Clarke@st.com>
6509         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
6510         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
6511         * config/tc-sh.c (md_relax_table): Added default sizes for
6512         non-PC-relative UNDEF_MOVI, and relaxation sequences for
6513         MOVI_16, MOVI_32 and MOVI_48.
6514         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
6515         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
6516         and MOVI_16.
6517         (shmedia_md_estimate_size_before_relax): Remove redundant
6518         blocks.  Set fragP->fr_var even if relaxation type unchanged.
6519         Retain UNDEF_MOVI until expression decays to number.
6520         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6521         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
6522         relocation types.  Take fixP->fx_addnumber into account too.
6523         (shmedia_md_apply_fix): Likewise.
6524         (shmedia_md_convert_frag): Likewise.
6525         (shmedia_build_Mytes): Likewise.
6526         (sh64_consume_datalabel): Complain about nested datalabel.
6527         Support PIC relocs.  Call sh_parse_name.
6528         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
6529         in tc-sh.h to SHmedia reloc types.
6530         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
6531         MOVI_GOTPC): New relaxation constants.
6532         (md_relax_table): Introduce relaxation directives for PIC-related
6533         constants.
6534         (sh_PIC_related_p): Handle datalabel.
6535         (sh_check_fixup): Choose SH5 PIC relocations.
6536         (sh_cons_fix_new): Added BDF_RELOC_64.
6537         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
6538         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6539         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
6540         current ISA is SHmedia, get 7 bytes.
6541         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
6542         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
6543         void function.
6544         * config/tc-sh64.c (shmedia_apply_fix): Rename to
6545         shmedia_apply_fix3 and make void.
6546         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
6547         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
6548         as_bad.
6549         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
6550         * config/tc-sh64.h (md_parse_name): Take &c as argument.
6551         2001-03-14  DJ Delorie  <dj@redhat.com>
6552         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6553         * doc/Makefile.in(CPU_DOCS): Ditto.
6554         * doc/c-sh64.texi: New file.
6555         * doc/as.texinfo: Add SH64 support.
6556         2001-03-13  DJ Delorie  <dj@redhat.com>
6557         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6558         A_REUSE_PREV so that its purpose is more obvious.
6559         (shmedia_build_Mytes): Ditto.
6560         2001-03-07  DJ Delorie  <dj@redhat.com>
6561         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6562         before processing.
6563         (sh64_vtable_inherit): Ditto.
6564         (strip_datalabels): New, strip "datalabel" from given line.
6565         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6566         pseudos.
6567         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
6568         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6569         call ...
6570         (shmedia_build_Mytes): ... to here.
6571         2001-03-06  DJ Delorie  <dj@redhat.com>
6572         * config/tc-sh.c: Remove sh64-specific uaquad now that there
6573         is a generic one.
6574         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
6575         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6576         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6577         address by one in call to dwarf2_emit_insn.
6578         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
6579         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
6580         alignment handling broken by imported changes.
6581         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6582         (sh64_handle_align): Declare.
6583         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6584         (sh64_max_mem_for_rs_align_code): Declare.
6585         (enum sh64_isa_values): Moved here from tc-sh64.c.
6586         (md_do_align): Define.
6587         (sh64_do_align): Declare.
6588         (struct sh64_tc_frag_data): New.
6589         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
6590         changed.
6591         (TC_FRAG_INIT): Change to set new datatype.
6592         (struct sh64_segment_info_type): Rename member
6593         last_flushed_location to last_contents_mark.  All users changed.
6594         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6595         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6596         * config/tc-sh.c (md_pseudo_table): Add ".abi".
6597         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6598         of unsetting seen_insn.
6599         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6600         call sh64_update_contents_mark.
6601         (sh_handle_align): Remove HAVE_SH64-conditioned code.
6602         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6603         enum sh64_isa_values.
6604         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
6605         (emitting_crange): Boolean guard moved to file scope from function
6606         scope in sh64_set_contents_type.
6607         (s_sh64_abi): New.
6608         (sh64_update_contents_mark): New; most split out from
6609         sh64_flush_pending_output.
6610         (shmedia_md_end): Call sh64_update_contents_mark.  Set
6611         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6612         (sh64_do_align): New function.
6613         (sh64_max_mem_for_rs_align_code): New function.
6614         (sh64_handle_align): Rename from shmedia_do_align.  Make
6615         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
6616         four.  Change return-type to void.
6617         (shmedia_elf_new_section): Remove.
6618         (shmedia_md_assemble): Call sh64_update_contents_mark.
6619         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
6620         new frag.  Call sh64_update_contents_mark after making the new
6621         frag.
6622         (sh64_flush_pending_output): Just call sh64_update_contents_mark
6623         and sh_flush_pending_output.
6624         (sh64_flag_output): Also call md_flush_pending_output, but add
6625         condition on not emitting_crange.
6626         (sh64_tc_cons_fix_new): Remove.
6627         2001-01-12  Nick Clifton  <nickc@redhat.com>
6628         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6629         alignment handling scheme imported from sourceware.
6630         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
6631         * config/tc-sh64.h (TARGET_FORMAT): Define.
6632         (sh64_target_format): Prototype.
6633         * config/tc-sh64.c (sh64_target_mach): New function.
6634         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
6635         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6636         zero_address_frag instead of copying the frag of the symbol.
6637         (shmedia_frob_file_before_adjust): Ditto.
6638         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6639         to valueT to remove signedness.
6640         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
6641         headers to output_bfd.  Do not evaluate symbols if final is false;
6642         do emit fixups.
6643         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6644         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6645         to the current frag, call shmedia_md_convert_frag to emit fixups
6646         and make frag_wane neutralize the frag.  Update comments.
6647         * config/tc-sh.c (md_convert_frag): Change caller of
6648         shmedia_md_convert_frag.
6649         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
6650         * config/tc-sh64.h: Tweak comments and correct formatting.
6651         * config/tc-sh64.c: Ditto.
6652         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6653         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6654         for the no-relocation case.
6655         (shmedia_check_limits): Fix range check being off-by-one for PTA.
6656         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
6657         wrappers.
6658         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
6659         comment.
6660         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6661         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6662         expansion.
6663         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6664         Correct comment.
6665         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6666         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6667         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6668         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6669         al>: Set lowest bit of field to relocate to 1 and rest to empty,
6670         if reloc is emitted.
6671         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
6672         New options plus bugfixes.
6673         * config/tc-sh.c (md_longopts): New options "-no-expand" and
6674         "-expand-pt32".
6675         (md_parse_option): Handle new options.
6676         (md_show_usage): Add blurb for new options.
6677         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6678         (sh64_expand, sh64_pt32): New variables.
6679         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6680         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6681         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
6682         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
6683         <resolved previously-pc-relative relocs>: Handle
6684         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6685         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6686         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6687         points to SHcompact code.
6688         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6689         SH64PCREL16)>: Check that ISA of what operand points at and
6690         PTA/PTB matches, or emit error.
6691         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6692         SHMEDIA_BFD_RELOC_PT.
6693         (shmedia_immediate_op): If pcrel, emit fixup also for constant
6694         operand.
6695         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6696         condition for MOVI expansion.
6697         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6698         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
6699         sh64_expand.
6700         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6701         fixup.
6702         (sh64_target_format): Error-check setting of sh64_pt32 and
6703         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
6704         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6705         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6706         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
6707         * config/tc-sh64.c: Improve comments.
6708         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
6709         not say the linker will check correctness of PTA/PTB expansion.
6710         (shmedia_md_end): Make non-static.
6711         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
6712         prototype.
6713         * config/tc-sh.c (sh_finalize): Remove.
6714         * config/tc-sh.h (md_end): Do not define.
6715         Remove prototype for sh_finalize.
6716         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
6717         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6718         sh64_section_data container when storing section type in tdata
6719         field in elf_section_data.
6720         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6721         EF_SH5.
6722         * Makefile.am: Update dependencies.
6723         * Makefile.in: Regenerate.
6724         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
6725         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6726         dwarf2_emit_insn call with test on debug_type.
6727         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
6728         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6729         CRT_SH5_ISA32 sticky for 64-bit.
6730         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
6731         Generate .crange sections when switching ISA mode or emitting
6732         constants in same section as code.
6733         * config/tc-sh64.c: Reformat structure definitions.
6734         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6735         variables.
6736         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
6737         to emit a .cranges descriptor when contents type changes.  Only
6738         emit error if changing contents type and -no-mix is in effect.
6739         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6740         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6741         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
6742         sh64_flush_last_crange over sections.
6743         When checking main symbol of datalabel symbol, check for
6744         STO_SH5_ISA32, not ISA type of section in definition.
6745         (shmedia_frob_file_before_adjust): Check main symbol for
6746         STO_SH5_ISA32; don't check ISA type of section in definition.
6747         (shmedia_frob_section_type): Adjust for .cranges; set section flag
6748         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6749         .cranges entries have been output.
6750         (shmedia_elf_new_section): Just call md_flush_pending_output.
6751         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6752         fix.  Do not set tc_segment_info_data.in_code for section.  Call
6753         sh64_set_contents_type for SHmedia code.
6754         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6755         false.  Call md_flush_pending_output.
6756         (sh64_target_format): Check that -no-mix and
6757         -shcompact-const-crange are used in sane combination with other
6758         options.
6759         (shmedia_md_pcrel_from_section): Check type of fix for how to
6760         adjust pc-relative.
6761         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6762         not ISA type of section in definition.
6763         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6764         hold contents-type state.
6765         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6766         (sh64_flush_pending_output): Declare.
6767         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6768         (sh64_tc_cons_fix_new): Declare.
6769         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6770         call sh64_flag_output.
6771         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
6772         call sh64_set_contents_type to mark SHcompact code and set
6773         seen_insn.
6774         (md_longopts): New options "-no-mix" and
6775         "-shcompact-const-crange".
6776         (md_parse_option): Handle new options.
6777         (md_show_usage): Add blurb for new options.
6778         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6779         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
6780         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6781         (sh64_last_insn_frag): New.
6782         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6783         to get frag for insn opcode for generating fixups; do not assume it
6784         is the same frag.
6785         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6786         for new insn.
6787         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6788         section.
6789         (TC_FRAG_TYPE): Define as fragS *.
6790         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6791         (sh64_last_insn_frag): Declare.
6792         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6793         not == NULL before dereferencing.
6794         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
6795         Get rid of BFD section flag and EF_SH64_ABI64.
6796         * config/tc-sh64.c (shmedia_frob_section_type): Use
6797         elf_section_data (sec)->tdata, not a specific BFD section flag, to
6798         communicate the section as containing SHmedia code.  Describe why.
6799         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
6800         EF_SH64 regardless of ABI.
6801         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6802         in error message.  Handle resolved expressions for
6803         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6804         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6805         (shmedia_check_limits): Handle BFD_RELOC_64.
6806         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6807         a STO_SH5_ISA32 symbol, only the BFD value.
6808         2000-12-11  Ben Elliston  <bje@redhat.com>
6809         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6810         dwarf2_generate_asm_lineno.
6811         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
6812         Handle PC-relative MOVI expansions with assembler relaxation.
6813         Generate PC-relative relocs from 16-bit PC-relative expressions.
6814         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6815         (shmedia_md_pcrel_from_section): ...here.
6816         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6817         turned completely resolved.  Adjust relocation type for 16-bit
6818         immediate operands that has turned PC-relative.  Adjust back for
6819         MD_PCREL_FROM_SECTION being applied twice.
6820         (shmedia_md_convert_frag): Always emit reloc for expression with
6821         global or weak symbol.  Handle relaxation result for PC-relative
6822         expressions.
6823         (shmedia_md_estimate_size_before_relax): An expression with a weak
6824         or global symbol can not be relaxed.  Break out tests for
6825         relaxable symbol into variable sym_relaxable.
6826         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6827         UNDEF_MOVI)>: Break out any PC-relative expression and change
6828         relaxation type.
6829         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6830         opjp.
6831         <case A_IMMS16>: Fix typo for initial minor relaxation type of
6832         MOVI expansion.  If X_op_symbol of the immediate expression is
6833         set, make an expression symbol for the argument to frag_var.
6834         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6835         relaxations.
6836         (END): Adjust for new relaxations.
6837         (md_relax_table): Add entries for new relaxations.
6838         2000-12-07  Ben Elliston  <bje@redhat.com>
6839         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6840         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
6841         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6842         SHORI operand offsets in PT/PTA/PTB expansions.
6843         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6844         Implement DataLabel semantics.
6845         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6846         shmedia_frob_file_before_adjust.
6847         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6848         (DATALABEL_SUFFIX): Define.
6849         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6850         symbol list to update "datalabel" symbols to their main symbol
6851         counterparts.
6852         (shmedia_frob_file_before_adjust): New.
6853         (sh64_adjust_symtab): For remaining datalabel symbols, set to
6854         undefined and set STT_DATALABEL.
6855         (sh64_frob_label): Initialize TC symbol field.
6856         (sh64_consume_datalabel): Actually implement semantics.  New
6857         parameter operandf, call it instead of expression.
6858         (sh64_exclude_symbol): New.
6859         * config/tc-sh64.h (md_parse_name): Pass on the function operand
6860         to sh64_consume_datalabel.
6861         (tc_symbol_new_hook): Define to tc_frob_symbol.
6862         (TC_SYMFIELD_TYPE): Define to symbolS *.
6863         (tc_frob_symbol): Define to call sh64_exclude_symbol.
6864         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
6865         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6866         case.
6867         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6868         generating dwarf2 debug information.
6869         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
6870         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6871         elf64-sh64 for the 64-bit ABI.
6872         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6873         option.
6874         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
6875         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6876         case-insensitivity.
6877         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
6878         * config/tc-sh64.c: Tweak comments, formatting and error messages.
6879         (enum sh64_abi_values): New type.
6880         (enum sh64_isa_values): New type.
6881         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
6882         (seen_shcompact_mode, seen_shmedia_mode): Delete.
6883         (sh64_abi): Replace shmedia_64.
6884         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6885         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6886         (s_sh64_mode): Check validity for this target.
6887         (sh64_target_format): Initialize defaults for ISA and ABI.
6888         Fallback to old object format if no SH64 ISA or ABI has been
6889         specified.
6890         * config/tc-sh.c (md_parse_option): Check combinations for errors.
6891         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6892         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6893         * config/tc-sh64.h: Fix typo in comment.
6894         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
6895         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6896         <PT fixups for absolute values>: Size will be longest, not
6897         shortest.
6898         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
6899         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6900         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6901         and l1 to hold lowercase of two first characters.  Change all
6902         remaining TO_LOWER to tolower.
6903         * config/tc-sh64.c (TO_LOWER): Delete.
6904         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6905         (md_parse_name): Define.
6906         (sh64_consume_datalabel): Declare.
6907         (DOLLAR_DOT): Define.
6908         * config/tc-sh64.c (shmedia_parse_exp): New.
6909         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6910         (shmedia_parse_reg): Remove const from src
6911         parameter.
6912         (shmedia_get_operands): Ditto for args parameter and ptr variable.
6913         (shmedia_md_assemble): Ditto for op_end variable.
6914         (shmedia_get_operand): Ditto for ptr parameter and src variable.
6915         Use shmedia_parse_exp, not parse_exp.
6916         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6917         parameter.  All callers changed.
6918         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
6919         callers changed.
6920         (shmedia_parse_reg): Put first two character in local variables.
6921         Use tolower, not TO_LOWER.  If no register is found and argtype
6922         indicates a control register, scan shmedia_creg_table
6923         case-insensitive.
6924         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
6925         * Makefile.am (CPU_TYPES): Add sh64.
6926         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6927         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6928         Regenerate dependencies.
6929         * Makefile.in: Regenerate.
6930         * configure.in: Add support for sh64-*-elf*.
6931         * configure: Regenerate.
6932         * config/tc-sh64.h: New.
6933         * config/tc-sh64.c: New.
6934         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6935         .mode, .isa and .uaquad.
6936         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6937         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6938         [HAVE_SH64] (END): Define as 10.
6939         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6940         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6941         MOVI_64): Define.
6942         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6943         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6944         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6945         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6946         Define.
6947         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6948         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6949         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6950         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6951         SHmedia instructions.  Handle state-change after switching to
6952         SHcompact.
6953         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6954         (md_parse_option) [HAVE_SH64]: Parse new options.
6955         (md_show_usage) [HAVE_SH64]: Show usage of new options.
6956         (md_convert_frag) [HAVE_SH64] <default>: Call
6957         shmedia_md_convert_frag instead of abort.
6958         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6959         BFD_RELOC_SH_SHMEDIA_CODE.
6960         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6961         SHcompact or SHmedia code.
6962         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6963         shmedia_md_apply_fix instead of abort.
6964         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6965         result from calling shmedia_md_estimate_size_before_relax instead
6966         of calling abort.
6967         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6968         do the work.
6969         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6970         shmedia_init_reloc and do nothing more if it returns non-zero.
6971         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6972         * po/POTFILES.in: Regenerate.
6973         * po/gas.pot: Regenerate.
6975 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
6977         * config/tc-sh.c (parse_at): Install the correct version of
6978         2002-02-04's patch.
6980         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6981         assume fixP->fx_subsy is non-NULL.
6983 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6985         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6986         A_DISP_PC_ABS, and adjust it by -4.
6987         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6988         expected.
6989         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6990         the operand type is not A_DISP_PC_ABS.
6992 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
6994         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6995         common and weak symbols.  Handle common and weak symbols as
6996         undefined symbols with regards to GREG handling and merging.
6997         (mmix_frob_file): Ditto.
6999 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
7001         * configure.in (hppa-*-netbsd*): New target.
7002         * configure: Regenerate.
7003         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
7005 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
7007         * config/tc-v850.c: Add missing prototypes amd use old-style
7008         function definitions.
7009         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
7010         (sdata_section tdata_section, zdata_section, sbss_section,
7011         tbss_section, zbss_section, rosdata_section, rozdata_section,
7012         scommon_section, tcommon_section, zcommon_section,
7013         call_table_data_section, call_table_text_section): Delete.
7014         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
7015         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
7016         v850_call_table_data, v850_call_table_text): Delete.
7017         (struct v850_seg_entry): New.
7018         (v850_seg_table): New.
7019         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
7020         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
7021         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
7022         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
7023         (do_v850_seg): New.
7024         (v850_seg): New.
7025         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
7026         recording of alignment.
7027         (md_pseudo_table): Use v850_seg.
7028         (md_begin): Don't init .call_table_data and .call_table_text here.
7029         Set v850_seg_table bss entry.
7031 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
7033         Support on-demand global register allocation by passing on
7034         base-plus-offset relocs to the linker.
7035         * config/tc-mmix.c: Tweak and fix typos in comments.
7036         (allocate_undefined_gregs_in_linker): New variable.
7037         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
7038         (md_longopts): Add --linker-allocated-gregs.
7039         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
7040         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
7041         (md_show_usage): Update text for -x.  Add text for
7042         --linker-allocated-gregs.
7043         (tc_gen_reloc): Derive default value for addend from val and
7044         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
7045         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
7046         GREG if allocate_undefined_gregs_in_linker.
7047         * doc/as.texinfo (Overview) <Target MMIX options>: Add
7048         --linker-allocated-gregs.
7049         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
7050         --linker-allocated-gregs.  Mention that it's implied by -x.
7051         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
7052         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
7054         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
7056 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
7058         * Makefile.am: Run "make dep-am"
7059         * Makefile.in: Regenerate.
7061 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
7063         * config/tc-or32.c: New file.
7064         * config/tc-or32.h: New file.
7065         * configure.in: Add support for or32 targets.
7066         * configure: Regenerate.
7067         * config/obj-coff.c: Add support for or32 targets.
7068         * config/obj-coff.h: Add support for or32 targets.
7069         * Makefile.am: Add support for or32 targets.
7070         * Makefile.in: Regenerate.
7071         * NEWS: Mention support for OpenRISC.
7072         * doc/Makefile.in: Regenerate.
7073         * po/POTFILES.in: Regenerate.
7074         * po/gas.pot: Regenerate.
7076 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
7078         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
7079         and mod.
7081 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
7083         * config/tc-mips.c (tc_gen_reloc): Arrange for
7084         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
7085         their LO16 parts, even for ELF.
7087 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
7089         * config/tc-i386.c: Protect definitions of true and false
7090         from redefinition.
7092 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
7094         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
7095         made because of .weak, if they are neither defined nor used in any
7096         way.
7098 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
7100         * configure: Regenerated.
7102 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
7104         * doc/Makefile.am (install): Depend on install-info.
7105         * doc/Makefile.in: Regenerate.
7107 2002-01-26  Nick Clifton <nick@redhat.com>
7109         * po/fr.po: Updated version
7111 2002-01-24  Kazu Hirata  <kazu@hxi.com>
7113         * config/tc-h8300.c (check_operand): Don't print a warning
7114         when a valid 24-bit address is given to a 16-bit address
7115         operand.
7117 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7119         * config/tc-sh.c (sh_elf_suffix): Removed.
7120         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
7121         sh_end_of_match, sh_parse_name): New functions.
7122         (sh_elf_cons): Simplify.
7123         (parse_exp): Reject misplaced PIC operands.
7124         (md_undefined_symbol): Simplify.
7125         (sh_fix_adjustable): Let @GOTOFF be adjusted.
7126         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
7127         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
7128         Complain if subsy remains at the end.
7129         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
7130         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
7132 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
7134         * config/tc-mn10300.c (xr_registers): Move `pc'...
7135         (other_registers): ... here.
7137 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
7139         * Makefile.am: Run "make dep-am".
7140         * Makefile.in: Regenerate.
7141         * gas/po/POTFILES.in: Regenerate.
7143 2002-01-21  DJ Delorie  <dj@redhat.com>
7145         * config/obj-coff.c (obj_coff_init_stab_section): Make the
7146         stabstr_name allocation permanent, as it will be referenced from
7147         the section hash.
7149 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
7151         * configure.in (ia64-*-netbsd*): New target.
7152         * configure: Regenerate.
7154 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
7156         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
7157         to @dots call.
7158         <Detailed description, ARM options>: Ditto.
7159         * doc/c-arm.texi (ARM Options): Ditto.
7161 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
7163         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
7164         do_mia, do_mar and do_mra respectively.
7165         (do_mav_*): Renamed from do_c_*.
7166         (mav_reg_required_here, mav_parse_offset): Renamed from
7167         cirrus_reg_required_here and cirrus_parse_offset respectively.
7168         (MAV_MODE?): Renamed from CIRRUS_MODE?.
7170 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
7171             Keith Walker  <keith.walker@arm.com>
7173         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
7174         (insns): Add pattern for bxj instruction.
7175         (do_bxj): New function.
7176         (arm_cpus): Add arm926ej.
7177         (arm_archs): Add armv5tej.
7179 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
7181         * doc/c-arm.texi: Add new fpe options to list of supported flags.
7183 2002-01-19  Keith Walker  <keith.walker@arm.com>
7185         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
7187 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
7189         * NEWS: Mention new ARM command-line options and VFP support.
7191         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
7192         uses changed.
7193         (ARM_CEXT_MAVERICK): Similarly.
7194         (ARM_ANY): Now means any core instruction.
7195         (CPU_DEFAULT): Default to ARM_ANY.
7196         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
7197         (pic_code): Declare for all object types.  Make type int.
7198         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
7199         (march_fpu_opt, mfpu_opt): Declare.
7200         (md_longopts): Tidy up conditional definitions.
7201         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
7202         (arm_long_opts): New tables.
7203         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
7204         (arm_parse_extension): New function.
7205         (md_parse_option): Rewrite using new table-driven system.
7206         (md_show_usage): Use new table-driven system.
7207         (md_begin): Calculate cpu_variant from command line option data.
7208         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
7209         command-line options.
7210         * doc/c-arm.texi: Likewise.
7212 2002-01-18  Andreas Jaeger  <aj@suse.de>
7214         * as.c (parse_args): Update year.
7216 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
7218         * config/tc-tic54x.c (encode_address): Add a more informative
7219         warning about incorrect syntax.
7221 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
7223         * po/gas.pot: Regenerate.
7225 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
7227         * macro.c (get_any_string): Add no-c-format comment to prevent
7228         confusion when translating string.
7229         * gasp.c (get_any_string): Add no-c-format comment to prevent
7230         confusion when translating string.
7232 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7233             Johannes Stezenbach <js@convergence.de>
7234         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
7235         matched before the shorter ones.
7236         (my_getSmallParser): Fix handling of nested parentheses in
7237         percent_op's. Code cleanup.
7238         (my_getPercentOp): New function, code from my_getSmallParser.
7239         (my_getSmallExpression): Fix handling of closing parentheses.
7240         Code cleanup. Better comments.
7242 2002-01-16  Nick Clifton <nickc@redhat.com>
7244         po/tr.po: New file: Turkish translation.
7245         configure.in (LINGUAS): Add "tr".
7246         configure: Regenerate.
7248 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
7250         Support for VFP instructions
7251         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
7252         (cp_address_required_here): New argument wb_ok.  When false, do not
7253         accept write-back forms of addressing.  Change all callers.
7254         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
7255         (FPU_VFP_EXT_V2): Define.
7256         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
7257         Define in terms of above.
7258         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
7259         (vfp_reg): New struct.
7260         (vfp_regs): New array of registers.
7261         (insns): Add VFP instructions.
7262         (sn_table): New array of VFP single-precision register names.
7263         (dn_table): New array of VFP double-precision register names.
7264         (all_reg_maps): Add the new register tables.
7265         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
7266         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
7267         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
7268         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
7269         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
7270         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
7271         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
7272         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
7273         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
7274         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
7275         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
7276         (do_vfp_sp_dp_cvt): New functions.
7277         (md_begin): Set soft-float flag for appropriate VFP work.
7278         (md_atof): Handle VFP-format doubles.
7279         (md_parse_option): Handle VFP command-line options.
7280         (md_show_usage): Display VFP command-line options.
7282 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
7284         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
7285         various command line options.
7287 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
7289         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
7290         vtinherit relocs.
7291         (xstormy16_md_apply_fix3): Do not return a value.
7293 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
7295         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
7296         the -EL/-EB option that matches the target's endianness.
7297         (md_parse_option): Likewise.
7299 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
7301         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
7302         is not dependent on ARM_BI_ENDIAN.
7304 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
7306         * tc-arm.c (all error messages): Normalize capitalization of messages.
7308         * tc-arm.h (md_operand): Delete define.
7309         * tc-arm.c (in_my_get_expression): New static variable.
7310         (my_get_expression): Set and clear it.
7311         (md_operand): New function.  If called from my_get_expression
7312         put the error in inst.error.
7313         (output_inst): Now takes argument of instruction being assembled.
7314         Print it out with any error message.
7315         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
7316         with '=' syntax.
7317         (end_of_line): Don't update inst.error if it is already set.
7319 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
7321         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
7322         op that can be translated into a mvn instruction.
7324 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
7326         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
7327         setting default md.flags.
7328         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
7329         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
7330         * gas/config/tc-ia64.c (setup_unwind_header): Add support
7331         for 32 bit unwind info blocks.
7332         (generate_unwind_image): Add support for different types
7333         of unwind images (32 bits and/or big-endian).
7334         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
7335         (ia64_target_format): Add support for hpux target formats.
7336         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
7337         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
7338         SHT_FINI_ARRAY elf section types.
7340 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
7342         * tc-arm.c (struct reg_entry): Move before prototypes.
7343         (int_register, cp_register, fp_register): Delete.
7344         (reg_table): Delete.  Replaced with ...
7345         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
7346         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
7347         (mav_dspsc_table): ... one table per register set.
7348         (arm_reg_hsh): Delete.
7349         (struct reg_map): New structure.
7350         (all_reg_maps): New array.
7351         (enum arm_reg_type): New enums.
7352         (build_reg_hsh): New function.
7353         (insert_reg_alias): Use hash table passed by caller.  Adjust all
7354         callers.
7355         (create_register_alias): New function, split out from ...
7356         (md_assemble): ... here.
7357         (md_begin): Build new register hash tables.
7358         (arm_reg_parse): New argument for the hash table to search.  Adjust all
7359         callers.
7360         (arm_reg_parse_any): New function.
7361         (co_proc_number): Look up the processor number in the processor hash
7362         table.
7363         (cirrus_regtype): Delete.
7364         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
7365         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
7366         (ARM_EXT_MAVERICKsc_register): Delete.
7367         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
7368         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
7369         functions.
7370         (do_c_triple_4, do_c_triple_5): Delete.
7371         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
7372         (do_c_quad_6): Delete.
7373         (do_c_quad_6[ab]): New functions.
7374         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
7375         arguments to use new register parsing methods.
7376         (cirrus_reg_required_here): Likewise.
7377         (insns): Reclassify cirrus maverick worker functions.
7378         (cirrus_valid_reg): Delete.
7380 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
7382         * configure.in (sh*le): Set cpu_type=sh and endian=little.
7383         (sh*-*-netbsdelf*): New target.
7384         * configure: Regenerate.
7385         * tc-sh.h: Update copyright years.
7386         (TARGET_FORMAT): Add version for TE_NetBSD.
7388 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
7390         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
7391         negative.
7393 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
7395         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
7396         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
7398 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
7400         * tc-mips.c (mips_cprestore_valid): New flag.
7401         (mips_frame_reg_valid): New flag.
7402         (macro) [M_JAL_2]: Check both flags.
7403         [M_JAL_A]: Likewise.
7404         (s_cprestore): Set mips_cprestore_valid.
7405         (tc_get_register): If setting mips_frame_reg, set
7406         mips_frame_reg_valid and clear mips_cprestore_valid.
7407         (s_mips_ent): Clear both flags.
7408         (s_mips_end): Clear both flags.
7410 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
7412         * write.c (write_object_file): Make use of bfd_section_list_remove.
7413         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
7414         * config/tc-mmix.c (mmix_frob_file): Likewise.
7416 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
7418         * configure.in (i386-*-netbsdelf*): Collapse target into...
7419         (i386-*-netbsd*): ...this.  Add support for x86-64.
7420         * configure: Regenerated.
7422 2002-01-03  matthew green  <mrg@redhat.com>
7424         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
7426 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
7428         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
7429         NULL frag link.
7431 For older changes see ChangeLog-0001
7433 Local Variables:
7434 mode: change-log
7435 left-margin: 8
7436 fill-column: 74
7437 version-control: never
7438 End: