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