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