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