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