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