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