1 2005-04-09 Alan Modra <amodra@bigpond.net.au>
3 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
4 call. Don't do the COFF hacks for multi-emulation gas. Move
5 demand_empty_rest_of_line back to caller.
6 (s_set, equals): demand_empty_rest_of_line here.
9 * as.h (rs_dummy): Define.
10 * symbols.c (symbol_X_add_number): New function.
11 * symbols.h (symbol_X_add_number): Declare.
12 * stabs.c (aout_process_stab): Tidy symbol frag setting.
13 * read.c (assign_symbol): New function, split out from s_set.
14 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
15 Fix COFF hacks for multi-emulation gas.
16 (s_set): Call assign_symbol. Remove "register" keyword.
17 (set_zero_frag): New function.
18 (pseudo_set): Always check for assignment to section syms.
19 Always set segment and frag of symbol, and likewise extern for
20 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
21 special case exp.X_add_number non-zero for O_symbol expressions.
22 (equals): Use assign_symbol.
24 2005-04-08 Bob Wilson <bob.wilson@acm.org>
26 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
29 2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
31 * config/tc-i386.c (tc_gen_reloc): Don't turn
32 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
34 2005-04-06 Nick Clifton <nickc@redhat.com>
36 * po/rw.po: New translation: Kinyarwanda
37 * configure.in (ALL_LINGUAS): Add rw
38 * configure: Regenerate.
40 2005-04-05 Sterling Augustine <sterling@tensilica.com>
41 Bob Wilson <bob.wilson@acm.org>
43 * config/tc-xtensa.c (branch_align_power): New.
44 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
45 future_alignment_required): Use branch_align_power to check section
46 alignment as well as xtensa_fetch_width when aligning branch targets.
48 2005-04-05 Bob Wilson <bob.wilson@acm.org>
50 * config/tc-xtensa.c: Warning fixes throughout.
51 (xtensa_fetch_width): Change to unsigned.
52 (assemble_nop, xtensa_find_unaligned_branch_targets,
53 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
54 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
55 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
56 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
57 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
58 get_text_align_max_fill_size, get_text_align_nop_count,
59 get_text_align_nth_nop_size, get_noop_aligned_address,
60 get_aligned_diff, convert_frag_align_next_opcode,
61 convert_frag_immed_finish_loop, xtensa_create_property_segments,
62 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
63 types, avoiding size_t and using offsetT and addressT appropriately.
64 (get_text_align_power): Clean up types. Avoid incorrect bound.
65 (get_text_align_fill_size): Clean up types. Restructure for clarity.
67 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
69 * config/tc-ia64.c (start_unwind_section): Undo the change
71 (generate_unwind_image, dot_endp): Likewise.
73 2005-04-01 David Mosberger <davidm@hpl.hp.com>
75 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
76 le_nop_stop arrays and initializers to file scope.
77 (md_begin): When generating code for anything other than
78 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
80 2005-04-01 Jan Beulich <jbeulich@novell.com>
82 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
85 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
87 * NEWS: Mention [fdgh]_floating.
88 * config/atof-vax.c: Fix some whitespace.
89 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
91 2005-04-01 Nick Clifton <nickc@redhat.com>
93 * configure.in: Add a check for <unistd.h> providing a prototype
94 for getopt() which is compatible with the one in
95 include/getopt.h. If so then define HAVE_DECL_GETOPT.
96 * configure: Regenerate.
97 * config.in (HAVE_DECL_GETOPT): Add.
99 2005-04-01 Jan Beulich <jbeulich@novell.com>
101 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
103 2005-04-01 Jan Beulich <jbeulich@novell.com>
105 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
106 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
108 2005-03-30 Julian Brown <julian@codesourcery.com>
110 * config/tc-arm.c (arm_adjust_symtab): Rename
111 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
113 2005-03-30 Julian Brown <julian@codesourcery.com>
115 * config/tc-arm.c (mapping_state): Change documentation in function
116 comment to cross-reference spec instead. Change type of mapping symbols
118 (arm_adjust_symtab): Don't change type of mapping symbols here.
120 2005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
122 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
123 * config.in: Regenerate.
124 * configure: Regenerate.
125 * configure.in: Check for ffs decl and alphabetize.
127 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
128 Phil Blundell <philb@gnu.org>
130 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
131 (md_apply_fix3): Mark TLS symbols.
132 (tc_gen_reloc): Handle TLS relocations.
133 (arm_fix_adjustable): Ignore TLS relocations.
134 (s_arm_elf_cons): Support expressions after decorated symbols.
136 2005-03-29 Julian Brown <julian@codesourcery.com>
138 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
139 whether personality routine index N has been output for this section.
140 (mapping_state): tc_segment_info_data now struct not enum.
141 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
142 handled on section change.
143 (create_unwind_entry): Previous code to output dependency removed.
144 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
146 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
147 arm_segment_info_type.
148 (arm_segment_info_type): New struct.
149 * testsuite/gas/arm/unwind.d: Update expected output.
151 2005-03-28 Sterling Augustine <sterling@tensilica.com>
152 Bob Wilson <bob.wilson@acm.org>
154 * config/tc-xtensa.c (do_align_targets): Update comment.
155 (xtensa_frob_label): Compute "freq" before possibly switching frags.
156 Insert a LOOP_END frag before every loop target, and do not overload
157 DESIRE_ALIGN_IF_TARGET frags with loop end information.
158 (xg_assemble_vliw_tokens): Use do_align_targets.
159 (xtensa_fix_target_frags): Remove code to convert a
160 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
161 negatable branch at the end of a loop.
162 (frag_can_negate_branch): Delete.
164 2005-03-28 David Mosberger <davidm@hpl.hp.com>
165 H.J. Lu <hongjiu.lu@intel.com>
168 NEWS: Mention "-mtune=[itanium1|itanium2]".
170 * config/tc-ia64.c (md): Add tune.
171 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
172 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
173 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
174 B unit NOPs are discouraged for McKinley-derived cores.
175 (md_begin): Don't hardcode the "extra_goodness()" function in
177 (ia64_init): Set md.tune to itanium2.
179 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
180 * doc/c-ia64.texi: Likewise.
182 2005-03-27 Ian Lance Taylor <ian@airs.com>
184 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
185 bad C_EFCN symbol, print its name.
187 2005-03-25 Bob Wilson <bob.wilson@acm.org>
189 * config/tc-xtensa.c (use_longcalls): Delete.
190 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
191 the use_longcalls flag is set. Do this before checking the segment.
192 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
193 expand direct calls at this point.
194 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
195 (xtensa_find_unmarked_state_frags): Likewise.
196 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
197 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
198 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
199 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
201 2005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
203 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
205 2005-03-25 Hans-Peter Nilsson <hp@axis.com>
207 * config/tc-cris.h: Convert to ISO C90.
208 * config/tc-cris.c: Ditto.
209 (md_estimate_size_before_relax): Remove obsolete comment for
210 parameter "segment_type".
211 (md_begin): Document reason for cast of hash_insert argument.
212 (md_atof): Correct type of parameter "type".
214 2005-03-24 Nick Clifton <nickc@redhat.com>
216 * write.h (bit_fix_new): Remove redundant prototype.
217 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
218 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
219 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
220 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
221 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
222 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
223 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
224 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
225 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
226 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
227 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
228 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
229 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
230 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
231 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
232 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
233 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
234 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
235 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
236 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
237 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
238 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
239 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
240 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
241 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
242 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
243 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
244 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
245 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
246 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
247 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
248 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
249 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
250 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
251 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
252 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
253 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
254 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
255 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
256 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
257 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
258 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
259 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
260 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
261 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
262 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
263 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
264 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
265 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
266 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
267 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
268 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
269 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
270 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
271 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
273 2005-03-23 Jim Blandy <jimb@redhat.com>
275 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
278 2005-03-23 Mike Frysinger <vapier@gentoo.org>
279 Nick Clifton <nickc@redhat.com>
281 * configure.tgt: Accept any C library to accompany a GNU Linux
282 implementation, not just the GNU C library.
283 * configure.in: Likewise.
284 * configure: Regenerate.
286 2005-03-23 Nick Clifton <nickc@redhat.com>
288 * config/tc-tic30.c: Convert to ISO C90 formatting.
289 * config/tc-tic30.h: Convert to ISO C90 formatting.
290 * config/tc-pdp11.c: Convert to ISO C90 formatting.
291 * config/atof-vax.c: Convert to ISO C90 formatting.
293 2005-03-21 Maciej W. Rozycki <macro@mips.com>
295 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
296 relocations correctly as well.
297 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
298 relocations in mergeable sections section-relative either.
300 2005-03-21 Bob Wilson <bob.wilson@acm.org>
302 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
304 2005-03-21 Nick Clifton <nickc@redhat.com>
306 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
307 warning by providing a prototype for sh_symbian_find_elf_flags.
309 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
312 2005-03-21 Alan Modra <amodra@bigpond.net.au>
314 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
315 along with other formats that set bfd_gas. Remove unnecessary
316 setting of bfd_gas. Delete strongarm cases in generic_target
319 2005-03-21 Alan Modra <amodra@bigpond.net.au>
322 * config/tc-m68k.c (TRUNC, SEXT): Define.
323 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
324 (m68k_ip): Truncate or sign extend expressions as appropriate.
326 (md_apply_fix3): Use SEXT.
328 2005-03-21 Alan Modra <amodra@bigpond.net.au>
330 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
331 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
332 (obj-vms.o): Delete rule.
334 * Makefile.in: Regenerate.
335 * aclocal.m4: Regenerate.
336 * doc/Makefile.in: Regenerate.
337 * po/POTFILES.in: Regenerate.
339 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
341 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
342 flag for coldfire v4e.
344 2005-03-17 Bob Wilson <bob.wilson@acm.org>
346 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
347 xg_apply_fix_value and return a value to indicate success.
348 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
349 (xtensa_force_relocation): Remove checks for VTABLE relocs.
350 (xtensa_validate_fix_sub): New.
351 (xtensa_fix_adjustable): Remove check for external or weak symbols.
352 (tc_gen_reloc): Move code to handle difference of symbols and code to
353 apply tentative fix values to ...
354 (md_apply_fix3): ...here. Enable standard overflow checks for simple
355 8, 16, and 32 bit relocations. Apply fixes for slot-specific
356 relocations when linkrelax flag is not set.
357 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
358 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
360 2005-03-17 Jan Beulich <jbeulich@novell.com>
362 * config/tc-i386.c (i386_scale): Beautify error message.
363 (Intel syntax comments): Update.
364 (struct intel_parser_s): Add fields in_offset, in_bracket, and
366 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
368 (intel_bracket_expr): Declare.
369 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
370 of the function body in a loop allowing to split an operand into two.
371 Replace calls to malloc and checks of it returning non-NULL with
372 calls to xmalloc/xstrdup.
373 (intel_expr): SHORT no longer handled here. Add comment indicating
374 comparison ops need implementation.
375 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
376 Check right operand of - does not specify a register when parsing
377 the address of a memory reference.
378 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
379 Check operands do not specify a register when parsing the address of
381 (intel_e06, intel_e06_1): Likewise.
382 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
383 handle SHORT as well as unary + and -. Don't accept : except for
384 segment overrides or in direct far jump/call insns.
385 (intel_brack_expr): New.
386 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
388 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
389 through in certain cases. Use intel_brack_expr. Add new diagnostics.
390 Allow symbolic constants as register scale value.
391 (intel_get_token): Replace call to malloc and check of return value
392 with call to xmalloc. Change handling for FLAT to match MASM's.
393 (intel_putback_token): Don't try to back up/free current token if
396 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
398 * configure.tgt: Set emulation for arm-*-eabi*.
399 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
400 * config/te-armeabi.h: New file.
401 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
402 * config/te-symbian.h: Include "te-armeabi.h".
404 2005-03-16 Nick Clifton <nickc@redhat.com>
406 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
407 local variable in case it is clobbered by the setjmp.
409 2005-03-16 Nick Clifton <nickc@redhat.com>
410 Ben Elliston <bje@au.ibm.com>
412 * configure.in (werror): New switch: Add -Werror to the
413 compiler command line. Enabled by default. Disable via
415 * configure: Regenerate.
417 2005-03-16 Nick Clifton <nickc@redhat.com>
419 * config/obj-coff.h: Convert to ISO C90 formatting.
420 * config/obj-coff.c: Convert to ISO C90 formatting.
422 2005-03-15 Zack Weinberg <zack@codesourcery.com>
424 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
425 is_mls parameter; do not diagnose Rm==Rd when is_mls.
426 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
427 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
428 (insns): Add ARMv6T2 instructions:
429 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
430 (arm_archs): Add V6T2 variants.
432 2005-03-15 Nick Clifton <nickc@redhat.com>
434 * NEWS: Add cutoff for changes in 2.16 release.
436 2005-03-15 Jan Beulich <jbeulich@novell.com>
438 * expr.c (operand): Merge handling of unary + into that for unary
441 2005-03-14 Eric Christopher <echristo@redhat.com>
443 * config/tc-mips.c: Include dw2gencfi.h.
444 (mips_cfi_frame_initial_instructions): New.
445 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
446 (tc_cfi_frame_initial_instructions): Ditto.
447 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
448 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
449 * Makefile.am: Update dependencies.
450 * Makefile.in: Regenerate.
452 2005-03-15 Alan Modra <amodra@bigpond.net.au>
454 * po/es.po: Commit new Spanish translation.
456 2005-03-14 Alan Modra <amodra@bigpond.net.au>
458 * po/tr.po: Commit new Turkish translation.
460 2005-03-12 Zack Weinberg <zack@codesourcery.com>
462 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
465 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
467 * config-gas.com: Mark vax-vms as obsolete.
468 * configure.in: Remove fmt=vms support.
469 * config.in: Regenerate.
470 * configure: Regenerate.
471 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
473 2005-03-10 Sterling Augustine <sterling@tensilica.com>
474 Bob Wilson <bob.wilson@acm.org>
476 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
477 when checking if xg_resolve_literals needs to be called.
478 * config/tc-xtensa.h: Fix spelling typo in a comment.
480 2005-03-10 Jan Beulich <jbeulich@novell.com>
482 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
483 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
484 crafted structure declarations with the types from macro.h.
486 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
488 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
489 for -mno-shared optimization.
491 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
493 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
494 (MAX_NOPS): Bump to 4.
495 (mips_fix_vr4130): New variable.
496 (nops_for_vr4130): New function.
497 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
498 nops_for_vr4130 if working around VR4130 errata.
499 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
500 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
501 (md_parse_option): Handle them.
502 (md_show_usage): Print them.
503 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
505 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
507 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
510 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
512 * config/tc-mips.h (mips_flush_pending_output): Delete.
513 (mips_emit_delays): Declare.
514 (md_flush_pending_output): Use mips_emit_delays.
515 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
516 the previous instructions.
517 (md_begin, append_insn, md_parse_option): Update callers.
518 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
520 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
521 (s_gpdword): Update callers.
522 (start_noreorder, end_noreorder): New functions.
523 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
524 manipulating mips_opts or prev_nop_frag directly.
525 (mips_flush_pending_output): Delete.
527 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
529 * config/tc-mips.c (mips_move_labels): New function, taken from...
530 (append_insn, mips_emit_delays): ...here.
532 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
534 * config/tc-mips.c (MAX_NOPS): New macro.
535 (history): Resize to 1 + MAX_NOPS.
536 (fix_vr4120_class): New enumeration.
537 (vr4120_conflicts): New variable.
538 (init_vr4120_conflicts): New function.
540 (insn_uses_reg): Constify first argument.
541 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
542 (nops_for_insn_or_target): New functions.
543 (append_insn): Use the new nops_for_* functions instead of inline
544 delay checks. Generalize prev_nop_frag handling to handle an
545 arbitrary history length. Insert nops into the history buffer
546 once the number of nops in prev_nop_frag is fixed.
547 (emit_delays): Use nops_for_insn instead of inline delay checks.
549 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
551 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
552 check from branch delay code. Remove unnecessary check for branches.
554 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
556 * config/tc-mips.c (dummy_opcode): Delete.
557 (nop_insn, mips16_nop_insn): New variables.
558 (NOP_INSN): New macro.
559 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
560 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
561 (md_begin): Initialize nop_insn and mips16_nop_insn.
562 (append_insn): Use the new emit_nop function to add nops, recording
563 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
564 to reserve room for the instruction and install_insn to install the
565 final form. Use insert_into_history to record the instruction in
566 the history buffer. Use move_insn to do delay slot filling.
567 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
568 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
569 (mips16_ip): Use create_insn to initialize mips_cl_insns.
571 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
573 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
574 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
575 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
576 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
577 (mips16_ip): Use the new macros instead of explicit masks and shifts.
579 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
581 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
582 and extended_p fields with a single fixed_p field.
583 (append_insn, mips_no_prev_insn): Adjust accordingly.
585 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
587 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
588 a single mips16_absolute_jump_p bit.
589 (append_insn): Adjust accordingly.
591 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
593 * config/tc-mips.h (mips_cl_insn): Move definition to...
594 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
595 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
597 (history): New variable.
598 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
599 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
600 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
601 (prev_prev_insn_unreordered): Delete.
602 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
603 (macro_start): Replace uses of prev_insn* with the equivalent history[]
606 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
608 * doc/Makefile.am: Update as.info dependencies.
609 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
611 2005-03-08 Jan Beulich <jbeulich@novell.com>
613 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
614 error, and point to .purgem documentation if someone really needs
616 * NEWS: Mention macro redefinition is now an error.
618 2005-03-08 Jan Beulich <jbeulich@novell.com>
620 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
621 emitted to. Add more precise diagnostics for non-fitting insns based
622 on that. Eliminate now superfluous special casing of MLX. Clear out
623 slot information when dropping an insn.
625 2005-03-08 Jan Beulich <jbeulich@novell.com>
627 * config/tc-ia64.c (parse_section_name): Rename to...
628 (cross_section): In addition to separating the name from the rest of
629 the arguments, also carry out the operation.
630 (dot_xdata): Use cross_section.
631 (dot_float_cons): Likewise.
632 (dot_xstringer): Likewise.
633 (dot_xdata_ua): Likewise.
634 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
636 2005-03-05 Alan Modra <amodra@bigpond.net.au>
638 * po/gas.pot: Regenerate.
640 2005-03-04 David Daney <ddaney@avtrex.com>
642 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
643 instead of '_gp' for -mno-shared optimization.
645 (s_abicalls): Document it in the comment.
646 (md_show_usage): Document the -mno-shared option.
648 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
650 * config/tc-mips.c (mips_set_options): Add sym32 field.
651 (mips_opts): Initialize it.
652 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
653 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
654 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
655 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
656 when deciding whether to use a symbolic %highest/%higher expansion.
657 (macro): Likewise. Remove o64/n32 linux hack. Always use
658 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
659 and "la". Handle constants separately from symbolic expressions in
660 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
661 and using load_register to load the high part of the address.
662 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
663 (OPTION_ELF_BASE): Bump by 2.
664 (md_longopts): Add entries for -msym32 and -mno-sym32.
665 (md_parse_option): Handle them.
666 (usage): Document them.
667 (s_mipsset): Handle ".set sym32" and ".set nosym32".
668 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
669 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
670 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
671 -msym32 and -mno-sym32.
673 2005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
675 * config/tc-mips.c (load_address): Implement GP optimization
676 for 64bit address space non-PIC. Fix formatting.
677 (macro): Likewise. Simplify code.
678 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
679 (mips_after_parse_args): Simplify code.
681 2005-03-03 Nick Clifton <nickc@redhat.com>
683 * expr.c (operand): Remove redundant code enclosed by #ifdef
684 RELAX_PAREN_GROUPING....#endif.
686 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
687 reloc is the difference of two symbols defined in the same
690 * config/tc-iq2000.c (line_comment_chars): Include the # character
691 as otherwise this breaks #APP/#NO_APP processing.
693 2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
695 * config/tc-arc.c(md_assemble): Remove dead code for handling
696 immediate indexing of ld and st .
698 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
699 Joseph Myers <joseph@codesourcery.com>
701 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
702 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
703 (parse_relocation): Check for a word break after a relocation
705 (md_apply_fix3): Handle TLS relocations, and mark thread-local
708 2005-03-02 Alan Modra <amodra@bigpond.net.au>
710 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
712 2005-03-02 Jan Beulich <jbeulich@novell.com>
714 * as.c (main): Use unlink_if_ordinary instead of unlink.
715 * messages.c (as_fatal): Likewise.
717 2005-03-02 Jan Beulich <jbeulich@novell.com>
719 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
721 (parse_register): Allow cr8...15 in all modes.
723 2005-03-02 Jan Beulich <jbeulich@novell.com>
725 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
726 etc. like normal symbol references (T_ID).
728 2005-03-02 Alan Modra <amodra@bigpond.net.au>
730 * symbols.c (fb_label_name): Fix silly thinko in last change.
732 2005-03-02 Alan Modra <amodra@bigpond.net.au>
734 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
735 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
737 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
739 2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
742 * config/tc-arc.c (md_assemble): Initialize suffix for extension
745 2005-03-01 Alan Modra <amodra@bigpond.net.au>
747 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
749 * as.h (assert): Warning fix.
750 * expr.c (expr): Correct assertion.
751 * read.c (s_comm_internal): Remove assertion.
752 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
753 (fixup_segment): Remove assertion.
754 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
755 (md_apply_fix3): Likewise.
756 * config/tc-i370.c (md_begin): Correct assertion.
757 (i370_macro): Warning fix for assertion.
759 2005-03-01 Alan Modra <amodra@bigpond.net.au>
761 * configure.in (AC_C_BIGENDIAN): Invoke.
762 * configure: Regenerate.
763 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
764 host variable to set string header size.
765 * config/obj-aout.c (obj_header_append): Don't use host structs.
766 (obj_symbol_to_chars): Likewise.
767 (obj_emit_strings): Likewise. Use the passed in output pointer.
768 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
769 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
770 not sizeof host struct.
771 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
772 (obj_emit_strings): Likewise.
773 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
774 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
776 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
778 (host_number_to_chars): Define.
779 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
780 host internal struct to set header sizes.
781 * config/tc-i960.c (md_number_to_field): Warning fix.
782 (md_ri_to_chars): Use host byte order.
783 (get_cdisp, md_apply_fix3): Warning fix.
784 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
786 2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
788 * doc/c-arc.texi: Update documentation about ARC's extension
791 2005-02-27 Svein E. Seldal <svein@dev.seldal.com>
793 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
796 2005-02-23 Alan Modra <amodra@bigpond.net.au>
798 * cgen.c: Warning fixes.
799 * config/tc-arc.c: Likewise.
800 * config/tc-arm.c: Likewise.
801 * config/tc-avr.c: Likewise.
802 * config/tc-d10v.c: Likewise.
803 * config/tc-d30v.c: Likewise.
804 * config/tc-frv.c: Likewise.
805 * config/tc-frv.h: Likewise.
806 * config/tc-h8300.c: Likewise.
807 * config/tc-h8500.c: Likewise.
808 * config/tc-i370.c: Likewise.
809 * config/tc-i960.c: Likewise.
810 * config/tc-ia64.c: Likewise.
811 * config/tc-ip2k.c: Likewise.
812 * config/tc-m68hc11.c: Likewise.
813 * config/tc-maxq.c: Likewise.
814 * config/tc-mcore.c: Likewise.
815 * config/tc-mips.c: Likewise.
816 * config/tc-msp430.c: Likewise.
817 * config/tc-pj.c: Likewise.
818 * config/tc-ppc.c: Likewise.
819 * config/tc-ppc.h: Likewise.
820 * config/tc-s390.c: Likewise.
821 * config/tc-sh.c: Likewise.
822 * config/tc-sh64.c: Likewise.
823 * config/tc-tic4x.c: Likewise.
824 * config/tc-tic80.c: Likewise.
825 * config/tc-v850.c: Likewise.
826 * config/tc-vax.c: Likewise.
827 * config/tc-w65.c: Likewise.
828 * config/tc-xstormy16.c: Likewise.
829 * config/tc-z8k.c: Likewise.
831 2005-02-22 Catherine Moore <clm@cm00re.com>
833 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
834 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
836 2005-02-22 Eric Christopher <echristo@redhat.com>
838 * config/tc-mips.c (struct proc): Change isym to
839 func_sym. New member func_end_sym.
840 (s_mips_ent): Update.
841 (s_mips_end): Ditto. Add code to compute function size.
843 2005-02-22 Alan Modra <amodra@bigpond.net.au>
845 * read.c: Warning fixes.
846 * config/obj-elf.c: Likewise.
848 2005-02-22 Maciej W. Rozycki <macro@mips.com>
850 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
853 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
855 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
858 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
860 (demand_empty_rest_of_line): Likewise.
861 (tic54x_sblock): Likewise.
862 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
864 2005-02-21 Alan Modra <amodra@bigpond.net.au>
866 * read.c (address_bytes): New function.
867 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
868 (potable): Add "dc.a".
869 (cons_worker): Handle "dc.a".
870 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
872 2005-02-21 Alan Modra <amodra@bigpond.net.au>
874 * input-file.c (input_file_open): Rearrange to avoid warning.
876 2005-02-19 Alan Modra <amodra@bigpond.net.au>
878 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
879 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
880 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
882 2005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
884 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
885 uses after .set noat.
886 (load_address): Likewise.
887 (macro): Likewise. Don't try to avoid $at use by sacrificing
888 the target register before it is stored, it won't work.
890 2005-02-17 James E Wilson <wilson@specifixinc.com>
892 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
893 see an instruction that specifies a template.
895 2005-02-18 Alan Modra <amodra@bigpond.net.au>
897 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
898 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
899 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
901 2005-02-17 H.J. Lu <hongjiu.lu@intel.com>
903 * NEWS: Mention "-mhint.b=[ok|warning|error]".
905 * config/tc-ia64.c (md): Add hint_b.
906 (emit_one_bundle): Handle md.hint_b for "hint".
907 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
908 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
909 (ia64_init): Set md.hint_b to error.
910 (md_assemble): Handle md.hint_b for "hint.b".
912 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
913 * doc/c-ia64.texi: Likewise.
915 2005-02-17 Alan Modra <amodra@bigpond.net.au>
917 * tc.h (struct relax_type, relax_typeS): Move from here..
918 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
919 * ecoff.c (ecoff_new_file): Add appfile param.
920 * ecoff.h (ecoff_new_file): Likewise.
921 * itbl-lex.h: New file.
922 * itbl-lex.l: Include itbl-lex.h.
923 * itbl-parse.y: Likewise.
924 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
925 * read.c (s_app_file_string): Mark appfile possibly unused.
926 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
927 * subsegs.h (struct seg_info_trash): Delete.
928 (seg_info): Use segment_info_type instead.
929 * config/obj-coff.c (struct filename_list): Make filename const char *.
930 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
931 * config/obj-elf.c (elf_file_symbol): Similarly.
932 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
934 * config/tc-arc.c (md_operand): Warning fix.
935 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
936 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
937 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
938 * config/tc-frv.c (frv_force_relocation): Warning fix.
939 * config/tc-m68k.c (md_parse_option): Delete unused var.
940 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
941 * config/tc-sparc.c: Likewise.
942 (s_common): Warning fix.
943 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
944 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
946 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
947 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
948 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
949 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
950 (tic4x_do_align): Use TIC_NOP_OPCODE.
951 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
952 * config/tc-vax.c: Include netinet/in.h.
953 (tc_headers_hook): Formatting.
954 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
956 2005-02-17 Jan Beulich <jbeulich@novell.com>
958 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
959 parsing inN, locN, outN. Set 'idx' to offset register number starts
960 at. Don't handle numbers with leading zeroes or beyond 95. Remove
963 2005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
965 * config/tc-mips.c (load_address): Fix formatting.
966 (macro): Don't use AT if .set noat is in effect. Fix formatting.
967 Catch macros which are unexpandable without AT. Remove duplicate
969 (macro2): Remove duplicate zeroing of used_at.
971 2005-02-16 Alan Modra <amodra@bigpond.net.au>
973 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
976 2005-02-15 Nigel Stephens <nigel@mips.com>
977 Maciej W. Rozycki <macro@mips.com>
979 * config/tc-mips.c (reloc_needs_lo_p): Handle
980 BFD_RELOC_MIPS16_HI16_S.
981 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
982 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
983 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
985 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
986 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
987 Call my_getSmallExpression() to parse percent operators.
988 (percent_op_match, mips_percent_op): Separate definitions.
989 (mips16_percent_op): Define percent operators for the MIPS16 mode.
990 (parse_relocation): Handle the MIPS16 mode using
992 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
993 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
995 2005-02-15 Jan Beulich <jbeulich@novell.com>
997 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
998 instead of explicitly dealing with the translation; exclude
999 relocations that are already pcrel, however.
1001 2005-02-15 Jan Beulich <jbeulich@novell.com>
1003 * config/tc-ia64.c: Include limits.h (if available).
1004 (gr_values[0]): Set path to INT_MAX.
1005 (dot_reg_val): Don't allow changing value of r0. Limit range of
1006 general registers at r127.
1007 (specify_resource): Default resource index is -1. Don't set resource
1008 index (in case IA64_RS_RSE) without setting the specific flag.
1009 (note_register_values): Check operand is O_constant before tracking
1010 input value of moves. Add tracking for dep.z with constant inputs.
1011 (print_dependency): Resource index of specific resource may be zero.
1012 (check_dependencies): Likewise.
1014 2005-02-15 Jan Beulich <jbeulich@novell.com>
1016 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
1017 reg_class. Check operands and emit diagnostics for illegal use of
1020 2005-02-15 Jan Beulich <jbeulich@novell.com>
1022 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
1023 new variables type, suffix, and width. Handle
1024 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
1025 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
1026 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
1027 FUNC_DTP_RELATIVE case. Return incoming relocation type if
1028 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
1029 if unable to translate relocation type, using the new variables.
1031 2005-02-15 Jan Beulich <jbeulich@novell.com>
1033 * config/tc-ia64.h (ia64_symbol_chars): Declare.
1034 (ty_symbol_chars): Define.
1035 * config/tc-ia64.c (ia64_symbol_chars): Define.
1037 2005-02-15 Jan Beulich <jbeulich@novell.com>
1039 * config/tc-ia64.c (ia64_parse_name): Only update next character if
1040 input_line_pointer was advanced.
1042 2005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1044 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
1047 2005-02-13 Jan Beulich <jbeulich@novell.com>
1049 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
1050 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
1052 (ia64_init): Set md.detect_dv.
1053 (ia64_start_line): New static variable warned. Warn only once when
1054 encountering explicit stops in automatic mode.
1055 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
1056 * NEWS: Mention new default mode.
1058 2005-02-13 Jan Beulich <jbeulich@novell.com>
1060 * config/tc-ia64.c (dot_rot): Add comment that name strings should
1061 be freed when wiping out previous state. Canonicalize names before
1062 use. Free name string when detecting redefinition.
1063 (dot_pred_rel): Call generic expression parser to process arguments.
1064 Handle O_register case for individual predicates and O_subtract for
1066 (ia64_parse_name): Canonicalize name before looking it up in dynamic
1068 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
1069 Warn if multiple found, issue error if resulting symbol name has zero
1071 (dot_alias): Canonicalize name before use.
1073 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1075 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
1077 (in_procedure): Return -1 for warning.
1078 (in_prologue): Likewise.
1079 (in_body): Likewise.
1081 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1083 * config/tc-ia64.c (dot_xdata): Undo the last change.
1084 (dot_float_cons): Likewise.
1085 (dot_xstringer): Likewise.
1086 (dot_xdata_ua): Likewise.
1087 (dot_float_cons_ua): Likewise.
1089 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
1091 * NEWS: Mention "-munwind-check=[warning|error]".
1093 * config/tc-ia64.c (md): Add unwind_check.
1094 (unwind_diagnostic): New.
1095 (in_procedure): Call unwind_diagnostic when a directive isn't
1097 (in_prologue): Call unwind_diagnostic when a directive isn't in
1099 (in_body): Call unwind_diagnostic when a directive isn't in
1101 (dot_endp): Set md.unwind_check to error before calling
1102 in_procedure and restore it after. When the name is missing or
1103 couldn't be found, use the one from the last .proc if
1104 md.unwind_check isn't error. Warn if md.unwind_check is
1106 (md_parse_option): Handle "-munwind-check=[warning|error]".
1107 (md_show_usage): Add "-munwind-check=[warning|error]".
1108 (ia64_init): Set md.unwind_check to warning.
1110 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
1111 * doc/c-ia64.texi: Likewise.
1113 2005-02-11 Jan Beulich <jbeulich@novell.com>
1115 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
1117 (ia64_parse_name): New third parameter.
1118 (md_parse_name): Pass third argument.
1119 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
1120 (md_operand): Handling of '@'-prefixed symbols moved from here...
1121 (ia64_parse_name): ...to here.
1123 2005-02-11 Jan Beulich <jbeulich@novell.com>
1125 * config/tc-ia64.c (md): Remove last_groups and group_idx.
1126 (errata_nop_necessary_p): Remove declaraction and definition.
1127 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
1128 update md.group_idx. Don't reset md.last_groups.
1130 2005-02-11 Jan Beulich <jbeulich@novell.com>
1132 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
1134 (dot_xdata): Free section name after use.
1135 (dot_float_cons): Likewise.
1136 (dot_xstringer): Likewise.
1137 (dot_xdata_ua): Likewise.
1138 (dot_float_cons_ua): Likewise.
1139 (md_pseudo_table): Add xdata16 and xdata16.ua.
1141 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
1143 * doc/all.texi: Add IA64.
1144 * doc/as.texinfo: Likewise.
1146 * doc/c-ia64.texi: Fix typos.
1148 2005-02-10 Julian Brown <julian@codesourcery.com>
1150 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
1152 (do_t_push_pop): Likewise.
1153 (md_assemble): Likewise.
1154 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
1155 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
1156 (create_unwind_entry): Output dependency on the required personality
1158 testsuite/gas/arm/unwind.d: Alter expected output to include
1159 dependency on __aeabi_unwind_cpp_pr[01].
1161 2005-02-07 Nathan Sidwell <nathan@codesourcery.com>
1163 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
1164 * subsegs.c (seg_not_empty_p): Likewise.
1166 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
1168 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
1169 relative jump calculation.
1170 <md_convert_frag) : Likewise.
1171 <output_disp): Likewise.
1173 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
1175 * write.c (write_object_file): Recognize warning-symbol construct
1176 and skip object- and target- handling for the second symbol.
1178 2005-02-02 Jan Beulich <jbeulich@novell.com>
1180 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
1181 designators along with quoted ones. Free copy of quoted designator
1184 2005-02-01 Ben Elliston <bje@au.ibm.com>
1186 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
1187 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
1188 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
1189 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
1190 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
1191 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
1192 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
1193 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
1194 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
1195 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
1196 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
1197 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
1198 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
1199 #if 0'd code throughout.
1201 2005-01-31 Nick Clifton <nickc@redhat.com>
1203 * as.c (parse_args): Bump copyright date reported by --version to
1206 2005-01-31 Nick Clifton <nickc@redhat.com>
1208 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
1211 2005-01-31 Jan Beulich <jbeulich@novell.com>
1213 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
1214 that can end with .endr in that case. Make requiring/permitting
1215 pseudo-ops without leading dot closer to the logic in read.c serving
1217 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
1220 2005-01-31 Jan Beulich <jbeulich@novell.com>
1222 * macro.c (do_formals): Adjust to no longer accept empty parameter
1224 (define_macro): Adjust to no longer accept empty macro name, garbage
1225 following the parameters, or macros that were previously defined.
1226 * read.c (s_bad_end): Declare.
1227 (potable): Add endm. Handler for endr and endm is s_bad_end.
1228 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
1230 * read.h (s_bad_endr): Remove.
1232 2005-01-31 Jan Beulich <jbeulich@novell.com>
1234 * config/tc-ia64.c (parse_operands): Parse all specified operands,
1235 immediately discarding (but counting) those exceeding the maximum
1236 possible amount. Track whether output and input operand counts ever
1237 matched, and use this to better indicate which of the operands/
1238 operand types was wrong; specifically don't default to pointing to
1241 2005-01-31 Jan Beulich <jbeulich@novell.com>
1243 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
1244 variable in dot_endp). Add body and insn. Make prologue,
1245 prologue_mask, body, and insn bitfields.
1246 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
1248 (in_procedure, in_prologue, in_body): New.
1249 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
1250 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
1251 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
1252 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
1253 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
1254 dot_personality): Use the appropriate one of the above.
1255 (dot_proc): Clear unwind.proc_start; set to current location only if
1256 none of the entry points were valid. Check for non-zero-length entry
1257 point names. Check that entry points aren't defined, yet. Clear
1258 unwind.prologue, unwind.body, and unwind.insn.
1259 (dot_body): Call in_procedure. Check that first directive in procedure
1260 had no insns emitted before. Set unwind.body.
1261 (dot_prologue): Call in_procedure. Check that not already in prologue.
1262 Check that first directive in procedure had no insns emitted before.
1264 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
1265 length entry point names. Check that entry points became defined.
1266 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
1268 2005-01-31 Jan Beulich <jbeulich@novell.com>
1270 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
1271 before actually using it. Don't generate an error in manual bundling
1272 mode when looking at an insn requiring slot 2 but not yet at slot 2.
1273 Don't generate an error in manual bundling mode when looking at an
1274 insn required to be last in its group but the required slot hasn't
1275 been reached, yet. Allow conversion from MII to MI;I for bundle
1276 consisting of only 2 insns with the stop between them. Suppress
1277 various meaningless errors resulting from detecting earlier ones.
1279 2005-01-31 Jan Beulich <jbeulich@novell.com>
1281 * config/tc-ia64.c (parse_operands): Also handle alloc without first
1284 2005-01-28 Christian Groessler <chris@groessler.org>
1286 * config/tc-z8k.c (md_assemble): Improve error detection.
1288 2005-01-28 Jan Beulich <jbeulich@novell.com>
1290 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
1291 for personality routine pointer only if there is one.
1292 (ia64_convert_frag): Likewise.
1293 (generate_unwind_image): Likewise.
1295 2005-01-27 Christian Groessler <chris@groessler.org>
1297 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
1298 (md_apply_fix3): Make relative branches out of range an error
1299 instead of a warning. Display correct line number for out of
1300 range branches/calls/memory accesses.
1302 2005-01-27 Nathan Sidwell <nathan@codesourcery.com>
1304 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
1305 to emit .debug_line and other debug sections.
1306 * as.h (seg_not_empty_p): Declare.
1307 * subsegs.c (seg_not_empty_p): New predicate.
1309 2005-01-27 Andrew Cagney <cagney@gnu.org>
1311 * configure: Regenerate to track ../gettext.m4 change.
1313 2005-01-27 Jan Beulich <jbeulich@novell.com>
1315 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
1317 2005-01-27 Jan Beulich <jbeulich@novell.com>
1319 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
1320 to/from application registers dynamic insns.
1321 (md_assemble): Defer resolution of move to/from application registers
1322 dynamic insns when they can be issued on either the I- or M-units.
1324 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
1326 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
1327 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
1328 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
1329 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
1330 * cgen.c (gas_cgen_parse_operand): Handle
1331 CGEN_PARSE_OPERAND_SYMBOLIC.
1332 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
1333 (frv_force_relocation): Likewise. Fix handling of PIC
1335 (md_apply_fix3): Likewise.
1337 2005-01-21 Ben Elliston <bje@au.ibm.com>
1339 * as.h: Remove #if 0'd code.
1340 * atof-generic.c (atof_generic): Likewise.
1341 * ecoff.c (ecoff_directive_frame): Likewise.
1342 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
1343 * itbl-ops.c (itbl_add_reg): Likewise.
1344 * listing.c (calc_hex): Likewise.
1345 * read.c (MASK_CHAR): Likewise.
1346 * subsegs.c (subsegs_print_statistics): Likewise.
1347 * symbols.c (indent): Likewise.
1348 * write.c (write_relocs): Likewise.
1349 (write_object_file): Likewise.
1350 (relax_frag): Likewise.
1352 2005-01-20 Nick Clifton <nickc@redhat.com>
1354 * as.c (std_longopts): Add an entry for "--a" in order to prevent
1355 getopt_long_only() from considering -a as an abbreviation for
1357 (parse_args): Fix the parsing of -a=<file>.
1359 2005-01-20 Alan Modra <amodra@bigpond.net.au>
1362 * read.c (s_incbin): Adjust default count for skip. Check validity
1363 of count and skip rigorously.
1365 2005-01-19 Fred Fish <fnf@specifixinc.com>
1367 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
1369 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1371 * read.c (convert_to_bignum): New function, split out from...
1372 (emit_expr): ...here. Handle the case where X_add_number is
1373 positive and the input value is negative.
1374 (output_big_sleb128): Fix setting of continuation bit. Check whether
1375 the final byte needs to be sign-extended. Fix size-shrinking loop.
1376 (emit_leb128_expr): When generating a signed leb128, see whether the
1377 sign of an O_constant's X_add_number matches the sign of the input
1378 value. Use a bignum if not.
1380 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
1382 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
1383 arch_sh_up in order to match the external name and make the
1384 testsuite's job easier.
1386 2005-01-14 H.J. Lu <hongjiu.lu@intel.com>
1389 * config/tc-i386.c (i386_scale): Disallow 0 scale.
1391 2005-01-12 Nick Clifton <nickc@redhat.com>
1393 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
1394 ignored_arguments array.
1396 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
1398 * write.c (write_object_file): Disallow a symbol equated to
1401 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
1403 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
1405 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
1406 (maxq_target): New function: Set the machine type.
1408 2005-01-06 Paul Brook <paul@codesourcery.com>
1410 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
1411 (md_begin): Handle TE_VXWORKS for FP defaults.
1412 (md_apply_fix3): Correct rela offsets.
1413 (elf32_arm_target_format): Add VxWorks targets.
1415 2005-01-06 Paul Brook <paul@codesourcery.com>
1417 * configure.tgt: Set em=vxworks for *-*-vxworks.
1418 * config/te-vxworks.h: New File.
1420 2005-01-06 Paul Brook <paul@codesourcery.com>
1422 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
1424 2005-01-04 Dmitry Diky <diwil@spec.ru>
1426 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
1429 2005-01-03 David Mosberger <davidm@hpl.hp.com>
1431 * config/tc-ia64.c (md): Add member "loc_directive_seen".
1432 (dot_loc): New function.
1433 (md_pseudo_table): Add entry to map .loc to dot_loc().
1434 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
1435 seen a .loc directive or we're generating DWARF2 debug info for
1438 2004-12-29 Alan Modra <amodra@bigpond.net.au>
1441 * read.c (s_comm_internal): Don't zero end of name until size
1442 expression has been parsed.
1444 2004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1446 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
1448 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
1450 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
1453 2004-12-22 Ian Lance Taylor <ian@airs.com>
1455 * configure.tgt: New.
1456 * configure.in: Move setting of cpu_type, fmt, etc., to
1458 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
1459 $(srcdir)/configure.tgt.
1460 * configure, Makefile.in: Rebuild.
1462 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
1464 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
1465 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
1467 (avr_offset_expression): New function to parse offsets for LDI
1469 (avr_operand): Use it.
1470 (md_apply_fix3): Generate the relocs.
1472 2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
1474 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
1475 BFD_RELOC_SH_IMMS10BY8 relocation.
1477 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
1478 than just ignoring bad code.
1480 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
1482 * config/tc-v850.c (handle_lo16): New function.
1483 (v850_reloc_prefix): Use it to check lo().
1484 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
1486 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1488 * configure.in: Add s390x-ibm-tpf support.
1489 * configure: Regenerate.
1491 2004-12-15 Jan Beulich <jbeulich@novell.com>
1493 * config/obj-elf.c (obj_elf_change_section): Only set type and
1494 attributes on new sections. Emit warning when type of re-declared
1495 section doesn't match.
1497 2004-12-15 Jan Beulich <jbeulich@novell.com>
1499 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
1500 '.cfi_startproc simple' doesn't inherit the old value.
1502 2004-12-15 Jan Beulich <jbeulich@novell.com>
1504 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
1505 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
1506 generation to emit a factored offset.
1508 2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
1510 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
1511 which is too large in the case of NO_PIC without 64-bit
1514 * config/tc-mips.c (mips_in_shared): New static variable.
1515 (macro_build_lui): Permit "_gp" if !mips_in_shared.
1516 (md_longopts): Add -mshared and -mno-shared.
1517 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
1518 (s_cpload): Implement !mips_in_shared case.
1519 (s_cpsetup): Likewise.
1520 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
1521 * NEWS: Mention -mno-shared.
1523 2004-12-09 Paul Brook <paul@codesourcery.com>
1525 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
1528 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
1530 * config/tc-mips.c (append_insn): If we emit a nop during a relax
1531 sequence, increase the size of the sequence.
1533 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
1536 2004-12-07 Ben Elliston <bje@gnu.org>
1538 * read.c (s_align): Use an align_limit temporary to allay a GCC
1539 signed/unsigned comparison warning.
1541 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1543 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
1544 * configure.in: Use it for arm*-*-linux-gnueabi*.
1545 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
1546 * config/te-armlinuxeabi.h: New file.
1547 * Makefile.in: Regenerated.
1548 * aclocal.m4: Likewise.
1549 * configure: Likewise.
1550 * doc/Makefile.in: Regenerated.
1552 2004-12-02 Bob Wilson <bob.wilson@acm.org>
1554 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
1555 (xtensa_restore_emit_state): Likewise.
1557 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1559 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
1562 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1564 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1565 * Makefile.in: Regenerate.
1567 2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
1569 * config/tc-crx.c: Major code cleanup. Remove unused variables and
1570 functions, give functions a meaningful name, add comments.
1571 (check_range): New function - Replace operand size calculation
1572 with range checking.
1573 (assemble_insn): Update Algorithm, improve error issuing.
1575 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
1578 2004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1580 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
1581 miss between different section in the same module.
1582 (tc_gen_reloc): Likewise.
1584 2004-11-25 Theodore A. Roth <troth@openavr.org>
1586 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
1587 atmega325, atmega3250, atmega645 and atmega6450.
1589 2004-11-25 Jan Beulich <jbeulich@novell.com>
1591 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1592 permissible for the selected instruction suffix.
1593 (process_suffix): For DefaultSize instructions, suppressing the
1594 guessing of a 'q' suffix if the instruction doesn't support it is
1595 pointless, because only an 'l' suffix can be guessed in this place.
1597 2004-11-24 Nick Clifton <nickc@redhat.com>
1599 * config/tc-iq2000.c: Remove support for IQ10 processor.
1600 Convert to ISO C90 formatting.
1601 * config/tc-iq2000.h: Likewise.
1603 2004-11-23 Nick Clifton <nickc@redhat.com>
1605 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
1606 in this table. They should be correct now.
1608 2004-11-23 Jan Beulich <jbeulich@novell.com>
1610 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
1611 indicate the MMX extensions added by both SSE and 3DNow!A.
1612 (Cpu3dnowA): Declare.
1613 (CpuUnknownFlags): Update.
1614 * config/tc-i386.c (cpu_sub_arch_name): Declare.
1615 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
1616 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
1617 3DNow!. Athlon additionally implies 3DNow!A. Several new
1618 entries (those starting with a dot are for sub-arch specification).
1619 (set_cpu_arch): Handle sub-arch specifications.
1620 (parse_insn): Distinguish between instructions not supported because
1621 of insufficient CPU features and because of 64-bit mode.
1622 * doc/c-i386.texi: Describe enhanced .arch directive.
1624 2004-11-22 Bob Wilson <bob.wilson@acm.org>
1626 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
1628 2004-11-22 Bob Wilson <bob.wilson@acm.org>
1630 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
1631 without a corresponding .debug_info section.
1633 2004-11-22 Hans-Peter Nilsson <hp@axis.com>
1635 * read.c (potable): Add "error" and "warning".
1636 (s_errwarn): New function.
1637 * read.h (s_errwarn): Declare.
1638 * doc/as.texinfo (Error, Warning): Document .error and .warning.
1640 2004-11-22 Nick Clifton <nickc@redhat.com>
1642 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
1645 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1647 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
1648 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
1650 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1652 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
1653 (coff_adjust_symtab): Adjust call.
1654 (crawl_symbols): Likewise.
1655 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
1656 (obj_app_file): Adjust.
1658 2004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1660 * configure.in: Enable bfd_assember for the MAXQ port.
1661 * configure: Regenerate.
1663 2004-11-12 Bob Wilson <bob.wilson@acm.org>
1664 Sterling Augustine <sterling@tensilica.com>
1666 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
1667 there is a conflict.
1668 (check_t1_t2_reads_and_writes): Check for both reads and writes to
1669 interfaces that are related as determined by xtensa_interface_class_id.
1671 2004-11-12 Nick Clifton <nickc@redhat.com>
1673 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
1674 offsets for conditional branches.
1676 2004-11-11 Bob Wilson <bob.wilson@acm.org>
1678 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
1680 2004-11-10 Bob Wilson <bob.wilson@acm.org>
1682 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
1683 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
1685 (relax_frag_immed): Update call to update_next_frag_state.
1687 2004-11-10 Alan Modra <amodra@bigpond.net.au>
1689 * obj.h (struct format_ops <app_file>): Add int param.
1690 * read.h (s_app_file_string): Likewise.
1691 * read.c (s_app_file_string): Likewise.
1692 (s_app_file): Adjust s_app_file_string call.
1693 * config/tc-mips.c (s_mips_file): Likewise.
1694 * config/obj-coff.h (obj_app_file): Add app param.
1695 * config/obj-ecoff.h (obj_app_file): Likewise.
1696 * config/obj-multi.h (obj_app_file): Likewise.
1697 * config/obj-elf.h (elf_file_symbol): Likewise.
1698 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
1699 if called for # preprocessor lines.
1701 2004-11-08 H.J. Lu <hongjiu.lu@intel.com>
1704 * symbols.c (resolve_symbol_value): Convert weak symbols only
1706 (symbol_equated_reloc_p): Don't equate weaks when relocating
1707 only for Windows PECOFF.
1709 2004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
1711 * config/tc-crx.c (print_insn): Check and set insn_addr.
1712 * config/tc-crx.h (md_frag_check): Define.
1714 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1715 Vineet Sharma <vineets@noida.hcltech.com>
1717 * configure.in: Add support for new target maxq-coff.
1718 * configure: Regenerate.
1719 * NEWS: Mention new support.
1720 * config/tc-maxq.c: New file.
1721 * config/tc-maxq.h: New file.
1722 * config/obj-coff.h: Add support for maxq-coff.
1724 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1726 * symbols.c (any_external_name): Define.
1727 (resolve_symbol_value): Convert weak symbols.
1728 (S_SET_EXTERNAL): Support any_external_name.
1729 (S_SET_NAME): Qualify parameter const.
1730 (symbol_equated_reloc_p): Equate to weaks when relocating.
1731 * symbols.h (S_SET_NAME): Qualfiy parameter const.
1732 * tc.h (any_external_name): Declare.
1733 * config/obj-coff.c ("coff/pe.h"): Include for BFD
1735 (weak_is_altname): Declare and define.
1736 (weak_name2altname): Same.
1737 (weak_altname2name): Same.
1738 (weak_uniquify): Same.
1739 (weak_altprefix): Define.
1740 (obj_coff_weak): Change .weak syntax and handling.
1741 (coff_frob_symbol): Fix PE weak symbol alternates.
1742 * config/obj-coff.h (USE_UNIQUE): Define.
1743 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
1744 are in another segment.
1745 (tc_gen_reloc): Remove broken addend hack.
1746 doc/as.texinfo: Update.
1748 2004-11-05 Sterling Augustine <sterling@tensilica.com>
1750 * config/tc-xtensa.c (total_frag_text_expansion): New.
1751 (md_estimate_size_before_relax): Use it.
1752 (find_address_of_next_align_frag): Likewise.
1754 2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
1756 * config/tc-crx.c: Rename argument types.
1757 (processing_arg_number): Rename to 'cur_arg_num'.
1758 (get_number_of_bits): Rename to 'set_operand_size'.
1759 (get_operandtype): Rename to 'parse_operand', totally rewrite.
1760 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
1761 (set_indexmode_parameters): Remove function, integrate its code into
1763 (set_operand_size): Get rid of 'Operand Number' function parameter -
1764 use global variable 'cur_arg_num' instead.
1765 Use a local 'argument' pointer to reference the current argument.
1766 (parse_operand): Likewise.
1767 (set_operand): Likewise.
1768 (process_label_constant): Likewise.
1770 2004-11-04 Bob Wilson <bob.wilson@acm.org>
1772 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
1773 (add_section_rename): Delete. Inlined into...
1774 (build_section_rename): ...here. Use xstrdup instead of strdup.
1775 (xtensa_section_rename): Drop "const" from argument and return types.
1776 (md_show_usage): Indent to match show_usage().
1777 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
1778 (tc_canonicalize_section_name): Define.
1779 (md_elf_section_rename): Remove unused macro.
1780 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
1781 * doc/c-xtensa.texi (Xtensa Options): Likewise.
1782 (Frame Directive): Delete.
1784 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1786 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
1787 * config/tc-arm.c (target_oabi): Delete.
1788 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
1789 (arm_opts): Remove moabi.
1790 * doc/as.texinfo (Overview): Remove documentation of -moabi.
1791 * doc/c-arm.texi (ARM Options): Likewise.
1792 * configure: Regenerated.
1794 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1796 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
1797 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
1798 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
1799 * configure: Regenerate.
1800 * config/tc-cris.c (enum cris_archs): New.
1801 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
1802 (cris_insn_ver_valid_for_arch): New functions.
1803 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
1804 (cris_arch): New variable.
1805 (md_pseudo_table): New pseudo .arch.
1806 (err_for_dangerous_mul_placement): Initialize according to
1808 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
1810 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
1811 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
1812 (BRANCH_WF_V32, BRANCH_WB_V32): New.
1813 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
1814 use in md_cris_relax_table.
1815 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
1816 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
1817 Update and improve head comment.
1818 (OPTION_PIC): Define in terms of previous option, OPTION_US.
1819 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
1821 (md_longopts): New option --march=...
1822 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
1824 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
1825 (HANDLE_RELAXABLE): New macro.
1826 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
1827 cases. Check for weak symbols and assume not relaxable. Handle
1828 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
1829 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
1831 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
1832 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
1833 (cris_create_short_jump): Adjust for CRISv32.
1834 (cris_relax_frag): Handle new states.
1835 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
1836 (md_begin): Define symbols "..asm.arch.cris.v32",
1837 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
1838 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
1839 when entering opcode table entry points.
1840 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
1841 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
1842 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
1843 (cris_process_instruction): Initialize out_insnp->insn_type to
1844 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
1845 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
1847 <case 'm'>: Check that modified_char == '.'.
1848 <invalid operands>: Consume the rest of the line.
1849 When operands don't match, skip over subsequent insns with
1850 non-matching version specifier but same mnemonic.
1851 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
1852 special registers in CRISv32 are always 32 bit long.
1853 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
1855 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
1856 and compatible. Recognize "ACR" for v32, unless followed by "+".
1857 (get_spec_reg): Consider cris_arch when looking up register.
1858 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
1860 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
1861 (cris_get_expression): Restore input_line_pointer if failing "early".
1862 (get_flags): Consider cris_arch and recognize flags accordingly.
1863 (branch_disp): Adjust for CRISv32.
1864 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
1865 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
1866 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
1867 resolved. Don't enter zeros in object file for
1869 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
1870 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
1871 (md_parse_option): Break out "return 1".
1872 <OPTION_ARCH> New case.
1873 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
1874 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
1875 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
1876 <case BFD_RELOC_32_PCREL>: New cases.
1877 Addends for non-zero fx_pcrel are too in fx_offset.
1878 (md_show_usage): Show --march=<arch>.
1879 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
1880 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
1881 (s_syntax) <struct syntaxes>: Properly constify member operand.
1882 * config/tc-cris.h (TARGET_MACH): Define.
1883 (cris_mach): Declare.
1884 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
1885 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
1886 (CRIS-Opts): Document --march=...
1887 (CRIS-Pseudos): Document .arch.
1889 2004-11-04 Jan Beulich <jbeulich@novell.com>
1891 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
1892 intel syntax and no register prefix, allow $ in symbol names when
1894 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
1895 (intel_float_operand): Add fourth return value indicating math control
1896 operations. Make classification more precise.
1897 (md_assemble): Complain if memory operand of mov[sz]x has no size
1899 (parse_insn): Translate word operands to floating point instructions
1900 operating on integers as well as control instructions to short ones
1901 as expected by AT&T syntax. Translate 'd' suffix to short one only for
1902 floating point instructions operating on non-integer operands.
1903 (match_template): Remove fldcw special case. Adjust q-suffix handling
1904 to permit it on fild/fistp/fisttp in AT&T mode.
1905 (process_suffix): Don't guess DefaultSize insns' suffix from
1906 stackop_size for certain floating point control instructions. Guess
1907 suffix for branch and [ls][gi]dt based on flag_code. Split error
1908 messages for Intel and AT&T syntax, and make the condition more strict
1909 for the former. Adjust suppressing of generation of operand size
1911 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
1912 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
1913 more error checking.
1914 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
1915 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
1917 2004-11-03 Hans-Peter Nilsson <hp@axis.com>
1919 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
1920 md_short_jump_size, md_long_jump_size.
1921 * write.c [!WORKING_DOT_WORD]: Ditto.
1922 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
1924 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
1926 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
1927 const qualifier in these definitions.
1928 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
1929 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
1931 2004-11-02 Nick Clifton <nickc@redhat.com>
1933 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
1934 table before deciding to produce a .debug_line section to match up
1935 with a user provided .debug_info section.
1937 2004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
1939 * config/tc-crx.c (getreg_image): Bug fix, a return value was
1940 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
1942 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
1944 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
1945 (get_flags): New function.
1946 (get_number_of_bits): Edit comments, update numeric values to
1948 (process_label_constant): Don't support the colon
1949 format (SYMBOL:[s|m|l]).
1950 (set_cons_rparams): Support argument type 'arg_rbase'.
1951 (get_operandtype): Bug fix in 'rbase' operand type parsing.
1952 (handle_LoadStor): Bug fix, first handle post-increment mode.
1953 (getreg_image): Remove redundant code, update according to latest
1955 (print_constant): Bug fix relate to 3-word instructions.
1956 (assemble_insn): Bug fix, when matching instructions, verify also
1957 instruction type (not only mnemonic).
1958 Add various error checking.
1959 (preprocess_reglist): Support HI/LO and user registers.
1961 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
1963 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
1964 in an epilogue directive go negative.
1966 2004-10-25 H.J. Lu <hongjiu.lu@intel.com>
1969 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
1970 after reporting template error during manual bundling. Reported
1971 by Michael Dupont, michaelx.dupont@intel.com.
1973 2004-10-25 Daniel Jacobowitz <dan@debian.org>
1975 * Makefile.am: Run dep-am.
1976 * aclocal.m4: Regenerate with automake 1.9.2.
1977 * Makefile.in: Regenerate with automake 1.9.2.
1978 * doc/Makefile.in: Likewise.
1980 * config/tc-arm.c: Include "dw2gencfi.h".
1981 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
1983 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
1984 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
1985 (tc_cfi_frame_initial_instructions): Define.
1986 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
1989 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
1991 * config/tc-crx.c (assemble_insn): Check unsigned immediate
1993 Update coprocessor id to be unsigned immediate.
1995 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1997 * config/tc-i386.c (O_secrel): Delete.
1998 (tc_pe_dwarf2_emit_offset): New function.
1999 * config/tc-i386.h (O_secrel): Define as O_md1.
2000 (TC_DWARF2_EMIT_OFFSET): Define.
2002 2004-10-18 Nick Clifton <nickc@redhat.com>
2004 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
2005 ignore @fptr() directives for 4-byte fixups.
2007 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2009 * Makefile.am: Run "make dep-am"
2010 * Makefile.in: Regenerate.
2012 2004-10-14 Bob Wilson <bob.wilson@acm.org>
2014 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
2015 Remove comments about placement of literal pools.
2016 (Literal Directive): Update description of literal placement.
2017 (Literal Prefix Directive): Remove statement that this does not apply
2018 to absolute-mode literals. Describe new section naming scheme.
2020 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2022 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
2023 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
2024 is_windowed_return_opcode): Delete.
2025 (xtensa_frob_label): Use get_subseg_target_freq.
2026 (md_assemble): Inline call to is_entry_opcode.
2027 (xtensa_handle_align): Inline call to get_frag_is_literal.
2028 (relaxation_requirements): Inline call to is_jx_opcode.
2029 (emit_single_op): Inline call to is_movi_opcode.
2030 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
2031 get_frag_is_no_transform, is_entry_opcode, and
2032 set_frag_is_specific_opcode. Use get_subseg_total_freq.
2033 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
2034 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
2035 Inline calls to get_frag_is_no_transform.
2036 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
2037 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
2038 get_frag_is_no_transform.
2039 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
2040 and set_frag_is_no_transform.
2041 (get_expression_value): Delete.
2042 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
2043 cur_target_freq to target_freq.
2044 (get_subseg_info): Split out code to create a new map entry into ...
2045 (add_subseg_info): ... this new function.
2046 (get_last_insn_flags): Check if get_subseg_info succeeded.
2047 (set_last_insn_flags): Call add_subseg_info if needed.
2048 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
2049 (xtensa_reorder_segments): Compute last_sec while counting sections.
2050 Remove call to get_last_sec.
2051 (get_last_sec): Delete.
2052 (cache_literal_section): Inline call to retrieve_literal_seg and its
2053 callees, seg_present and add_seg_list.
2054 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
2055 (get_frag_is_insn, get_frag_is_no_transform,
2056 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
2057 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
2059 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2061 * config/tc-xtensa.c: Use ISO C90 formatting.
2062 * config/tc-xtensa.h: Likewise.
2063 * config/xtensa-istack.h: Likewise.
2064 * config/xtensa-relax.c: Likewise.
2065 * config/xtensa-relax.h: Likewise.
2067 2004-10-12 Paul Brook <paul@codesourcery.com>
2069 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
2072 * doc/c-arm.texi: Document that we actually support -meabi=4, not
2075 2004-10-08 Bob Wilson <bob.wilson@acm.org>
2077 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
2079 (Acknowledgements): Use "GAS" instead of AS variable.
2081 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2083 * config/tc-i386.c: Include "elf/x86-64.h".
2084 (i386_elf_section_type): New function.
2085 * config/tc-i386.h (md_elf_section_type): Define.
2086 (i386_elf_section_type): New prototype.
2088 2004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
2090 * config/m68k-parse.h (enum m68k_register): New control register,
2092 * config/tc-m68k.c: Correct control register set for MCF5249.
2094 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2095 Sterling Augustine <sterling@tensilica.com>
2097 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
2098 (UNREACHABLE_MAX_WIDTH): Define.
2099 (XTENSA_FETCH_WIDTH): Delete.
2100 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
2101 prefer_const16, prefer_l32r): New global variables.
2102 (LIT4_SECTION_NAME): Define.
2103 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
2104 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
2105 (frag_flags struct): New.
2106 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
2107 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
2108 (bitfield, bit_is_set, set_bit, clear_bit): Define.
2109 (MAX_FORMATS): Define.
2110 (op_placement_info struct, op_placement_table): New.
2111 (O_pltrel, O_hi16, O_lo16): Define.
2112 (directiveE enum): Rename directive_generics to directive_transform.
2113 Delete directive_relax. Add directive_schedule,
2114 directive_absolute_literals, and directive_last_directive.
2115 (directive_info): Rename "generics" to "transform". Delete "relax".
2116 Add "schedule" and "absolute-literals".
2117 (directive_state): Adjust entries to match changes in directive_info.
2118 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
2119 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
2120 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
2121 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
2122 (align_only_targets, software_a0_b_retw_interlock,
2123 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
2124 software_avoid_short_loop, software_avoid_close_loop_end,
2125 software_avoid_all_short_loops, specific_opcode): Delete.
2126 (warn_unaligned_branch_targets): New.
2127 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
2128 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
2129 (option_[no_]link_relax, option_[no_]transform,
2130 option_[no_]absolute_literals, option_warn_unaligned_targets,
2131 option_prefer_l32r, option_prefer_const16, option_target_hardware):
2133 (option_[no_]align_only_targets, option_literal_section_name,
2134 option_text_section_name, option_data_section_name,
2135 option_bss_section_name, option_eb, option_el): Delete.
2136 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
2137 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
2138 and target-hardware. Delete entries for [no-]target-align-only,
2139 literal-section-name, text-section-name, data-section-name, and
2141 (md_parse_option): Handle new options and remove old ones. Accept but
2142 ignore [no-]density options. Warn for [no-]generics and [no-]relax
2143 and treat them as [no-]transform.
2144 (md_show_usage): Add new options and remove old ones.
2145 (xtensa_setup_hw_workarounds): New.
2146 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
2147 "long", "short", "loc" and "frequency" entries.
2148 (use_generics): Rename to ...
2149 (use_transform): ... this function. Add past_xtensa_end check.
2150 (use_longcalls): Add past_xtensa_end check.
2151 (code_density_available, can_relax): Delete.
2152 (do_align_targets): New.
2153 (get_directive): Accept dashes in directive names. Warn about
2154 [no-]generics and [no-]relax directives and treat them as
2156 (xtensa_begin_directive): Call md_flush_pending_output only for some
2157 directives. Check for directives inside instruction bundles. Warn
2158 about deprecated ".begin literal" usage. Warn and ignore [no-]density
2159 directives. Handle new directives. Check generating_literals flag
2161 (xtensa_end_directive): Check for directives inside instruction
2162 bundles. Warn and ignore [no-]density directives. Handle new
2163 directives. Call xtensa_set_frag_assembly_state.
2164 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
2165 xtensa_dwarf2_emit_insn): New.
2166 (xtensa_literal_position): Call md_flush_pending_output. Do not check
2167 use_literal_section flag.
2168 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
2169 literals. Use xtensa_elf_cons to parse the expression.
2170 (xtensa_literal_prefix): Do not check use_literal_section. Support
2171 ".lit4" sections for absolute literals. Change prefix convention to
2172 replace ".text" (or ".t" in a linkonce section). No need to call
2174 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
2175 (expression_end): Handle closing braces and colons.
2176 (PLT_SUFFIX, plt_suffix): Delete.
2177 (expression_maybe_register): Use new xtensa-isa.h functions. Use
2178 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
2179 and O_hi16 expressions as well.
2180 (tokenize_arguments): Handle closing braces and colons.
2181 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
2182 operands and paired register syntax.
2183 (get_invisible_operands): New.
2184 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
2185 new xtensa-isa.h functions.
2186 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
2187 (xg_translate_idioms): Check if inside bundle. Use use_transform.
2188 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
2189 instructions. Use xtensa_translate_zero_immed.
2190 (operand_is_immed, operand_is_pcrel_label): Delete.
2191 (get_relaxable_immed): Use new xtensa-isa.h functions.
2192 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
2194 (xtensa_print_insn_table, print_vliw_insn): New.
2195 (is_direct_call_opcode): Use new xtensa-isa.h functions.
2196 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
2197 is_branch_or_jump_opcode): Delete.
2198 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
2199 (opnum_to_reloc, reloc_to_opnum): Delete.
2200 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
2201 xtensa-isa.h functions. Operate on one slot of an instruction.
2202 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
2203 xg_get_insn_size): Delete.
2204 (xg_get_build_instr_size): Use xg_get_single_size.
2205 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
2206 xg_build_widen_table. Use xg_get_single_size.
2207 (xg_get_max_narrow_insn_size): Delete.
2208 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
2209 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
2211 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
2212 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
2213 (xg_expand_to_stack, xg_expand_narrow): Update calls to
2214 xg_build_widen_table. Use xg_get_single_size.
2215 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
2217 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
2218 treat weak symbols conservatively.
2219 (xg_check_operand): Use new xtensa-isa.h functions.
2220 (is_dnrange): Delete.
2221 (xg_assembly_relax): Inline previous calls to tinsn_copy.
2222 (xg_finish_frag): Specify separate relax states for the frag and slot0.
2223 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
2224 xtensa-isa.h functions.
2225 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
2226 xg_instruction_matches_options): New.
2227 (xg_instruction_matches_rule): Handle O_register expressions. Call
2228 xg_instruction_matches_options.
2229 (transition_rule_cmp): New.
2230 (xg_instruction_match): Update call to xg_build_simplify_table.
2231 (xg_build_token_insn): Record loc fields.
2232 (xg_simplify_insn): Check is_specific_opcode field and
2233 density_supported flag.
2234 (xg_expand_assembly_insn): Skip checking code_density_available. Use
2235 new xtensa-isa.h functions. Call use_transform instead of can_relax.
2236 (xg_assemble_literal): Add error handling for O_big. Call
2237 record_alignment. Handle O_pltrel.
2238 (xg_valid_literal_expression): New.
2239 (xg_assemble_literal_space): Add slot parameter. Remove call to
2240 set_expr_symbol_offset. Add call to record_alignment. Update call to
2242 (xg_emit_insn): Delete.
2243 (xg_emit_insn_to_buf): Add format parameter. Update calls to
2244 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
2245 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
2246 and slot parameters. Handle new "alternate" relocations for absolute
2247 literals and CONST16 instructions. Check for bad uses of O_lo16 and
2248 O_hi16. Use new xtensa-isa.h functions.
2249 (xg_assemble_tokens): Delete.
2250 (is_register_writer): Use new xtensa-isa.h functions.
2251 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
2252 old-style RSR from LCOUNT.
2253 (next_frag_opcode): Delete.
2254 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
2255 update_next_frag_state): New.
2256 (update_next_frag_nop_state): Delete.
2257 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
2258 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
2259 the state of the absolute-literals directive. Add calls to
2260 record_alignment and xtensa_set_frag_assembly_state. Call
2261 xtensa_switch_to_non_abs_literal_fragment instead of
2262 xtensa_switch_to_literal_fragment.
2264 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
2265 (get_expanded_loop_offset): Change check for undefined opcode to an
2267 (xtensa_set_frag_assembly_state, relaxable_section,
2268 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
2269 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
2270 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
2271 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
2272 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
2273 (xtensa_init_fix_data): New.
2274 (xtensa_frob_label): Reset label symbol to the current frag. Check
2275 do_align_targets and generating_literals flag. Propagate frequency
2276 info to new alignment frag. Call xtensa_set_frag_assembly_state.
2277 (xtensa_unrecognized_line): New.
2278 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
2279 to xtensa_set_frag_assembly_state.
2280 (error_reset_cur_vinsn): New.
2281 (md_assemble): Remove check for literal frag. Remove call to
2282 istack_init. Call use_transform instead of use_generics. Parse
2283 explicit instruction format specifiers. Move code for
2284 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
2285 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
2286 Add dwarf2_where call. Remote automatic alignment for ENTRY
2287 instructions. Move call to xtensa_clear_insn_labels to the end.
2288 Rearrange to handle bundles.
2289 (xtensa_cons_fix_new): Delete.
2290 (xtensa_handle_align): New.
2291 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
2292 assignment to is_no_density field.
2293 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
2294 instead of reloc_to_opnum. Handle "alternate" relocations.
2295 (xtensa_force_relocation, xtensa_check_inside_bundle,
2296 xtensa_elf_section_change_hook): New.
2297 (xtensa_symbol_new_hook): Delete.
2298 (xtensa_fix_adjustable): Check for difference of symbols with an
2299 offset. Check for external and weak symbols.
2300 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
2301 (md_estimate_size_before_relax): Return expansion for the first slot.
2302 (tc_gen_reloc): Handle difference of symbols by producing
2303 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
2304 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
2305 tentative values into the output when linkrelax is set.
2306 (XTENSA_PROP_SEC_NAME): Define.
2307 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
2308 Create literal tables only if using literal sections. Create new
2309 property tables instead of old instruction tables. Check for unaligned
2310 branch targets and loops.
2311 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
2312 new_resource_table, clear_resource_table, resize_resource_table,
2313 resources_available, reserve_resources, release_resources,
2314 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
2315 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
2316 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
2317 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
2318 flag. Update checks for workaround options. Call
2319 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
2320 (xtensa_cleanup_align_frags): Add special case for branch targets.
2321 Check for and mark unreachable frags.
2322 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
2323 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
2324 end of a zero-overhead loop body.
2325 (frag_can_negate_branch): Handle instructions with multiple slots.
2326 Use new xtensa-isa.h functions
2327 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
2328 xtensa_mark_zcl_first_insns): New.
2329 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
2330 transformations are disabled.
2331 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
2332 multislot instructions.
2333 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
2334 Likewise. Also error if transformations are disabled.
2335 (unrelaxed_frag_max_size): New.
2336 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
2337 xtensa-isa.h functions.
2338 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
2339 xtensa_opcode_is_loop instead of is_loop_opcode.
2340 (get_text_align_power): Replace as_fatal with assertion.
2341 (get_text_align_fill_size): Iterate instead of using modulus when
2343 (get_noop_aligned_address): Assert that this is for a machine-dependent
2344 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
2345 xg_get_single_size, and frag_format_size.
2346 (get_widen_aligned_address): Rename to ...
2347 (get_aligned_diff): ... this function. Add max_diff parameter.
2348 Remove handling of rs_align/rs_align_code frags. Use
2349 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
2350 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
2351 and pass it back to caller.
2352 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
2353 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
2354 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
2355 (relax_frag_text_align): Rename to ...
2356 (relax_frag_loop_align): ... this function. Assume loops can only be
2357 in the first slot of an instruction.
2358 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
2359 instruction. Remove call to frag_wane.
2360 (relax_frag_narrow): Rename to ...
2361 (relax_frag_for_align): ... this function. Extend to handle
2362 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
2363 RELAX_NARROW for the first slot.
2364 (find_address_of_next_align_frag, bytes_to_stretch): New.
2365 (future_alignment_required): Use find_address_of_next_align_frag and
2366 bytes_to_stretch. Look ahead to subsequent frags to make smarter
2367 alignment decisions.
2368 (relax_frag_immed): Add format, slot, and estimate_only parameters.
2369 Check if transformations are enabled for b_j_loop_end workaround.
2370 Use new xtensa-isa.h functions and handle multislot instructions.
2371 Update call to xg_assembly_relax.
2372 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
2373 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
2375 (convert_frag_narrow): Add segP, format and slot parameters. Call
2376 convert_frag_immed for branch instructions. Adjust calls to
2377 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
2378 xg_get_single_size and xg_get_single_format.
2379 (convert_frag_fill_nop): New.
2380 (convert_frag_immed): Add format and slot parameters. Handle multislot
2381 instructions and use new xtensa-isa.h functions. Update calls to
2382 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
2383 enabled for b_j_loop_end workaround. Use build_nop instead of
2384 assemble_nop. Check is_specific_opcode flag. Check for unreachable
2385 frags. Use xg_get_single_size. Handle O_pltrel.
2386 (fix_new_exp_in_seg): Remove check for old plt flag.
2387 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
2388 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
2389 for loop opcode to an assertion. Mark all frags up to the end of the
2390 loop as not transformable.
2391 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
2392 (get_subseg_info): New.
2393 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
2395 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
2396 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
2397 (xtensa_switch_to_non_abs_literal_fragment): New.
2398 (cache_literal_section): Add is_code parameter and pass it through to
2399 retrieve_literal_seg.
2400 (retrieve_literal_seg): Add is_code parameter and use it to set the
2401 flags on the literal section. Handle case where head parameter is 0.
2402 (get_frag_is_no_transform, set_frag_is_specific_opcode,
2403 set_frag_is_no_transform): New.
2404 (xtensa_create_property_segments): Add end_property_function parameter
2405 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
2406 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
2407 (xtensa_create_xproperty_segments, section_has_xproperty): New.
2408 (add_xt_block_frags): Add end_property_function parameter and call it
2409 if it is non-zero. Call xtensa_frag_flags_init.
2410 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
2411 get_frag_property_flags, frag_flags_to_number,
2412 xtensa_frag_flags_combinable, xt_block_aligned_size,
2413 xtensa_xt_block_combine, add_xt_prop_frags,
2414 init_op_placement_info_table, opcode_fits_format_slot,
2415 xg_get_single_size, xg_get_single_format): New.
2416 (istack_push): Inline call to tinsn_copy.
2417 (tinsn_copy): Delete.
2418 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
2419 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
2420 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
2421 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
2422 functions. Handle invisible operands.
2423 (tinsn_to_slotbuf): New.
2424 (tinsn_check_arguments): Use new xtensa-isa.h functions.
2425 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
2426 vinsn_from_chars, and xg_free_vinsn.
2427 (tinsn_from_insnbuf): New.
2428 (tinsn_immed_from_frag): Add slot parameter and handle multislot
2429 instructions. Handle symbol differences.
2430 (get_num_stack_text_bytes): Use xg_get_single_size.
2431 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
2432 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
2433 get_expr_register, set_expr_symbol_offset_diff): New.
2434 * config/tc-xtensa.h (MAX_SLOTS): Define.
2435 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
2436 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
2437 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
2439 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
2440 (xtensa_frag_type struct): Add is_assembly_state_set,
2441 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
2442 is_align, is_text_align, alignment, and is_first_loop_insn fields.
2443 Replace is_generics and is_relax fields by is_no_transform field.
2444 Delete is_text and is_longcalls fields. Change text_expansion and
2445 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
2446 per-slot information: literal_frags, slot_subtypes, slot_symbols,
2447 slot_sub_symbols, and slot_offsets. Add fr_prev field.
2448 (xtensa_fix_data struct): New.
2449 (xtensa_symfield_type struct): Delete plt field.
2450 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
2451 forward declaration here.
2452 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
2453 (XTENSA_SECTION_RENAME): Undefine.
2454 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
2455 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
2456 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
2457 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
2458 (unit_num_copies_func, opcode_num_units_func,
2459 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
2460 (resource_table struct): New.
2461 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
2462 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
2463 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
2464 (tinsn_copy): Delete prototype.
2465 (vliw_insn struct): New.
2466 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
2467 (widen_spec_list): Add option conditions for density and boolean
2468 instructions. Add expansions using CONST16 and conditions for using
2469 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
2471 (simplify_spec_list): Add option conditions for density instructions.
2472 Add entry for NOP instruction.
2473 (append_transition): Add cmp function pointer parameter and use it to
2474 insert the new entry in order.
2475 (operand_function_LOW16U, operand_function_HI16U): New.
2476 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
2477 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2478 (enter_opname, split_string): Use xstrdup instead of strdup.
2479 (init_insn_pattern): Initialize new options field.
2480 (clear_req_or_option_list, clear_req_option_list,
2481 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
2483 (parse_insn_pattern): Parse option conditions.
2484 (transition_applies): New.
2485 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
2486 swapped last arguments in calls to append_constant_value_condition.
2487 Call clone_req_option_list. Add warning about invalid opcode.
2488 Handle LOW16U and HI16U function names.
2489 (build_transition_table): Add cmp parameter and use it in calls to
2490 append_transition. Use new xtensa-isa.h functions. Check
2491 transition_applies before adding entries.
2492 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
2493 pass it through to build_transition_table.
2494 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
2495 ReqOption, transition_cmp_fn): New types.
2496 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
2497 (transition_rule struct): Add options field.
2498 * doc/as.texinfo (Overview): Update Xtensa options.
2499 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
2500 --[no-]relax, and --[no-]generics options. Update descriptions of
2501 --text-section-literals and --[no-]longcalls. Add
2502 --[no-]absolute-literals and --[no-]transform.
2503 (Xtensa Syntax): Add description of syntax for FLIX instructions.
2504 Remove use of "generic" and "specific" terminology for opcodes.
2505 (Xtensa Registers): Generalize the syntax description to include
2506 user-defined register files.
2507 (Xtensa Automatic Alignment): Update.
2508 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
2509 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
2510 (Xtensa Directives): Remove confusing rules about precedence.
2511 (Density Directive, Relax Directive): Delete.
2512 (Schedule Directive): New.
2513 (Generics Directive): Rename to ...
2514 (Transform Directive): ... this node.
2515 (Literal Directive): Update for absolute literals. Missing
2516 literal_position directive is now an error.
2517 (Literal Position Directive): Update for absolute literals.
2518 (Freeregs Directive): Delete.
2519 (Absolute Literals Directive): New.
2520 (Frame Directive): Minor editing.
2521 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
2522 Update dependencies.
2523 * Makefile.in: Regenerate.
2525 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
2527 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
2528 to build the second and third fixups for a composite relocation.
2529 (macro_read_relocs): New function.
2530 (macro_build): Use it.
2531 (s_cpsetup): Pass all three composite relocation codes to macro_build.
2532 Simplify fragging code accordingly.
2533 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
2534 of the composite relocation. Set fx_tcbit in both fixups.
2536 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
2538 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
2539 (md_apply_fix3): Don't treat composite relocs as done.
2541 2004-10-07 Jan Beulich <jbeulich@novell.com>
2543 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
2544 prefix for symbol names generated from the LOCAL macro directive.
2546 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
2547 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
2549 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
2551 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
2553 (md_assemble): Add error checking for Co-Processor instructions.
2554 (get_cinv_parameters): Add 'b' option to invalidate the
2555 branch-target cache.
2557 2004-10-05 Paul Brook <paul@codesourcery.com>
2559 * config/tc-arm.c (unwind): New variable.
2560 (vfp_sp_encode_reg): New function.
2561 (vfp_sp_reg_required_here): Use it.
2562 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
2563 (vfp_parse_reg_list): New function.
2564 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
2565 s_arm_unwind_personality, s_arm_unwind_personalityindex,
2566 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
2567 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
2569 (md_pseudo_table): Add them.
2570 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
2571 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
2572 (set_section, add_unwind_adjustsp, flush_pending_unwind,
2573 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
2574 require_hashconst, add_unwind_opcode): New functions.
2575 * doc/c-arm.texi: Document unwinding opcodes.
2576 * NEWS: Mention the new feature.
2578 2004-10-04 Eric Christopher <echristo@redhat.com>
2580 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
2582 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
2584 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
2586 * config/tc-s390.c (md_apply_fix3): Likewise.
2587 * config/tc-sparc.c (md_apply_fix3): Likewise.
2589 2004-10-01 Paul Brook <paul@codesourcery.com>
2591 * config/tc-arm.c (arm_elf_section_type): New function.
2592 (arm_elf_change_section): Set section link for exidx sections.
2593 * config/tc-arm.h (arm_elf_section_type): Add prototype.
2594 (md_elf_section_type): Define.
2596 2004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
2598 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
2599 instruction's offset.
2601 2004-10-01 Adam Nemet <anemet@lnxw.com>
2603 * (TARGET_FORMAT): Remove LynxOS COFF definition.
2605 2004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
2607 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
2608 asymbol *, instead use symbol_get_bfdsym.
2610 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
2612 * config/tc-m68k.c (select_control_regs): Add mcf5249.
2614 2004-09-30 Paul Brook <paul@codesourcery.com>
2616 * config/tc-arm.c (do_smi, do_nop): New functions.
2617 (insns): Add ARMv6ZK instructions.
2618 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
2619 (tc_gen_reloc): Ditto.
2620 (arm_cpus): Add mpcore and arm1176.
2621 (arm_archs): Add armv6{k,z,zk}.
2622 * doc/c-arm.texi: Document new cores and architectures.
2624 2004-09-30 Nick Clifton <nickc@redhat.com>
2626 * config/tc-arm.c: Use ISO C90 formatting.
2628 2004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
2630 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
2631 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
2632 REG_TYPE_MVDX is expected.
2634 2004-09-29 Marc Bevand <m.bevand@gmail.com>
2636 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
2638 2004-09-21 James E Wilson <wilson@specifixinc.com>
2640 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
2641 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
2642 output_spill_base, output_unat_psprel, output_lc_psprel,
2643 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
2644 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
2645 output_spill_psprel_p): Use it.
2647 2004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
2649 * config/tc-crx.c (handle_LoadStor): New function.
2650 Handle load/stor unique instructions before parsing.
2652 2004-09-17 Paul Brook <paul@codesourcery.com>
2654 * config/tc-arm.c (s_arm_rel31): New funciton.
2655 (md_pseudo_table): Add .rel31.
2656 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
2657 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
2658 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
2659 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
2660 (arm_parse_reloc): Add (target2).
2662 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2664 * Makefile.am: Run "make dep-am".
2665 * Makefile.in: Regenerate.
2666 * aclocal.m4: Regenerate.
2667 * configure: Regenerate.
2668 * doc/Makefile.in: Regenerate.
2669 * po/POTFILES.in: Regenerate.
2670 * po/gas.pot: Regenerate.
2672 2004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
2674 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
2675 [!LLONG_MAX]: Ditto.
2677 2004-09-13 Paul Brook <paul@codesourcery.com>
2679 * config/tc-arm.c: Rename RELABS to TARGET1.
2681 2004-09-13 Alan Modra <amodra@bigpond.net.au>
2683 * messages.c (as_internal_value_out_of_range): Cast values passed
2684 to as_bad_where or as_warn_where to proper type.
2686 2004-09-11 Theodore A. Roth <troth@openavr.org>
2688 * config/tc-avr.c: Add support for
2689 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
2691 2004-09-09 Alan Modra <amodra@bigpond.net.au>
2693 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
2694 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
2696 2004-09-08 Paul Brook <paul@codesourcery.com>
2698 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
2699 fini_array and preinit_array section types.
2700 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
2702 * doc/as.texinfo: Document extra section types.
2704 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2706 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
2707 * Makefile.in: Regenerated.
2708 * configure.in: Set em for arm*-*-symbianelf*.
2709 * configure: Regenerated.
2710 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
2711 vectors when appropriate.
2712 * config/te-symbian.h: New file.
2714 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2716 * config/tc-crx.c (gettrap): Exception vector can be case
2718 (process_label_constant): Fix a 32-bit displacement bug in branch
2720 (get_operandtype) : Bug fix, wrong operand was used.
2721 (process_label_constant): Initialize relocation type to
2724 2004-09-01 Richard Earnshaw < reanrsha@arm.com>
2726 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
2727 for synthesizable cores.
2729 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
2731 2004-08-25 Dmitry Diky <diwil@spec.ru>
2733 * config/tc-msp430.c: Clean-up the code.
2734 (md_relax_table): New relax table.
2735 (mcu_types): Sort MCU types.
2736 (md_pseudo_table): Add .profiler pseudo handler.
2737 (pow2value): New function.
2738 (msp430_profiler): New function.
2739 (msp430_operands): Add new insns handlers.
2740 (msp430_srcoperand): Add register operand handler, allow complex
2742 (md_estimate_size_before_relax): Rewritten.
2743 (md_convert_frag): Rewritten.
2744 (msp430_relax_frag): New function.
2745 * config/tc-msp430.h (md_relax_frag): define macro
2746 * doc/c-msp430.texi: Update information.
2748 2004-08-24 Nick Clifton <nickc@redhat.com>
2750 * as.c (std_shortopts): Allow -g to take an optional argument.
2751 (parse_args): Pass any switch starting with -g on to the backend
2754 2004-08-18 Mark Mitchell <mark@codesourcery.com>
2756 * configure.in (arm*-*-symbianelf*): New target.
2757 (arm*-*-eabi*): Likewise.
2758 * configure: Regenerated.
2760 2004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2761 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
2764 2004-08-18 Jakub Jelinek <jakub@redhat.com>
2766 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
2767 argument, don't do anything if current section is not
2768 .gnu.linkonce.t.* and linkonce_empty is set.
2769 (generate_unwind_image, dot_endp): Adjust callers, call
2770 start_unwind_section (*, 1) if nothing will be put into the
2773 2004-08-17 Nick Clifton <nickc@redhat.com>
2775 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
2776 (show_usage): Add -g.
2777 (std_longopts): Add --gen-debug. Alpha sort the table.
2778 (parse_args): Print an error message if a switch is not handled.
2779 Handle the -g switch, calling md_debug_format_selector() if
2781 * NEWS: Mention new feature.
2782 * doc/as.texinfo: Document new switch.
2783 * doc/internals.texi: Document behaviour of md_parse_option.
2785 * config/tc-arm.c (md_parse_option): Do not issue an error message
2786 if the switch is not recognised.
2787 * config/tc-m68k.c (md_parse_option): Likewise.
2788 * config/tc-pdp11.c (md_parse_option): Likewise.
2789 * config/tc-v850.c (md_parse_option): Likewise.
2791 * as.h: Fix up formatting.
2794 2004-08-16 Nick Clifton <nickc@redhat.com>
2796 * macro.c (macro_set_alternate): Use ISO C90 formatting.
2798 * configure.in: Sort architecture based tables alphabetically.
2799 * configure: Regenerate.
2801 2004-08-16 Alan Modra <amodra@bigpond.net.au>
2803 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
2804 { "cc", 68 }, with { "cr", 70 }.
2806 2004-08-13 Jan Beulich <jbeulich@novell.com>
2807 Nick Clifton <nickc@redhat.com>
2809 * as.c: Add and handle new --alternate command line option.
2810 * macro.c (macro_set_alternate): New.
2811 * macro.h (macro_set_alternate): Declare.
2812 * read.c: Add and handle new .altmacro and .noaltmacro directives.
2813 * doc/as.texinfo: Document new command line option and pseudo-ops
2814 as well as insert documentation originating from gasp about
2815 alternate macro syntax.
2816 * NEWS: Mention new command line option and pseudo-ops.
2818 2004-08-10 Mark Mitchell <mark@codesourcery.com>
2820 * expr.c (operand): Handle the "~", "-", and "!" operators applied
2823 2004-08-06 Paul Brook <paul@codesourcery.com>
2825 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
2826 Handle new relocations.
2827 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
2829 2004-08-05 Bob Wilson <bob.wilson@acm.org>
2831 * write.c (relax_segment): Use was_address instead of address when
2832 setting fr_fix field for align frag due to backwards .org.
2834 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
2836 Introduce SH2a support.
2837 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
2838 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
2840 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
2841 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
2842 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
2843 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
2844 to end of conditional expression.
2845 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
2846 * config/tc-sh.c: Add sh2a-nofpu support.
2847 2003-12-29 DJ Delorie <dj@redhat.com>
2848 * tc-sh.c: Add sh2a support.
2849 (parse_reg): Add tbr.
2850 (parse_at): Support @@(disp,tbr).
2851 (get_specific): Support sh2a opcodes.
2852 (insert4): New, for 4 byte relocs.
2853 (build_Mytes): Support sh2a opcodes.
2854 (md_apply_fix3_Mytes): Support sh2a opcodes.
2855 2003-12-02 Michael Snyder <msnyder@redhat.com>
2856 * config/tc-sh.c (md_parse_option): Handle sh2a.
2857 (sh_elf_final_processing): Ditto.
2859 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2861 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
2864 2004-07-27 Alan Modra <amodra@bigpond.net.au>
2866 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
2867 (ppc_arch): Expand comment.
2869 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
2871 * config/tc-crx.c: Support evaluating the difference between two
2873 * config/tc-crx.h: Likewise.
2875 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
2877 * config/tc-ia64.c (start_unwind_section): Set the linked-to
2879 (ia64_elf_section_change_hook): Set the linked-to section for
2882 2004-07-26 Dmitry Diky <diwil@spec.ru>
2884 * config/tc-msp430.c: Add new subtargets: msp430x1610,
2885 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
2886 msp430xG438, msp430xG439.
2888 2004-07-25 Daniel Jacobowitz <dan@debian.org>
2890 * doc/as.texinfo (Section, PushSection): Correct documentation
2893 2004-07-21 Jan Beulich <jbeulich@novell.com>
2895 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
2896 permissible for the selected instruction suffix.
2897 (match_template): Don't permit 64-bit general purpose operands in
2899 (finalize_imm): Permit 64-bit immediates.
2900 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
2901 specially except for the width of the used base and/or index
2902 registers. For 32-bit displacements, use sign-extended
2903 relocations only when using 64-bit addressing.
2904 Force zero displacement on rip-relative addressing when there is
2905 no other displacement.
2906 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
2907 specially except for the width of the used base and/or index
2909 (parse_register): Disallow Reg64 registers in 32-bit mode.
2911 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
2912 suffix if the instruction doesn't support it.
2914 2004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
2916 * config/tc-mips.c (append_insn): Handle constant expressions with
2917 no associated relocation.
2918 (mips_ip): Cancel the expression after use for the Q format
2920 (parse_relocation): Return no relocation for unsupported
2922 (my_getSmallExpression): Return no relocation if no relocation
2925 2004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2927 * config/obj-som.c (adjust_stab_sections): Add prototype.
2928 (obj_som_compiler, obj_som_version, obj_som_copyright,
2929 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
2930 * config/tc-hppa.c (update_subspace): Likewise.
2931 (is_defined_subspace): Amplify comment.
2932 * config/obj-som.h (som_frob_file): Add prototype.
2934 2004-07-19 Christopher Faylor <cgf@timesys.com>
2935 H.J. Lu <hongjiu.lu@intel.com>
2937 * subsegs.c (section_symbol): Don't create a new segment when
2938 existing segment is undefined.
2940 2004-07-16 Richard Earnshaw <rearnsha@arm.com>
2942 * config/tc-arm.c: Include include/opcode/arm.h.
2943 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
2944 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
2945 (FPU_ARCH_*): Delete.
2946 * Makefile.am: Update dependencies.
2947 * Makefile.in: Regenerate.
2949 2004-07-15 Nick Clifton <nickc@redhat.com>
2951 * configure.in: Accept armbe as a big-endian arm configuration.
2952 * configure: Regenerate.
2954 2004-07-13 Thomas Nystrom <thn@saeab.se>
2956 * config/tc-i386.c (T_SHIFTOP): New constant.
2957 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
2958 (intel_el1): Handle '~'.
2959 (intel_get_token): Handle '<>', '&', '|' and '~'.
2961 2004-07-13 Nick Clifton <nickc@redhat.com>
2963 (md_assemble): Remove spurious newline from end of as_bad error
2965 (intel_e05_1): Likewise.
2966 (intel_e11): Likewise.
2967 (intel_match_token): Likewise.
2969 2004-07-11 Andreas Schwab <schwab@suse.de>
2971 * config/tc-m68k.c: Convert to C90. Remove redundant
2972 declarations. Indentation fixup.
2973 [M68KCOFF]: Include "obj-coff.h" instead of declaring
2974 obj_coff_section ourselves.
2976 2004-07-09 James E Wilson <wilson@specifixinc.com>
2978 * config/tc-ia64.c (default_big_endian): New.
2979 (dot_byteorder, md_begin): Use it.
2980 (md_parse_option): Set it.
2982 2004-07-09 Nick Clifton <nickc@redhat.com>
2984 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
2985 * configure: Regenerate.
2986 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
2987 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
2988 sh_find_elf_flags if necessary.
2990 2004-07-08 Richard Sandiford <rsandifo@redhat.com>
2992 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
2993 going to be split into more than one in-place addend, return 0
2994 for relocations against mergeable sections. Associate comments
2997 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
2999 * Makefile.am (CPU_TYPES): Add crx.
3000 (TARGET_CPU_CFILES): Add config/tc-crx.c.
3001 (TARGET_CPU_HFILES): Add config/tc-crx.h.
3002 (DEPTC_crx_elf): New target.
3003 (DEPOBJ_crx_elf): Likewise.
3004 (DEP_crx_elf): Likewise.
3005 * Makefile.in: Regenerate.
3006 * configure.in: Add crx* target.
3007 * configure: Regenerate.
3008 * config/tc-crx.c: New file.
3009 * config/tc-crx.h: New file.
3010 * NEWS: Mention new target.
3012 2004-07-06 Nick Clifton <nickc@redhat.com>
3014 * config.in: Undefine TARGET_SYMBIAN by default.
3016 * configure: Regenerate. Add sh-symbian-elf target. If
3017 selected define TARGET_SYMBIAN.
3018 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
3019 format if TARGET_SYMBIAN has been defined.
3021 * output-file.c (output_file_create): Report the target format
3022 chosen when bfd_openw reports that it is invalid.
3024 * config/obj-coff.c (coff_pseudo_table): Only define the weak
3025 pseudo for BFD based assemblers.
3027 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
3030 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
3031 (md_parse_option): Remove redundant -isa testing.
3032 Make bfd_arch variable const.
3033 (md_show_usage): Make bfd_arch variable const.
3035 2004-07-03 James E Wilson <wilson@specifixinc.com>
3037 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
3038 * config/tc-ia64.h (md_frag_check): Define.
3040 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3042 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
3044 * doc/as.texinfo (Weak): Document PE weak symbols.
3046 2004-07-03 Richard Sandiford <rsandifo@redhat.com>
3048 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
3049 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
3050 (mips_frob_file): Rework so that only a single pass through the
3051 relocs is needed. Allow %lo()s to have higher offsets than their
3052 corresponding %hi()s or %got()s.
3054 2004-07-02 Nick Clifton <nickc@redhat.com>
3056 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
3057 allow values which have come from undefined symbols.
3058 Always consider this fixup to have been processed as a reloc
3059 cannot be generated for it.
3061 2004-07-02 Alan Modra <amodra@bigpond.net.au>
3063 * frags.h (struct frag): Add has_code and insn_addr fields.
3064 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
3065 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
3066 * config/tc-ppc.h (md_frag_check): Define.
3068 2004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
3070 * doc/Makefile.am (info): Rename goal to...
3071 (info-local): ... this, to preserve implicit dependencies.
3072 * doc/Makefile.in: Regenerate with automake 1.8.5.
3074 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3076 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
3077 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
3078 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
3079 (tc_gen_reloc): Likewise.
3080 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
3081 (m32r_parse_name): Likewise.
3082 (m32r_cgen_parse_fix_exp): Likewise.
3083 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
3084 (O_PIC_reloc): Likewise.
3085 (TC_CGEN_PARSE_FIX_EXP): Likewise..
3086 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
3087 for @GOTOFF, @GOT, @PLT.
3089 2004-06-21 Jan Beulich <jbeulich@novell.com>
3091 * gas/symbols.c: While discarding ordinary local absolute symbols
3092 when --strip-local-absolute is in effect, retain file symbols.
3094 2004-06-20 Andreas Schwab <schwab@suse.de>
3096 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
3097 (md_parse_option): Likewise.
3099 2004-06-17 Jan Beulich <jbeulich@novell.com>
3101 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
3102 * config/te-netware.h: New file.
3103 * config/te-ppcnw.h: Delete: Obsolete.
3104 * configure.in: Eliminate ill NetWare targets. Make generic
3105 NetWare target use proper emulation.
3106 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
3107 reference to new te-netware.h.
3108 * configure: Regenerate.
3109 * Makefile.in: Regenerate.
3111 2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
3113 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
3114 comparison in .insn pseudo operation.
3116 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3118 * config/obj-coff.c (coff_adjust_section_syms): Use
3119 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
3120 (coff_frob_section): Likewise.
3121 * config/tc-mips.c (md_apply_fix3): Likewise.
3122 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
3123 (elf_frob_file_after_relocs): Likewise.
3125 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3127 * config/tc-hppa.c (log2): Rename to exact_log2.
3128 (pa_next_subseg): Delete unused function.
3129 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
3130 (create_new_subspace): Likewise.
3133 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
3134 labels. Fix warning.
3136 2004-05-28 DJ Delorie <dj@redhat.com>
3138 * config/tc-mn10300.h (tc_fix_adjustable): Define.
3139 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
3140 or non-merged symbols.
3142 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
3144 * config/tc-ia64.c (remove_marked_resource): Save, clear and
3145 restore the old slot when inserting srlz.i/srlz.d.
3147 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
3149 * Makefile.am: Regenerate dependecies.
3150 * Makefile.in: Regenerate.
3151 * config/tc-sh.c (valid_arch): Make unsigned.
3152 (preset_target_arch): Likewise.
3153 (md_begin): Use new architecture flags system.
3154 (get_specific): Likewise.
3155 (assemble_ppi): Likewise.
3156 (md_assemble): Likewise. Also fix error check for bad opcodes.
3157 (md_parse_option): Likewise. Also generate -isa values according
3158 to the table in bfd/cpu-sh.c instead of just constants. Also
3159 allow <arch>-up ISA variants.
3160 (sh_elf_final_processing): Replace if-else chain with a call to
3161 sh_find_elf_flags().
3162 * testsuite/gas/sh/arch: New directory.
3163 * testsuite/gas/sh/arch/arch.exp: New test script.
3164 * testsuite/gas/sh/arch/arch_expected.txt: New file.
3165 * testsuite/gas/sh/arch/sh.s: New file.
3166 * testsuite/gas/sh/arch/sh2.s: New file.
3167 * testsuite/gas/sh/arch/sh-dsp.s: New file.
3168 * testsuite/gas/sh/arch/sh2e.s: New file.
3169 * testsuite/gas/sh/arch/sh3-nommu.s: New file.
3170 * testsuite/gas/sh/arch/sh3.s: New file.
3171 * testsuite/gas/sh/arch/sh3-dsp.s: New file.
3172 * testsuite/gas/sh/arch/sh3e.s: New file.
3173 * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
3174 * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
3175 * testsuite/gas/sh/arch/sh4.s: New file.
3176 * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
3177 * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
3178 * testsuite/gas/sh/arch/sh4a.s: New file.
3180 2004-05-28 Peter Barada <peter@the-baradas.com>
3182 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
3183 with zero offset into mode 2 addressing to save a word.
3185 2004-05-27 H.J. Lu <hongjiu.lu@intel.com>
3187 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
3188 (ar_is_only_in_integer_unit): New.
3189 (ar_is_only_in_memory_unit): New.
3190 (generate_unwind_image): Silence gcc on 32bit host.
3191 (md_assemble): Use ar_is_only_in_integer_unit instead of
3192 ar_is_in_integer_unit. Check AR access.
3194 2004-05-27 Peter Barada <peter@the-baradas.com>
3196 * config/tc-m68k.c (md_begin): Sort the opcode table into
3198 (m68k_compare_opcode): New function to do the sorting.
3200 2004-05-24 Peter Barada <peter@the-baradas.com>
3202 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
3203 addressing on MIT style operands.
3204 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
3206 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
3209 2004-05-23 Alan Modra <amodra@bigpond.net.au>
3211 * expr.c (operand, operator): Don't reject '++' and '--'.
3213 2004-05-20 Richard Sandiford <rsandifo@redhat.com>
3215 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
3218 2004-05-17 Adam Nemet <anemet@lnxw.com>
3220 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
3221 * configure: Regenerate.
3223 2004-05-13 Paul Brook <paul@codesourcery.com>
3225 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
3227 2004-05-13 Joel Sherrill <joel@oarcorp.com>
3229 * configure.in (or32-*-rtems*): Switch to elf.
3230 * configure: Regenerate.
3232 2004-05-13 Nick Clifton <nickc@redhat.com>
3234 * po/fr.po: Updated French translation.
3236 2004-05-11 Nick Clifton <nickc@redhat.com>
3238 * doc/as.texinfo (Section): Document G and T flags to .section
3239 directive. Document the extra arguments that the G flag
3240 requires. Document the #tls flag.
3242 2004-05-11 H.J. Lu <hongjiu.lu@intel.com>
3244 * subsegs.c (section_symbol): Create a new section symbol if
3245 the existing one doesn't match.
3246 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
3248 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
3250 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
3251 to cope with VR4181A errata MD(1) and MD(4).
3253 2004-05-07 Brian Ford <ford@vss.fsi.com>
3255 * NEWS: Mention .secrel32 for pe[i]-i386.
3257 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
3259 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3260 (HANDLE_ALIGN): New.
3262 2004-05-06 Daniel Jacobowitz <dan@debian.org>
3264 * Makefile.am (DIST_SUBDIRS): Define.
3265 * aclocal.m4: Regenerate with automake 1.8.4.
3266 * Makefile.in: Likewise.
3267 * doc/Makefile.in: Likewise.
3269 2004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
3271 * config/tc-ia64.c (dot_serialize): Declare.
3272 (dot_serialize): New function.
3273 (md_pseudo_table): Add ".serialize.data" and
3274 ".serialize.instruction" directives.
3276 2004-05-06 Nick Clifton <nickc@redhat.com>
3278 * messages (as_internal_value_out_of_range): Print a message about
3279 a value being out of range. Be consistent about whether the
3280 values are printed in decimal or hexadecimal.
3281 (as_warn_value_out_of_range): Generate a warning message about an
3283 (as_bad_value_out_of_range): Generate an error message about an
3285 * as.h: Prototype the new functions.
3286 * config/tc-alpha.c (insert_operand): Use new function.
3287 * config/tc-arc.c (arc_insert_operand): Likewise.
3288 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
3289 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
3290 * config/tc-ppc.c (ppc_insert_operand): Likewise.
3291 * config/tc-s390.c (s390_insert_operand): Likewise.
3292 * config/tc-v850.c (v850_insert_operand): Likewise.
3294 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
3296 * configure.in: Set em=linux for frv-*-*linux*.
3297 * configure: Rebuilt.
3298 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
3299 (frv_md_fdpic_enabled): New.
3300 * config/tc-frv.c (frv_md_fdpic_enabled): New.
3301 (DEFAULT_FDPIC): New.
3302 (frv_flags): Use DEFAULT_FDPIC.
3303 (frv_pic_flag): Likewise.
3304 (OPTION_NOPIC): New.
3305 (md_longopts): Add -mnopic.
3306 (md_parse_option): Handle it.
3307 (md_show_usage): Add -mfdpic and -mnopic.
3309 2004-05-05 Peter Barada <peter@the-baradas.com>
3311 * config/tc-m68k.c: Add find_cf_chip to print list of valid
3312 chips for invalid coldfire instructions, rename selectors
3313 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
3314 add current_chip to track which chip is referred to(including save/restore),
3315 use current_chip to select control registers, not current_arch.
3316 (md_show_usage): Add new chips.
3317 * doc/c-m68k.texi: Document new command line switches.
3319 2004-05-05 Jakub Jelinek <jakub@redhat.com>
3321 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
3322 (NOP_OPCODE): Define.
3323 (s390_align_code): Remove prototype.
3324 * tc-s390.c (s390_align_code): Remove.
3326 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
3328 * config/tc-ia64.c (make_unw_section_name): Removed.
3329 (start_unwind_section): New function.
3330 (generate_unwind_image): Take const segT instead of const
3332 (dot_handlerdata): Adjusted.
3333 (dot_endp): Likewise.
3335 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
3337 * config/obj-elf.c (obj_elf_change_section): Allow the
3338 ".note.GNU-stack" section has SHF_EXECINSTR.
3340 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
3342 * config/obj-elf.c (get_section): Return bfd_boolean.
3343 (obj_elf_change_section): Call bfd_get_section_by_name_if
3344 instead of bfd_map_over_sections.
3346 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
3348 * config/obj-elf.c (get_section): New function.
3349 (obj_elf_change_section): Support multiple sections with same
3352 2004-04-30 Nick Clifton <nickc@redhat.com>
3354 * config/tc-arm.c (create_register_alias): Fix typo checking for
3355 case sensitive register aliases.
3356 (co_proc_number): Use error message string in all_reg_maps[]
3358 (cp_reg_required_here): Likewise.
3359 (fp_reg_required_here): Likewise.
3361 2004-04-29 Brian Ford <ford@vss.fsi.com>
3363 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
3365 2004-04-28 Chris Demetriou <cgd@broadcom.com>
3367 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
3368 (load_address, macro, mips_ip, md_parse_option)
3369 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
3370 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
3371 embedded-PIC handling, and update comments.
3372 (SWITCH_TABLE): Remove.
3373 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
3374 (enum mips_pic_level): Remove EMBEDDED_PIC.
3375 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
3376 (TC_FORCE_RELOCATION): Update comment.
3377 * ecoff.c (ecoff_build_lineno): Add comment about some code that
3378 might be safe to remove now that MIPS embedded-PIC is gone.
3380 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3382 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
3383 call to obj_set_subsection_attributes.
3384 (obj_som_init_stab_section): Likewise.
3385 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
3386 (pa_def_subspaces): Provide comdat default.
3387 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
3388 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
3389 calls to create_new_subspace and update_subspace to pass comdat flag.
3390 (create_new_subspace, update_subspace): Add new comdat argument. Use
3391 it in calls to obj_set_subsection_attributes.
3392 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
3393 and use of comdat, common and dup_comm parameters.
3395 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
3397 * config/obj-elf.c (obj_elf_change_section): Check if the old
3398 group name is NULL before comparison.
3400 2004-04-23 Chris Demetriou <cgd@broadcom.com>
3402 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
3404 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3406 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
3408 2004-04-23 Chris Demetriou <cgd@broadcom.com>
3410 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
3411 (OPTION_MEMBEDDED_PIC): Remove.
3412 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
3413 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
3414 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
3415 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
3416 (OPTION_ELF_BASE): Renumber.
3417 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
3418 (md_show_usage): Remove mention of -membedded-pic.
3419 * doc/as.texinfo: Remove mention of -membedded-pic.
3421 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3423 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
3424 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
3426 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
3427 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
3428 USE_GLOBAL_POINTER_OPT.
3430 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3432 * config/tc-mips.c (macro): One more use of load_delay_nop.
3434 2004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
3436 * config/tc-mips.c (load_delay_nop): New function.
3437 (load_address, macro): Use load_delay_nop() to build a nop
3438 which can be omitted with gpr_interlocks.
3440 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3442 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
3443 cop_interlocks): Remove superfluous CPU entries.
3445 2004-04-22 Paul Brook <paul@codesourcery.com>
3447 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
3449 2004-04-22 Peter Barada <peter@the-baradas.com>
3451 * NEWS: Added support for EMAC instructions and MAC/EMAC
3453 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
3454 scale factor tokens, trailing_ampersand to mark mask addressing
3455 for MAC/EMAC instructions.
3456 * config/m68k-parse.y: Add options_ampersand clause, '<<',
3458 (yylex): Handle '>', '<', and '&' following '+'.
3459 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
3460 architectures in archs[].
3461 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
3462 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
3464 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
3465 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
3467 Add EMAC operands to init_table[].
3469 2004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
3471 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
3473 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
3474 * config/tc-arm.c (enum mstate): Delete from here.
3475 (mapping_state): Remove the static mapstate variable and instead
3476 store the state in the segment. This allows a per-section mapping
3477 state. Handle and ignore MAP_UNDEFINED states.
3478 (arm_elf_change_section): Get the current mapping state from the
3480 (s_ltorg): Set the mapping state to MAP_DATA.
3481 (arm_cleanup): Use arm_elf_change_section to get the mapping state
3482 for each pool as it is emitted.
3484 2004-04-22 Nick Clifton <nickc@redhat.com>
3486 * config/tc-arm.h: Formatting tidy ups.
3488 2004-04-20 Chris Demetriou <cgd@broadcom.com>
3490 * NEWS: Note that MIPS -membedded-pic option is deprecated.
3492 2004-04-20 DJ Delorie <dj@redhat.com>
3494 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
3495 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
3496 [TE_PE] (O_secrel): Define.
3497 [TE_PE] (x86_pe_cons_fix_new): New.
3498 [TE_PE] (pe_directive_secrel): Likewise.
3499 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
3501 2004-04-19 Eric Christopher <echristo@redhat.com>
3503 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
3504 of previous patch for fix in gcc.
3506 2004-04-19 Jakub Jelinek <jakub@redhat.com>
3508 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
3510 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
3512 * read.c (do_align): Call md_flush_pending_output, if defined.
3514 2004-04-16 Alan Modra <amodra@bigpond.net.au>
3516 * expr.c (operand): Correct checks for ++ and --.
3518 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
3520 * config/tc-generic.c: Add some comments.
3522 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
3524 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
3525 -{no-}mfix-vr4122-bugs.
3526 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
3527 (append_insn, mips_emit_delays): Update accordingly.
3528 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
3529 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
3530 (md_parse_option): Update after above changes.
3531 (md_show_usage): Add -mfix-vr4120.
3533 2004-04-13 Bob Wilson <bob.wilson@acm.org>
3535 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
3536 of .section directive; add a reference to the ELF .subsection
3539 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3541 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
3544 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3546 * Makefile.am: Remove mips from aout targets.
3547 * Makefile.in: Regenerate.
3548 * configure.in: Remove mips-dec-bsd* target.
3549 * configure: Regenerate.
3551 2004-04-07 Alan Modra <amodra@bigpond.net.au>
3554 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
3555 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
3556 Update "mapping". Restrict some @ modifiers to 32 bit.
3558 2004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
3559 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
3561 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
3562 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
3563 dont_adjust_reloc_32 is set.
3564 (md_longopts): Add option -renesas.
3565 (md_parse_option, md_show_usage): Likewise.
3566 * doc/c-sh.texi: Likewise.
3568 2004-04-01 Dave Korn <dk@artimi.com>
3570 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
3571 hi16 and lo16 fixS structs.
3572 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
3573 exactly the same way as for RELOC_DLX_REL16.
3574 (machine_ip): properly respect LO flag in the_insn and
3575 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
3576 (md_apply_fix3): apply RELOC_DLX_LO16.
3578 2004-03-30 Stan Shebs <shebs@apple.com>
3580 Remove long-obsolete MPW support.
3581 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
3582 * configure.in: Remove mention of ppc-*-mpw* config.
3583 * configure.in: Likewise.
3585 2004-03-30 Nick Clifton <nickc@redhat.com>
3587 * config/tc-arm.c (meabi_flags): Make its use conditional upon
3588 OBJ_ELF being defined.
3590 2004-03-27 Alan Modra <amodra@bigpond.net.au>
3592 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
3594 2004-03-23 Paul Brook <paul@codesourcery.com>
3596 * config/tc-arm.c (meabi_flags): New variable.
3597 (arm_parse_eabi): New function.
3598 (md_begin): Set flags for EABI v3.
3600 (arm_long_opts): Add meabi.
3601 * doc/as.texinfo <ARM>: Document -meabi.
3602 * doc/c-arm.texi: Ditto.
3604 2004-03-22 Bob Wilson <bob.wilson@acm.org>
3606 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
3607 tables even when use_literal_section flag is not set.
3609 2004-03-22 Alan Modra <amodra@bigpond.net.au>
3611 * config/tc-sh.c: Remove trailing whitespace.
3613 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3615 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
3616 --mul-bug-abort and the default behavior.
3617 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
3618 (err_for_dangerous_mul_placement): New variable.
3619 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
3621 (md_cris_relax_table): Have placeholder for STATE_MUL.
3622 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
3623 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
3625 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
3626 STATE_BYTE)>: Ditto.
3627 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
3628 alignment and position of this frag, emit error message if
3630 (md_assemble): For a multiply insn and when checking it,
3631 transform the current frag into a special frag for that purpose.
3632 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
3633 OPTION_MULBUG_ABORT_ON>: Handle new options.
3635 2004-03-19 Bob Wilson <bob.wilson@acm.org>
3637 * config/tc-xtensa.c (mark_literal_frags): New function.
3638 (xtensa_move_literals): Call mark_literal_frags for all literal
3639 segments, including init and fini literal segments.
3640 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
3642 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3644 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
3645 (pa_comm): Set BSF_OBJECT in symbol flags.
3647 2004-03-19 Alan Modra <amodra@bigpond.net.au>
3649 * Makefile.am: Run "make dep-am".
3650 * Makefile.in: Regenerate.
3651 * doc/Makefile.in: Regenerate.
3652 * config.in: Regenerate.
3653 * po/gas.pot: Regenerate.
3655 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
3657 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
3658 (demand_empty_rest_of_line): Issue an error here.
3659 (ignore_rest_of_line): Silently skip to end.
3660 (demand_copy_string): Issue an error, not warning.
3662 * config/obj-elf.c (obj_elf_section_name): Likewise.
3663 (obj_elf_section): Likewise.
3664 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
3665 (arc_extinst): Likewise.
3666 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
3667 (dot_spill): Likewise.
3668 (dot_unwabi): Likewise.
3669 (dot_prologue): Likewise.
3671 * expr.c (operand): Reject ++ and --.
3672 (operator): Likewise.
3674 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3676 * config/tc-sh.c: Include dw2gencfi.h.
3677 (sh_cfi_frame_initial_instructions): New function.
3678 (sh_regname_to_dw2regnum): Likewise.
3679 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
3681 (TARGET_USE_CFIPOP): Define.
3682 (tc_cfi_frame_initial_instructions): Likewise.
3683 (tc_regname_to_dw2regnum): Likewise.
3684 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
3685 * Makefile.am: Update dependencies.
3686 * Makefile.in: Regenerate.
3688 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3690 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3691 * configure: Regenerate.
3693 2004-03-12 Bob Wilson <bob.wilson@acm.org>
3695 * read.c (s_leb128): Call md_flush_pending_output.
3697 2004-03-12 Michal Ludvig <mludvig@suse.cz>
3699 * config/tc-i386.c (output_insn): Handle PadLock instructions.
3700 * config/tc-i386.h (CpuPadLock): New define.
3701 (CpuUnknownFlags): Added CpuPadLock.
3703 2004-03-07 Andreas Schwab <schwab@suse.de>
3705 * doc/c-hppa.texi (HPPA Directives): Fix typo.
3707 2004-03-07 Richard Henderson <rth@redhat.com>
3709 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
3710 (cfi_finish): Likewise for fde.
3712 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
3714 * config/tc-ia64.c (md_assemble): Properly handle NULL
3716 (ia64_handle_align): Don't abort if failed to add a stop bit.
3718 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
3720 * Makefile.in: Regenerated.
3721 * aclocal.m4: Likewise.
3722 * configure: Likewise.
3723 * doc/Makefile.in: Likewise.
3725 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
3727 * config/tc-ia64.c (dot_align): New.
3728 (ia64_do_align): Make it static.
3729 (md_pseudo_table): Use "dot_align" for "align".
3730 (ia64_md_do_align): Don't set align_frag here.
3731 (ia64_handle_align): Add a stop bit to the previous bundle if
3734 * config/tc-ia64.h (ia64_do_align): Removed.
3736 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
3738 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
3739 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
3740 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
3741 the most general type or the user specifically requested it.
3742 (md_assemble): Add a new error message for when an instruction
3743 is understood, but is not allowed due to an -isa option.
3745 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
3747 * config/tc-ia64.c (align_frag): New.
3748 (md_assemble): Set the tc_frag_data field in align_frag for
3749 IA64_OPCODE_FIRST instructions.
3750 (ia64_md_do_align): Set align_frag.
3751 (ia64_handle_align): Add a stop bit if needed.
3753 * config/tc-ia64.h (TC_FRAG_TYPE): New.
3754 (TC_FRAG_INIT): New.
3756 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3758 * config/tc-frv.c (fr400_audio): New variable.
3759 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
3760 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
3761 (target_implements_insn_p): New function.
3762 (md_assemble): Report an error if the processor doesn't implement
3765 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3767 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
3768 (md_parse_option): Ditto.
3769 (OPTION_NO_SPECIAL_M32R): Added.
3770 (md_show_usage): Document it.
3771 (enable_speial_m32r): Changed a default value from 0 to 1.
3772 * doc/c-m32r.texi: Document the -no-bitinst option.
3774 2004-02-27 Nick Clifton <nickc@redhat.com>
3776 * config/tc-sh.c (get_operand): Revert previous delta.
3777 (tc_gen_reloc): Check for an unknown reloc type before processing
3780 2004-02-27 Hannes Reinecke <hare@suse.de>
3782 * config/tc-s390.c (s390_insn): Correct range check for opcode in
3783 .insn pseudo operation.
3785 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
3787 * config/tc-sh.c (get_operand): In case of #Imm, check has been
3788 added for wrong syntax.
3790 2004-02-26 Eric Christopher <echristo@redhat.com>
3792 * config/tc-mips.c (mips_dwarf2_addr_size): New.
3793 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
3795 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
3797 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
3798 nibble types to assembler.
3800 2004-02-25 Fred Fish <fnf@redhat.com>
3802 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
3804 2004-02-20 James E Wilson <wilson@specifixinc.com>
3806 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
3808 (fixup_unw_records): New arg before_relax. Pass to slot_index.
3809 (ia64_estimate_size_before_relax): New.
3810 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
3811 (generate_unwind_image): Pass 1 to fixup_unw_records.
3812 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
3813 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
3815 2004-02-19 Jakub Jelinek <jakub@redhat.com>
3817 * stabs.c (generate_asm_file): Avoid warning about use of
3818 uninitialized variable.
3820 2004-02-18 David Mosberger <davidm@hpl.hp.com>
3822 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
3823 body, and endp, allow unwind records which do not have a "t"
3824 (time/instruction) field.
3826 2004-02-17 Petko Manolov <petkan@nucleusys.com>
3828 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
3829 (do_mav_dspsc_2): Likewise.
3830 Fix accumulator registers move opcodes.
3832 2004-02-13 Hannes Reinecke <hare@suse.de>
3833 Jakub Jelinek <jakub@redhat.com>
3835 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
3837 2004-02-10 Steve Ellcey <sje@cup.hp.com>
3839 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
3840 (tc_frob_symbol): New macro definition.
3841 * config/tc-ia64.c (ia64_frob_symbol): New routine.
3843 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3845 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
3848 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
3850 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
3851 (TC_CASE_SENSITIVE): ... this.
3852 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
3853 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
3855 2004-02-06 James E Wilson <wilson@specifixinc.com>
3857 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
3858 (generate_unwind_image): Re-add it here.
3860 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
3862 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
3863 * read.h (SKIP_WHITESPACE): Turn into an expression.
3864 * read.c (read_a_source_file): A pseudo is removed by having a
3867 2004-02-05 James E Wilson <wilson@specifixinc.com>
3869 * config/tc-ia64.c (output_endp): New.
3870 (count_bits): Delete.
3871 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
3872 endp unwind records.
3873 (fixup_unw_records): Handle endp unwind records. Delete code for
3874 shortening prologue regions not followed by a body record.
3875 (dot_endp): Call add_unwind_entry to emit endp unwind record.
3876 * config/tc-ia64.h (unw_record_type): Add endp.
3878 2004-02-03 James E Wilson <wilson@specifixinc.com>
3880 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
3881 fill padding bytes with zeroes.
3882 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
3883 sets unwind_record slot_number and slot_frag fields.
3885 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3887 * config/tc-mips.c (add_got_offset_hilo): New function.
3888 (macro): Use load_register() and add_got_offset_hilo() to load
3889 constants instead of hardcoding code sequences throughout.
3891 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
3893 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
3895 2004-01-26 Bernardo Innocenti <bernie@develer.com>
3897 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
3899 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
3900 of hard-coded test for TARGET_OS=elf.
3902 2004-01-24 Chris Demetriou <cgd@broadcom.com>
3904 * config/tc-mips.c (hilo_interlocks): Change definition
3905 so that MIPS32, MIPS64 and later ISAs are included, along with
3906 the already-included machines. Update comments.
3908 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
3910 * config/tc-arm.c (tc_gen_reloc): Improve error message for
3911 undefined local labels.
3913 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
3915 * config/tc-mips.c (load_address, macro): Update comments about
3916 NewABI GP relaxation.
3918 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
3920 * config/tc-mips.c (macro_build): Remove place and counter arguments.
3921 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
3922 (mips16_macro_build, macro_build_jalr): Remove counter argument.
3923 (set_at, load_register, load_address, move_register): Likewise.
3924 (load_got_offset, add_got_offset): Likewise.
3925 Update all calls and tidy accordingly.
3927 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
3929 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
3930 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
3931 (RELAX_USE_SECOND): Bump to 0x10000.
3932 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
3933 (mips_macro_warning): New variable.
3934 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
3935 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
3936 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
3938 (append_insn): Update mips_macro_warning.sizes.
3939 (macro_start, macro_warning, macro_end): New functions.
3940 (macro_build): Don't emit warnings here.
3941 (macro_build_lui, md_estimate_size_before_relax): ...or here.
3942 (md_convert_frag): Check for cases where one macro alternative
3943 needs a warning and the other doesn't. Emit a warning if the
3944 longer sequence was chosen.
3946 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
3948 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
3949 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
3950 the first sequence, the size of the second sequence, and a flag
3951 that says whether we should warn.
3952 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
3953 (RELAX_FIRST, RELAX_SECOND): New.
3954 (mips_relax): New variable.
3955 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
3956 (append_insn): Remove "place" argument. Use mips_relax.sequence
3957 rather than "place" to check whether we're expanding the second
3958 alternative of a relaxable macro. Remove redundant check for
3959 branch relaxation. If generating a normal insn, and there
3960 is not enough room in the current frag, call relax_close_frag()
3961 to close it. Update mips_relax.sizes[]. Emit fixups for the
3962 second version of a relaxable macro. Record the first relaxable
3963 fixup in mips_relax. Remove tc_gen_reloc workaround.
3964 (macro_build): Remove all uses of "place". Use mips_relax.sequence
3965 in the same way as in append_insn.
3966 (mips16_macro_build): Remove "place" argument.
3967 (macro_build_lui): As for macro_build. Don't drop the add_symbol
3968 when generating the second version of a relaxable macro.
3969 (load_got_offset, add_got_offset): New functions.
3970 (load_address, macro): Use new relaxation machinery. Remove
3971 tc_gen_reloc workarounds.
3972 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
3973 version of a relaxable macro is needed. Return -RELAX_SECOND if the
3974 first version is needed.
3975 (tc_gen_reloc): Remove relaxation handling.
3976 (md_convert_frag): Go through the fixups for a relaxable macro and
3977 mark those that belong to the unneeded alternative as done. If the
3978 second alternative is needed, adjust the fixup addresses to account
3979 for the deleted first alternative.
3981 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
3983 * frags.h (frag_room): Declare.
3984 * frags.c (frag_room): New function.
3985 * doc/internals.texi: Document it.
3987 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3989 * config/tc-mips.c (append_insn): Don't do r3900 interlock
3990 optimization for -mtune=r3900, as this will break on other CPUs.
3992 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
3994 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
3995 be relaxed, use fixup.
3996 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
3998 2004-01-19 Jakub Jelinek <jakub@redhat.com>
4000 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
4003 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4005 * config/tc-mips.c (append_insn): Properly detect variant frags
4006 that preclude swapping of relaxed branches. Correctly swap
4007 instructions between frags when dealing with relaxed branches.
4009 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4011 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
4013 * aclocal.m4: Regenerate.
4014 * configure: Regenerate.
4016 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
4018 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
4021 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
4023 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
4024 reloc, reserve space for the delay slot as well as the jalr itself.
4026 2004-01-09 Paul Brook <paul@codesourcery.com>
4028 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
4029 (do_vfp_sp2_from_reg2): New function.
4031 (do_vfp_dp_from_reg2): Check return values properly.
4033 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
4035 * config/tc-mips.c (warn_nops): Remove static variable.
4036 (macro): Remove test of warn_nops.
4037 (md_shortops): Remove 'n'.
4038 (md_parse_option): Remove 'n' case.
4039 (md_show_usage): Remove -n.
4040 * doc/as.texinfo (Overview): Remove MIPS -n option.
4041 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
4042 * NEWS: Mention removal of MIPS -n option.
4044 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
4045 (cop_interlocks): Check ISA level.
4046 (cop_mem_interlocks): Define.
4047 (reg_needs_delay): Check cop_interlocks rather than
4048 ISA_HAS_COPROC_DELAYS.
4049 (append_insn): Likewise. Use cop_mem_interlocks rather than
4050 directly checking mips_opts.isa.
4051 (mips_emit_delays): Likewise.
4053 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
4055 * config/tc-ia64.c (unwind): Move next_slot_number and
4056 next_slot_frag to ...
4057 (unw_rec_list): Here.
4058 (free_list_records): Removed.
4059 (output_unw_records): Likewise.
4060 (generate_unwind_image): Make it void.
4061 (alloc_record): Initialize next_slot_number and next_slot_frag.
4062 (slot_index): Take .org, .space and .align into account.
4063 (fixup_unw_records): Don't set slot_number to 0. Use
4064 list->next_slot_number and list->next_slot_frag instead of
4065 unwind.next_slot_number and unwind.next_slot_frag.
4066 (ia64_convert_frag): New.
4067 (generate_unwind_image): Generate a rs_machine_dependent frag
4069 (emit_one_bundle): Use list->next_slot_number and
4070 list->next_slot_frag instead of unwind.next_slot_number and
4071 unwind.next_slot_frag.
4073 * config/tc-ia64.h (md_convert_frag): Defined as
4075 (md_estimate_size_before_relax): Defined as (f)->fr_var.
4077 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
4079 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
4080 * config/tc-frv.h (md_apply_fix3): Don't define.
4081 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
4083 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
4084 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
4085 * config/tc-frv.c (line_separator_chars): Add `!'.
4086 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
4087 * config/tc-frv.c (md_assemble): Clear insn upfront.
4088 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
4089 * config/tc-frv.c (OPTION_FDPIC): New macro.
4090 (md_longopts): Add mfdpic.
4091 (md_parse_option): Handle it.
4092 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
4093 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
4094 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
4095 (frv_pic_ptr): Parse funcdesc.
4097 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4099 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
4100 gasver.texi. Remove duplicate symbol definitions for texi2pod.
4102 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4104 * Makefile.am (Makefile): Move the dependency on
4105 $(BFDDIR)/configure.in to...
4106 (CONFIG_STATUS_DEPENDENCIES): ... here.
4107 (AUTOMAKE_OPTIONS): Require automake 1.8.
4108 * Makefile.in: Regenerate.
4109 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
4110 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
4111 $(BFDDIR)/configure.in here as well.
4112 * doc/Makefile.in: Regenerate.
4114 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4116 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
4117 * Makefile.in: Regenerate.
4118 * aclocal.m4: Regenerate.
4119 * doc/Makefile.am (install, install-info): Remove.
4120 (install-data-local): A new hook for install-info.
4121 (AUTOMAKE_OPTIONS): Require automake 1.8.
4122 * doc/Makefile.in: Regenerate.
4124 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
4126 * doc/c-sh.texi: Update description about floating point behavior
4129 2004-01-02 Bernardo Innocenti <bernie@develer.com>
4131 * configure.in: Add m68k-uClinux target.
4132 * configure: Regenerate.
4134 For older changes see ChangeLog-0203
4140 version-control: never