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