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