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