2002-12-03 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gas / ChangeLog
CommitLineData
61b5f74b
AM
12002-12-03 Alan Modra <amodra@bigpond.net.au>
2
6297c1fe
AM
3 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
4 (cons, s_align_bytes): Delete declaration.
5 (relax): Delete.
6 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
7 strings common.
8 (dot): Delete unused function.
9 (w65_expression): Remove unused arg.
10 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
11 call.
12 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
13 parse_exp call.
14 (get_specific): Prototype. Constify "struct opinfo *" arg and return
15 value.
16 (check): Remove unused function.
17 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
18 on unhandled switch case.
19 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
20 "opcode".
21 (tc_crawl_symbol_chain): Delete unused function.
22 (tc_headers_hook): Likewise.
23 (tc_Nout_fix_to_chars): Likewise.
24 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
25 (md_parse_option): Likewise.
26 (md_convert_frag): Likewise.
27 (tc_coff_symbol_emit_hook): Likewise.
28 (md_show_usage): Likewise.
29 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
30 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
31 (w65_expression): Declare.
32
33 * po/POTFILES.in: Regenerate.
34
61b5f74b
AM
35 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
36 and ARM_ADRL_IMMEDIATE.
37
fea17916
NC
382002-12-02 Nick Clifton <nickc@redhat.com>
39
40 * gasp.c: Delete. It has been deprecated.
41 * NEWS: Mention that gasp has been removed.
42 * Makefile.am: Remove references to gasp.
43 * makefile.vms: Likewise.
44 * mpw-make.sed: Likewise.
45 * Makeile.in: Regenerate.
46 * doc/gasp.texi: Delete.
47 * doc/Makefile.am: Remove references to gasp.texi.
48 * doc/Makefile.in: Regenerate.
49 * macro.c: Delete references to gasp.
50 Remove use of comment_char function parameter as it is no longer
51 needed.
52 * macro.h: Update prototypes to remove comment_char parameter.
53 Fix formatting.
54 * read.c (read_a_source_file, s_irp): Remove comment_char
55 parameter from invocation of functions in macro.c
56
dc59a897
HPN
572002-12-02 Hans-Peter Nilsson <hp@axis.com>
58
4c83186b 59 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
dc59a897 60
1910266d
SC
612002-12-01 Stephane Carrez <stcarrez@nerim.fr>
62
63 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
64 (tc_gen_reloc): Mark section param as not used.
65
c9e03e8b
SC
662002-12-01 Stephane Carrez <stcarrez@nerim.fr>
67
68 Fix Bug savannah/1825:
69 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
70 that are not pc-relative.
71 (m68hc11_relax_frag): Declare.
72
73 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
74 the offsetable indexed addressing modes (n,r).
75 (build_insn): Cleanup some locals.
76 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
77 relaxation of difference between two symbols of same section.
78 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
79 only when this is a PC-relative operand and the offset is not absolute.
80 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
81 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
82 be handled by m68hc11_relax_frag.
83
2f904664
SC
842002-12-01 Stephane Carrez <stcarrez@nerim.fr>
85
86 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
87 (32-bit int, 64-bit double).
88 (md_longopts): New options -mshort, -mlong, -mshort-double and
89 -mlong-double to control the ABI.
90 (md_show_usage): Update.
91 (md_parse_option): Handle new options.
92 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
93
0909233e
AM
942002-12-01 Nathan Sidwell <nathan@codesourcery.com>
95
96 * symbols.c (report_op_error): New function, broken out of ...
97 (resolve_symbol_value): ... here. Use for both monadic and dyadic
98 operators.
99
0174e383
KK
1002002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
101
102 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
103 for BFD_RELOC_32_PLT_PCREL.
104
b34976b6
AM
1052002-11-30 Alan Modra <amodra@bigpond.net.au>
106
107 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
108 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
109 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
110 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
111 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
112 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
113 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
114 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
115 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
116 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
117 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
118 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
119 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
120 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
121 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
122 TRUE/FALSE. Formatting.
123
143c8e19
NC
1242002-11-29 Nick Clifton <nickc@redhat.com>
125
126 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
127 assume a value of zero.
128 (do_bkpt): Likewise.
129
2bba4140
KK
1302002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
131
132 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
133 for TLS relocations.
134
7925dd68
JJ
1352002-11-29 Jakub Jelinek <jakub@redhat.com>
136
137 * config/tc-ia64.c (md_apply_fix3): Add default case.
138
00f7efb6
JJ
1392002-11-28 Jakub Jelinek <jakub@redhat.com>
140
141 * symbols.c (S_SET_THREAD_LOCAL): New function.
142 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
143 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
144 for TLS relocations.
145 * config/tc-ia64.c (md_apply_fix3): Likewise.
146 * config/tc-alpha.c (md_apply_fix3): Likewise.
147
381a1ab3
JJ
1482002-11-28 Jakub Jelinek <jakub@redhat.com>
149
150 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
151 to entsize.
152
a3b75434
DD
1532002-11-26 DJ Delorie <dj@redhat.com.
154
155 * dwarf2dbg.c (scale_addr_delta): New.
156 (size_inc_line_addr): Use it.
157 (emit_inc_line_addr): Use it.
158
fb2fd3e1
HPN
1592002-11-26 Hans-Peter Nilsson <hp@axis.com>
160
161 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
162 (md_assemble): Don't pass on branches to constants as relaxable.
163 Tweak comment.
164
da91385d
SS
1652002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
166
167 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
168
1d421636
DA
1692002-11-21 Randolph Chung <randolph@tausq.org>
170
171 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
172 only if they have default visibility.
173
33bf47a8
RH
1742002-11-21 Richard Henderson <rth@redhat.com>
175
176 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
177 S_IS_DEFINED test.
178
5f8075fa
AM
1792002-11-21 Alan Modra <amodra@bigpond.net.au>
180
181 * config/tc-mcore.c (mcore_pool_count): New function.
182 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
183
5ff37431
KD
1842002-11-20 Klee Dienes <kdienes@apple.com>
185
186 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
187 coalesce the name fields to use the same pointer.
188
189 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
190 the name fields to use the same pointer.
191 (get_specific): Check for opcodes with the same name using strcmp
192 as well as comparing the pointer.
193
5045ec7a
AM
1942002-11-20 Alan Modra <amodra@bigpond.net.au>
195
196 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
197 fx_subsy non-NULL.
198
20e420c2
RH
1992002-11-19 Richard Henderson <rth@redhat.com>
200
201 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
202 visibility portion of st_other.
203
a720f7bc
KD
2042002-11-19 Klee Dienes <kdienes@apple.com>
205
206 * config/tc-h8300.c (struct h8_instruction): New type, used to
207 wrap h8_opcodes with length, noperands, idx, and size fields
208 (computed at run-time).
209 (h8_instructions): New variable.
210 (md_begin): Allocate the storage for h8_instructions. Fill
211 h8_instructions with pointers to the appropriate opcode and the
212 correct value for the additional fields.
213 (clever_message): Update to use h8_instructions instead of
214 h8_opcodes.
215 (build_bytes): Ditto.
216 (get_specific): Ditto.
217 (md_assemble): Ditto.
bbce6ab7 218
0a00dd48
MS
2192002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
220
221 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
222 adjustments to symbols in merge sections.
223
81283cde
AM
2242002-11-19 Luke Deller <luked@cse.unsw.edu.au>
225
226 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
227
14e777e0
KB
2282002-11-18 Kevin Buettner <kevinb@redhat.com>
229
230 * dwarf2dbg.h (dwarf2_format): New enum.
231 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
232 (out_debug_line, out_debug_info): Add code for handling 64-bit
233 DWARF 2 formats.
234 * config/tc-mips.h (mips_dwarf2_format): Declare.
235 * config/tc-mips.c (mips_dwarf2_format): New function.
236 * doc/internals.texi (DWARF2_FORMAT): Document.
237
a816d1ed
AO
2382002-11-18 Alexandre Oliva <aoliva@redhat.com>
239
240 * config/tc-mips.c (s_change_section): Make sure input buffer
241 is not accessed past the end. Don't hand
242 obj_elf_change_section a pointer into the input buffer.
243
6b70243f
AO
2442002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
245
246 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
247 GOT_LO16 on NEWABI.
248
48c5eb8a
SS
2492002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
250
9c87d6c7
SS
251 * config/tc-tic4x.c: Fixed proper commandline
252 parameters. Added support for new opcode-list format. General
253 error message fixups.
254 (c4x_inst_add): Reject insn not for our CPU
255 (md_begin): Added matrix for setting the proper opcode-level &
256 device-flags according to cpu type and revision. Rewrite the
257 opcode hasher.
258 (c4x_operand_parse): Fix opcode bug
259 (c4x_operands_match): New function argument. Added dry-run
260 mechanism, that is optional error generation. Added constraint 'i'
261 and 'j'.
262 (c4x_insn_check): Added new function for post-verification of the
263 generated insn.
264 (md_assemble): Check all opcodes before croaking because of an
265 argument mismatch. Need this to be able to fully support
266 ortogonally arguments.
267 (md_parse_options): Revised commandprompt swicthes and added new
268 ones.
269 (md_show_usage): Complete rewrite of printout.
bbce6ab7 270
44287f60
SS
2712002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
272
273 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
274 (c4x_operands_match): Added check for 8-bits LDF insn. Give
275 warning when using constant direct bigger than 2^16. Add the new
276 arguments.
277
591d4689
CF
2782002-11-11 Christopher Faylor <cgf@redhat.com>
279
280 * configure.in: Use .gdbinit under Cygwin.
281 * configure: Regenerate.
282
1a89f85f
CF
2832002-11-11 Christopher Faylor <cgf@redhat.com>
284
285 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
286 STRICT_PE_FORMAT.
287
247b1fe6
SS
2882002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
289
290 * config/tc-tic4x.c: Declare as many functions as possible as
291 static. Maintenance on the general indenting. Removed unnecessary
292 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
293 function. Add support for new DSP, TMS320VC33. Fix bug for
294 converting flonum constants.
295 (c4x_do_align): Add proper align handling. Setup align to insert
bbce6ab7 296 NOP's.
247b1fe6
SS
297 (c4x_gen_to_words): Support for extended TI type floats.
298 (md_atof): Proper dumping of multiple-word littlenums.
299 (c4x_atof): Added support for extended TI type floats.
300 (c4x_stringer): Added new function to handle compact strings.
301 (c4x_emit_char): Added new function argument to handle custom
302 length inserts, like single-byte strings.
303 * config/tc-tic4x.h: Add proper align handling with NOP's.
98199d8f
SS
304 * Makefile.am: Added tic4x dependecy
305 * Makefile.in: Regenerate
247b1fe6 306
9df59bba
HPN
3072002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
308
309 * macro.c (get_any_string): Correct logic for not going beyond end
310 of in->ptr[].
311
32c27eed
HPN
3122002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
313
480c8d94
HPN
314 * config/tc-mmix.c (get_putget_operands): Mark both possible
315 operands as invalid at beginning.
316
32c27eed
HPN
317 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
318 Initialize target of fixup to zero.
319
78e1bb40
AO
3202002-11-07 Alexandre Oliva <aoliva@redhat.com>
321
322 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
323 NEWABI, but we should still emit HI16_S for non-PIC n32.
324
66ba4c77
RH
3252002-11-06 Richard Henderson <rth@redhat.com>
326
327 * config/tc-alpha.c (alpha_validate_fix): Move code ...
328 (alpha_fix_adjustable): ... here.
329 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
330
bbce6ab7 3312002-11-07 Eric Kohl <ekohl@rz-online.de>
c9e38879
NC
332
333 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
334 of a label.
335
aa3d8fdf
L
3362002-11-05 H.J. Lu <hjl@gnu.org>
337
338 * config/tc-mips.c (support_64bit_objects): Check *l before it
339 is freed.
340
e96c5464
NC
3412002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
342
343 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
344 SEC_LOAD flags for sections marked as 's'.
345
4d0b3220
AM
3462002-11-01 Alan Modra <amodra@bigpond.net.au>
347
4f3cafa2
AM
348 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
349 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
350 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
351 default.
352
4d0b3220
AM
353 * dep-in.sed: Fix typo.
354
54847c76
DJ
3552002-10-30 Daniel Jacobowitz <drow@mvista.com>
356
357 * configure.in: Update ARM CPU patterns.
358 * configure: Regenerated.
359
3d82a647
DJ
3602002-10-29 Daniel Jacobowitz <drow@mvista.com>
361
362 * itbl-lex.l: Use #include <> for generated headers.
363 * itbl-ops.c: Likewise.
364
b1744eab
DJ
3652002-10-28 Daniel Jacobowitz <drow@mvista.com>
366
367 * doc/gasp.texi: Fix typo in deprecation note.
368
8df7094c
NC
3692002-10-23 Nick Clifton <nickc@redhat.com>
370
371 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
372 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
373
3a99b990
HPN
3742002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
375
1cd2bb72 376 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3a99b990
HPN
377 (tc_frob_file_before_adjust): Don't define.
378 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
379 function.
380 (mmix_frob_file_before_adjust): Remove ineffective function.
381
1c971160
HPN
3822002-10-23 Hans-Peter Nilsson <hp@axis.com>
383
384 * config/tc-cris.c (SIMPLE_EXPR): New macro.
385 (cris_relax_frag): New function.
386 (md_estimate_size_before_relax) <case ENCODE_RELAX
387 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
388 expressions that will become absolute expressions to relaxation.
389 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
390 STATE_WORD)>: Expect only absolute expressions. Use the symbol
391 value, not distance to symbol.
392 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
393 Ditto. Correct placement of fixup.
394 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
395 (gen_bdap): Ditto.
396 * config/tc-cris.h (cris_relax_frag): Declare.
397 (md_relax_frag): Define.
398
7ed1d346
AM
3992002-10-22 Alan Modra <amodra@bigpond.net.au>
400
401 * config/obj-elf.c (special_sections): Use correct types for init
402 array sections.
403 (obj_elf_change_section): Don't mess with init array section type.
404
631cb423
RS
4052002-10-21 Richard Sandiford <rsandifo@redhat.com>
406
407 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
408 for relocs against symbols in a merged section.
409
6047c971
AO
4102002-10-18 Alexandre Oliva <aoliva@redhat.com>
411
412 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
413 table as register names.
414
75504fed
MS
4152002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
416
417 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
418 for option -m31.
419
02000999
AM
4202002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
421
422 * expr.c (operand): Add support for n.nn flonums.
423
311797d5
AM
4242002-10-17 Johannes Stezenbach <js@convergence.de>
425
426 * itbl-parse.y (entry): Provide empty action.
427
4001ad8c
AM
4282002-10-16 Alan Modra <amodra@bigpond.net.au>
429
430 * configure.in (BFDVER_H): Set and subst.
431 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
432 * Makefile.am: Run "make dep-am".
433 (BFDVER_H): Define.
434 * configure: Regenerate.
435 * Makefile.in: Regenerate.
436 * doc/Makefile.in: Regenerate.
437
3ca4bdc3
AM
4382002-10-15 Alan Modra <amodra@bigpond.net.au>
439
440 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
441 (MD_APPLY_SYM_VALUE): Define for PE too.
442
b95d15c6
AM
4432002-10-14 Alan Modra <amodra@bigpond.net.au>
444
445 * Makefile.am: Run "make dep-am".
446 (CPU_OBJ_VALID): sh64 coff is invalid.
447 * as.c: #include "bfdver.h".
448 * Makefile.in: Regenerate.
449 * config.in: Regenerate.
450
ec266e19
AM
4512002-10-14 Momchil Velikov <velco@fadata.bg>
452
453 * config/tc-v850.c (CHECK_): Remove token pasting operator.
454
8f6847cb
RS
4552002-10-14 Richard Sandiford <rsandifo@redhat.com>
456
457 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
458 * configure: Regenerate.
459
ec266e19
AM
4602002-10-13 Eric Christopher <echristo@redhat.com>
461 Alexandre Oliva <aoliva@redhat.com>
10181a0d
AO
462
463 * config/tc-mips.c (s_gpdword): New function.
464 (mips_pseudo_table): Add .gpdword.
465 (mips_need_elf_addend_fixup): never for NEWABI.
466 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
467 GPREL32 as done.
468 (s_cpadd): Generate .cpadd on NEWABI.
469
49181a6a
AM
4702002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
471
472 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
473
4a6a3df4
AO
4742002-10-12 Alexandre Oliva <aoliva@redhat.com>
475
476 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
477 (md_relax_frag): Adjust macro.
478 * config/tc-mips.c (mips_relax_branch): New variable.
479 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
480 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
481 (RELAX_MIPS16_P): Adjust.
482 (append_insn): Emit branch to non-constant in a frag_var if
483 branch-relaxation is desirable and possible.
484 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
485 (OPTION_ELF_BASE): Adjust.
486 (md_parse_option): Handle new options.
487 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
488 branch relaxation.
489 (relaxed_branch_length): New function.
490 (md_estimate_size_before_relax): Handle branch frags.
491 (mips_relax_frag): Likewise.
492 (md_convert_frag): Handle branch frags. Warn if branch is
493 relaxed.
494
9efb3b7b
KK
4952002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
496
497 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
498 emitted.
499 (md_apply_fix3): Add TLS relocs.
500 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
501 @DTPOFF.
502
3e02c1cc
AM
5032002-10-11 Michel Six <msix@ccr.jussieu.fr>
504 Alan Modra <amodra@bigpond.net.au>
505
506 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
507 (md_estimate_size_before_relax): Likewise for 8 bit branches.
508
ac62e7a3
JR
509Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
510
511 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
512 inside loop.
513
f61dfddf
SC
5142002-10-09 Richard Shann <richard.shann@superh.com>
515 Stephen Clarke <stephen.clarke@superh.com>
516
517 * config/tc-sh64.c (sh64_target_format): Add support for sh64
518 Linux environment.
519
28602ebf
KK
5202002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
521
522 * contig/tc-sh.c (sh_local_pcrel): New.
523 (sh_force_relocation): Use sh_local_pcrel.
524 (md_pcrel_from_section): Check the relocation type whether it
525 should be resolved locally. Use S_FORCE_RELOC.
526
97724570
AM
5272002-10-01 Alan Modra <amodra@bigpond.net.au>
528
529 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
530 (TC_FORCE_RELOCATION): Tidy arg.
531
60b63b72 5322002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3e02c1cc
AM
533 Ken Raeburn <raeburn@cygnus.com>
534 Aldy Hernandez <aldyh@redhat.com>
535 DJ Delorie <dj@redhat.com>
536 Michael Meissner <meissner@redhat.com>
537 Eric Christopher <echristo@redhat.com>
538 Richard Sandiford <rsandifo@redhat.com>
60b63b72
RS
539
540 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
541 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
542 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
543 (hilo_interlocks): True for CPU_VR5500.
544 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
545 (mips_fix_vr4122_bugs): New.
546 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
547 (mips_emit_delays): Likewise.
548 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
549 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
550 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
551 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
552 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
553 (OPTION_ELF_BASE): Bump.
554 (md_parse_option): Handle the new options.
555 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
556 vr5400 and vr5500.
557
7a49a8c2
L
5582002-09-29 H.J. Lu <hjl@gnu.org>
559
560 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
561 twice if howto->pcrel_offset is true.
562
04ff5cb5 5632002-09-28 Matt Thomas <matt@3am-software.com>
3e02c1cc 564 Jason Thorpe <thorpej@wasabisystems.com>
04ff5cb5
JT
565
566 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
567 convert undefined references to GOT32/PLT32 if PIC code is
568 requested. Fix comment.
569
8ba4dac0
DJ
5702002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
571
572 * config/tc-sh.c (sh_force_relocation): Return 0 for
573 some PC relative relocations when not relaxing.
574
bffbf940
JJ
5752002-09-26 Jakub Jelinek <jakub@redhat.com>
576
577 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
578 Define them if not BFD_ASSEMBLER.
579 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
580 @tlsld.
581 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
582 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
583 (tc_gen_reloc): Handle x86-64 TLS relocs.
584
87733541
AM
5852002-09-27 Alan Modra <amodra@bigpond.net.au>
586
587 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
588 fixups to current or absolute section.
589
825487fa
JW
5902002-09-26 Jim Wilson <wilson@redhat.com>
591
592 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
593 and frag_more.
594
3396de36
TS
5952002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
596
597 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
598 capable configuration.
599 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
600 generation.
601 (mips_ip): Likewise.
602
f3c0ec86
TS
6032002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
604
605 * config/tc-mips.c (append_insn): Fix jump overflow check.
606
52271982
AM
6072002-09-24 Alan Modra <amodra@bigpond.net.au>
608
609 * config/tc-i386.c (process_operands): Warn about "lea" segment
610 overrides.
611
823882f5
DD
6122002-09-22 Mark Elbrecht <snowball3@softhome.net>
613
614 * write.c: Delete set_segment_vma and prototype. Update all callers.
615
6539b54b
AM
6162002-09-21 Alan Modra <amodra@bigpond.net.au>
617
618 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
619 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
620 Rename "fseg" to "sym_seg".
621 * Makefile.am: Run "make dep-am".
622 * Makefile.in: Regenerate.
623 * doc/Makefile.in: Regenerate.
624
9f269a72
NC
6252002-09-20 Nick Clifton <nickc@redhat.com>
626
627 * symbols.c (colon): Do not allow symbols to be created in the
7cf10893
NC
628 absolute section if WORKING_DOT_WORD is not defined and
629 new_broken_words would require a new frag to be created.
9f269a72 630
26346241
AM
6312002-09-20 Alan Modra <amodra@bigpond.net.au>
632
f6cf69d7
AM
633 * expr.c (expr): Simplify foo-foo here.
634 (clean_up_expression): Remove O_subtract code.
635
26346241
AM
636 * write.h (struct fix): Add fx_dot_value.
637 (dot_value): Declare.
638 * write.c (dot_value): New var.
639 (fix_new_internal): Save dot_value as fx_dot_value.
f6cf69d7 640 (fixup_segment): Adjust fx_offset using fx_dot_value.
26346241
AM
641 * expr.c (expr): Update dot_value.
642
37e55690
JJ
6432002-09-19 Jakub Jelinek <jakub@redhat.com>
644
645 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
646 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
647 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
648 if not defined.
649 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
650 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
651 BFD_RELOC_386_TLS_GOTIE.
652
021c2b5e
RH
6532002-09-19 Richard Henderson <rth@redhat.com>
654
655 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
656 branch type relocs.
657 (alpha_force_relocation): Don't special-case branch type relocs.
658
4f2a7c9e
NC
6592002-09-19 Nick Clifton <nickc@redhat.com>
660
661 * config/tc-m68k.c (select_control_regs): Handle situation where
662 architecture has not yet been selected.
663
885add95
CD
6642002-09-18 Chris Demetriou <cgd@broadcom.com>
665
666 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
667 (IS_SEXT_16BIT_NUM): New macro.
668 (macro_build_ldst_constoffset): New function, to build a set of
669 instructions to do a load or store from a constant offset relative
670 to a given register.
671 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
672 .cprestore pseudo-op.
673
65551fa4
CD
6742002-09-18 Chris Demetriou <cgd@broadcom.com>
675
676 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
677
4cf0dd0d
TS
6782002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
679
680 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
681
ed6fb7bd
SC
6822002-09-17 Stan Cox <scox@redhat.com>
683
684 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
685 (macro): Likewise for la. Likewise for ld.
686 (mips_after_parse_args): Make -xgot optional, not the default.
687 (md_apply_fix3): Allow composite relocation to set up gp.
688 (tc_gen_reloc): Allow relaxing for newabi.
689 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
690 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
691
6189168b
NC
6922002-09-17 Nick Clifton <nickc@redhat.com>
693
694 * config/tc-arm.c (md_apply_fix3): Note that an implemented
695 BFD_RELOC_ARM_IMMEDIATE has been done.
f6cf69d7 696 (tc_gen_reloc): Do not issue reloc number of unimplemented
6189168b
NC
697 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
698 their name is already in the error message - plus remove them
699 from the default case.
700
701 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
702 behavior of instructions.
703
75d12d11
AM
7042002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
705
706 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
707 Convert functions to K&R format.
708
7ed4a06a
TS
7092002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
710
711 * config/tc-mips.c (pdr_seg): Define only for ELF.
712 (s_change_section): Remove unused variable. Don't use for nonELF.
713
e8cf2216
TS
7142002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
715
716 * config/obj-elf.c (obj_elf_change_section): Move prototype to
717 obj-elf.h
718 * config/obj-elf.h (obj_elf_change_section): Likewise.
719
48b91938
RH
7202002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
721
722 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
723 (out_debug_info): Likewise.
724
4ada7262
DB
7252002-09-16 Bruno Haible <bruno@clisp.org>
726
727 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
728 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
729 * config/tc-i386.c (i386_target_format): Likewise.
730 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
731 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
732
7fe9cf6b
NC
7332002-09-13 Nick Clifton <nickc@redhat.com>
734
735 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
736 when deciding if any operands have been skipped.
737
e09f4395
NC
7382002-09-11 Nick Clifton <nickc@redhat.com>
739
004d9caf
NC
740 * NEWS: New TI port supports both C4x and C3x series of DSPs.
741
e09f4395
NC
742 * po/tr.po: Updated Turkish translation.
743
9dfe7b39
JJ
7442002-09-11 Jakub Jelinek <jakub@redhat.com>
745
746 * config/tc-i386.c (md_apply_fix3): Allow addend for
747 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
748 BFD_RELOC_386_TLS_LE_32.
749
502b19cb
JL
7502002-09-05 Jeff Law <law@redhat.com>
751
f6cf69d7
AM
752 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
753 marker relocations such as ENTRY/EXIT.
754 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
755 to both OBJ_ELF and OBJ_SOM.
502b19cb 756
a161fe53
AM
7572002-09-05 Alan Modra <amodra@bigpond.net.au>
758
759 * doc/internals.texi (md_apply_fix3): Expand.
760 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
761 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
762 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
763 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
764 EXTERN_FORCE_RELOC): Document.
765 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
766 * as.h: Don't include struc-symbol.h for arc.
767 (IS_ELF): Define.
768 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
769 subtract absolute symbol.
770 * obj.h (struct format_ops): Add frob_file_before_fix.
771 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
772 * symbols.c (S_FORCE_RELOC): New function.
773 * symbols.h (S_FORCE_RELOC): Declare.
774 * write.c (TC_FORCE_RELOCATION): Change default.
775 (TC_FORCE_RELOCATION_ABS): Define.
776 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
777 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
778 (TC_FORCE_RELOCATION_SECTION): Don't define.
779 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
780 (TC_FORCE_RELOCATION_SUB_ABS): Define.
781 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
782 (TC_VALIDATE_FIX_SUB): Define.
783 (TC_FIX_ADJUSTABLE): Don't define.
784 (MD_APPLY_SYM_VALUE): Define this instead.
785 (abs_section_sym): New variable.
786 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
787 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
788 Don't put the absolute section sym on fixups here.
789 (fix_segment): New function.
790 (write_relocs): Don't call fixup_segment from here.
791 (write_object_file): Instead call tc_frob_file_before_fix,
792 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
793 Don't output the absolute section symbol.
794 (fixup_segment): Rewrite.
795 * write.h (abs_section_sym): Declare.
796 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
797 obj_aout_frob_file.
798 (aout_format_ops): Adjust to suit.
799 * config/obj-aout.h (obj_frob_file): Don't define.
800 (obj_frob_file_before_fix): Define.
801 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
802 (S_FORCE_RELOC): Define.
803 * config/obj-bout.h (S_FORCE_RELOC): Define.
804 * config/obj-coff.c (coff_format_ops): Init new field.
805 * config/obj-coff.h: Formatting fixes.
806 (obj_sec_sym_ok_for_reloc): Define.
807 (S_FORCE_RELOC): Define.
808 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
809 (ecoff_frob_file): .. from here.
810 (ecoff_format_ops): Add new function.
811 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
812 (obj_frob_file_before_fix): Define.
813 * config/obj-elf.c (elf_format_ops): Init new field.
814 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
815 * config/obj-ieee.h: Formatting fixes.
816 (S_FORCE_RELOC): Define.
817 * config/obj-multi.h (obj_frob_file_before_fix): Define.
818 * config/obj-vms.h (S_FORCE_RELOC): Define.
819 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
820 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
821 for BFD_RELOC_32 and BFD_RELOC_64.
822 (alpha_fix_adjustable): Remove extern and weak tests.
823 (alpha_before_fix): Rename from alpha_adjust_symtab.
824 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
825 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
826 (TC_VALIDATE_FIX): Tweak param name.
827 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
828 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
829 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
830 (MD_APPLY_SYM_VALUE): Define.
831 (tc_adjust_symtab): Don't define.
832 (alpha_adjust_symtab): Don't declare.
833 (tc_frob_file_before_fix): Define.
834 (alpha_before_fix): Declare.
835 (TC_INIT_FIX_DATA): Tweak param names.
836 * config/tc-arc.c: Include "struc-symbol.h".
837 (md_pcrel_from): Remove undefined sym fudge.
838 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
839 Don't set fx_addnumber.
840 (tc_gen_reloc): Remove spurious fx_addnumber comment.
841 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
842 (EXTERN_FORCE_RELOC): Define.
843 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
844 (tc_gen_reloc): Fudge ARM_GOTPC addend.
845 (arm_validate_fix): Return void.
846 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
847 Add plt and got reloc tests.
848 (arm_force_relocation): Call S_FORCE_RELOC.
849 * config/tc-arm.h (struct fix): Forward declare.
850 (TC_VALIDATE_FIX): No longer set add_symbolP.
851 (arm_validate_fix): Adjust declaration.
852 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
853 (TC_FORCE_RELOCATION): Tweak param name.
854 (TC_INIT_FIX_DATA): Likewise.
855 (obj_fix_adjustable): Don't define.
856 (tc_fix_adjustable): Call arm_fix_adjustable.
857 (TC_FIX_ADJUSTABLE): Don't define.
858 (MD_APPLY_SYM_VALUE): Define.
859 (EXTERN_FORCE_RELOC): Define.
860 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
861 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
862 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
863 Remove *valP fudges and code to subtract abs sym. Don't set
864 fx_addnumber.
865 * config/tc-avr.h: Formatting.
866 (EXTERN_FORCE_RELOC): Define.
867 (MD_APPLY_SYM_VALUE): Define.
868 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
869 (md_apply_fix3): Remove code to subtract abs sym.
870 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
871 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
872 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
873 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
874 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
875 (tc_fix_adjustable): Remove extern, weak tests.
876 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
877 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
878 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
879 and code to subtract abs sym.
880 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
881 (d10v_force_relocation): Call S_FORCE_RELOC.
882 * config/tc-d10v.h: Don't include write.h.
883 (struct fix): Instead, forward declare.
884 (MD_PCREL_FROM_SECTION): Tweak param names.
885 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
886 (d10v_fix_adjustable): Likewise.
887 (obj_fix_adjustable): Don't define.
888 (tc_fix_adjustable): Define.
889 (TC_FORCE_RELOCATION): Tweak param name.
890 (MD_APPLY_SYM_VALUE): Define.
891 (EXTERN_FORCE_RELOC): Define.
892 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
893 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
894 and code to subtract abs sym.
895 * config/tc-d30v.h: Don't include write.h.
896 (struct fix): Instead, forward declare.
897 (MD_PCREL_FROM_SECTION): Tweak param names.
898 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
899 (MD_APPLY_SYM_VALUE): Define.
900 (EXTERN_FORCE_RELOC): Define.
901 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
902 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
903 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
904 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
905 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
906 Don't use fx_addnumber.
907 * config/tc-dlx.h: Don't include write.h.
908 (md_convert_frag): We're not alpha twice over.
909 (EXTERN_FORCE_RELOC): Define.
910 (obj_fix_adjustable): Don't define.
911 (tc_fix_adjustable): Define.
912 (TC_FIX_ADJUSTABLE): Don't define.
913 (MD_APPLY_SYM_VALUE): Define.
914 (LOCAL_LABELS_DOLLAR): Undef always.
915 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
916 (fr30_fix_adjustable): Remove extern, weak tests.
917 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
918 (obj_fix_adjustable): Don't define.
919 (tc_fix_adjustable): Define.
920 (struct fix): Forward declare.
921 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
922 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
923 (frv_fix_adjustable): Don't do extern, weak tests.
924 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
925 (TC_FIX_ADJUSTABLE): Don't define.
926 (obj_fix_adjustable): Don't define.
927 (tc_fix_adjustable): Define.
928 (struct fix): Forward declare.
929 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
930 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
931 * config/tc-h8300.h (struct fix): Forward declare.
932 (EXTERN_FORCE_RELOC): Define.
933 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
934 (hppa_fix_adjustable): Don't test extern or weak. Don't
935 symbol_mark_used_in_reloc.
936 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
937 and S_IS_WEAK.
938 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
939 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
940 (TC_FORCE_RELOCATION_SECTION): Don't define.
941 (MD_APPLY_SYM_VALUE): Define.
942 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
943 to subtract abs sym.
944 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
945 (MD_APPLY_SYM_VALUE): Define.
946 (MD_PCREL_FROM_SECTION): Tweak param name.
947 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
948 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
949 (i386_force_relocation): New function.
950 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
951 (TC_VALIDATE_FIX): Likewise.
952 (TC_FIX_ADJUSTABLE): Don't define.
953 (MD_APPLY_SYM_VALUE): Define.
954 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
955 (i386_force_relocation): Declare.
956 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
957 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
958 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
959 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
960 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
961 (EXTERN_FORCE_RELOC): Define.
962 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
963 (md_apply_fix3): Don't cast valP pointer type. Move code here from
964 old fixup_segment. No need to test fx_pcrel before setting fx_done.
965 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
966 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
967 Remove #if 0 code. Invert return boolean.
968 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
969 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
970 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
971 (tc_coff_sizemachdep): Prototype.
972 (i960_handle_align): Likewise.
973 (i960_validate_fix): Adjust declaration.
974 (reloc_callj): Likewise.
975 (EXTERN_FORCE_RELOC): Define.
976 (TC_FORCE_RELOCATION_SUB_SAME): Define.
977 (TC_FORCE_RELOCATION_ABS): Define.
978 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
979 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
980 (TC_FIX_ADJUSTABLE): Don't define.
981 (MD_APPLY_SYM_VALUE): Define.
982 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
983 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
984 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
985 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
986 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
987 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
988 (MD_APPLY_SYM_VALUE): Define.
989 (EXTERN_FORCE_RELOC): Define.
990 (TC_FORCE_RELOCATION): Tweak param name.
991 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
992 (m32r_fix_adjustable): Don't test extern, weak.
993 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
994 (MD_APPLY_SYM_VALUE): Define.
995 (obj_fix_adjustable): Don't define.
996 (tc_fix_adjustable): Define.
997 (tc_frob_file): Don't define.
998 (tc_frob_file_before_fix): Define.
999 (EXTERN_FORCE_RELOC): Define.
1000 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1001 BFD_RELOC_VTABLE_ENTRY address.
1002 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1003 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1004 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1005 Remove duplicated fx_done code.
1006 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1007 (EXTERN_FORCE_RELOC): Define.
1008 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1009 relaxable_symbol.
1010 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1011 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
a161fe53
AM
1012 (TC_FIX_ADJUSTABLE): Don't define.
1013 (EXTERN_FORCE_RELOC): Define.
1014 (MD_APPLY_SYM_VALUE): Define.
1015 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1016 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1017 Remove fx_addsy tests.
1018 (mcore_force_relocation): Call S_FORCE_RELOC.
1019 (mcore_fix_adjustable): Don't test fx_addsy.
1020 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1021 (EXTERN_FORCE_RELOC): Define.
1022 (obj_fix_adjustable): Don't define.
1023 (tc_fix_adjustable): Define.
1024 (MD_APPLY_SYM_VALUE): Define.
1025 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1026 (mips_pic): No longer static.
1027 (mips_force_relocation): Call S_FORCE_RELOC.
1028 (mips_fix_adjustable): Remove extern, weak tests.
1029 * config/tc-mips.h (enum mips_pic_level): Declare.
1030 (mips_pic): Declare.
1031 (tc_frob_file): Don't define.
1032 (tc_frob_file_before_fix): Define this instead.
1033 (EXTERN_FORCE_RELOC): Define.
1034 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1035 with reg_section tests. Set fx_done instead of calling
1036 symbol_clear_used_in_reloc on bad relocs.
1037 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1038 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1039 (mmix_adjust_symtab): Simplify list handling. Abort on any
1040 nonsense.
1041 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1042 BFD_RELOC_MMIX_LOCAL.
1043 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1044 (EXTERN_FORCE_RELOC): Define.
1045 (MD_PCREL_FROM_SECTION): Tweak param name.
1046 (tc_frob_file): Don't define.
1047 (tc_frob_file_before_fix): Define this instead.
1048 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1049 Remove SEC_CODE checks.
1050 (mn10300_fix_adjustable): Remove extern and weak tests.
1051 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1052 (TC_FORCE_RELOCATION): Tweak param name.
1053 (obj_fix_adjustable): Don't define.
1054 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1055 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1056 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1057 (openrisc_fix_adjustable): Don't test fx_addsy.
1058 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1059 (obj_fix_adjustable): Don't define.
1060 (tc_fix_adjustable): Define this instead.
1061 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1062 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1063 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1064 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1065 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1066 (MD_APPLY_SYM_VALUE): Define.
1067 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1068 Don't subtract symbol value.
1069 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1070 (EXTERN_FORCE_RELOC): Define.
1071 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1072 (MD_APPLY_SYM_VALUE): Define.
1073 (obj_fix_adjustable): Don't define.
1074 (tc_fix_adjustable): Define this instead.
1075 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1076 section sym.
1077 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1078 (ppc_force_relocation <elf version>): New.
1079 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1080 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1081 comments. Don't subtract fx_subsy as that is already done.
1082 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1083 (MD_PCREL_FROM_SECTION): Likewise.
1084 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1085 ppc_force_relocation.
1086 (TC_FORCE_RELOCATION_SECTION): Delete.
1087 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1088 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1089 (MD_APPLY_SYM_VALUE): Define.
1090 * config/tc-s390.c: #include "dwarf2dbg.h".
1091 (s390_insn): Remove excess parens.
1092 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1093 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1094 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1095 non-NULL. Don't subtract off fx_addsy value.
1096 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1097 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1098 (TC_FIX_ADJUSTABLE): Don't define.
1099 (MD_APPLY_SYM_VALUE): Define.
1100 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1101 (SWITCH_TABLE): Likewise.
1102 (sh_force_relocation): Call S_FORCE_RELOC.
1103 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1104 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1105 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1106 fx_addnumber is zero on entry. Save val in fx_addnumber.
1107 (tc_gen_reloc): Don't subtract fx_subsy.
1108 * config/tc-sh.h (struct fix): Move.
1109 (obj_fix_adjustable): Don't define.
1110 (tc_fix_adjustable): Define this instead.
1111 (TC_FIX_ADJUSTABLE): Don't define.
1112 (MD_APPLY_SYM_VALUE): Define.
1113 (SWITCH_TABLE_CONS): Define.
1114 (SWITCH_TABLE): Define.
1115 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1116 (TC_VALIDATE_FIX_SUB): Define.
1117 (MD_PCREL_FROM_SECTION): Tweak param name.
1118 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1119 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1120 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1121 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1122 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1123 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1124 (TC_VALIDATE_FIX_SUB): Define.
1125 (MD_PCREL_FROM_SECTION): Tweak param name.
1126 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1127 (tc_gen_reloc): Use S_FORCE_RELOC.
1128 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1129 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1130 (TC_FORCE_RELOCATION_ABS): Define this instead.
1131 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1132 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1133 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1134 (MD_APPLY_SYM_VALUE): Define.
1135 (TC_FIX_DATA_PRINT): Tweak param name.
1136 * config/tc-tic30.c (USE_STDOUT): Don't define.
1137 (md_parse_option): Remove stupid debug code.
1138 (tc_gen_reloc): Don't use fx_addnumber.
1139 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1140 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1141 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1142 (tc_fix_adjustable): Define this instead.
1143 (TC_FIX_ADJUSTABLE): Don't define.
1144 (MD_APPLY_SYM_VALUE): Define this instead.
1145 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1146 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1147 (TC_FIX_ADJUSTABLE): Don't define.
1148 (MD_APPLY_SYM_VALUE): Define this instead.
1149 (tc_fix_adjustable): Remove extern and weak tests.
1150 * config/tc-w65.h (struct fix): Forward declare.
1151 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1152 S_FORCE_RELOC.
1153 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1154 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1155 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1156 absolute symbol.
1157 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1158 (MD_APPLY_SYM_VALUE): Define.
1159 (obj_fix_adjustable): Don't define.
1160 (tc_fix_adjustable): Define this instead.
1161 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1162
2a98c3a6
AM
11632002-09-04 Alan Modra <amodra@bigpond.net.au>
1164
b782de16
AM
1165 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1166 (ppc_fix_adjustable <coff version>): Cleanup.
1167
2a98c3a6
AM
1168 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1169 (md_parse_option): No -a64 without BFD64.
1170 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1171 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1172
341026c1
NC
11732002-09-04 Nick Clifton <nickc@redhat.com>
1174
1175 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1176 instructions into the hash table if the target cpu is the BookE32.
1177
a6bd2a4f
HPN
11782002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1179
1180 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1181 ATTRIBUTE_UNUSED.
1182
86aba9db
NC
11832000-08-28 Catherine Moore <clm@redhat.com>
1184
1185 * tc-v850.c (v850_relax): Declare.
1186 (v850_longcode): New routine.
1187 (v850_handle_align): New routine.
1188 (md_pseudo_table): Add longcall and longjump.
1189 (md_parse_option): Check for relax option.
1190 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1191 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1192 (md_apply_fix3): Likewise.
1193 (v850_force_relocation): Likewise.
1194 (v850_comm): Change the current section.
e4512afa 1195 (md_assemble): Ensure that the correct value is put in the
86aba9db
NC
1196 fixup.
1197 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1198 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
e4512afa 1199 Remove redundant v850ea support.
86aba9db
NC
1200 * tc-v850.h (HANDLE_ALIGN): Define.
1201 (v850_handle_align): Declare.
1202 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1203
026df7c5
NC
12042002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1205
1206 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1207 * configure: Regenerate.
1208 * NEWS: Mention new port.
1209
12102002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1211
1212 * config/obj-coff.c: Add sdef definition.
1213 * config/obj-coff.h: Add tic4x include file and set
1214 target format.
1215 * config/tc-tic4x.c: New file.
1216 * config/tc-tic4x.h: New file.
1217
4252e537
AM
12182002-08-28 Alan Modra <amodra@bigpond.net.au>
1219
df44284e
AM
1220 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1221 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1222 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1223 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1224 (RELOC_ENUM): Define.
1225 (fix_new_internal): Use RELOC_ENUM.
1226 (fix_new, fix_new_exp): Likewise.
1227 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1228 Replace gotos with continue.
1229 (write_relocs): Formatting. Avoid symbol loops in
1230 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1231 errors, and error number in other cases.
1232 (fixup_segment): Remove param names from prototype. Rename
1233 "this_segment_type" to "this_segment". Update linkrelax comment.
1234 Remove "size, "place" and "where" local vars. Formatting. Update
1235 "no symbol" comment. Remove #if 0 and #if 1.
1236
4252e537
AM
1237 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1238
70658493
AM
12392002-08-27 Alan Modra <amodra@bigpond.net.au>
1240
1241 * dwarf2dbg.c: Always include dwarf2dbg.h.
1242 (dwarf2_directive_file): Adjust dummy version args.
1243 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1244 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1245 when symbol values differ.
1246 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1247 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1248 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1249
a2199cc1
AM
12502002-08-26 Alan Modra <amodra@bigpond.net.au>
1251
1252 * config/tc-w65.c (md_section_align): Fix typo.
1253 (md_parse_option): Return 0, not 1.
1254
ececec60
NC
12552002-08-22 Nick Clifton <nickc@redhat.com>
1256
1257 * doc/as.texinfo (Section): Note that if '@' is a comment
1258 character then another symbol is used to prefix the section's
1259 type.
1260
14899840
NC
12612002-08-22 Christian Groessler <chris@groessler.org>
1262
1263 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1264 "case 0" case.
1265
ed71e111
NC
12662002-08-12 Graeme Peterson <gp@qnx.com>
1267
1268 * configure.in: Add support for sh-**-nto* target.
1269 * configure: Regenerate.
1270
dfe0d3fe
JL
12712002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1272
1273 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1274
dc1d03fc
EZ
12752002-08-21 Elena Zannoni <ezannoni@redhat.com>
1276
70658493
AM
1277 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1278 is ELF.
1279 (ppc_apuinfo_section_add): Define only if format is ELF.
1280 (md_assemble): Emit APUinfo section only if format is ELF.
1281 Fix formatting.
dc1d03fc 1282
9f1838ed
AM
12832002-08-21 Alan Modra <amodra@bigpond.net.au>
1284
70658493 1285 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
9f1838ed
AM
1286 * config/tc-frv.c: Likewise.
1287 * config/tc-hppa.c: Likewise.
1288 * config/tc-ia64.c: Likewise.
1289 * config/tc-ip2k.c: Likewise.
1290 * config/tc-m68hc11.c: Likewise.
1291 * config/tc-m68k.c: Likewise.
1292 * config/tc-mmix.c: Likewise.
1293 * config/tc-mn10300.c: Likewise.
1294 * config/tc-sh.c: Likewise.
1295 * config/tc-sparc.c: Likewise.
1296 * config/tc-v850.c: Likewise.
1297
483fc7cd
RS
12982002-08-20 Richard Sandiford <rsandifo@redhat.com>
1299
1300 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1301 by zero.
1302
6a0c61b7
EZ
13032002-08-19 Elena Zannoni <ezannoni@redhat.com>
1304
70658493 1305 From matthew green <mrg@redhat.com>
6a0c61b7 1306
70658493
AM
1307 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1308 PPC_OPCODE_PPC is, except for BookE architectures.
1309 (md_parse_option): Add support for -mspe.
1310 (md_show_usage): Add -mspe.
1311 (md_parse_option): Add support for -me500 and
1312 -me500x2 to generate code for Motorola e500 core complex.
1313 (md_show_usage): Add -me500 and -me500x2.
6a0c61b7 1314
70658493
AM
1315 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1316 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1317 PPC_APUINFO_BRLOCK): New macros.
6a0c61b7 1318
70658493
AM
1319 (ppc_cleanup): New function.
1320 (ppc_apuinfo_section_add): New function.
1321 (APUID): New macro.
1322 (md_assemble): Collect info and write the APUinfo section.
6a0c61b7 1323
70658493
AM
1324 * config/tc-ppc.h (md_cleanup): Define.
1325 (ppc_cleanup): Export.
1326 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
6a0c61b7 1327
cca86cc8
SC
13282002-08-17 Stan Cox <scox@redhat.com>
1329
1330 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1331 config/tc-mips.c (s_change_section): New function to support
1332 IRIX .section pseudo-op.
1333
50b15da2
NC
13342002-08-16 Nick Clifton <nickc@redhat.com>
1335
1336 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1337
f21f8242
AO
13382002-08-15 Alexandre Oliva <aoliva@redhat.com>
1339
1340 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1341 the fix-up against on the right frag.
1342 (s_cpsetup): Likewise. Parse third argument as expression, to
1343 handle global symbols and forward/backward labels correctly.
1344
11f45fb5
NC
13452002-08-14 Nick Clifton <nickc@redhat.com>
1346
8ac9ba6c
NC
1347 * read.c (stringer): Catch attempts to create strings in the abs
1348 section.
1349
11f45fb5
NC
1350 * config/tc-alpha.c: Fix compiling for COFF targets.
1351 Some minor formatting tidyups.
1352
e371935f
SC
13532002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1354
1355 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1356 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1357 according to the reloc.
1358 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1359 (TC_FORCE_RELOCATION): Define.
1360 (tc_m68hc11_force_relocation): Declare.
1361
1362 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1363 (s_m68hc11_relax): New function for relax group.
70658493 1364 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
e371935f
SC
1365 beginning of jump instruction.
1366 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1367 address computation.
1368 (tc-gen_reloc): Update.
70658493 1369 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
e371935f
SC
1370 PC-relative fixup.
1371 (tc_m68hc11_force_relocation): New function, handle new relocs.
1372 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1373 reloc for the linker relax pass.
1374 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1375 and VTABLE relocs.
1376
eb086b59
SC
13772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1378
1379 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1380 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1381 (s_m68hc11_mode): New function for .mode pseudo op.
1382 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1383 pseudo op.
1384 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1385 (m68hc11_elf_final_processing): Declare.
1386
7bfda7eb
SC
13872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1388
1389 * config/tc-m68hc11.c (md_begin): Take into account additional
1390 page operand for call instruction.
1391 (print_opcode_format): Likewise.
1392 (check_range): Likewise for page range checking.
1393 (get_operand): Don't skip a possible comma in operands.
1394 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1395 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1396 (fixup24): New to handle call reloc.
1397 (build_insn): Handle missing page operand for call instruction.
1398 (find): Likewise.
1399 (md_apply_fix3): Take into account new relocs.
1400 (get_operand): Fix the mode for indexed indirect addressing.
1401 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1402
fdb987ee
RS
14032002-08-12 Richard Sandiford <rsandifo@redhat.com>
1404
1405 * config/tc-mips.c (mips_ip): Don't work out the value of
1406 constant %hi()s here.
1407
31312f95
AM
14082002-08-10 Alan Modra <amodra@bigpond.net.au>
1409
1410 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1411 for ELF, and don't bother checking ELF relocs when non-ELF.
1412 (i386_immediate): Allow absolute_section expressions for aout.
1413 (i386_displacement): Likewise. Also test bfd_is_com_section.
1414 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1415 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1416 not when fx_addsy. Remove dead code.
1417
59bc061d
NC
14182002-08-09 Graeme Peterson <gp@qnx.com>
1419
1420 * configure.in: Add support for ppc-*-nto* target.
1421 * configure: Regenerate.
70658493 1422
6088b00e
AM
14232002-08-09 Alan Modra <amodra@bigpond.net.au>
1424
1425 * config/tc-i386.h: Reorganize.
1426
0c11417f
MR
14272002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1428
1429 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1430 immediate offset in "dla" and "la" expansions.
1431
79500683
AM
14322002-08-09 Alan Modra <amodra@bigpond.net.au>
1433
1434 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1435 Remove "bfd_gas=yes" from target table when covered later.
1436 Consolidate some entries.
1437 * configure: Regenerate
1438
2bbd9c25
JJ
14392002-08-09 Jakub Jelinek <jakub@redhat.com>
1440
1441 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1442 at start of insn, pass it to output_disp and output_imm.
1443 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1444 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1445 properly addend.
1446 (output_imm): Added arguments. Compute properly addend for
1447 R_386_GOTPC.
1448 (md_apply_fix3): Remove R_386_GOTPC handling.
2bbd9c25 1449
dbac4f5b
RH
14502002-08-06 George France <france@handhelds.org>
1451
1452 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1453 and m21264b processor names and cpu types.
1454 * doc/c-alpha.texi: Documented new types.
1455
95210096
AM
14562002-08-06 Alan Modra <amodra@bigpond.net.au>
1457
1458 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1459
98605598
RS
14602002-08-01 Richard Sandiford <rsandifo@redhat.com>
1461
1462 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1463 handling to BFD_RELOC_MIPS16_GPREL.
1464
08df2379
NC
14652002-08-01 Nick Clifton <nickc@redhat.com>
1466
1467 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1468 pool is computed using signed arithmetic so that proper sign
1469 extension is performed if X_add_number is a 64-bit integer.
1470
70ee4658
DJ
14712002-08-01 H.J. Lu <hjl@gnu.org>
1472 Daniel Jacobowitz <drow@mvista.com>
1473
1474 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1475 .debug_line section unless it has line information.
1476
4eb6b71c
NC
14772002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1478
1479 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1480 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1481 Allow default displacement size to be an option "--disp-size-default".
1482 (md_number_to_disp): Make error messages include value. Use %d to
1483 print integers, not %s.
1484 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1485 get duplicate messages sometimes.
1486 (convert_iif): Grow frag to max possible instruction size. Avoid
1487 creating unnecessary fixes.
1488 (md_number_to_field) Add prototype.
1489 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1490 prototypes and make static.
1491 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1492 (evaluate_expr): Use resultP argument instead of exprP global.
1493 (get_addr_mode): Quiten compiler warnings.
1494 (encode_operand): eliminate unused variables. Quiten compiler
1495 warnings. Eliminate nul character in format strings.
1496 (parse): argc is unsigned.
1497 (reloc): Type cast index to quieten compiler.
1498 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1499 (md_convert_frag): Note unused parameters. Remove unused
1500 variables.
1501 (md_create_long_jump, md_create_short_jump,
1502 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1503 unused parameters.
70658493 1504
500800ca
NC
15052002-07-31 Nick Clifton <nickc@redhat.com>
1506
1507 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1508 of the PDP-11 and 2.11BSD a.out support.
1509
03223580
NC
15102002-07-31 Momchil Velikov <velco@fadata.bg>
1511
1512 * config/tc-v850.c (md_assemble): Fix range check for immediate
1513 operand.
1514
c7a23324
CD
15152002-07-30 Chris Demetriou <cgd@broadcom.com>
1516
1517 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1518 to Broadcom SB-1 core support.
1519
cfe86eaa
TS
15202002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1521
1522 * config/tc-mips.c (mips_target_format): Fix formatting.
1523 Add recognition of n32 ABI formats.
1524
460597ba
MR
15252002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1526
1527 * tc-mips.c (load_address): Don't clobber $at when loading a
1528 64-bit address in non-PIC code if noat is in effect.
1529 (macro): Likewise.
1530
9bd7d936
MR
15312002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1532
1533 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1534 used in division/multiply macro expansions similarly to how they
1535 are used in the variants with break instructions.
1536 (macro2): Likewise.
1537
7e392df6
NC
15382002-07-30 Graeme Peterson <gp@qnx.com>
1539
1540 * configure.in: Add support for arm-*-nto target.
1541 * configure: Regenerate.
70658493 1542
3d0c9500
NC
15432002-07-30 Nick Clifton <nickc@redhat.com>
1544
1545 * config/tc-arm.c (struct literal_pool): Add fields to allow
1546 multiple literal pools to be maintained.
1547 (find_literal_pool): New function.
1548 (find_or_make_literal_pool): New function.
1549 (add_to_literal_pool): Use find_or_make_literal_pool.
6088b00e 1550 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3d0c9500
NC
1551 needed.
1552 (s_ltorg): Use find_literal_pool.
1553 (arm_cleanup): Dump all literal pools.
6088b00e 1554 * doc/c-arm.texi: Document new behaviour of only dumping literal
3d0c9500
NC
1555 pools upon request.
1556
dfff24c9
AM
15572002-07-26 Alan Modra <amodra@bigpond.net.au>
1558
1559 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1560 rather than PPC_OPCODE_32 for powerpc64*.
1561
219576a4
NC
15622002-07-25 Nick Clifton <nickc@redhat.com>
1563
1564 * po/es.po: Updated Spanish translation.
1565 * po/fr.po: Updated French translation.
1566
316f5878
RS
15672002-07-25 Richard Sandiford <rsandifo@redhat.com>
1568
1569 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1570 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1571 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1572 * configure, config.in: Regenerate.
1573 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1574 (mips_set_options): Remove "abi" field.
1575 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1576 with mips_abi.
1577 (mips_cpu): Remove.
1578 (mips_arch_string, mips_arch_info): New vars.
1579 (mips_tune_string, mips_tune_info): New vars.
1580 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1581 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1582 (mips_isa_to_str, mips_cpu_to_str): Remove.
1583 (mips_ip): If the selected architecture is a generic ISA rather
1584 than a processor, only mention the ISA level in error messages.
1585 (OPTION_MCPU): Remove.
1586 (OPTION_FP64): New.
1587 (md_longopts): Add -mfp64, remove -mcpu.
1588 (mips_set_option_string): New fn.
1589 (md_parse_option): Make -mipsN update file_mips_isa rather than
1590 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
1591 Don't let -mgp32 and -mfp32 change the ABI.
1592 (show): Move to end of file. Constify string argument.
1593 (md_show_usage): Move to the end of the file. Read available
1594 architectures from mips_cpu_info_table.
1595 (mips_set_architecture): New fn.
1596 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
1597 is an alias for -march=mipsN. Don't change the ABI based on other
1598 flags. Infer the register size from the ABI as well as the
1599 architecture. Complain about more conflicting arguments.
1600 Unify logic with GCC.
1601 (s_mipsset): Don't change the ABI.
1602 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1603 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1604 "mipsN"-type entries. Remove entries that vary only in the
1605 manufacturer's prefix, or that have "000" replaced by "k".
1606 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
1607 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1608 (mips_parse_cpu): New fn.
1609 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1610 (mips_cpu_info_from_isa): Minor formatting tweak.
1611
ff3063f5
NC
16122002-07-24 Nick Clifton <nickc@redhat.com>
1613
1614 * po/sv.po: Updated Swedish translation.
1615 * po/es.po: Updated Spanish translation.
1616
55eab186
AM
16172002-07-23 Alan Modra <amodra@bigpond.net.au>
1618
1619 * Makefile.am: Run "make dep-am".
1620 * Makefile.in: Regenerate.
1621 * doc/Makefile.in: Regenerate.
1622 * config.in: Regenerate.
1623 * po/POTFILES.in: Regenerate.
1624
0461a601
NC
16252002-07-23 Nick Clifton <nickc@redhat.com>
1626
ff3063f5 1627 * po/fr.po: Updated French translation.
0461a601 1628
ee8929cf
NC
16292002-07-23 Nick Clifton <nickc@redhat.com>
1630
1631 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1632 GAS.
1633
bad9ca53
TS
16342002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1635
1636 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1637 instead of S_IS_EXTERN.
1638 (md_estimate_size_before_relax): Likewise.
1639 (mips_fix_adjustable): Likewise.
1640
a37de3d3
TS
16412002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1642
1643 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1644
8dfa0188 16452002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
dfff24c9 1646 Nick Clifton <nickc@redhat.com>
8dfa0188
NC
1647
1648 * cond.c (s_ifdef): Treat a referenced but not yet defined
1649 symbol as if it were undefined, in exactly the same way as
1650 .equiv.
1651
dfff24c9
AM
1652 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1653 consider referenced bug not yet defined symbols to be
1654 undefined.
8dfa0188 1655
a40cbfa3
NC
16562002-07-18 Denis Chertykov <denisc@overta.ru>
1657 Frank Ch. Eigler <fche@redhat.com>
1658 Alan Lehotsky <alehotsky@cygnus.com>
1659 John Healy <jhealy@redhat.com>
1660 Jeff Johnston <jjohnstn@redhat.com>
1661
1662 * configure.in: Add ip2k configuraton.
1663 * configure: Regenerate.
1664 * Makefile.am: Add ip2k configuraton.
1665 * Makefile.in: Regenerate.
1666 * configure: Regenerate.
1667 * Makefile.in: Regenerate.
1668 * config/tc-ip2k.c: New file.
1669 * config/tc-ip2k.h: New files.
1670 * NEWS: Mention new support.
1671 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1672 * doc/Makefile.in: Regenerate.
1673 * doc/all.texi: Set IP2K
1674 * doc/as.texinfo: Add IP2K description.
1675 * doc/c-ip2k.texi: New file.
dfff24c9 1676
a40cbfa3
NC
16772002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1678
1679 * NEWS: Reformat to match style of other NEWS files.
dfff24c9 1680
a40cbfa3 16812002-07-17 Jan Hubicka <jh@suse.cz>
33fef721
JH
1682
1683 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1684
25d3fb58
AM
16852002-07-16 Moritz Jodeit <moritz@jodeit.org>
1686
1687 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1688
2cbb2eef
NC
16892002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1690
1691 * NEWS: Add 'Changes in 2.13'.
1692
da06c61e
AM
16932002-07-15 Matt Fredette <fredette@netbsd.org>
1694
1695 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1696
9146926a
AM
16972002-07-12 Alan Modra <amodra@bigpond.net.au>
1698
1699 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1700 case with non CODE_64BIT case. Don't warn on "qword ptr" if
1701 not CODE_64BIT.
1702
2b3c4602
AM
17032002-07-11 Alan Modra <amodra@bigpond.net.au>
1704
7e8d4ab4
AM
1705 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1706 (ppc_frob_file_before_adjust): New function.
1707 * config/tc-ppc.h (tc_frob_symbol): Don't define.
1708 (ppc_elf_frob_symbol): Don't declare.
1709 (tc_frob_file_before_adjust): Define.
1710 (ppc_frob_file_before_adjust): Declare.
1711
2b3c4602
AM
1712 * config/tc-ppc.c (md_pseudo_table): Warning fix.
1713 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1714 flags.
1715 (ppc_size): Delete.
1716 (ppc_xcoff64): Rename to ppc_obj64.
1717 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1718 (ppc_set_cpu): Set PPC_OPCODE_32 too.
1719 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1720 or bfd_mach_ppc.
1721 (ppc_target_format): Use ppc_obj64 to select format.
1722 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1723 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1724 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
1725 (tc_frob_symbol): Likewise.
1726 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
1727 BFD_DEFAULT_TARGET_SIZE.
1728 (ppc_tc): Likewise.
1729 (ppc_is_toc_sym): Likewise.
1730 (md_apply_fix3): Likewise.
1731 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1732 BFD_DEFAULT_TARGET_SIZE.
1733 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1734 (tc_frob_symbol): Likewise.
1735
aec421e0
TS
17362002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1737
1738 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1739 (mips_ip): Likewise.
1740
c6682705
AM
17412002-07-09 Alan Modra <amodra@bigpond.net.au>
1742
1743 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1744 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1745 (md_apply_fix3): Formatting. Remove redundant test.
1746 (tc_gen_reloc): Remove redundant code.
1747 (tc_i386_force_relocation): Delete. Movy body of function to..
1748 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1749
03111e83
AM
17502002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1751
1752 * configure.in: Add hppa-*-openbsd* target, change
1753 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1754 with sparc64 cpu.
1755 * configure: Regenerate.
1756
78d32a17
MR
17572002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1758
1759 * config/tc-mips.c (macro): Shift the 32-bit address range
1760 accessible with a lone "lui" down by 32768.
1761
3a482fd5
MR
17622002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1763
1764 * config/tc-mips.c (load_address): Use non-trapping "daddu"
1765 instead of "dadd" in address calculations.
1766 (macro): Likewise.
1767
cd61ebfe
AM
17682002-07-08 Alan Modra <amodra@bigpond.net.au>
1769
1770 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1771 movzx fudges.
1772 (md_assemble): Instead, zap the suffix here.
1773
a5d3c309
NC
17742002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1775
1776 * NEWS: Remove next release number until the release is actually
1777 upon us.
1778
ce4f7385
AM
17792002-07-03 Alan Modra <amodra@bigpond.net.au>
1780
1781 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1782 Run "make dep-am".
1783 * Makefile.in: Regenerate.
1784
148b4c7a
MS
17852002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1786
1787 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1788 to symbols in merge sections, even non pc-relative ones.
1789
2916066e
SC
17902002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1791
1792 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1793
96e87417
SC
17942002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1795
1796 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1797 .softregs and .eeprom.
1798
83518699
DB
17992002-06-28 David O'Brien <obrien@FreeBSD.org>
1800
1801 * NEWS: Note the next release is 2.13.
1802
6c6783ff
NC
18032002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1804
1805 * po/tr.po: New translation imported.
1806
a2c36061
AM
18072002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
1808
1809 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1810 (ecoff_directive_def): Likewise.
1811 (ecoff_directive_tag): Likewise.
1812 * listing.c (file_info): Likewise.
1813 * hash.c (what): Likewise.
1814
a13a0de8
L
18152002-06-25 H.J. Lu <hjl@gnu.org>
1816
1817 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1818 * Makefile.in: Regenerated.
1819
6c6783ff 18202002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
5db33d76
JR
1821
1822 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1823 (assemble_ppi): Generate warning if the same register is used
1824 twice as destination in the same padd / pmuls instruction.
1825
0ebb9a87
DB
18262002-06-18 Dave Brolley <brolley@redhat.com>
1827
a2c36061 1828 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
0ebb9a87
DB
1829 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1830 * configure.in: Support frv-*-*.
1831 * Makefile.am (CPU_TYPES): Add frv.
1832 (TARGET_CPU_CFILES): Add tc-frv.c.
1833 (TARGET_CPU_HFILES): Add tc-frv.h.
1834 (DEPTC_frv_coff): New variable.
1835 (DEPTC_frv_elf): New variable.
1836 (DEPOBJ_frv_coff): New variable.
1837 (DEPOBJ_frv_elf): New variable.
1838 (DEP_frv_coff): New variable.
1839 (DEP_frv_elf): New variable.
1840 * tc-frv.c: New file.
1841 * tc-frv.h: New file.
1842
2a24298d
CM
18432002-06-17 Catherine Moore <clm@redhat.com>
1844
a2c36061 1845 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2a24298d 1846
6c6783ff 18472002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
96f31fc7
JR
1848
1849 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1850
184e65b1
TR
18512002-06-17 Tom Rix <trix@redhat.com>
1852
1853 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1854
ecb4347a
DJ
18552002-06-14 H.J. Lu <hjl@gnu.org>
1856 Daniel Jacobowitz <drow@mvista.com>
1857
1858 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1859 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1860 * config/tc-mips.c (s_mips_file): Call s_app_file_string
1861 and new_logical_line for the first .file directive.
1862 * read.c (s_app_file_string): New function.
1863 (s_app_file): Call it.
1864 * read.h (s_app_file_string): Add declaration.
1865
18662002-06-14 Daniel Jacobowitz <drow@mvista.com>
1867
1868 * configure.in: Remove MIPS_STABS_ELF.
1869 * configure: Regenerated.
1870 * config.in: Regenerated.
1871 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1872 for MIPS targets.
1873 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1874 ".extern".
1875 (pdr_seg): Declare unconditionally.
1876 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1877 (s_mips_end): Likewise. Generate stabs function markers.
1878 (s_mips_ent): Generate stabs function markers.
1879 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1880 ELF.
1881 (s_mips_mask): Likewise.
1882 (mips_flag_mdebug): New.
1883 (md_longopts): Add "mdebug" and "no-mdebug".
1884 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1885 (mips_after_parse_args): Set mips_flag_mdebug.
1886 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1887
d6e9d61a
MR
18882002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1889
1890 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1891 value twice for RELA relocations.
1892
03e83a45
BE
18932002-06-12 Ben Elliston <bje@redhat.com>
1894
1895 * symbols.c (resolve_symbol_value): Initialise final_val.
1896
1897 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1898
b4f96c78
TR
18992002-06-11 Tom Rix <trix@redhat.com>
1900
1901 * config/tc-ppc.c (ppc_subseg_align): Delete.
1902 (ppc_change_csect): Default csect align is 2.
a2c36061 1903 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
b4f96c78 1904
8a6def3b
MM
19052002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1906
1907 * config/tc-avr.c (mcu_types): Update.
1908
7542c0f2
JT
19092002-06-08 Matt Thomas <matt@3am-software.com>
1910
1911 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1912 (vax-*-netbsd*): New targets.
1913 * configure: Regenerate.
a2c36061 1914 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
7542c0f2 1915 * config/tc-vax.c: Add support for ELF and PIC.
a2c36061 1916 (flag_want_pic): New flag.
7542c0f2
JT
1917 (float_cons): Fix prototype.
1918 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1919 (md_assemble): Introduce a new is_absolute local, and use it
1920 rather than repeating the test. Make fatal errors actually
a2c36061 1921 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
7542c0f2 1922 Add support for ELF. Add support for PIC.
a2c36061 1923 (md_convert_frag): Adjust for BFD_ASSEMBLER.
7542c0f2
JT
1924 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1925 BFD_ASSEMBLER.
a2c36061 1926 (vax_reg_parse): Make the % register prefix mandatory for ELF,
7542c0f2
JT
1927 optional for a.out, and not allowed for VMS. Adjust all callers.
1928 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
a2c36061 1929 (md_create_long_jump): Likewise.
7542c0f2
JT
1930 (md_undefined_symbol): Likewise.
1931 (md_section_align): Likewise.
1932 (md_shortopts): Allow -k and -K for ELF.
1933 (md_parse_option): Set flag_want_pic if -k or -K.
1934 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1935 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1936 * config/tc-vax.h (tc_headers_hook): Remove.
1937 (TARGET_FORMAT): Set according to object format and target
1938 environment.
1939 (BFD_ARCH, TARGET_ARCH): Define.
1940 (NO_RELOC): Adjust for BFD_ASSEMBLER.
1941 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1942 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1943 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1944
5a38dc70
AM
19452002-06-08 Alan Modra <amodra@bigpond.net.au>
1946
e90b95f6
AM
1947 * Makefile.am: Run "make dep-am".
1948 * Makefile.in: Regenerate.
1949
5a38dc70
AM
1950 * as.c: Replace CONST with const.
1951 * write.c: Likewise.
1952 * config/obj-coff.c: Likewise.
1953 * config/tc-a29k.c: Likewise.
1954 * config/tc-arm.c: Likewise.
1955 * config/tc-dlx.c: Likewise.
1956 * config/tc-h8300.c: Likewise.
1957 * config/tc-h8500.c: Likewise.
1958 * config/tc-i370.c: Likewise.
1959 * config/tc-i860.c: Likewise.
1960 * config/tc-i960.c: Likewise.
1961 * config/tc-m68hc11.c: Likewise.
1962 * config/tc-m68k.c: Likewise.
1963 * config/tc-m88k.c: Likewise.
1964 * config/tc-mcore.c: Likewise.
1965 * config/tc-mips.c: Likewise.
1966 * config/tc-ns32k.c: Likewise.
1967 * config/tc-pdp11.c: Likewise.
1968 * config/tc-pj.c: Likewise.
1969 * config/tc-s390.c: Likewise.
1970 * config/tc-sh.c: Likewise.
1971 * config/tc-sparc.c: Likewise.
1972 * config/tc-tahoe.c: Likewise.
1973 * config/tc-tic80.c: Likewise.
1974 * config/tc-v850.c: Likewise.
1975 * config/tc-vax.c: Likewise.
1976 * config/tc-w65.c: Likewise.
1977 * config/tc-z8k.c: Likewise.
1978
c5dd6aab
DJ
19792002-06-08 Daniel Jacobowitz <drow@mvista.com>
1980
1981 Based on patch from Matt Green:
1982 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
a2c36061 1983 * config/tc-mips.c (s_mips_file): Renamed from s_file.
c5dd6aab
DJ
1984 (s_mips_loc): New function.
1985 (mips_nonecoff_pseudo_table): Call them.
a2c36061 1986 (append_insn): Call dwarf2_emit_insn.
c5dd6aab 1987
a4672219
TS
19882002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1989
1990 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1991 to -1.
1992 (file_ase_mips16): New veriable.
1993 (mips_eabi64): Remove.
1994 (CPU_HAS_MIPS16): New define.
1995 (CPU_HAS_MDMX): Fix data type.
1996 (md_begin): Code cleanup. Use file_ase_mips16.
1997 (mips_elf_final_processing): Handle mips16 header flag.
1998 Handle EABI flag without intermediate variable.
1999
437ee9d5
TS
20002002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2001
2002 * doc/as.texinfo: Update MIPS documentation.
2003
85b51719
TS
20042002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2005
2006 * config/tc-mips.c: Add define for $zero register.
2007 (md_begin): Add $zero as alias name for $0.
2008 (insn_uses_reg): Use ZERO define.
2009 (mips_ip): Add $zero as alias name for $0.
2010 (mips16_ip): Likewise.
2011 (s_cplocal): Demand empty rest of input line.
2012 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2013 names. Use ZERO define. Fix input_line_pointer progress.
2014
9758f3fc
AM
20152002-06-07 Alan Modra <amodra@bigpond.net.au>
2016
2017 * symbols.c: Replace CONST by const throughout.
2018 (symbol_find_exact): Split out from..
2019 (symbol_find_base): ..here.
2020 * symbols.h: Replace CONST by const throughout.
2021 (symbol_find_exact): Declare.
2022 * config/obj-elf.c: #include "struc-symbol.h".
2023 (elf_frob_file): If group name matches an exported symbol, use that
2024 symbol for the signature and ".group" as the section name.
2025
6c6783ff 20262002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
9691d64f
JR
2027
2028 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2029 but warn about it.
9691d64f 2030
ffdefa66
DJ
20312002-06-06 Daniel Jacobowitz <drow@mvista.com>
2032
2033 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2034 and mips_opts.ase_mdmx if they are uninitialized.
2035
ec8b3afd
JL
20362002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2037
2038 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2039 (hppa_force_relocation): Check if a stub just before the start symbol
2040 of the last call_info is reachable before forcing relocation. Fix
2041 typo.
2042
e9670677
MR
20432002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2044
2045 * config/tc-mips.c (mips_after_parse_args): New function.
2046 (md_begin): Move processing of defaults to mips_after_parse_args.
2047 config/tc-mips.h (md_after_parse_args): Define.
2048
5b0e55b6
JT
20492002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2050
2051 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2052 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2053 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2054 * configure: Regenerate.
2055 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2056 environment.
2057
a074e149
JT
20582002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2059
2060 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2061
d2dab548
AM
20622002-06-04 Alan Modra <amodra@bigpond.net.au>
2063
2064 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2065 linkonce flag. Print all warnings.
2066 (obj_elf_section): Parse ",comdat" for groups.
2067 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2068 consistency of comdat flag.
2069
20e130e9
RH
20702002-06-02 Richard Henderson <rth@redhat.com>
2071
2072 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2073 with LITERALs without sequence numbers.
2074
9e756d64
RH
20752002-06-01 Richard Henderson <rth@redhat.com>
2076
2077 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2078 Rename them LITUSE_ALPHA_*.
2079
3048287a
NC
20802002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2081
2082 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2083 accept parentheses enclosed register lists.
2084
194b5210
AM
20852002-05-31 Alan Modra <amodra@bigpond.net.au>
2086
2087 * Makefile.am: Run "make dep-am".
2088 * Makefile.in: Regenerate.
2089 * po/POTFILES.in: Regenerate.
2090
34e97952
AM
20912002-05-31 Graeme Peterson <gp@qnx.com>
2092
2093 * configure.in: Add i386-*-nto-qnx*.
2094 * configure: Regenerate.
2095
793b27f4
TS
20962002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2097
2098 * config/tc-mips.c (mips_ip): Use unsigned long values for
2099 warning output.
2100
80245285
TS
21012002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2102
2103 * config/tc-mips.c (s_cpsetup): Fix initialization of
2104 mips_cpreturn_register and mips_cpreturn_offset.
2105
698b7d9d
TS
21062002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2107
2108 * config/tc-mips.c (s_cpsetup): Fix comment.
2109
76db943d
TS
21102002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2111
2112 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2113 (mips_ip): Likewise.
2114 (mips16_ip): Likewise.
2115 (tc_get_register): Likewise.
2116
deec1734 21172002-05-30 Chris G. Demetriou <cgd@broadcom.com>
a2c36061 2118 Ed Satterthwaite <ehs@broadcom.com>
deec1734
CD
2119
2120 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2121 (mips_opts): Initialize "ase_mdmx" member.
2122 (file_ase_mdmx): New variable.
2123 (CPU_HAS_MDMX): New macro.
2124 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2125 based on command line options and configuration defaults.
2126 (macro_build): Note in comment that use of MDMX in macros is
2127 not currently allowed.
2128 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2129 "Z" MDMX operand types.
2130 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2131 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2132 types.
2133 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2134 Add support for "-mdmx" and "-no-mdmx" options.
2135 (OPTION_ELF_BASE): Move to accomodate new options.
2136 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2137 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2138 file_ase_mdmx was set.
2139 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2140 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2141 nomdmx" directives.
2142
9ee72ff1
TS
21432002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2144
2145 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2146 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2147 command line switch conforming to gcc conventions.
2148 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2149
438c16b8
TS
21502002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2151
2152 * config/tc-mips.c (macro_build_jalr): New Function.
2153 (md_begin): NewABI uses big GOTs.
2154 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2155 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2156 (load_address): Add some NewABI PIC support.
2157 (macro): Likewise.
2158 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2159 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2160
f7ea7ef2
TS
21612002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2162
2163 * config/tc-mips.c (load_address): Use mips_gp_register instead
2164 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2165 instead.
2166 (macro): Use mips_gp_register instead of hardcoded value.
2167
3765b1be
RH
21682002-05-30 Richard Henderson <rth@redhat.com>
2169
2170 * expr.h (operatorT): Add O_md17..O_md32.
2171 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2172 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2173 O_tprelhi, O_tprello, O_tprel): New.
2174 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2175 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2176 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2177 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2178 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2179 (md_apply_fix3): Handle TLS relocations.
2180 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2181 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2182 associated TLS reloc. Check lituse_tls relocs match up.
2183 (emit_insn): Handle TLS relocations.
2184 (ldX_op): Remove.
2185
1c5cec28
RH
2186 * doc/c-alpha.texi: Add docs for tls relocations.
2187
def2e0dd
TS
21882002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2189
2190 * config/tc-mips.c (mips_gprel_offset): New variable.
2191 (s_gpvalue): Use it.
2192
8ade06a8
TR
21932002-05-30 Diego Novillo <dnovillo@redhat.com>
2194
a2c36061
AM
2195 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2196 write-write conflicts.
2197 (md_assemble): Reformat introductory comment.
2198 (parallel_ok): Prevent packing only if the first
2199 instruction cannot be packed.
8ade06a8
TR
2200
22012002-05-30 Jason Eckhardt <jle@redhat.com>
2202 Tom Rix <trix@redhat.com>
2203
2204 * config/tc-d10v.c (build_insn): Check for immediates.
2205
c9914766
TS
22062002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2207
2208 * config/tc-mips.c: Replace GP in comments by $gp.
2209 (mips_big_got): Initialize.
2210 (mips_trap): Initialize.
2211 (load_address): Use mips_gp_register instead of hardcoded value.
2212 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2213 (macro): Use mips_gp_register instead of hardcoded value.
2214 (macro2): Change load_address calls.
2215 (md_pcrel_from): Comment formatting.
2216 (s_cpload): Use mips_gp_register instead of hardcoded value.
2217 (s_cprestore): Likewise. Comment formatting.
2218 (s_gpword): Fix data type.
2219 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2220 (nopic_need_relax): Replace GP in comments by $gp.
2221 (mips_elf_final_processing): Better comment.
2222
d172d4ba
NC
22232002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2224
2225 * configure.in: Add DLX configuraton
2226 * Makefile.am: Add DLX configuraton
2227 * configure: Regenerate.
2228 * Makefile.in: Regenerate.
2229 * config/tc-dlx.c: New file.
2230 * config/tc-dlx.h: New files.
52216602 2231 * NEWS: Mention new support.
d172d4ba 2232
e9732b6d
NC
22332002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2234
2235 * config/obj-coff.c (write_object_file): Add missing semicolon.
2236
f9419b05
TS
22372002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2238
2239 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2240 by the define. Remove superfluous check of mips_opts.mips16.
2241 (append_insn): Likewise. Canonicalize variable increments.
2242 (macro_build): Canonicalize variable increments.
2243 (macro_build_lui): Likewise.
2244 (load_register): Likewise.
2245 (load_address): Move pointer initialization.
2246 (macro): Move pointer to a more local scope. Canonicalize variable
2247 increments. Better comments. Replace magic constant for RA by the
2248 define.
2249 (macro2): Replace magic constant for RA by the define. Canonicalize
2250 variable increments.
2251 (mips_ip): Canonicalize variable increments.
2252 (mips16_ip): Replace magic constant for RA by the define.
2253 (my_getSmallParser): Canonicalize variable increments/decrements.
2254 (my_getPercentOp): Likewise.
2255 (my_getSmallExpression): Likewise.
2256 (s_align): Likewise.
2257 (s_mipsset): Likewise.
2258 (s_cpsetup): Likewise.
2259 (s_insn): Remove superfluous check of mips_opts.mips16.
2260 (s_mips_stab): Likewise.
2261 (mips_handle_align): Canonicalize variable increments.
2262 (s_mips_ent): Likewise.
2263 (s_mips_end): Add comment.
2264
aa501e5c
JT
22652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2266
2267 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2268 * configure: Regenerate.
2269
29589b0c
AM
22702002-05-25 Alan Modra <amodra@bigpond.net.au>
2271
2272 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2273 * Makefile.in: Regenerate.
2274 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2275 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2276 * configure: Regenerate.
2277 * as.h: Use #include "" instead of <> for local header files.
2278 * flonum-konst.c: Likewise.
2279 * flonum-mult.c: Likewise.
2280 * gasp.c: Likewise.
2281 * listing.c: Likewise.
2282 * config/tc-ia64.h: Likewise.
2283 * config/tc-v850.h: Likewise.
2284
436e8db0
NC
22852002-05-24 TAMURA Kent <kent@netbsd.org>
2286
2287 * configure.in: Add a target for i386-netbsdpe.
2288 * configure: Regenerate.
2289
13ae64f3
JJ
22902002-05-23 Jakub Jelinek <jakub@redhat.com>
2291
2292 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2293 (obj_elf_common): Call elf_common.
2294 (obj_elf_tls_common): New function.
2295 (elf_pseudo_tab): Support .tls_common.
2296 (special_sections): Add .tdata and .tbss.
2297 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2298 sections.
2299 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2300 (obj_elf_parse_section_letters): Include T in error message.
2301 * config/tc-ppc.c (ppc_section_letter): Likewise.
2302 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2303 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2304 SEC_MERGE.
2305 * config/tc-sparc.c (md_apply_fix3): Likewise.
2306 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2307 Define them if not BFD_ASSEMBLER.
2308 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2309 and @NTPOFF.
2310 (md_apply_fix3): Add TLS relocs.
2311 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2312 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2313 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2314 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2315 (ia64_elf_section_letter): Include T in error message.
2316 (md_begin): Support TLS operators.
2317 (md_operand): Likewise.
2318 (ia64_gen_real_reloc_type): Support TLS relocs.
13ae64f3
JJ
2319 * write.c (adjust_reloc_syms): Don't change symbols in
2320 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2321
c62e1cc3
NC
23222002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2323
2324 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2325 round the relocation up rather than down.
2326
6ff96af6
NC
23272002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2328
2329 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2330 flag.
a2c36061 2331 * doc/as.texinfo: Document that the COFF version of .section
6ff96af6
NC
2332 ignores the 'a' flag.
2333
18e1d487
AM
23342002-05-23 Alan Modra <amodra@bigpond.net.au>
2335
69108c1f
AM
2336 * config/tc-alpha.c (assemble_tokens): Protect use of
2337 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2338
18e1d487
AM
2339 * write.c (size_seg): Check adjustment to last frag.
2340 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2341 section alignment.
2342 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2343 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2344 (write_object_file): Invoke md_do_align if available, and use
2345 frag_align_code on text sections.
2346 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2347 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2348 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2349 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2350 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2351 BFD_ASSEMBLER too.
2352
9d66a1d9
L
23532002-05-22 H.J. Lu <hjl@gnu.org>
2354
2355 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2356 for source file.
2357
76feaaf3
NC
23582002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2359
2360 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2361 as ELF builds.
2362
1080e97d
L
23632002-05-22 H.J. Lu <hjl@gnu.org>
2364
2365 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2366 for one .loc for compiler.
2367
c90bbe5b
TS
23682002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2369
2370 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2371 embedded-PIC.
2372
771c7ce4
TS
23732002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2374
2375 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2376 Optimize the rotate by zero case.
2377
fa70f2ed
NC
23782002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2379
2380 * configure.in: Remove accidental enabling of bfd_gas=yes for
2381 sh-coff targets.
2382 * configure: Regenerate.
2383
411863a4
KH
23842002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2385
2386 * app.c: Fix formatting.
2387 * as.c: Likewise.
2388 * ehopt.c: Likewise.
2389 * expr.c: Likewise.
2390 * input-file.c: Likewise.
2391 * listing.c: Likewise.
2392 * macro.h: Likewise.
2393 * stabs.c: Likewise.
2394 * symbols.c: Likewise.
2395
eb268f46
AM
23962002-05-17 Alan Modra <amodra@bigpond.net.au>
2397
2398 * config/obj-generic.c: Delete file.
2399 * config/obj-generic.h: Likewise.
2400
bdfdba87
MM
24012002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2402
2403 * config/tc-avr.c (mcu_types): Update for new devices.
2404
3bec30a8
TS
24052002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2406
2407 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2408
8586fc66
TS
24092002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2410
2411 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2412 worked sometimes by accident. Fix copy&paste comment.
2413
195325d2
TS
24142002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2415
2416 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2417 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2418 (mips_elf_final_processing): Let n32 use .reginfo.
2419
4db1a35d
TS
24202002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2421
2422 * config/tc-mips.c (append_insn): Fix too small range of variable.
2423
7f367f01
NC
24242002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2425
2426 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2427 listing_prev_line().
2428
7193a0e7
NC
24292002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2430
f5b4e9e4
NC
2431 * config/tc-arm.c (md_assemble): Remove redundant call to
2432 listing_prev().
2433
b6675117
NC
2434 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2435 loc_directive_seen.
2436
7193a0e7
NC
2437 * stabs.c (s_stab_generic): Fix grammatical error in warning
2438 message.
2439
50b31228
AM
24402002-05-13 Alan Modra <amodra@bigpond.net.au>
2441
2442 * write.c (subsegs_finish): Don't specially align last subseg.
2443
cce5a618
NC
24442002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2445
6360824b
NC
2446 * stabs.c (s_stab_generic): Warn about a description field that is
2447 too big.
2448
f8e42b8c
NC
2449 * config/obj-coff.c: Fix compile time warnings when compiling
2450 without BFD_ASSEMBLER defined.
2451 Fix formatting.
2452
cce5a618
NC
2453 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2454 target.
2455 (md_pcrel_from_section): Use md_pcrel_from().
2456
d7c310c2
NC
24572002-05-11 Bruno Haible <bruno@clisp.org>
2458
2459 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2460 by dwarf2_directive_loc, instead of calling dwarf2_where.
2461
5d6255fe
KH
24622002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2463
2464 * config/obj-coff.h: Fix formatting.
2465 * config/tc-mcore.c: Likewise.
2466 * config/tc-mn10300.c: Likewise.
2467 * config/tc-openrisc.c: Likewise.
2468 * config/tc-or32.c: Likewise.
2469 * config/tc-pdp11.c: Likewise.
2470 * config/tc-ppc.c: Likewise.
2471 * config/tc-ppc.h: Likewise.
2472 * config/tc-sh64.c: Likewise.
2473 * config/tc-sh.c: Likewise.
2474 * config/tc-tic54x.c: Likewise.
2475 * config/tc-xstormy16.c: Likewise.
2476 * config/tc-xstormy16.h: Likewise.
2477
cc8a6dd0
KH
24782002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2479
2480 * config/obj-coff.c: Fix formatting.
2481 * config/obj-elf.c: Likewise.
2482 * config/tc-alpha.c: Likewise.
2483 * config/tc-arm.c: Likewise.
2484 * config/tc-d10v.c: Likewise.
2485 * config/tc-d30v.c: Likewise.
2486 * config/tc-h8300.c: Likewise.
2487 * config/tc-hppa.c: Likewise.
2488
412167cb
AM
24892002-05-09 Alan Modra <amodra@bigpond.net.au>
2490
2491 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2492 reloc when no_cond_jump_promotion.
2493
91975467
JW
24942002-05-08 Jim Wilson <wilson@redhat.com>
2495
2496 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2497 current variable part of frag.
2498
a1b6236b
KH
24992002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2500
2501 * config/tc-mmix.c: Fix formatting.
2502 * config/tc-mmix.h: Likewise.
2503
c8615825
AM
25042002-05-08 Alan Modra <amodra@bigpond.net.au>
2505
2506 * configure: Regenerate.
2507
8a104df9
KH
25082002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2509
2510 * config/tc-m68k.c: Fix formatting.
2511
d3d8a9ee
NC
25122002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2513
2514 * Makefile.am: Honour DESTDIR.
2515 * Makefile.in: Regenerate.
2516
40449e9f
KH
25172002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2518
2519 * config/tc-ia64.c: Fix formatting.
2520 * config/tc-ia64.h: Likewise.
2521
98d3f06f
KH
25222002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2523
2524 * config/tc-mips.c: Fix formatting.
2525 * config/tc-s390.c: Likewise.
2526 * config/tc-s390.h: Likewise.
2527
8f5b2891
AO
25282002-05-03 Alexandre Oliva <aoliva@redhat.com>
2529
2530 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2531 information for instructions.
2532
d1a6c242
KH
25332002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2534
2535 * as.h: Fix formatting.
2536 * cgen.c: Likewise.
2537 * cgen.h: Likewise.
2538 * dwarf2dbg.c: Likewise.
2539 * frags.h: Likewise.
2540 * gasp.c: Likewise.
2541 * macro.c: Likewise.
2542 * read.c: Likewise.
2543 * stabs.c: Likewise.
2544 * symbols.c: Likewise.
2545
1cfc59d5
AM
25462002-05-02 Alan Modra <amodra@bigpond.net.au>
2547
72297628
AM
2548 * app.c (mri_pseudo): Only declare for TC_M68K.
2549
1cfc59d5
AM
2550 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2551 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2552 BFD_RELOC_16_BASEREL.
2553 (md_assemble): Likewise.
2554 (md_apply_fix3): Likewise.
2555
358b94bd
NC
25562002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2557
2558 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2559 zero into an add of zero - it is not the same.
2560
d8731e7d
NC
25612002-05-01 Arati Dikey <aratid@kpit.com>
2562
2563 * tc-sh.c (get_specific): Generate warning if the same
2564 destination register is used in parallel instructions.
2565
200dbde8
AM
25662002-05-01 Andrew Macleod <amacleod@cygnus.com>
2567
2568 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2569
3f3cdb03
AM
25702002-05-01 Alan Modra <amodra@bigpond.net.au>
2571
2572 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2573 backwards to prevent cascading errors.
2574
9b2b7d69
MM
25752002-04-30 Mark Mitchell <mark@codesourcery.com>
2576
2577 * configure.in: Add support for powerpc-*-windiss.
2578 * configure: Regenerated.
a2c36061 2579
0f3f3d8b
AM
25802002-04-28 Alan Modra <amodra@bigpond.net.au>
2581
819e6420
AM
2582 * config/tc-s390.c (md_parse_option): Formatting.
2583
0f3f3d8b
AM
2584 * config/tc-i386.c: Formatting fixes, add missing space in error
2585 message.
2586
3c25c5f6
NC
25872002-04-24 Christian Groessler <chris@groessler.org>
2588
2589 * config/tc-z8k.c (build_bytes): Add support for new cases:
2590 CLASS_IGNORE and ARG_NIM4.
2591 (md_assemble): Prevent destruction of input_line_pointer if
2592 get_operands returns failure.
2593
af55c2e6
CD
25942002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2595
2596 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2597 instructions to be generated by macros.
2598
062cd5e7
AS
25992002-04-24 Andreas Schwab <schwab@suse.de>
2600
2601 * config/tc-i386.c (output_jump, output_disp)
2602 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2603 more.
2604 (md_apply_fix3): Remember addend value for rela relocations.
2605 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2606
2b2e39bf
CD
26072002-04-22 Chris Demetriou <cgd@broadcom.com>
2608
2609 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2610 from previous change.
2611
80cc45a5
EC
26122002-04-22 Eric Christopher <echristo@redhat.com>
2613
2b2e39bf
CD
2614 * config/tc-mips.c (macro_build): Add warning if macro instructions
2615 are expanded into a branch delay slot.
80cc45a5 2616
ffa554ed
GK
26172002-04-17 Geoffrey Keating <geoffk@redhat.com>
2618
2619 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2620 numbers, gdb relies on them to detect the start of the prologue.
2621
302576af
MS
26222002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2623
2624 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2625 symbols in merge sections.
2626
0f3f3d8b 26272002-04-16 Alan Modra <amodra@bigpond.net.au>
091e58c1
AM
2628
2629 * as.c (main): Don't reference _bfd_chunksize.
2630
76b999d0
TR
26312002-04-15 Tom Rix <trix@redhat.com>
2632
80cc45a5 2633 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
76b999d0
TR
2634 symbols in merge sections.
2635
580a832e
RS
26362002-04-11 Richard Sandiford <rsandifo@redhat.com>
2637
2638 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2639 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2640 argument for the precision.
2641 (gen_to_words): Update accordingly.
2642
edde18a5
AM
26432002-04-10 Alan Modra <amodra@bigpond.net.au>
2644
2645 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2646 BFD_VERSION_STRING unavailable.
2647 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2648
6c6783ff 26492002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5bcd00a6
JR
2650
2651 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2652 symbol_used_in_reloc_p is true.
2ed5f585
JR
2653
2654 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2655 endian hosts.
2656
8e42bcb6
AM
26572002-04-04 Alan Modra <amodra@bigpond.net.au>
2658
2659 * dep-in.sed: Cope with absolute paths.
2660 * Makefile.am (dep.sed): Subst TOPDIR.
2661 Run "make dep-am".
2662 * Makefile.in: Regenerate.
2663
874e8986
TS
26642002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2665
2666 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2667 (mips_ip): Remove unused variable.
2668 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2669 unsigned char with bfd_byte.
2670 (s_file): Remove unused variable.
2671 (s_mips_ent): Likewise.
2672
fbdbf472
TR
26732002-04-03 Tom Rix <trix@redhat.com>
2674
2675 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2676 (build_insn): Same.
2677 (find_opcode): Fix warning in as_warn.
2678 * config/tc-d10v.h: Update Copyright.
2679
26802002-04-03 Alan Matsuoka <alanm@redhat.com>
2681 Tom Rix <trix@redhat.com>
2682
2683 From Jeff Knaggs <jknaggs@redhat.com>
80cc45a5 2684 * config/tc-d10v.c (check_resource_conflict): New function to
fbdbf472
TR
2685 check for resource conflicts.
2686
2687 From Jason Eckhardt <jle@redhat.com>
a2c36061
AM
2688 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2689 imm3 fields.
2690 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2691 reserved control registers is used.
2692 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2693 imm3 fields.
fbdbf472
TR
2694
2695 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
a2c36061
AM
2696 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2697 instruction cannot be packed.
fbdbf472
TR
2698
2699 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
a2c36061
AM
2700 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2701 write-write conflicts.
2702 (md_assemble): Reformat introductory comment.
2703 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2704 arguments.
fbdbf472 2705
784b640d
AM
27062002-04-03 Alan Modra <amodra@bigpond.net.au>
2707
2708 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2709 O_logical_not>): Derive final_seg from add_symbol.
2710 <O_multiply..O_logical_or>: More final_seg twiddles.
2711
5f44c186
RH
27122002-04-01 Jessica Han <jessica@cup.hp.com>
2713
a2c36061 2714 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5f44c186
RH
2715 in 32-bit mode.
2716
3458b54c
AS
27172002-03-27 Andreas Schwab <schwab@suse.de>
2718
2719 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2720 field for pc-relative fixups.
2721 (output_disp): Likewise.
2722 (md_estimate_size_before_relax): Likewise.
2723 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2724 pc-relative fixups in 64bit mode.
2725
815b453c
AM
27262002-03-22 Alan Modra <amodra@bigpond.net.au>
2727
2728 * config/te-aix5.h: Typo fix.
2729
d5b32339
AM
27302002-03-21 Alan Modra <amodra@bigpond.net.au>
2731
2732 * Makefile.am: Run "make dep-am".
2733 * Makefile.in: Regenerate.
2734 * doc/Makefile.in: Regenerate.
2735
f201ccb3
NC
27362002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
2737
2738 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2739 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2740
177b4a6a
AO
27412002-03-18 Alexandre Oliva <aoliva@redhat.com>
2742
2743 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2744 the EXTENDED bit here; report the estimate according to the
2745 current size.
2746
eb1e0e80
NC
27472002-03-18 Tom Rix <trix@redhat.com>
2748
2749 * configure.in: Add AIX 5 support.
2750 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2751 * config/te-aix5.h: New file. AIX 5 support.
2752 * configure: Regenerate.
2753
a1c259a1
NC
27542002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2755
2756 * po/fr.po: Updated version.
2757
949f2b5c
AJ
27582002-03-16 Andreas Jaeger <aj@suse.de>
2759
2760 * doc/c-mips.texi (Machine Dependencies): Add new node.
2761
1f25f5d3
CD
27622002-03-15 Chris G. Demetriou <cgd@broadcom.com>
2763
2764 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2765 (mips_opts): Initialize "ase_mips3d" member.
2766 (file_ase_mips3d): New variable.
2767 (CPU_HAS_MIPS3D): New macro.
2768 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2769 based on command line options and configuration defaults.
2770 (macro_build, mips_ip): Accept MIPS-3D instructions if
2771 mips_opts.ase_mips3d is set.
2772 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2773 Add support for "-mips3d" and "-no-mips3d" options.
2774 (OPTION_ELF_BASE): Move to accomodate new options.
2775 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2776 (mips_elf_final_processing): Add a comment indicating that a
2777 MIPS-3D ASE ELF header flag should be set, when one exists.
2778 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2779 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2780 nomips3d" directives.
949f2b5c 2781
2be11e7e
HPN
27822002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
2783
2784 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2785 a weak symbol in same section to be within reach.
2786
9ce88e60
NC
27872002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2788
2789 * po/fr.po: Updated version.
2790
1e16b528
AS
27912002-03-12 Andreas Schwab <schwab@suse.de>
2792
2793 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2794 body record so that an error is given for misplaced .save
2795 pseudo-ops.
2796
29b0f896
AM
27972002-03-09 Alan Modra <amodra@bigpond.net.au>
2798
2799 * config/tc-i386.h (REX_OPCODE): Define.
2800 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2801 (rex_byte): typedef to int.
2802 * config/tc-i386.c: Group prototypes and vars together.
2803 Formatting fixes. Remove occurrences of "register" keyword.
2804 (true): Delete.
2805 (false): Delete.
2806 (mode_from_disp_size): Add INLINE keyword to prototype.
2807 (fits_in_signed_byte): Likewise.
2808 (fits_in_unsigned_byte): Likewise.
2809 (fits_in_unsigned_word): Likewise.
2810 (fits_in_signed_word): Likewise.
2811 (fits_in_unsigned_long): Likewise.
2812 (fits_in_signed_long): Likewise.
2813 (type_names): Constify.
2814 (intel_float_operand): Constify param.
2815 (add_prefix): Use REX_OPCODE.
2816 (md_assemble): Likewise. Modify for changed rex_byte.
2817 (parse_insn): Split out of md_assemble.
2818 (parse_operands): Likewise.
2819 (swap_operands): Likewise.
2820 (optimize_imm): Likewise.
2821 (optimize_disp): Likewise.
2822 (match_template): Likewise.
2823 (check_string): Likewise.
2824 (process_suffix): Likewise.
2825 (check_byte_reg): Likewise.
2826 (check_long_reg): Likewise.
2827 (check_qword_reg): Likewise.
2828 (check_word_reg): Likewise.
2829 (finalize_imm): Likewise.
2830 (process_operands): Likewise.
2831 (build_modrm_byte): Likewise.
2832 (output_insn): Likewise.
2833 (output_branch): Likewise.
2834 (output_jump): Likewise.
2835 (output_interseg_jump): Likewise.
2836 (output_disp): Likewise.
2837 (output_imm): Likewise.
2838
2e64b665
DJ
28392002-03-07 Daniel Jacobowitz <drow@mvista.com>
2840
2841 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2842
937149dd
AM
28432002-03-06 Alan Modra <amodra@bigpond.net.au>
2844
2845 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2846 relocs except when BFD64.
2847
2848 * write.c (number_to_chars_bigendian): Don't abort when N is
2849 larger than sizeof (VAL).
2850 (number_to_chars_littleendian): Likewise.
2851
40d74fb1
JL
28522002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2853
2854 * config/tc-hppa.c (md_apply_fix3): Add cast.
2855 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2856 e_rrsel.
2857
cd3cde86
AM
28582002-03-05 Paul Koning <pkoning@equallogic.com>
2859
2860 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2861 (parse_ac5): New function for parsing float regs in float operand.
2862 (parse_expression): Remove attempt to make literals be octal.
2863 (parse_op_no_deferred): Support float literals.
2864 (parse_op): Reject attempts to refer to float regs.
2865 (parse_fop): New function, like parse_op but for float operand.
949f2b5c 2866 (md_assemble): Add cases to parse float operands. Also fix
cd3cde86
AM
2867 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2868
e9682144
L
28692002-03-04 H.J. Lu <hjl@gnu.org>
2870
2871 * config/obj-elf.c (special_section): Add .init_array,
2872 .fini_array and .preinit_array.
2873
2874 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2875 .init_array and .fini_array.
2876
26eb4093
JJ
28772002-03-01 Jakub Jelinek <jakub@redhat.com>
2878
2879 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2880 visibility.
2881 (obj_frob_symbol): Copy visibility.
2882
559e22f3
JJ
28832002-02-28 Jakub Jelinek <jakub@redhat.com>
2884
2885 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2886 s_text.
2887 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2888
ef412327
NC
28892002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2890
2891 * po/es.po: Updated.
2892
b25a253c
CD
28932002-02-26 Chris Demetriou <cgd@broadcom.com>
2894
2895 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2896 only, undo the changes made on 2001-06-08, with the
2897 effect being that common or extern symbols are
2898 adjusted for embedded-PIC, but weak symbols are not.
2899 (md_estimate_size_before_relax: Likewise, with the effect
2900 that extern symbols are treated the same as weak symbols
2901 only if not embedded-PIC.
2902 (mips_fix_adjustable) Likewise, with the effect that
2903 weak or extern symbols are not adjusted for embedded-PIC.
2904 (md_apply_fix3): Tweak so that the case where value is zero
2905 is handled more correctly for embedded-PIC code.
2906
fe41178f
NC
29072002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2908
587fe2b3
NC
2909 * doc/as.texinfo (Overview): Add missing @ifset IA64
2910
fe41178f
NC
2911 * configure.in (LINGUAS): Add es.po.
2912 * configure: Regenerate.
2913 * po/es.po: New file.
2914
4d34fb5f
TS
29152002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2916
2917 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2918 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2919 and NO_PIC cases. Code cleanup.
2920 (macro2): Fix handling of 64bit register loads.
2921
9e32ca89
NC
29222002-02-25 David Mosberger <davidm@hpl.hp.com>
2923
2924 * doc/as.texinfo: Add entry for IA64.
2925 * doc/c-ia64.texi: New file.
2926
23e1d84c
AM
29272002-02-25 Alan Modra <amodra@bigpond.net.au>
2928
c7d004c5
AM
2929 * config/tc-hppa.c: Update copyright date.
2930
2931 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
23e1d84c
AM
2932 Remove references to chip manufacturers.
2933 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2934 Correct comments.
2935 (md_show_usage): Remove references to chip manufacturers. Mention
2936 -mpower4.
2937 (md_begin): Test power4 opcode flag bits.
2938
b1c6bf70 29392002-02-22 David Mosberger <davidm@hpl.hp.com>
6290819d
NC
2940
2941 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2942 count exceeds prologue count.
2943 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2944 (unwind.label_prologue_count): New member.
2945
2946 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2947
2948 (get_saved_prologue_count): New function.
2949 (save_prologue_count): New function.
2950 (free_saved_prologue_count): New function.
2951 (dot_label_state): Record state label by calling save_prologue_count().
2952 (dot_copy_state): Restore prologue count by calling
2953 get_saved_prologue_count().
2954 (generate_unwind_image): Free up list of saved prologue
2955 counts by calling free_saved_prologue_counts().
2956
f1e7a2c9
NC
29572002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
2958
2959 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2960 function declarations.
2961
3f965e60
NC
29622002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
2963
2964 * NEWS: Note that GASP is now deprecated.
2965 * Makefile.am: Do not build gasp-new by default.
2966 * Makefile.in: Regenerate.
2967 * doc/Makefile.am: Do not install gasp.info.
2968 * doc/Makefile.in: Regenerate.
2969 * gas/gasp.texi: Note that gasp is now deprecated.
2970
9a66911f
NC
29712002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2972
2973 * NEWS: Mark 2.12 branch.
2974
f88fd9fe
TT
29752002-02-19 Tom Tromey <tromey@redhat.com>
2976
2977 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2978
da0e507f
TS
29792002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2980
2981 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2982 option input.
2983
ff0fb565
MS
29842002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2985
2986 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2987 Make bit size independent of architecture switch.
2988 (md_begin): Add warning for -m64 with -Aesa.
2989 (s390_md_end): Use renamed architecture defines.
2990
a245a9aa
DJ
29912002-02-18 Daniel Jacobowitz <drow@mvista.com>
2992
2993 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2994
8bf549a8
NC
29952002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2996
2997 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2998 instead of CRIS.
2999
9151e8bf
CD
30002002-02-15 Chris Demetriou <cgd@broadcom.com>
3001
a2c36061 3002 * config/tc-mips.c (md_estimate_size_before_relax): Really
9151e8bf
CD
3003 make sure we treat weak like extern only for ELF. (Fixes
3004 patch from 2001-07-25.)
3005
59455fb1
BE
30062002-02-15 Ben Elliston <bje@redhat.com>
3007
3008 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3009 works as expected.
3010
49fda6c8
HPN
30112002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3012
3013 * NEWS: Mention support for MMIX.
3014
2d2bf3e0
CD
30152002-02-13 Chris Demetriou <cgd@broadcom.com>
3016
3017 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3018 a sequence of indpendent 'if' statements for easier debugging
3019 and future modification.
3020
76f57f3a
JT
30212002-02-13 Matt Fredette <fredette@netbsd.org>
3022
3023 * config/tc-m68k.c (md_show_usage): No longer display a
3024 hard-coded "68020" for the default CPU, instead display the
3025 canonical name of the true, configured default CPU.
3026 (m68k_elf_final_processing): Mark objects for sub-68020
3027 CPUs with the new EF_M68000 flag.
3028
3bf057fa
AS
30292002-02-13 Andreas Schwab <schwab@suse.de>
3030
3031 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3032 pc-relative relocations to merge sections in 64-bit mode.
3033
6334e312 30342002-02-13 Ben Elliston <bje@redhat.com>
1ac57253
BE
3035
3036 * NEWS: Document floating point number handling in gasp.
3037 * gasp.c: Include <assert.h> and "xregex.h".
3038 (is_flonum): New function.
3039 (chew_flownum): Likewise.
3040 (change_base): Consume flonums from the input, where possible.
3041 * doc/gasp.texi (Constants): Document floating point numbers.
3042
3dcfe21d
AM
30432002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3044
3045 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3046 that implicitly use LR and RR selectors.
3047
913572ec
AO
30482002-02-12 Alexandre Oliva <aoliva@redhat.com>
3049
3050 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3051 and `epsw' as available on AM33 and above only.
3052 (other_register_name): Add logic to handle machine type encoded in
3053 reg_number.
3054
9b90b531
TR
30552002-02-11 Tom Rix <trix@redhat.com>
3056
949f2b5c 3057 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
9b90b531
TR
3058 xcoff64.
3059
6c6783ff 30602002-06-11 Alexandre Oliva <aoliva@redhat.com>
6c1b24e4
AO
3061
3062 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3063 Use all over.
3064
6c6783ff 30652002-02-11 Jan Hubicka <jh@suse.cz>
7ecd2f8b
JH
3066
3067 * i386.c (md_assemble): Support 32bit address prefix.
3068 (i386_displacement): Likewise.
3069 (i386_index_check): Accept 32bit addressing in 64bit mode.
3070
7eb27ef2
AO
30712002-02-11 Alexandre Oliva <aoliva@redhat.com>
3072
3073 * config/tc-sh.c (dot): Removed unused function.
3074
fa702524
AM
30752002-02-11 Alan Modra <amodra@bigpond.net.au>
3076
3077 * Makefile.am: "make dep-am".
3078 * Makefile.in: Regenerate.
3079 * aclocal.m4: Regenerate.
3080 * config.in: Regenerate.
3081 * configure: Regenerate.
3082 * doc/Makefile.in: Regenerate.
3083
625e1353
RH
30842002-02-10 Richard Henderson <rth@redhat.com>
3085
3086 * doc/c-alpha.texi: New file.
3087 * doc/Makefile.am (CPU_DOCS): Add it.
3088 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3089
543833df
RH
30902002-02-09 Richard Henderson <rth@redhat.com>
3091
3092 * config/tc-alpha.c (O_samegp): New.
3093 (USER_RELOC_P): Include it.
3094 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3095 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3096 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3097 (alpha_validate_fix): New.
3098 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3099
328eb32e
HPN
31002002-02-09 Hans-Peter Nilsson <hp@axis.com>
3101
3102 * doc/c-cris.texi: New.
3103 * doc/all.texi: @set CRIS.
3104 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3105 Include c-cris.texi.
3106 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3107 * doc/Makefile.in: Regenerate.
3108
6373ee54
CD
31092002-02-08 Chris Demetriou <cgd@broadcom.com>
3110
3111 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3112 determine if a number is a sign-extended 32-bit number.
3113 (load_register): Use IS_SEXT_32BIT_NUM.
3114 (macro): Check if load/store macro handling is using a
3115 constant 32-bit address on 64-bit address systems, and if
3116 so optimize the generation of that address.
3117
50a4c611
RH
31182002-02-08 Richard Henderson <rth@redhat.com>
3119
3120 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3121 we've eliminated all foreign relocation types yet.
3122 (alpha_fix_adjustable): Likewise.
3123
324bfcf3
AO
31242002-02-08 Alexandre Oliva <aoliva@redhat.com>
3125
3126 Contribute sh64-elf.
3127 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3128 Stephen Clarke <Stephen.Clarke@st.com>
3129 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3130 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3131 * config/tc-sh.c (md_relax_table): Added default sizes for
3132 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3133 MOVI_16, MOVI_32 and MOVI_48.
3134 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3135 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3136 and MOVI_16.
3137 (shmedia_md_estimate_size_before_relax): Remove redundant
f6cf69d7 3138 blocks. Set fragP->fr_var even if relaxation type unchanged.
324bfcf3
AO
3139 Retain UNDEF_MOVI until expression decays to number.
3140 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3141 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3142 relocation types. Take fixP->fx_addnumber into account too.
3143 (shmedia_md_apply_fix): Likewise.
3144 (shmedia_md_convert_frag): Likewise.
3145 (shmedia_build_Mytes): Likewise.
3146 (sh64_consume_datalabel): Complain about nested datalabel.
3147 Support PIC relocs. Call sh_parse_name.
3148 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3149 in tc-sh.h to SHmedia reloc types.
3150 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3151 MOVI_GOTPC): New relaxation constants.
3152 (md_relax_table): Introduce relaxation directives for PIC-related
3153 constants.
3154 (sh_PIC_related_p): Handle datalabel.
3155 (sh_check_fixup): Choose SH5 PIC relocations.
3156 (sh_cons_fix_new): Added BDF_RELOC_64.
3157 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3158 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3159 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3160 current ISA is SHmedia, get 7 bytes.
3161 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3162 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3163 void function.
3164 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3165 shmedia_apply_fix3 and make void.
3166 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3167 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3168 as_bad.
3169 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3170 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3171 2001-03-14 DJ Delorie <dj@redhat.com>
3172 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3173 * doc/Makefile.in(CPU_DOCS): Ditto.
3174 * doc/c-sh64.texi: New file.
3175 * doc/as.texinfo: Add SH64 support.
3176 2001-03-13 DJ Delorie <dj@redhat.com>
3177 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3178 A_REUSE_PREV so that its purpose is more obvious.
3179 (shmedia_build_Mytes): Ditto.
3180 2001-03-07 DJ Delorie <dj@redhat.com>
3181 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3182 before processing.
3183 (sh64_vtable_inherit): Ditto.
3184 (strip_datalabels): New, strip "datalabel" from given line.
3185 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3186 pseudos.
3187 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3188 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3189 call ...
3190 (shmedia_build_Mytes): ... to here.
3191 2001-03-06 DJ Delorie <dj@redhat.com>
3192 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3193 is a generic one.
3194 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3195 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3196 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3197 address by one in call to dwarf2_emit_insn.
3198 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3199 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3200 alignment handling broken by imported changes.
3201 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3202 (sh64_handle_align): Declare.
3203 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3204 (sh64_max_mem_for_rs_align_code): Declare.
3205 (enum sh64_isa_values): Moved here from tc-sh64.c.
3206 (md_do_align): Define.
3207 (sh64_do_align): Declare.
3208 (struct sh64_tc_frag_data): New.
3209 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3210 changed.
3211 (TC_FRAG_INIT): Change to set new datatype.
3212 (struct sh64_segment_info_type): Rename member
3213 last_flushed_location to last_contents_mark. All users changed.
3214 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3215 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3216 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3217 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3218 of unsetting seen_insn.
3219 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3220 call sh64_update_contents_mark.
3221 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3222 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3223 enum sh64_isa_values.
3224 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3225 (emitting_crange): Boolean guard moved to file scope from function
3226 scope in sh64_set_contents_type.
3227 (s_sh64_abi): New.
3228 (sh64_update_contents_mark): New; most split out from
3229 sh64_flush_pending_output.
3230 (shmedia_md_end): Call sh64_update_contents_mark. Set
3231 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3232 (sh64_do_align): New function.
3233 (sh64_max_mem_for_rs_align_code): New function.
3234 (sh64_handle_align): Rename from shmedia_do_align. Make
3235 non-static. Add head comment. Emit zero bytes for n bytes modulo
3236 four. Change return-type to void.
3237 (shmedia_elf_new_section): Remove.
3238 (shmedia_md_assemble): Call sh64_update_contents_mark.
3239 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3240 new frag. Call sh64_update_contents_mark after making the new
3241 frag.
3242 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3243 and sh_flush_pending_output.
3244 (sh64_flag_output): Also call md_flush_pending_output, but add
3245 condition on not emitting_crange.
3246 (sh64_tc_cons_fix_new): Remove.
3247 2001-01-12 Nick Clifton <nickc@redhat.com>
3248 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3249 alignment handling scheme imported from sourceware.
3250 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3251 * config/tc-sh64.h (TARGET_FORMAT): Define.
3252 (sh64_target_format): Prototype.
3253 * config/tc-sh64.c (sh64_target_mach): New function.
3254 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3255 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3256 zero_address_frag instead of copying the frag of the symbol.
3257 (shmedia_frob_file_before_adjust): Ditto.
3258 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3259 to valueT to remove signedness.
f6cf69d7 3260 (shmedia_md_convert_frag): Add parameter final. Rename parameter
324bfcf3
AO
3261 headers to output_bfd. Do not evaluate symbols if final is false;
3262 do emit fixups.
3263 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3264 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3265 to the current frag, call shmedia_md_convert_frag to emit fixups
f6cf69d7 3266 and make frag_wane neutralize the frag. Update comments.
324bfcf3
AO
3267 * config/tc-sh.c (md_convert_frag): Change caller of
3268 shmedia_md_convert_frag.
3269 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3270 * config/tc-sh64.h: Tweak comments and correct formatting.
3271 * config/tc-sh64.c: Ditto.
3272 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3273 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3274 for the no-relocation case.
3275 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3276 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3277 wrappers.
f6cf69d7 3278 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
324bfcf3
AO
3279 comment.
3280 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3281 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3282 expansion.
3283 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3284 Correct comment.
3285 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3286 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3287 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3288 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3289 al>: Set lowest bit of field to relocate to 1 and rest to empty,
949f2b5c 3290 if reloc is emitted.
324bfcf3
AO
3291 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3292 New options plus bugfixes.
3293 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3294 "-expand-pt32".
3295 (md_parse_option): Handle new options.
3296 (md_show_usage): Add blurb for new options.
3297 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3298 (sh64_expand, sh64_pt32): New variables.
3299 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3300 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
f6cf69d7 3301 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
324bfcf3
AO
3302 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3303 <resolved previously-pc-relative relocs>: Handle
3304 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3305 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3306 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3307 points to SHcompact code.
3308 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3309 SH64PCREL16)>: Check that ISA of what operand points at and
3310 PTA/PTB matches, or emit error.
3311 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3312 SHMEDIA_BFD_RELOC_PT.
3313 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3314 operand.
3315 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3316 condition for MOVI expansion.
3317 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3318 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3319 sh64_expand.
3320 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3321 fixup.
3322 (sh64_target_format): Error-check setting of sh64_pt32 and
3323 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3324 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3325 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3326 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3327 * config/tc-sh64.c: Improve comments.
3328 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3329 not say the linker will check correctness of PTA/PTB expansion.
3330 (shmedia_md_end): Make non-static.
3331 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3332 prototype.
3333 * config/tc-sh.c (sh_finalize): Remove.
3334 * config/tc-sh.h (md_end): Do not define.
3335 Remove prototype for sh_finalize.
3336 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3337 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3338 sh64_section_data container when storing section type in tdata
3339 field in elf_section_data.
3340 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3341 EF_SH5.
3342 * Makefile.am: Update dependencies.
3343 * Makefile.in: Regenerate.
3344 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3345 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3346 dwarf2_emit_insn call with test on debug_type.
3347 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3348 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3349 CRT_SH5_ISA32 sticky for 64-bit.
3350 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3351 Generate .crange sections when switching ISA mode or emitting
3352 constants in same section as code.
3353 * config/tc-sh64.c: Reformat structure definitions.
3354 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3355 variables.
3356 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3357 to emit a .cranges descriptor when contents type changes. Only
3358 emit error if changing contents type and -no-mix is in effect.
3359 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3360 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3361 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3362 sh64_flush_last_crange over sections.
3363 When checking main symbol of datalabel symbol, check for
3364 STO_SH5_ISA32, not ISA type of section in definition.
3365 (shmedia_frob_file_before_adjust): Check main symbol for
3366 STO_SH5_ISA32; don't check ISA type of section in definition.
3367 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3368 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3369 .cranges entries have been output.
3370 (shmedia_elf_new_section): Just call md_flush_pending_output.
3371 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3372 fix. Do not set tc_segment_info_data.in_code for section. Call
3373 sh64_set_contents_type for SHmedia code.
3374 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3375 false. Call md_flush_pending_output.
3376 (sh64_target_format): Check that -no-mix and
3377 -shcompact-const-crange are used in sane combination with other
3378 options.
3379 (shmedia_md_pcrel_from_section): Check type of fix for how to
3380 adjust pc-relative.
3381 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3382 not ISA type of section in definition.
3383 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3384 hold contents-type state.
3385 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3386 (sh64_flush_pending_output): Declare.
3387 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3388 (sh64_tc_cons_fix_new): Declare.
3389 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3390 call sh64_flag_output.
3391 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3392 call sh64_set_contents_type to mark SHcompact code and set
3393 seen_insn.
3394 (md_longopts): New options "-no-mix" and
3395 "-shcompact-const-crange".
3396 (md_parse_option): Handle new options.
3397 (md_show_usage): Add blurb for new options.
3398 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3399 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3400 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3401 (sh64_last_insn_frag): New.
3402 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3403 to get frag for insn opcode for generating fixups; do not assume it
3404 is the same frag.
3405 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3406 for new insn.
3407 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3408 section.
3409 (TC_FRAG_TYPE): Define as fragS *.
3410 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3411 (sh64_last_insn_frag): Declare.
3412 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3413 not == NULL before dereferencing.
3414 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3415 Get rid of BFD section flag and EF_SH64_ABI64.
3416 * config/tc-sh64.c (shmedia_frob_section_type): Use
3417 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3418 communicate the section as containing SHmedia code. Describe why.
3419 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3420 EF_SH64 regardless of ABI.
3421 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3422 in error message. Handle resolved expressions for
3423 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3424 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3425 (shmedia_check_limits): Handle BFD_RELOC_64.
3426 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3427 a STO_SH5_ISA32 symbol, only the BFD value.
3428 2000-12-11 Ben Elliston <bje@redhat.com>
3429 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3430 dwarf2_generate_asm_lineno.
3431 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3432 Handle PC-relative MOVI expansions with assembler relaxation.
3433 Generate PC-relative relocs from 16-bit PC-relative expressions.
3434 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3435 (shmedia_md_pcrel_from_section): ...here.
3436 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3437 turned completely resolved. Adjust relocation type for 16-bit
f6cf69d7 3438 immediate operands that has turned PC-relative. Adjust back for
324bfcf3
AO
3439 MD_PCREL_FROM_SECTION being applied twice.
3440 (shmedia_md_convert_frag): Always emit reloc for expression with
3441 global or weak symbol. Handle relaxation result for PC-relative
3442 expressions.
3443 (shmedia_md_estimate_size_before_relax): An expression with a weak
3444 or global symbol can not be relaxed. Break out tests for
3445 relaxable symbol into variable sym_relaxable.
3446 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3447 UNDEF_MOVI)>: Break out any PC-relative expression and change
3448 relaxation type.
3449 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3450 opjp.
3451 <case A_IMMS16>: Fix typo for initial minor relaxation type of
f6cf69d7 3452 MOVI expansion. If X_op_symbol of the immediate expression is
324bfcf3
AO
3453 set, make an expression symbol for the argument to frag_var.
3454 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3455 relaxations.
3456 (END): Adjust for new relaxations.
3457 (md_relax_table): Add entries for new relaxations.
3458 2000-12-07 Ben Elliston <bje@redhat.com>
3459 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3460 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3461 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3462 SHORI operand offsets in PT/PTA/PTB expansions.
3463 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3464 Implement DataLabel semantics.
3465 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3466 shmedia_frob_file_before_adjust.
3467 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3468 (DATALABEL_SUFFIX): Define.
3469 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3470 symbol list to update "datalabel" symbols to their main symbol
3471 counterparts.
3472 (shmedia_frob_file_before_adjust): New.
3473 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3474 undefined and set STT_DATALABEL.
3475 (sh64_frob_label): Initialize TC symbol field.
f6cf69d7 3476 (sh64_consume_datalabel): Actually implement semantics. New
324bfcf3
AO
3477 parameter operandf, call it instead of expression.
3478 (sh64_exclude_symbol): New.
3479 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3480 to sh64_consume_datalabel.
3481 (tc_symbol_new_hook): Define to tc_frob_symbol.
3482 (TC_SYMFIELD_TYPE): Define to symbolS *.
3483 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3484 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3485 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3486 case.
3487 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3488 generating dwarf2 debug information.
3489 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3490 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3491 elf64-sh64 for the 64-bit ABI.
3492 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3493 option.
3494 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3495 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3496 case-insensitivity.
3497 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3498 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3499 (enum sh64_abi_values): New type.
3500 (enum sh64_isa_values): New type.
3501 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3502 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3503 (sh64_abi): Replace shmedia_64.
3504 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3505 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3506 (s_sh64_mode): Check validity for this target.
3507 (sh64_target_format): Initialize defaults for ISA and ABI.
3508 Fallback to old object format if no SH64 ISA or ABI has been
3509 specified.
3510 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3511 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3512 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3513 * config/tc-sh64.h: Fix typo in comment.
3514 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3515 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3516 <PT fixups for absolute values>: Size will be longest, not
3517 shortest.
3518 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3519 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3520 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3521 and l1 to hold lowercase of two first characters. Change all
3522 remaining TO_LOWER to tolower.
3523 * config/tc-sh64.c (TO_LOWER): Delete.
3524 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3525 (md_parse_name): Define.
3526 (sh64_consume_datalabel): Declare.
3527 (DOLLAR_DOT): Define.
3528 * config/tc-sh64.c (shmedia_parse_exp): New.
3529 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3530 (shmedia_parse_reg): Remove const from src
3531 parameter.
3532 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3533 (shmedia_md_assemble): Ditto for op_end variable.
3534 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3535 Use shmedia_parse_exp, not parse_exp.
3536 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3537 parameter. All callers changed.
3538 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3539 callers changed.
3540 (shmedia_parse_reg): Put first two character in local variables.
3541 Use tolower, not TO_LOWER. If no register is found and argtype
3542 indicates a control register, scan shmedia_creg_table
3543 case-insensitive.
3544 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3545 * Makefile.am (CPU_TYPES): Add sh64.
3546 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3547 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3548 Regenerate dependencies.
3549 * Makefile.in: Regenerate.
3550 * configure.in: Add support for sh64-*-elf*.
3551 * configure: Regenerate.
3552 * config/tc-sh64.h: New.
3553 * config/tc-sh64.c: New.
3554 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3555 .mode, .isa and .uaquad.
3556 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3557 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3558 [HAVE_SH64] (END): Define as 10.
3559 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3560 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3561 MOVI_64): Define.
3562 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3563 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3564 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3565 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3566 Define.
3567 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3568 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3569 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3570 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3571 SHmedia instructions. Handle state-change after switching to
3572 SHcompact.
3573 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3574 (md_parse_option) [HAVE_SH64]: Parse new options.
3575 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3576 (md_convert_frag) [HAVE_SH64] <default>: Call
3577 shmedia_md_convert_frag instead of abort.
3578 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3579 BFD_RELOC_SH_SHMEDIA_CODE.
3580 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3581 SHcompact or SHmedia code.
3582 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3583 shmedia_md_apply_fix instead of abort.
3584 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3585 result from calling shmedia_md_estimate_size_before_relax instead
3586 of calling abort.
3587 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3588 do the work.
3589 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3590 shmedia_init_reloc and do nothing more if it returns non-zero.
3591 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3592 * po/POTFILES.in: Regenerate.
3593 * po/gas.pot: Regenerate.
3594
ac3f04d7
AO
35952002-02-06 Alexandre Oliva <aoliva@redhat.com>
3596
6b32719e
AO
3597 * config/tc-sh.c (parse_at): Install the correct version of
3598 2002-02-04's patch.
949f2b5c 3599
ac3f04d7
AO
3600 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3601 assume fixP->fx_subsy is non-NULL.
3602
7679ead9
AO
36032002-02-04 Alexandre Oliva <aoliva@redhat.com>
3604
3605 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
fdf4122d 3606 A_DISP_PC_ABS, and adjust it by -4.
7679ead9
AO
3607 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3608 expected.
3609 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3610 the operand type is not A_DISP_PC_ABS.
3611
5459d7a0
HPN
36122002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3613
3614 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3615 common and weak symbols. Handle common and weak symbols as
3616 undefined symbols with regards to GREG handling and merging.
3617 (mmix_frob_file): Ditto.
3618
006336b8
JT
36192002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3620
3621 * configure.in (hppa-*-netbsd*): New target.
3622 * configure: Regenerate.
3623 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3624
9e0665bc
AM
36252002-02-02 Alan Modra <amodra@bigpond.net.au>
3626
3627 * config/tc-v850.c: Add missing prototypes amd use old-style
3628 function definitions.
3629 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3630 (sdata_section tdata_section, zdata_section, sbss_section,
3631 tbss_section, zbss_section, rosdata_section, rozdata_section,
3632 scommon_section, tcommon_section, zcommon_section,
3633 call_table_data_section, call_table_text_section): Delete.
3634 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3635 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3636 v850_call_table_data, v850_call_table_text): Delete.
3637 (struct v850_seg_entry): New.
3638 (v850_seg_table): New.
3639 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3640 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3641 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3642 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3643 (do_v850_seg): New.
3644 (v850_seg): New.
3645 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3646 recording of alignment.
3647 (md_pseudo_table): Use v850_seg.
3648 (md_begin): Don't init .call_table_data and .call_table_text here.
3649 Set v850_seg_table bss entry.
3650
973eb340
HPN
36512002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3652
3653 Support on-demand global register allocation by passing on
3654 base-plus-offset relocs to the linker.
3655 * config/tc-mmix.c: Tweak and fix typos in comments.
949f2b5c 3656 (allocate_undefined_gregs_in_linker): New variable.
973eb340
HPN
3657 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3658 (md_longopts): Add --linker-allocated-gregs.
3659 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3660 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3661 (md_show_usage): Update text for -x. Add text for
3662 --linker-allocated-gregs.
3663 (tc_gen_reloc): Derive default value for addend from val and
3664 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
3665 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3666 GREG if allocate_undefined_gregs_in_linker.
3667 * doc/as.texinfo (Overview) <Target MMIX options>: Add
3668 --linker-allocated-gregs.
3669 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3670 --linker-allocated-gregs. Mention that it's implied by -x.
3671 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3672 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3673
3674 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3675
ba323545
AM
36762002-02-01 Alan Modra <amodra@bigpond.net.au>
3677
3678 * Makefile.am: Run "make dep-am"
3679 * Makefile.in: Regenerate.
3680
3b16e843
NC
36812002-01-31 Ivan Guzvinec <ivang@opencores.org>
3682
3683 * config/tc-or32.c: New file.
3684 * config/tc-or32.h: New file.
3685 * configure.in: Add support for or32 targets.
3686 * configure: Regenerate.
3687 * config/obj-coff.c: Add support for or32 targets.
3688 * config/obj-coff.h: Add support for or32 targets.
3689 * Makefile.am: Add support for or32 targets.
3690 * Makefile.in: Regenerate.
3691 * NEWS: Mention support for OpenRISC.
3692 * doc/Makefile.in: Regenerate.
3693 * po/POTFILES.in: Regenerate.
3694 * po/gas.pot: Regenerate.
3695
912a07db
RS
36962002-01-30 Richard Sandiford <rsandifo@redhat.com>
3697
3698 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3699 and mod.
3700
4514d474
CD
37012002-01-29 Chris Demetriou <cgd@broadcom.com>
3702
3703 * config/tc-mips.c (tc_gen_reloc): Arrange for
3704 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3705 their LO16 parts, even for ELF.
3706
246fcdee
DJ
37072002-01-29 Daniel Jacobowitz <drow@mvista.com>
3708
3709 * config/tc-i386.c: Protect definitions of true and false
3710 from redefinition.
3711
00e6e13d
JJ
37122002-01-28 Jakub Jelinek <jakub@redhat.com>
3713
3714 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3715 made because of .weak, if they are neither defined nor used in any
3716 way.
3717
4867be41
DJ
37182002-01-27 Daniel Jacobowitz <drow@mvista.com>
3719
3720 * configure: Regenerated.
3721
7562a296
HPN
37222002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3723
3724 * doc/Makefile.am (install): Depend on install-info.
3725 * doc/Makefile.in: Regenerate.
3726
1caa7b23
NC
37272002-01-26 Nick Clifton <nick@redhat.com>
3728
3729 * po/fr.po: Updated version
3730
166e23f9
KH
37312002-01-24 Kazu Hirata <kazu@hxi.com>
3732
3733 * config/tc-h8300.c (check_operand): Don't print a warning
3734 when a valid 24-bit address is given to a 16-bit address
3735 operand.
3736
538cd60f
AO
37372002-01-24 Alexandre Oliva <aoliva@redhat.com>
3738
3739 * config/tc-sh.c (sh_elf_suffix): Removed.
3740 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3741 sh_end_of_match, sh_parse_name): New functions.
3742 (sh_elf_cons): Simplify.
3743 (parse_exp): Reject misplaced PIC operands.
3744 (md_undefined_symbol): Simplify.
3745 (sh_fix_adjustable): Let @GOTOFF be adjusted.
3746 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3747 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3748 Complain if subsy remains at the end.
3749 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3750 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3751
b386f24b
AO
37522002-01-22 Alexandre Oliva <aoliva@redhat.com>
3753
3754 * config/tc-mn10300.c (xr_registers): Move `pc'...
3755 (other_registers): ... here.
3756
c46f0c34
AM
37572002-01-22 Alan Modra <amodra@bigpond.net.au>
3758
3759 * Makefile.am: Run "make dep-am".
3760 * Makefile.in: Regenerate.
3761 * gas/po/POTFILES.in: Regenerate.
3762
23deb923
DD
37632002-01-21 DJ Delorie <dj@redhat.com>
3764
3765 * config/obj-coff.c (obj_coff_init_stab_section): Make the
3766 stabstr_name allocation permanent, as it will be referenced from
3767 the section hash.
3768
9596feea
JT
37692002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3770
3771 * configure.in (ia64-*-netbsd*): New target.
949f2b5c 3772 * configure: Regenerate.
9596feea 3773
92081f48
HPN
37742002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3775
3776 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3777 to @dots call.
3778 <Detailed description, ARM options>: Ditto.
3779 * doc/c-arm.texi (ARM Options): Ditto.
3780
63e63b07
RE
37812002-01-18 Richard Earnshaw <rearnsha@arm.com>
3782
3783 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3784 do_mia, do_mar and do_mra respectively.
3785 (do_mav_*): Renamed from do_c_*.
3786 (mav_reg_required_here, mav_parse_offset): Renamed from
3787 cirrus_reg_required_here and cirrus_parse_offset respectively.
3788 (MAV_MODE?): Renamed from CIRRUS_MODE?.
3789
ea6ef066
RE
37902002-01-18 Richard Earnshaw <rearnsha@arm.com>
3791 Keith Walker <keith.walker@arm.com>
3792
3793 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3794 (insns): Add pattern for bxj instruction.
3795 (do_bxj): New function.
3796 (arm_cpus): Add arm926ej.
3797 (arm_archs): Add armv5tej.
3798
bc89618b
RE
37992002-01-18 Richard Earnshaw <rearnsha@arm.com>
3800
3801 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3802
d193a22a
RE
38032002-01-19 Keith Walker <keith.walker@arm.com>
3804
3805 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3806
03b1477f
RE
38072002-01-18 Richard Earnshaw <rearnsha@arm.com>
3808
3809 * NEWS: Mention new ARM command-line options and VFP support.
3810
949f2b5c 3811 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
03b1477f
RE
3812 uses changed.
3813 (ARM_CEXT_MAVERICK): Similarly.
3814 (ARM_ANY): Now means any core instruction.
3815 (CPU_DEFAULT): Default to ARM_ANY.
3816 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3817 (pic_code): Declare for all object types. Make type int.
3818 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3819 (march_fpu_opt, mfpu_opt): Declare.
3820 (md_longopts): Tidy up conditional definitions.
3821 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3822 (arm_long_opts): New tables.
3823 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3824 (arm_parse_extension): New function.
3825 (md_parse_option): Rewrite using new table-driven system.
3826 (md_show_usage): Use new table-driven system.
3827 (md_begin): Calculate cpu_variant from command line option data.
3828 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3829 command-line options.
3830 * doc/c-arm.texi: Likewise.
3831
2a538ba5
AJ
38322002-01-18 Andreas Jaeger <aj@suse.de>
3833
3834 * as.c (parse_args): Update year.
3835
b1ffc257 38362002-01-17 Timothy Wall <twall@alum.mit.edu>
2a538ba5 3837
b1ffc257
TW
3838 * config/tc-tic54x.c (encode_address): Add a more informative
3839 warning about incorrect syntax.
3840
328577ad
NC
38412002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3842
3843 * po/gas.pot: Regenerate.
3844
06f030db
NC
38452002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3846
3847 * macro.c (get_any_string): Add no-c-format comment to prevent
3848 confusion when translating string.
3849 * gasp.c (get_any_string): Add no-c-format comment to prevent
3850 confusion when translating string.
3851
394f9b3a
TS
38522002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3853 Johannes Stezenbach <js@convergence.de>
3854 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3855 matched before the shorter ones.
3856 (my_getSmallParser): Fix handling of nested parentheses in
3857 percent_op's. Code cleanup.
3858 (my_getPercentOp): New function, code from my_getSmallParser.
3859 (my_getSmallExpression): Fix handling of closing parentheses.
3860 Code cleanup. Better comments.
3861
af3ae48d
NC
38622002-01-16 Nick Clifton <nickc@redhat.com>
3863
3864 po/tr.po: New file: Turkish translation.
3865 configure.in (LINGUAS): Add "tr".
3866 configure: Regenerate.
3867
bfae80f2
RE
38682002-01-15 Richard Earnshaw <rearnsha@arm.com>
3869
3870 Support for VFP instructions
3871 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3872 (cp_address_required_here): New argument wb_ok. When false, do not
3873 accept write-back forms of addressing. Change all callers.
3874 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3875 (FPU_VFP_EXT_V2): Define.
3876 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3877 Define in terms of above.
3878 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3879 (vfp_reg): New struct.
3880 (vfp_regs): New array of registers.
3881 (insns): Add VFP instructions.
3882 (sn_table): New array of VFP single-precision register names.
3883 (dn_table): New array of VFP double-precision register names.
3884 (all_reg_maps): Add the new register tables.
3885 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
3886 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3887 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3888 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3889 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3890 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3891 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3892 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3893 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3894 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3895 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3896 (do_vfp_sp_dp_cvt): New functions.
3897 (md_begin): Set soft-float flag for appropriate VFP work.
3898 (md_atof): Handle VFP-format doubles.
3899 (md_parse_option): Handle VFP command-line options.
3900 (md_show_usage): Display VFP command-line options.
3901
fcd6d8d6
RE
39022002-01-15 Richard Earnshaw <rearnsha@arm.com>
3903
2a538ba5 3904 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
fcd6d8d6
RE
3905 various command line options.
3906
1f7fd478
NC
39072002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3908
3909 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3910 vtinherit relocs.
3911 (xstormy16_md_apply_fix3): Do not return a value.
3912
21f0f23a
RE
39132002-01-14 Richard Earnshaw <rearnsha@arm.com>
3914
3915 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3916 the -EL/-EB option that matches the target's endianness.
3917 (md_parse_option): Likewise.
3918
ce058b6c
RE
39192002-01-14 Richard Earnshaw <rearnsha@arm.com>
3920
2a538ba5 3921 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
ce058b6c
RE
3922 is not dependent on ARM_BI_ENDIAN.
3923
f03698e6
RE
39242002-01-14 Richard Earnshaw <rearnsha@arm.com>
3925
3926 * tc-arm.c (all error messages): Normalize capitalization of messages.
3927
3928 * tc-arm.h (md_operand): Delete define.
3929 * tc-arm.c (in_my_get_expression): New static variable.
3930 (my_get_expression): Set and clear it.
3931 (md_operand): New function. If called from my_get_expression
3932 put the error in inst.error.
3933 (output_inst): Now takes argument of instruction being assembled.
3934 Print it out with any error message.
3935 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3936 with '=' syntax.
3937 (end_of_line): Don't update inst.error if it is already set.
3938
e28cd48c
RE
39392002-01-11 Richard Earnshaw <rearnsha@arm.com>
3940
6088b00e 3941 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
e28cd48c
RE
3942 op that can be translated into a mvn instruction.
3943
1cd8ff38
NC
39442002-01-11 Steve Ellcey <sje@cup.hp.com>
3945
3946 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3947 setting default md.flags.
3948 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3949 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3950 * gas/config/tc-ia64.c (setup_unwind_header): Add support
3951 for 32 bit unwind info blocks.
3952 (generate_unwind_image): Add support for different types
3953 of unwind images (32 bits and/or big-endian).
3954 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3955 (ia64_target_format): Add support for hpux target formats.
3956 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3957 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3958 SHT_FINI_ARRAY elf section types.
3959
6c43fab6
RE
39602002-01-10 Richard Earnshaw <rearnsha@arm.com>
3961
3962 * tc-arm.c (struct reg_entry): Move before prototypes.
3963 (int_register, cp_register, fp_register): Delete.
3964 (reg_table): Delete. Replaced with ...
3965 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3966 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3967 (mav_dspsc_table): ... one table per register set.
3968 (arm_reg_hsh): Delete.
3969 (struct reg_map): New structure.
3970 (all_reg_maps): New array.
3971 (enum arm_reg_type): New enums.
3972 (build_reg_hsh): New function.
3973 (insert_reg_alias): Use hash table passed by caller. Adjust all
3974 callers.
3975 (create_register_alias): New function, split out from ...
3976 (md_assemble): ... here.
3977 (md_begin): Build new register hash tables.
3978 (arm_reg_parse): New argument for the hash table to search. Adjust all
3979 callers.
3980 (arm_reg_parse_any): New function.
3981 (co_proc_number): Look up the processor number in the processor hash
3982 table.
3983 (cirrus_regtype): Delete.
3984 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3985 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3986 (ARM_EXT_MAVERICKsc_register): Delete.
3987 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3988 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3989 functions.
3990 (do_c_triple_4, do_c_triple_5): Delete.
3991 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3992 (do_c_quad_6): Delete.
3993 (do_c_quad_6[ab]): New functions.
3994 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3995 arguments to use new register parsing methods.
3996 (cirrus_reg_required_here): Likewise.
3997 (insns): Reclassify cirrus maverick worker functions.
3998 (cirrus_valid_reg): Delete.
3999
8d05742f
JT
40002002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4001
4002 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4003 (sh*-*-netbsdelf*): New target.
4004 * configure: Regenerate.
2a538ba5 4005 * tc-sh.h: Update copyright years.
8d05742f
JT
4006 (TARGET_FORMAT): Add version for TE_NetBSD.
4007
ceac3f62
NC
40082002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4009
4010 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4011 negative.
4012
d7861ad2
AM
40132002-01-06 Alan Modra <amodra@bigpond.net.au>
4014
4015 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4016 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4017
7a621144
DJ
40182002-01-05 Daniel Jacobowitz <drow@mvista.com>
4019
4020 * tc-mips.c (mips_cprestore_valid): New flag.
4021 (mips_frame_reg_valid): New flag.
4022 (macro) [M_JAL_2]: Check both flags.
4023 [M_JAL_A]: Likewise.
4024 (s_cprestore): Set mips_cprestore_valid.
4025 (tc_get_register): If setting mips_frame_reg, set
4026 mips_frame_reg_valid and clear mips_cprestore_valid.
4027 (s_mips_ent): Clear both flags.
4028 (s_mips_end): Clear both flags.
4029
7c6beb69
AM
40302002-01-05 Alan Modra <amodra@bigpond.net.au>
4031
4032 * write.c (write_object_file): Make use of bfd_section_list_remove.
4033 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4034 * config/tc-mmix.c (mmix_frob_file): Likewise.
4035
8a8b2d4b
AJ
40362002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4037
4038 * configure.in (i386-*-netbsdelf*): Collapse target into...
4039 (i386-*-netbsd*): ...this. Add support for x86-64.
4040 * configure: Regenerated.
4041
a09cf9bd
MG
40422002-01-03 matthew green <mrg@redhat.com>
4043
4044 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4045
23b7f870
NC
40462002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4047
4048 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4049 NULL frag link.
4050
08d56133
NC
4051For older changes see ChangeLog-0001
4052\f
4053Local Variables:
4054mode: change-log
4055left-margin: 8
4056fill-column: 74
4057version-control: never
4058End:
This page took 0.267256 seconds and 4 git commands to generate.