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