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