4807f18e858a19d7b9a35fa3c41129a80739bb9e
[external/binutils.git] / gas / ChangeLog
1 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
2
3         * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
4         (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
5         (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
6         (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
7         (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
8         (cfi_add_CFA_restore, cfi_add_CFA_undefined)
9         (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
10         (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
11         (cfi_pseudo_table): New directives .cfi_return_column,
12         .cfi_restore, .cfi_undefined, .cfi_same_value,
13         .cfi_remember_state, .cfi_restore_state, .cfi_nop.
14         (dot_cfi, output_cfi_insn): Handle new directives.
15         * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
16         (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
17         (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
18
19 2003-06-04  Richard Henderson  <rth@redhat.com>
20
21         * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
22
23         * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
24
25 2003-06-04  Richard Henderson  <rth@redhat.com>
26
27         * config/tc-alpha.c (s_alpha_usepv): New.
28         (md_pseudo_table): Add it.
29         (alpha_cfi_frame_initial_instructions): New.
30         * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
31         (tc_cfi_frame_initial_instructions): New.
32         * doc/c-alpha.texi: Document .usepv.
33
34 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
35
36         * as.c (show_usage): Document --execstack and --noexecstack.
37         (parse_args): Add --execstack and --noexecstack.
38         (main): Create .note.GNU-stack section if --execstack or
39         --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
40         * as.h (flag_execstack, flag_noexecstack): New.
41
42 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
43
44         * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
45         (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
46         (OPTION_MISC_BASE): New defines.
47         (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
48         (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
49         (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
50         (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
51         (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
52         (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
53         (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
54         (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
55         (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
56         (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
57         (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
58         (OPTION_TRAP): Redefine in terms of new defines.
59         (md_longopts): Reorder entries.
60
61 2003-05-14  Michael Snyder  <msnyder@redhat.com>
62         From Bernd Schmidt  <bernds@redhat.com>
63         and Michael Snyder  <msnyder@redhat.com>
64         and Alexandre Oliva <aoliva@redhat.com>
65         * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
66         * config/tc-h8300.h: Ditto.
67
68 2003-06-03  Nick Clifton  <nickc@redhat.com>
69
70         * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
71         BFD_RELOC_32_PCREL if the reloc is pc-relative.  Do this
72         before calling bfd_reloc_type_lookup.
73         
74 2003-06-02  Alan Modra  <amodra@bigpond.net.au>
75
76         * read.c (emit_expr): Set dot_value.
77         * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
78
79 2003-06-02  Alan Modra  <amodra@bigpond.net.au>
80
81         * macro.c (sub_actual): Don't lose string if it turns out that
82         &string wasn't an arg.
83
84 2003-05-31  Richard Henderson  <rth@redhat.com>
85
86         * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
87         (cfi_finish): Set flag_traditional_format around .eh_frame data.
88
89 2003-05-29  Richard Henderson  <rth@redhat.com>
90
91         * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
92         (all_frame_data, plast_frame_data, cur_frame_data): New.
93         (s_alpha_ent): Record data for dwarf2 cfi.
94         (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
95         (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
96         * config/tc-alpha.h (md_end): New.
97         (DWARF2_DEFAULT_RETURN_COLUMN): New.
98         (DWARF2_CIE_DATA_ALIGNMENT): New.
99
100 2003-05-29  Nick Clifton  <nickc@redhat.com>
101
102         * configure.in: Add i386-*-freebsd* entry.
103         * configure: Regenerate.
104
105 2003-05-29  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
106
107         * config/tc-m32r.c: Amend comment to refer to Renesas
108
109 2003-05-27  Richard Henderson  <rth@redhat.com>
110
111         * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
112         symbol_create call.
113         (current_location): Use symbol_temp_new_now.
114         * stabs.c (s_stab_generic): Use symbol_temp_new.
115         * symbols.c (temp_label_name): Remove.
116         (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
117
118 2003-05-27  Richard Henderson  <rth@redhat.com>
119
120         * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
121         * as.c (main): Always call cfi_finish.
122         * config/tc-i386.c (x86_dwarf2_return_column): New.
123         (x86_cie_data_alignment): New.
124         (md_begin): Set them.
125         (tc_x86_cfi_init): Remove.
126         (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
127         return int, not unsigned long; don't as_bad here.
128         (tc_x86_frame_initial_instructions): Streamline; use
129         updated api.
130         * config/tc-i386.h (tc_cfi_init): Remove.
131         (DWARF2_DEFAULT_RETURN_COLUMN): New.
132         (DWARF2_CIE_DATA_ALIGNMENT): New.
133
134 2003-05-27  Richard Henderson  <rth@redhat.com>
135
136         * symbols.c (temp_label_name): New.
137         (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
138         (symbol_set_value_now): New.
139         * symbols.h: Prototype them.
140         * dwarf2dbg.c: Use them.
141         (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
142
143 2003-05-23  Jason Eckhardt  <jle@rice.edu>
144
145         * config/tc-i860.c (target_xp): Declare variable.
146         (OPTION_XP): Declare macro.
147         (md_longopts): Add option -mxp.
148         (md_parse_option): Set target_xp.
149         (md_show_usage): Add -mxp usage.
150         (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
151         (md_assemble): Don't try expansions if XP_ONLY is set.
152         * doc/c-i860.texi: Document -mxp option and i860XP support.
153
154 2003-05-23  Eric Christopher  <echristo@redhat.com>
155
156         * config/tc-mips.c (macro_build_jalr): Warning patrol.
157
158 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
159
160         * config/tc-mips.c (append_insn): Use actual relocation size for new
161         fixp's. Don't relax overflow checking for partial_inplace relocations.
162         Use the actual relocation type in combined relocs, not just the type
163         of the first one.
164         (macro_build_jalr): Use actual relocation size for new fix.
165         (s_cpsetup, s_gpdword): Likewise.
166
167 2003-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
168
169         * config/tc-mips.c (macro): Don't use uninitialized tempreg.
170
171 2003-05-22  Nick Clifton  <nickc@redhat.com>
172
173         * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
174         section relative offsets for relocs that will not be based on the
175         section symbol.
176         (xstormy16_md_apply_fix3): Remove previous patch to this
177         function.
178
179 2003-05-07  Eric Christopher  <echristo@redhat.com>
180
181         * config/tc-mips.c (mips_abicalls): New variable.
182         (md_parse_option): Use.
183         (s_option): Ditto.
184         (s_abicalls): Ditto.
185         (mips_elf_final_processing): Set EF_MIPS_PIC and
186         EF_MIPS_CPIC dependent on above.
187
188 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
189
190         * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
191
192 2003-05-21  Nick Clifton  <nickc@redhat.com>
193
194         * config/obj-elf.c: Include dwarf2dbg.h.
195         (elf_pseudo_tab): Add .file and .loc.
196         * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
197         * config/tc-arm.c: Likewise.
198         * config/tc-h8300.c: Likewise.
199         * config/tc-hppa.c: Likewise.
200         * config/tc-ia64.c: Likewise.
201         * config/tc-m68hc11.c: Likewise.
202         * config/tc-m68k.c: Likewise.
203         * config/tc-mmix.c: Likewise.
204         * config/tc-mn10300.c: Likewise.
205         * config/tc-ppc.c: Likewise.
206         * config/tc-sh.c: Likewise.
207         * config/tc-sparc.c: Likewise.
208         * config/tc-v850.c: Likewise.
209         * config/tc-frv.c: Likewise, and remove redundant inclusion of
210         dwarf2dbg.h.
211         * config/tc-ip2k.c: Likewise.
212         * config/tc-iq2000.c: Likewise.
213         * config/tc-xstormy16.c: Likewise.
214         * config/tc-xtensa.c: Likewise.
215         * Makefile.am: Regenerate dependencies.
216         * Makefile.in: Regenerate.
217         * aclocal.m4: Regenerate.
218         * config.in: Regenerate.
219         * configure: Regenerate.
220         * po/POTFILES.in: Regenerate.
221         * po/gas.pot: Regenerate.
222
223 2003-05-21  Nick Clifton  <nickc@redhat.com>
224
225         * dw2gencfi.c (cfi_get_label): Use symbol_make for non
226         BFD_ASSEMBLER targets.
227         (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
228         (dot_cfi_endproc): Only call bfd_set_section_flags for targets
229         defining BFD_ASSEMBLER.
230
231 2003-05-20  Michal Ludvig  <mludvig@suse.cz>
232
233         * as.c (main): Remove tc_cfi_init().
234         * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
235         with '%'.
236         (cfi_pseudo_table): Add "cfi_register" entry.
237         (cfi_make_insn): Handle CFA_register.
238         (cfi_output_insn): Ditto.
239         (dot_cfi): Ditto.
240         (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
241         (dot_cfi_endproc): Reuse already emitted CIEs.
242         * testsuite/gas/cfi/cfi-i386.d: New pattern.
243         * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
244
245 2003-05-20  Nick Clifton  <nickc@redhat.com>
246
247         * config/tc-xstormy16.c: Include dwarf2dbg.h.
248         (md_pseudo_table): Add entries for .loc and .line.
249
250 2003-05-20  Alan Modra  <amodra@bigpond.net.au>
251
252         * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
253         defined.
254         (dot_cfi_endproc): Avoid C99 construct.
255
256 2003-05-20  Michal Ludvig  <mludvig@suse.cz>
257
258         * dw2gencfi.c, dw2gencfi.h: New files.
259         * config/tc-i386.c (tc_x86_cfi_init): New function.
260         * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
261         * as.c (parse_args): Set verbose flag on --verbose.
262         (main): Call tc_cfi_init()/cfi_finish().
263         * as.h (verbose): New external variable.
264         * read.c (pobegin): Insert CFI pops to the list.
265         * symbols.c (local_symbol_make): Make symbol external.
266         * symbols.h (local_symbol_make): New prototype.
267         * Makefile.am: Add dw2gencfi.[ch] files.  Run "make dep-am".
268         * Makefile.in: Regenerate.
269         * doc/as.texinfo: Added node "CFI directives" with description of
270         all implemented .cfi_* directives.
271         * doc/Makefile.in: Regenerate.
272         * po/POTFILES.in: Regenerate.
273
274 2003-05-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
275
276         * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
277         insns.
278         * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
279
280 2003-05-18  Jason Eckhardt  <jle@rice.edu>
281
282         * config/tc-i860.c (i860_process_insn): Initialize fc after
283         each opcode mismatch.
284
285 2003-05-16  Kelley Cook  <kelleycook@wideopenwest.com>
286
287         * configure.in: Accept i[3-7]86 variants.
288         * configure: Regenerate.
289
290 2003-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
291
292         * config/tc-mips.h: Fix comment formatting.
293
294 2003-05-13  Hans-Peter Nilsson  <hp@axis.com>
295
296         * read.c (old_buffer, old_input, old_limit): Remove variables.
297         (read_a_source_file): Delete label contin.
298         <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
299         input as with macros, instead of in separate old_* variables.
300         Zero-terminate string being scrubbed.
301
302 2003-05-12  Nick Clifton  <nickc@redhat.com>
303
304         * config/tc-xstormy16.c (skipping_fptr): New local variable.
305         (md_assemble): Reset skipping_fptr.
306         (md_operand): If @fptr() is followed by a minus sign, set
307         skipping_fptr and ignore the fptr.  If skipping_fptr is set and an
308         @fptr is detected, ignore it and reset skipping_fptr.
309
310 2003-05-11  Jason Eckhardt  <jle@rice.edu>
311
312         * config/tc-i860.c (MAX_FIXUPS): Define.
313         (struct i860_fi fi[]): New struct.
314         (struct i860_it the_insn): Add above as member and move fields
315         exp, reloc, pcrel and fup into i860_fi.
316         (md_assemble): Replace all instances of exp, reloc, pcrel
317         and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
318         Add a loop to possibly emit multiple fix-ups for each insn.
319         (i860_process_insn): Likewise.
320         (i860_get_expression): Likewise.
321         (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
322
323 2003-05-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
324
325         * config/tc-s390.c (s390_target_format): Always call init_default_arch.
326
327 2003-05-07  H.J. Lu <hongjiu.lu@intel.com>
328
329         * config/tc-ia64.c (alias_hash): New.
330         (alias_name_hash): New.
331         (secalias_hash): New.
332         (secalias_name_hash): New.
333         (md_pseudo_table): Add "secalias".
334         (md_begin): Initialize alias_hash, alias_name_hash,
335         secalias_hash and secalias_name_hash.
336         (struct alias): New.
337         (dot_alias): Implement .alias and .secalias directives.
338         (do_alias): New.
339         (ia64_adjust_symtab): New.
340         (do_secalias): New.
341         (ia64_frob_file): New.
342
343         * config/tc-ia64.h (ia64_adjust_symtab): New.
344         (tc_adjust_symtab): Defined.
345         (ia64_frob_file): New.
346         (tc_frob_file): Defined.
347
348 2003-05-07  Dmitry Diky  <diwil@mail.ru>
349
350         * tc-msp430.c: Add missing lines to known cpus list.
351
352 2003-05-06  Alexandre Oliva  <aoliva@redhat.com>
353
354         * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
355         * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
356         * config.in, configure: Rebuilt.
357
358 2003-05-05  H.J. Lu <hjl@gnu.org>
359
360         * config/tc-mips.c (tc_gen_reloc): Add addend just once if
361         howto->partial_inplace is false.
362
363 2003-05-05  Daniel Jacobowitz  <drow@mvista.com>
364
365         * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
366         symbol_used_in_reloc_p check.
367         (md_apply_fix3): Remove check for howto->pcrel_offset.
368
369 2003-05-03  H.J. Lu <hjl@gnu.org>
370
371         * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
372         fatal error for unknown section attribute.
373
374         * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
375         unknown section attribute.
376         * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
377         * config/tc-ppc.c (ppc_section_letter): Likewise.
378
379         * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
380         (ia64_elf_section_type): Accept "unwind".
381
382 2003-05-02  H.J. Lu <hjl@gnu.org>
383
384         * read.h (demand_copy_string): New.
385
386         * config/tc-alpha.c (demand_copy_string): Removed.
387
388 2003-05-02  Michael Snyder  <msnyder@redhat.com>
389
390         * write.h (FAKE_LABEL_NAME): Allow override
391         (for targets that like eg. a leading dot in a local label).
392
393 2003-05-02  Nick Clifton  <nickc@redhat.com>
394
395         * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
396         addend with the symbol's value for pc-relative relocations against
397         a defined symbol - this will be done automatically.
398
399 2003-05-01  H.J. Lu <hjl@gnu.org>
400
401         * config/obj-elf.c (obj_elf_type): Accept "notype" and
402         "STT_NOTYPE".
403
404 2003-05-01  H.J. Lu <hjl@gnu.org>
405
406         * config/tc-ia64.h (tc_canonicalize_section_name): New.
407
408         * config/obj-elf.c (obj_elf_section_name): Call
409         tc_canonicalize_section_name if it is defined.
410
411 2003-05-01  H.J. Lu <hjl@gnu.org>
412
413         * config/tc-ia64.c (ia64_check_label): New.
414         * config/tc-ia64.h (tc_check_label): New.
415
416         * read.c (read_a_source_file): Call tc_check_label after
417         creating a user-defined label if defined.
418
419 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
420
421         * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
422         -be and split strings to below 509 bytes in length.
423
424 2003-05-01  Christian Groessler <chris@groessler.org>
425
426         * expr.h: Fix comments in operatorT typedef.
427         * config/tc-z8k.c: Add 2003 to copyright message.
428         Fold s_segm() and s_unseg() into one function s_segm(parm) which
429         decides by the parameter.
430         (md_begin): Don't set linkrelax.  Only set Z8002 default if no
431         command line argument was given to select the intended
432         architecure.
433         (get_interrupt_operand): Warn if NOP type code is emitted.
434         (newfix): New parameter 'size', forward it to 'fix_new_exp'.
435         (apply_fix): Call newfix with additional 'size' parameter.
436         (build_bytes): Remove unused variable 'nib'.  Detect overflow in
437         4 bit immediate arguments.
438         (md_longopts): Add 'linkrelax' option.
439         (md_parse_option): Adapt to new s_segm function.  Set 'linkrelax'
440         variable when 'linkrelax' command line option is specified.
441         (md_show_usage): Display 'linkrelax' option.
442         (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8.  Add cases
443         R_CALLR and R_REL16.
444         * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
445
446 2003-04-30  H.J. Lu <hjl@gnu.org>
447
448         * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
449         (ia64_float_to_chars): Likewise.
450         (dot_byteorder): Set target_big_endian, ia64_number_to_chars
451         and ia64_float_to_chars by tc_segment_info_data.endian from
452         the current segment if byteorder == -1.
453         (md_begin): Call dot_byteorder to set target_big_endian.
454         (md_atof): Call ia64_float_to_chars to convert floating point.
455         (ia64_float_to_chars_bigendian): New function.
456         (ia64_float_to_chars_littleendian): Likewise.
457         (ia64_elf_section_change_hook): Likewise.
458
459         * config/tc-ia64.h (ia64_number_to_chars): New.
460         (md_number_to_chars): Changed to (*ia64_number_to_chars)
461         (ia64_elf_section_change_hook): New.
462         (md_elf_section_change_hook): Defined.
463         (ia64_segment_info_type): New struct.
464         (TC_SEGMENT_INFO_TYPE): Defined.
465
466 2003-04-30  H.J. Lu <hjl@gnu.org>
467
468         * config/tc-ia64.c (md_section_align): Deleted.
469
470         * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
471         (md_section_align): New.
472
473 2003-04-30  H.J. Lu <hjl@gnu.org>
474
475         * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
476         and add real16.
477         (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
478         "real16.ua".
479         (md_atof): Add 6 byte padding of zero for real16.
480
481 2003-04-29  Nick Clifton  <nickc@redhat.com>
482
483         * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
484         start of a version name.
485
486 2003-04-28  Chris Demetriou  <cgd@broadcom.com>
487
488         * configure.in (mips-*-*n*bsd*): Replace with...
489         (mips-*-netbsd*, mips-*-openbsd*): These.
490         * configure: Regenerate.
491
492 2003-04-28  H.J. Lu <hjl@gnu.org>
493
494         * config/tc-hppa.c (hppa_symbol_chars): New.
495         * config/tc-hppa.h (tc_symbol_chars): Likewise.
496
497 2003-04-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
498
499         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
500
501 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
502
503         * NEWS: Belatedly mention support for MIPS32 Release 2.
504
505 2003-04-24  Eric Christopher  <echristo@redhat.com>
506
507         * config/tc-mips.c (nopic_need_relax): Revert previous
508         change.
509
510 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
511
512         * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
513         * config/tc-h8300.c (dwarf2dbg.h): Include
514         (md_pseudo_table): Handle .loc and .file
515         (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
516         * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
517         * Makefile.in: Regenerate.
518
519 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
520
521         * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
522         (md_pseudo_table): Add h8300hn, h8300sn.
523         * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
524         * doc/c-h8300.texi : Add documentation for new machine directives.
525
526 2003-04-24  Nick Clifton  <nickc@redhat.com>
527
528         * config/tc-ppc.c (ppc_symbol_chars): Define.
529         * config/tc-ppc.h (tc_symbol_chars): Define.
530
531 2003-04-23  J"orn Rennecke <joern.rennecke@superh.com>
532
533         * config/tc-sh.c: Amend comment to refer to SuperH.
534         * config/tc-sh.h: Likewise.
535         (LISTING_HEADER): Amend to refer to SuperH.
536         * config/tc-sh64.c: Change comment to refer to SuperH.
537         * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
538         * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
539         * doc/c-sh.texi: Amend to refer to SuperH.
540         Add SuperH architecture documentation references.
541         * doc/c-sh64.texi: Change to refer to SuperH.
542
543 2003-04-23  H.J. Lu <hjl@gnu.org>
544
545         * app.c (do_scrub_chars): More checks for valid labels.
546
547 2003-04-22  H.J. Lu <hjl@gnu.org>
548
549         * app.c (do_scrub_chars): Check for valid label.
550
551 2003-04-22  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
552
553         * doc/as.texinfo: Replace references to Mitsubishi M32R with
554         references to Renesas M32R.
555         * doc/c-m32r.texi: Likewise.
556
557 2003-04-21  Richard Henderson  <rth@redhat.com>
558
559         * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
560         (out_file_list): Assign non-null filename after generating error.
561
562 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
563
564         * ehopt.c (check_eh_frame): For aug_size == 0
565         in state_seeing_aug_size state skip the state_skipping_aug
566         state.
567
568 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
569
570         * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
571         'Renesas'.
572         * doc/c-h8500.texi: Likewise.
573         * doc/c-sh.texi: Likewise.
574         * doc/c-sh64.texi: Likewise.
575         * doc/h8.texi: Likewise.
576         * config/tc-h8300.c: Likewise.
577         * config/tc-h8300.h: Likewise.
578         * config/tc-h8500.c: Likewise.
579         * config/tc-h8500.h: Likewise.
580         * config/tc-sh.c: Likewise.
581         * config/tc-sh.h: Likewise.
582         * config/tc-sh64.c: Likewise.
583         * config/tc-sh64.h: Likewise.
584
585 2003-04-10  Alexandre Oliva  <aoliva@redhat.com>
586
587         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
588         * config/tc-mips.c: Use signed add for n32 address arithmetic.
589         (append_insn): When filling delay slots with instructions
590         that have fixups that tc_gen_reloc might consider modifyable
591         in variant frags, start a new frag.
592         (load_address): Generate GOT_DISP with of without offset
593         depending on whether symbol is local.  For -xgot, use
594         GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
595         (macro) <M_DLA_AB, M_LA_AB>: Likewise.
596         <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
597         CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
598         <ld_st>: In NewABI with small got, always use
599         GOT_PAGE/GOT_OFST, with the latter in the load/store
600         instruction.  With big got, use GOT_HI16/GOT_LO16 or
601         GOT_PAGE/GOT_OFST.
602         (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
603         Add tc_frag_data.tc_fr_offset to addends.  Decay CALL16,
604         GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
605         (md_convert_frag): Use memmove for safe copying of overlapping
606         regions.
607
608 2003-04-09  Stephane Carrez  <stcarrez@nerim.fr>
609
610         * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
611         -mlong, -mshort-double and -mlong-double options; use table @code.
612         (M68HC11-Syntax): Update to document 68HC12 operands.
613         (M68HC11-Modifiers): New section for operand modifiers.
614         (M68HC11-Directives): New section for specific assembler directives.
615         (M68HC11-Branch): Fix Overfull hbox error.
616
617 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
618
619         * config/tc-mips.c (macro): Add comments explaining the rationale
620         for Chris' change.
621
622 2003-04-09  Chris Demetriou  <cgd@broadcom.com>
623
624         * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
625         constant address that Alexandre took out by accident.  Reject
626         64-bit addresses that are not sign extensions of 32 bits only if
627         we don't support 64-bit address constants.
628
629 2003-04-09  Alan Modra  <amodra@bigpond.net.au>
630
631         * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
632
633 2003-04-08  Nick Clifton  <nickc@redhat.com>
634
635         * as.c (perform_an_assembly_pass): If using cgen, call
636         gas_cgen_begin.
637         * cgen.c (gas_cgen_begin): New function.  If
638         flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
639         otherwise call cgen_clear_signed_overflow_ok.
640         * cgen.h: Prototype gas_cgen_begin.
641
642 2003-04-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
643
644         * write.c (write_relocs): Remove unused variable.
645
646 2003-04-06  Chris Demetriou  <cgd@broadcom.com>
647
648         * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
649         (macro): Use new macro to decide whether to emit constant address
650         as 32 or 64 bits if addresses are 32-bit wide but registers are
651         64-bit wide.
652
653 2003-04-05  Stephane Carrez  <stcarrez@nerim.fr>
654
655         * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
656         (M6811_OP_PAGE_ADDR): New internal define.
657         (get_operand): New modifier %page and %addr to obtain page and
658         address part of a far-function.
659         (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
660         complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
661         relocs.
662         (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
663         (find_opcode): Add comment.
664         (md_estimate_size_before_relax): Force relocation of
665         STATE_UNDEXED_OFFSET types when the symbol is not absolute.
666         (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
667         instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
668         on the symbol itself so that DWARF2 strings are merged correctly.
669
670 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
671
672         * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
673         default tic4x target format to 'coff2-tic4x'.
674         * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
675         s/c3x/tic3x/
676         * config/tc-tic4x.h: Ditto
677
678 2003-04-03  Nick Clifton  <nickc@redhat.com>
679
680         * NEWS: Mention support for Xtensa architecture.
681
682 2003-04-02  Philip Blundell  <philb@gnu.org>
683
684         * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
685
686 2003-04-02  Chris Demetriou  <cgd@broadcom.com>
687
688         * config/tc-mips.c (macro2): Adjust implementation of
689         M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
690         in the case where the source and destination registers
691         are the same.
692
693 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
694
695         * Makefile.am (CPU_TYPES): Add xtensa.
696         (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
697         (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
698         (xtensa-relax.o): New target.
699         Run "make dep-am".
700         * Makefile.in: Regenerate.
701         * configure.in: Handle xtensa-*-*.  Add xtensa-relax.o to
702         extra_objects for xtensa targets.
703         * configure: Regenerate.
704         * write.c (write_object_file): Add new md_post_relax_hook.
705         * config/tc-xtensa.c: New file.
706         * config/tc-xtensa.h: Likewise.
707         * config/xtensa-istack.h: Likewise.
708         * config/xtensa-relax.c: Likewise.
709         * config/xtensa-relax.h: Likewise.
710         * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
711         * doc/Makefile.in: Regenerate.
712         * doc/all.texi: Set new XTENSA variable.
713         * doc/as.texinfo: Set new Xtensa variable.  Describe
714         Xtensa-specific options.  Define line comment character for
715         Xtensa.  Add Xtensa processors to list of ELF targets where
716         alignment is specified in bytes.  Add new Xtensa-Dependent node.
717         Add acknowledgements for those contributing to the Xtensa port.
718         * doc/internals.texi: Describe new md_post_relax_hook.
719         * doc/c-xtensa.texi: New file.
720
721 2003-04-01  Nick Clifton  <nickc@redhat.com>
722             Richard Earnshaw  <rearnsha@arm.com>
723
724         * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
725         (ARM_ARCH_IWMMXT): Simplify.
726         (insns): Place iwmmx instructions in correct place in table.
727         (arm_add_note): New function: Add a note entry to a .note section.
728         (md_begin): Make the default architecture be unknown.
729         Suppress the creation of an arm note section.
730
731 2003-03-26  Eric Christopher  <echristo@redhat.com>
732
733         * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
734
735 2003-03-25  Stan Cox   <scox@redhat.com>
736             Nick Clifton  <nickc@redhat.com>
737
738         Contribute support for Intel's iWMMXt chip - an ARM variant:
739
740         * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
741         WC_PREFIX, REG_TYPE_IWMMXT): New constants.
742         (enum wreg_type, enum iwmmxt_insn_type): New types.
743         (wr_register, wc_register, wcg_register): New macros.
744         (iwmmxt_table): New variable.
745         (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
746         do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
747         do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
748         do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
749         do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
750         do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
751         do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
752         cp_byte_address_offset, cp_byte_address_required_here,
753         check_iwmmxt_insn): New functions.
754         (asm_opcode_insns): Add iWMMXt instructions.
755         (md_begin): Set the mach value for iWMMXt targets.  Create a note
756         section to identify iwmmxt binaries.
757         (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
758         * doc/c-arm.texi: Document the support for the iWMMXt.
759         * NEWS: Mention new support.
760
761 2003-03-24  Daniel Néri  <dne@mayonnaise.net>
762
763         * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
764         * doc/all.texi: Likewise.
765         * doc/c-tic54x.texi: Likewise.
766
767 2003-03-21  Andreas Schwab  <schwab@suse.de>
768
769         * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
770         avoid aliasing issue.
771
772 2003-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
773
774         * config/tc-s390.c (s390_arch_size): Initialize to zero.
775         (current_arch_mask): Rename to current_mode_mask.
776         (current_arch_requested): Remove variable.
777         (current_cpu): New variable.
778         (init_default_arch): Set defaults values for s390_arch_size,
779         current_mode_mask and current_cpu.
780         (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
781         (md_begin): Replace current_arch_mask by current_cpu.
782         (md_assemble): Adapt check and error message to current_mode_mask and
783         current_cpu.
784
785 2003-03-09  James E Wilson  <wilson@tuliptree.org>
786
787         * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
788         * read.c (get_line_sb): Return end of line character or '\n' if
789         it is zero or non-existent.
790
791 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
792
793         * config/tc-mips.c (mips_validate_fix): New function.
794         * config/tc-mips.h (TC_VALIDATE_FIX): Define.
795         (mips_validate_fix): Declare.
796
797 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
798
799         * Reverted 2003-03-02's patch.
800
801 2003-03-11  Steve Ellcey  <sje@cup.hp.com>
802
803         * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
804         (TC_DWARF2_EMIT_OFFSET): Provide default.
805         (out_debug_aranges, out_debug_info): Use it.
806         * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
807         (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
808         (ia64_gen_real_reloc_type): ... here.
809         * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
810
811 2003-03-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
812
813         * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
814         (s_mips_ent): Likewise.
815
816 2003-03-04  Dmitry Diky  <diwil@mail.ru>
817
818         * config/tc-msp430.c (mcu_types): Add recently announced x1122
819         and x1123 devices, add missed x437.
820         (md_show_usage): Sort device list.
821
822 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
823
824         * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
825         (md_begin): Use preset_target_arch.
826         (md_longopts): Make isa option unconditional.
827         (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
828         set preset_target_arch.
829         (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
830         by -S_GET_VALUE  (fixP->fx_subsy).
831         (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
832         and the addend is 0.
833         Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
834         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
835
836 2003-03-02  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
837
838         * config/tc-mips.c (append_insn): Add handling of
839         BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
840         BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
841         misaligned address and reange overflow.
842         (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
843         earlier warnings about misaligned address and reange overflow.
844         (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
845         (md_apply_fix): Likewise. Fix warning output.
846         (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
847         Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
848         (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
849
850 2003-02-21  Nick Clifton  <nickc@redhat.com>
851
852         * NEWS: Mention availability of test generator program.
853
854 2003-02-21  Miles Bader  <miles@gnu.org>
855
856         * config/tc-v850.c (system_registers): Add v850e debug registers.
857         (system_register_name): Accept up to 27 (the last v850e sys register).
858
859 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
860
861         * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
862         relevant to both COFF and ELF.  Fix obvious typos and texinfo bugs.
863         Capitalize section headings consistently.  Format index entries more
864         consistently.  Unconditionalize text about whether text and data
865         sections are alterable.  Use @ifnottex for alternatives to @tex output
866         so that HTML works.  Clean up COFF vs. ELF descriptions of .section,
867         .size and .type directives.  Be more polite about bad bug reports.
868         Move FDL into a separate file.
869         * doc/fdl.texi: New file.
870
871 2003-02-21  Richard Sandiford  <rsandifo@redhat.com>
872
873         * config/tc-mips.c (prev_reloc_op_frag): New variable.
874         (macro): Check it to decide whether a new frag is needed.
875         (my_getSmallExpression): Set it.
876
877 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
878
879         * cgen.c: Fix typo: intial -> initial.
880
881 2003-02-19  Jie Zhang  <zhangjie@magima.com.cn>
882
883         * app.c (do_scrub_chars): Handle '||' in two states.
884
885 2003-02-13  Alan Modra  <amodra@bigpond.net.au>
886
887         * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
888         * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
889
890 2003-02-11  Uwe Stieber  <uwe@wwws.de>
891
892         * configure.in: Add support for kaOS as cross build target system.
893         * configure: Regenerated.
894
895 2003-02-10  Nick Clifton  <nickc@redhat.com>
896
897         * config/tc-arm.c (md_begin): If the Maverick co-processor is
898         selected, set the EF_ARM_MAVERICK_FLOAT flag and
899         bfd_mach_arm_ep9312 machine number.
900
901 2003-02-08  Richard Sandiford  <rsandifo@redhat.com>
902
903         * config/tc-mips.c (reloc_needs_lo_p): New function.
904         (fixup_has_matching_lo_p): New function.
905         (append_insn): Use reloc_needs_lo_p to check whether a relocation
906         might need a matching %lo().  Reuse the head of mips_hi_fixup_list
907         if that fixup already has a matching %lo().  Don't call frag_wane here.
908         (macro): Call frag_wane here if the last unmatched hi was in the
909         current frag.
910         (pic_need_relax): New function, split out from...
911         (md_estimate_size_before_relax): ...here.
912         (mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
913         whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
914
915 2003-02-07  Richard Sandiford  <rsandifo@redhat.com>
916
917         * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
918
919 2003-02-06  Alan Modra  <amodra@bigpond.net.au>
920
921         * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
922         x@toc+off works.
923
924 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
925
926         * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
927         (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
928         accept x@got+off etc.
929         (md_assemble): Handle TLS relocs.
930         (ppc_force_relocation): Force for all TLS relocs.
931         (ppc_fix_adjustable): Likewise.
932         (md_apply_fix3): Handle TLS relocs.
933
934 2003-02-04  Alan Modra  <amodra@bigpond.net.au>
935
936         * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
937         SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
938
939 2003-02-02  Richard Sandiford  <rsandifo@redhat.com>
940
941         * config/tc-mips.c (enum small_ex_type): Remove.
942         (imm_unmatched_hi): Remove.
943         (md_assemble): Remove use of imm_unmatched_hi.  Remove the last
944         argument from calls to append_insn.
945         (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
946         instead.
947         (macro_build): Update append_insn calls.
948         (mips16_macro_build, macro_build_lui): Likewise.
949         (mips_ip): Rework handling of small expressions.  Move explicit
950         relocation handling into my_getSmallExpression.  Assume that the
951         value of 'o' operands is zero if there is only one bracketed
952         expression left.
953         (percent_op): Make constant.  Record the BFD relocation code
954         associated with each operator.
955         (my_getSmallParser, my_getPercentOp): Remove.
956         (parse_relocation): New function.
957         (my_getSamllExpression): Rework.  Fill in relocations here
958         rather than in mips_ip.
959
960 2003-01-29  Nick Clifton  <nickc@redhat.com>
961
962         * config/tc-i386.c (line_comment_chars): Add '#'.  This makes the
963         assembler's handling of # <linenum> "<filename>" directives work.
964
965 2003-01-28  Jakub Jelinek  <jakub@redhat.com>
966
967         * dwarf2dbg.c: Include filenames.h.
968         (struct file_entry): Make filename const char *.
969         (dirs, dirs_in_use, dirs_allocated): New variables.
970         (get_filenum): Add NUM argument.  Build directory table.
971         (dwarf2_where): Adjust caller.
972         (dwarf2_directive_file): Use get_filenum to allocate
973         slot in file and directory tables.
974         (dwarf2_directive_loc): Recreate full filename from
975         directory and filename part if needed for listing.
976         (out_file_list): Output directory table.
977         Output main source file dirname before its filename.
978
979 2003-01-28    Dmitry Diky <diwil@mail.ru>
980
981         * config/tc-msp430.c: Replace occurences of 'tolower' with
982         'TOLOWER'.
983
984 2003-01-27  David Mosberger  <davidm@hpl.hp.com>
985
986         * config/tc-ia64.c (dot_vframesp): Correct error message.
987         (dot_vframepsp): Ditto.
988
989 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
990
991         * configure.in (em): Set to irix on all Irix systems.
992         * configure: Rebuilt.
993         * config/te-irix.h: New file.
994         * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
995         whether to use Irix-specific 64-bit format.
996
997 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
998
999         * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1000
1001 2003-01-25  Jakub Jelinek  <jakub@redhat.com>
1002
1003         * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1004         (tc_gen_reloc): Handle TLS relocs.
1005         (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1006         * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1007         relocs.
1008         * config/obj-elf.c (obj_elf_section_word): Handle tls.
1009         (obj_elf_type): Handle tls_object.
1010
1011 2003-01-24  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1012
1013         * config/tc-s390.c (s390_tls_suffix): New function.
1014         (elf_suffix_type): Add suffix enums for TLS relocations.
1015         (s390_elf_suffix): Add suffix strings for TLS relocations.
1016         (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1017         bfd relocations.
1018         (md_gather_operands): Map new instruction operand/elf suffix
1019         combinations for TLS to bfd relocations.
1020         (tc_s390_fix_adjustable): Add new TLS relocations.
1021         (tc_s390_force_relocation): Likewise.
1022         (md_apply_fix3): Likewise.
1023
1024 2003-01-24  Alan Modra  <amodra@bigpond.net.au>
1025
1026         * as.h: Update copyright date.
1027         * symbols.c: Likewise.
1028         * config/tc-d10v.h: Likewise.
1029         * config/tc-fr30.h: Likewise.
1030         * config/tc-i960.h: Likewise.
1031         * config/tc-mips.h: Likewise.
1032
1033         * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1034         (MD_APPLY_SYM_VALUE): Move.
1035
1036 2003-01-23  Nick Clifton  <nickc@redhat.com>
1037
1038         * NEWS: Announce sh2e support.
1039
1040         Add sh2e support:
1041         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
1042         * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1043         (sh_elf_final_processing): Handle arch_sh2e.
1044
1045 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
1046
1047         * symbols.c (S_FORCE_RELOC): Add "strict" param.
1048         * symbols.h (S_FORCE_RELOC): Likewise.
1049         * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1050         * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1051         * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1052         * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1053         * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1054         * write.c (generic_force_reloc): New function.
1055         (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1056         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1057         (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1058         * as.h (generic_force_reloc): Declare.
1059         * doc/internals.texi (S_FORCE_RELOC): Update.
1060         (TC_FORCE_RELOCATION_SUB_SAME): Update.
1061
1062         * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1063         generic_force_reloc.
1064         (alpha_fix_adjustable): Likewise.
1065         * config/tc-arm.c (arm_force_relocation): Likewise.
1066         * config/tc-cris.c (md_cris_force_relocation): Likewise.
1067         * config/tc-frv.c (frv_force_relocation): Likewise.
1068         * config/tc-i386.c (md_apply_fix3): Likewise.
1069         * config/tc-ia64.c (ia64_force_relocation): Likewise.
1070         * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1071         * config/tc-m32r.c (m32r_force_relocation): Likewise.
1072         * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1073         * config/tc-mcore.c (mcore_force_relocation): Likewise.
1074         * config/tc-mips.c (mips_force_relocation): Likewise.
1075         * config/tc-mmix.c (mmix_force_relocation): Likewise.
1076         * config/tc-ppc.c (ppc_force_relocation): Likewise.
1077         * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1078         * config/tc-sh.c (sh_force_relocation): Likewise.
1079         (md_pcrel_from_section): Likewise.
1080         * config/tc-sparc.c (tc_gen_reloc): Likewise.
1081         * config/tc-v850.c (v850_force_relocation): Likewise.
1082         * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1083         * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1084         * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1085         * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1086
1087         * config/tc-d10v.c (d10v_force_relocation): Delete.
1088         * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1089         * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1090         * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1091         * config/tc-fr30.c (fr30_force_relocation): Delete.
1092         * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1093         * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1094         * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1095         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1096         * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1097         * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1098         * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1099         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1100         * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1101         * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1102         * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1103         * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1104         * config/tc-i386.c (i386_force_relocation): Delete.
1105         * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1106         BFD_ASSEMBLER.
1107         (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1108         * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1109         * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1110         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1111         S_FORCE_RELOC.
1112         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1113         * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1114
1115 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
1116
1117         * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1118         sh64_elf_section_data.
1119         * config/tc-sh64.h: Include elf32-sh64.h.
1120         * config/tc-m68hc11.c: Don't include stdio.h.
1121         (md_show_usage): Fix missing continuation.
1122         * Makefile.am: Run "make dep-am".
1123         * Makefile.in: Regenerate.
1124
1125 2003-01-22  Nick Clifton  <nickc@redhat.com>
1126
1127         * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1128
1129 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
1130
1131         * configure.in: Handle *-*-aros*.
1132         * configure:    Regenerated from configure.in.
1133
1134 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1135
1136         * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1137         gotplt and pltoff relocations.
1138         (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1139         (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1140         gotplt and pltoff to bfd relocations.
1141         (md_gather_operands): Map new instruction operand/elf suffix
1142         combinations to bfd relocations.
1143         (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1144         to the list of unadjustable relocations.
1145         (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1146         and pltoff relocations.
1147         (md_apply_fix3): Add the new relocations.
1148
1149 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1150
1151         * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1152         with a subsy symbol.
1153
1154 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
1155
1156         * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1157         of relocs for memory bank addressing.
1158
1159 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
1160
1161         * config/tc-m68hc11.c (md_show_usage): Update usage.
1162         (md_parse_option): Recognize -m68hcs12.
1163         (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1164         HCS12.
1165         * doc/as.texinfo (Overview): Document new option -m68hcs12.
1166
1167 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
1168
1169         * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1170
1171 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
1172
1173         * Makefile.am: Run "make dep-am".
1174         * Makefile.in: Regenerate.
1175         * po/POTFILES.in: Regenerate.
1176
1177 2003-01-11  Alan Modra  <amodra@bigpond.net.au>
1178
1179         * read.c (get_absolute_expr): New, split out from..
1180         (get_absolute_expression): ..here.
1181         * read.h (get_absolute_expr): Declare.
1182         * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1183         Trim size to arch bits_per_address, and test for negative input
1184         via get_absolute_expr.
1185
1186 2003-01-07  DJ Delorie  <dj@redhat.com>
1187
1188         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1189         on operand type.
1190         (xstormy16_md_apply_fix3): Use adjustment.
1191
1192 2003-01-02  Ben Elliston  <bje@redhat.com>
1193
1194         * configure.in: Add iq2000-elf target.
1195         * configure: Regenerate.
1196         * config/tc-iq2000.c: New file.
1197         * config/tc-iq2000.h: Likewise.
1198         * po/gas.pot: Regenerate.
1199
1200 2003-01-02  Chris Demetriou  <cgd@broadcom.com>
1201
1202         * config/tc-mips.c: Update copyright years to include 2003.
1203         (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1204         Additionally, clean up their code slightly and clean up their
1205         comments some more.
1206
1207         * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1208
1209 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
1210
1211         * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1212         $(CPU_DOCS)".
1213         * doc/Makefile.in: Regenerate.
1214
1215 2003-01-01  John David Anglin  <dave.anglin@nrc.ca>
1216
1217         * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1218         of .init and .fini sections for array initializers and finalizers.
1219
1220 2002-12-31  Chris Demetriou  <cgd@broadcom.com>
1221
1222         * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1223         the "+D" operand, which will be used only by the disassembler.
1224
1225 2002-12-30  Chris Demetriou  <cgd@broadcom.com>
1226
1227         * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1228         CPU variants.
1229         * configure: Regenerate.
1230         * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1231         (macro_build): Handle "K" operand.
1232         (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1233         CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1234         (mips_ip): New variable "lastpos", and implement "+A", "+B",
1235         and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1236         Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1237         (validate_mips_insn): Implement "+" as a way to extend the
1238         allowed operands, and implement "K", "+A", "+B", and "+C"
1239         operands.
1240         (OPTION_MIPS32R2): New define.
1241         (md_longopts): Add entry for OPTION_MIPS32R2.
1242         (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1243         (md_parse_option): Handle OPTION_MIPS32R2.
1244         (s_mipsset): Reimplement handling of ".set mipsN" options
1245         and add support for ".set mips32r2".
1246         (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1247         (md_show_usage): Document "-mips32r2" option.
1248         * doc/as.texinfo: Document "-mips32r2" option.
1249         * doc/c-mips.texi: Likewise.
1250
1251 2002-12-30    Dmitry Diky <diwil@mail.ru>
1252
1253         * configure.in: Add msp430 target.
1254         * configure: Regenerate.
1255         * Makefile.am: Add msp430 target.
1256         * Makefile.in: Regenerate.
1257         * config/tc-msp430.c: New file: msp430 assembler.
1258         * config/tc-msp430.h: New file: target macros for msp430.
1259         * doc/Makefile.am: Add msp430 target.
1260         * doc/Makefile.in: Regenerate.
1261         * doc/as.texinfo: Include msp430 documenation.
1262         * doc/all.texi: Enable msp430 documentation.
1263         * doc/c-msp430.texi: New file: document msp430 specific features
1264         of the assembler.
1265
1266 2002-12-25  Alexandre Oliva  <aoliva@redhat.com>
1267
1268         * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1269         (dwarf2_finish): Use it.
1270         * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1271         * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1272
1273 2002-12-20  DJ Delorie  <dj@redhat.com>
1274
1275         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1276         BFD_RELOC_XSTORMY16_12.
1277
1278 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
1279
1280         * doc/as.texinfo (Invoking): Typo fix.
1281         * config/tc-tic54x.c (encode_operand): Comment typo fix.
1282
1283 2002-12-18  Kazu Hirata  <kazu@cs.umass.edu>
1284
1285         * doc/c-alpha.texi: Fix typos.
1286         * doc/c-arm.texi: Likewise.
1287         * doc/c-d10v.texi: Likewise.
1288         * doc/c-i370.texi: Likewise.
1289         * doc/c-i960.texi: Likewise.
1290         * doc/c-ia64.texi: Likewise.
1291         * doc/c-mmix.texi: Likewise.
1292         * doc/c-ns32k.texi: Likewise.
1293         * doc/c-pdp11.texi: Likewise.
1294         * doc/c-pj.texi: Likewise.
1295         * doc/c-sh64.texi: Likewise.
1296         * doc/c-sparc.texi: Likewise.
1297         * doc/c-tic54x.texi: Likewise.
1298         * doc/c-v850.texi: Likewise.
1299         * doc/c-vax.texi: Likewise.
1300         * doc/internals.texi: Likewise.
1301
1302 2002-12-18  Chris Demetriou  <cgd@broadcom.com>
1303
1304         * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1305         use hardware rotate ops as appropriate.  In M_DROL_I, M_DROR_I,
1306         M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1307         arrange not to issue warnings about use of AT when AT is not
1308         actually used.
1309
1310 2002-12-17  Nick Clifton  <nickc@redhat.com>
1311
1312         * as.c (std_longopts): Duplicate --keep-locals entry in order to
1313         prevent it being confused with -k.
1314
1315 2002-12-16  Andrew MacLeod  <amacleod@redhat.com>
1316
1317         * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1318         has already been set up, use it.
1319
1320 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
1321
1322         * ChangeLog-9295: Fix a typo.
1323         * README: Likewise.
1324         * config/tc-d10v.c: Fix a comment typo.
1325         * config/tc-dlx.c: Likewise.
1326         * config/tc-h8300.h: Likewise.
1327         * config/tc-h8500.h: Likewise.
1328         * config/tc-mips.c: Likewise.
1329         * config/tc-s390.c: Likewise.
1330         * config/tc-sh.h: Likewise.
1331         * config/tc-tic80.h: Likewise.
1332         * config/tc-w65.h: Likewise.
1333         * config/tc-z8k.c: Likewise.
1334         * config/tc-z8k.h: Likewise.
1335         * testsuite/gas/h8300/cmpsi2.s: Likewise.
1336
1337 2002-12-16  Alan Modra  <amodra@bigpond.net.au>
1338
1339         * config/tc-d30v.c (check_range): Warning fixes, formatting.
1340         Simplify sign extension.  Remove redundant unsigned < 0 test.
1341         * config/tc-i960.c (md_ri_to_chars): Prototype.
1342         * config/tc-mcore.c (md_pseudo_table): Fix typo.
1343         (dump_literals): Init brarsym, and test later instead of isforce.
1344
1345         * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1346         (parse): Constify line and lineptr.
1347         (md_begin): Calculate endop here.
1348
1349 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
1350
1351         * config/obj-vms.c: Formatting.  Include fnctl.h.
1352         (Create_VMS_Object_File): Fix creat call for sane unix systems.
1353         (Object_Record_Offset): Make it a size_t.
1354         (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1355         (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1356         (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1357         (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1358         (vms_fixup_data_section <data_size>): Add here instead.
1359         * config/e-criself.c: Fix typo in last change.
1360
1361 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
1362
1363         * write.c (write_object_file): Fix signed/unsigned warning.
1364         * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1365         * config/e-criself.c (criself_bfd_name): Prototype.
1366         * config/obj-aout.c (s_sect): Remove unused function.
1367         * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1368         * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1369         (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1370         * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1371         * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1372         (VMS_RSYM_Parse <Current_Routine>): Likewise.
1373         (vms_fixup_text_section <text_siz>): Likewise.
1374         (synthesize_data_segment <data_size>): Likewise.
1375         (vms_fixup_xtors_section <sect_no>): Likewise.
1376         (structure_count): Don't use implicit int type.
1377         * config/tc-a29k.c (insert_sreg): Prototype.
1378         (define_some_regs): Prototype, make static.
1379         (parse_operand): Likewise.
1380         (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1381         (md_show_usage <stream>): Likewise.
1382         (md_section_align <segment>): Likewise.
1383         (md_convert_frag <all args>): Likewise.
1384         (md_estimate_size_before_relax <all args>): Likewise.
1385         (md_apply_fix3): Don't cast valP pointer type.  Fix bogus >>='s.
1386         * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1387         * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1388         (md_undefined_symbol <name>): Likewise.
1389         (md_convert_frag <all args>): Likewise.
1390         (write_long <opcode>): Likewise.
1391         (tc_gen_reloc <seg>): Likewise.
1392         (md_estimate_size_before_relax <all args>): Likewise.
1393         (md_apply_fix3 <seg>): Likewise.
1394         (s_d30v_align <ignore>): Likewise.
1395         (build_insn): Correct format string.
1396         (md_apply_fix3): Likewise.
1397         * config/tc-fr30.c (md_parse_option <c,arg>):  Add ATTRIBUTE_UNUSED.
1398         (md_undefined_symbol <name>): Likewise.
1399         (md_convert_frag <all args>): Likewise.
1400         (md_cgen_lookup_reloc <insn>): Likewise.
1401         (md_begin): Delete unused vars.
1402         (md_assemble): Likewise.
1403         (md_estimate_size_before_relax): Likewise.
1404         (fr30_relax_frag): #if 0 out, seems unused.
1405         (md_atof): Remove declaration of atof_ieee.
1406         (restore_colon): Prototype.
1407         * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1408         (frv_find_in_vliw): Likewise.
1409         (frv_debug_tomcat): Likewise.
1410         (frv_adjust_vliw_count): Likewise.
1411         (frv_tomcat_shuffle): Likewise.
1412         (frv_tomcat_analyze_vliw_chains): Likewise.  Correct args to
1413         frv_find_in_vliw call.
1414         (md_atof): Remove declaration of atof_ieee.
1415         * config/tc-h8500.c (cons): Delete declaration.
1416         (md_begin <opcode>): Constify.
1417         (displacement_size, immediate_size, absolute_size): Remove.
1418         (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1419         (tc_crawl_symbol_chain <headers>): Likewise.
1420         (md_undefined_symbol <name>): Likewise.
1421         (tc_headers_hook <headers>): Likewise.
1422         (md_parse_option <c,arg>): Likewise.
1423         (md_show_usage <stream>): Likewise.
1424         (md_convert_frag <headers, seg>): Likewise.
1425         (tc_coff_symbol_emit_hook <ignore>): Likewise.
1426         (md_atof): Remove declaration of atof_ieee.
1427         (tc_aout_fix_to_chars): Remove unused function.
1428         (parse_reg): Prototype.
1429         (parse_exp): Prototype.
1430         (skip_colonthing): Prototype.  Use &&, not & in logical expressions.
1431         (parse_reglist): Prototype.
1432         (get_operand): Prototype.
1433         (get_operands): Prototype.
1434         (get_specific): Prototype.  Make "this_index" signed.
1435         (check): Prototype, make static.
1436         (insert): Prototype
1437         (build_relaxable_instruction): Prototype, make static.
1438         (build_bytes): Prototype.
1439         (wordify_scb): Prototype.
1440         * config/tc-h8500.h (start_label): Declare.
1441         (tc_coff_sizemachdep): Declare.
1442         * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1443         (i370_rmode <unused>): Likewise.
1444         (i370_csect <unused>): Likewise.
1445         (i370_dc <unused>): Likewise.
1446         (i370_ds <unused>): Likewise.
1447         (i370_elf_lcomm <unused>): Likewise.
1448         (i370_ltorg <ignore>): Likewise.
1449         (i370_using <ignore>): Likewise.
1450         (i370_drop <ignore>): Likewise.
1451         (i370_byte <ignore>): Likewise.
1452         (i370_tc <ignore>): Likewise.
1453         (md_estimate_size_before_relax <fragp, seg>): Likewise.
1454         (md_convert_frag <all args>): Likewise.
1455         (md_undefined_symbol <name>): Likewise.
1456         (md_pcrel_from_section <sec>): Likewise.
1457         (tc_gen_reloc <seg>): Likewise.
1458         (i370_section_letter): #if 0 unused functions.
1459         (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1460         (symbol_locate): Prototype.
1461         * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1462         (md_number_to_disp, md_number_to_field): Remove.
1463         (md_apply_fix3): Correct format string and cast "fup".
1464         * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1465         (s_endian <ignore>): Likewise.
1466         (md_undefined_symbol <name>): Likewise.
1467         (tc_crawl_symbol_chain <headers>): Likewise.
1468         (tc_set_bal_of_call): Likewise.
1469         (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1470         (i960_handle_align <fragp>): Likewise.
1471         (i960_validate_fix <this_segment_type>): Likewise
1472         (tc_gen_reloc <section>): Likewise.
1473         (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1474         (struct memS, struct regop): Forward declare.
1475         (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1476         get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1477         parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1478         reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1479         targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1480         (md_chars_to_number, md_number_to_imm): Make static, prototype.
1481         (md_number_to_field): Likewise.
1482         (md_number_to_disp): Remove unused function.
1483         (md_atof): Remove declaration of atof_ieee.
1484         (md_apply_fix3): Correct md_number_to_imm call.
1485         * config/tc-ip2k.c (md_assemble): Warning fix.
1486         * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1487         (fill_insn <ignore>): Likewise.
1488         (debug_sym <ignore>): Likewise.
1489         (md_undefined_symbol <name>): Likewise.
1490         (m32r_scomm <ignore>): Likewise.
1491         (md_convert_frag <abfd>): Likewise.
1492         (md_cgen_lookup_reloc <insn>): Likewise.
1493         (m32r_record_hi16 <seg>): Likewise.
1494         (md_estimate_size_before_relax): #if 0 old_fr_fix.
1495         (allow_m32rx): Prototype.
1496         (first_writes_to_seconds_operands): Prototype.
1497         (writes_to_pc): Prototype.
1498         (can_make_parallel): Prototype.
1499         (make_parallel): Prototype.
1500         (target_make_parallel): Prototype.
1501         (assemble_two_insns): Prototype.
1502         (m32r_record_hi16): Prototype.
1503         (md_atof): Remove declaration of atof_ieee.
1504         * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1505         (m32r_force_relocation): Prototype.
1506         (m32r_elf_section_change_hook): Prototype.
1507         * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1508         (md_show_usage): Fix signed/unsigned warning.
1509         * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1510         (calcop): Ditto for reg_prefix var.
1511         (hexval): Add cast to fix signed/unsigned warning.
1512         (md_number_to_disp): Delete unused function.
1513         (md_number_to_field): Likewise.
1514         (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1515         (match_name): Prototype.
1516         (get_bf2): Prototype.
1517         (get_bf_offset_expression): Prototype.
1518         * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1519         (md_undefined_symbol <ignore>): Likewise.
1520         (md_create_short_jump <all args>): Likewise.
1521         (md_create_long_jump <all args>): Likewise.
1522         (md_convert_frag <abfd, sec>): Likewise.
1523         (md_apply_fix3 <segment>): Likewise.
1524         (md_section_align <segment>): Likewise.
1525         (md_pcrel_from_section <sec>): Likewise.
1526         (tc_gen_reloc <section>): Likewise.
1527         (reg_m, reg_n, immediate): Delete unused vars.
1528         (dump_literals): Fix signed/unsigned warning.
1529         (enter_literal): Likewise.
1530         (parse_imm): Likewise.  Also fix format string.
1531         (parse_mem): Remove unused var.
1532         (md_assemble <LS>): Abort on unexpected inst.
1533         (md_atof): Remove declaration of atof_ieee.
1534         (md_parse_option): Remove unused vars.
1535         (md_apply_fix3): Fix format strings, cast args.
1536         (tc_gen_reloc): Delete unused var.
1537         * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1538         * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1539         (md_undefined_symbol <name>): Likewise.
1540         (md_convert_frag <abfd>): Likewise.
1541         (tc_gen_reloc <seg>): Likewise.
1542         (check_operand <insn>): Likewise.
1543         (md_convert_frag): Fix format strings.
1544         (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1545         * config/tc-openrisc.c (ignore_pseudo): Prototype.
1546         (md_atof): Remove declaration of atof_ieee.
1547         * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1548         (md_apply_fix3): Fix bogus >>='s.
1549         (md_undefined_symbol): Delete unused var.
1550         * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1551         (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1552         (fake_opcode): Adjust for pj_opc_int_t change.
1553         (md_begin): Likewise.
1554         (md_assemble): Likewise.
1555         (ipush_code): Correct parse_exp_save_ilp call.  Test pending_reloc
1556         instead of non-existent third arg of parse_exp_save_ilp.
1557         (md_parse_option): Correct "little" and "big" calls.
1558         * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1559         (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1560         (tc_gen_reloc <section>): Likewise.
1561         * config/tc-tic30.c: #include stdarg.h or varargs.h.
1562         (debug): Rewrite using VA_* macros.
1563         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1564         (md_convert_frag): Likewise.
1565         (md_parse_option): Likewise.
1566         (md_show_usage): Likewise.
1567         (md_undefined_symbol): Likewise.
1568         (tc_gen_reloc): Likewise.
1569         (md_operand): Likewise.
1570         (tc_aout_pre_write_hook): Delete.
1571         (struct tic30_insn): Make "operands" unsigned.
1572         (struct tic30_par_insn): Likewise.
1573         (md_assemble): Likewise for "count", "i" and "numops".
1574         (tic30_parallel_insn): Likewise for vars here.
1575         (tic30_operand): Likewise.  Remove useless unsigned >= 0 comparison.
1576         * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1577         * config/tc-tic80.c (obj_coff_section): Delete declaration.
1578         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1579         (md_undefined_symbol): Likewise.
1580         (md_parse_option): Likewise.
1581         (md_convert_frag): Likewise.
1582         (tc_coff_symbol_emit_hook): Likewise.
1583         (md_atof): Remove declaration of atof_ieee.
1584         (const_overflow): Warning fixes, tidy.
1585         (get_operands): Delete unused vars.
1586         (internal_error_a): Adjust format string to expect a long for arg.
1587         (find_opcode): Warning fixes, simplify.
1588         (build_insn): Cast internal_error_a arg.
1589         (md_begin): Likewise.
1590         (md_apply_fix3): Likewise.
1591         (md_assemble): Delete unused var.
1592         * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1593         * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1594         (whatreg, parse_reg, parse_exp): Make static, prototype.
1595         (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1596         (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1597         (get_operand, get_operands, get_specific, newfix): Likewise.
1598         (apply_fix, build_bytes): Likewise.
1599         (md_atof): Remove declaration of atof_ieee.
1600         (tc_aout_fix_to_chars): Delete.
1601         (md_begin): Constify "opcode".  Don't try to init opcode->idx.
1602         Fix s_unseg call.
1603         (md_parse_option): Fix s_segm and s_unseg calls.
1604
1605 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1606
1607         * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1608         Adjust callers.
1609         (RELAX_BRANCH_RELOC_S2): Delete.
1610         (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1611         Do not handle BFD_RELOC_16_PCREL.
1612         (macro_build, mips_ip): Likewise.
1613         (md_pcrel_from): Return 4 for undefined symbols regardless of
1614         mips_pic.
1615         (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1616         Don't dereference howto if no such relocation is available.
1617         Do not apply hack for in-place zero addend in NEWABI.
1618         (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1619
1620 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
1621             Alan Modra  <amodra@bigpond.net.au>
1622
1623         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1624         (TC_LINKRELAX_FIXUP): Add comments.
1625
1626 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1627
1628         * config/tc-mn10300.c (set_arch_mach): Change argument type to
1629         avoid warnings.
1630         (r_register_name, xr_register_name): Add prototype declarations.
1631
1632 2002-12-08  H.J. Lu <hjl@gnu.org>
1633
1634         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1635         copied from tc-i386.c.
1636
1637 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
1638
1639         Fix Bug savannah/1825:
1640         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1641         (md_relax_table): Define specific relax for PC-rel offsets.
1642         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1643         (m68hc11_relax_frag): Handle the new relax code.
1644         (md_convert_frag): Likewise.
1645         (md_estimate_size_before_relax): Likewise.
1646
1647 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
1648
1649         * subsegs.c (section_symbol): Use the symbol, not the section, name.
1650
1651 2002-12-05  Richard Henderson  <rth@redhat.com>
1652
1653         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1654         (ia64_gen_real_reloc_type): Handle it.
1655         (pseudo_func): Add @ltoffx.
1656         (md_begin): Build .<ltoffx>.
1657         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1658
1659 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
1660
1661         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1662         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1663         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1664         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1665         COFF to call arm_force_relocation.
1666
1667 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
1668
1669         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1670         instruction.
1671         (emit_one_bundle): Handle "hint" instruction.
1672         (operand_match): Match IA64_OPND_AR_CSD.
1673
1674 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
1675
1676         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
1677         inside #if.
1678
1679 2002-12-03  Nick Clifton  <nickc@redhat.com>
1680
1681         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1682         .PPC.EMB.apuinfo sections.
1683
1684 2002-12-03  Richard Henderson  <rth@redhat.com>
1685
1686         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1687
1688 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
1689
1690         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
1691         (cons, s_align_bytes): Delete declaration.
1692         (relax): Delete.
1693         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
1694         strings common.
1695         (dot): Delete unused function.
1696         (w65_expression): Remove unused arg.
1697         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
1698         call.
1699         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
1700         parse_exp call.
1701         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
1702         value.
1703         (check): Remove unused function.
1704         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
1705         on unhandled switch case.
1706         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
1707         "opcode".
1708         (tc_crawl_symbol_chain): Delete unused function.
1709         (tc_headers_hook): Likewise.
1710         (tc_Nout_fix_to_chars): Likewise.
1711         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1712         (md_parse_option): Likewise.
1713         (md_convert_frag): Likewise.
1714         (tc_coff_symbol_emit_hook): Likewise.
1715         (md_show_usage): Likewise.
1716         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1717         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1718         (w65_expression): Declare.
1719
1720         * po/POTFILES.in: Regenerate.
1721
1722         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1723         and ARM_ADRL_IMMEDIATE.
1724
1725 2002-12-02  Nick Clifton  <nickc@redhat.com>
1726
1727         * gasp.c: Delete.  It has been deprecated.
1728         * NEWS: Mention that gasp has been removed.
1729         * Makefile.am: Remove references to gasp.
1730         * makefile.vms: Likewise.
1731         * mpw-make.sed: Likewise.
1732         * Makeile.in: Regenerate.
1733         * doc/gasp.texi: Delete.
1734         * doc/Makefile.am: Remove references to gasp.texi.
1735         * doc/Makefile.in: Regenerate.
1736         * macro.c: Delete references to gasp.
1737         Remove use of comment_char function parameter as it is no longer
1738         needed.
1739         * macro.h: Update prototypes to remove comment_char parameter.
1740         Fix formatting.
1741         * read.c (read_a_source_file, s_irp): Remove comment_char
1742         parameter from invocation of functions in macro.c
1743
1744 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
1745
1746         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1747
1748 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1749
1750         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1751         (tc_gen_reloc): Mark section param as not used.
1752
1753 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1754
1755         Fix Bug savannah/1825:
1756         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1757         that are not pc-relative.
1758         (m68hc11_relax_frag): Declare.
1759
1760         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1761         the offsetable indexed addressing modes (n,r).
1762         (build_insn): Cleanup some locals.
1763         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1764         relaxation of difference between two symbols of same section.
1765         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1766         only when this is a PC-relative operand and the offset is not absolute.
1767         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1768         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1769         be handled by m68hc11_relax_frag.
1770
1771 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1772
1773         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1774         (32-bit int, 64-bit double).
1775         (md_longopts): New options -mshort, -mlong, -mshort-double and
1776         -mlong-double to control the ABI.
1777         (md_show_usage): Update.
1778         (md_parse_option): Handle new options.
1779         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1780
1781 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1782
1783         * symbols.c (report_op_error): New function, broken out of ...
1784         (resolve_symbol_value): ... here. Use for both monadic and dyadic
1785         operators.
1786
1787 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1788
1789         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1790         for BFD_RELOC_32_PLT_PCREL.
1791
1792 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
1793
1794         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1795         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1796         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1797         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1798         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1799         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1800         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1801         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1802         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1803         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1804         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1805         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1806         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1807         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1808         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
1809         TRUE/FALSE.  Formatting.
1810
1811 2002-11-29  Nick Clifton  <nickc@redhat.com>
1812
1813         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1814         assume a value of zero.
1815         (do_bkpt): Likewise.
1816
1817 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1818
1819         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1820         for TLS relocations.
1821
1822 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
1823
1824         * config/tc-ia64.c (md_apply_fix3): Add default case.
1825
1826 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1827
1828         * symbols.c (S_SET_THREAD_LOCAL): New function.
1829         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1830         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1831         for TLS relocations.
1832         * config/tc-ia64.c (md_apply_fix3): Likewise.
1833         * config/tc-alpha.c (md_apply_fix3): Likewise.
1834
1835 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1836
1837         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1838         to entsize.
1839
1840 2002-11-26  DJ Delorie  <dj@redhat.com.
1841
1842         * dwarf2dbg.c (scale_addr_delta): New.
1843         (size_inc_line_addr): Use it.
1844         (emit_inc_line_addr): Use it.
1845
1846 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
1847
1848         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1849         (md_assemble): Don't pass on branches to constants as relaxable.
1850         Tweak comment.
1851
1852 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
1853
1854         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1855
1856 2002-11-21  Randolph Chung  <randolph@tausq.org>
1857
1858         * config/tc-hppa.h (tc_frob_symbol):  Frob undefined unused symbols
1859         only if they have default visibility.
1860
1861 2002-11-21  Richard Henderson  <rth@redhat.com>
1862
1863         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1864         S_IS_DEFINED test.
1865
1866 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
1867
1868         * config/tc-mcore.c (mcore_pool_count): New function.
1869         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1870
1871 2002-11-20  Klee Dienes  <kdienes@apple.com>
1872
1873         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
1874         coalesce the name fields to use the same pointer.
1875
1876         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
1877         the name fields to use the same pointer.
1878         (get_specific): Check for opcodes with the same name using strcmp
1879         as well as comparing the pointer.
1880
1881 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
1882
1883         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1884         fx_subsy non-NULL.
1885
1886 2002-11-19  Richard Henderson  <rth@redhat.com>
1887
1888         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1889         visibility portion of st_other.
1890
1891 2002-11-19  Klee Dienes  <kdienes@apple.com>
1892
1893         * config/tc-h8300.c (struct h8_instruction): New type, used to
1894         wrap h8_opcodes with length, noperands, idx, and size fields
1895         (computed at run-time).
1896         (h8_instructions): New variable.
1897         (md_begin): Allocate the storage for h8_instructions.  Fill
1898         h8_instructions with pointers to the appropriate opcode and the
1899         correct value for the additional fields.
1900         (clever_message): Update to use h8_instructions instead of
1901         h8_opcodes.
1902         (build_bytes): Ditto.
1903         (get_specific): Ditto.
1904         (md_assemble): Ditto.
1905
1906 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1907
1908         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1909         adjustments to symbols in merge sections.
1910
1911 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
1912
1913         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1914
1915 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
1916
1917         * dwarf2dbg.h (dwarf2_format): New enum.
1918         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1919         (out_debug_line, out_debug_info): Add code for handling 64-bit
1920         DWARF 2 formats.
1921         * config/tc-mips.h (mips_dwarf2_format): Declare.
1922         * config/tc-mips.c (mips_dwarf2_format): New function.
1923         * doc/internals.texi (DWARF2_FORMAT): Document.
1924
1925 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
1926
1927         * config/tc-mips.c (s_change_section): Make sure input buffer
1928         is not accessed past the end.  Don't hand
1929         obj_elf_change_section a pointer into the input buffer.
1930
1931 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
1932
1933         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1934         GOT_LO16 on NEWABI.
1935
1936 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1937
1938         * config/tc-tic4x.c: Fixed proper commandline
1939         parameters. Added support for new opcode-list format. General
1940         error message fixups.
1941         (c4x_inst_add): Reject insn not for our CPU
1942         (md_begin): Added matrix for setting the proper opcode-level &
1943         device-flags according to cpu type and revision. Rewrite the
1944         opcode hasher.
1945         (c4x_operand_parse): Fix opcode bug
1946         (c4x_operands_match): New function argument. Added dry-run
1947         mechanism, that is optional error generation. Added constraint 'i'
1948         and 'j'.
1949         (c4x_insn_check): Added new function for post-verification of the
1950         generated insn.
1951         (md_assemble): Check all opcodes before croaking because of an
1952         argument mismatch. Need this to be able to fully support
1953         ortogonally arguments.
1954         (md_parse_options): Revised commandprompt swicthes and added new
1955         ones.
1956         (md_show_usage): Complete rewrite of printout.
1957
1958 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
1959
1960         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1961           (c4x_operands_match): Added check for 8-bits LDF insn. Give
1962           warning when using constant direct bigger than 2^16. Add the new
1963           arguments.
1964
1965 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1966
1967         * configure.in: Use .gdbinit under Cygwin.
1968         * configure: Regenerate.
1969
1970 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1971
1972         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1973         STRICT_PE_FORMAT.
1974
1975 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
1976
1977         * config/tc-tic4x.c: Declare as many functions as possible as
1978         static. Maintenance on the general indenting. Removed unnecessary
1979         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1980         function. Add support for new DSP, TMS320VC33. Fix bug for
1981         converting flonum constants.
1982         (c4x_do_align): Add proper align handling. Setup align to insert
1983         NOP's.
1984         (c4x_gen_to_words): Support for extended TI type floats.
1985         (md_atof): Proper dumping of multiple-word littlenums.
1986         (c4x_atof): Added support for extended TI type floats.
1987         (c4x_stringer): Added new function to handle compact strings.
1988         (c4x_emit_char): Added new function argument to handle custom
1989         length inserts, like single-byte strings.
1990         * config/tc-tic4x.h: Add proper align handling with NOP's.
1991         * Makefile.am: Added tic4x dependecy
1992         * Makefile.in: Regenerate
1993
1994 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
1995
1996         * macro.c (get_any_string): Correct logic for not going beyond end
1997         of in->ptr[].
1998
1999 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
2000
2001         * config/tc-mmix.c (get_putget_operands): Mark both possible
2002         operands as invalid at beginning.
2003
2004         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2005         Initialize target of fixup to zero.
2006
2007 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
2008
2009         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2010         NEWABI, but we should still emit HI16_S for non-PIC n32.
2011
2012 2002-11-06  Richard Henderson  <rth@redhat.com>
2013
2014         * config/tc-alpha.c (alpha_validate_fix): Move code ...
2015         (alpha_fix_adjustable): ... here.
2016         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2017
2018 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
2019
2020         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2021         of a label.
2022
2023 2002-11-05  H.J. Lu <hjl@gnu.org>
2024
2025         * config/tc-mips.c (support_64bit_objects): Check *l before it
2026         is freed.
2027
2028 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
2029
2030         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2031         SEC_LOAD flags for sections marked as 's'.
2032
2033 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
2034
2035         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2036         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2037         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2038         default.
2039
2040         * dep-in.sed: Fix typo.
2041
2042 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
2043
2044         * configure.in: Update ARM CPU patterns.
2045         * configure: Regenerated.
2046
2047 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2048
2049         * itbl-lex.l: Use #include <> for generated headers.
2050         * itbl-ops.c: Likewise.
2051
2052 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
2053
2054         * doc/gasp.texi: Fix typo in deprecation note.
2055
2056 2002-10-23  Nick Clifton  <nickc@redhat.com>
2057
2058         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2059         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2060
2061 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
2062
2063         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2064         (tc_frob_file_before_adjust): Don't define.
2065         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2066         function.
2067         (mmix_frob_file_before_adjust): Remove ineffective function.
2068
2069 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
2070
2071         * config/tc-cris.c (SIMPLE_EXPR): New macro.
2072         (cris_relax_frag): New function.
2073         (md_estimate_size_before_relax) <case ENCODE_RELAX
2074         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2075         expressions that will become absolute expressions to relaxation.
2076         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2077         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
2078         value, not distance to symbol.
2079         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2080         Ditto.  Correct placement of fixup.
2081         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2082         (gen_bdap): Ditto.
2083         * config/tc-cris.h (cris_relax_frag): Declare.
2084         (md_relax_frag): Define.
2085
2086 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
2087
2088         * config/obj-elf.c (special_sections): Use correct types for init
2089         array sections.
2090         (obj_elf_change_section): Don't mess with init array section type.
2091
2092 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
2093
2094         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2095         for relocs against symbols in a merged section.
2096
2097 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
2098
2099         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2100         table as register names.
2101
2102 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
2103
2104         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2105         for option -m31.
2106
2107 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
2108
2109         * expr.c (operand): Add support for n.nn flonums.
2110
2111 2002-10-17  Johannes Stezenbach  <js@convergence.de>
2112
2113         * itbl-parse.y (entry): Provide empty action.
2114
2115 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
2116
2117         * configure.in (BFDVER_H): Set and subst.
2118         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2119         * Makefile.am: Run "make dep-am".
2120         (BFDVER_H): Define.
2121         * configure: Regenerate.
2122         * Makefile.in: Regenerate.
2123         * doc/Makefile.in: Regenerate.
2124
2125 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
2126
2127         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2128         (MD_APPLY_SYM_VALUE): Define for PE too.
2129
2130 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
2131
2132         * Makefile.am: Run "make dep-am".
2133         (CPU_OBJ_VALID): sh64 coff is invalid.
2134         * as.c: #include "bfdver.h".
2135         * Makefile.in: Regenerate.
2136         * config.in: Regenerate.
2137
2138 2002-10-14  Momchil Velikov  <velco@fadata.bg>
2139
2140         * config/tc-v850.c (CHECK_): Remove token pasting operator.
2141
2142 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
2143
2144         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2145         * configure: Regenerate.
2146
2147 2002-10-13  Eric Christopher  <echristo@redhat.com>
2148             Alexandre Oliva  <aoliva@redhat.com>
2149
2150         * config/tc-mips.c (s_gpdword): New function.
2151         (mips_pseudo_table): Add .gpdword.
2152         (mips_need_elf_addend_fixup): never for NEWABI.
2153         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2154         GPREL32 as done.
2155         (s_cpadd): Generate .cpadd on NEWABI.
2156
2157 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
2158
2159         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2160
2161 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
2162
2163         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2164         (md_relax_frag): Adjust macro.
2165         * config/tc-mips.c (mips_relax_branch): New variable.
2166         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2167         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2168         (RELAX_MIPS16_P): Adjust.
2169         (append_insn): Emit branch to non-constant in a frag_var if
2170         branch-relaxation is desirable and possible.
2171         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2172         (OPTION_ELF_BASE): Adjust.
2173         (md_parse_option): Handle new options.
2174         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2175         branch relaxation.
2176         (relaxed_branch_length): New function.
2177         (md_estimate_size_before_relax): Handle branch frags.
2178         (mips_relax_frag): Likewise.
2179         (md_convert_frag): Handle branch frags.  Warn if branch is
2180         relaxed.
2181
2182 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2183
2184         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2185         emitted.
2186         (md_apply_fix3): Add TLS relocs.
2187         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2188         @DTPOFF.
2189
2190 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
2191             Alan Modra  <amodra@bigpond.net.au>
2192
2193         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2194         (md_estimate_size_before_relax): Likewise for 8 bit branches.
2195
2196 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
2197
2198         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2199         inside loop.
2200
2201 2002-10-09  Richard Shann <richard.shann@superh.com>
2202             Stephen Clarke <stephen.clarke@superh.com>
2203
2204         * config/tc-sh64.c (sh64_target_format): Add support for sh64
2205         Linux environment.
2206
2207 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2208
2209         * contig/tc-sh.c (sh_local_pcrel): New.
2210         (sh_force_relocation): Use sh_local_pcrel.
2211         (md_pcrel_from_section): Check the relocation type whether it
2212         should be resolved locally. Use S_FORCE_RELOC.
2213
2214 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
2215
2216         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2217         (TC_FORCE_RELOCATION): Tidy arg.
2218
2219 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
2220             Ken Raeburn  <raeburn@cygnus.com>
2221             Aldy Hernandez  <aldyh@redhat.com>
2222             DJ Delorie  <dj@redhat.com>
2223             Michael Meissner  <meissner@redhat.com>
2224             Eric Christopher  <echristo@redhat.com>
2225             Richard Sandiford  <rsandifo@redhat.com>
2226
2227         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2228         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
2229         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2230         (hilo_interlocks): True for CPU_VR5500.
2231         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2232         (mips_fix_vr4122_bugs): New.
2233         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2234         (mips_emit_delays): Likewise.
2235         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2236         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2237         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2238         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2239         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2240         (OPTION_ELF_BASE): Bump.
2241         (md_parse_option): Handle the new options.
2242         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2243         vr5400 and vr5500.
2244
2245 2002-09-29  H.J. Lu <hjl@gnu.org>
2246
2247         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2248         twice if howto->pcrel_offset is true.
2249
2250 2002-09-28  Matt Thomas  <matt@3am-software.com>
2251             Jason Thorpe  <thorpej@wasabisystems.com>
2252
2253         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2254         convert undefined references to GOT32/PLT32 if PIC code is
2255         requested.  Fix comment.
2256
2257 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2258
2259         * config/tc-sh.c (sh_force_relocation): Return 0 for
2260         some PC relative relocations when not relaxing.
2261
2262 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
2263
2264         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2265         Define them if not BFD_ASSEMBLER.
2266         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2267         @tlsld.
2268         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2269         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2270         (tc_gen_reloc): Handle x86-64 TLS relocs.
2271
2272 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
2273
2274         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2275         fixups to current or absolute section.
2276
2277 2002-09-26  Jim Wilson  <wilson@redhat.com>
2278
2279         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2280         and frag_more.
2281
2282 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2283
2284         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2285         capable configuration.
2286         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2287         generation.
2288         (mips_ip): Likewise.
2289
2290 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2291
2292         * config/tc-mips.c (append_insn): Fix jump overflow check.
2293
2294 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
2295
2296         * config/tc-i386.c (process_operands): Warn about "lea" segment
2297         overrides.
2298
2299 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
2300
2301         * write.c: Delete set_segment_vma and prototype. Update all callers.
2302
2303 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
2304
2305         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2306         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
2307         Rename "fseg" to "sym_seg".
2308         * Makefile.am: Run "make dep-am".
2309         * Makefile.in: Regenerate.
2310         * doc/Makefile.in: Regenerate.
2311
2312 2002-09-20  Nick Clifton  <nickc@redhat.com>
2313
2314         * symbols.c (colon): Do not allow symbols to be created in the
2315         absolute section if WORKING_DOT_WORD is not defined and
2316         new_broken_words would require a new frag to be created.
2317
2318 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
2319
2320         * expr.c (expr): Simplify foo-foo here.
2321         (clean_up_expression): Remove O_subtract code.
2322
2323         * write.h (struct fix): Add fx_dot_value.
2324         (dot_value): Declare.
2325         * write.c (dot_value): New var.
2326         (fix_new_internal): Save dot_value as fx_dot_value.
2327         (fixup_segment): Adjust fx_offset using fx_dot_value.
2328         * expr.c (expr): Update dot_value.
2329
2330 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
2331
2332         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2333         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2334         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2335         if not defined.
2336         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2337         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2338         BFD_RELOC_386_TLS_GOTIE.
2339
2340 2002-09-19  Richard Henderson  <rth@redhat.com>
2341
2342         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2343         branch type relocs.
2344         (alpha_force_relocation): Don't special-case branch type relocs.
2345
2346 2002-09-19  Nick Clifton  <nickc@redhat.com>
2347
2348         * config/tc-m68k.c (select_control_regs): Handle situation where
2349         architecture has not yet been selected.
2350
2351 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
2352
2353         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2354         (IS_SEXT_16BIT_NUM): New macro.
2355         (macro_build_ldst_constoffset): New function, to build a set of
2356         instructions to do a load or store from a constant offset relative
2357         to a given register.
2358         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2359         .cprestore pseudo-op.
2360
2361 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
2362
2363         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2364
2365 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2366
2367         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2368
2369 2002-09-17  Stan Cox  <scox@redhat.com>
2370
2371         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2372         (macro): Likewise for la.  Likewise for ld.
2373         (mips_after_parse_args): Make -xgot optional, not the default.
2374         (md_apply_fix3): Allow composite relocation to set up gp.
2375         (tc_gen_reloc): Allow relaxing for newabi.
2376         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2377         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2378
2379 2002-09-17  Nick Clifton  <nickc@redhat.com>
2380
2381         * config/tc-arm.c (md_apply_fix3): Note that an implemented
2382         BFD_RELOC_ARM_IMMEDIATE has been done.
2383         (tc_gen_reloc): Do not issue reloc number of unimplemented
2384         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2385         their name is already in the error message - plus remove them
2386         from the default case.
2387
2388         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2389         behavior of instructions.
2390
2391 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
2392
2393         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2394         Convert functions to K&R format.
2395
2396 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2397
2398         * config/tc-mips.c (pdr_seg): Define only for ELF.
2399         (s_change_section): Remove unused variable. Don't use for nonELF.
2400
2401 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2402
2403         * config/obj-elf.c (obj_elf_change_section): Move prototype to
2404         obj-elf.h
2405         * config/obj-elf.h (obj_elf_change_section): Likewise.
2406
2407 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
2408
2409         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2410         (out_debug_info): Likewise.
2411
2412 2002-09-16  Bruno Haible  <bruno@clisp.org>
2413
2414         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2415         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2416         * config/tc-i386.c (i386_target_format): Likewise.
2417         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2418         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2419
2420 2002-09-13  Nick Clifton  <nickc@redhat.com>
2421
2422         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2423         when deciding if any operands have been skipped.
2424
2425 2002-09-11  Nick Clifton  <nickc@redhat.com>
2426
2427         * NEWS: New TI port supports both C4x and C3x series of DSPs.
2428
2429         * po/tr.po: Updated Turkish translation.
2430
2431 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
2432
2433         * config/tc-i386.c (md_apply_fix3): Allow addend for
2434         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2435         BFD_RELOC_386_TLS_LE_32.
2436
2437 2002-09-05  Jeff Law  <law@redhat.com>
2438
2439         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2440         marker relocations such as ENTRY/EXIT.
2441         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2442         to both OBJ_ELF and OBJ_SOM.
2443
2444 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
2445
2446         * doc/internals.texi (md_apply_fix3): Expand.
2447         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2448         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2449         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2450         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2451         EXTERN_FORCE_RELOC): Document.
2452         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2453         * as.h: Don't include struc-symbol.h for arc.
2454         (IS_ELF): Define.
2455         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2456         subtract absolute symbol.
2457         * obj.h (struct format_ops): Add frob_file_before_fix.
2458         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2459         * symbols.c (S_FORCE_RELOC): New function.
2460         * symbols.h (S_FORCE_RELOC): Declare.
2461         * write.c (TC_FORCE_RELOCATION): Change default.
2462         (TC_FORCE_RELOCATION_ABS): Define.
2463         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2464         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2465         (TC_FORCE_RELOCATION_SECTION): Don't define.
2466         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2467         (TC_FORCE_RELOCATION_SUB_ABS): Define.
2468         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2469         (TC_VALIDATE_FIX_SUB): Define.
2470         (TC_FIX_ADJUSTABLE): Don't define.
2471         (MD_APPLY_SYM_VALUE): Define this instead.
2472         (abs_section_sym): New variable.
2473         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
2474         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
2475         Don't put the absolute section sym on fixups here.
2476         (fix_segment): New function.
2477         (write_relocs): Don't call fixup_segment from here.
2478         (write_object_file): Instead call tc_frob_file_before_fix,
2479         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2480         Don't output the absolute section symbol.
2481         (fixup_segment): Rewrite.
2482         * write.h (abs_section_sym): Declare.
2483         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2484         obj_aout_frob_file.
2485         (aout_format_ops): Adjust to suit.
2486         * config/obj-aout.h (obj_frob_file): Don't define.
2487         (obj_frob_file_before_fix): Define.
2488         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2489         (S_FORCE_RELOC): Define.
2490         * config/obj-bout.h (S_FORCE_RELOC): Define.
2491         * config/obj-coff.c (coff_format_ops): Init new field.
2492         * config/obj-coff.h: Formatting fixes.
2493         (obj_sec_sym_ok_for_reloc): Define.
2494         (S_FORCE_RELOC): Define.
2495         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2496         (ecoff_frob_file): .. from here.
2497         (ecoff_format_ops): Add new function.
2498         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2499         (obj_frob_file_before_fix): Define.
2500         * config/obj-elf.c (elf_format_ops): Init new field.
2501         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2502         * config/obj-ieee.h: Formatting fixes.
2503         (S_FORCE_RELOC): Define.
2504         * config/obj-multi.h (obj_frob_file_before_fix): Define.
2505         * config/obj-vms.h (S_FORCE_RELOC): Define.
2506         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2507         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2508         for BFD_RELOC_32 and BFD_RELOC_64.
2509         (alpha_fix_adjustable): Remove extern and weak tests.
2510         (alpha_before_fix): Rename from alpha_adjust_symtab.
2511         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2512         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2513         (TC_VALIDATE_FIX): Tweak param name.
2514         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2515         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2516         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2517         (MD_APPLY_SYM_VALUE): Define.
2518         (tc_adjust_symtab): Don't define.
2519         (alpha_adjust_symtab): Don't declare.
2520         (tc_frob_file_before_fix): Define.
2521         (alpha_before_fix): Declare.
2522         (TC_INIT_FIX_DATA): Tweak param names.
2523         * config/tc-arc.c: Include "struc-symbol.h".
2524         (md_pcrel_from): Remove undefined sym fudge.
2525         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2526         Don't set fx_addnumber.
2527         (tc_gen_reloc): Remove spurious fx_addnumber comment.
2528         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2529         (EXTERN_FORCE_RELOC): Define.
2530         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2531         (tc_gen_reloc): Fudge ARM_GOTPC addend.
2532         (arm_validate_fix): Return void.
2533         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2534         Add plt and got reloc tests.
2535         (arm_force_relocation): Call S_FORCE_RELOC.
2536         * config/tc-arm.h (struct fix): Forward declare.
2537         (TC_VALIDATE_FIX): No longer set add_symbolP.
2538         (arm_validate_fix): Adjust declaration.
2539         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2540         (TC_FORCE_RELOCATION): Tweak param name.
2541         (TC_INIT_FIX_DATA): Likewise.
2542         (obj_fix_adjustable): Don't define.
2543         (tc_fix_adjustable): Call arm_fix_adjustable.
2544         (TC_FIX_ADJUSTABLE): Don't define.
2545         (MD_APPLY_SYM_VALUE): Define.
2546         (EXTERN_FORCE_RELOC): Define.
2547         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2548         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2549         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2550         Remove *valP fudges and code to subtract abs sym.  Don't set
2551         fx_addnumber.
2552         * config/tc-avr.h: Formatting.
2553         (EXTERN_FORCE_RELOC): Define.
2554         (MD_APPLY_SYM_VALUE): Define.
2555         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2556         (md_apply_fix3): Remove code to subtract abs sym.
2557         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
2558         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2559         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2560         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2561         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2562         (tc_fix_adjustable): Remove extern, weak tests.
2563         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2564         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
2565         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
2566         and code to subtract abs sym.
2567         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2568         (d10v_force_relocation): Call S_FORCE_RELOC.
2569         * config/tc-d10v.h: Don't include write.h.
2570         (struct fix): Instead, forward declare.
2571         (MD_PCREL_FROM_SECTION): Tweak param names.
2572         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2573         (d10v_fix_adjustable): Likewise.
2574         (obj_fix_adjustable): Don't define.
2575         (tc_fix_adjustable): Define.
2576         (TC_FORCE_RELOCATION): Tweak param name.
2577         (MD_APPLY_SYM_VALUE): Define.
2578         (EXTERN_FORCE_RELOC): Define.
2579         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2580         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
2581         and code to subtract abs sym.
2582         * config/tc-d30v.h: Don't include write.h.
2583         (struct fix): Instead, forward declare.
2584         (MD_PCREL_FROM_SECTION): Tweak param names.
2585         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2586         (MD_APPLY_SYM_VALUE): Define.
2587         (EXTERN_FORCE_RELOC): Define.
2588         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2589         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2590         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2591         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2592         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2593         Don't use fx_addnumber.
2594         * config/tc-dlx.h: Don't include write.h.
2595         (md_convert_frag): We're not alpha twice over.
2596         (EXTERN_FORCE_RELOC): Define.
2597         (obj_fix_adjustable): Don't define.
2598         (tc_fix_adjustable): Define.
2599         (TC_FIX_ADJUSTABLE): Don't define.
2600         (MD_APPLY_SYM_VALUE): Define.
2601         (LOCAL_LABELS_DOLLAR): Undef always.
2602         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2603         (fr30_fix_adjustable): Remove extern, weak tests.
2604         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2605         (obj_fix_adjustable): Don't define.
2606         (tc_fix_adjustable): Define.
2607         (struct fix): Forward declare.
2608         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
2609         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2610         (frv_fix_adjustable): Don't do extern, weak tests.
2611         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2612         (TC_FIX_ADJUSTABLE): Don't define.
2613         (obj_fix_adjustable): Don't define.
2614         (tc_fix_adjustable): Define.
2615         (struct fix): Forward declare.
2616         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
2617         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2618         * config/tc-h8300.h (struct fix): Forward declare.
2619         (EXTERN_FORCE_RELOC): Define.
2620         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2621         (hppa_fix_adjustable): Don't test extern or weak.  Don't
2622         symbol_mark_used_in_reloc.
2623         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2624         and S_IS_WEAK.
2625         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2626         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2627         (TC_FORCE_RELOCATION_SECTION): Don't define.
2628         (MD_APPLY_SYM_VALUE): Define.
2629         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2630         to subtract abs sym.
2631         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2632         (MD_APPLY_SYM_VALUE): Define.
2633         (MD_PCREL_FROM_SECTION): Tweak param name.
2634         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2635         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2636         (i386_force_relocation): New function.
2637         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2638         (TC_VALIDATE_FIX): Likewise.
2639         (TC_FIX_ADJUSTABLE): Don't define.
2640         (MD_APPLY_SYM_VALUE): Define.
2641         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2642         (i386_force_relocation): Declare.
2643         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2644         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2645         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2646         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2647         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2648         (EXTERN_FORCE_RELOC): Define.
2649         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
2650         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
2651         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
2652         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2653         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2654         Remove #if 0 code.  Invert return boolean.
2655         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2656         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2657         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2658         (tc_coff_sizemachdep): Prototype.
2659         (i960_handle_align): Likewise.
2660         (i960_validate_fix): Adjust declaration.
2661         (reloc_callj): Likewise.
2662         (EXTERN_FORCE_RELOC): Define.
2663         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2664         (TC_FORCE_RELOCATION_ABS): Define.
2665         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2666         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2667         (TC_FIX_ADJUSTABLE): Don't define.
2668         (MD_APPLY_SYM_VALUE): Define.
2669         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2670         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2671         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2672         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2673         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2674         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2675         (MD_APPLY_SYM_VALUE): Define.
2676         (EXTERN_FORCE_RELOC): Define.
2677         (TC_FORCE_RELOCATION): Tweak param name.
2678         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2679         (m32r_fix_adjustable): Don't test extern, weak.
2680         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2681         (MD_APPLY_SYM_VALUE): Define.
2682         (obj_fix_adjustable): Don't define.
2683         (tc_fix_adjustable): Define.
2684         (tc_frob_file): Don't define.
2685         (tc_frob_file_before_fix): Define.
2686         (EXTERN_FORCE_RELOC): Define.
2687         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
2688         BFD_RELOC_VTABLE_ENTRY address.
2689         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2690         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2691         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2692         Remove duplicated fx_done code.
2693         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2694         (EXTERN_FORCE_RELOC): Define.
2695         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2696         relaxable_symbol.
2697         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2698         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2699         (TC_FIX_ADJUSTABLE): Don't define.
2700         (EXTERN_FORCE_RELOC): Define.
2701         (MD_APPLY_SYM_VALUE): Define.
2702         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2703         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2704         Remove fx_addsy tests.
2705         (mcore_force_relocation): Call S_FORCE_RELOC.
2706         (mcore_fix_adjustable): Don't test fx_addsy.
2707         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2708         (EXTERN_FORCE_RELOC): Define.
2709         (obj_fix_adjustable): Don't define.
2710         (tc_fix_adjustable): Define.
2711         (MD_APPLY_SYM_VALUE): Define.
2712         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2713         (mips_pic): No longer static.
2714         (mips_force_relocation): Call S_FORCE_RELOC.
2715         (mips_fix_adjustable): Remove extern, weak tests.
2716         * config/tc-mips.h (enum mips_pic_level): Declare.
2717         (mips_pic): Declare.
2718         (tc_frob_file): Don't define.
2719         (tc_frob_file_before_fix): Define this instead.
2720         (EXTERN_FORCE_RELOC): Define.
2721         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2722         with reg_section tests.  Set fx_done instead of calling
2723         symbol_clear_used_in_reloc on bad relocs.
2724         (tc_gen_reloc): Zero fx_addsy on bad relocs.
2725         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
2726         (mmix_adjust_symtab): Simplify list handling.  Abort on any
2727         nonsense.
2728         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
2729         BFD_RELOC_MMIX_LOCAL.
2730         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
2731         (EXTERN_FORCE_RELOC): Define.
2732         (MD_PCREL_FROM_SECTION): Tweak param name.
2733         (tc_frob_file): Don't define.
2734         (tc_frob_file_before_fix): Define this instead.
2735         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2736         Remove SEC_CODE checks.
2737         (mn10300_fix_adjustable): Remove extern and weak tests.
2738         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2739         (TC_FORCE_RELOCATION): Tweak param name.
2740         (obj_fix_adjustable): Don't define.
2741         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2742         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2743         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2744         (openrisc_fix_adjustable): Don't test fx_addsy.
2745         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2746         (obj_fix_adjustable): Don't define.
2747         (tc_fix_adjustable): Define this instead.
2748         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2749         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2750         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2751         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2752         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2753         (MD_APPLY_SYM_VALUE): Define.
2754         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2755         Don't subtract symbol value.
2756         * config/tc-pj.h (md_pcrel_from): Tweak param name.
2757         (EXTERN_FORCE_RELOC): Define.
2758         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2759         (MD_APPLY_SYM_VALUE): Define.
2760         (obj_fix_adjustable): Don't define.
2761         (tc_fix_adjustable): Define this instead.
2762         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2763         section sym.
2764         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2765         (ppc_force_relocation <elf version>): New.
2766         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2767         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
2768         comments.  Don't subtract fx_subsy as that is already done.
2769         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2770         (MD_PCREL_FROM_SECTION): Likewise.
2771         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2772         ppc_force_relocation.
2773         (TC_FORCE_RELOCATION_SECTION): Delete.
2774         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2775         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2776         (MD_APPLY_SYM_VALUE): Define.
2777         * config/tc-s390.c: #include "dwarf2dbg.h".
2778         (s390_insn): Remove excess parens.
2779         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2780         (tc_s390_force_relocation): Call S_FORCE_RELOC.
2781         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
2782         non-NULL.  Don't subtract off fx_addsy value.
2783         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2784         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2785         (TC_FIX_ADJUSTABLE): Don't define.
2786         (MD_APPLY_SYM_VALUE): Define.
2787         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2788         (SWITCH_TABLE): Likewise.
2789         (sh_force_relocation): Call S_FORCE_RELOC.
2790         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2791         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2792         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2793         fx_addnumber is zero on entry.  Save val in fx_addnumber.
2794         (tc_gen_reloc): Don't subtract fx_subsy.
2795         * config/tc-sh.h (struct fix): Move.
2796         (obj_fix_adjustable): Don't define.
2797         (tc_fix_adjustable): Define this instead.
2798         (TC_FIX_ADJUSTABLE): Don't define.
2799         (MD_APPLY_SYM_VALUE): Define.
2800         (SWITCH_TABLE_CONS): Define.
2801         (SWITCH_TABLE): Define.
2802         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2803         (TC_VALIDATE_FIX_SUB): Define.
2804         (MD_PCREL_FROM_SECTION): Tweak param name.
2805         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2806         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2807         (TC_FORCE_RELOCATION_SUB_ABS): Define.
2808         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2809         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2810         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2811         (TC_VALIDATE_FIX_SUB): Define.
2812         (MD_PCREL_FROM_SECTION): Tweak param name.
2813         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2814         (tc_gen_reloc): Use S_FORCE_RELOC.
2815         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2816         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2817         (TC_FORCE_RELOCATION_ABS): Define this instead.
2818         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2819         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2820         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
2821         (MD_APPLY_SYM_VALUE): Define.
2822         (TC_FIX_DATA_PRINT): Tweak param name.
2823         * config/tc-tic30.c (USE_STDOUT): Don't define.
2824         (md_parse_option): Remove stupid debug code.
2825         (tc_gen_reloc): Don't use fx_addnumber.
2826         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2827         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
2828         * config/tc-v850.h (obj_fix_adjustable): Don't define.
2829         (tc_fix_adjustable): Define this instead.
2830         (TC_FIX_ADJUSTABLE): Don't define.
2831         (MD_APPLY_SYM_VALUE): Define this instead.
2832         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2833         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2834         (TC_FIX_ADJUSTABLE): Don't define.
2835         (MD_APPLY_SYM_VALUE): Define this instead.
2836         (tc_fix_adjustable): Remove extern and weak tests.
2837         * config/tc-w65.h (struct fix): Forward declare.
2838         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2839         S_FORCE_RELOC.
2840         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
2841         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
2842         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2843         absolute symbol.
2844         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2845         (MD_APPLY_SYM_VALUE): Define.
2846         (obj_fix_adjustable): Don't define.
2847         (tc_fix_adjustable): Define this instead.
2848         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
2849
2850 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
2851
2852         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2853         (ppc_fix_adjustable <coff version>): Cleanup.
2854
2855         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2856         (md_parse_option): No -a64 without BFD64.
2857         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2858         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2859
2860 2002-09-04  Nick Clifton  <nickc@redhat.com>
2861
2862         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2863         instructions into the hash table if the target cpu is the BookE32.
2864
2865 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
2866
2867         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2868         ATTRIBUTE_UNUSED.
2869
2870 2000-08-28  Catherine Moore  <clm@redhat.com>
2871
2872         * tc-v850.c (v850_relax): Declare.
2873         (v850_longcode): New routine.
2874         (v850_handle_align): New routine.
2875         (md_pseudo_table):  Add longcall and longjump.
2876         (md_parse_option): Check for relax option.
2877         (tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
2878         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2879         (md_apply_fix3): Likewise.
2880         (v850_force_relocation): Likewise.
2881         (v850_comm): Change the current section.
2882         (md_assemble):  Ensure that the correct value is put in the
2883         fixup.
2884         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2885         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2886         Remove redundant v850ea support.
2887         * tc-v850.h (HANDLE_ALIGN): Define.
2888         (v850_handle_align): Declare.
2889         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2890
2891 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
2892
2893         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2894         * configure: Regenerate.
2895         * NEWS: Mention new port.
2896
2897 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2898
2899         * config/obj-coff.c: Add sdef definition.
2900         * config/obj-coff.h: Add tic4x include file and set
2901         target format.
2902         * config/tc-tic4x.c: New file.
2903         * config/tc-tic4x.h: New file.
2904
2905 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
2906
2907         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2908         (TC_ADJUST_RELOC_COUNT): Tweak param name.
2909         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2910         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2911         (RELOC_ENUM): Define.
2912         (fix_new_internal): Use RELOC_ENUM.
2913         (fix_new, fix_new_exp): Likewise.
2914         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
2915         Replace gotos with continue.
2916         (write_relocs): Formatting.  Avoid symbol loops in
2917         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
2918         errors, and error number in other cases.
2919         (fixup_segment): Remove param names from prototype.  Rename
2920         "this_segment_type" to "this_segment".  Update linkrelax comment.
2921         Remove "size, "place" and "where" local vars.  Formatting.  Update
2922         "no symbol" comment.  Remove #if 0 and #if 1.
2923
2924         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
2925
2926 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
2927
2928         * dwarf2dbg.c: Always include dwarf2dbg.h.
2929         (dwarf2_directive_file): Adjust dummy version args.
2930         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2931         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2932         when symbol values differ.
2933         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2934         (pseudo_set <O_subtract>): Remove unnecessary segment test.
2935         * config/obj-bout.c (obj_pseudo_table): Warning fix.
2936
2937 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
2938
2939         * config/tc-w65.c (md_section_align): Fix typo.
2940         (md_parse_option): Return 0, not 1.
2941
2942 2002-08-22  Nick Clifton  <nickc@redhat.com>
2943
2944         * doc/as.texinfo (Section): Note that if '@' is a comment
2945         character then another symbol is used to prefix the section's
2946         type.
2947
2948 2002-08-22  Christian Groessler <chris@groessler.org>
2949
2950         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2951         "case 0" case.
2952
2953 2002-08-12  Graeme Peterson  <gp@qnx.com>
2954
2955         * configure.in: Add support for sh-**-nto* target.
2956         * configure: Regenerate.
2957
2958 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
2959
2960         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2961
2962 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2963
2964         * config/tc-ppc.c (ppc_cleanup): Do something only if format
2965         is ELF.
2966         (ppc_apuinfo_section_add): Define only if format is ELF.
2967         (md_assemble): Emit APUinfo section only if format is ELF.
2968         Fix formatting.
2969
2970 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
2971
2972         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2973         * config/tc-frv.c: Likewise.
2974         * config/tc-hppa.c: Likewise.
2975         * config/tc-ia64.c: Likewise.
2976         * config/tc-ip2k.c: Likewise.
2977         * config/tc-m68hc11.c: Likewise.
2978         * config/tc-m68k.c: Likewise.
2979         * config/tc-mmix.c: Likewise.
2980         * config/tc-mn10300.c: Likewise.
2981         * config/tc-sh.c: Likewise.
2982         * config/tc-sparc.c: Likewise.
2983         * config/tc-v850.c: Likewise.
2984
2985 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
2986
2987         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2988         by zero.
2989
2990 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2991
2992         From matthew green  <mrg@redhat.com>
2993
2994         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2995         PPC_OPCODE_PPC is, except for BookE architectures.
2996         (md_parse_option): Add support for -mspe.
2997         (md_show_usage): Add -mspe.
2998         (md_parse_option): Add support for -me500 and
2999         -me500x2 to generate code for Motorola e500 core complex.
3000         (md_show_usage): Add -me500 and -me500x2.
3001
3002         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3003         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3004         PPC_APUINFO_BRLOCK): New macros.
3005
3006         (ppc_cleanup): New function.
3007         (ppc_apuinfo_section_add): New function.
3008         (APUID): New macro.
3009         (md_assemble): Collect info and write the APUinfo section.
3010
3011         * config/tc-ppc.h (md_cleanup): Define.
3012         (ppc_cleanup): Export.
3013         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3014
3015 2002-08-17  Stan Cox  <scox@redhat.com>
3016
3017         * config/obj-elf.c (obj_elf_change_section): Make non-static.
3018         config/tc-mips.c (s_change_section): New function to support
3019         IRIX .section pseudo-op.
3020
3021 2002-08-16  Nick Clifton  <nickc@redhat.com>
3022
3023         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3024
3025 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
3026
3027         * config/tc-mips.c (macro_build_jalr): Make sure we generate
3028         the fix-up against on the right frag.
3029         (s_cpsetup): Likewise.  Parse third argument as expression, to
3030         handle global symbols and forward/backward labels correctly.
3031
3032 2002-08-14  Nick Clifton  <nickc@redhat.com>
3033
3034         * read.c (stringer): Catch attempts to create strings in the abs
3035         section.
3036
3037         * config/tc-alpha.c: Fix compiling for COFF targets.
3038         Some minor formatting tidyups.
3039
3040 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3041
3042         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3043         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3044         according to the reloc.
3045         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3046         (TC_FORCE_RELOCATION): Define.
3047         (tc_m68hc11_force_relocation): Declare.
3048
3049         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3050         (s_m68hc11_relax): New function for relax group.
3051         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3052         beginning of jump instruction.
3053         (md_pcrel_from): Rename from md_pcrel_from_section and fix
3054         address computation.
3055         (tc-gen_reloc): Update.
3056         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3057         PC-relative fixup.
3058         (tc_m68hc11_force_relocation): New function, handle new relocs.
3059         (tc_m68hc11_fix_adjustable): New to make sure there are enough
3060         reloc for the linker relax pass.
3061         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3062         and VTABLE relocs.
3063
3064 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3065
3066         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3067         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3068         (s_m68hc11_mode): New function for .mode pseudo op.
3069         (s_m68hc11_mark_symbol): New function for .far and .interrupt
3070         pseudo op.
3071         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3072         (m68hc11_elf_final_processing): Declare.
3073
3074 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3075
3076         * config/tc-m68hc11.c (md_begin): Take into account additional
3077         page operand for call instruction.
3078         (print_opcode_format): Likewise.
3079         (check_range): Likewise for page range checking.
3080         (get_operand): Don't skip a possible comma in operands.
3081         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3082         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3083         (fixup24): New to handle call reloc.
3084         (build_insn): Handle missing page operand for call instruction.
3085         (find): Likewise.
3086         (md_apply_fix3): Take into account new relocs.
3087         (get_operand): Fix the mode for indexed indirect addressing.
3088         (build_indexed_byte): Fix post index byte for indexed indirect mode.
3089
3090 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
3091
3092         * config/tc-mips.c (mips_ip): Don't work out the value of
3093         constant %hi()s here.
3094
3095 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
3096
3097         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3098         for ELF, and don't bother checking ELF relocs when non-ELF.
3099         (i386_immediate): Allow absolute_section expressions for aout.
3100         (i386_displacement): Likewise.  Also test bfd_is_com_section.
3101         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3102         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3103         not when fx_addsy.  Remove dead code.
3104
3105 2002-08-09  Graeme Peterson  <gp@qnx.com>
3106
3107         * configure.in: Add support for ppc-*-nto* target.
3108         * configure: Regenerate.
3109
3110 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
3111
3112         * config/tc-i386.h: Reorganize.
3113
3114 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3115
3116         * config/tc-mips.c (macro): Handle a register plus a 16-bit
3117         immediate offset in "dla" and "la" expansions.
3118
3119 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
3120
3121         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
3122         Remove "bfd_gas=yes" from target table when covered later.
3123         Consolidate some entries.
3124         * configure: Regenerate
3125
3126 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3127
3128         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3129         at start of insn, pass it to output_disp and output_imm.
3130         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
3131         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3132         properly addend.
3133         (output_imm): Added arguments.  Compute properly addend for
3134         R_386_GOTPC.
3135         (md_apply_fix3): Remove R_386_GOTPC handling.
3136
3137 2002-08-06  George France <france@handhelds.org>
3138
3139         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
3140         and m21264b processor names and cpu types.
3141         * doc/c-alpha.texi: Documented new types.
3142
3143 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
3144
3145         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3146
3147 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
3148
3149         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3150         handling to BFD_RELOC_MIPS16_GPREL.
3151
3152 2002-08-01  Nick Clifton  <nickc@redhat.com>
3153
3154         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3155         pool is computed using signed arithmetic so that proper sign
3156         extension is performed if X_add_number is a 64-bit integer.
3157
3158 2002-08-01  H.J. Lu  <hjl@gnu.org>
3159             Daniel Jacobowitz  <drow@mvista.com>
3160
3161         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3162         .debug_line section unless it has line information.
3163
3164 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
3165
3166         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3167         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3168         Allow default displacement size to be an option "--disp-size-default".
3169         (md_number_to_disp): Make error messages include value. Use %d to
3170         print integers, not %s.
3171         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3172         get duplicate messages sometimes.
3173         (convert_iif): Grow frag to max possible instruction size. Avoid
3174         creating unnecessary fixes.
3175         (md_number_to_field) Add prototype.
3176         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3177         prototypes and make static.
3178         (struct addr_mode): Make mode and scaled_mode explicitly signed.
3179         (evaluate_expr): Use resultP argument instead of exprP global.
3180         (get_addr_mode): Quiten compiler warnings.
3181         (encode_operand): eliminate unused variables. Quiten compiler
3182         warnings. Eliminate nul character in format strings.
3183         (parse): argc is unsigned.
3184         (reloc): Type cast index to quieten compiler.
3185         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3186         (md_convert_frag): Note unused parameters. Remove unused
3187         variables.
3188         (md_create_long_jump, md_create_short_jump,
3189         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3190         unused parameters.
3191
3192 2002-07-31  Nick Clifton  <nickc@redhat.com>
3193
3194         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3195         of the PDP-11 and 2.11BSD a.out support.
3196
3197 2002-07-31  Momchil Velikov  <velco@fadata.bg>
3198
3199         * config/tc-v850.c (md_assemble): Fix range check for immediate
3200         operand.
3201
3202 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
3203
3204         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3205         to Broadcom SB-1 core support.
3206
3207 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3208
3209         * config/tc-mips.c (mips_target_format): Fix formatting.
3210         Add recognition of n32 ABI formats.
3211
3212 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3213
3214         * tc-mips.c (load_address): Don't clobber $at when loading a
3215         64-bit address in non-PIC code if noat is in effect.
3216         (macro): Likewise.
3217
3218 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3219
3220         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3221         used in division/multiply macro expansions similarly to how they
3222         are used in the variants with break instructions.
3223         (macro2): Likewise.
3224
3225 2002-07-30  Graeme Peterson  <gp@qnx.com>
3226
3227         * configure.in: Add support for arm-*-nto target.
3228         * configure: Regenerate.
3229
3230 2002-07-30  Nick Clifton  <nickc@redhat.com>
3231
3232         * config/tc-arm.c (struct literal_pool): Add fields to allow
3233         multiple literal pools to be maintained.
3234         (find_literal_pool): New function.
3235         (find_or_make_literal_pool): New function.
3236         (add_to_literal_pool): Use find_or_make_literal_pool.
3237         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3238         needed.
3239         (s_ltorg): Use find_literal_pool.
3240         (arm_cleanup): Dump all literal pools.
3241         * doc/c-arm.texi: Document new behaviour of only dumping literal
3242         pools upon request.
3243
3244 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
3245
3246         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3247         rather than PPC_OPCODE_32 for powerpc64*.
3248
3249 2002-07-25  Nick Clifton  <nickc@redhat.com>
3250
3251         * po/es.po: Updated Spanish translation.
3252         * po/fr.po: Updated French translation.
3253
3254 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
3255
3256         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
3257         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3258         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3259         * configure, config.in: Regenerate.
3260         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3261         (mips_set_options): Remove "abi" field.
3262         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
3263         with mips_abi.
3264         (mips_cpu): Remove.
3265         (mips_arch_string, mips_arch_info): New vars.
3266         (mips_tune_string, mips_tune_info): New vars.
3267         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3268         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3269         (mips_isa_to_str, mips_cpu_to_str): Remove.
3270         (mips_ip): If the selected architecture is a generic ISA rather
3271         than a processor, only mention the ISA level in error messages.
3272         (OPTION_MCPU): Remove.
3273         (OPTION_FP64): New.
3274         (md_longopts): Add -mfp64, remove -mcpu.
3275         (mips_set_option_string): New fn.
3276         (md_parse_option): Make -mipsN update file_mips_isa rather than
3277         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
3278         Don't let -mgp32 and -mfp32 change the ABI.
3279         (show): Move to end of file.  Constify string argument.
3280         (md_show_usage): Move to the end of the file.  Read available
3281         architectures from mips_cpu_info_table.
3282         (mips_set_architecture): New fn.
3283         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
3284         is an alias for -march=mipsN.  Don't change the ABI based on other
3285         flags.  Infer the register size from the ABI as well as the
3286         architecture.  Complain about more conflicting arguments.
3287         Unify logic with GCC.
3288         (s_mipsset): Don't change the ABI.
3289         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3290         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3291         "mipsN"-type entries.  Remove entries that vary only in the
3292         manufacturer's prefix, or that have "000" replaced by "k".
3293         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
3294         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3295         (mips_parse_cpu): New fn.
3296         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3297         (mips_cpu_info_from_isa): Minor formatting tweak.
3298
3299 2002-07-24  Nick Clifton  <nickc@redhat.com>
3300
3301         * po/sv.po: Updated Swedish translation.
3302         * po/es.po: Updated Spanish translation.
3303
3304 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
3305
3306         * Makefile.am: Run "make dep-am".
3307         * Makefile.in: Regenerate.
3308         * doc/Makefile.in: Regenerate.
3309         * config.in: Regenerate.
3310         * po/POTFILES.in: Regenerate.
3311
3312 2002-07-23  Nick Clifton  <nickc@redhat.com>
3313
3314         * po/fr.po: Updated French translation.
3315
3316 2002-07-23  Nick Clifton  <nickc@redhat.com>
3317
3318         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3319         GAS.
3320
3321 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3322
3323         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3324         instead of S_IS_EXTERN.
3325         (md_estimate_size_before_relax): Likewise.
3326         (mips_fix_adjustable): Likewise.
3327
3328 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3329
3330         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3331
3332 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3333             Nick Clifton  <nickc@redhat.com>
3334
3335         * cond.c (s_ifdef): Treat a referenced but not yet defined
3336         symbol as if it were undefined, in exactly the same way as
3337         .equiv.
3338
3339         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3340         consider referenced bug not yet defined symbols to be
3341         undefined.
3342
3343 2002-07-18  Denis Chertykov  <denisc@overta.ru>
3344             Frank Ch. Eigler  <fche@redhat.com>
3345             Alan Lehotsky  <alehotsky@cygnus.com>
3346             John Healy  <jhealy@redhat.com>
3347             Jeff Johnston  <jjohnstn@redhat.com>
3348
3349         * configure.in: Add ip2k configuraton.
3350         * configure: Regenerate.
3351         * Makefile.am: Add ip2k configuraton.
3352         * Makefile.in: Regenerate.
3353         * configure: Regenerate.
3354         * Makefile.in: Regenerate.
3355         * config/tc-ip2k.c: New file.
3356         * config/tc-ip2k.h: New files.
3357         * NEWS: Mention new support.
3358         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3359         * doc/Makefile.in: Regenerate.
3360         * doc/all.texi: Set IP2K
3361         * doc/as.texinfo: Add IP2K description.
3362         * doc/c-ip2k.texi: New file.
3363
3364 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
3365
3366         * NEWS: Reformat to match style of other NEWS files.
3367
3368 2002-07-17  Jan Hubicka  <jh@suse.cz>
3369
3370         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3371
3372 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
3373
3374         * config/tc-z8k.c (build_bytes): Correct order of memset args.
3375
3376 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
3377
3378         * NEWS: Add 'Changes in 2.13'.
3379
3380 2002-07-15  Matt Fredette  <fredette@netbsd.org>
3381
3382         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3383
3384 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
3385
3386         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3387         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
3388         not CODE_64BIT.
3389
3390 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
3391
3392         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3393         (ppc_frob_file_before_adjust): New function.
3394         * config/tc-ppc.h (tc_frob_symbol): Don't define.
3395         (ppc_elf_frob_symbol): Don't declare.
3396         (tc_frob_file_before_adjust): Define.
3397         (ppc_frob_file_before_adjust): Declare.
3398
3399         * config/tc-ppc.c (md_pseudo_table): Warning fix.
3400         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3401         flags.
3402         (ppc_size): Delete.
3403         (ppc_xcoff64): Rename to ppc_obj64.
3404         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3405         (ppc_set_cpu): Set PPC_OPCODE_32 too.
3406         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3407         or bfd_mach_ppc.
3408         (ppc_target_format): Use ppc_obj64 to select format.
3409         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3410         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3411         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
3412         (tc_frob_symbol): Likewise.
3413         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
3414         BFD_DEFAULT_TARGET_SIZE.
3415         (ppc_tc): Likewise.
3416         (ppc_is_toc_sym): Likewise.
3417         (md_apply_fix3): Likewise.
3418         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3419         BFD_DEFAULT_TARGET_SIZE.
3420         (ELF_TC_SPECIAL_SECTIONS): Likewise.
3421         (tc_frob_symbol): Likewise.
3422
3423 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3424
3425         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3426         (mips_ip): Likewise.
3427
3428 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
3429
3430         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3431         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3432         (md_apply_fix3): Formatting.  Remove redundant test.
3433         (tc_gen_reloc): Remove redundant code.
3434         (tc_i386_force_relocation): Delete.  Movy body of function to..
3435         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3436
3437 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
3438
3439         * configure.in: Add hppa-*-openbsd* target, change
3440         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3441         with sparc64 cpu.
3442         * configure: Regenerate.
3443
3444 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3445
3446         * config/tc-mips.c (macro): Shift the 32-bit address range
3447         accessible with a lone "lui" down by 32768.
3448
3449 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3450
3451         * config/tc-mips.c (load_address): Use non-trapping "daddu"
3452         instead of "dadd" in address calculations.
3453         (macro): Likewise.
3454
3455 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
3456
3457         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3458         movzx fudges.
3459         (md_assemble): Instead, zap the suffix here.
3460
3461 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
3462
3463         * NEWS: Remove next release number until the release is actually
3464         upon us.
3465
3466 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
3467
3468         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3469         Run "make dep-am".
3470         * Makefile.in: Regenerate.
3471
3472 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3473
3474         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3475         to symbols in merge sections, even non pc-relative ones.
3476
3477 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
3478
3479         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3480
3481 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
3482
3483         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3484         .softregs and .eeprom.
3485
3486 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
3487
3488         * NEWS: Note the next release is 2.13.
3489
3490 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
3491
3492         * po/tr.po: New translation imported.
3493
3494 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
3495
3496         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3497         (ecoff_directive_def): Likewise.
3498         (ecoff_directive_tag): Likewise.
3499         * listing.c (file_info): Likewise.
3500         * hash.c (what): Likewise.
3501
3502 2002-06-25  H.J. Lu <hjl@gnu.org>
3503
3504         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3505         * Makefile.in: Regenerated.
3506
3507 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
3508
3509         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3510         (assemble_ppi): Generate warning if the same register is used
3511         twice as destination in the same padd / pmuls instruction.
3512
3513 2002-06-18  Dave Brolley  <brolley@redhat.com>
3514
3515         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3516         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3517         * configure.in: Support frv-*-*.
3518         * Makefile.am (CPU_TYPES): Add frv.
3519         (TARGET_CPU_CFILES): Add tc-frv.c.
3520         (TARGET_CPU_HFILES): Add tc-frv.h.
3521         (DEPTC_frv_coff): New variable.
3522         (DEPTC_frv_elf): New variable.
3523         (DEPOBJ_frv_coff): New variable.
3524         (DEPOBJ_frv_elf): New variable.
3525         (DEP_frv_coff): New variable.
3526         (DEP_frv_elf): New variable.
3527         * tc-frv.c: New file.
3528         * tc-frv.h: New file.
3529
3530 2002-06-17  Catherine Moore <clm@redhat.com>
3531
3532         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3533
3534 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
3535
3536         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3537
3538 2002-06-17  Tom Rix <trix@redhat.com>
3539
3540         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3541
3542 2002-06-14  H.J. Lu  <hjl@gnu.org>
3543             Daniel Jacobowitz  <drow@mvista.com>
3544
3545         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3546         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3547         * config/tc-mips.c (s_mips_file): Call s_app_file_string
3548         and new_logical_line for the first .file directive.
3549         * read.c (s_app_file_string): New function.
3550         (s_app_file): Call it.
3551         * read.h (s_app_file_string): Add declaration.
3552
3553 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
3554
3555         * configure.in: Remove MIPS_STABS_ELF.
3556         * configure: Regenerated.
3557         * config.in: Regenerated.
3558         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3559         for MIPS targets.
3560         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3561         ".extern".
3562         (pdr_seg): Declare unconditionally.
3563         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3564         (s_mips_end): Likewise.  Generate stabs function markers.
3565         (s_mips_ent): Generate stabs function markers.
3566         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3567         ELF.
3568         (s_mips_mask): Likewise.
3569         (mips_flag_mdebug): New.
3570         (md_longopts): Add "mdebug" and "no-mdebug".
3571         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3572         (mips_after_parse_args): Set mips_flag_mdebug.
3573         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3574
3575 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3576
3577         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3578         value twice for RELA relocations.
3579
3580 2002-06-12  Ben Elliston  <bje@redhat.com>
3581
3582         * symbols.c (resolve_symbol_value): Initialise final_val.
3583
3584         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3585
3586 2002-06-11  Tom Rix  <trix@redhat.com>
3587
3588         * config/tc-ppc.c (ppc_subseg_align): Delete.
3589         (ppc_change_csect): Default csect align is 2.
3590         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3591
3592 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3593
3594         * config/tc-avr.c (mcu_types): Update.
3595
3596 2002-06-08  Matt Thomas  <matt@3am-software.com>
3597
3598         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3599         (vax-*-netbsd*): New targets.
3600         * configure: Regenerate.
3601         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3602         * config/tc-vax.c: Add support for ELF and PIC.
3603         (flag_want_pic): New flag.
3604         (float_cons): Fix prototype.
3605         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3606         (md_assemble): Introduce a new is_absolute local, and use it
3607         rather than repeating the test.  Make fatal errors actually
3608         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
3609         Add support for ELF.  Add support for PIC.
3610         (md_convert_frag): Adjust for BFD_ASSEMBLER.
3611         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3612         BFD_ASSEMBLER.
3613         (vax_reg_parse): Make the % register prefix mandatory for ELF,
3614         optional for a.out, and not allowed for VMS.  Adjust all callers.
3615         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3616         (md_create_long_jump): Likewise.
3617         (md_undefined_symbol): Likewise.
3618         (md_section_align): Likewise.
3619         (md_shortopts): Allow -k and -K for ELF.
3620         (md_parse_option): Set flag_want_pic if -k or -K.
3621         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3622         (tc_gen_reloc): New function if BFD_ASSEMBLER.
3623         * config/tc-vax.h (tc_headers_hook): Remove.
3624         (TARGET_FORMAT): Set according to object format and target
3625         environment.
3626         (BFD_ARCH, TARGET_ARCH): Define.
3627         (NO_RELOC): Adjust for BFD_ASSEMBLER.
3628         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3629         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3630         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3631
3632 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
3633
3634         * Makefile.am: Run "make dep-am".
3635         * Makefile.in: Regenerate.
3636
3637         * as.c: Replace CONST with const.
3638         * write.c: Likewise.
3639         * config/obj-coff.c: Likewise.
3640         * config/tc-a29k.c: Likewise.
3641         * config/tc-arm.c: Likewise.
3642         * config/tc-dlx.c: Likewise.
3643         * config/tc-h8300.c: Likewise.
3644         * config/tc-h8500.c: Likewise.
3645         * config/tc-i370.c: Likewise.
3646         * config/tc-i860.c: Likewise.
3647         * config/tc-i960.c: Likewise.
3648         * config/tc-m68hc11.c: Likewise.
3649         * config/tc-m68k.c: Likewise.
3650         * config/tc-m88k.c: Likewise.
3651         * config/tc-mcore.c: Likewise.
3652         * config/tc-mips.c: Likewise.
3653         * config/tc-ns32k.c: Likewise.
3654         * config/tc-pdp11.c: Likewise.
3655         * config/tc-pj.c: Likewise.
3656         * config/tc-s390.c: Likewise.
3657         * config/tc-sh.c: Likewise.
3658         * config/tc-sparc.c: Likewise.
3659         * config/tc-tahoe.c: Likewise.
3660         * config/tc-tic80.c: Likewise.
3661         * config/tc-v850.c: Likewise.
3662         * config/tc-vax.c: Likewise.
3663         * config/tc-w65.c: Likewise.
3664         * config/tc-z8k.c: Likewise.
3665
3666 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
3667
3668         Based on patch from Matt Green:
3669         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3670         * config/tc-mips.c (s_mips_file): Renamed from s_file.
3671         (s_mips_loc): New function.
3672         (mips_nonecoff_pseudo_table): Call them.
3673         (append_insn): Call dwarf2_emit_insn.
3674
3675 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3676
3677         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3678         to -1.
3679         (file_ase_mips16): New veriable.
3680         (mips_eabi64): Remove.
3681         (CPU_HAS_MIPS16): New define.
3682         (CPU_HAS_MDMX): Fix data type.
3683         (md_begin): Code cleanup. Use file_ase_mips16.
3684         (mips_elf_final_processing): Handle mips16 header flag.
3685         Handle EABI flag without intermediate variable.
3686
3687 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3688
3689         * doc/as.texinfo: Update MIPS documentation.
3690
3691 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3692
3693         * config/tc-mips.c: Add define for $zero register.
3694         (md_begin): Add $zero as alias name for $0.
3695         (insn_uses_reg): Use ZERO define.
3696         (mips_ip): Add $zero as alias name for $0.
3697         (mips16_ip): Likewise.
3698         (s_cplocal): Demand empty rest of input line.
3699         (tc_get_register): Likewise. Add support for $kt0, kt1 register
3700         names. Use ZERO define. Fix input_line_pointer progress.
3701
3702 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
3703
3704         * symbols.c: Replace CONST by const throughout.
3705         (symbol_find_exact): Split out from..
3706         (symbol_find_base): ..here.
3707         * symbols.h: Replace CONST by const throughout.
3708         (symbol_find_exact): Declare.
3709         * config/obj-elf.c: #include "struc-symbol.h".
3710         (elf_frob_file): If group name matches an exported symbol, use that
3711         symbol for the signature and ".group" as the section name.
3712
3713 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
3714
3715         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3716         but warn about it.
3717
3718 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
3719
3720         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3721         and mips_opts.ase_mdmx if they are uninitialized.
3722
3723 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3724
3725         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3726         (hppa_force_relocation): Check if a stub just before the start symbol
3727         of the last call_info is reachable before forcing relocation.  Fix
3728         typo.
3729
3730 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3731
3732         * config/tc-mips.c (mips_after_parse_args): New function.
3733         (md_begin): Move processing of defaults to mips_after_parse_args.
3734         config/tc-mips.h (md_after_parse_args): Define.
3735
3736 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3737
3738         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3739         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3740         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3741         * configure: Regenerate.
3742         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3743         environment.
3744
3745 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3746
3747         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3748
3749 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
3750
3751         * config/obj-elf.c (obj_elf_change_section): Set and check elf
3752         linkonce flag.  Print all warnings.
3753         (obj_elf_section): Parse ",comdat" for groups.
3754         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
3755         consistency of comdat flag.
3756
3757 2002-06-02  Richard Henderson  <rth@redhat.com>
3758
3759         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3760         with LITERALs without sequence numbers.
3761
3762 2002-06-01  Richard Henderson  <rth@redhat.com>
3763
3764         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3765         Rename them LITUSE_ALPHA_*.
3766
3767 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
3768
3769         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3770         accept parentheses enclosed register lists.
3771
3772 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
3773
3774         * Makefile.am: Run "make dep-am".
3775         * Makefile.in: Regenerate.
3776         * po/POTFILES.in: Regenerate.
3777
3778 2002-05-31  Graeme Peterson  <gp@qnx.com>
3779
3780         * configure.in: Add i386-*-nto-qnx*.
3781         * configure: Regenerate.
3782
3783 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3784
3785         * config/tc-mips.c (mips_ip): Use unsigned long values for
3786         warning output.
3787
3788 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3789
3790         * config/tc-mips.c (s_cpsetup): Fix initialization of
3791         mips_cpreturn_register and mips_cpreturn_offset.
3792
3793 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3794
3795         * config/tc-mips.c (s_cpsetup): Fix comment.
3796
3797 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3798
3799         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3800         (mips_ip): Likewise.
3801         (mips16_ip): Likewise.
3802         (tc_get_register): Likewise.
3803
3804 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
3805             Ed Satterthwaite  <ehs@broadcom.com>
3806
3807         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3808         (mips_opts): Initialize "ase_mdmx" member.
3809         (file_ase_mdmx): New variable.
3810         (CPU_HAS_MDMX): New macro.
3811         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3812         based on command line options and configuration defaults.
3813         (macro_build): Note in comment that use of MDMX in macros is
3814         not currently allowed.
3815         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3816         "Z" MDMX operand types.
3817         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3818         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3819         types.
3820         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3821         Add support for "-mdmx" and "-no-mdmx" options.
3822         (OPTION_ELF_BASE): Move to accomodate new options.
3823         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3824         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3825         file_ase_mdmx was set.
3826         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3827         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3828         nomdmx" directives.
3829
3830 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3831
3832         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3833         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3834         command line switch conforming to gcc conventions.
3835         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3836
3837 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3838
3839         * config/tc-mips.c (macro_build_jalr): New Function.
3840         (md_begin): NewABI uses big GOTs.
3841         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3842         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3843         (load_address): Add some NewABI PIC support.
3844         (macro): Likewise.
3845         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3846         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3847
3848 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3849
3850         * config/tc-mips.c (load_address): Use mips_gp_register instead
3851         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3852         instead.
3853         (macro): Use mips_gp_register instead of hardcoded value.
3854
3855 2002-05-30  Richard Henderson  <rth@redhat.com>
3856
3857         * expr.h (operatorT): Add O_md17..O_md32.
3858         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3859         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3860         O_tprelhi, O_tprello, O_tprel): New.
3861         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3862         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3863         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3864         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3865         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
3866         (md_apply_fix3): Handle TLS relocations.
3867         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3868         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3869         associated TLS reloc.  Check lituse_tls relocs match up.
3870         (emit_insn): Handle TLS relocations.
3871         (ldX_op): Remove.
3872
3873         * doc/c-alpha.texi: Add docs for tls relocations.
3874
3875 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3876
3877         * config/tc-mips.c (mips_gprel_offset): New variable.
3878         (s_gpvalue): Use it.
3879
3880 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
3881
3882         * gas/config/tc-d10v.c (check_resource_conflict): Only check
3883         write-write conflicts.
3884         (md_assemble): Reformat introductory comment.
3885         (parallel_ok): Prevent packing only if the first
3886         instruction cannot be packed.
3887
3888 2002-05-30  Jason Eckhardt <jle@redhat.com>
3889             Tom Rix <trix@redhat.com>
3890
3891         * config/tc-d10v.c (build_insn): Check for immediates.
3892
3893 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3894
3895         * config/tc-mips.c: Replace GP in comments by $gp.
3896         (mips_big_got): Initialize.
3897         (mips_trap): Initialize.
3898         (load_address): Use mips_gp_register instead of hardcoded value.
3899         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3900         (macro): Use mips_gp_register instead of hardcoded value.
3901         (macro2): Change load_address calls.
3902         (md_pcrel_from): Comment formatting.
3903         (s_cpload): Use mips_gp_register instead of hardcoded value.
3904         (s_cprestore): Likewise. Comment formatting.
3905         (s_gpword): Fix data type.
3906         (s_cpadd): Use mips_gp_register instead of hardcoded value.
3907         (nopic_need_relax): Replace GP in comments by $gp.
3908         (mips_elf_final_processing): Better comment.
3909
3910 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
3911
3912         * configure.in: Add DLX configuraton
3913         * Makefile.am: Add DLX configuraton
3914         * configure: Regenerate.
3915         * Makefile.in: Regenerate.
3916         * config/tc-dlx.c: New file.
3917         * config/tc-dlx.h: New files.
3918         * NEWS: Mention new support.
3919
3920 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
3921
3922         * config/obj-coff.c (write_object_file): Add missing semicolon.
3923
3924 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3925
3926         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3927         by the define. Remove superfluous check of mips_opts.mips16.
3928         (append_insn): Likewise. Canonicalize variable increments.
3929         (macro_build): Canonicalize variable increments.
3930         (macro_build_lui): Likewise.
3931         (load_register): Likewise.
3932         (load_address): Move pointer initialization.
3933         (macro): Move pointer to a more local scope. Canonicalize variable
3934         increments. Better comments. Replace magic constant for RA by the
3935         define.
3936         (macro2): Replace magic constant for RA by the define. Canonicalize
3937         variable increments.
3938         (mips_ip): Canonicalize variable increments.
3939         (mips16_ip): Replace magic constant for RA by the define.
3940         (my_getSmallParser): Canonicalize variable increments/decrements.
3941         (my_getPercentOp): Likewise.
3942         (my_getSmallExpression): Likewise.
3943         (s_align): Likewise.
3944         (s_mipsset): Likewise.
3945         (s_cpsetup): Likewise.
3946         (s_insn): Remove superfluous check of mips_opts.mips16.
3947         (s_mips_stab): Likewise.
3948         (mips_handle_align): Canonicalize variable increments.
3949         (s_mips_ent): Likewise.
3950         (s_mips_end): Add comment.
3951
3952 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3953
3954         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3955         * configure: Regenerate.
3956
3957 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
3958
3959         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3960         * Makefile.in: Regenerate.
3961         * dep-in.sed: Reorder to match OBJS in Makefile.am.
3962         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3963         * configure: Regenerate.
3964         * as.h: Use #include "" instead of <> for local header files.
3965         * flonum-konst.c: Likewise.
3966         * flonum-mult.c: Likewise.
3967         * gasp.c: Likewise.
3968         * listing.c: Likewise.
3969         * config/tc-ia64.h: Likewise.
3970         * config/tc-v850.h: Likewise.
3971
3972 2002-05-24  TAMURA Kent <kent@netbsd.org>
3973
3974         * configure.in: Add a target for i386-netbsdpe.
3975         * configure: Regenerate.
3976
3977 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3978
3979         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3980         (obj_elf_common): Call elf_common.
3981         (obj_elf_tls_common): New function.
3982         (elf_pseudo_tab): Support .tls_common.
3983         (special_sections): Add .tdata and .tbss.
3984         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3985         sections.
3986         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3987         (obj_elf_parse_section_letters): Include T in error message.
3988         * config/tc-ppc.c (ppc_section_letter): Likewise.
3989         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3990         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3991         SEC_MERGE.
3992         * config/tc-sparc.c (md_apply_fix3): Likewise.
3993         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3994         Define them if not BFD_ASSEMBLER.
3995         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3996         and @NTPOFF.
3997         (md_apply_fix3): Add TLS relocs.
3998         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3999         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4000         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4001         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4002         (ia64_elf_section_letter): Include T in error message.
4003         (md_begin): Support TLS operators.
4004         (md_operand): Likewise.
4005         (ia64_gen_real_reloc_type): Support TLS relocs.
4006         * write.c (adjust_reloc_syms): Don't change symbols in
4007         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4008
4009 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
4010
4011         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4012         round the relocation up rather than down.
4013
4014 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
4015
4016         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4017         flag.
4018         * doc/as.texinfo: Document that the COFF version of .section
4019         ignores the 'a' flag.
4020
4021 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
4022
4023         * config/tc-alpha.c (assemble_tokens): Protect use of
4024         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4025
4026         * write.c (size_seg): Check adjustment to last frag.
4027         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4028         section alignment.
4029         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4030         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4031         (write_object_file): Invoke md_do_align if available, and use
4032         frag_align_code on text sections.
4033         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4034         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4035         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4036         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4037         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
4038         BFD_ASSEMBLER too.
4039
4040 2002-05-22  H.J. Lu <hjl@gnu.org>
4041
4042         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4043         for source file.
4044
4045 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
4046
4047         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4048         as ELF builds.
4049
4050 2002-05-22  H.J. Lu <hjl@gnu.org>
4051
4052         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4053         for one .loc for compiler.
4054
4055 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4056
4057         * config/tc-mips.c (macro): Relax warning, it's toot strict for
4058         embedded-PIC.
4059
4060 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4061
4062         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4063         Optimize the rotate by zero case.
4064
4065 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
4066
4067         * configure.in: Remove accidental enabling of bfd_gas=yes for
4068         sh-coff targets.
4069         * configure: Regenerate.
4070
4071 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
4072
4073         * app.c: Fix formatting.
4074         * as.c: Likewise.
4075         * ehopt.c: Likewise.
4076         * expr.c: Likewise.
4077         * input-file.c: Likewise.
4078         * listing.c: Likewise.
4079         * macro.h: Likewise.
4080         * stabs.c: Likewise.
4081         * symbols.c: Likewise.
4082
4083 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
4084
4085         * config/obj-generic.c: Delete file.
4086         * config/obj-generic.h: Likewise.
4087
4088 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4089
4090         * config/tc-avr.c (mcu_types): Update for new devices.
4091
4092 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4093
4094         * config/tc-mips.c (macro): Warn about wrong la/dla use.
4095
4096 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4097
4098         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4099         worked sometimes by accident. Fix copy&paste comment.
4100
4101 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4102
4103         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4104         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4105         (mips_elf_final_processing): Let n32 use .reginfo.
4106
4107 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4108
4109         * config/tc-mips.c (append_insn): Fix too small range of variable.
4110
4111 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
4112
4113         * config/tc-arm.c (arm_cleanup): Remove redundant call to
4114         listing_prev_line().
4115
4116 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
4117
4118         * config/tc-arm.c (md_assemble): Remove redundant call to
4119         listing_prev().
4120
4121         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4122         loc_directive_seen.
4123
4124         * stabs.c (s_stab_generic): Fix grammatical error in warning
4125         message.
4126
4127 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
4128
4129         * write.c (subsegs_finish): Don't specially align last subseg.
4130
4131 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
4132
4133         * stabs.c (s_stab_generic): Warn about a description field that is
4134         too big.
4135
4136         * config/obj-coff.c: Fix compile time warnings when compiling
4137         without BFD_ASSEMBLER defined.
4138         Fix formatting.
4139
4140         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4141         target.
4142         (md_pcrel_from_section): Use md_pcrel_from().
4143
4144 2002-05-11  Bruno Haible  <bruno@clisp.org>
4145
4146         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4147         by dwarf2_directive_loc, instead of calling dwarf2_where.
4148
4149 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
4150
4151         * config/obj-coff.h: Fix formatting.
4152         * config/tc-mcore.c: Likewise.
4153         * config/tc-mn10300.c: Likewise.
4154         * config/tc-openrisc.c: Likewise.
4155         * config/tc-or32.c: Likewise.
4156         * config/tc-pdp11.c: Likewise.
4157         * config/tc-ppc.c: Likewise.
4158         * config/tc-ppc.h: Likewise.
4159         * config/tc-sh64.c: Likewise.
4160         * config/tc-sh.c: Likewise.
4161         * config/tc-tic54x.c: Likewise.
4162         * config/tc-xstormy16.c: Likewise.
4163         * config/tc-xstormy16.h: Likewise.
4164
4165 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4166
4167         * config/obj-coff.c: Fix formatting.
4168         * config/obj-elf.c: Likewise.
4169         * config/tc-alpha.c: Likewise.
4170         * config/tc-arm.c: Likewise.
4171         * config/tc-d10v.c: Likewise.
4172         * config/tc-d30v.c: Likewise.
4173         * config/tc-h8300.c: Likewise.
4174         * config/tc-hppa.c: Likewise.
4175
4176 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
4177
4178         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4179         reloc when no_cond_jump_promotion.
4180
4181 2002-05-08  Jim Wilson  <wilson@redhat.com>
4182
4183         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4184         current variable part of frag.
4185
4186 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4187
4188         * config/tc-mmix.c: Fix formatting.
4189         * config/tc-mmix.h: Likewise.
4190
4191 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
4192
4193         * configure: Regenerate.
4194
4195 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4196
4197         * config/tc-m68k.c: Fix formatting.
4198
4199 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
4200
4201         * Makefile.am: Honour DESTDIR.
4202         * Makefile.in: Regenerate.
4203
4204 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
4205
4206         * config/tc-ia64.c: Fix formatting.
4207         * config/tc-ia64.h: Likewise.
4208
4209 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4210
4211         * config/tc-mips.c: Fix formatting.
4212         * config/tc-s390.c: Likewise.
4213         * config/tc-s390.h: Likewise.
4214
4215 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
4216
4217         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4218         information for instructions.
4219
4220 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4221
4222         * as.h: Fix formatting.
4223         * cgen.c: Likewise.
4224         * cgen.h: Likewise.
4225         * dwarf2dbg.c: Likewise.
4226         * frags.h: Likewise.
4227         * gasp.c: Likewise.
4228         * macro.c: Likewise.
4229         * read.c: Likewise.
4230         * stabs.c: Likewise.
4231         * symbols.c: Likewise.
4232
4233 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
4234
4235         * app.c (mri_pseudo): Only declare for TC_M68K.
4236
4237         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4238         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4239         BFD_RELOC_16_BASEREL.
4240         (md_assemble): Likewise.
4241         (md_apply_fix3): Likewise.
4242
4243 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4244
4245         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4246         zero into an add of zero - it is not the same.
4247
4248 2002-05-01  Arati Dikey <aratid@kpit.com>
4249
4250         * tc-sh.c (get_specific): Generate warning if the same
4251         destination register is used in parallel instructions.
4252
4253 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
4254
4255         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4256
4257 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
4258
4259         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4260         backwards to prevent cascading errors.
4261
4262 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
4263
4264         * configure.in: Add support for powerpc-*-windiss.
4265         * configure: Regenerated.
4266
4267 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
4268
4269         * config/tc-s390.c (md_parse_option): Formatting.
4270
4271         * config/tc-i386.c: Formatting fixes, add missing space in error
4272         message.
4273
4274 2002-04-24  Christian Groessler <chris@groessler.org>
4275
4276         * config/tc-z8k.c (build_bytes): Add support for new cases:
4277         CLASS_IGNORE and ARG_NIM4.
4278         (md_assemble): Prevent destruction of input_line_pointer if
4279         get_operands returns failure.
4280
4281 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
4282
4283         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4284         instructions to be generated by macros.
4285
4286 2002-04-24  Andreas Schwab  <schwab@suse.de>
4287
4288         * config/tc-i386.c (output_jump, output_disp)
4289         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4290         more.
4291         (md_apply_fix3): Remember addend value for rela relocations.
4292         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4293
4294 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
4295
4296         * config/tc-mips.c (macro_build): Add close-parenthesis missing
4297         from previous change.
4298
4299 2002-04-22  Eric Christopher  <echristo@redhat.com>
4300
4301         * config/tc-mips.c (macro_build): Add warning if macro instructions
4302         are expanded into a branch delay slot.
4303
4304 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
4305
4306         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4307         numbers, gdb relies on them to detect the start of the prologue.
4308
4309 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4310
4311         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4312         symbols in merge sections.
4313
4314 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
4315
4316         * as.c (main): Don't reference _bfd_chunksize.
4317
4318 2002-04-15  Tom Rix  <trix@redhat.com>
4319
4320         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4321         symbols in merge sections.
4322
4323 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
4324
4325         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4326         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4327         argument for the precision.
4328         (gen_to_words): Update accordingly.
4329
4330 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
4331
4332         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4333         BFD_VERSION_STRING unavailable.
4334         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4335
4336 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
4337
4338         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4339         symbol_used_in_reloc_p is true.
4340
4341         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4342         endian hosts.
4343
4344 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
4345
4346         * dep-in.sed: Cope with absolute paths.
4347         * Makefile.am (dep.sed): Subst TOPDIR.
4348         Run "make dep-am".
4349         * Makefile.in: Regenerate.
4350
4351 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4352
4353         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4354         (mips_ip): Remove unused variable.
4355         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4356         unsigned char with bfd_byte.
4357         (s_file): Remove unused variable.
4358         (s_mips_ent): Likewise.
4359
4360 2002-04-03  Tom Rix  <trix@redhat.com>
4361
4362         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4363         (build_insn): Same.
4364         (find_opcode): Fix warning in as_warn.
4365         * config/tc-d10v.h: Update Copyright.
4366
4367 2002-04-03  Alan Matsuoka <alanm@redhat.com>
4368             Tom Rix  <trix@redhat.com>
4369
4370         From Jeff Knaggs <jknaggs@redhat.com>
4371         * config/tc-d10v.c (check_resource_conflict): New function to
4372         check for resource conflicts.
4373
4374         From Jason Eckhardt  <jle@redhat.com>
4375         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4376         imm3 fields.
4377         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4378         reserved control registers is used.
4379         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4380         imm3 fields.
4381
4382         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
4383         * tc-d10v.c (parallel_ok): Prevent packing only if the first
4384         instruction cannot be packed.
4385
4386         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
4387         * gas/config/tc-d10v.c (check_resource_conflict): Only check
4388         write-write conflicts.
4389         (md_assemble): Reformat introductory comment.
4390         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4391         arguments.
4392
4393 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
4394
4395         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4396         O_logical_not>): Derive final_seg from add_symbol.
4397         <O_multiply..O_logical_or>: More final_seg twiddles.
4398
4399 2002-04-01  Jessica Han  <jessica@cup.hp.com>
4400
4401         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4402         in 32-bit mode.
4403
4404 2002-03-27  Andreas Schwab  <schwab@suse.de>
4405
4406         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4407         field for pc-relative fixups.
4408         (output_disp): Likewise.
4409         (md_estimate_size_before_relax): Likewise.
4410         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4411         pc-relative fixups in 64bit mode.
4412
4413 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4414
4415         * config/te-aix5.h: Typo fix.
4416
4417 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
4418
4419         * Makefile.am: Run "make dep-am".
4420         * Makefile.in: Regenerate.
4421         * doc/Makefile.in: Regenerate.
4422
4423 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
4424
4425         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4426         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4427
4428 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4429
4430         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4431         the EXTENDED bit here; report the estimate according to the
4432         current size.
4433
4434 2002-03-18  Tom Rix  <trix@redhat.com>
4435
4436         * configure.in: Add AIX 5 support.
4437         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4438         * config/te-aix5.h: New file. AIX 5 support.
4439         * configure: Regenerate.
4440
4441 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
4442
4443         * po/fr.po: Updated version.
4444
4445 2002-03-16  Andreas Jaeger  <aj@suse.de>
4446
4447         * doc/c-mips.texi (Machine Dependencies): Add new node.
4448
4449 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
4450
4451         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4452         (mips_opts): Initialize "ase_mips3d" member.
4453         (file_ase_mips3d): New variable.
4454         (CPU_HAS_MIPS3D): New macro.
4455         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4456         based on command line options and configuration defaults.
4457         (macro_build, mips_ip): Accept MIPS-3D instructions if
4458         mips_opts.ase_mips3d is set.
4459         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4460         Add support for "-mips3d" and "-no-mips3d" options.
4461         (OPTION_ELF_BASE): Move to accomodate new options.
4462         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4463         (mips_elf_final_processing): Add a comment indicating that a
4464         MIPS-3D ASE ELF header flag should be set, when one exists.
4465         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4466         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4467         nomips3d" directives.
4468
4469 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
4470
4471         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4472         a weak symbol in same section to be within reach.
4473
4474 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
4475
4476         * po/fr.po: Updated version.
4477
4478 2002-03-12  Andreas Schwab  <schwab@suse.de>
4479
4480         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4481         body record so that an error is given for misplaced .save
4482         pseudo-ops.
4483
4484 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
4485
4486         * config/tc-i386.h (REX_OPCODE): Define.
4487         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4488         (rex_byte): typedef to int.
4489         * config/tc-i386.c: Group prototypes and vars together.
4490         Formatting fixes.  Remove occurrences of "register" keyword.
4491         (true): Delete.
4492         (false): Delete.
4493         (mode_from_disp_size): Add INLINE keyword to prototype.
4494         (fits_in_signed_byte): Likewise.
4495         (fits_in_unsigned_byte): Likewise.
4496         (fits_in_unsigned_word): Likewise.
4497         (fits_in_signed_word): Likewise.
4498         (fits_in_unsigned_long): Likewise.
4499         (fits_in_signed_long): Likewise.
4500         (type_names): Constify.
4501         (intel_float_operand): Constify param.
4502         (add_prefix): Use REX_OPCODE.
4503         (md_assemble): Likewise.  Modify for changed rex_byte.
4504         (parse_insn): Split out of md_assemble.
4505         (parse_operands): Likewise.
4506         (swap_operands): Likewise.
4507         (optimize_imm): Likewise.
4508         (optimize_disp): Likewise.
4509         (match_template): Likewise.
4510         (check_string): Likewise.
4511         (process_suffix): Likewise.
4512         (check_byte_reg): Likewise.
4513         (check_long_reg): Likewise.
4514         (check_qword_reg): Likewise.
4515         (check_word_reg): Likewise.
4516         (finalize_imm): Likewise.
4517         (process_operands): Likewise.
4518         (build_modrm_byte): Likewise.
4519         (output_insn): Likewise.
4520         (output_branch): Likewise.
4521         (output_jump): Likewise.
4522         (output_interseg_jump): Likewise.
4523         (output_disp): Likewise.
4524         (output_imm): Likewise.
4525
4526 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
4527
4528         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4529
4530 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
4531
4532         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4533         relocs except when BFD64.
4534
4535         * write.c (number_to_chars_bigendian): Don't abort when N is
4536         larger than sizeof (VAL).
4537         (number_to_chars_littleendian): Likewise.
4538
4539 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4540
4541         * config/tc-hppa.c (md_apply_fix3): Add cast.
4542         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4543         e_rrsel.
4544
4545 2002-03-05  Paul Koning  <pkoning@equallogic.com>
4546
4547         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4548         (parse_ac5): New function for parsing float regs in float operand.
4549         (parse_expression): Remove attempt to make literals be octal.
4550         (parse_op_no_deferred): Support float literals.
4551         (parse_op): Reject attempts to refer to float regs.
4552         (parse_fop): New function, like parse_op but for float operand.
4553         (md_assemble): Add cases to parse float operands.  Also fix
4554         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4555
4556 2002-03-04  H.J. Lu <hjl@gnu.org>
4557
4558         * config/obj-elf.c (special_section): Add .init_array,
4559         .fini_array and .preinit_array.
4560
4561         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4562         .init_array and .fini_array.
4563
4564 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
4565
4566         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4567         visibility.
4568         (obj_frob_symbol): Copy visibility.
4569
4570 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4571
4572         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4573         s_text.
4574         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4575
4576 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
4577
4578         * po/es.po: Updated.
4579
4580 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
4581
4582         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4583         only, undo the changes made on 2001-06-08, with the
4584         effect being that common or extern symbols are
4585         adjusted for embedded-PIC, but weak symbols are not.
4586         (md_estimate_size_before_relax: Likewise, with the effect
4587         that extern symbols are treated the same as weak symbols
4588         only if not embedded-PIC.
4589         (mips_fix_adjustable) Likewise, with the effect that
4590         weak or extern symbols are not adjusted for embedded-PIC.
4591         (md_apply_fix3): Tweak so that the case where value is zero
4592         is handled more correctly for embedded-PIC code.
4593
4594 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
4595
4596         * doc/as.texinfo (Overview): Add missing @ifset IA64
4597
4598         * configure.in (LINGUAS): Add es.po.
4599         * configure: Regenerate.
4600         * po/es.po: New file.
4601
4602 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4603
4604         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4605         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4606         and NO_PIC cases. Code cleanup.
4607         (macro2): Fix handling of 64bit register loads.
4608
4609 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
4610
4611         * doc/as.texinfo: Add entry for IA64.
4612         * doc/c-ia64.texi: New file.
4613
4614 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
4615
4616         * config/tc-hppa.c: Update copyright date.
4617
4618         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4619         Remove references to chip manufacturers.
4620         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4621         Correct comments.
4622         (md_show_usage): Remove references to chip manufacturers.  Mention
4623         -mpower4.
4624         (md_begin): Test power4 opcode flag bits.
4625
4626 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
4627
4628         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4629         count exceeds prologue count.
4630         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4631         (unwind.label_prologue_count): New member.
4632
4633         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4634
4635         (get_saved_prologue_count): New function.
4636         (save_prologue_count): New function.
4637         (free_saved_prologue_count): New function.
4638         (dot_label_state): Record state label by calling save_prologue_count().
4639         (dot_copy_state): Restore prologue count by calling
4640         get_saved_prologue_count().
4641         (generate_unwind_image): Free up list of saved prologue
4642         counts by calling free_saved_prologue_counts().
4643
4644 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
4645
4646         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4647         function declarations.
4648
4649 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
4650
4651         * NEWS: Note that GASP is now deprecated.
4652         * Makefile.am: Do not build gasp-new by default.
4653         * Makefile.in: Regenerate.
4654         * doc/Makefile.am: Do not install gasp.info.
4655         * doc/Makefile.in: Regenerate.
4656         * gas/gasp.texi: Note that gasp is now deprecated.
4657
4658 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
4659
4660         * NEWS: Mark 2.12 branch.
4661
4662 2002-02-19  Tom Tromey  <tromey@redhat.com>
4663
4664         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4665
4666 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4667
4668         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4669         option input.
4670
4671 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4672
4673         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4674         Make bit size independent of architecture switch.
4675         (md_begin): Add warning for -m64 with -Aesa.
4676         (s390_md_end): Use renamed architecture defines.
4677
4678 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
4679
4680         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4681
4682 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
4683
4684         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4685         instead of CRIS.
4686
4687 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
4688
4689         * config/tc-mips.c (md_estimate_size_before_relax): Really
4690         make sure we treat weak like extern only for ELF.  (Fixes
4691         patch from 2001-07-25.)
4692
4693 2002-02-15  Ben Elliston  <bje@redhat.com>
4694
4695         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4696         works as expected.
4697
4698 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
4699
4700         * NEWS: Mention support for MMIX.
4701
4702 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
4703
4704         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4705         a sequence of indpendent 'if' statements for easier debugging
4706         and future modification.
4707
4708 2002-02-13  Matt Fredette  <fredette@netbsd.org>
4709
4710         * config/tc-m68k.c (md_show_usage): No longer display a
4711         hard-coded "68020" for the default CPU, instead display the
4712         canonical name of the true, configured default CPU.
4713         (m68k_elf_final_processing): Mark objects for sub-68020
4714         CPUs with the new EF_M68000 flag.
4715
4716 2002-02-13  Andreas Schwab  <schwab@suse.de>
4717
4718         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4719         pc-relative relocations to merge sections in 64-bit mode.
4720
4721 2002-02-13  Ben Elliston  <bje@redhat.com>
4722
4723         * NEWS: Document floating point number handling in gasp.
4724         * gasp.c: Include <assert.h> and "xregex.h".
4725         (is_flonum): New function.
4726         (chew_flownum): Likewise.
4727         (change_base): Consume flonums from the input, where possible.
4728         * doc/gasp.texi (Constants): Document floating point numbers.
4729
4730 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4731
4732         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4733         that implicitly use LR and RR selectors.
4734
4735 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
4736
4737         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
4738         and `epsw' as available on AM33 and above only.
4739         (other_register_name): Add logic to handle machine type encoded in
4740         reg_number.
4741
4742 2002-02-11  Tom Rix  <trix@redhat.com>
4743
4744         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4745         xcoff64.
4746
4747 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
4748
4749         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4750         Use all over.
4751
4752 2002-02-11  Jan Hubicka  <jh@suse.cz>
4753
4754         * i386.c (md_assemble): Support 32bit address prefix.
4755         (i386_displacement): Likewise.
4756         (i386_index_check): Accept 32bit addressing in 64bit mode.
4757
4758 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
4759
4760         * config/tc-sh.c (dot): Removed unused function.
4761
4762 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
4763
4764         * Makefile.am: "make dep-am".
4765         * Makefile.in: Regenerate.
4766         * aclocal.m4: Regenerate.
4767         * config.in: Regenerate.
4768         * configure: Regenerate.
4769         * doc/Makefile.in: Regenerate.
4770
4771 2002-02-10  Richard Henderson  <rth@redhat.com>
4772
4773         * doc/c-alpha.texi: New file.
4774         * doc/Makefile.am (CPU_DOCS): Add it.
4775         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4776
4777 2002-02-09  Richard Henderson  <rth@redhat.com>
4778
4779         * config/tc-alpha.c (O_samegp): New.
4780         (USER_RELOC_P): Include it.
4781         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4782         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4783         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4784         (alpha_validate_fix): New.
4785         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4786
4787 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
4788
4789         * doc/c-cris.texi: New.
4790         * doc/all.texi: @set CRIS.
4791         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
4792         Include c-cris.texi.
4793         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4794         * doc/Makefile.in: Regenerate.
4795
4796 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
4797
4798         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4799         determine if a number is a sign-extended 32-bit number.
4800         (load_register): Use IS_SEXT_32BIT_NUM.
4801         (macro): Check if load/store macro handling is using a
4802         constant 32-bit address on 64-bit address systems, and if
4803         so optimize the generation of that address.
4804
4805 2002-02-08  Richard Henderson  <rth@redhat.com>
4806
4807         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4808         we've eliminated all foreign relocation types yet.
4809         (alpha_fix_adjustable): Likewise.
4810
4811 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
4812
4813         Contribute sh64-elf.
4814         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
4815                     Stephen Clarke <Stephen.Clarke@st.com>
4816         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4817         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
4818         * config/tc-sh.c (md_relax_table): Added default sizes for
4819         non-PC-relative UNDEF_MOVI, and relaxation sequences for
4820         MOVI_16, MOVI_32 and MOVI_48.
4821         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4822         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4823         and MOVI_16.
4824         (shmedia_md_estimate_size_before_relax): Remove redundant
4825         blocks.  Set fragP->fr_var even if relaxation type unchanged.
4826         Retain UNDEF_MOVI until expression decays to number.
4827         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4828         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4829         relocation types.  Take fixP->fx_addnumber into account too.
4830         (shmedia_md_apply_fix): Likewise.
4831         (shmedia_md_convert_frag): Likewise.
4832         (shmedia_build_Mytes): Likewise.
4833         (sh64_consume_datalabel): Complain about nested datalabel.
4834         Support PIC relocs.  Call sh_parse_name.
4835         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4836         in tc-sh.h to SHmedia reloc types.
4837         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4838         MOVI_GOTPC): New relaxation constants.
4839         (md_relax_table): Introduce relaxation directives for PIC-related
4840         constants.
4841         (sh_PIC_related_p): Handle datalabel.
4842         (sh_check_fixup): Choose SH5 PIC relocations.
4843         (sh_cons_fix_new): Added BDF_RELOC_64.
4844         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4845         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
4846         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4847         current ISA is SHmedia, get 7 bytes.
4848         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
4849         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4850         void function.
4851         * config/tc-sh64.c (shmedia_apply_fix): Rename to
4852         shmedia_apply_fix3 and make void.
4853         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
4854         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4855         as_bad.
4856         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
4857         * config/tc-sh64.h (md_parse_name): Take &c as argument.
4858         2001-03-14  DJ Delorie  <dj@redhat.com>
4859         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4860         * doc/Makefile.in(CPU_DOCS): Ditto.
4861         * doc/c-sh64.texi: New file.
4862         * doc/as.texinfo: Add SH64 support.
4863         2001-03-13  DJ Delorie  <dj@redhat.com>
4864         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4865         A_REUSE_PREV so that its purpose is more obvious.
4866         (shmedia_build_Mytes): Ditto.
4867         2001-03-07  DJ Delorie  <dj@redhat.com>
4868         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4869         before processing.
4870         (sh64_vtable_inherit): Ditto.
4871         (strip_datalabels): New, strip "datalabel" from given line.
4872         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4873         pseudos.
4874         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
4875         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4876         call ...
4877         (shmedia_build_Mytes): ... to here.
4878         2001-03-06  DJ Delorie  <dj@redhat.com>
4879         * config/tc-sh.c: Remove sh64-specific uaquad now that there
4880         is a generic one.
4881         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
4882         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4883         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4884         address by one in call to dwarf2_emit_insn.
4885         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
4886         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
4887         alignment handling broken by imported changes.
4888         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4889         (sh64_handle_align): Declare.
4890         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4891         (sh64_max_mem_for_rs_align_code): Declare.
4892         (enum sh64_isa_values): Moved here from tc-sh64.c.
4893         (md_do_align): Define.
4894         (sh64_do_align): Declare.
4895         (struct sh64_tc_frag_data): New.
4896         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
4897         changed.
4898         (TC_FRAG_INIT): Change to set new datatype.
4899         (struct sh64_segment_info_type): Rename member
4900         last_flushed_location to last_contents_mark.  All users changed.
4901         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4902         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4903         * config/tc-sh.c (md_pseudo_table): Add ".abi".
4904         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4905         of unsetting seen_insn.
4906         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4907         call sh64_update_contents_mark.
4908         (sh_handle_align): Remove HAVE_SH64-conditioned code.
4909         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4910         enum sh64_isa_values.
4911         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
4912         (emitting_crange): Boolean guard moved to file scope from function
4913         scope in sh64_set_contents_type.
4914         (s_sh64_abi): New.
4915         (sh64_update_contents_mark): New; most split out from
4916         sh64_flush_pending_output.
4917         (shmedia_md_end): Call sh64_update_contents_mark.  Set
4918         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4919         (sh64_do_align): New function.
4920         (sh64_max_mem_for_rs_align_code): New function.
4921         (sh64_handle_align): Rename from shmedia_do_align.  Make
4922         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
4923         four.  Change return-type to void.
4924         (shmedia_elf_new_section): Remove.
4925         (shmedia_md_assemble): Call sh64_update_contents_mark.
4926         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
4927         new frag.  Call sh64_update_contents_mark after making the new
4928         frag.
4929         (sh64_flush_pending_output): Just call sh64_update_contents_mark
4930         and sh_flush_pending_output.
4931         (sh64_flag_output): Also call md_flush_pending_output, but add
4932         condition on not emitting_crange.
4933         (sh64_tc_cons_fix_new): Remove.
4934         2001-01-12  Nick Clifton  <nickc@redhat.com>
4935         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4936         alignment handling scheme imported from sourceware.
4937         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
4938         * config/tc-sh64.h (TARGET_FORMAT): Define.
4939         (sh64_target_format): Prototype.
4940         * config/tc-sh64.c (sh64_target_mach): New function.
4941         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
4942         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4943         zero_address_frag instead of copying the frag of the symbol.
4944         (shmedia_frob_file_before_adjust): Ditto.
4945         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4946         to valueT to remove signedness.
4947         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
4948         headers to output_bfd.  Do not evaluate symbols if final is false;
4949         do emit fixups.
4950         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4951         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4952         to the current frag, call shmedia_md_convert_frag to emit fixups
4953         and make frag_wane neutralize the frag.  Update comments.
4954         * config/tc-sh.c (md_convert_frag): Change caller of
4955         shmedia_md_convert_frag.
4956         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
4957         * config/tc-sh64.h: Tweak comments and correct formatting.
4958         * config/tc-sh64.c: Ditto.
4959         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4960         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4961         for the no-relocation case.
4962         (shmedia_check_limits): Fix range check being off-by-one for PTA.
4963         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
4964         wrappers.
4965         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
4966         comment.
4967         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4968         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4969         expansion.
4970         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4971         Correct comment.
4972         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
4973         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4974         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4975         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4976         al>: Set lowest bit of field to relocate to 1 and rest to empty,
4977         if reloc is emitted.
4978         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
4979         New options plus bugfixes.
4980         * config/tc-sh.c (md_longopts): New options "-no-expand" and
4981         "-expand-pt32".
4982         (md_parse_option): Handle new options.
4983         (md_show_usage): Add blurb for new options.
4984         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4985         (sh64_expand, sh64_pt32): New variables.
4986         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4987         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4988         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
4989         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
4990         <resolved previously-pc-relative relocs>: Handle
4991         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4992         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4993         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4994         points to SHcompact code.
4995         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4996         SH64PCREL16)>: Check that ISA of what operand points at and
4997         PTA/PTB matches, or emit error.
4998         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4999         SHMEDIA_BFD_RELOC_PT.
5000         (shmedia_immediate_op): If pcrel, emit fixup also for constant
5001         operand.
5002         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5003         condition for MOVI expansion.
5004         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5005         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
5006         sh64_expand.
5007         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5008         fixup.
5009         (sh64_target_format): Error-check setting of sh64_pt32 and
5010         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
5011         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5012         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5013         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
5014         * config/tc-sh64.c: Improve comments.
5015         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
5016         not say the linker will check correctness of PTA/PTB expansion.
5017         (shmedia_md_end): Make non-static.
5018         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
5019         prototype.
5020         * config/tc-sh.c (sh_finalize): Remove.
5021         * config/tc-sh.h (md_end): Do not define.
5022         Remove prototype for sh_finalize.
5023         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
5024         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5025         sh64_section_data container when storing section type in tdata
5026         field in elf_section_data.
5027         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5028         EF_SH5.
5029         * Makefile.am: Update dependencies.
5030         * Makefile.in: Regenerate.
5031         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
5032         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5033         dwarf2_emit_insn call with test on debug_type.
5034         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
5035         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5036         CRT_SH5_ISA32 sticky for 64-bit.
5037         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
5038         Generate .crange sections when switching ISA mode or emitting
5039         constants in same section as code.
5040         * config/tc-sh64.c: Reformat structure definitions.
5041         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5042         variables.
5043         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
5044         to emit a .cranges descriptor when contents type changes.  Only
5045         emit error if changing contents type and -no-mix is in effect.
5046         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5047         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5048         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
5049         sh64_flush_last_crange over sections.
5050         When checking main symbol of datalabel symbol, check for
5051         STO_SH5_ISA32, not ISA type of section in definition.
5052         (shmedia_frob_file_before_adjust): Check main symbol for
5053         STO_SH5_ISA32; don't check ISA type of section in definition.
5054         (shmedia_frob_section_type): Adjust for .cranges; set section flag
5055         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5056         .cranges entries have been output.
5057         (shmedia_elf_new_section): Just call md_flush_pending_output.
5058         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5059         fix.  Do not set tc_segment_info_data.in_code for section.  Call
5060         sh64_set_contents_type for SHmedia code.
5061         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5062         false.  Call md_flush_pending_output.
5063         (sh64_target_format): Check that -no-mix and
5064         -shcompact-const-crange are used in sane combination with other
5065         options.
5066         (shmedia_md_pcrel_from_section): Check type of fix for how to
5067         adjust pc-relative.
5068         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5069         not ISA type of section in definition.
5070         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5071         hold contents-type state.
5072         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5073         (sh64_flush_pending_output): Declare.
5074         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5075         (sh64_tc_cons_fix_new): Declare.
5076         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5077         call sh64_flag_output.
5078         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
5079         call sh64_set_contents_type to mark SHcompact code and set
5080         seen_insn.
5081         (md_longopts): New options "-no-mix" and
5082         "-shcompact-const-crange".
5083         (md_parse_option): Handle new options.
5084         (md_show_usage): Add blurb for new options.
5085         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5086         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
5087         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5088         (sh64_last_insn_frag): New.
5089         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5090         to get frag for insn opcode for generating fixups; do not assume it
5091         is the same frag.
5092         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5093         for new insn.
5094         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5095         section.
5096         (TC_FRAG_TYPE): Define as fragS *.
5097         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5098         (sh64_last_insn_frag): Declare.
5099         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5100         not == NULL before dereferencing.
5101         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
5102         Get rid of BFD section flag and EF_SH64_ABI64.
5103         * config/tc-sh64.c (shmedia_frob_section_type): Use
5104         elf_section_data (sec)->tdata, not a specific BFD section flag, to
5105         communicate the section as containing SHmedia code.  Describe why.
5106         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
5107         EF_SH64 regardless of ABI.
5108         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5109         in error message.  Handle resolved expressions for
5110         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5111         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5112         (shmedia_check_limits): Handle BFD_RELOC_64.
5113         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5114         a STO_SH5_ISA32 symbol, only the BFD value.
5115         2000-12-11  Ben Elliston  <bje@redhat.com>
5116         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5117         dwarf2_generate_asm_lineno.
5118         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
5119         Handle PC-relative MOVI expansions with assembler relaxation.
5120         Generate PC-relative relocs from 16-bit PC-relative expressions.
5121         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5122         (shmedia_md_pcrel_from_section): ...here.
5123         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5124         turned completely resolved.  Adjust relocation type for 16-bit
5125         immediate operands that has turned PC-relative.  Adjust back for
5126         MD_PCREL_FROM_SECTION being applied twice.
5127         (shmedia_md_convert_frag): Always emit reloc for expression with
5128         global or weak symbol.  Handle relaxation result for PC-relative
5129         expressions.
5130         (shmedia_md_estimate_size_before_relax): An expression with a weak
5131         or global symbol can not be relaxed.  Break out tests for
5132         relaxable symbol into variable sym_relaxable.
5133         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5134         UNDEF_MOVI)>: Break out any PC-relative expression and change
5135         relaxation type.
5136         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5137         opjp.
5138         <case A_IMMS16>: Fix typo for initial minor relaxation type of
5139         MOVI expansion.  If X_op_symbol of the immediate expression is
5140         set, make an expression symbol for the argument to frag_var.
5141         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5142         relaxations.
5143         (END): Adjust for new relaxations.
5144         (md_relax_table): Add entries for new relaxations.
5145         2000-12-07  Ben Elliston  <bje@redhat.com>
5146         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5147         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
5148         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5149         SHORI operand offsets in PT/PTA/PTB expansions.
5150         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
5151         Implement DataLabel semantics.
5152         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5153         shmedia_frob_file_before_adjust.
5154         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5155         (DATALABEL_SUFFIX): Define.
5156         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5157         symbol list to update "datalabel" symbols to their main symbol
5158         counterparts.
5159         (shmedia_frob_file_before_adjust): New.
5160         (sh64_adjust_symtab): For remaining datalabel symbols, set to
5161         undefined and set STT_DATALABEL.
5162         (sh64_frob_label): Initialize TC symbol field.
5163         (sh64_consume_datalabel): Actually implement semantics.  New
5164         parameter operandf, call it instead of expression.
5165         (sh64_exclude_symbol): New.
5166         * config/tc-sh64.h (md_parse_name): Pass on the function operand
5167         to sh64_consume_datalabel.
5168         (tc_symbol_new_hook): Define to tc_frob_symbol.
5169         (TC_SYMFIELD_TYPE): Define to symbolS *.
5170         (tc_frob_symbol): Define to call sh64_exclude_symbol.
5171         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
5172         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5173         case.
5174         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5175         generating dwarf2 debug information.
5176         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
5177         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5178         elf64-sh64 for the 64-bit ABI.
5179         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5180         option.
5181         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
5182         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5183         case-insensitivity.
5184         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
5185         * config/tc-sh64.c: Tweak comments, formatting and error messages.
5186         (enum sh64_abi_values): New type.
5187         (enum sh64_isa_values): New type.
5188         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
5189         (seen_shcompact_mode, seen_shmedia_mode): Delete.
5190         (sh64_abi): Replace shmedia_64.
5191         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5192         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5193         (s_sh64_mode): Check validity for this target.
5194         (sh64_target_format): Initialize defaults for ISA and ABI.
5195         Fallback to old object format if no SH64 ISA or ABI has been
5196         specified.
5197         * config/tc-sh.c (md_parse_option): Check combinations for errors.
5198         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5199         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5200         * config/tc-sh64.h: Fix typo in comment.
5201         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
5202         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5203         <PT fixups for absolute values>: Size will be longest, not
5204         shortest.
5205         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
5206         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5207         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5208         and l1 to hold lowercase of two first characters.  Change all
5209         remaining TO_LOWER to tolower.
5210         * config/tc-sh64.c (TO_LOWER): Delete.
5211         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5212         (md_parse_name): Define.
5213         (sh64_consume_datalabel): Declare.
5214         (DOLLAR_DOT): Define.
5215         * config/tc-sh64.c (shmedia_parse_exp): New.
5216         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5217         (shmedia_parse_reg): Remove const from src
5218         parameter.
5219         (shmedia_get_operands): Ditto for args parameter and ptr variable.
5220         (shmedia_md_assemble): Ditto for op_end variable.
5221         (shmedia_get_operand): Ditto for ptr parameter and src variable.
5222         Use shmedia_parse_exp, not parse_exp.
5223         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5224         parameter.  All callers changed.
5225         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
5226         callers changed.
5227         (shmedia_parse_reg): Put first two character in local variables.
5228         Use tolower, not TO_LOWER.  If no register is found and argtype
5229         indicates a control register, scan shmedia_creg_table
5230         case-insensitive.
5231         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
5232         * Makefile.am (CPU_TYPES): Add sh64.
5233         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5234         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5235         Regenerate dependencies.
5236         * Makefile.in: Regenerate.
5237         * configure.in: Add support for sh64-*-elf*.
5238         * configure: Regenerate.
5239         * config/tc-sh64.h: New.
5240         * config/tc-sh64.c: New.
5241         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5242         .mode, .isa and .uaquad.
5243         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5244         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5245         [HAVE_SH64] (END): Define as 10.
5246         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5247         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5248         MOVI_64): Define.
5249         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5250         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5251         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5252         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5253         Define.
5254         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5255         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5256         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5257         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5258         SHmedia instructions.  Handle state-change after switching to
5259         SHcompact.
5260         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5261         (md_parse_option) [HAVE_SH64]: Parse new options.
5262         (md_show_usage) [HAVE_SH64]: Show usage of new options.
5263         (md_convert_frag) [HAVE_SH64] <default>: Call
5264         shmedia_md_convert_frag instead of abort.
5265         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5266         BFD_RELOC_SH_SHMEDIA_CODE.
5267         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5268         SHcompact or SHmedia code.
5269         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5270         shmedia_md_apply_fix instead of abort.
5271         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5272         result from calling shmedia_md_estimate_size_before_relax instead
5273         of calling abort.
5274         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5275         do the work.
5276         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5277         shmedia_init_reloc and do nothing more if it returns non-zero.
5278         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5279         * po/POTFILES.in: Regenerate.
5280         * po/gas.pot: Regenerate.
5281
5282 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
5283
5284         * config/tc-sh.c (parse_at): Install the correct version of
5285         2002-02-04's patch.
5286
5287         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5288         assume fixP->fx_subsy is non-NULL.
5289
5290 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
5291
5292         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5293         A_DISP_PC_ABS, and adjust it by -4.
5294         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5295         expected.
5296         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5297         the operand type is not A_DISP_PC_ABS.
5298
5299 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
5300
5301         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5302         common and weak symbols.  Handle common and weak symbols as
5303         undefined symbols with regards to GREG handling and merging.
5304         (mmix_frob_file): Ditto.
5305
5306 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
5307
5308         * configure.in (hppa-*-netbsd*): New target.
5309         * configure: Regenerate.
5310         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5311
5312 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
5313
5314         * config/tc-v850.c: Add missing prototypes amd use old-style
5315         function definitions.
5316         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5317         (sdata_section tdata_section, zdata_section, sbss_section,
5318         tbss_section, zbss_section, rosdata_section, rozdata_section,
5319         scommon_section, tcommon_section, zcommon_section,
5320         call_table_data_section, call_table_text_section): Delete.
5321         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5322         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5323         v850_call_table_data, v850_call_table_text): Delete.
5324         (struct v850_seg_entry): New.
5325         (v850_seg_table): New.
5326         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5327         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5328         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5329         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5330         (do_v850_seg): New.
5331         (v850_seg): New.
5332         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
5333         recording of alignment.
5334         (md_pseudo_table): Use v850_seg.
5335         (md_begin): Don't init .call_table_data and .call_table_text here.
5336         Set v850_seg_table bss entry.
5337
5338 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
5339
5340         Support on-demand global register allocation by passing on
5341         base-plus-offset relocs to the linker.
5342         * config/tc-mmix.c: Tweak and fix typos in comments.
5343         (allocate_undefined_gregs_in_linker): New variable.
5344         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5345         (md_longopts): Add --linker-allocated-gregs.
5346         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5347         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5348         (md_show_usage): Update text for -x.  Add text for
5349         --linker-allocated-gregs.
5350         (tc_gen_reloc): Derive default value for addend from val and
5351         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
5352         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5353         GREG if allocate_undefined_gregs_in_linker.
5354         * doc/as.texinfo (Overview) <Target MMIX options>: Add
5355         --linker-allocated-gregs.
5356         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5357         --linker-allocated-gregs.  Mention that it's implied by -x.
5358         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5359         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5360
5361         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5362
5363 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
5364
5365         * Makefile.am: Run "make dep-am"
5366         * Makefile.in: Regenerate.
5367
5368 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
5369
5370         * config/tc-or32.c: New file.
5371         * config/tc-or32.h: New file.
5372         * configure.in: Add support for or32 targets.
5373         * configure: Regenerate.
5374         * config/obj-coff.c: Add support for or32 targets.
5375         * config/obj-coff.h: Add support for or32 targets.
5376         * Makefile.am: Add support for or32 targets.
5377         * Makefile.in: Regenerate.
5378         * NEWS: Mention support for OpenRISC.
5379         * doc/Makefile.in: Regenerate.
5380         * po/POTFILES.in: Regenerate.
5381         * po/gas.pot: Regenerate.
5382
5383 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
5384
5385         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5386         and mod.
5387
5388 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
5389
5390         * config/tc-mips.c (tc_gen_reloc): Arrange for
5391         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5392         their LO16 parts, even for ELF.
5393
5394 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
5395
5396         * config/tc-i386.c: Protect definitions of true and false
5397         from redefinition.
5398
5399 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
5400
5401         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5402         made because of .weak, if they are neither defined nor used in any
5403         way.
5404
5405 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
5406
5407         * configure: Regenerated.
5408
5409 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
5410
5411         * doc/Makefile.am (install): Depend on install-info.
5412         * doc/Makefile.in: Regenerate.
5413
5414 2002-01-26  Nick Clifton <nick@redhat.com>
5415
5416         * po/fr.po: Updated version
5417
5418 2002-01-24  Kazu Hirata  <kazu@hxi.com>
5419
5420         * config/tc-h8300.c (check_operand): Don't print a warning
5421         when a valid 24-bit address is given to a 16-bit address
5422         operand.
5423
5424 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5425
5426         * config/tc-sh.c (sh_elf_suffix): Removed.
5427         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5428         sh_end_of_match, sh_parse_name): New functions.
5429         (sh_elf_cons): Simplify.
5430         (parse_exp): Reject misplaced PIC operands.
5431         (md_undefined_symbol): Simplify.
5432         (sh_fix_adjustable): Let @GOTOFF be adjusted.
5433         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5434         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5435         Complain if subsy remains at the end.
5436         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5437         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5438
5439 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
5440
5441         * config/tc-mn10300.c (xr_registers): Move `pc'...
5442         (other_registers): ... here.
5443
5444 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
5445
5446         * Makefile.am: Run "make dep-am".
5447         * Makefile.in: Regenerate.
5448         * gas/po/POTFILES.in: Regenerate.
5449
5450 2002-01-21  DJ Delorie  <dj@redhat.com>
5451
5452         * config/obj-coff.c (obj_coff_init_stab_section): Make the
5453         stabstr_name allocation permanent, as it will be referenced from
5454         the section hash.
5455
5456 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
5457
5458         * configure.in (ia64-*-netbsd*): New target.
5459         * configure: Regenerate.
5460
5461 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
5462
5463         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5464         to @dots call.
5465         <Detailed description, ARM options>: Ditto.
5466         * doc/c-arm.texi (ARM Options): Ditto.
5467
5468 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
5469
5470         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5471         do_mia, do_mar and do_mra respectively.
5472         (do_mav_*): Renamed from do_c_*.
5473         (mav_reg_required_here, mav_parse_offset): Renamed from
5474         cirrus_reg_required_here and cirrus_parse_offset respectively.
5475         (MAV_MODE?): Renamed from CIRRUS_MODE?.
5476
5477 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
5478             Keith Walker  <keith.walker@arm.com>
5479
5480         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5481         (insns): Add pattern for bxj instruction.
5482         (do_bxj): New function.
5483         (arm_cpus): Add arm926ej.
5484         (arm_archs): Add armv5tej.
5485
5486 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
5487
5488         * doc/c-arm.texi: Add new fpe options to list of supported flags.
5489
5490 2002-01-19  Keith Walker  <keith.walker@arm.com>
5491
5492         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5493
5494 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
5495
5496         * NEWS: Mention new ARM command-line options and VFP support.
5497
5498         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
5499         uses changed.
5500         (ARM_CEXT_MAVERICK): Similarly.
5501         (ARM_ANY): Now means any core instruction.
5502         (CPU_DEFAULT): Default to ARM_ANY.
5503         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5504         (pic_code): Declare for all object types.  Make type int.
5505         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5506         (march_fpu_opt, mfpu_opt): Declare.
5507         (md_longopts): Tidy up conditional definitions.
5508         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5509         (arm_long_opts): New tables.
5510         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5511         (arm_parse_extension): New function.
5512         (md_parse_option): Rewrite using new table-driven system.
5513         (md_show_usage): Use new table-driven system.
5514         (md_begin): Calculate cpu_variant from command line option data.
5515         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5516         command-line options.
5517         * doc/c-arm.texi: Likewise.
5518
5519 2002-01-18  Andreas Jaeger  <aj@suse.de>
5520
5521         * as.c (parse_args): Update year.
5522
5523 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
5524
5525         * config/tc-tic54x.c (encode_address): Add a more informative
5526         warning about incorrect syntax.
5527
5528 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
5529
5530         * po/gas.pot: Regenerate.
5531
5532 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
5533
5534         * macro.c (get_any_string): Add no-c-format comment to prevent
5535         confusion when translating string.
5536         * gasp.c (get_any_string): Add no-c-format comment to prevent
5537         confusion when translating string.
5538
5539 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5540             Johannes Stezenbach <js@convergence.de>
5541         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5542         matched before the shorter ones.
5543         (my_getSmallParser): Fix handling of nested parentheses in
5544         percent_op's. Code cleanup.
5545         (my_getPercentOp): New function, code from my_getSmallParser.
5546         (my_getSmallExpression): Fix handling of closing parentheses.
5547         Code cleanup. Better comments.
5548
5549 2002-01-16  Nick Clifton <nickc@redhat.com>
5550
5551         po/tr.po: New file: Turkish translation.
5552         configure.in (LINGUAS): Add "tr".
5553         configure: Regenerate.
5554
5555 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
5556
5557         Support for VFP instructions
5558         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5559         (cp_address_required_here): New argument wb_ok.  When false, do not
5560         accept write-back forms of addressing.  Change all callers.
5561         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5562         (FPU_VFP_EXT_V2): Define.
5563         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5564         Define in terms of above.
5565         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5566         (vfp_reg): New struct.
5567         (vfp_regs): New array of registers.
5568         (insns): Add VFP instructions.
5569         (sn_table): New array of VFP single-precision register names.
5570         (dn_table): New array of VFP double-precision register names.
5571         (all_reg_maps): Add the new register tables.
5572         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
5573         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5574         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5575         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5576         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5577         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5578         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5579         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5580         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5581         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5582         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5583         (do_vfp_sp_dp_cvt): New functions.
5584         (md_begin): Set soft-float flag for appropriate VFP work.
5585         (md_atof): Handle VFP-format doubles.
5586         (md_parse_option): Handle VFP command-line options.
5587         (md_show_usage): Display VFP command-line options.
5588
5589 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
5590
5591         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5592         various command line options.
5593
5594 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
5595
5596         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5597         vtinherit relocs.
5598         (xstormy16_md_apply_fix3): Do not return a value.
5599
5600 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
5601
5602         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5603         the -EL/-EB option that matches the target's endianness.
5604         (md_parse_option): Likewise.
5605
5606 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
5607
5608         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5609         is not dependent on ARM_BI_ENDIAN.
5610
5611 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
5612
5613         * tc-arm.c (all error messages): Normalize capitalization of messages.
5614
5615         * tc-arm.h (md_operand): Delete define.
5616         * tc-arm.c (in_my_get_expression): New static variable.
5617         (my_get_expression): Set and clear it.
5618         (md_operand): New function.  If called from my_get_expression
5619         put the error in inst.error.
5620         (output_inst): Now takes argument of instruction being assembled.
5621         Print it out with any error message.
5622         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5623         with '=' syntax.
5624         (end_of_line): Don't update inst.error if it is already set.
5625
5626 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
5627
5628         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5629         op that can be translated into a mvn instruction.
5630
5631 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
5632
5633         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5634         setting default md.flags.
5635         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5636         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5637         * gas/config/tc-ia64.c (setup_unwind_header): Add support
5638         for 32 bit unwind info blocks.
5639         (generate_unwind_image): Add support for different types
5640         of unwind images (32 bits and/or big-endian).
5641         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5642         (ia64_target_format): Add support for hpux target formats.
5643         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5644         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5645         SHT_FINI_ARRAY elf section types.
5646
5647 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
5648
5649         * tc-arm.c (struct reg_entry): Move before prototypes.
5650         (int_register, cp_register, fp_register): Delete.
5651         (reg_table): Delete.  Replaced with ...
5652         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5653         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5654         (mav_dspsc_table): ... one table per register set.
5655         (arm_reg_hsh): Delete.
5656         (struct reg_map): New structure.
5657         (all_reg_maps): New array.
5658         (enum arm_reg_type): New enums.
5659         (build_reg_hsh): New function.
5660         (insert_reg_alias): Use hash table passed by caller.  Adjust all
5661         callers.
5662         (create_register_alias): New function, split out from ...
5663         (md_assemble): ... here.
5664         (md_begin): Build new register hash tables.
5665         (arm_reg_parse): New argument for the hash table to search.  Adjust all
5666         callers.
5667         (arm_reg_parse_any): New function.
5668         (co_proc_number): Look up the processor number in the processor hash
5669         table.
5670         (cirrus_regtype): Delete.
5671         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5672         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5673         (ARM_EXT_MAVERICKsc_register): Delete.
5674         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5675         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5676         functions.
5677         (do_c_triple_4, do_c_triple_5): Delete.
5678         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5679         (do_c_quad_6): Delete.
5680         (do_c_quad_6[ab]): New functions.
5681         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5682         arguments to use new register parsing methods.
5683         (cirrus_reg_required_here): Likewise.
5684         (insns): Reclassify cirrus maverick worker functions.
5685         (cirrus_valid_reg): Delete.
5686
5687 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
5688
5689         * configure.in (sh*le): Set cpu_type=sh and endian=little.
5690         (sh*-*-netbsdelf*): New target.
5691         * configure: Regenerate.
5692         * tc-sh.h: Update copyright years.
5693         (TARGET_FORMAT): Add version for TE_NetBSD.
5694
5695 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
5696
5697         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5698         negative.
5699
5700 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
5701
5702         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5703         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5704
5705 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
5706
5707         * tc-mips.c (mips_cprestore_valid): New flag.
5708         (mips_frame_reg_valid): New flag.
5709         (macro) [M_JAL_2]: Check both flags.
5710         [M_JAL_A]: Likewise.
5711         (s_cprestore): Set mips_cprestore_valid.
5712         (tc_get_register): If setting mips_frame_reg, set
5713         mips_frame_reg_valid and clear mips_cprestore_valid.
5714         (s_mips_ent): Clear both flags.
5715         (s_mips_end): Clear both flags.
5716
5717 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
5718
5719         * write.c (write_object_file): Make use of bfd_section_list_remove.
5720         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5721         * config/tc-mmix.c (mmix_frob_file): Likewise.
5722
5723 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
5724
5725         * configure.in (i386-*-netbsdelf*): Collapse target into...
5726         (i386-*-netbsd*): ...this.  Add support for x86-64.
5727         * configure: Regenerated.
5728
5729 2002-01-03  matthew green  <mrg@redhat.com>
5730
5731         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5732
5733 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
5734
5735         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5736         NULL frag link.
5737
5738 For older changes see ChangeLog-0001
5739 \f
5740 Local Variables:
5741 mode: change-log
5742 left-margin: 8
5743 fill-column: 74
5744 version-control: never
5745 End: