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