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