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