* config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
[platform/upstream/binutils.git] / gas / ChangeLog
1 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
2
3         * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
4         (whatreg, parse_reg, parse_exp): Make static, prototype.
5         (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
6         (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
7         (get_operand, get_operands, get_specific, newfix): Likewise.
8         (apply_fix, build_bytes): Likewise.
9         (md_atof): Remove declaration of atof_ieee.
10         (tc_aout_fix_to_chars): Delete.
11         (md_begin): Constify "opcode".  Don't try to init opcode->idx.
12         Fix s_unseg call.
13         (md_parse_option): Fix s_segm and s_unseg calls.
14
15 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
16
17         * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
18         Adjust callers.
19         (RELAX_BRANCH_RELOC_S2): Delete.
20         (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
21         Do not handle BFD_RELOC_16_PCREL.
22         (macro_build, mips_ip): Likewise.
23         (md_pcrel_from): Return 4 for undefined symbols regardless of
24         mips_pic.
25         (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
26         Don't dereference howto if no such relocation is available.
27         Do not apply hack for in-place zero addend in NEWABI.
28         (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
29
30 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
31             Alan Modra  <amodra@bigpond.net.au>
32
33         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
34         (TC_LINKRELAX_FIXUP): Add comments.
35
36 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
37
38         * config/tc-mn10300.c (set_arch_mach): Change argument type to
39         avoid warnings.
40         (r_register_name, xr_register_name): Add prototype declarations.
41
42 2002-12-08  H.J. Lu <hjl@gnu.org>
43
44         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
45         copied from tc-i386.c.
46
47 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
48
49         Fix Bug savannah/1825:
50         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
51         (md_relax_table): Define specific relax for PC-rel offsets.
52         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
53         (m68hc11_relax_frag): Handle the new relax code.
54         (md_convert_frag): Likewise.
55         (md_estimate_size_before_relax): Likewise.
56
57 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
58
59         * subsegs.c (section_symbol): Use the symbol, not the section, name.
60
61 2002-12-05  Richard Henderson  <rth@redhat.com>
62
63         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
64         (ia64_gen_real_reloc_type): Handle it.
65         (pseudo_func): Add @ltoffx.
66         (md_begin): Build .<ltoffx>.
67         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
68
69 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
70
71         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
72         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
73         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
74         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
75         COFF to call arm_force_relocation.
76
77 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
78
79         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
80         instruction.
81         (emit_one_bundle): Handle "hint" instruction.
82         (operand_match): Match IA64_OPND_AR_CSD.
83
84 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
85
86         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
87         inside #if.
88
89 2002-12-03  Nick Clifton  <nickc@redhat.com>
90
91         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
92         .PPC.EMB.apuinfo sections.
93
94 2002-12-03  Richard Henderson  <rth@redhat.com>
95
96         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
97
98 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
99
100         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
101         (cons, s_align_bytes): Delete declaration.
102         (relax): Delete.
103         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
104         strings common.
105         (dot): Delete unused function.
106         (w65_expression): Remove unused arg.
107         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
108         call.
109         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
110         parse_exp call.
111         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
112         value.
113         (check): Remove unused function.
114         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
115         on unhandled switch case.
116         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
117         "opcode".
118         (tc_crawl_symbol_chain): Delete unused function.
119         (tc_headers_hook): Likewise.
120         (tc_Nout_fix_to_chars): Likewise.
121         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
122         (md_parse_option): Likewise.
123         (md_convert_frag): Likewise.
124         (tc_coff_symbol_emit_hook): Likewise.
125         (md_show_usage): Likewise.
126         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
127         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
128         (w65_expression): Declare.
129
130         * po/POTFILES.in: Regenerate.
131
132         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
133         and ARM_ADRL_IMMEDIATE.
134
135 2002-12-02  Nick Clifton  <nickc@redhat.com>
136
137         * gasp.c: Delete.  It has been deprecated.
138         * NEWS: Mention that gasp has been removed.
139         * Makefile.am: Remove references to gasp.
140         * makefile.vms: Likewise.
141         * mpw-make.sed: Likewise.
142         * Makeile.in: Regenerate.
143         * doc/gasp.texi: Delete.
144         * doc/Makefile.am: Remove references to gasp.texi.
145         * doc/Makefile.in: Regenerate.
146         * macro.c: Delete references to gasp.
147         Remove use of comment_char function parameter as it is no longer
148         needed.
149         * macro.h: Update prototypes to remove comment_char parameter.
150         Fix formatting.
151         * read.c (read_a_source_file, s_irp): Remove comment_char
152         parameter from invocation of functions in macro.c       
153         
154 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
155
156         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
157
158 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
159
160         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
161         (tc_gen_reloc): Mark section param as not used.
162
163 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
164
165         Fix Bug savannah/1825:
166         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
167         that are not pc-relative.
168         (m68hc11_relax_frag): Declare.
169
170         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
171         the offsetable indexed addressing modes (n,r).
172         (build_insn): Cleanup some locals.
173         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
174         relaxation of difference between two symbols of same section.
175         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
176         only when this is a PC-relative operand and the offset is not absolute.
177         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
178         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
179         be handled by m68hc11_relax_frag.
180
181 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
182
183         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
184         (32-bit int, 64-bit double).
185         (md_longopts): New options -mshort, -mlong, -mshort-double and
186         -mlong-double to control the ABI.
187         (md_show_usage): Update.
188         (md_parse_option): Handle new options.
189         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
190
191 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
192
193         * symbols.c (report_op_error): New function, broken out of ...
194         (resolve_symbol_value): ... here. Use for both monadic and dyadic
195         operators.
196
197 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
198
199         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
200         for BFD_RELOC_32_PLT_PCREL.
201
202 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
203
204         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
205         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
206         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
207         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
208         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
209         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
210         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
211         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
212         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
213         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
214         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
215         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
216         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
217         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
218         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
219         TRUE/FALSE.  Formatting.
220
221 2002-11-29  Nick Clifton  <nickc@redhat.com>
222
223         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
224         assume a value of zero.
225         (do_bkpt): Likewise.
226
227 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
228
229         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
230         for TLS relocations.
231
232 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
233
234         * config/tc-ia64.c (md_apply_fix3): Add default case.
235
236 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
237
238         * symbols.c (S_SET_THREAD_LOCAL): New function.
239         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
240         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
241         for TLS relocations.
242         * config/tc-ia64.c (md_apply_fix3): Likewise.
243         * config/tc-alpha.c (md_apply_fix3): Likewise.
244
245 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
246
247         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
248         to entsize.
249
250 2002-11-26  DJ Delorie  <dj@redhat.com.
251
252         * dwarf2dbg.c (scale_addr_delta): New.
253         (size_inc_line_addr): Use it.
254         (emit_inc_line_addr): Use it.
255
256 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
257
258         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
259         (md_assemble): Don't pass on branches to constants as relaxable.
260         Tweak comment.
261
262 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
263
264         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
265
266 2002-11-21  Randolph Chung  <randolph@tausq.org>
267
268         * config/tc-hppa.h (tc_frob_symbol):  Frob undefined unused symbols
269         only if they have default visibility.
270
271 2002-11-21  Richard Henderson  <rth@redhat.com>
272
273         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
274         S_IS_DEFINED test.
275
276 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
277
278         * config/tc-mcore.c (mcore_pool_count): New function.
279         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
280
281 2002-11-20  Klee Dienes  <kdienes@apple.com>
282
283         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
284         coalesce the name fields to use the same pointer.
285
286         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
287         the name fields to use the same pointer.
288         (get_specific): Check for opcodes with the same name using strcmp
289         as well as comparing the pointer.
290
291 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
292
293         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
294         fx_subsy non-NULL.
295
296 2002-11-19  Richard Henderson  <rth@redhat.com>
297
298         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
299         visibility portion of st_other.
300
301 2002-11-19  Klee Dienes  <kdienes@apple.com>
302
303         * config/tc-h8300.c (struct h8_instruction): New type, used to
304         wrap h8_opcodes with length, noperands, idx, and size fields
305         (computed at run-time).
306         (h8_instructions): New variable.
307         (md_begin): Allocate the storage for h8_instructions.  Fill
308         h8_instructions with pointers to the appropriate opcode and the
309         correct value for the additional fields.
310         (clever_message): Update to use h8_instructions instead of
311         h8_opcodes.
312         (build_bytes): Ditto.
313         (get_specific): Ditto.
314         (md_assemble): Ditto.
315
316 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
317
318         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
319         adjustments to symbols in merge sections.
320
321 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
322
323         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
324
325 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
326
327         * dwarf2dbg.h (dwarf2_format): New enum.
328         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
329         (out_debug_line, out_debug_info): Add code for handling 64-bit
330         DWARF 2 formats.
331         * config/tc-mips.h (mips_dwarf2_format): Declare.
332         * config/tc-mips.c (mips_dwarf2_format): New function.
333         * doc/internals.texi (DWARF2_FORMAT): Document.
334
335 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
336
337         * config/tc-mips.c (s_change_section): Make sure input buffer
338         is not accessed past the end.  Don't hand
339         obj_elf_change_section a pointer into the input buffer.
340
341 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
342
343         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
344         GOT_LO16 on NEWABI.
345
346 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
347
348         * config/tc-tic4x.c: Fixed proper commandline
349         parameters. Added support for new opcode-list format. General
350         error message fixups.
351         (c4x_inst_add): Reject insn not for our CPU
352         (md_begin): Added matrix for setting the proper opcode-level &
353         device-flags according to cpu type and revision. Rewrite the
354         opcode hasher.
355         (c4x_operand_parse): Fix opcode bug
356         (c4x_operands_match): New function argument. Added dry-run
357         mechanism, that is optional error generation. Added constraint 'i'
358         and 'j'.
359         (c4x_insn_check): Added new function for post-verification of the
360         generated insn.
361         (md_assemble): Check all opcodes before croaking because of an
362         argument mismatch. Need this to be able to fully support
363         ortogonally arguments.
364         (md_parse_options): Revised commandprompt swicthes and added new
365         ones.
366         (md_show_usage): Complete rewrite of printout.
367
368 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
369
370         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
371           (c4x_operands_match): Added check for 8-bits LDF insn. Give
372           warning when using constant direct bigger than 2^16. Add the new
373           arguments.
374
375 2002-11-11  Christopher Faylor  <cgf@redhat.com>
376
377         * configure.in: Use .gdbinit under Cygwin.
378         * configure: Regenerate.
379
380 2002-11-11  Christopher Faylor  <cgf@redhat.com>
381
382         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
383         STRICT_PE_FORMAT.
384
385 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
386
387         * config/tc-tic4x.c: Declare as many functions as possible as
388         static. Maintenance on the general indenting. Removed unnecessary
389         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
390         function. Add support for new DSP, TMS320VC33. Fix bug for
391         converting flonum constants.
392         (c4x_do_align): Add proper align handling. Setup align to insert
393         NOP's.
394         (c4x_gen_to_words): Support for extended TI type floats.
395         (md_atof): Proper dumping of multiple-word littlenums.
396         (c4x_atof): Added support for extended TI type floats.
397         (c4x_stringer): Added new function to handle compact strings.
398         (c4x_emit_char): Added new function argument to handle custom
399         length inserts, like single-byte strings.
400         * config/tc-tic4x.h: Add proper align handling with NOP's.
401         * Makefile.am: Added tic4x dependecy
402         * Makefile.in: Regenerate
403
404 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
405
406         * macro.c (get_any_string): Correct logic for not going beyond end
407         of in->ptr[].
408
409 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
410
411         * config/tc-mmix.c (get_putget_operands): Mark both possible
412         operands as invalid at beginning.
413
414         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
415         Initialize target of fixup to zero.
416
417 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
418
419         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
420         NEWABI, but we should still emit HI16_S for non-PIC n32.
421
422 2002-11-06  Richard Henderson  <rth@redhat.com>
423
424         * config/tc-alpha.c (alpha_validate_fix): Move code ...
425         (alpha_fix_adjustable): ... here.
426         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
427
428 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
429
430         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
431         of a label.
432
433 2002-11-05  H.J. Lu <hjl@gnu.org>
434
435         * config/tc-mips.c (support_64bit_objects): Check *l before it
436         is freed.
437
438 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
439
440         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
441         SEC_LOAD flags for sections marked as 's'.
442
443 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
444
445         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
446         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
447         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
448         default.
449
450         * dep-in.sed: Fix typo.
451
452 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
453
454         * configure.in: Update ARM CPU patterns.
455         * configure: Regenerated.
456
457 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
458
459         * itbl-lex.l: Use #include <> for generated headers.
460         * itbl-ops.c: Likewise.
461
462 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
463
464         * doc/gasp.texi: Fix typo in deprecation note.
465
466 2002-10-23  Nick Clifton  <nickc@redhat.com>
467
468         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
469         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
470
471 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
472
473         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
474         (tc_frob_file_before_adjust): Don't define.
475         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
476         function.
477         (mmix_frob_file_before_adjust): Remove ineffective function.
478
479 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
480
481         * config/tc-cris.c (SIMPLE_EXPR): New macro.
482         (cris_relax_frag): New function.
483         (md_estimate_size_before_relax) <case ENCODE_RELAX
484         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
485         expressions that will become absolute expressions to relaxation.
486         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
487         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
488         value, not distance to symbol.
489         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
490         Ditto.  Correct placement of fixup.
491         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
492         (gen_bdap): Ditto.
493         * config/tc-cris.h (cris_relax_frag): Declare.
494         (md_relax_frag): Define.
495
496 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
497
498         * config/obj-elf.c (special_sections): Use correct types for init
499         array sections.
500         (obj_elf_change_section): Don't mess with init array section type.
501
502 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
503
504         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
505         for relocs against symbols in a merged section.
506
507 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
508
509         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
510         table as register names.
511
512 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
513
514         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
515         for option -m31.
516
517 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
518
519         * expr.c (operand): Add support for n.nn flonums.
520
521 2002-10-17  Johannes Stezenbach  <js@convergence.de>
522
523         * itbl-parse.y (entry): Provide empty action.
524
525 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
526
527         * configure.in (BFDVER_H): Set and subst.
528         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
529         * Makefile.am: Run "make dep-am".
530         (BFDVER_H): Define.
531         * configure: Regenerate.
532         * Makefile.in: Regenerate.
533         * doc/Makefile.in: Regenerate.
534
535 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
536
537         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
538         (MD_APPLY_SYM_VALUE): Define for PE too.
539
540 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
541
542         * Makefile.am: Run "make dep-am".
543         (CPU_OBJ_VALID): sh64 coff is invalid.
544         * as.c: #include "bfdver.h".
545         * Makefile.in: Regenerate.
546         * config.in: Regenerate.
547
548 2002-10-14  Momchil Velikov  <velco@fadata.bg>
549
550         * config/tc-v850.c (CHECK_): Remove token pasting operator.
551
552 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
553
554         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
555         * configure: Regenerate.
556
557 2002-10-13  Eric Christopher  <echristo@redhat.com>
558             Alexandre Oliva  <aoliva@redhat.com>
559
560         * config/tc-mips.c (s_gpdword): New function.
561         (mips_pseudo_table): Add .gpdword.
562         (mips_need_elf_addend_fixup): never for NEWABI.
563         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
564         GPREL32 as done.
565         (s_cpadd): Generate .cpadd on NEWABI.
566
567 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
568
569         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
570
571 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
572
573         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
574         (md_relax_frag): Adjust macro.
575         * config/tc-mips.c (mips_relax_branch): New variable.
576         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
577         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
578         (RELAX_MIPS16_P): Adjust.
579         (append_insn): Emit branch to non-constant in a frag_var if
580         branch-relaxation is desirable and possible.
581         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
582         (OPTION_ELF_BASE): Adjust.
583         (md_parse_option): Handle new options.
584         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
585         branch relaxation.
586         (relaxed_branch_length): New function.
587         (md_estimate_size_before_relax): Handle branch frags.
588         (mips_relax_frag): Likewise.
589         (md_convert_frag): Handle branch frags.  Warn if branch is
590         relaxed.
591
592 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
593
594         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
595         emitted.
596         (md_apply_fix3): Add TLS relocs.
597         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
598         @DTPOFF.
599
600 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
601             Alan Modra  <amodra@bigpond.net.au>
602
603         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
604         (md_estimate_size_before_relax): Likewise for 8 bit branches.
605
606 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
607
608         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
609         inside loop.
610
611 2002-10-09  Richard Shann <richard.shann@superh.com>
612             Stephen Clarke <stephen.clarke@superh.com>
613
614         * config/tc-sh64.c (sh64_target_format): Add support for sh64
615         Linux environment.
616
617 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
618
619         * contig/tc-sh.c (sh_local_pcrel): New.
620         (sh_force_relocation): Use sh_local_pcrel.
621         (md_pcrel_from_section): Check the relocation type whether it
622         should be resolved locally. Use S_FORCE_RELOC.
623
624 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
625
626         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
627         (TC_FORCE_RELOCATION): Tidy arg.
628
629 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
630             Ken Raeburn  <raeburn@cygnus.com>
631             Aldy Hernandez  <aldyh@redhat.com>
632             DJ Delorie  <dj@redhat.com>
633             Michael Meissner  <meissner@redhat.com>
634             Eric Christopher  <echristo@redhat.com>
635             Richard Sandiford  <rsandifo@redhat.com>
636
637         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
638         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
639         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
640         (hilo_interlocks): True for CPU_VR5500.
641         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
642         (mips_fix_vr4122_bugs): New.
643         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
644         (mips_emit_delays): Likewise.
645         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
646         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
647         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
648         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
649         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
650         (OPTION_ELF_BASE): Bump.
651         (md_parse_option): Handle the new options.
652         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
653         vr5400 and vr5500.
654
655 2002-09-29  H.J. Lu <hjl@gnu.org>
656
657         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
658         twice if howto->pcrel_offset is true.
659
660 2002-09-28  Matt Thomas  <matt@3am-software.com>
661             Jason Thorpe  <thorpej@wasabisystems.com>
662
663         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
664         convert undefined references to GOT32/PLT32 if PIC code is
665         requested.  Fix comment.
666
667 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
668
669         * config/tc-sh.c (sh_force_relocation): Return 0 for
670         some PC relative relocations when not relaxing.
671
672 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
673
674         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
675         Define them if not BFD_ASSEMBLER.
676         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
677         @tlsld.
678         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
679         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
680         (tc_gen_reloc): Handle x86-64 TLS relocs.
681
682 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
683
684         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
685         fixups to current or absolute section.
686
687 2002-09-26  Jim Wilson  <wilson@redhat.com>
688
689         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
690         and frag_more.
691
692 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
693
694         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
695         capable configuration.
696         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
697         generation.
698         (mips_ip): Likewise.
699
700 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
701
702         * config/tc-mips.c (append_insn): Fix jump overflow check.
703
704 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
705
706         * config/tc-i386.c (process_operands): Warn about "lea" segment
707         overrides.
708
709 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
710
711         * write.c: Delete set_segment_vma and prototype. Update all callers.
712
713 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
714
715         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
716         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
717         Rename "fseg" to "sym_seg".
718         * Makefile.am: Run "make dep-am".
719         * Makefile.in: Regenerate.
720         * doc/Makefile.in: Regenerate.
721
722 2002-09-20  Nick Clifton  <nickc@redhat.com>
723
724         * symbols.c (colon): Do not allow symbols to be created in the
725         absolute section if WORKING_DOT_WORD is not defined and
726         new_broken_words would require a new frag to be created.
727
728 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
729
730         * expr.c (expr): Simplify foo-foo here.
731         (clean_up_expression): Remove O_subtract code.
732
733         * write.h (struct fix): Add fx_dot_value.
734         (dot_value): Declare.
735         * write.c (dot_value): New var.
736         (fix_new_internal): Save dot_value as fx_dot_value.
737         (fixup_segment): Adjust fx_offset using fx_dot_value.
738         * expr.c (expr): Update dot_value.
739
740 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
741
742         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
743         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
744         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
745         if not defined.
746         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
747         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
748         BFD_RELOC_386_TLS_GOTIE.
749
750 2002-09-19  Richard Henderson  <rth@redhat.com>
751
752         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
753         branch type relocs.
754         (alpha_force_relocation): Don't special-case branch type relocs.
755
756 2002-09-19  Nick Clifton  <nickc@redhat.com>
757
758         * config/tc-m68k.c (select_control_regs): Handle situation where
759         architecture has not yet been selected.
760
761 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
762
763         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
764         (IS_SEXT_16BIT_NUM): New macro.
765         (macro_build_ldst_constoffset): New function, to build a set of
766         instructions to do a load or store from a constant offset relative
767         to a given register.
768         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
769         .cprestore pseudo-op.
770
771 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
772
773         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
774
775 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
776
777         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
778
779 2002-09-17  Stan Cox  <scox@redhat.com>
780
781         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
782         (macro): Likewise for la.  Likewise for ld.
783         (mips_after_parse_args): Make -xgot optional, not the default.
784         (md_apply_fix3): Allow composite relocation to set up gp.
785         (tc_gen_reloc): Allow relaxing for newabi.
786         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
787         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
788
789 2002-09-17  Nick Clifton  <nickc@redhat.com>
790
791         * config/tc-arm.c (md_apply_fix3): Note that an implemented
792         BFD_RELOC_ARM_IMMEDIATE has been done.
793         (tc_gen_reloc): Do not issue reloc number of unimplemented
794         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
795         their name is already in the error message - plus remove them
796         from the default case.
797
798         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
799         behavior of instructions.
800
801 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
802
803         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
804         Convert functions to K&R format.
805
806 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
807
808         * config/tc-mips.c (pdr_seg): Define only for ELF.
809         (s_change_section): Remove unused variable. Don't use for nonELF.
810
811 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
812
813         * config/obj-elf.c (obj_elf_change_section): Move prototype to
814         obj-elf.h
815         * config/obj-elf.h (obj_elf_change_section): Likewise.
816
817 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
818
819         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
820         (out_debug_info): Likewise.
821
822 2002-09-16  Bruno Haible  <bruno@clisp.org>
823
824         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
825         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
826         * config/tc-i386.c (i386_target_format): Likewise.
827         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
828         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
829
830 2002-09-13  Nick Clifton  <nickc@redhat.com>
831
832         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
833         when deciding if any operands have been skipped.
834
835 2002-09-11  Nick Clifton  <nickc@redhat.com>
836
837         * NEWS: New TI port supports both C4x and C3x series of DSPs.
838
839         * po/tr.po: Updated Turkish translation.
840
841 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
842
843         * config/tc-i386.c (md_apply_fix3): Allow addend for
844         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
845         BFD_RELOC_386_TLS_LE_32.
846
847 2002-09-05  Jeff Law  <law@redhat.com>
848
849         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
850         marker relocations such as ENTRY/EXIT.
851         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
852         to both OBJ_ELF and OBJ_SOM.
853
854 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
855
856         * doc/internals.texi (md_apply_fix3): Expand.
857         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
858         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
859         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
860         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
861         EXTERN_FORCE_RELOC): Document.
862         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
863         * as.h: Don't include struc-symbol.h for arc.
864         (IS_ELF): Define.
865         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
866         subtract absolute symbol.
867         * obj.h (struct format_ops): Add frob_file_before_fix.
868         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
869         * symbols.c (S_FORCE_RELOC): New function.
870         * symbols.h (S_FORCE_RELOC): Declare.
871         * write.c (TC_FORCE_RELOCATION): Change default.
872         (TC_FORCE_RELOCATION_ABS): Define.
873         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
874         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
875         (TC_FORCE_RELOCATION_SECTION): Don't define.
876         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
877         (TC_FORCE_RELOCATION_SUB_ABS): Define.
878         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
879         (TC_VALIDATE_FIX_SUB): Define.
880         (TC_FIX_ADJUSTABLE): Don't define.
881         (MD_APPLY_SYM_VALUE): Define this instead.
882         (abs_section_sym): New variable.
883         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
884         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
885         Don't put the absolute section sym on fixups here.
886         (fix_segment): New function.
887         (write_relocs): Don't call fixup_segment from here.
888         (write_object_file): Instead call tc_frob_file_before_fix,
889         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
890         Don't output the absolute section symbol.
891         (fixup_segment): Rewrite.
892         * write.h (abs_section_sym): Declare.
893         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
894         obj_aout_frob_file.
895         (aout_format_ops): Adjust to suit.
896         * config/obj-aout.h (obj_frob_file): Don't define.
897         (obj_frob_file_before_fix): Define.
898         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
899         (S_FORCE_RELOC): Define.
900         * config/obj-bout.h (S_FORCE_RELOC): Define.
901         * config/obj-coff.c (coff_format_ops): Init new field.
902         * config/obj-coff.h: Formatting fixes.
903         (obj_sec_sym_ok_for_reloc): Define.
904         (S_FORCE_RELOC): Define.
905         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
906         (ecoff_frob_file): .. from here.
907         (ecoff_format_ops): Add new function.
908         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
909         (obj_frob_file_before_fix): Define.
910         * config/obj-elf.c (elf_format_ops): Init new field.
911         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
912         * config/obj-ieee.h: Formatting fixes.
913         (S_FORCE_RELOC): Define.
914         * config/obj-multi.h (obj_frob_file_before_fix): Define.
915         * config/obj-vms.h (S_FORCE_RELOC): Define.
916         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
917         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
918         for BFD_RELOC_32 and BFD_RELOC_64.
919         (alpha_fix_adjustable): Remove extern and weak tests.
920         (alpha_before_fix): Rename from alpha_adjust_symtab.
921         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
922         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
923         (TC_VALIDATE_FIX): Tweak param name.
924         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
925         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
926         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
927         (MD_APPLY_SYM_VALUE): Define.
928         (tc_adjust_symtab): Don't define.
929         (alpha_adjust_symtab): Don't declare.
930         (tc_frob_file_before_fix): Define.
931         (alpha_before_fix): Declare.
932         (TC_INIT_FIX_DATA): Tweak param names.
933         * config/tc-arc.c: Include "struc-symbol.h".
934         (md_pcrel_from): Remove undefined sym fudge.
935         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
936         Don't set fx_addnumber.
937         (tc_gen_reloc): Remove spurious fx_addnumber comment.
938         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
939         (EXTERN_FORCE_RELOC): Define.
940         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
941         (tc_gen_reloc): Fudge ARM_GOTPC addend.
942         (arm_validate_fix): Return void.
943         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
944         Add plt and got reloc tests.
945         (arm_force_relocation): Call S_FORCE_RELOC.
946         * config/tc-arm.h (struct fix): Forward declare.
947         (TC_VALIDATE_FIX): No longer set add_symbolP.
948         (arm_validate_fix): Adjust declaration.
949         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
950         (TC_FORCE_RELOCATION): Tweak param name.
951         (TC_INIT_FIX_DATA): Likewise.
952         (obj_fix_adjustable): Don't define.
953         (tc_fix_adjustable): Call arm_fix_adjustable.
954         (TC_FIX_ADJUSTABLE): Don't define.
955         (MD_APPLY_SYM_VALUE): Define.
956         (EXTERN_FORCE_RELOC): Define.
957         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
958         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
959         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
960         Remove *valP fudges and code to subtract abs sym.  Don't set
961         fx_addnumber.
962         * config/tc-avr.h: Formatting.
963         (EXTERN_FORCE_RELOC): Define.
964         (MD_APPLY_SYM_VALUE): Define.
965         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
966         (md_apply_fix3): Remove code to subtract abs sym.
967         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
968         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
969         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
970         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
971         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
972         (tc_fix_adjustable): Remove extern, weak tests.
973         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
974         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
975         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
976         and code to subtract abs sym.
977         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
978         (d10v_force_relocation): Call S_FORCE_RELOC.
979         * config/tc-d10v.h: Don't include write.h.
980         (struct fix): Instead, forward declare.
981         (MD_PCREL_FROM_SECTION): Tweak param names.
982         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
983         (d10v_fix_adjustable): Likewise.
984         (obj_fix_adjustable): Don't define.
985         (tc_fix_adjustable): Define.
986         (TC_FORCE_RELOCATION): Tweak param name.
987         (MD_APPLY_SYM_VALUE): Define.
988         (EXTERN_FORCE_RELOC): Define.
989         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
990         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
991         and code to subtract abs sym.
992         * config/tc-d30v.h: Don't include write.h.
993         (struct fix): Instead, forward declare.
994         (MD_PCREL_FROM_SECTION): Tweak param names.
995         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
996         (MD_APPLY_SYM_VALUE): Define.
997         (EXTERN_FORCE_RELOC): Define.
998         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
999         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1000         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1001         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1002         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1003         Don't use fx_addnumber.
1004         * config/tc-dlx.h: Don't include write.h.
1005         (md_convert_frag): We're not alpha twice over.
1006         (EXTERN_FORCE_RELOC): Define.
1007         (obj_fix_adjustable): Don't define.
1008         (tc_fix_adjustable): Define.
1009         (TC_FIX_ADJUSTABLE): Don't define.
1010         (MD_APPLY_SYM_VALUE): Define.
1011         (LOCAL_LABELS_DOLLAR): Undef always.
1012         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1013         (fr30_fix_adjustable): Remove extern, weak tests.
1014         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1015         (obj_fix_adjustable): Don't define.
1016         (tc_fix_adjustable): Define.
1017         (struct fix): Forward declare.
1018         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
1019         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1020         (frv_fix_adjustable): Don't do extern, weak tests.
1021         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1022         (TC_FIX_ADJUSTABLE): Don't define.
1023         (obj_fix_adjustable): Don't define.
1024         (tc_fix_adjustable): Define.
1025         (struct fix): Forward declare.
1026         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
1027         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1028         * config/tc-h8300.h (struct fix): Forward declare.
1029         (EXTERN_FORCE_RELOC): Define.
1030         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1031         (hppa_fix_adjustable): Don't test extern or weak.  Don't
1032         symbol_mark_used_in_reloc.
1033         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1034         and S_IS_WEAK.
1035         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1036         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1037         (TC_FORCE_RELOCATION_SECTION): Don't define.
1038         (MD_APPLY_SYM_VALUE): Define.
1039         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1040         to subtract abs sym.
1041         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1042         (MD_APPLY_SYM_VALUE): Define.
1043         (MD_PCREL_FROM_SECTION): Tweak param name.
1044         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1045         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1046         (i386_force_relocation): New function.
1047         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1048         (TC_VALIDATE_FIX): Likewise.
1049         (TC_FIX_ADJUSTABLE): Don't define.
1050         (MD_APPLY_SYM_VALUE): Define.
1051         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1052         (i386_force_relocation): Declare.
1053         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1054         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1055         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1056         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1057         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1058         (EXTERN_FORCE_RELOC): Define.
1059         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
1060         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
1061         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
1062         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1063         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1064         Remove #if 0 code.  Invert return boolean.
1065         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1066         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1067         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1068         (tc_coff_sizemachdep): Prototype.
1069         (i960_handle_align): Likewise.
1070         (i960_validate_fix): Adjust declaration.
1071         (reloc_callj): Likewise.
1072         (EXTERN_FORCE_RELOC): Define.
1073         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1074         (TC_FORCE_RELOCATION_ABS): Define.
1075         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1076         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1077         (TC_FIX_ADJUSTABLE): Don't define.
1078         (MD_APPLY_SYM_VALUE): Define.
1079         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1080         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1081         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1082         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1083         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1084         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1085         (MD_APPLY_SYM_VALUE): Define.
1086         (EXTERN_FORCE_RELOC): Define.
1087         (TC_FORCE_RELOCATION): Tweak param name.
1088         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1089         (m32r_fix_adjustable): Don't test extern, weak.
1090         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1091         (MD_APPLY_SYM_VALUE): Define.
1092         (obj_fix_adjustable): Don't define.
1093         (tc_fix_adjustable): Define.
1094         (tc_frob_file): Don't define.
1095         (tc_frob_file_before_fix): Define.
1096         (EXTERN_FORCE_RELOC): Define.
1097         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
1098         BFD_RELOC_VTABLE_ENTRY address.
1099         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1100         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1101         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1102         Remove duplicated fx_done code.
1103         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1104         (EXTERN_FORCE_RELOC): Define.
1105         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1106         relaxable_symbol.
1107         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1108         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1109         (TC_FIX_ADJUSTABLE): Don't define.
1110         (EXTERN_FORCE_RELOC): Define.
1111         (MD_APPLY_SYM_VALUE): Define.
1112         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1113         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1114         Remove fx_addsy tests.
1115         (mcore_force_relocation): Call S_FORCE_RELOC.
1116         (mcore_fix_adjustable): Don't test fx_addsy.
1117         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1118         (EXTERN_FORCE_RELOC): Define.
1119         (obj_fix_adjustable): Don't define.
1120         (tc_fix_adjustable): Define.
1121         (MD_APPLY_SYM_VALUE): Define.
1122         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1123         (mips_pic): No longer static.
1124         (mips_force_relocation): Call S_FORCE_RELOC.
1125         (mips_fix_adjustable): Remove extern, weak tests.
1126         * config/tc-mips.h (enum mips_pic_level): Declare.
1127         (mips_pic): Declare.
1128         (tc_frob_file): Don't define.
1129         (tc_frob_file_before_fix): Define this instead.
1130         (EXTERN_FORCE_RELOC): Define.
1131         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1132         with reg_section tests.  Set fx_done instead of calling
1133         symbol_clear_used_in_reloc on bad relocs.
1134         (tc_gen_reloc): Zero fx_addsy on bad relocs.
1135         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
1136         (mmix_adjust_symtab): Simplify list handling.  Abort on any
1137         nonsense.
1138         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
1139         BFD_RELOC_MMIX_LOCAL.
1140         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
1141         (EXTERN_FORCE_RELOC): Define.
1142         (MD_PCREL_FROM_SECTION): Tweak param name.
1143         (tc_frob_file): Don't define.
1144         (tc_frob_file_before_fix): Define this instead.
1145         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1146         Remove SEC_CODE checks.
1147         (mn10300_fix_adjustable): Remove extern and weak tests.
1148         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1149         (TC_FORCE_RELOCATION): Tweak param name.
1150         (obj_fix_adjustable): Don't define.
1151         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1152         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1153         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1154         (openrisc_fix_adjustable): Don't test fx_addsy.
1155         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1156         (obj_fix_adjustable): Don't define.
1157         (tc_fix_adjustable): Define this instead.
1158         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1159         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1160         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1161         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1162         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1163         (MD_APPLY_SYM_VALUE): Define.
1164         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1165         Don't subtract symbol value.
1166         * config/tc-pj.h (md_pcrel_from): Tweak param name.
1167         (EXTERN_FORCE_RELOC): Define.
1168         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1169         (MD_APPLY_SYM_VALUE): Define.
1170         (obj_fix_adjustable): Don't define.
1171         (tc_fix_adjustable): Define this instead.
1172         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1173         section sym.
1174         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1175         (ppc_force_relocation <elf version>): New.
1176         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1177         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
1178         comments.  Don't subtract fx_subsy as that is already done.
1179         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1180         (MD_PCREL_FROM_SECTION): Likewise.
1181         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1182         ppc_force_relocation.
1183         (TC_FORCE_RELOCATION_SECTION): Delete.
1184         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1185         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1186         (MD_APPLY_SYM_VALUE): Define.
1187         * config/tc-s390.c: #include "dwarf2dbg.h".
1188         (s390_insn): Remove excess parens.
1189         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1190         (tc_s390_force_relocation): Call S_FORCE_RELOC.
1191         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
1192         non-NULL.  Don't subtract off fx_addsy value.
1193         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1194         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1195         (TC_FIX_ADJUSTABLE): Don't define.
1196         (MD_APPLY_SYM_VALUE): Define.
1197         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1198         (SWITCH_TABLE): Likewise.
1199         (sh_force_relocation): Call S_FORCE_RELOC.
1200         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1201         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1202         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1203         fx_addnumber is zero on entry.  Save val in fx_addnumber.
1204         (tc_gen_reloc): Don't subtract fx_subsy.
1205         * config/tc-sh.h (struct fix): Move.
1206         (obj_fix_adjustable): Don't define.
1207         (tc_fix_adjustable): Define this instead.
1208         (TC_FIX_ADJUSTABLE): Don't define.
1209         (MD_APPLY_SYM_VALUE): Define.
1210         (SWITCH_TABLE_CONS): Define.
1211         (SWITCH_TABLE): Define.
1212         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1213         (TC_VALIDATE_FIX_SUB): Define.
1214         (MD_PCREL_FROM_SECTION): Tweak param name.
1215         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1216         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1217         (TC_FORCE_RELOCATION_SUB_ABS): Define.
1218         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1219         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1220         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1221         (TC_VALIDATE_FIX_SUB): Define.
1222         (MD_PCREL_FROM_SECTION): Tweak param name.
1223         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1224         (tc_gen_reloc): Use S_FORCE_RELOC.
1225         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1226         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1227         (TC_FORCE_RELOCATION_ABS): Define this instead.
1228         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1229         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1230         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
1231         (MD_APPLY_SYM_VALUE): Define.
1232         (TC_FIX_DATA_PRINT): Tweak param name.
1233         * config/tc-tic30.c (USE_STDOUT): Don't define.
1234         (md_parse_option): Remove stupid debug code.
1235         (tc_gen_reloc): Don't use fx_addnumber.
1236         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1237         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
1238         * config/tc-v850.h (obj_fix_adjustable): Don't define.
1239         (tc_fix_adjustable): Define this instead.
1240         (TC_FIX_ADJUSTABLE): Don't define.
1241         (MD_APPLY_SYM_VALUE): Define this instead.
1242         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1243         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1244         (TC_FIX_ADJUSTABLE): Don't define.
1245         (MD_APPLY_SYM_VALUE): Define this instead.
1246         (tc_fix_adjustable): Remove extern and weak tests.
1247         * config/tc-w65.h (struct fix): Forward declare.
1248         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1249         S_FORCE_RELOC.
1250         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
1251         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
1252         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1253         absolute symbol.
1254         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1255         (MD_APPLY_SYM_VALUE): Define.
1256         (obj_fix_adjustable): Don't define.
1257         (tc_fix_adjustable): Define this instead.
1258         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
1259
1260 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
1261
1262         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1263         (ppc_fix_adjustable <coff version>): Cleanup.
1264
1265         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1266         (md_parse_option): No -a64 without BFD64.
1267         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1268         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1269
1270 2002-09-04  Nick Clifton  <nickc@redhat.com>
1271
1272         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1273         instructions into the hash table if the target cpu is the BookE32.
1274
1275 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
1276
1277         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1278         ATTRIBUTE_UNUSED.
1279
1280 2000-08-28  Catherine Moore  <clm@redhat.com>
1281
1282         * tc-v850.c (v850_relax): Declare.
1283         (v850_longcode): New routine.
1284         (v850_handle_align): New routine.
1285         (md_pseudo_table):  Add longcall and longjump.
1286         (md_parse_option): Check for relax option.
1287         (tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
1288         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1289         (md_apply_fix3): Likewise.
1290         (v850_force_relocation): Likewise.
1291         (v850_comm): Change the current section.
1292         (md_assemble):  Ensure that the correct value is put in the
1293         fixup.
1294         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1295         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1296         Remove redundant v850ea support.
1297         * tc-v850.h (HANDLE_ALIGN): Define.
1298         (v850_handle_align): Declare.
1299         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1300
1301 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
1302
1303         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1304         * configure: Regenerate.
1305         * NEWS: Mention new port.
1306
1307 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1308
1309         * config/obj-coff.c: Add sdef definition.
1310         * config/obj-coff.h: Add tic4x include file and set
1311         target format.
1312         * config/tc-tic4x.c: New file.
1313         * config/tc-tic4x.h: New file.
1314
1315 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1316
1317         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1318         (TC_ADJUST_RELOC_COUNT): Tweak param name.
1319         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1320         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1321         (RELOC_ENUM): Define.
1322         (fix_new_internal): Use RELOC_ENUM.
1323         (fix_new, fix_new_exp): Likewise.
1324         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
1325         Replace gotos with continue.
1326         (write_relocs): Formatting.  Avoid symbol loops in
1327         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
1328         errors, and error number in other cases.
1329         (fixup_segment): Remove param names from prototype.  Rename
1330         "this_segment_type" to "this_segment".  Update linkrelax comment.
1331         Remove "size, "place" and "where" local vars.  Formatting.  Update
1332         "no symbol" comment.  Remove #if 0 and #if 1.
1333
1334         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
1335
1336 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
1337
1338         * dwarf2dbg.c: Always include dwarf2dbg.h.
1339         (dwarf2_directive_file): Adjust dummy version args.
1340         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1341         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1342         when symbol values differ.
1343         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1344         (pseudo_set <O_subtract>): Remove unnecessary segment test.
1345         * config/obj-bout.c (obj_pseudo_table): Warning fix.
1346
1347 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
1348
1349         * config/tc-w65.c (md_section_align): Fix typo.
1350         (md_parse_option): Return 0, not 1.
1351
1352 2002-08-22  Nick Clifton  <nickc@redhat.com>
1353
1354         * doc/as.texinfo (Section): Note that if '@' is a comment
1355         character then another symbol is used to prefix the section's
1356         type.
1357
1358 2002-08-22  Christian Groessler <chris@groessler.org>
1359
1360         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1361         "case 0" case.
1362
1363 2002-08-12  Graeme Peterson  <gp@qnx.com>
1364
1365         * configure.in: Add support for sh-**-nto* target.
1366         * configure: Regenerate.
1367
1368 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
1369
1370         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1371
1372 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
1373
1374         * config/tc-ppc.c (ppc_cleanup): Do something only if format
1375         is ELF.
1376         (ppc_apuinfo_section_add): Define only if format is ELF.
1377         (md_assemble): Emit APUinfo section only if format is ELF.
1378         Fix formatting.
1379
1380 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
1381
1382         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1383         * config/tc-frv.c: Likewise.
1384         * config/tc-hppa.c: Likewise.
1385         * config/tc-ia64.c: Likewise.
1386         * config/tc-ip2k.c: Likewise.
1387         * config/tc-m68hc11.c: Likewise.
1388         * config/tc-m68k.c: Likewise.
1389         * config/tc-mmix.c: Likewise.
1390         * config/tc-mn10300.c: Likewise.
1391         * config/tc-sh.c: Likewise.
1392         * config/tc-sparc.c: Likewise.
1393         * config/tc-v850.c: Likewise.
1394
1395 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
1396
1397         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1398         by zero.
1399
1400 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
1401
1402         From matthew green  <mrg@redhat.com>
1403
1404         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1405         PPC_OPCODE_PPC is, except for BookE architectures.
1406         (md_parse_option): Add support for -mspe.
1407         (md_show_usage): Add -mspe.
1408         (md_parse_option): Add support for -me500 and
1409         -me500x2 to generate code for Motorola e500 core complex.
1410         (md_show_usage): Add -me500 and -me500x2.
1411
1412         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1413         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1414         PPC_APUINFO_BRLOCK): New macros.
1415
1416         (ppc_cleanup): New function.
1417         (ppc_apuinfo_section_add): New function.
1418         (APUID): New macro.
1419         (md_assemble): Collect info and write the APUinfo section.
1420
1421         * config/tc-ppc.h (md_cleanup): Define.
1422         (ppc_cleanup): Export.
1423         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1424
1425 2002-08-17  Stan Cox  <scox@redhat.com>
1426
1427         * config/obj-elf.c (obj_elf_change_section): Make non-static.
1428         config/tc-mips.c (s_change_section): New function to support
1429         IRIX .section pseudo-op.
1430
1431 2002-08-16  Nick Clifton  <nickc@redhat.com>
1432
1433         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1434
1435 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
1436
1437         * config/tc-mips.c (macro_build_jalr): Make sure we generate
1438         the fix-up against on the right frag.
1439         (s_cpsetup): Likewise.  Parse third argument as expression, to
1440         handle global symbols and forward/backward labels correctly.
1441
1442 2002-08-14  Nick Clifton  <nickc@redhat.com>
1443
1444         * read.c (stringer): Catch attempts to create strings in the abs
1445         section.
1446
1447         * config/tc-alpha.c: Fix compiling for COFF targets.
1448         Some minor formatting tidyups.
1449
1450 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1451
1452         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1453         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1454         according to the reloc.
1455         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1456         (TC_FORCE_RELOCATION): Define.
1457         (tc_m68hc11_force_relocation): Declare.
1458
1459         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1460         (s_m68hc11_relax): New function for relax group.
1461         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1462         beginning of jump instruction.
1463         (md_pcrel_from): Rename from md_pcrel_from_section and fix
1464         address computation.
1465         (tc-gen_reloc): Update.
1466         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1467         PC-relative fixup.
1468         (tc_m68hc11_force_relocation): New function, handle new relocs.
1469         (tc_m68hc11_fix_adjustable): New to make sure there are enough
1470         reloc for the linker relax pass.
1471         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1472         and VTABLE relocs.
1473
1474 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1475
1476         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1477         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1478         (s_m68hc11_mode): New function for .mode pseudo op.
1479         (s_m68hc11_mark_symbol): New function for .far and .interrupt
1480         pseudo op.
1481         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1482         (m68hc11_elf_final_processing): Declare.
1483
1484 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1485
1486         * config/tc-m68hc11.c (md_begin): Take into account additional
1487         page operand for call instruction.
1488         (print_opcode_format): Likewise.
1489         (check_range): Likewise for page range checking.
1490         (get_operand): Don't skip a possible comma in operands.
1491         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1492         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1493         (fixup24): New to handle call reloc.
1494         (build_insn): Handle missing page operand for call instruction.
1495         (find): Likewise.
1496         (md_apply_fix3): Take into account new relocs.
1497         (get_operand): Fix the mode for indexed indirect addressing.
1498         (build_indexed_byte): Fix post index byte for indexed indirect mode.
1499
1500 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
1501
1502         * config/tc-mips.c (mips_ip): Don't work out the value of
1503         constant %hi()s here.
1504
1505 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
1506
1507         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1508         for ELF, and don't bother checking ELF relocs when non-ELF.
1509         (i386_immediate): Allow absolute_section expressions for aout.
1510         (i386_displacement): Likewise.  Also test bfd_is_com_section.
1511         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1512         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1513         not when fx_addsy.  Remove dead code.
1514
1515 2002-08-09  Graeme Peterson  <gp@qnx.com>
1516
1517         * configure.in: Add support for ppc-*-nto* target.
1518         * configure: Regenerate.
1519
1520 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
1521
1522         * config/tc-i386.h: Reorganize.
1523
1524 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1525
1526         * config/tc-mips.c (macro): Handle a register plus a 16-bit
1527         immediate offset in "dla" and "la" expansions.
1528
1529 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
1530
1531         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
1532         Remove "bfd_gas=yes" from target table when covered later.
1533         Consolidate some entries.
1534         * configure: Regenerate
1535
1536 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
1537
1538         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1539         at start of insn, pass it to output_disp and output_imm.
1540         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
1541         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1542         properly addend.
1543         (output_imm): Added arguments.  Compute properly addend for
1544         R_386_GOTPC.
1545         (md_apply_fix3): Remove R_386_GOTPC handling.
1546
1547 2002-08-06  George France <france@handhelds.org>
1548
1549         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
1550         and m21264b processor names and cpu types.
1551         * doc/c-alpha.texi: Documented new types.
1552
1553 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
1554
1555         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1556
1557 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
1558
1559         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1560         handling to BFD_RELOC_MIPS16_GPREL.
1561
1562 2002-08-01  Nick Clifton  <nickc@redhat.com>
1563
1564         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1565         pool is computed using signed arithmetic so that proper sign
1566         extension is performed if X_add_number is a 64-bit integer.
1567
1568 2002-08-01  H.J. Lu  <hjl@gnu.org>
1569             Daniel Jacobowitz  <drow@mvista.com>
1570
1571         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1572         .debug_line section unless it has line information.
1573
1574 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1575
1576         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1577         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1578         Allow default displacement size to be an option "--disp-size-default".
1579         (md_number_to_disp): Make error messages include value. Use %d to
1580         print integers, not %s.
1581         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1582         get duplicate messages sometimes.
1583         (convert_iif): Grow frag to max possible instruction size. Avoid
1584         creating unnecessary fixes.
1585         (md_number_to_field) Add prototype.
1586         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1587         prototypes and make static.
1588         (struct addr_mode): Make mode and scaled_mode explicitly signed.
1589         (evaluate_expr): Use resultP argument instead of exprP global.
1590         (get_addr_mode): Quiten compiler warnings.
1591         (encode_operand): eliminate unused variables. Quiten compiler
1592         warnings. Eliminate nul character in format strings.
1593         (parse): argc is unsigned.
1594         (reloc): Type cast index to quieten compiler.
1595         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1596         (md_convert_frag): Note unused parameters. Remove unused
1597         variables.
1598         (md_create_long_jump, md_create_short_jump,
1599         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1600         unused parameters.
1601
1602 2002-07-31  Nick Clifton  <nickc@redhat.com>
1603
1604         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1605         of the PDP-11 and 2.11BSD a.out support.
1606
1607 2002-07-31  Momchil Velikov  <velco@fadata.bg>
1608
1609         * config/tc-v850.c (md_assemble): Fix range check for immediate
1610         operand.
1611
1612 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
1613
1614         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1615         to Broadcom SB-1 core support.
1616
1617 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1618
1619         * config/tc-mips.c (mips_target_format): Fix formatting.
1620         Add recognition of n32 ABI formats.
1621
1622 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1623
1624         * tc-mips.c (load_address): Don't clobber $at when loading a
1625         64-bit address in non-PIC code if noat is in effect.
1626         (macro): Likewise.
1627
1628 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1629
1630         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1631         used in division/multiply macro expansions similarly to how they
1632         are used in the variants with break instructions.
1633         (macro2): Likewise.
1634
1635 2002-07-30  Graeme Peterson  <gp@qnx.com>
1636
1637         * configure.in: Add support for arm-*-nto target.
1638         * configure: Regenerate.
1639
1640 2002-07-30  Nick Clifton  <nickc@redhat.com>
1641
1642         * config/tc-arm.c (struct literal_pool): Add fields to allow
1643         multiple literal pools to be maintained.
1644         (find_literal_pool): New function.
1645         (find_or_make_literal_pool): New function.
1646         (add_to_literal_pool): Use find_or_make_literal_pool.
1647         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1648         needed.
1649         (s_ltorg): Use find_literal_pool.
1650         (arm_cleanup): Dump all literal pools.
1651         * doc/c-arm.texi: Document new behaviour of only dumping literal
1652         pools upon request.
1653
1654 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
1655
1656         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1657         rather than PPC_OPCODE_32 for powerpc64*.
1658
1659 2002-07-25  Nick Clifton  <nickc@redhat.com>
1660
1661         * po/es.po: Updated Spanish translation.
1662         * po/fr.po: Updated French translation.
1663
1664 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
1665
1666         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
1667         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1668         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1669         * configure, config.in: Regenerate.
1670         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1671         (mips_set_options): Remove "abi" field.
1672         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
1673         with mips_abi.
1674         (mips_cpu): Remove.
1675         (mips_arch_string, mips_arch_info): New vars.
1676         (mips_tune_string, mips_tune_info): New vars.
1677         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1678         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1679         (mips_isa_to_str, mips_cpu_to_str): Remove.
1680         (mips_ip): If the selected architecture is a generic ISA rather
1681         than a processor, only mention the ISA level in error messages.
1682         (OPTION_MCPU): Remove.
1683         (OPTION_FP64): New.
1684         (md_longopts): Add -mfp64, remove -mcpu.
1685         (mips_set_option_string): New fn.
1686         (md_parse_option): Make -mipsN update file_mips_isa rather than
1687         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
1688         Don't let -mgp32 and -mfp32 change the ABI.
1689         (show): Move to end of file.  Constify string argument.
1690         (md_show_usage): Move to the end of the file.  Read available
1691         architectures from mips_cpu_info_table.
1692         (mips_set_architecture): New fn.
1693         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
1694         is an alias for -march=mipsN.  Don't change the ABI based on other
1695         flags.  Infer the register size from the ABI as well as the
1696         architecture.  Complain about more conflicting arguments.
1697         Unify logic with GCC.
1698         (s_mipsset): Don't change the ABI.
1699         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1700         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1701         "mipsN"-type entries.  Remove entries that vary only in the
1702         manufacturer's prefix, or that have "000" replaced by "k".
1703         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
1704         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1705         (mips_parse_cpu): New fn.
1706         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1707         (mips_cpu_info_from_isa): Minor formatting tweak.
1708
1709 2002-07-24  Nick Clifton  <nickc@redhat.com>
1710
1711         * po/sv.po: Updated Swedish translation.
1712         * po/es.po: Updated Spanish translation.
1713
1714 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
1715
1716         * Makefile.am: Run "make dep-am".
1717         * Makefile.in: Regenerate.
1718         * doc/Makefile.in: Regenerate.
1719         * config.in: Regenerate.
1720         * po/POTFILES.in: Regenerate.
1721
1722 2002-07-23  Nick Clifton  <nickc@redhat.com>
1723
1724         * po/fr.po: Updated French translation.
1725
1726 2002-07-23  Nick Clifton  <nickc@redhat.com>
1727
1728         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1729         GAS.
1730
1731 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1732
1733         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1734         instead of S_IS_EXTERN.
1735         (md_estimate_size_before_relax): Likewise.
1736         (mips_fix_adjustable): Likewise.
1737
1738 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1739
1740         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1741
1742 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1743             Nick Clifton  <nickc@redhat.com>
1744
1745         * cond.c (s_ifdef): Treat a referenced but not yet defined
1746         symbol as if it were undefined, in exactly the same way as
1747         .equiv.
1748
1749         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1750         consider referenced bug not yet defined symbols to be
1751         undefined.
1752
1753 2002-07-18  Denis Chertykov  <denisc@overta.ru>
1754             Frank Ch. Eigler  <fche@redhat.com>
1755             Alan Lehotsky  <alehotsky@cygnus.com>
1756             John Healy  <jhealy@redhat.com>
1757             Jeff Johnston  <jjohnstn@redhat.com>
1758
1759         * configure.in: Add ip2k configuraton.
1760         * configure: Regenerate.
1761         * Makefile.am: Add ip2k configuraton.
1762         * Makefile.in: Regenerate.
1763         * configure: Regenerate.
1764         * Makefile.in: Regenerate.
1765         * config/tc-ip2k.c: New file.
1766         * config/tc-ip2k.h: New files.
1767         * NEWS: Mention new support.
1768         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1769         * doc/Makefile.in: Regenerate.
1770         * doc/all.texi: Set IP2K
1771         * doc/as.texinfo: Add IP2K description.
1772         * doc/c-ip2k.texi: New file.
1773
1774 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
1775
1776         * NEWS: Reformat to match style of other NEWS files.
1777
1778 2002-07-17  Jan Hubicka  <jh@suse.cz>
1779
1780         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1781
1782 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
1783
1784         * config/tc-z8k.c (build_bytes): Correct order of memset args.
1785
1786 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
1787
1788         * NEWS: Add 'Changes in 2.13'.
1789
1790 2002-07-15  Matt Fredette  <fredette@netbsd.org>
1791
1792         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1793
1794 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
1795
1796         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1797         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
1798         not CODE_64BIT.
1799
1800 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
1801
1802         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1803         (ppc_frob_file_before_adjust): New function.
1804         * config/tc-ppc.h (tc_frob_symbol): Don't define.
1805         (ppc_elf_frob_symbol): Don't declare.
1806         (tc_frob_file_before_adjust): Define.
1807         (ppc_frob_file_before_adjust): Declare.
1808
1809         * config/tc-ppc.c (md_pseudo_table): Warning fix.
1810         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1811         flags.
1812         (ppc_size): Delete.
1813         (ppc_xcoff64): Rename to ppc_obj64.
1814         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1815         (ppc_set_cpu): Set PPC_OPCODE_32 too.
1816         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1817         or bfd_mach_ppc.
1818         (ppc_target_format): Use ppc_obj64 to select format.
1819         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1820         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1821         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
1822         (tc_frob_symbol): Likewise.
1823         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
1824         BFD_DEFAULT_TARGET_SIZE.
1825         (ppc_tc): Likewise.
1826         (ppc_is_toc_sym): Likewise.
1827         (md_apply_fix3): Likewise.
1828         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1829         BFD_DEFAULT_TARGET_SIZE.
1830         (ELF_TC_SPECIAL_SECTIONS): Likewise.
1831         (tc_frob_symbol): Likewise.
1832
1833 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1834
1835         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1836         (mips_ip): Likewise.
1837
1838 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
1839
1840         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1841         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1842         (md_apply_fix3): Formatting.  Remove redundant test.
1843         (tc_gen_reloc): Remove redundant code.
1844         (tc_i386_force_relocation): Delete.  Movy body of function to..
1845         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1846
1847 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
1848
1849         * configure.in: Add hppa-*-openbsd* target, change
1850         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1851         with sparc64 cpu.
1852         * configure: Regenerate.
1853
1854 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1855
1856         * config/tc-mips.c (macro): Shift the 32-bit address range
1857         accessible with a lone "lui" down by 32768.
1858
1859 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1860
1861         * config/tc-mips.c (load_address): Use non-trapping "daddu"
1862         instead of "dadd" in address calculations.
1863         (macro): Likewise.
1864
1865 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
1866
1867         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1868         movzx fudges.
1869         (md_assemble): Instead, zap the suffix here.
1870
1871 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
1872
1873         * NEWS: Remove next release number until the release is actually
1874         upon us.
1875
1876 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
1877
1878         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1879         Run "make dep-am".
1880         * Makefile.in: Regenerate.
1881
1882 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1883
1884         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1885         to symbols in merge sections, even non pc-relative ones.
1886
1887 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1888
1889         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1890
1891 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1892
1893         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1894         .softregs and .eeprom.
1895
1896 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
1897
1898         * NEWS: Note the next release is 2.13.
1899
1900 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
1901
1902         * po/tr.po: New translation imported.
1903
1904 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
1905
1906         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1907         (ecoff_directive_def): Likewise.
1908         (ecoff_directive_tag): Likewise.
1909         * listing.c (file_info): Likewise.
1910         * hash.c (what): Likewise.
1911
1912 2002-06-25  H.J. Lu <hjl@gnu.org>
1913
1914         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1915         * Makefile.in: Regenerated.
1916
1917 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1918
1919         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1920         (assemble_ppi): Generate warning if the same register is used
1921         twice as destination in the same padd / pmuls instruction.
1922
1923 2002-06-18  Dave Brolley  <brolley@redhat.com>
1924
1925         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1926         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1927         * configure.in: Support frv-*-*.
1928         * Makefile.am (CPU_TYPES): Add frv.
1929         (TARGET_CPU_CFILES): Add tc-frv.c.
1930         (TARGET_CPU_HFILES): Add tc-frv.h.
1931         (DEPTC_frv_coff): New variable.
1932         (DEPTC_frv_elf): New variable.
1933         (DEPOBJ_frv_coff): New variable.
1934         (DEPOBJ_frv_elf): New variable.
1935         (DEP_frv_coff): New variable.
1936         (DEP_frv_elf): New variable.
1937         * tc-frv.c: New file.
1938         * tc-frv.h: New file.
1939
1940 2002-06-17  Catherine Moore <clm@redhat.com>
1941
1942         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1943
1944 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
1945
1946         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1947
1948 2002-06-17  Tom Rix <trix@redhat.com>
1949
1950         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1951
1952 2002-06-14  H.J. Lu  <hjl@gnu.org>
1953             Daniel Jacobowitz  <drow@mvista.com>
1954
1955         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1956         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1957         * config/tc-mips.c (s_mips_file): Call s_app_file_string
1958         and new_logical_line for the first .file directive.
1959         * read.c (s_app_file_string): New function.
1960         (s_app_file): Call it.
1961         * read.h (s_app_file_string): Add declaration.
1962
1963 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
1964
1965         * configure.in: Remove MIPS_STABS_ELF.
1966         * configure: Regenerated.
1967         * config.in: Regenerated.
1968         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1969         for MIPS targets.
1970         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1971         ".extern".
1972         (pdr_seg): Declare unconditionally.
1973         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1974         (s_mips_end): Likewise.  Generate stabs function markers.
1975         (s_mips_ent): Generate stabs function markers.
1976         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1977         ELF.
1978         (s_mips_mask): Likewise.
1979         (mips_flag_mdebug): New.
1980         (md_longopts): Add "mdebug" and "no-mdebug".
1981         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1982         (mips_after_parse_args): Set mips_flag_mdebug.
1983         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1984
1985 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1986
1987         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1988         value twice for RELA relocations.
1989
1990 2002-06-12  Ben Elliston  <bje@redhat.com>
1991
1992         * symbols.c (resolve_symbol_value): Initialise final_val.
1993
1994         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1995
1996 2002-06-11  Tom Rix  <trix@redhat.com>
1997
1998         * config/tc-ppc.c (ppc_subseg_align): Delete.
1999         (ppc_change_csect): Default csect align is 2.
2000         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2001
2002 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2003
2004         * config/tc-avr.c (mcu_types): Update.
2005
2006 2002-06-08  Matt Thomas  <matt@3am-software.com>
2007
2008         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2009         (vax-*-netbsd*): New targets.
2010         * configure: Regenerate.
2011         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2012         * config/tc-vax.c: Add support for ELF and PIC.
2013         (flag_want_pic): New flag.
2014         (float_cons): Fix prototype.
2015         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2016         (md_assemble): Introduce a new is_absolute local, and use it
2017         rather than repeating the test.  Make fatal errors actually
2018         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
2019         Add support for ELF.  Add support for PIC.
2020         (md_convert_frag): Adjust for BFD_ASSEMBLER.
2021         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2022         BFD_ASSEMBLER.
2023         (vax_reg_parse): Make the % register prefix mandatory for ELF,
2024         optional for a.out, and not allowed for VMS.  Adjust all callers.
2025         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2026         (md_create_long_jump): Likewise.
2027         (md_undefined_symbol): Likewise.
2028         (md_section_align): Likewise.
2029         (md_shortopts): Allow -k and -K for ELF.
2030         (md_parse_option): Set flag_want_pic if -k or -K.
2031         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2032         (tc_gen_reloc): New function if BFD_ASSEMBLER.
2033         * config/tc-vax.h (tc_headers_hook): Remove.
2034         (TARGET_FORMAT): Set according to object format and target
2035         environment.
2036         (BFD_ARCH, TARGET_ARCH): Define.
2037         (NO_RELOC): Adjust for BFD_ASSEMBLER.
2038         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2039         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2040         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2041
2042 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
2043
2044         * Makefile.am: Run "make dep-am".
2045         * Makefile.in: Regenerate.
2046
2047         * as.c: Replace CONST with const.
2048         * write.c: Likewise.
2049         * config/obj-coff.c: Likewise.
2050         * config/tc-a29k.c: Likewise.
2051         * config/tc-arm.c: Likewise.
2052         * config/tc-dlx.c: Likewise.
2053         * config/tc-h8300.c: Likewise.
2054         * config/tc-h8500.c: Likewise.
2055         * config/tc-i370.c: Likewise.
2056         * config/tc-i860.c: Likewise.
2057         * config/tc-i960.c: Likewise.
2058         * config/tc-m68hc11.c: Likewise.
2059         * config/tc-m68k.c: Likewise.
2060         * config/tc-m88k.c: Likewise.
2061         * config/tc-mcore.c: Likewise.
2062         * config/tc-mips.c: Likewise.
2063         * config/tc-ns32k.c: Likewise.
2064         * config/tc-pdp11.c: Likewise.
2065         * config/tc-pj.c: Likewise.
2066         * config/tc-s390.c: Likewise.
2067         * config/tc-sh.c: Likewise.
2068         * config/tc-sparc.c: Likewise.
2069         * config/tc-tahoe.c: Likewise.
2070         * config/tc-tic80.c: Likewise.
2071         * config/tc-v850.c: Likewise.
2072         * config/tc-vax.c: Likewise.
2073         * config/tc-w65.c: Likewise.
2074         * config/tc-z8k.c: Likewise.
2075
2076 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
2077
2078         Based on patch from Matt Green:
2079         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2080         * config/tc-mips.c (s_mips_file): Renamed from s_file.
2081         (s_mips_loc): New function.
2082         (mips_nonecoff_pseudo_table): Call them.
2083         (append_insn): Call dwarf2_emit_insn.
2084
2085 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2086
2087         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2088         to -1.
2089         (file_ase_mips16): New veriable.
2090         (mips_eabi64): Remove.
2091         (CPU_HAS_MIPS16): New define.
2092         (CPU_HAS_MDMX): Fix data type.
2093         (md_begin): Code cleanup. Use file_ase_mips16.
2094         (mips_elf_final_processing): Handle mips16 header flag.
2095         Handle EABI flag without intermediate variable.
2096
2097 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2098
2099         * doc/as.texinfo: Update MIPS documentation.
2100
2101 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2102
2103         * config/tc-mips.c: Add define for $zero register.
2104         (md_begin): Add $zero as alias name for $0.
2105         (insn_uses_reg): Use ZERO define.
2106         (mips_ip): Add $zero as alias name for $0.
2107         (mips16_ip): Likewise.
2108         (s_cplocal): Demand empty rest of input line.
2109         (tc_get_register): Likewise. Add support for $kt0, kt1 register
2110         names. Use ZERO define. Fix input_line_pointer progress.
2111
2112 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2113
2114         * symbols.c: Replace CONST by const throughout.
2115         (symbol_find_exact): Split out from..
2116         (symbol_find_base): ..here.
2117         * symbols.h: Replace CONST by const throughout.
2118         (symbol_find_exact): Declare.
2119         * config/obj-elf.c: #include "struc-symbol.h".
2120         (elf_frob_file): If group name matches an exported symbol, use that
2121         symbol for the signature and ".group" as the section name.
2122
2123 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
2124
2125         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2126         but warn about it.
2127
2128 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
2129
2130         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2131         and mips_opts.ase_mdmx if they are uninitialized.
2132
2133 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2134
2135         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2136         (hppa_force_relocation): Check if a stub just before the start symbol
2137         of the last call_info is reachable before forcing relocation.  Fix
2138         typo.
2139
2140 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2141
2142         * config/tc-mips.c (mips_after_parse_args): New function.
2143         (md_begin): Move processing of defaults to mips_after_parse_args.
2144         config/tc-mips.h (md_after_parse_args): Define.
2145
2146 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2147
2148         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2149         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2150         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2151         * configure: Regenerate.
2152         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2153         environment.
2154
2155 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2156
2157         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2158
2159 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
2160
2161         * config/obj-elf.c (obj_elf_change_section): Set and check elf
2162         linkonce flag.  Print all warnings.
2163         (obj_elf_section): Parse ",comdat" for groups.
2164         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
2165         consistency of comdat flag.
2166
2167 2002-06-02  Richard Henderson  <rth@redhat.com>
2168
2169         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2170         with LITERALs without sequence numbers.
2171
2172 2002-06-01  Richard Henderson  <rth@redhat.com>
2173
2174         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2175         Rename them LITUSE_ALPHA_*.
2176
2177 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
2178
2179         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2180         accept parentheses enclosed register lists.
2181
2182 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
2183
2184         * Makefile.am: Run "make dep-am".
2185         * Makefile.in: Regenerate.
2186         * po/POTFILES.in: Regenerate.
2187
2188 2002-05-31  Graeme Peterson  <gp@qnx.com>
2189
2190         * configure.in: Add i386-*-nto-qnx*.
2191         * configure: Regenerate.
2192
2193 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2194
2195         * config/tc-mips.c (mips_ip): Use unsigned long values for
2196         warning output.
2197
2198 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2199
2200         * config/tc-mips.c (s_cpsetup): Fix initialization of
2201         mips_cpreturn_register and mips_cpreturn_offset.
2202
2203 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2204
2205         * config/tc-mips.c (s_cpsetup): Fix comment.
2206
2207 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2208
2209         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2210         (mips_ip): Likewise.
2211         (mips16_ip): Likewise.
2212         (tc_get_register): Likewise.
2213
2214 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
2215             Ed Satterthwaite  <ehs@broadcom.com>
2216
2217         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2218         (mips_opts): Initialize "ase_mdmx" member.
2219         (file_ase_mdmx): New variable.
2220         (CPU_HAS_MDMX): New macro.
2221         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2222         based on command line options and configuration defaults.
2223         (macro_build): Note in comment that use of MDMX in macros is
2224         not currently allowed.
2225         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2226         "Z" MDMX operand types.
2227         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2228         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2229         types.
2230         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2231         Add support for "-mdmx" and "-no-mdmx" options.
2232         (OPTION_ELF_BASE): Move to accomodate new options.
2233         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2234         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2235         file_ase_mdmx was set.
2236         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2237         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2238         nomdmx" directives.
2239
2240 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2241
2242         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2243         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2244         command line switch conforming to gcc conventions.
2245         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2246
2247 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2248
2249         * config/tc-mips.c (macro_build_jalr): New Function.
2250         (md_begin): NewABI uses big GOTs.
2251         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2252         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2253         (load_address): Add some NewABI PIC support.
2254         (macro): Likewise.
2255         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2256         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2257
2258 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2259
2260         * config/tc-mips.c (load_address): Use mips_gp_register instead
2261         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2262         instead.
2263         (macro): Use mips_gp_register instead of hardcoded value.
2264
2265 2002-05-30  Richard Henderson  <rth@redhat.com>
2266
2267         * expr.h (operatorT): Add O_md17..O_md32.
2268         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2269         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2270         O_tprelhi, O_tprello, O_tprel): New.
2271         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2272         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2273         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2274         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2275         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
2276         (md_apply_fix3): Handle TLS relocations.
2277         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2278         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2279         associated TLS reloc.  Check lituse_tls relocs match up.
2280         (emit_insn): Handle TLS relocations.
2281         (ldX_op): Remove.
2282
2283         * doc/c-alpha.texi: Add docs for tls relocations.
2284
2285 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2286
2287         * config/tc-mips.c (mips_gprel_offset): New variable.
2288         (s_gpvalue): Use it.
2289
2290 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
2291
2292         * gas/config/tc-d10v.c (check_resource_conflict): Only check
2293         write-write conflicts.
2294         (md_assemble): Reformat introductory comment.
2295         (parallel_ok): Prevent packing only if the first
2296         instruction cannot be packed.
2297
2298 2002-05-30  Jason Eckhardt <jle@redhat.com>
2299             Tom Rix <trix@redhat.com>
2300
2301         * config/tc-d10v.c (build_insn): Check for immediates.
2302
2303 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2304
2305         * config/tc-mips.c: Replace GP in comments by $gp.
2306         (mips_big_got): Initialize.
2307         (mips_trap): Initialize.
2308         (load_address): Use mips_gp_register instead of hardcoded value.
2309         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2310         (macro): Use mips_gp_register instead of hardcoded value.
2311         (macro2): Change load_address calls.
2312         (md_pcrel_from): Comment formatting.
2313         (s_cpload): Use mips_gp_register instead of hardcoded value.
2314         (s_cprestore): Likewise. Comment formatting.
2315         (s_gpword): Fix data type.
2316         (s_cpadd): Use mips_gp_register instead of hardcoded value.
2317         (nopic_need_relax): Replace GP in comments by $gp.
2318         (mips_elf_final_processing): Better comment.
2319
2320 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
2321
2322         * configure.in: Add DLX configuraton
2323         * Makefile.am: Add DLX configuraton
2324         * configure: Regenerate.
2325         * Makefile.in: Regenerate.
2326         * config/tc-dlx.c: New file.
2327         * config/tc-dlx.h: New files.
2328         * NEWS: Mention new support.
2329
2330 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
2331
2332         * config/obj-coff.c (write_object_file): Add missing semicolon.
2333
2334 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2335
2336         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2337         by the define. Remove superfluous check of mips_opts.mips16.
2338         (append_insn): Likewise. Canonicalize variable increments.
2339         (macro_build): Canonicalize variable increments.
2340         (macro_build_lui): Likewise.
2341         (load_register): Likewise.
2342         (load_address): Move pointer initialization.
2343         (macro): Move pointer to a more local scope. Canonicalize variable
2344         increments. Better comments. Replace magic constant for RA by the
2345         define.
2346         (macro2): Replace magic constant for RA by the define. Canonicalize
2347         variable increments.
2348         (mips_ip): Canonicalize variable increments.
2349         (mips16_ip): Replace magic constant for RA by the define.
2350         (my_getSmallParser): Canonicalize variable increments/decrements.
2351         (my_getPercentOp): Likewise.
2352         (my_getSmallExpression): Likewise.
2353         (s_align): Likewise.
2354         (s_mipsset): Likewise.
2355         (s_cpsetup): Likewise.
2356         (s_insn): Remove superfluous check of mips_opts.mips16.
2357         (s_mips_stab): Likewise.
2358         (mips_handle_align): Canonicalize variable increments.
2359         (s_mips_ent): Likewise.
2360         (s_mips_end): Add comment.
2361
2362 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
2363
2364         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2365         * configure: Regenerate.
2366
2367 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
2368
2369         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2370         * Makefile.in: Regenerate.
2371         * dep-in.sed: Reorder to match OBJS in Makefile.am.
2372         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2373         * configure: Regenerate.
2374         * as.h: Use #include "" instead of <> for local header files.
2375         * flonum-konst.c: Likewise.
2376         * flonum-mult.c: Likewise.
2377         * gasp.c: Likewise.
2378         * listing.c: Likewise.
2379         * config/tc-ia64.h: Likewise.
2380         * config/tc-v850.h: Likewise.
2381
2382 2002-05-24  TAMURA Kent <kent@netbsd.org>
2383
2384         * configure.in: Add a target for i386-netbsdpe.
2385         * configure: Regenerate.
2386
2387 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2388
2389         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2390         (obj_elf_common): Call elf_common.
2391         (obj_elf_tls_common): New function.
2392         (elf_pseudo_tab): Support .tls_common.
2393         (special_sections): Add .tdata and .tbss.
2394         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2395         sections.
2396         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2397         (obj_elf_parse_section_letters): Include T in error message.
2398         * config/tc-ppc.c (ppc_section_letter): Likewise.
2399         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2400         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2401         SEC_MERGE.
2402         * config/tc-sparc.c (md_apply_fix3): Likewise.
2403         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2404         Define them if not BFD_ASSEMBLER.
2405         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2406         and @NTPOFF.
2407         (md_apply_fix3): Add TLS relocs.
2408         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2409         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2410         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2411         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2412         (ia64_elf_section_letter): Include T in error message.
2413         (md_begin): Support TLS operators.
2414         (md_operand): Likewise.
2415         (ia64_gen_real_reloc_type): Support TLS relocs.
2416         * write.c (adjust_reloc_syms): Don't change symbols in
2417         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2418
2419 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
2420
2421         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2422         round the relocation up rather than down.
2423
2424 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
2425
2426         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2427         flag.
2428         * doc/as.texinfo: Document that the COFF version of .section
2429         ignores the 'a' flag.
2430
2431 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
2432
2433         * config/tc-alpha.c (assemble_tokens): Protect use of
2434         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2435
2436         * write.c (size_seg): Check adjustment to last frag.
2437         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2438         section alignment.
2439         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2440         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2441         (write_object_file): Invoke md_do_align if available, and use
2442         frag_align_code on text sections.
2443         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2444         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2445         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2446         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2447         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
2448         BFD_ASSEMBLER too.
2449
2450 2002-05-22  H.J. Lu <hjl@gnu.org>
2451
2452         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2453         for source file.
2454
2455 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
2456
2457         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2458         as ELF builds.
2459
2460 2002-05-22  H.J. Lu <hjl@gnu.org>
2461
2462         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2463         for one .loc for compiler.
2464
2465 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2466
2467         * config/tc-mips.c (macro): Relax warning, it's toot strict for
2468         embedded-PIC.
2469
2470 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2471
2472         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2473         Optimize the rotate by zero case.
2474
2475 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
2476
2477         * configure.in: Remove accidental enabling of bfd_gas=yes for
2478         sh-coff targets.
2479         * configure: Regenerate.
2480
2481 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2482
2483         * app.c: Fix formatting.
2484         * as.c: Likewise.
2485         * ehopt.c: Likewise.
2486         * expr.c: Likewise.
2487         * input-file.c: Likewise.
2488         * listing.c: Likewise.
2489         * macro.h: Likewise.
2490         * stabs.c: Likewise.
2491         * symbols.c: Likewise.
2492
2493 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
2494
2495         * config/obj-generic.c: Delete file.
2496         * config/obj-generic.h: Likewise.
2497
2498 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2499
2500         * config/tc-avr.c (mcu_types): Update for new devices.
2501
2502 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2503
2504         * config/tc-mips.c (macro): Warn about wrong la/dla use.
2505
2506 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2507
2508         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2509         worked sometimes by accident. Fix copy&paste comment.
2510
2511 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2512
2513         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2514         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2515         (mips_elf_final_processing): Let n32 use .reginfo.
2516
2517 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2518
2519         * config/tc-mips.c (append_insn): Fix too small range of variable.
2520
2521 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
2522
2523         * config/tc-arm.c (arm_cleanup): Remove redundant call to
2524         listing_prev_line().
2525
2526 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
2527
2528         * config/tc-arm.c (md_assemble): Remove redundant call to
2529         listing_prev().
2530
2531         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2532         loc_directive_seen.
2533
2534         * stabs.c (s_stab_generic): Fix grammatical error in warning
2535         message.
2536
2537 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
2538
2539         * write.c (subsegs_finish): Don't specially align last subseg.
2540
2541 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
2542
2543         * stabs.c (s_stab_generic): Warn about a description field that is
2544         too big.
2545
2546         * config/obj-coff.c: Fix compile time warnings when compiling
2547         without BFD_ASSEMBLER defined.
2548         Fix formatting.
2549
2550         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2551         target.
2552         (md_pcrel_from_section): Use md_pcrel_from().
2553
2554 2002-05-11  Bruno Haible  <bruno@clisp.org>
2555
2556         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2557         by dwarf2_directive_loc, instead of calling dwarf2_where.
2558
2559 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
2560
2561         * config/obj-coff.h: Fix formatting.
2562         * config/tc-mcore.c: Likewise.
2563         * config/tc-mn10300.c: Likewise.
2564         * config/tc-openrisc.c: Likewise.
2565         * config/tc-or32.c: Likewise.
2566         * config/tc-pdp11.c: Likewise.
2567         * config/tc-ppc.c: Likewise.
2568         * config/tc-ppc.h: Likewise.
2569         * config/tc-sh64.c: Likewise.
2570         * config/tc-sh.c: Likewise.
2571         * config/tc-tic54x.c: Likewise.
2572         * config/tc-xstormy16.c: Likewise.
2573         * config/tc-xstormy16.h: Likewise.
2574
2575 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
2576
2577         * config/obj-coff.c: Fix formatting.
2578         * config/obj-elf.c: Likewise.
2579         * config/tc-alpha.c: Likewise.
2580         * config/tc-arm.c: Likewise.
2581         * config/tc-d10v.c: Likewise.
2582         * config/tc-d30v.c: Likewise.
2583         * config/tc-h8300.c: Likewise.
2584         * config/tc-hppa.c: Likewise.
2585
2586 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
2587
2588         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2589         reloc when no_cond_jump_promotion.
2590
2591 2002-05-08  Jim Wilson  <wilson@redhat.com>
2592
2593         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2594         current variable part of frag.
2595
2596 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
2597
2598         * config/tc-mmix.c: Fix formatting.
2599         * config/tc-mmix.h: Likewise.
2600
2601 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
2602
2603         * configure: Regenerate.
2604
2605 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
2606
2607         * config/tc-m68k.c: Fix formatting.
2608
2609 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
2610
2611         * Makefile.am: Honour DESTDIR.
2612         * Makefile.in: Regenerate.
2613
2614 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
2615
2616         * config/tc-ia64.c: Fix formatting.
2617         * config/tc-ia64.h: Likewise.
2618
2619 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2620
2621         * config/tc-mips.c: Fix formatting.
2622         * config/tc-s390.c: Likewise.
2623         * config/tc-s390.h: Likewise.
2624
2625 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
2626
2627         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2628         information for instructions.
2629
2630 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2631
2632         * as.h: Fix formatting.
2633         * cgen.c: Likewise.
2634         * cgen.h: Likewise.
2635         * dwarf2dbg.c: Likewise.
2636         * frags.h: Likewise.
2637         * gasp.c: Likewise.
2638         * macro.c: Likewise.
2639         * read.c: Likewise.
2640         * stabs.c: Likewise.
2641         * symbols.c: Likewise.
2642
2643 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
2644
2645         * app.c (mri_pseudo): Only declare for TC_M68K.
2646
2647         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2648         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2649         BFD_RELOC_16_BASEREL.
2650         (md_assemble): Likewise.
2651         (md_apply_fix3): Likewise.
2652
2653 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2654
2655         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2656         zero into an add of zero - it is not the same.
2657
2658 2002-05-01  Arati Dikey <aratid@kpit.com>
2659
2660         * tc-sh.c (get_specific): Generate warning if the same
2661         destination register is used in parallel instructions.
2662
2663 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
2664
2665         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2666
2667 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
2668
2669         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2670         backwards to prevent cascading errors.
2671
2672 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
2673
2674         * configure.in: Add support for powerpc-*-windiss.
2675         * configure: Regenerated.
2676
2677 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
2678
2679         * config/tc-s390.c (md_parse_option): Formatting.
2680
2681         * config/tc-i386.c: Formatting fixes, add missing space in error
2682         message.
2683
2684 2002-04-24  Christian Groessler <chris@groessler.org>
2685
2686         * config/tc-z8k.c (build_bytes): Add support for new cases:
2687         CLASS_IGNORE and ARG_NIM4.
2688         (md_assemble): Prevent destruction of input_line_pointer if
2689         get_operands returns failure.
2690
2691 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
2692
2693         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2694         instructions to be generated by macros.
2695
2696 2002-04-24  Andreas Schwab  <schwab@suse.de>
2697
2698         * config/tc-i386.c (output_jump, output_disp)
2699         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2700         more.
2701         (md_apply_fix3): Remember addend value for rela relocations.
2702         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2703
2704 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
2705
2706         * config/tc-mips.c (macro_build): Add close-parenthesis missing
2707         from previous change.
2708
2709 2002-04-22  Eric Christopher  <echristo@redhat.com>
2710
2711         * config/tc-mips.c (macro_build): Add warning if macro instructions
2712         are expanded into a branch delay slot.
2713
2714 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
2715
2716         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2717         numbers, gdb relies on them to detect the start of the prologue.
2718
2719 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2720
2721         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2722         symbols in merge sections.
2723
2724 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
2725
2726         * as.c (main): Don't reference _bfd_chunksize.
2727
2728 2002-04-15  Tom Rix  <trix@redhat.com>
2729
2730         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2731         symbols in merge sections.
2732
2733 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2734
2735         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2736         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2737         argument for the precision.
2738         (gen_to_words): Update accordingly.
2739
2740 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2741
2742         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2743         BFD_VERSION_STRING unavailable.
2744         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2745
2746 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
2747
2748         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2749         symbol_used_in_reloc_p is true.
2750
2751         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2752         endian hosts.
2753
2754 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2755
2756         * dep-in.sed: Cope with absolute paths.
2757         * Makefile.am (dep.sed): Subst TOPDIR.
2758         Run "make dep-am".
2759         * Makefile.in: Regenerate.
2760
2761 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2762
2763         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2764         (mips_ip): Remove unused variable.
2765         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2766         unsigned char with bfd_byte.
2767         (s_file): Remove unused variable.
2768         (s_mips_ent): Likewise.
2769
2770 2002-04-03  Tom Rix  <trix@redhat.com>
2771
2772         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2773         (build_insn): Same.
2774         (find_opcode): Fix warning in as_warn.
2775         * config/tc-d10v.h: Update Copyright.
2776
2777 2002-04-03  Alan Matsuoka <alanm@redhat.com>
2778             Tom Rix  <trix@redhat.com>
2779
2780         From Jeff Knaggs <jknaggs@redhat.com>
2781         * config/tc-d10v.c (check_resource_conflict): New function to
2782         check for resource conflicts.
2783
2784         From Jason Eckhardt  <jle@redhat.com>
2785         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2786         imm3 fields.
2787         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2788         reserved control registers is used.
2789         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2790         imm3 fields.
2791
2792         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
2793         * tc-d10v.c (parallel_ok): Prevent packing only if the first
2794         instruction cannot be packed.
2795
2796         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
2797         * gas/config/tc-d10v.c (check_resource_conflict): Only check
2798         write-write conflicts.
2799         (md_assemble): Reformat introductory comment.
2800         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2801         arguments.
2802
2803 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
2804
2805         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2806         O_logical_not>): Derive final_seg from add_symbol.
2807         <O_multiply..O_logical_or>: More final_seg twiddles.
2808
2809 2002-04-01  Jessica Han  <jessica@cup.hp.com>
2810
2811         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2812         in 32-bit mode.
2813
2814 2002-03-27  Andreas Schwab  <schwab@suse.de>
2815
2816         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2817         field for pc-relative fixups.
2818         (output_disp): Likewise.
2819         (md_estimate_size_before_relax): Likewise.
2820         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2821         pc-relative fixups in 64bit mode.
2822
2823 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2824
2825         * config/te-aix5.h: Typo fix.
2826
2827 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
2828
2829         * Makefile.am: Run "make dep-am".
2830         * Makefile.in: Regenerate.
2831         * doc/Makefile.in: Regenerate.
2832
2833 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
2834
2835         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2836         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2837
2838 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2839
2840         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2841         the EXTENDED bit here; report the estimate according to the
2842         current size.
2843
2844 2002-03-18  Tom Rix  <trix@redhat.com>
2845
2846         * configure.in: Add AIX 5 support.
2847         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2848         * config/te-aix5.h: New file. AIX 5 support.
2849         * configure: Regenerate.
2850
2851 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
2852
2853         * po/fr.po: Updated version.
2854
2855 2002-03-16  Andreas Jaeger  <aj@suse.de>
2856
2857         * doc/c-mips.texi (Machine Dependencies): Add new node.
2858
2859 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
2860
2861         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2862         (mips_opts): Initialize "ase_mips3d" member.
2863         (file_ase_mips3d): New variable.
2864         (CPU_HAS_MIPS3D): New macro.
2865         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2866         based on command line options and configuration defaults.
2867         (macro_build, mips_ip): Accept MIPS-3D instructions if
2868         mips_opts.ase_mips3d is set.
2869         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2870         Add support for "-mips3d" and "-no-mips3d" options.
2871         (OPTION_ELF_BASE): Move to accomodate new options.
2872         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2873         (mips_elf_final_processing): Add a comment indicating that a
2874         MIPS-3D ASE ELF header flag should be set, when one exists.
2875         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2876         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2877         nomips3d" directives.
2878
2879 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
2880
2881         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2882         a weak symbol in same section to be within reach.
2883
2884 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
2885
2886         * po/fr.po: Updated version.
2887
2888 2002-03-12  Andreas Schwab  <schwab@suse.de>
2889
2890         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2891         body record so that an error is given for misplaced .save
2892         pseudo-ops.
2893
2894 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
2895
2896         * config/tc-i386.h (REX_OPCODE): Define.
2897         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2898         (rex_byte): typedef to int.
2899         * config/tc-i386.c: Group prototypes and vars together.
2900         Formatting fixes.  Remove occurrences of "register" keyword.
2901         (true): Delete.
2902         (false): Delete.
2903         (mode_from_disp_size): Add INLINE keyword to prototype.
2904         (fits_in_signed_byte): Likewise.
2905         (fits_in_unsigned_byte): Likewise.
2906         (fits_in_unsigned_word): Likewise.
2907         (fits_in_signed_word): Likewise.
2908         (fits_in_unsigned_long): Likewise.
2909         (fits_in_signed_long): Likewise.
2910         (type_names): Constify.
2911         (intel_float_operand): Constify param.
2912         (add_prefix): Use REX_OPCODE.
2913         (md_assemble): Likewise.  Modify for changed rex_byte.
2914         (parse_insn): Split out of md_assemble.
2915         (parse_operands): Likewise.
2916         (swap_operands): Likewise.
2917         (optimize_imm): Likewise.
2918         (optimize_disp): Likewise.
2919         (match_template): Likewise.
2920         (check_string): Likewise.
2921         (process_suffix): Likewise.
2922         (check_byte_reg): Likewise.
2923         (check_long_reg): Likewise.
2924         (check_qword_reg): Likewise.
2925         (check_word_reg): Likewise.
2926         (finalize_imm): Likewise.
2927         (process_operands): Likewise.
2928         (build_modrm_byte): Likewise.
2929         (output_insn): Likewise.
2930         (output_branch): Likewise.
2931         (output_jump): Likewise.
2932         (output_interseg_jump): Likewise.
2933         (output_disp): Likewise.
2934         (output_imm): Likewise.
2935
2936 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
2937
2938         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2939
2940 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
2941
2942         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2943         relocs except when BFD64.
2944
2945         * write.c (number_to_chars_bigendian): Don't abort when N is
2946         larger than sizeof (VAL).
2947         (number_to_chars_littleendian): Likewise.
2948
2949 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2950
2951         * config/tc-hppa.c (md_apply_fix3): Add cast.
2952         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2953         e_rrsel.
2954
2955 2002-03-05  Paul Koning  <pkoning@equallogic.com>
2956
2957         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2958         (parse_ac5): New function for parsing float regs in float operand.
2959         (parse_expression): Remove attempt to make literals be octal.
2960         (parse_op_no_deferred): Support float literals.
2961         (parse_op): Reject attempts to refer to float regs.
2962         (parse_fop): New function, like parse_op but for float operand.
2963         (md_assemble): Add cases to parse float operands.  Also fix
2964         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2965
2966 2002-03-04  H.J. Lu <hjl@gnu.org>
2967
2968         * config/obj-elf.c (special_section): Add .init_array,
2969         .fini_array and .preinit_array.
2970
2971         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2972         .init_array and .fini_array.
2973
2974 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
2975
2976         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2977         visibility.
2978         (obj_frob_symbol): Copy visibility.
2979
2980 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
2981
2982         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2983         s_text.
2984         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2985
2986 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
2987
2988         * po/es.po: Updated.
2989
2990 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
2991
2992         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2993         only, undo the changes made on 2001-06-08, with the
2994         effect being that common or extern symbols are
2995         adjusted for embedded-PIC, but weak symbols are not.
2996         (md_estimate_size_before_relax: Likewise, with the effect
2997         that extern symbols are treated the same as weak symbols
2998         only if not embedded-PIC.
2999         (mips_fix_adjustable) Likewise, with the effect that
3000         weak or extern symbols are not adjusted for embedded-PIC.
3001         (md_apply_fix3): Tweak so that the case where value is zero
3002         is handled more correctly for embedded-PIC code.
3003
3004 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
3005
3006         * doc/as.texinfo (Overview): Add missing @ifset IA64
3007
3008         * configure.in (LINGUAS): Add es.po.
3009         * configure: Regenerate.
3010         * po/es.po: New file.
3011
3012 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3013
3014         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3015         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3016         and NO_PIC cases. Code cleanup.
3017         (macro2): Fix handling of 64bit register loads.
3018
3019 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
3020
3021         * doc/as.texinfo: Add entry for IA64.
3022         * doc/c-ia64.texi: New file.
3023
3024 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
3025
3026         * config/tc-hppa.c: Update copyright date.
3027
3028         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3029         Remove references to chip manufacturers.
3030         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3031         Correct comments.
3032         (md_show_usage): Remove references to chip manufacturers.  Mention
3033         -mpower4.
3034         (md_begin): Test power4 opcode flag bits.
3035
3036 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
3037
3038         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3039         count exceeds prologue count.
3040         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3041         (unwind.label_prologue_count): New member.
3042
3043         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3044
3045         (get_saved_prologue_count): New function.
3046         (save_prologue_count): New function.
3047         (free_saved_prologue_count): New function.
3048         (dot_label_state): Record state label by calling save_prologue_count().
3049         (dot_copy_state): Restore prologue count by calling
3050         get_saved_prologue_count().
3051         (generate_unwind_image): Free up list of saved prologue
3052         counts by calling free_saved_prologue_counts().
3053
3054 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
3055
3056         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3057         function declarations.
3058
3059 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
3060
3061         * NEWS: Note that GASP is now deprecated.
3062         * Makefile.am: Do not build gasp-new by default.
3063         * Makefile.in: Regenerate.
3064         * doc/Makefile.am: Do not install gasp.info.
3065         * doc/Makefile.in: Regenerate.
3066         * gas/gasp.texi: Note that gasp is now deprecated.
3067
3068 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
3069
3070         * NEWS: Mark 2.12 branch.
3071
3072 2002-02-19  Tom Tromey  <tromey@redhat.com>
3073
3074         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3075
3076 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3077
3078         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3079         option input.
3080
3081 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3082
3083         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3084         Make bit size independent of architecture switch.
3085         (md_begin): Add warning for -m64 with -Aesa.
3086         (s390_md_end): Use renamed architecture defines.
3087
3088 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
3089
3090         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3091
3092 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
3093
3094         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3095         instead of CRIS.
3096
3097 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
3098
3099         * config/tc-mips.c (md_estimate_size_before_relax): Really
3100         make sure we treat weak like extern only for ELF.  (Fixes
3101         patch from 2001-07-25.)
3102
3103 2002-02-15  Ben Elliston  <bje@redhat.com>
3104
3105         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3106         works as expected.
3107
3108 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
3109
3110         * NEWS: Mention support for MMIX.
3111
3112 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
3113
3114         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3115         a sequence of indpendent 'if' statements for easier debugging
3116         and future modification.
3117
3118 2002-02-13  Matt Fredette  <fredette@netbsd.org>
3119
3120         * config/tc-m68k.c (md_show_usage): No longer display a
3121         hard-coded "68020" for the default CPU, instead display the
3122         canonical name of the true, configured default CPU.
3123         (m68k_elf_final_processing): Mark objects for sub-68020
3124         CPUs with the new EF_M68000 flag.
3125
3126 2002-02-13  Andreas Schwab  <schwab@suse.de>
3127
3128         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3129         pc-relative relocations to merge sections in 64-bit mode.
3130
3131 2002-02-13  Ben Elliston  <bje@redhat.com>
3132
3133         * NEWS: Document floating point number handling in gasp.
3134         * gasp.c: Include <assert.h> and "xregex.h".
3135         (is_flonum): New function.
3136         (chew_flownum): Likewise.
3137         (change_base): Consume flonums from the input, where possible.
3138         * doc/gasp.texi (Constants): Document floating point numbers.
3139
3140 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3141
3142         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3143         that implicitly use LR and RR selectors.
3144
3145 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
3146
3147         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
3148         and `epsw' as available on AM33 and above only.
3149         (other_register_name): Add logic to handle machine type encoded in
3150         reg_number.
3151
3152 2002-02-11  Tom Rix  <trix@redhat.com>
3153
3154         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3155         xcoff64.
3156
3157 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
3158
3159         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3160         Use all over.
3161
3162 2002-02-11  Jan Hubicka  <jh@suse.cz>
3163
3164         * i386.c (md_assemble): Support 32bit address prefix.
3165         (i386_displacement): Likewise.
3166         (i386_index_check): Accept 32bit addressing in 64bit mode.
3167
3168 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
3169
3170         * config/tc-sh.c (dot): Removed unused function.
3171
3172 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
3173
3174         * Makefile.am: "make dep-am".
3175         * Makefile.in: Regenerate.
3176         * aclocal.m4: Regenerate.
3177         * config.in: Regenerate.
3178         * configure: Regenerate.
3179         * doc/Makefile.in: Regenerate.
3180
3181 2002-02-10  Richard Henderson  <rth@redhat.com>
3182
3183         * doc/c-alpha.texi: New file.
3184         * doc/Makefile.am (CPU_DOCS): Add it.
3185         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3186
3187 2002-02-09  Richard Henderson  <rth@redhat.com>
3188
3189         * config/tc-alpha.c (O_samegp): New.
3190         (USER_RELOC_P): Include it.
3191         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3192         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3193         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3194         (alpha_validate_fix): New.
3195         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3196
3197 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
3198
3199         * doc/c-cris.texi: New.
3200         * doc/all.texi: @set CRIS.
3201         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
3202         Include c-cris.texi.
3203         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3204         * doc/Makefile.in: Regenerate.
3205
3206 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
3207
3208         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3209         determine if a number is a sign-extended 32-bit number.
3210         (load_register): Use IS_SEXT_32BIT_NUM.
3211         (macro): Check if load/store macro handling is using a
3212         constant 32-bit address on 64-bit address systems, and if
3213         so optimize the generation of that address.
3214
3215 2002-02-08  Richard Henderson  <rth@redhat.com>
3216
3217         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3218         we've eliminated all foreign relocation types yet.
3219         (alpha_fix_adjustable): Likewise.
3220
3221 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
3222
3223         Contribute sh64-elf.
3224         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
3225                     Stephen Clarke <Stephen.Clarke@st.com>
3226         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3227         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
3228         * config/tc-sh.c (md_relax_table): Added default sizes for
3229         non-PC-relative UNDEF_MOVI, and relaxation sequences for
3230         MOVI_16, MOVI_32 and MOVI_48.
3231         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3232         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3233         and MOVI_16.
3234         (shmedia_md_estimate_size_before_relax): Remove redundant
3235         blocks.  Set fragP->fr_var even if relaxation type unchanged.
3236         Retain UNDEF_MOVI until expression decays to number.
3237         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3238         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3239         relocation types.  Take fixP->fx_addnumber into account too.
3240         (shmedia_md_apply_fix): Likewise.
3241         (shmedia_md_convert_frag): Likewise.
3242         (shmedia_build_Mytes): Likewise.
3243         (sh64_consume_datalabel): Complain about nested datalabel.
3244         Support PIC relocs.  Call sh_parse_name.
3245         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3246         in tc-sh.h to SHmedia reloc types.
3247         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3248         MOVI_GOTPC): New relaxation constants.
3249         (md_relax_table): Introduce relaxation directives for PIC-related
3250         constants.
3251         (sh_PIC_related_p): Handle datalabel.
3252         (sh_check_fixup): Choose SH5 PIC relocations.
3253         (sh_cons_fix_new): Added BDF_RELOC_64.
3254         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3255         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
3256         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3257         current ISA is SHmedia, get 7 bytes.
3258         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
3259         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3260         void function.
3261         * config/tc-sh64.c (shmedia_apply_fix): Rename to
3262         shmedia_apply_fix3 and make void.
3263         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
3264         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3265         as_bad.
3266         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
3267         * config/tc-sh64.h (md_parse_name): Take &c as argument.
3268         2001-03-14  DJ Delorie  <dj@redhat.com>
3269         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3270         * doc/Makefile.in(CPU_DOCS): Ditto.
3271         * doc/c-sh64.texi: New file.
3272         * doc/as.texinfo: Add SH64 support.
3273         2001-03-13  DJ Delorie  <dj@redhat.com>
3274         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3275         A_REUSE_PREV so that its purpose is more obvious.
3276         (shmedia_build_Mytes): Ditto.
3277         2001-03-07  DJ Delorie  <dj@redhat.com>
3278         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3279         before processing.
3280         (sh64_vtable_inherit): Ditto.
3281         (strip_datalabels): New, strip "datalabel" from given line.
3282         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3283         pseudos.
3284         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
3285         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3286         call ...
3287         (shmedia_build_Mytes): ... to here.
3288         2001-03-06  DJ Delorie  <dj@redhat.com>
3289         * config/tc-sh.c: Remove sh64-specific uaquad now that there
3290         is a generic one.
3291         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
3292         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3293         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3294         address by one in call to dwarf2_emit_insn.
3295         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
3296         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
3297         alignment handling broken by imported changes.
3298         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3299         (sh64_handle_align): Declare.
3300         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3301         (sh64_max_mem_for_rs_align_code): Declare.
3302         (enum sh64_isa_values): Moved here from tc-sh64.c.
3303         (md_do_align): Define.
3304         (sh64_do_align): Declare.
3305         (struct sh64_tc_frag_data): New.
3306         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
3307         changed.
3308         (TC_FRAG_INIT): Change to set new datatype.
3309         (struct sh64_segment_info_type): Rename member
3310         last_flushed_location to last_contents_mark.  All users changed.
3311         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3312         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3313         * config/tc-sh.c (md_pseudo_table): Add ".abi".
3314         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3315         of unsetting seen_insn.
3316         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3317         call sh64_update_contents_mark.
3318         (sh_handle_align): Remove HAVE_SH64-conditioned code.
3319         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3320         enum sh64_isa_values.
3321         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
3322         (emitting_crange): Boolean guard moved to file scope from function
3323         scope in sh64_set_contents_type.
3324         (s_sh64_abi): New.
3325         (sh64_update_contents_mark): New; most split out from
3326         sh64_flush_pending_output.
3327         (shmedia_md_end): Call sh64_update_contents_mark.  Set
3328         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3329         (sh64_do_align): New function.
3330         (sh64_max_mem_for_rs_align_code): New function.
3331         (sh64_handle_align): Rename from shmedia_do_align.  Make
3332         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
3333         four.  Change return-type to void.
3334         (shmedia_elf_new_section): Remove.
3335         (shmedia_md_assemble): Call sh64_update_contents_mark.
3336         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
3337         new frag.  Call sh64_update_contents_mark after making the new
3338         frag.
3339         (sh64_flush_pending_output): Just call sh64_update_contents_mark
3340         and sh_flush_pending_output.
3341         (sh64_flag_output): Also call md_flush_pending_output, but add
3342         condition on not emitting_crange.
3343         (sh64_tc_cons_fix_new): Remove.
3344         2001-01-12  Nick Clifton  <nickc@redhat.com>
3345         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3346         alignment handling scheme imported from sourceware.
3347         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3348         * config/tc-sh64.h (TARGET_FORMAT): Define.
3349         (sh64_target_format): Prototype.
3350         * config/tc-sh64.c (sh64_target_mach): New function.
3351         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
3352         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3353         zero_address_frag instead of copying the frag of the symbol.
3354         (shmedia_frob_file_before_adjust): Ditto.
3355         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3356         to valueT to remove signedness.
3357         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
3358         headers to output_bfd.  Do not evaluate symbols if final is false;
3359         do emit fixups.
3360         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3361         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3362         to the current frag, call shmedia_md_convert_frag to emit fixups
3363         and make frag_wane neutralize the frag.  Update comments.
3364         * config/tc-sh.c (md_convert_frag): Change caller of
3365         shmedia_md_convert_frag.
3366         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
3367         * config/tc-sh64.h: Tweak comments and correct formatting.
3368         * config/tc-sh64.c: Ditto.
3369         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3370         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3371         for the no-relocation case.
3372         (shmedia_check_limits): Fix range check being off-by-one for PTA.
3373         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
3374         wrappers.
3375         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
3376         comment.
3377         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3378         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3379         expansion.
3380         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3381         Correct comment.
3382         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
3383         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3384         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3385         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3386         al>: Set lowest bit of field to relocate to 1 and rest to empty,
3387         if reloc is emitted.
3388         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
3389         New options plus bugfixes.
3390         * config/tc-sh.c (md_longopts): New options "-no-expand" and
3391         "-expand-pt32".
3392         (md_parse_option): Handle new options.
3393         (md_show_usage): Add blurb for new options.
3394         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3395         (sh64_expand, sh64_pt32): New variables.
3396         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3397         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3398         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
3399         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
3400         <resolved previously-pc-relative relocs>: Handle
3401         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3402         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3403         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3404         points to SHcompact code.
3405         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3406         SH64PCREL16)>: Check that ISA of what operand points at and
3407         PTA/PTB matches, or emit error.
3408         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3409         SHMEDIA_BFD_RELOC_PT.
3410         (shmedia_immediate_op): If pcrel, emit fixup also for constant
3411         operand.
3412         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3413         condition for MOVI expansion.
3414         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3415         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
3416         sh64_expand.
3417         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3418         fixup.
3419         (sh64_target_format): Error-check setting of sh64_pt32 and
3420         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
3421         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3422         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3423         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
3424         * config/tc-sh64.c: Improve comments.
3425         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
3426         not say the linker will check correctness of PTA/PTB expansion.
3427         (shmedia_md_end): Make non-static.
3428         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
3429         prototype.
3430         * config/tc-sh.c (sh_finalize): Remove.
3431         * config/tc-sh.h (md_end): Do not define.
3432         Remove prototype for sh_finalize.
3433         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3434         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3435         sh64_section_data container when storing section type in tdata
3436         field in elf_section_data.
3437         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3438         EF_SH5.
3439         * Makefile.am: Update dependencies.
3440         * Makefile.in: Regenerate.
3441         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
3442         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3443         dwarf2_emit_insn call with test on debug_type.
3444         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
3445         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3446         CRT_SH5_ISA32 sticky for 64-bit.
3447         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
3448         Generate .crange sections when switching ISA mode or emitting
3449         constants in same section as code.
3450         * config/tc-sh64.c: Reformat structure definitions.
3451         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3452         variables.
3453         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
3454         to emit a .cranges descriptor when contents type changes.  Only
3455         emit error if changing contents type and -no-mix is in effect.
3456         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3457         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3458         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
3459         sh64_flush_last_crange over sections.
3460         When checking main symbol of datalabel symbol, check for
3461         STO_SH5_ISA32, not ISA type of section in definition.
3462         (shmedia_frob_file_before_adjust): Check main symbol for
3463         STO_SH5_ISA32; don't check ISA type of section in definition.
3464         (shmedia_frob_section_type): Adjust for .cranges; set section flag
3465         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3466         .cranges entries have been output.
3467         (shmedia_elf_new_section): Just call md_flush_pending_output.
3468         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3469         fix.  Do not set tc_segment_info_data.in_code for section.  Call
3470         sh64_set_contents_type for SHmedia code.
3471         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3472         false.  Call md_flush_pending_output.
3473         (sh64_target_format): Check that -no-mix and
3474         -shcompact-const-crange are used in sane combination with other
3475         options.
3476         (shmedia_md_pcrel_from_section): Check type of fix for how to
3477         adjust pc-relative.
3478         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3479         not ISA type of section in definition.
3480         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3481         hold contents-type state.
3482         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3483         (sh64_flush_pending_output): Declare.
3484         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3485         (sh64_tc_cons_fix_new): Declare.
3486         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3487         call sh64_flag_output.
3488         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
3489         call sh64_set_contents_type to mark SHcompact code and set
3490         seen_insn.
3491         (md_longopts): New options "-no-mix" and
3492         "-shcompact-const-crange".
3493         (md_parse_option): Handle new options.
3494         (md_show_usage): Add blurb for new options.
3495         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3496         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
3497         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3498         (sh64_last_insn_frag): New.
3499         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3500         to get frag for insn opcode for generating fixups; do not assume it
3501         is the same frag.
3502         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3503         for new insn.
3504         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3505         section.
3506         (TC_FRAG_TYPE): Define as fragS *.
3507         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3508         (sh64_last_insn_frag): Declare.
3509         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3510         not == NULL before dereferencing.
3511         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3512         Get rid of BFD section flag and EF_SH64_ABI64.
3513         * config/tc-sh64.c (shmedia_frob_section_type): Use
3514         elf_section_data (sec)->tdata, not a specific BFD section flag, to
3515         communicate the section as containing SHmedia code.  Describe why.
3516         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
3517         EF_SH64 regardless of ABI.
3518         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3519         in error message.  Handle resolved expressions for
3520         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3521         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3522         (shmedia_check_limits): Handle BFD_RELOC_64.
3523         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3524         a STO_SH5_ISA32 symbol, only the BFD value.
3525         2000-12-11  Ben Elliston  <bje@redhat.com>
3526         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3527         dwarf2_generate_asm_lineno.
3528         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
3529         Handle PC-relative MOVI expansions with assembler relaxation.
3530         Generate PC-relative relocs from 16-bit PC-relative expressions.
3531         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3532         (shmedia_md_pcrel_from_section): ...here.
3533         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3534         turned completely resolved.  Adjust relocation type for 16-bit
3535         immediate operands that has turned PC-relative.  Adjust back for
3536         MD_PCREL_FROM_SECTION being applied twice.
3537         (shmedia_md_convert_frag): Always emit reloc for expression with
3538         global or weak symbol.  Handle relaxation result for PC-relative
3539         expressions.
3540         (shmedia_md_estimate_size_before_relax): An expression with a weak
3541         or global symbol can not be relaxed.  Break out tests for
3542         relaxable symbol into variable sym_relaxable.
3543         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3544         UNDEF_MOVI)>: Break out any PC-relative expression and change
3545         relaxation type.
3546         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3547         opjp.
3548         <case A_IMMS16>: Fix typo for initial minor relaxation type of
3549         MOVI expansion.  If X_op_symbol of the immediate expression is
3550         set, make an expression symbol for the argument to frag_var.
3551         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3552         relaxations.
3553         (END): Adjust for new relaxations.
3554         (md_relax_table): Add entries for new relaxations.
3555         2000-12-07  Ben Elliston  <bje@redhat.com>
3556         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3557         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
3558         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3559         SHORI operand offsets in PT/PTA/PTB expansions.
3560         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
3561         Implement DataLabel semantics.
3562         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3563         shmedia_frob_file_before_adjust.
3564         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3565         (DATALABEL_SUFFIX): Define.
3566         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3567         symbol list to update "datalabel" symbols to their main symbol
3568         counterparts.
3569         (shmedia_frob_file_before_adjust): New.
3570         (sh64_adjust_symtab): For remaining datalabel symbols, set to
3571         undefined and set STT_DATALABEL.
3572         (sh64_frob_label): Initialize TC symbol field.
3573         (sh64_consume_datalabel): Actually implement semantics.  New
3574         parameter operandf, call it instead of expression.
3575         (sh64_exclude_symbol): New.
3576         * config/tc-sh64.h (md_parse_name): Pass on the function operand
3577         to sh64_consume_datalabel.
3578         (tc_symbol_new_hook): Define to tc_frob_symbol.
3579         (TC_SYMFIELD_TYPE): Define to symbolS *.
3580         (tc_frob_symbol): Define to call sh64_exclude_symbol.
3581         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
3582         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3583         case.
3584         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3585         generating dwarf2 debug information.
3586         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3587         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3588         elf64-sh64 for the 64-bit ABI.
3589         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3590         option.
3591         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
3592         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3593         case-insensitivity.
3594         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
3595         * config/tc-sh64.c: Tweak comments, formatting and error messages.
3596         (enum sh64_abi_values): New type.
3597         (enum sh64_isa_values): New type.
3598         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
3599         (seen_shcompact_mode, seen_shmedia_mode): Delete.
3600         (sh64_abi): Replace shmedia_64.
3601         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3602         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3603         (s_sh64_mode): Check validity for this target.
3604         (sh64_target_format): Initialize defaults for ISA and ABI.
3605         Fallback to old object format if no SH64 ISA or ABI has been
3606         specified.
3607         * config/tc-sh.c (md_parse_option): Check combinations for errors.
3608         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3609         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3610         * config/tc-sh64.h: Fix typo in comment.
3611         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
3612         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3613         <PT fixups for absolute values>: Size will be longest, not
3614         shortest.
3615         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
3616         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3617         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3618         and l1 to hold lowercase of two first characters.  Change all
3619         remaining TO_LOWER to tolower.
3620         * config/tc-sh64.c (TO_LOWER): Delete.
3621         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3622         (md_parse_name): Define.
3623         (sh64_consume_datalabel): Declare.
3624         (DOLLAR_DOT): Define.
3625         * config/tc-sh64.c (shmedia_parse_exp): New.
3626         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3627         (shmedia_parse_reg): Remove const from src
3628         parameter.
3629         (shmedia_get_operands): Ditto for args parameter and ptr variable.
3630         (shmedia_md_assemble): Ditto for op_end variable.
3631         (shmedia_get_operand): Ditto for ptr parameter and src variable.
3632         Use shmedia_parse_exp, not parse_exp.
3633         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3634         parameter.  All callers changed.
3635         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
3636         callers changed.
3637         (shmedia_parse_reg): Put first two character in local variables.
3638         Use tolower, not TO_LOWER.  If no register is found and argtype
3639         indicates a control register, scan shmedia_creg_table
3640         case-insensitive.
3641         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
3642         * Makefile.am (CPU_TYPES): Add sh64.
3643         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3644         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3645         Regenerate dependencies.
3646         * Makefile.in: Regenerate.
3647         * configure.in: Add support for sh64-*-elf*.
3648         * configure: Regenerate.
3649         * config/tc-sh64.h: New.
3650         * config/tc-sh64.c: New.
3651         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3652         .mode, .isa and .uaquad.
3653         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3654         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3655         [HAVE_SH64] (END): Define as 10.
3656         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3657         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3658         MOVI_64): Define.
3659         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3660         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3661         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3662         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3663         Define.
3664         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3665         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3666         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3667         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3668         SHmedia instructions.  Handle state-change after switching to
3669         SHcompact.
3670         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3671         (md_parse_option) [HAVE_SH64]: Parse new options.
3672         (md_show_usage) [HAVE_SH64]: Show usage of new options.
3673         (md_convert_frag) [HAVE_SH64] <default>: Call
3674         shmedia_md_convert_frag instead of abort.
3675         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3676         BFD_RELOC_SH_SHMEDIA_CODE.
3677         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3678         SHcompact or SHmedia code.
3679         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3680         shmedia_md_apply_fix instead of abort.
3681         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3682         result from calling shmedia_md_estimate_size_before_relax instead
3683         of calling abort.
3684         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3685         do the work.
3686         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3687         shmedia_init_reloc and do nothing more if it returns non-zero.
3688         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3689         * po/POTFILES.in: Regenerate.
3690         * po/gas.pot: Regenerate.
3691
3692 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
3693
3694         * config/tc-sh.c (parse_at): Install the correct version of
3695         2002-02-04's patch.
3696
3697         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3698         assume fixP->fx_subsy is non-NULL.
3699
3700 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
3701
3702         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3703         A_DISP_PC_ABS, and adjust it by -4.
3704         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3705         expected.
3706         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3707         the operand type is not A_DISP_PC_ABS.
3708
3709 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
3710
3711         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3712         common and weak symbols.  Handle common and weak symbols as
3713         undefined symbols with regards to GREG handling and merging.
3714         (mmix_frob_file): Ditto.
3715
3716 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
3717
3718         * configure.in (hppa-*-netbsd*): New target.
3719         * configure: Regenerate.
3720         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3721
3722 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
3723
3724         * config/tc-v850.c: Add missing prototypes amd use old-style
3725         function definitions.
3726         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3727         (sdata_section tdata_section, zdata_section, sbss_section,
3728         tbss_section, zbss_section, rosdata_section, rozdata_section,
3729         scommon_section, tcommon_section, zcommon_section,
3730         call_table_data_section, call_table_text_section): Delete.
3731         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3732         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3733         v850_call_table_data, v850_call_table_text): Delete.
3734         (struct v850_seg_entry): New.
3735         (v850_seg_table): New.
3736         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3737         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3738         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3739         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3740         (do_v850_seg): New.
3741         (v850_seg): New.
3742         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
3743         recording of alignment.
3744         (md_pseudo_table): Use v850_seg.
3745         (md_begin): Don't init .call_table_data and .call_table_text here.
3746         Set v850_seg_table bss entry.
3747
3748 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
3749
3750         Support on-demand global register allocation by passing on
3751         base-plus-offset relocs to the linker.
3752         * config/tc-mmix.c: Tweak and fix typos in comments.
3753         (allocate_undefined_gregs_in_linker): New variable.
3754         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3755         (md_longopts): Add --linker-allocated-gregs.
3756         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3757         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3758         (md_show_usage): Update text for -x.  Add text for
3759         --linker-allocated-gregs.
3760         (tc_gen_reloc): Derive default value for addend from val and
3761         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
3762         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3763         GREG if allocate_undefined_gregs_in_linker.
3764         * doc/as.texinfo (Overview) <Target MMIX options>: Add
3765         --linker-allocated-gregs.
3766         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3767         --linker-allocated-gregs.  Mention that it's implied by -x.
3768         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3769         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3770
3771         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3772
3773 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
3774
3775         * Makefile.am: Run "make dep-am"
3776         * Makefile.in: Regenerate.
3777
3778 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
3779
3780         * config/tc-or32.c: New file.
3781         * config/tc-or32.h: New file.
3782         * configure.in: Add support for or32 targets.
3783         * configure: Regenerate.
3784         * config/obj-coff.c: Add support for or32 targets.
3785         * config/obj-coff.h: Add support for or32 targets.
3786         * Makefile.am: Add support for or32 targets.
3787         * Makefile.in: Regenerate.
3788         * NEWS: Mention support for OpenRISC.
3789         * doc/Makefile.in: Regenerate.
3790         * po/POTFILES.in: Regenerate.
3791         * po/gas.pot: Regenerate.
3792
3793 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
3794
3795         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3796         and mod.
3797
3798 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
3799
3800         * config/tc-mips.c (tc_gen_reloc): Arrange for
3801         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3802         their LO16 parts, even for ELF.
3803
3804 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
3805
3806         * config/tc-i386.c: Protect definitions of true and false
3807         from redefinition.
3808
3809 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
3810
3811         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3812         made because of .weak, if they are neither defined nor used in any
3813         way.
3814
3815 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
3816
3817         * configure: Regenerated.
3818
3819 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
3820
3821         * doc/Makefile.am (install): Depend on install-info.
3822         * doc/Makefile.in: Regenerate.
3823
3824 2002-01-26  Nick Clifton <nick@redhat.com>
3825
3826         * po/fr.po: Updated version
3827
3828 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3829
3830         * config/tc-h8300.c (check_operand): Don't print a warning
3831         when a valid 24-bit address is given to a 16-bit address
3832         operand.
3833
3834 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3835
3836         * config/tc-sh.c (sh_elf_suffix): Removed.
3837         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3838         sh_end_of_match, sh_parse_name): New functions.
3839         (sh_elf_cons): Simplify.
3840         (parse_exp): Reject misplaced PIC operands.
3841         (md_undefined_symbol): Simplify.
3842         (sh_fix_adjustable): Let @GOTOFF be adjusted.
3843         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3844         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3845         Complain if subsy remains at the end.
3846         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3847         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3848
3849 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
3850
3851         * config/tc-mn10300.c (xr_registers): Move `pc'...
3852         (other_registers): ... here.
3853
3854 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
3855
3856         * Makefile.am: Run "make dep-am".
3857         * Makefile.in: Regenerate.
3858         * gas/po/POTFILES.in: Regenerate.
3859
3860 2002-01-21  DJ Delorie  <dj@redhat.com>
3861
3862         * config/obj-coff.c (obj_coff_init_stab_section): Make the
3863         stabstr_name allocation permanent, as it will be referenced from
3864         the section hash.
3865
3866 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3867
3868         * configure.in (ia64-*-netbsd*): New target.
3869         * configure: Regenerate.
3870
3871 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
3872
3873         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3874         to @dots call.
3875         <Detailed description, ARM options>: Ditto.
3876         * doc/c-arm.texi (ARM Options): Ditto.
3877
3878 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3879
3880         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3881         do_mia, do_mar and do_mra respectively.
3882         (do_mav_*): Renamed from do_c_*.
3883         (mav_reg_required_here, mav_parse_offset): Renamed from
3884         cirrus_reg_required_here and cirrus_parse_offset respectively.
3885         (MAV_MODE?): Renamed from CIRRUS_MODE?.
3886
3887 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3888             Keith Walker  <keith.walker@arm.com>
3889
3890         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3891         (insns): Add pattern for bxj instruction.
3892         (do_bxj): New function.
3893         (arm_cpus): Add arm926ej.
3894         (arm_archs): Add armv5tej.
3895
3896 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3897
3898         * doc/c-arm.texi: Add new fpe options to list of supported flags.
3899
3900 2002-01-19  Keith Walker  <keith.walker@arm.com>
3901
3902         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3903
3904 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3905
3906         * NEWS: Mention new ARM command-line options and VFP support.
3907
3908         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
3909         uses changed.
3910         (ARM_CEXT_MAVERICK): Similarly.
3911         (ARM_ANY): Now means any core instruction.
3912         (CPU_DEFAULT): Default to ARM_ANY.
3913         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3914         (pic_code): Declare for all object types.  Make type int.
3915         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3916         (march_fpu_opt, mfpu_opt): Declare.
3917         (md_longopts): Tidy up conditional definitions.
3918         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3919         (arm_long_opts): New tables.
3920         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3921         (arm_parse_extension): New function.
3922         (md_parse_option): Rewrite using new table-driven system.
3923         (md_show_usage): Use new table-driven system.
3924         (md_begin): Calculate cpu_variant from command line option data.
3925         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3926         command-line options.
3927         * doc/c-arm.texi: Likewise.
3928
3929 2002-01-18  Andreas Jaeger  <aj@suse.de>
3930
3931         * as.c (parse_args): Update year.
3932
3933 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
3934
3935         * config/tc-tic54x.c (encode_address): Add a more informative
3936         warning about incorrect syntax.
3937
3938 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3939
3940         * po/gas.pot: Regenerate.
3941
3942 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3943
3944         * macro.c (get_any_string): Add no-c-format comment to prevent
3945         confusion when translating string.
3946         * gasp.c (get_any_string): Add no-c-format comment to prevent
3947         confusion when translating string.
3948
3949 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3950             Johannes Stezenbach <js@convergence.de>
3951         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3952         matched before the shorter ones.
3953         (my_getSmallParser): Fix handling of nested parentheses in
3954         percent_op's. Code cleanup.
3955         (my_getPercentOp): New function, code from my_getSmallParser.
3956         (my_getSmallExpression): Fix handling of closing parentheses.
3957         Code cleanup. Better comments.
3958
3959 2002-01-16  Nick Clifton <nickc@redhat.com>
3960
3961         po/tr.po: New file: Turkish translation.
3962         configure.in (LINGUAS): Add "tr".
3963         configure: Regenerate.
3964
3965 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
3966
3967         Support for VFP instructions
3968         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3969         (cp_address_required_here): New argument wb_ok.  When false, do not
3970         accept write-back forms of addressing.  Change all callers.
3971         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3972         (FPU_VFP_EXT_V2): Define.
3973         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3974         Define in terms of above.
3975         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3976         (vfp_reg): New struct.
3977         (vfp_regs): New array of registers.
3978         (insns): Add VFP instructions.
3979         (sn_table): New array of VFP single-precision register names.
3980         (dn_table): New array of VFP double-precision register names.
3981         (all_reg_maps): Add the new register tables.
3982         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
3983         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3984         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3985         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3986         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3987         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3988         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3989         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3990         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3991         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3992         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3993         (do_vfp_sp_dp_cvt): New functions.
3994         (md_begin): Set soft-float flag for appropriate VFP work.
3995         (md_atof): Handle VFP-format doubles.
3996         (md_parse_option): Handle VFP command-line options.
3997         (md_show_usage): Display VFP command-line options.
3998
3999 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
4000
4001         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4002         various command line options.
4003
4004 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
4005
4006         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4007         vtinherit relocs.
4008         (xstormy16_md_apply_fix3): Do not return a value.
4009
4010 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
4011
4012         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4013         the -EL/-EB option that matches the target's endianness.
4014         (md_parse_option): Likewise.
4015
4016 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
4017
4018         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4019         is not dependent on ARM_BI_ENDIAN.
4020
4021 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
4022
4023         * tc-arm.c (all error messages): Normalize capitalization of messages.
4024
4025         * tc-arm.h (md_operand): Delete define.
4026         * tc-arm.c (in_my_get_expression): New static variable.
4027         (my_get_expression): Set and clear it.
4028         (md_operand): New function.  If called from my_get_expression
4029         put the error in inst.error.
4030         (output_inst): Now takes argument of instruction being assembled.
4031         Print it out with any error message.
4032         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4033         with '=' syntax.
4034         (end_of_line): Don't update inst.error if it is already set.
4035
4036 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
4037
4038         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4039         op that can be translated into a mvn instruction.
4040
4041 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
4042
4043         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4044         setting default md.flags.
4045         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4046         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4047         * gas/config/tc-ia64.c (setup_unwind_header): Add support
4048         for 32 bit unwind info blocks.
4049         (generate_unwind_image): Add support for different types
4050         of unwind images (32 bits and/or big-endian).
4051         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4052         (ia64_target_format): Add support for hpux target formats.
4053         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4054         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4055         SHT_FINI_ARRAY elf section types.
4056
4057 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
4058
4059         * tc-arm.c (struct reg_entry): Move before prototypes.
4060         (int_register, cp_register, fp_register): Delete.
4061         (reg_table): Delete.  Replaced with ...
4062         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4063         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4064         (mav_dspsc_table): ... one table per register set.
4065         (arm_reg_hsh): Delete.
4066         (struct reg_map): New structure.
4067         (all_reg_maps): New array.
4068         (enum arm_reg_type): New enums.
4069         (build_reg_hsh): New function.
4070         (insert_reg_alias): Use hash table passed by caller.  Adjust all
4071         callers.
4072         (create_register_alias): New function, split out from ...
4073         (md_assemble): ... here.
4074         (md_begin): Build new register hash tables.
4075         (arm_reg_parse): New argument for the hash table to search.  Adjust all
4076         callers.
4077         (arm_reg_parse_any): New function.
4078         (co_proc_number): Look up the processor number in the processor hash
4079         table.
4080         (cirrus_regtype): Delete.
4081         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4082         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4083         (ARM_EXT_MAVERICKsc_register): Delete.
4084         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4085         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4086         functions.
4087         (do_c_triple_4, do_c_triple_5): Delete.
4088         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4089         (do_c_quad_6): Delete.
4090         (do_c_quad_6[ab]): New functions.
4091         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4092         arguments to use new register parsing methods.
4093         (cirrus_reg_required_here): Likewise.
4094         (insns): Reclassify cirrus maverick worker functions.
4095         (cirrus_valid_reg): Delete.
4096
4097 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
4098
4099         * configure.in (sh*le): Set cpu_type=sh and endian=little.
4100         (sh*-*-netbsdelf*): New target.
4101         * configure: Regenerate.
4102         * tc-sh.h: Update copyright years.
4103         (TARGET_FORMAT): Add version for TE_NetBSD.
4104
4105 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
4106
4107         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4108         negative.
4109
4110 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
4111
4112         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4113         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4114
4115 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
4116
4117         * tc-mips.c (mips_cprestore_valid): New flag.
4118         (mips_frame_reg_valid): New flag.
4119         (macro) [M_JAL_2]: Check both flags.
4120         [M_JAL_A]: Likewise.
4121         (s_cprestore): Set mips_cprestore_valid.
4122         (tc_get_register): If setting mips_frame_reg, set
4123         mips_frame_reg_valid and clear mips_cprestore_valid.
4124         (s_mips_ent): Clear both flags.
4125         (s_mips_end): Clear both flags.
4126
4127 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
4128
4129         * write.c (write_object_file): Make use of bfd_section_list_remove.
4130         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4131         * config/tc-mmix.c (mmix_frob_file): Likewise.
4132
4133 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
4134
4135         * configure.in (i386-*-netbsdelf*): Collapse target into...
4136         (i386-*-netbsd*): ...this.  Add support for x86-64.
4137         * configure: Regenerated.
4138
4139 2002-01-03  matthew green  <mrg@redhat.com>
4140
4141         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4142
4143 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
4144
4145         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4146         NULL frag link.
4147
4148 For older changes see ChangeLog-0001
4149 \f
4150 Local Variables:
4151 mode: change-log
4152 left-margin: 8
4153 fill-column: 74
4154 version-control: never
4155 End: