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