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