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