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