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