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