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