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