1 2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
3 * config/tc-i386.c (handle_large_common): Declare only for ELF.
5 2005-07-27 Jan Beulich <jbeulich@novell.com>
7 * config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
9 (unw_p_record): Remove unused/redundant fields imask and rmask.
10 Combine spoff and pspoff into a union. Combine gr and br into a
11 union. Change type of grmask and brmask to unsigned char. Change type
12 of frmask to unsigned int.
13 (unw_x_record): Combine spoff, pspoff, and treg into a union.
14 * config/tc-ia64.c (unwind): New field 'pending_saves'.
15 (check_pending_save): New.
16 (alloc_record): Clear out entire record.
17 (output_psp_gr): Use renamed structure fields.
18 (output_psp_sprel): Likewise.
19 (output_rp_gr): Likewise.
20 (output_rp_br): Likewise.
21 (output_rp_psprel): Likewise.
22 (output_rp_sprel): Likewise.
23 (output_pfs_gr): Likewise.
24 (output_pfs_psprel): Likewise.
25 (output_pfs_sprel): Likewise.
26 (output_preds_gr): Likewise.
27 (output_preds_psprel): Likewise.
28 (output_preds_sprel): Likewise.
29 (output_spill_base): Likewise.
30 (output_unat_gr): Likewise.
31 (output_unat_psprel): Likewise.
32 (output_unat_sprel): Likewise.
33 (output_lc_gr): Likewise.
34 (output_lc_psprel): Likewise.
35 (output_lc_sprel): Likewise.
36 (output_fpsr_gr): Likewise.
37 (output_fpsr_psprel): Likewise.
38 (output_fpsr_sprel): Likewise.
39 (output_priunat_gr): Likewise.
40 (output_priunat_psprel): Likewise.
41 (output_priunat_sprel): Likewise.
42 (output_bsp_gr): Likewise.
43 (output_bsp_psprel): Likewise.
44 (output_bsp_sprel): Likewise.
45 (output_bspstore_gr): Likewise.
46 (output_bspstore_psprel): Likewise.
47 (output_bspstore_sprel): Likewise.
48 (output_rnat_gr): Likewise.
49 (output_rnat_psprel): Likewise.
50 (output_rnat_sprel): Likewise.
51 (output_spill_psprel): Likewise.
52 (output_spill_sprel): Likewise.
53 (output_spill_reg): Likewise.
54 (output_fr_mem): Likewise. Allocate one unwind record per set mask
56 (output_frgr_mem): Likewise.
57 (output_gr_mem): Likewise.
58 (output_br_mem): Likewise.
59 (output_gr_gr): Likewise.
60 (output_br_gr): Likewise.
61 (fixup_unw_records): Likewise.
62 (process_one_record): Use renamed structure fields. For gr_gr and
63 br_gr, collect mask from chain of records before output.
64 (in_prologue): Simplify and eliminate early returns. Call
66 (in_body): Simplify and eliminate early returns.
67 (dot_body): Call check_pending_save.
68 (md_assemble): Update comment. Deal with pending saves.
70 2005-07-26 Jan Beulich <jbeulich@novell.com>
72 * config/tc-i386.c (optimize_imm): Calculate candidate immediates
73 mask from guessed suffix, but mask out other immediate types only
74 if at least on candidate is valid for the insn.
76 2005-07-25 DJ Delorie <dj@redhat.com>
78 * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
79 Support %mod() modifiers from opcodes.
80 * doc/c-m32c.texi (M32C-Modifiers): New section.
82 2005-07-25 Jan Hubicka <jh@suse.cz>
83 H.J. Lu <hongjiu.lu@intel.com>
85 * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
87 (elf_com_section_ptr): New.
88 (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
89 (elf_common_parse): Make it global. Use elf_com_section_ptr
90 instead of bfd_com_section_ptr.
91 (obj_elf_change_section): Handle x86-64 large bss sections.
93 * config/obj-elf.h (elf_com_section_ptr): New.
94 (elf_common_parse): New.
96 * config/tc-i386.c (handle_large_common): New.
97 (md_pseudo_table): Add "largecomm".
98 (x86_64_section_letter): New.
99 (x86_64_section_word): New.
101 * config/tc-i386.h (x86_64_section_word): New.
102 (x86_64_section_letter): New.
103 (md_elf_section_letter): New. Defined.
104 (md_elf_section_word): Likewise.
106 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
108 * configure.tgt: Remove i386-*-rtemself*.
109 Remove sparc-*-rtemself*.
111 2005-07-21 Ben Elliston <bje@gnu.org>
113 * config/tc-m68k.h: Remove TE_LYNX conditional code.
115 2005-07-21 Paul Brook <paul@codesourcery.com>
117 * config/tc-arm.c (encode_thumb32_addr_mode): Don't set
120 2005-07-20 Tavis Ormandy <taviso@gentoo.org>
122 * messages.c: Use vsnprintf instead of vsprintf.
124 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
126 * config/tc-m32r.c (tc_gen_reloc): Check BFD_RELOC_32_PCREL and
127 BFD_RELOC_16_PCREL to Support R_M32R_REL32.
129 2005-07-18 Nick Clifton <nickc@redhat.com>
131 * configure.tgt: Restore alpha ordering to list of arches.
133 2005-07-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
135 * tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
137 2005-07-18 Jan Beulich <jbeulich@novell.com>
139 * config/tc-i386.c (md_begin): Use IS_ELF.
140 (tc_i386_fix_adjustable): Likewise.
141 (md_estimate_size_before_relax): Likewise.
142 (md_apply_fix): Likewise.
143 (i386_target_format): Likewise.
144 (lex_got): Define to NULL when not ELF or when LEX_AT. Check IS_ELF.
145 (i386_immediate): Remove #ifdef LEX_AT.
146 (i386_displacement): Likewise.
147 * config/tc-i386.h (x86_cons): Prototype only when ELF and when not
150 2005-07-18 Jan Beulich <jbeulich@novell.com>
152 * config/tc-i386.c (reloc): Convert to ISO C90. Change first
153 parameter to unsigned. Parameter sign now is tristate - zero/
154 positive mean unsigned/signed, negative means signedness doesn't
155 matter. Check field size,
156 signedness, and pcrel-ness are in agreement between relocated field
157 and relocation type. Adjust diagnostics.
158 (optimize_imm): And type mask of operand instead of overwriting it.
159 (lex_got): Convert to ISO C90. Add third parameter. Add new field to
160 local structure and initialize gotrel accordingly. Pass caller as
161 mask of types that the operator can match.
162 (x86_cons_fix_new): Let reloc know that signedness of relocation
164 (x86_pe_cons_fix_new): Likewise.
165 (x86_cons): Pass additional argument to lex_got.
166 (i386_immediate): New local variable 'types'. Pass its address as
167 additional argument to lex_got. Mask out operand types not supported
169 (i386_displacement): Likewise. Set bigdisp to all types supported in
170 64-bit mode, combining the previously split initialization.
172 2005-07-18 Jan Beulich <jbeulich@novell.com>
174 * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
177 2005-07-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
179 * config/tc-hppa.c (pa_ip): Search entire mnemonic before considering
182 2005-07-16 Alan Modra <amodra@bigpond.net.au>
184 * Makefile.am: Run "make dep-am".
185 * Makefile.in: Regenerate.
187 2007-07-15 H.J. Lu <hongjiu.lu@intel.com>
189 * gas/config/tc-i386.h (CpuVMX): New.
190 (CpuUnknownFlags): Add CpuVMX.
192 2005-07-14 Jim Blandy <jimb@redhat.com>
194 Add support for the Renesas M32C.
195 * Makefile.am (CPU_TYPES): List m32c.
196 (TARGET_CPU_CFILES): List config/tc-m32c.c.
197 (TARGET_CPU_HFILES): List config/tc-m32c.h.
198 * configure.in: Add case for m32c.
199 * configure.tgt: Add cases for m32c and m32c-*-elf.
200 * configure: Regenerated.
201 * config/tc-m32c.c, config/tc-m32c.h: New files.
202 * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
203 * doc/Makefile.in: Regenerated.
204 * doc/all.texi: Set M32C.
205 * doc/as.texinfo: Add text for the M32C-specific options and line
206 comment characters, and refer to c-m32c.texi.
207 * doc/c-m32c.texi: New file.
209 2005-07-14 Nick Clifton <nickc@redhat.com>
212 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
213 the ins_parse buffer.
215 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
217 * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
218 i386-*-rtemscoff*, sparc-*-rtemsaout*.
220 2005-07-10 H.J. Lu <hongjiu.lu@intel.com>
222 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
225 2005-07-08 Ben Elliston <bje@au.ibm.com>
227 * frags.h: Remove ANSI_PROTOTYPES conditional code.
228 * config/obj-elf.h: Likewise.
229 * config/tc-h8300.h: Likewise.
230 * config/tc-h8500.h: Likewise.
231 * config/tc-i370.h: Likewise.
232 * config/tc-i386.h: Likewise.
233 * config/tc-m68hc11.h: Likewise.
234 * config/tc-m68k.h: Likewise.
235 * config/tc-ppc.h: Likewise.
236 * config/tc-s390.h: Likewise.
237 * config/tc-sh.h: Likewise.
238 * config/tc-sparc.h: Likewise.
239 * config/tc-tic30.c: Likewise.
240 * config/tc-w65.h: Likewise.
241 * config/tc-xtensa.h: Likewise.
243 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
246 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
248 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
250 * config/tc-tic30.c (debug): Add format attribute. Fix format
253 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
255 * config/tc-i386.c (cpu_arch): Add sse3.
257 * config/tc-i386.h (CpuSSE3): Renamed from ...
258 (CpuPNI): This. Defined as CpuSSE3.
260 * doc/c-i386.texi: Document .sse3.
262 2005-07-06 Jan Beulich <jbeulich@novell.com>
264 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
266 2005-07-05 Nick Clifton <nickc@redhat.com>
268 * config/tc-pdp11.c (md_apply_fix): Cast first argument to
269 md_chars_to_numbers to an unsigned pointer in order to avoid a
270 compile time warning.
272 2005-07-05 Paul Brook <paul@codesourcery.com>
274 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
276 2005-07-05 Aldy Hernandez <aldyh@redhat.com>
278 * config/tc-ms1.c: New.
279 * config/tc-ms1.h: New.
280 * testsuite/gas/ms1/allinsn.d: New.
281 * testsuite/gas/ms1/allinsn.s: New.
282 * testsuite/gas/ms1/badinsn.s: New.
283 * testsuite/gas/ms1/badinsn1.s: New.
284 * testsuite/gas/ms1/badoffsethigh.s: New.
285 * testsuite/gas/ms1/badoffsetlow.s: New.
286 * testsuite/gas/ms1/badorder.s: New.
287 * testsuite/gas/ms1/badreg.s: New.
288 * testsuite/gas/ms1/badsignedimmhigh.s: New.
289 * testsuite/gas/ms1/badsignedimmlow.s: New.
290 * testsuite/gas/ms1/badsyntax.s: New.
291 * testsuite/gas/ms1/badsyntax1.s: New.
292 * testsuite/gas/ms1/badunsignedimmhigh.s: New.
293 * testsuite/gas/ms1/badunsignedimmlow.s: New.
294 * testsuite/gas/ms1/errors.exp: New.
295 * testsuite/gas/ms1/ldst.s: New.
296 * testsuite/gas/ms1/misc.d: New.
297 * testsuite/gas/ms1/misc.s: New.
298 * testsuite/gas/ms1/ms1-16-003.d: New.
299 * testsuite/gas/ms1/ms1-16-003.s: New.
300 * testsuite/gas/ms1/ms1.exp: New.
301 * testsuite/gas/ms1/msys.d: New.
302 * testsuite/gas/ms1/msys.s: New.
303 * testsuite/gas/ms1/relocs.d: New.
304 * testsuite/gas/ms1/relocs.exp: New.
305 * testsuite/gas/ms1/relocs1.s: New.
306 * testsuite/gas/ms1/relocs2.s: New.
308 2005-07-05 Jan Beulich <jbeulich@novell.com>
310 * config/tc-i386.h (CpuSVME): New.
311 (CpuUnknownFlags): Include CpuSVME.
312 * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
313 as alias of sledgehammer.
314 (md_assemble): Include invlpga in the check for insns with two source
316 (process_operands): Include SVME insns in the check for ignored
317 segment overrides. Adjust diagnostic.
318 (i386_index_check): Special-case SVME insns with memory operands.
320 2005-07-04 Khem Raj <kraj@mvista.com>
321 Nick Clifton <nickc@redhat.com>
323 * tc-arm.c (struct arm_it): Make operands.imm signed to match its
324 use an immediate value.
325 (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
326 since the register field of the operands structure is unsigned.
327 (s_arm_unwind_save_vfp): Make "reg" unsigned.
328 (parse_operands): Make the 2ns parameter an unsigned pointer to
330 (do_ldrd): When using the imm field of the operands structure as a
331 second register field, treat it as unsigned.
333 2005-07-04 Alan Modra <amodra@bigpond.net.au>
336 * config/obj-elf.c (obj_elf_change_section): Use backend
339 2005-07-01 Jan Beulich <jbeulich@novell.com>
341 * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
342 (output_spill_psprel, output_spill_psprel_p): Combine.
343 (output_spill_sprel, output_spill_sprel_p): Combine.
344 (output_spill_reg, output_spill_regp_p): Combine.
345 (process_one_record): Handle psp_psprel.
346 (parse_predicate_and_operand): New.
347 (convert_expr_to_ab_reg): Two new parameters. Return void. Always
348 initialize output values. Emit diagnostic case here.
349 (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
350 (add_unwind_entry): New second parameter. Allow first parameter to
351 be NULL. Parse optional tag, emit warning about further support for
352 it otherwise being missing. Check end-of-line when requested.
353 (dot_fframe): Clear operand when wrong. Allow tag.
354 (dot_vframe): Likewise.
355 (dot_vframesp): Likewise. Rename parameter, issue warning when psp
357 (dot_vframepsp): Remove.
358 (dot_altrp): Clear operand when wrong. Allow tag.
359 (dot_save): Likewise. Let default case also go through
361 (dot_savemem): Likewise.
362 (dot_restore): Don't return when wrong operand. Allow tag.
363 (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
364 parse_predicate_and_operand and the new arguments to
365 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
366 when wrong operand. Allow tag.
367 (dot_restorereg, dot_restorereg_p): Likewise.
368 (dot_spillmem, dot_spillmem_p): Likewise.
369 (dot_saveg): Clear operand when wrong. Perform tighter operand
371 (dot_savef): Likewise.
372 (dot_saveb): Likewise.
373 (dot_savegf): Likewise.
374 (dot_spill): Remove end-of-line check. Combine. Simplify by using
375 parse_predicate_and_operand and the new arguments to
376 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
377 when wrong operand. Allow tag.
379 (dot_label_state): Don't return when wrong operand.
380 (dot_copy_state): Likewise.
381 (dot_unwabi): Likewise. Check if in prologue.
382 (dot_body): Don't call demand_empty_rest_of_line.
383 (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
385 (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
386 use dot_spillreg for .spillreg.p. Also use dot_spillmem for
387 .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
388 (parse_operand): New second parameter. Don't deal with '}' here
389 anymore. Don't advance past end-of-line.
390 (parse_operands): Pass second argument to parse_operand.
391 (ia64_start_line): Prevent out-of-bounds access through
392 input_line_pointer. Deal with '}' here.
393 (ia64_unrecognized_line): Don't deal with '}' here.
394 (dot_alias): Use ignore_rest_of_line not its deprecated alias
395 discard_rest_of_line.
397 2005-06-30 Zack Weinberg <zack@codesourcery.com>
399 * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
400 (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
401 (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
402 (do_branch): Always set inst.reloc.pc_rel.
403 (s_arm_elf_cons): Disallow use of (plt) suffix.
404 (do_adrl): Adjust X_add_number unconditionally.
405 (md_pcrel_from): Rename md_pcrel_from_section, add second segT
406 argument. Handle all adjustment for pipeline offset here.
407 (md_apply_fix): No need to undo work of md_pcrel_from. No
408 need to extract pre-encoded pipeline adjustments from various
409 branch instructions. Generally, assume instructions are already
410 all-bits-zero in the field being fixed up. Remove all OBJ_ELF
411 special cases. Handle BFD_RELOC_ARM_PLT32 like
412 BFD_RELOC_ARM_PCREL_BRANCH.
413 (tc_gen_reloc): Remove OBJ_ELF special case.
414 * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
416 2005-06-30 Ben Elliston <bje@gnu.org>
418 * Makefile.am (check-DEJAGNU): Don't search for expect.
419 * Makefile.in: Regenerate.
421 2005-06-30 Ben Elliston <bje@gnu.org>
423 * Makefile.am (EXPECT): Set to expect.
424 (RUNTEST): Likewise, set to runtest.
425 * Makefile.in: Regenerate.
427 2005-06-23 Ben Elliston <bje@gnu.org>
429 * config/m68k-parse.h: Use ISO C90.
430 * config/m68k-parse.y: Likewise.
431 * config/tc-m68k.h: Likewise.
433 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
436 * config/tc-i386.c (md_assemble): Don't call optimize_disp on
438 (optimize_disp): Optimize only if possible. Don't use 64bit
439 displacement on non-constants and do same on constants if
442 2005-06-17 Jan Beulich <jbeulich@novell.com>
444 * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
445 (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
446 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
447 (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
448 and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
450 (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
451 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
452 (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
453 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
454 BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
455 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
456 convert 8-byte pc-relative relocations.
457 (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
458 (i386_validate_fix): Likewise.
459 (x86_cons): Also handle quad values in 64-bit mode.
460 (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
461 (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
462 BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
463 to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
465 2005-06-13 Zack Weinberg <zack@codesourcery.com>
467 * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
468 symbolP as well as for names with a leading dot. Use ACONCAT.
469 (md_apply_fix): For branch relocations, only replace value
470 with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
471 (arm_force_relocation): Remove #ifdef OBJ_ELF case.
472 * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
473 (LOCAL_LABEL_PREFIX): Don't define.
475 2005-06-10 Alan Modra <amodra@bigpond.net.au>
477 * config/tc-hppa.c (pa_block): Allocate just one byte for the
480 2005-06-08 James E Wilson <wilson@specifixinc.com>
483 * config/tc-ia64.c (slot_index): Revert last change. If first_frag
484 is NULL, then emit a warning, and return the current index.
486 2005-06-08 Tomas Hurka <tom@hukatronic.cz>
489 * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
490 temporary copy of the operands array so that changes can be safely
491 backed out if the insn does not match.
492 (m68k_compare_opcode): Shortcut the test when the parameters are
493 the same. Return 1 if the names match but the second opcode is
494 further on in the array than the first.
496 2005-06-08 Nick Clifton <nickc@redhat.com>
499 * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
501 2005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
503 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
505 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
506 Michael Snyder <msnyder@redhat.com>
507 Stan Cox <scox@redhat.com>
509 * configure.in: Add ms1 case.
511 * configure: Regenerate.
513 * configure.tgt: Add ms1 case.
515 2005-06-07 Bob Wilson <bob.wilson@acm.org>
517 * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
518 * config/tc-xtensa.c (new_resource_table): Likewise.
519 (resize_resource_table): Likewise.
520 (release_resources): Fix assertion for unsigned values.
522 2005-06-07 Zack Weinberg <zack@codesourcery.com>
524 * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
525 * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
526 * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
527 * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
528 * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
529 * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
530 * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
531 * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
532 * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
533 * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
534 * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
535 * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
536 * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
537 * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
538 * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
539 * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
540 * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
541 * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
542 * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
543 * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
544 * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
545 * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
546 * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
547 * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
548 * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
549 * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
550 * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
551 * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
552 * config/tc-xtensa.c, config/tc-z8k.c:
553 Replace all instances of the string "_apply_fix3" with
555 * po/POTFILES.in, po/gas.pot: Regenerate.
557 2005-06-08 Alan Modra <amodra@bigpond.net.au>
559 * Makefile.am: Run "make dep-am".
560 (POTFILES): Remove GAS_CFILES.
561 * Makefile.in: Regenerate.
563 2005-06-07 David Ung <davidu@mips.com>
565 * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
566 24kc, 24kf and 24kfx under MIPS32 release 2.
568 2005-06-04 Nick Clifton <nickc@redhat.com>
570 * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
571 to their Thumb-enabled equivalents.
573 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
575 * config/tc-mips.c (load_register): Add leading "0x" to the
576 output of sprintf_vma().
579 2005-06-01 Nick Clifton <nickc@redhat.com>
581 * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
582 test for the presence of thumb version of the parsing functions
583 since they must always exist and the test generates a compile time
586 2005-05-31 Richard Henderson <rth@redhat.com>
588 * config/tc-alpha.c (O_lituse_jsrdirect): New.
589 (alpha_reloc_op): Add it.
590 (debug_exp): Handle it.
591 (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
592 (emit_insn): Handle it.
593 * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
595 2005-05-31 Christian Groessler <chris@groessler.org>
597 * write.c (dump_section_relocs): Convert to ISO-C.
598 (write_relocs): Avoid signed/unsigned and fprintf argument
599 warnings in debug code.
601 2005-05-26 Zack Weinberg <zack@codesourcery.com>
603 * config/tc-arm.h (TC_FIX_TYPE): Change to int.
604 (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
605 * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
606 (md_apply_fix3): Delete fix_is_thumb variable; refer to
607 fixP->tc_fix_data directly in the sole place it was used.
608 Explicitly truncate value, *valP, fixP->fx_addnumber, and
609 fixP->fx_offset to 32 bits, for consistent behavior between 32-
612 2005-05-27 Jan Beulich <jbeulich@novell.com>
614 * config/tc-ia64.c (struct proc_pending): New.
615 (unwind): Replace proc_start with proc_pending.
616 (unwind_diagnostic): Check unwind.proc_pending.sym.
617 (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
618 Check if previous proc not closed. Record all entry points.
619 (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
620 Set symbol sizes for entry points recorded in dot_proc. Check
621 arguments for consistency with respective .proc's.
622 (md_assemble): Replace unwind.proc_start with
623 unwind.proc_pending.sym.
625 2005-05-27 Jan Beulich <jbeulich@novell.com>
627 * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
628 and last_ptr. Check all in-use slots for first one with non-NULL
629 unwind_record. Don't reload end_ptr before second update round.
631 2005-05-26 James E Wilson <wilson@specifixinc.com>
633 * config/tc-ia64.c (extra_goodness): Update comment.
634 (md_begin): Add debugging code to print best_template table.
636 2005-05-25 Jan Beulich <jbeulich@novell.com>
638 * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
641 2005-05-25 Jan Beulich <jbeulich@novell.com>
643 * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
644 BFD_RELOC_UNUSED when determining the width of the reloc.
646 2005-05-25 Jan Beulich <jbeulich@novell.com>
648 * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
651 2005-05-25 Jan Beulich <jbeulich@novell.com>
653 * config/tc-ia64.c (dot_radix): Rewrite.
655 2005-05-25 Jan Beulich <jbeulich@novell.com>
657 * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
659 (alloc_record): Remove references to next_slot_number and
661 (emit_one_bundle): Likewise.
663 2005-05-22 Nick Clifton <nickc@redhat.com>
665 * config/tc-v850.c (md_apply_fix3): Pass the address of the
666 message buffer when invoking the insert function.
668 2005-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
670 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
671 only if an instruction match is found.
673 2005-05-20 Bob Wilson <bob.wilson@acm.org>
675 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
676 to addition in argument to xtensa_dwarf2_emit_insn.
678 2005-05-19 Zack Weinberg <zack@codesourcery.com>
680 * Makefile.am: Have 'all' depend on 'info'.
681 * Makefile.in: Regenerate.
683 2005-05-19 Alan Modra <amodra@bigpond.net.au>
685 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
687 2005-05-19 Anton Blanchard <anton@samba.org>
689 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
690 (md_show_usage): Document it.
691 (ppc_setup_opcodes): Insert POWER5 mnemonics.
692 * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
694 2005-05-19 Jan Beulich <jbeulich@novell.com>
696 * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
697 relocations in unwind section.
699 2005-05-18 Nick Clifton <nickc@redhat.com>
701 * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
702 if one exists. Ignore any error messages it may produce, just
703 allow it to perform the insertion.
705 2005-05-17 Zack Weinberg <zack@codesourcery.com>
707 * hash.c (hash_lookup): Add len parameter. All callers changed.
708 (hash_find_n): New interface.
709 * hash.h: Prototype hash_find_n.
710 * sb.c: Include as.h.
711 (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
712 (sb_scrub_and_add_sb): New interface.
713 * sb.h: Prototype sb_scrub_and_add_sb.
714 * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
716 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
717 reference to BFD_RELOC_ARM_GOT12 which is never generated.
718 * config/tc-arm.c: Rewrite, adding Thumb-2 support.
720 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
722 * doc/Makefile.am (gasver.texi): Don't use $<.
723 * doc/Makefile.in: Regenerated.
725 2005-05-17 Nick Clifton <nickc@redhat.com>
728 * symbols.c (resolve_symbol_value): Do not move symbols whose
729 value expression has not been resolved or finalized into the
730 absolute section as this will confuse other parts of the assembler
731 into thinking that their value is zero.
733 2005-05-17 Jan Beulich <jbeulich@novell.com>
735 * read.c (_find_end_of_line): New.
736 (find_end_of_line): New.
737 (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
738 (read_a_source_file): Use it.
741 (get_line_sb): Use it.
742 (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
743 (s_comm_internal): Likewise.
746 (s_ignore): Use ignore_rest_of_line.
747 * read.h (find_end_of_line): Prototype.
748 (discard_rest_of_line): Remove prototype. #define to
751 2005-05-17 Nick Clifton <nickc@redhat.com>
753 * config/tc-v850,h (TC_FIX_TYPE): Define.
754 (TC_INIT_FIX_TYPE): Define.
755 * config/tc-v850.c (md_assemble): When creating a fix record the
756 operand in the tc_fix_data field.
757 (md_apply_fix3): When applying a resolved fix use the operand's
758 insertion procedure to store the value, if the operand has been
761 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
763 * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
765 * Makefile.in: Regenerated.
767 2005-05-13 Sterling Augustine <sterling@tensilica.com>
768 Bob Wilson <bob.wilson@acm.org>
770 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
772 (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
773 for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
775 2005-05-11 Alan Modra <amodra@bigpond.net.au>
777 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
778 BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
780 2005-05-10 Michael Matz <matz@suse.de>
782 * frags.c (frag_grow): Don't be too greedy in allocating memory.
784 * config/tc-hppa.c (pa_block): Check arguments to .block[z].
786 2005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
789 * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
790 Handle label-without-colon before ordinary dot-pseudo as an
791 ordinary label. Don't leak memory for label-without-colon alone
792 on a line. Don't mmixal-munge operands for dot-pseudos.
794 2005-05-10 Jan Beulich <jbeulich@novell.com>
796 * macro.c (get_any_string): Remove the two last parameters. Replace
797 references to the former expand parameter by using macro_alternate.
798 Simplify loop condition for checking for end-of-string.
799 (get_string): Remove redunant call to sb_skip_white.
800 (do_formals): Remove two last arguments to get_any_string.
801 (macro_expand): Likewise.
802 (expand_irp): Likewise.
804 2005-05-10 Jan Beulich <jbeulich@novell.com>
806 * read.c (s_macro): Move local variable 'local' to smaller scope.
807 Call sb_kill on it when done.
809 2005-05-09 Jan Beulich <jbeulich@novell.com>
811 * config/tc-i386.c (optimize_disp): Discard displacement entirely
812 when zero and not required by encoding constraints.
814 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
817 * config/tc-sh64.c (sh64_fake_label): New.
819 * config/tc-sh64.h (TC_FAKE_LABEL): New.
821 * doc/internals.texi (TC_FAKE_LABEL): Document.
823 * write.c (TC_FAKE_LABEL): New.
824 (adjust_reloc_syms): Use it.
825 (write_object_file): Likewise.
827 2005-05-09 Jan Beulich <jbeulich@novell.com>
829 * config/tc-i386.c (parse_insn): Disallow use of prefix separator
830 and comma in Intel mode.
832 2005-05-09 Jan Beulich <jbeulich@novell.com>
834 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
835 names to match ABI. Add more registers for 32-bit and 64-bit modes.
836 Make name array static and const. Adjust lookup to account for NULL
837 entries (standing for unused register numbers).
839 2005-05-09 Jan Beulich <jbeulich@novell.com>
841 * config/tc-i386.c (parse_insn): Consider all matching instructions
842 when checking for string instruction after string-only prefix.
844 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
847 * config/tc-ia64.c (start_unwind_section): Properly check
848 comdat group with SHF_GROUP.
850 2005-05-06 Bob Wilson <bob.wilson@acm.org>
852 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
854 2005-05-06 Bob Wilson <bob.wilson@acm.org>
856 * config/tc-xtensa.c: Remove excess whitespace.
857 * config/tc-xtensa.h: Likewise.
858 * config/xtensa-istack.h: Likewise.
859 * config/xtensa-relax.c: Likewise.
860 * config/xtensa-relax.h: Likewise.
862 2005-05-06 Nick Clifton <nickc@redhat.com>
864 * sb.h: Fix formatting of comments.
865 * sb.c: Fix formatting of comments.
867 2005-05-06 Jan Beulich <jbeulich@novell.com>
869 * sb.h (sb_add_buffer): Reintroduce.
870 * sb.c (sb_add_buffer): Likewise.
872 2005-05-06 Jan Beulich <jbeulich@novell.com>
874 * macro.c (new_formal, del_formal): New.
875 (do_formals): Use new_formal. Check for and parse qualifier. Warn if
876 required argument has default value. Stop looking for more formal
877 when there was a vararg one.
878 (macro_expand_body): Use new_formal and del_formal.
879 (macro_expand): Likewise. Initialize local variable err. Don't
880 return immediately when encountering an error. Warn when keyword
881 argument already had a value assigned. Eliminate duplicate clearing
882 of argument value. When current positional argument matches parameter
883 of vararg type, assign to it all the remaining arguments. Issue error
884 when required parameter does not have value.
885 (free_macro): Use del_formal.
886 (expand_irp): Initialize formal type. Free buffers associated with
887 formal prior to returning.
888 * macro.h (struct formal_struct): Add new field 'type' with new
889 enumeration type 'formal_type'.
890 * doc/as.texinfo: Document macro parameter qualifiers.
891 * NEWS: Mention new functionality.
893 2005-05-06 Jan Beulich <jbeulich@novell.com>
895 * cond.c (s_ifb): New.
896 * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
897 * read.h (s_ifb): Prototype.
898 * doc/as.texinfo: Document .ifb and .ifnb.
900 2005-05-05 Steve Ellcey <sje@cup.hp.com>
902 * config/tc-ia64.c (MIN): Undef.
904 2005-05-05 Paul Brook <paul@codesourcery.com>
906 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
908 2005-05-05 Matt Thomas <matt@3am-software.com>
910 * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
913 2005-05-05 Nick Clifton <nickc@redhat.com>
915 * Update the address and phone number of the FSF organization in
916 the GPL notices in the following files:
917 COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
918 bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
919 dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
920 emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
921 flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
922 input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
923 itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
924 literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
925 output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
926 struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
927 write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
928 config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
929 config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
930 config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
931 config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
932 config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
933 config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
934 config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
935 config/obj-multi.h, config/obj-som.c, config/obj-som.h,
936 config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
937 config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
938 config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
939 config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
940 config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
941 config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
942 config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
943 config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
944 config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
945 config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
946 config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
947 config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
948 config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
949 config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
950 config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
951 config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
952 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
953 config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
954 config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
955 config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
956 config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
957 config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
958 config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
959 config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
960 config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
961 config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
962 config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
963 config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
964 config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
965 config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
966 config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
967 config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
968 config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
969 config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
970 config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
971 config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
972 config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
973 config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
974 config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
975 config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
976 config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
977 config/xtensa-istack.h, config/xtensa-relax.c,
978 config/xtensa-relax.h, doc/fdl.texi
980 2005-05-05 Nick Clifton <nickc@redhat.com>
982 * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
983 the target_big_endian variable to false.
985 2005-05-04 Alan Modra <amodra@bigpond.net.au>
987 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
988 list traversal. Use bfd_section_list_prepend.
989 * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
990 over the section list.
991 * config/tc-xtensa.c (xtensa_remove_section): Delete.
992 (xtensa_insert_section): Delete.
993 (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
994 and bfd_section_list_prepend.
995 (xtensa_reorder_seg_list): Use bfd_section_list_remove and
996 bfd_section_list_insert_after.
998 2005-05-03 Nick Clifton <nickc@redhat.com>
1000 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
1001 of bfd_section_list... macros.
1002 * config/tc-mmix.c (mmix_frob_file): Likewise.
1003 * config/tc-xtensa.c (xtensa_remove_section): Likewise.
1004 (xtensa_insert_section): Likewise.
1006 * macro.c (macro_hash): Remove static.
1007 * macro.h (macro_hash): Provide an external declaration.
1009 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1011 * write.c (write_object_file): Use bfd_section_double_list_remove
1014 2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1016 * doc/Makefile.am (gasver.texi): Correct quoting.
1017 * doc/Makefile.in: Regenerated.
1019 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1021 * configure.tgt: Add h8300*-*-rtemscoff.
1022 Switch h8300*-*-rtems* to elf.
1024 2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
1026 * hash.c: Undo the last change.
1029 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
1031 * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
1033 (DISTCLEANFILES): Remove.
1034 (MAINTAINERCLEANFILES): Add asconfig.texi.
1035 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
1037 2005-04-29 Ben Elliston <bje@au.ibm.com>
1039 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
1040 (GENERIC_OBJS): Likewise, remove bignum-copy.o.
1041 (bignum-copy.o): Remove.
1042 * Makefile.in: Regenerate.
1043 * makefile.vms (OBJS): Remove bignum-copy.obj.
1044 * symbols.h (local_symbol_make): Remove declaration.
1045 (verify_symbol_chain_2): Likewise.
1046 * symbols.c (local_symbol_make): Make static.
1047 (max_indent_level): Likewise.
1048 (verify_symbol_chain_2): Remove.
1049 * macro.c (macro_hash): Make static.
1050 * messages.c (fprint_value): Remove.
1051 * read.h (get_absolute_expr): Remove.
1052 (emit_leb128_expr): Likewise.
1053 (do_s_func): Likewise.
1054 * read.c (do_s_func): Make static.
1055 (emit_leb128_expr): Likewise.
1056 (get_absolute_expr): Likewise.
1057 * as.h (as_howmuch): Remove declaration.
1058 (fprint_value): Likewise.
1059 * as.c (myname): Make static.
1060 * input-scrub.c (as_howmuch): Remove.
1061 (as_1_char): Likewise.
1062 * input-file.h (input_file_is_open): Remove.
1063 * input-file.c (input_file_is_open): Likewise.
1064 * expr.h (expr_build_unary): Remove declaration.
1065 (expr_build_binary): Likewise.
1066 * expr.c (expr_build_unary): Remove.
1067 (expr_build_binary): Likewise.
1068 * hash.h (hash_replace): Remove declaration.
1069 (hash_delete): Likewise.
1070 * hash.c (hash_replace): Remove.
1071 (hash_delete): Likewise.
1072 * bignum-copy.c (bignum_copy): Move from here ..
1073 * config/tc-vax.c (bignum_copy): .. to here.
1074 * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
1075 (bignum_copy): Remove extern declaration.
1076 * sb.h (string_count): Remove extern declaration.
1077 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1078 (sb_name): Likewise.
1079 * sb.c (dsize): Replace preprocessor macro with static int.
1080 (string_count): Make static.
1081 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1082 (sb_name): Likewise.
1083 * config/obj-coff.c (dim_index): Make static.
1084 * config/tc-i386.c (GOT_symbol): Likewise.
1085 (output_invalid_buf): Likewise.
1086 * doc/internals.texi (Warning and error messages): Remove the
1087 prototype for fprint_value.
1089 2005-04-27 Ben Elliston <bje@au.ibm.com>
1093 2005-04-26 H.J. Lu <hongjiu.lu@intel.com>
1095 * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
1097 * read.c (pseudo_set): Disallow symbol set to common symbol.
1100 * write.c (write_object_file): Report common symbol name when
1101 disallowing local symbol set to common symbol.
1102 (adjust_reloc_syms): Disallow local symbol set to undefined
1105 2005-04-25 Jan Beulich <jbeulich@novell.com>
1107 * macro.c (macro_expand_body): Replace locals indicator parameters
1108 with actual macro_entry. New local variables macro_line and err.
1109 Don't return when encountering an error, just record the fact.
1110 Detect local symbol name colliding with parameter. Track line number
1111 inside of macro expansion.
1112 (do_formals): Move local variable name to wider scope. Check
1113 parameter of the same name doesn't already exist. In MRI mode, also
1114 check it doesn't collide with the argument count pseudo-parameter).
1115 (define_macro): Add file and line number parameters. Remove local
1116 variable namestr. New local variable error. Initialize macro_entry
1117 members file, line, and name. Don't return when encountering an
1118 error, just record the fact. Use %s in some diagnostics for read.c
1119 to insert the macro name. Free macro_entry on error.
1120 (macro_expand): Pass macro_entry to macro_epand_body. Don't return
1121 when encountering an error, just record the fact.
1122 (expand_irp): Don't return when encountering an error, just record
1124 * macro.h (macro_struct): New members name, file, and line.
1125 (define_macro): Add file and line number parameters.
1126 * read.c (s_macro): Pass file and line to define_macro. Tag warning
1127 regarding pseudo-op redefinition with the file/line that macro
1128 definition started at.
1130 2005-04-22 Bob Wilson <bob.wilson@acm.org>
1132 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
1133 (future_alignment_required): Remove ifdefs that use it.
1135 2005-04-22 Bob Wilson <bob.wilson@acm.org>
1137 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
1138 (xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into...
1139 (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only"
1141 (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
1142 convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
1144 2005-04-21 Christian Groessler <chris@groessler.org>
1146 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
1149 2005-04-20 H.J. Lu <hongjiu.lu@intel.com>
1151 * config/obj-aout.h (S_IS_EXTERN): Removed.
1152 * config/obj-bout.h (S_IS_EXTERN): Likewise.
1153 * config/obj-coff.h (S_IS_EXTERN): Likewise.
1154 * symbols.c (S_IS_EXTERN): Likewise.
1155 * symbols.h (S_IS_EXTERN): Likewise.
1157 * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
1159 * config/tc-d10v.c (md_apply_fix3): Likewise.
1160 * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
1161 * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
1162 * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
1163 * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
1164 * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
1165 (shmedia_md_convert_frag): Likewise.
1166 * symbols.c (print_symbol_value_1): Likewise.
1167 * write.c (write_object_file): Likewise.
1169 2005-04-20 Nick Clifton <nickc@redhat.com>
1171 * config/tc-xtensa.c (get_aligned_diff): Change type of
1172 branch_align to offsetT so that its signedness matches that of
1175 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
1176 number into a readable string.
1177 (load_register): Likewise.
1179 2005-04-20 Andreas Schwab <schwab@suse.de>
1181 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
1183 2005-04-19 David S. Miller <davem@davemloft.net>
1185 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
1186 NULL insn, exit early. Remove now spurious NULL checks.
1187 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
1190 2005-04-19 Jan Beulich <jbeulich@novell.com>
1192 * symbols.h (symbol_find_base): Remove prototype.
1193 * symbols.c (save_symbol_name): Remove code section conditional upon
1195 (symbol_find): Remove.
1196 (symbol_find_base): Rename to symbol_find.
1197 * subsegs.c (section_symbol): Replace use of symbol_find_base with
1199 * config/obj-coff.c (tag_insert): Remove code section conditional
1200 upon STRIP_UNDERSCORE.
1201 (obj_coff_def): Likewise.
1202 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
1203 (coff_frob_symbol): Likewise.
1204 (yank_symbols): Likewise.
1205 (c_section_symbol): Likewise.
1206 * config/obj-coff.h (DO_NOT_STRIP): Remove.
1207 * config/tc-arm.c (symbol_locate): Remove code section conditional
1208 upon STRIP_UNDERSCORE.
1209 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
1210 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
1211 * config/tc-sh.h (DO_NOT_STRIP): Remove.
1212 * config/tc-w65.h (DO_NOT_STRIP): Remove.
1213 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
1215 2005-04-19 Andreas Schwab <schwab@suse.de>
1217 * config/tc-ia64.c (md_assemble): Fix error message for wrong
1218 access to application registers.
1220 2005-04-19 Jan Beulich <jbeulich@novell.com>
1222 * config/te-sysv32.h: Remove.
1223 * Makefile.am (TARG_ENV_HFILES): Remove reference to
1225 * Makefile.in (TARG_ENV_HFILES): Likewise.
1227 2005-04-19 Jan Beulich <jbeulich@novell.com>
1230 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
1233 2005-04-18 Mark Kettenis <kettenis@gnu.org>
1235 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
1237 2005-04-18 Maciej W. Rozycki <macro@linux-mips.org>
1239 * config/tc-mips.c (normalize_constant_expr): Don't check for
1241 (check_absolute_expr): Only call normalize_constant_expr() if
1243 (mips_ip): Likewise.
1245 * config/tc-mips.c (check_absolute_expr): Fix formatting.
1247 2005-04-18 Jan Beulich <jbeulich@novell.com>
1249 * macro.c (free_token): New, freeing all the memory associated with a
1251 (do_formals): Move initializers to ...
1252 (define_macro): ... here.
1253 (delete_macro): Convert passed in name to lower case. Warn when
1254 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
1256 2005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
1258 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
1260 2005-04-15 Jan Beulich <jbeulich@novell.com>
1262 * config/obj-elf.c (obj_elf_struct): New.
1263 (elf_pseudo_table). Use it for .offset and .struct.
1265 2005-04-14 Bob Wilson <bob.wilson@acm.org>
1266 Sterling Augustine <sterling@tensilica.com>
1268 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
1269 than the section alignment.
1271 2005-04-14 Bob Wilson <bob.wilson@acm.org>
1272 H.J. Lu <hongjiu.lu@intel.com>
1274 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
1275 * config/tc-xtensa.c (xg_translate_sysreg_op,
1276 xtensa_translate_old_userregs_ops,
1277 xtensa_find_unaligned_branch_targets,
1278 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
1279 relax_frag_add_nop): Support 64-bit host.
1280 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
1281 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
1283 2005-04-14 Mark Kettenis <kettenis@gnu.org>
1285 * configure.tgt: Add support for OpenBSD/sparc ELF.
1287 * configure.tgt: Set emulation for mips-*-openbsd*.
1288 Remove broken mips-dec-openbsd* config.
1289 * configure.in: Set default ABI for mips64-*-openbsd*.
1290 * configure: Regenerate.
1292 2005-04-14 Maciej W. Rozycki <macro@linux-mips.org>
1294 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
1295 optimization for constant addresses.
1297 2005-04-14 Nick Clifton <nickc@redhat.com>
1299 * as.c (main): Move parse_args before symbol_begin and frag_init
1300 so that the hash table size can be set before it is used.
1301 * hash.c: Use an unsigned long type for the size of the hash
1303 * hash.h (set_gas_hash_table_size): Update the prototype.
1305 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1307 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1308 * acinclude.m4: Include ../bfd/warning.m4.
1309 * configure.in: Invoke AM_BINUTILS_WARNINGS.
1310 * Makefile.in: Regenerate.
1311 * configure: Regenerate.
1312 * doc/Makefile.in: Regenerate.
1314 2005-04-13 Maciej W. Rozycki <macro@linux-mips.org>
1316 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
1317 (normalize_address_expr): New function to sign-extend address
1318 offsets that fit into 32 bits in 32-bit mode.
1319 (macro_build_ldst_constoffset): Use normalize_address_expr()
1320 instead of a handcoded sequence.
1321 (load_register): Likewise. Report oversized numbers in a useful
1323 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
1324 for constant addresses. Report oversized numbers in a useful way.
1325 (mips_ip): Use normalize_address_expr() for addresses.
1327 2005-04-12 Mark Kettenis <kettenis@gnu.org>
1329 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
1330 similar to other instructions now that they're marked as ImmExt.
1332 2005-04-12 Nick Clifton <nickc@redhat.com>
1334 * hash.c (DEFAULT_SIZE): Delete. Replace with:
1335 (gas_hash_table_size): New static variable.
1336 (set_gas_hash_table_size): New function: Records a requested size
1337 for the hash tables.
1338 (get_gas_hash_table_size): New function: Return a prime number
1339 near the requested size of the hash table.
1340 (hash_new): Use get_gas_hash_table_size.
1341 * hash.h: Add a prototype for set_gas_hash_table_size.
1342 * as.c (show_usage): Add description of new switches: --hash-size
1343 and --reduce-memory-overheads.
1344 (option_values): Add OPTION_HASH_TABLE_SIZE and
1345 OPTION_REDUCE_MEMORY_OVERHEADS.
1346 (std_longpopts): Add entries for the new options.
1347 (parse_args): Handle the new options.
1348 * Makefile.am: Add a dependency of as.c on hash.h.
1349 * Makefile.in: Regenerate.
1350 * doc/as.texinfo: Document the new switches.
1351 * NEWS: Mention the new switches.
1353 2005-04-12 Nick Clifton <nickc@redhat.com>
1356 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
1359 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1361 * Makefile.am: Run "make dep-am".
1362 * Makefile.in: Regenerate.
1364 2005-04-11 Sterling Augustine <sterling@tensilica.com>
1365 Bob Wilson <bob.wilson@acm.org>
1367 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
1369 2005-04-11 Mark Kettenis <kettenis@gnu.org>
1371 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
1373 2005-04-11 Jan Beulich <jbeulich@novell.com>
1375 * NEWS: Mention these changes and their effects.
1376 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
1378 (check_macro): Likewise.
1379 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
1380 labels together with the closing pseudo-op.
1381 (macro_expand_body): Adjust comment. Range-check input before use.
1382 Adjust mis-spelled diagnostic. Use is_name_beginner.
1383 * read.c (try_macro): New.
1384 (read_a_source_file): New static variable last_eol. Don't list
1385 macro expansion lines more than once. Call try_macro.
1386 (s_macro): Set section of line_label to absolute instead of undefined.
1387 * doc/as.texinfo: Add information on the caveats of these changes.
1389 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1391 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
1392 * symbols.h (symbol_X_add_number): Update prototype.
1394 2005-04-10 Eric Christopher <echristo@redhat.com>
1396 * symbols.c (symbol_X_add_number): Fix warning.
1398 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
1400 * config/tc-m68k.c (md_begin): Support 64bit host.
1401 (get_num): Support 64bit BFD on 32bit host.
1403 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
1405 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
1407 2005-04-09 Alan Modra <amodra@bigpond.net.au>
1409 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
1410 call. Don't do the COFF hacks for multi-emulation gas. Move
1411 demand_empty_rest_of_line back to caller.
1412 (s_set, equals): demand_empty_rest_of_line here.
1415 * as.h (rs_dummy): Define.
1416 * symbols.c (symbol_X_add_number): New function.
1417 * symbols.h (symbol_X_add_number): Declare.
1418 * stabs.c (aout_process_stab): Tidy symbol frag setting.
1419 * read.c (assign_symbol): New function, split out from s_set.
1420 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
1421 Fix COFF hacks for multi-emulation gas.
1422 (s_set): Call assign_symbol. Remove "register" keyword.
1423 (set_zero_frag): New function.
1424 (pseudo_set): Always check for assignment to section syms.
1425 Always set segment and frag of symbol, and likewise extern for
1426 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
1427 special case exp.X_add_number non-zero for O_symbol expressions.
1428 (equals): Use assign_symbol.
1430 2005-04-08 Bob Wilson <bob.wilson@acm.org>
1432 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
1435 2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
1437 * config/tc-i386.c (tc_gen_reloc): Don't turn
1438 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
1440 2005-04-06 Nick Clifton <nickc@redhat.com>
1442 * po/rw.po: New translation: Kinyarwanda
1443 * configure.in (ALL_LINGUAS): Add rw
1444 * configure: Regenerate.
1446 2005-04-05 Sterling Augustine <sterling@tensilica.com>
1447 Bob Wilson <bob.wilson@acm.org>
1449 * config/tc-xtensa.c (branch_align_power): New.
1450 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
1451 future_alignment_required): Use branch_align_power to check section
1452 alignment as well as xtensa_fetch_width when aligning branch targets.
1454 2005-04-05 Bob Wilson <bob.wilson@acm.org>
1456 * config/tc-xtensa.c: Warning fixes throughout.
1457 (xtensa_fetch_width): Change to unsigned.
1458 (assemble_nop, xtensa_find_unaligned_branch_targets,
1459 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
1460 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
1461 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
1462 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
1463 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
1464 get_text_align_max_fill_size, get_text_align_nop_count,
1465 get_text_align_nth_nop_size, get_noop_aligned_address,
1466 get_aligned_diff, convert_frag_align_next_opcode,
1467 convert_frag_immed_finish_loop, xtensa_create_property_segments,
1468 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
1469 types, avoiding size_t and using offsetT and addressT appropriately.
1470 (get_text_align_power): Clean up types. Avoid incorrect bound.
1471 (get_text_align_fill_size): Clean up types. Restructure for clarity.
1473 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
1475 * config/tc-ia64.c (start_unwind_section): Undo the change
1477 (generate_unwind_image, dot_endp): Likewise.
1479 2005-04-01 David Mosberger <davidm@hpl.hp.com>
1481 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
1482 le_nop_stop arrays and initializers to file scope.
1483 (md_begin): When generating code for anything other than
1484 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
1486 2005-04-01 Jan Beulich <jbeulich@novell.com>
1488 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
1491 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1493 * NEWS: Mention [fdgh]_floating.
1494 * config/atof-vax.c: Fix some whitespace.
1495 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
1497 2005-04-01 Nick Clifton <nickc@redhat.com>
1499 * configure.in: Add a check for <unistd.h> providing a prototype
1500 for getopt() which is compatible with the one in
1501 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1502 * configure: Regenerate.
1503 * config.in (HAVE_DECL_GETOPT): Add.
1505 2005-04-01 Jan Beulich <jbeulich@novell.com>
1507 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
1509 2005-04-01 Jan Beulich <jbeulich@novell.com>
1511 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
1512 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
1514 2005-03-30 Julian Brown <julian@codesourcery.com>
1516 * config/tc-arm.c (arm_adjust_symtab): Rename
1517 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
1519 2005-03-30 Julian Brown <julian@codesourcery.com>
1521 * config/tc-arm.c (mapping_state): Change documentation in function
1522 comment to cross-reference spec instead. Change type of mapping symbols
1524 (arm_adjust_symtab): Don't change type of mapping symbols here.
1526 2005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1528 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
1529 * config.in: Regenerate.
1530 * configure: Regenerate.
1531 * configure.in: Check for ffs decl and alphabetize.
1533 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1534 Phil Blundell <philb@gnu.org>
1536 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
1537 (md_apply_fix3): Mark TLS symbols.
1538 (tc_gen_reloc): Handle TLS relocations.
1539 (arm_fix_adjustable): Ignore TLS relocations.
1540 (s_arm_elf_cons): Support expressions after decorated symbols.
1542 2005-03-29 Julian Brown <julian@codesourcery.com>
1544 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
1545 whether personality routine index N has been output for this section.
1546 (mapping_state): tc_segment_info_data now struct not enum.
1547 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
1548 handled on section change.
1549 (create_unwind_entry): Previous code to output dependency removed.
1550 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
1552 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
1553 arm_segment_info_type.
1554 (arm_segment_info_type): New struct.
1556 2005-03-28 Sterling Augustine <sterling@tensilica.com>
1557 Bob Wilson <bob.wilson@acm.org>
1559 * config/tc-xtensa.c (do_align_targets): Update comment.
1560 (xtensa_frob_label): Compute "freq" before possibly switching frags.
1561 Insert a LOOP_END frag before every loop target, and do not overload
1562 DESIRE_ALIGN_IF_TARGET frags with loop end information.
1563 (xg_assemble_vliw_tokens): Use do_align_targets.
1564 (xtensa_fix_target_frags): Remove code to convert a
1565 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
1566 negatable branch at the end of a loop.
1567 (frag_can_negate_branch): Delete.
1569 2005-03-28 David Mosberger <davidm@hpl.hp.com>
1570 H.J. Lu <hongjiu.lu@intel.com>
1573 NEWS: Mention "-mtune=[itanium1|itanium2]".
1575 * config/tc-ia64.c (md): Add tune.
1576 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
1577 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
1578 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
1579 B unit NOPs are discouraged for McKinley-derived cores.
1580 (md_begin): Don't hardcode the "extra_goodness()" function in
1582 (ia64_init): Set md.tune to itanium2.
1584 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
1585 * doc/c-ia64.texi: Likewise.
1587 2005-03-27 Ian Lance Taylor <ian@airs.com>
1589 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
1590 bad C_EFCN symbol, print its name.
1592 2005-03-25 Bob Wilson <bob.wilson@acm.org>
1594 * config/tc-xtensa.c (use_longcalls): Delete.
1595 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
1596 the use_longcalls flag is set. Do this before checking the segment.
1597 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
1598 expand direct calls at this point.
1599 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
1600 (xtensa_find_unmarked_state_frags): Likewise.
1601 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
1602 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
1603 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
1604 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
1606 2005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
1608 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
1610 2005-03-25 Hans-Peter Nilsson <hp@axis.com>
1612 * config/tc-cris.h: Convert to ISO C90.
1613 * config/tc-cris.c: Ditto.
1614 (md_estimate_size_before_relax): Remove obsolete comment for
1615 parameter "segment_type".
1616 (md_begin): Document reason for cast of hash_insert argument.
1617 (md_atof): Correct type of parameter "type".
1619 2005-03-24 Nick Clifton <nickc@redhat.com>
1621 * write.h (bit_fix_new): Remove redundant prototype.
1622 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
1623 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
1624 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
1625 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
1626 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
1627 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
1628 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
1629 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
1630 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
1631 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
1632 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
1633 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
1634 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
1635 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
1636 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
1637 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
1638 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
1639 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
1640 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
1641 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
1642 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
1643 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
1644 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
1645 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
1646 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
1647 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
1648 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
1649 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
1650 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
1651 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
1652 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
1653 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
1654 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
1655 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
1656 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
1657 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
1658 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
1659 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
1660 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
1661 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
1662 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
1663 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
1664 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
1665 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
1666 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
1667 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
1668 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
1669 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
1670 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
1671 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
1672 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
1673 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
1674 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
1675 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
1676 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
1678 2005-03-23 Jim Blandy <jimb@redhat.com>
1680 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
1681 attributes properly.
1683 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1684 Nick Clifton <nickc@redhat.com>
1686 * configure.tgt: Accept any C library to accompany a GNU Linux
1687 implementation, not just the GNU C library.
1688 * configure.in: Likewise.
1689 * configure: Regenerate.
1691 2005-03-23 Nick Clifton <nickc@redhat.com>
1693 * config/tc-tic30.c: Convert to ISO C90 formatting.
1694 * config/tc-tic30.h: Convert to ISO C90 formatting.
1695 * config/tc-pdp11.c: Convert to ISO C90 formatting.
1696 * config/atof-vax.c: Convert to ISO C90 formatting.
1698 2005-03-21 Maciej W. Rozycki <macro@mips.com>
1700 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
1701 relocations correctly as well.
1702 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
1703 relocations in mergeable sections section-relative either.
1705 2005-03-21 Bob Wilson <bob.wilson@acm.org>
1707 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
1709 2005-03-21 Nick Clifton <nickc@redhat.com>
1711 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
1712 warning by providing a prototype for sh_symbian_find_elf_flags.
1714 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
1717 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1719 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
1720 along with other formats that set bfd_gas. Remove unnecessary
1721 setting of bfd_gas. Delete strongarm cases in generic_target
1724 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1727 * config/tc-m68k.c (TRUNC, SEXT): Define.
1728 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
1729 (m68k_ip): Truncate or sign extend expressions as appropriate.
1730 (get_num): Likewise.
1731 (md_apply_fix3): Use SEXT.
1733 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1735 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
1736 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
1737 (obj-vms.o): Delete rule.
1739 * Makefile.in: Regenerate.
1740 * aclocal.m4: Regenerate.
1741 * doc/Makefile.in: Regenerate.
1742 * po/POTFILES.in: Regenerate.
1744 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
1746 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
1747 flag for coldfire v4e.
1749 2005-03-17 Bob Wilson <bob.wilson@acm.org>
1751 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
1752 xg_apply_fix_value and return a value to indicate success.
1753 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
1754 (xtensa_force_relocation): Remove checks for VTABLE relocs.
1755 (xtensa_validate_fix_sub): New.
1756 (xtensa_fix_adjustable): Remove check for external or weak symbols.
1757 (tc_gen_reloc): Move code to handle difference of symbols and code to
1758 apply tentative fix values to ...
1759 (md_apply_fix3): ...here. Enable standard overflow checks for simple
1760 8, 16, and 32 bit relocations. Apply fixes for slot-specific
1761 relocations when linkrelax flag is not set.
1762 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
1763 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
1765 2005-03-17 Jan Beulich <jbeulich@novell.com>
1767 * config/tc-i386.c (i386_scale): Beautify error message.
1768 (Intel syntax comments): Update.
1769 (struct intel_parser_s): Add fields in_offset, in_bracket, and
1771 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
1772 Remove declarations.
1773 (intel_bracket_expr): Declare.
1774 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
1775 of the function body in a loop allowing to split an operand into two.
1776 Replace calls to malloc and checks of it returning non-NULL with
1777 calls to xmalloc/xstrdup.
1778 (intel_expr): SHORT no longer handled here. Add comment indicating
1779 comparison ops need implementation.
1780 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
1781 Check right operand of - does not specify a register when parsing
1782 the address of a memory reference.
1783 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
1784 Check operands do not specify a register when parsing the address of
1786 (intel_e06, intel_e06_1): Likewise.
1787 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
1788 handle SHORT as well as unary + and -. Don't accept : except for
1789 segment overrides or in direct far jump/call insns.
1790 (intel_brack_expr): New.
1791 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
1793 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
1794 through in certain cases. Use intel_brack_expr. Add new diagnostics.
1795 Allow symbolic constants as register scale value.
1796 (intel_get_token): Replace call to malloc and check of return value
1797 with call to xmalloc. Change handling for FLAT to match MASM's.
1798 (intel_putback_token): Don't try to back up/free current token if
1801 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1803 * configure.tgt: Set emulation for arm-*-eabi*.
1804 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
1805 * config/te-armeabi.h: New file.
1806 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
1807 * config/te-symbian.h: Include "te-armeabi.h".
1809 2005-03-16 Nick Clifton <nickc@redhat.com>
1811 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
1812 local variable in case it is clobbered by the setjmp.
1814 2005-03-16 Nick Clifton <nickc@redhat.com>
1815 Ben Elliston <bje@au.ibm.com>
1817 * configure.in (werror): New switch: Add -Werror to the
1818 compiler command line. Enabled by default. Disable via
1820 * configure: Regenerate.
1822 2005-03-16 Nick Clifton <nickc@redhat.com>
1824 * config/obj-coff.h: Convert to ISO C90 formatting.
1825 * config/obj-coff.c: Convert to ISO C90 formatting.
1827 2005-03-15 Zack Weinberg <zack@codesourcery.com>
1829 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
1830 is_mls parameter; do not diagnose Rm==Rd when is_mls.
1831 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
1832 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
1833 (insns): Add ARMv6T2 instructions:
1834 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
1835 (arm_archs): Add V6T2 variants.
1837 2005-03-15 Nick Clifton <nickc@redhat.com>
1839 * NEWS: Add cutoff for changes in 2.16 release.
1841 2005-03-15 Jan Beulich <jbeulich@novell.com>
1843 * expr.c (operand): Merge handling of unary + into that for unary
1846 2005-03-14 Eric Christopher <echristo@redhat.com>
1848 * config/tc-mips.c: Include dw2gencfi.h.
1849 (mips_cfi_frame_initial_instructions): New.
1850 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
1851 (tc_cfi_frame_initial_instructions): Ditto.
1852 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
1853 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
1854 * Makefile.am: Update dependencies.
1855 * Makefile.in: Regenerate.
1857 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1859 * po/es.po: Commit new Spanish translation.
1861 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1863 * po/tr.po: Commit new Turkish translation.
1865 2005-03-12 Zack Weinberg <zack@codesourcery.com>
1867 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
1870 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1872 * config-gas.com: Mark vax-vms as obsolete.
1873 * configure.in: Remove fmt=vms support.
1874 * config.in: Regenerate.
1875 * configure: Regenerate.
1876 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
1878 2005-03-10 Sterling Augustine <sterling@tensilica.com>
1879 Bob Wilson <bob.wilson@acm.org>
1881 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
1882 when checking if xg_resolve_literals needs to be called.
1883 * config/tc-xtensa.h: Fix spelling typo in a comment.
1885 2005-03-10 Jan Beulich <jbeulich@novell.com>
1887 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
1888 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
1889 crafted structure declarations with the types from macro.h.
1891 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1893 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
1894 for -mno-shared optimization.
1896 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1898 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
1899 (MAX_NOPS): Bump to 4.
1900 (mips_fix_vr4130): New variable.
1901 (nops_for_vr4130): New function.
1902 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
1903 nops_for_vr4130 if working around VR4130 errata.
1904 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
1905 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
1906 (md_parse_option): Handle them.
1907 (md_show_usage): Print them.
1908 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
1910 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1912 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
1915 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1917 * config/tc-mips.h (mips_flush_pending_output): Delete.
1918 (mips_emit_delays): Declare.
1919 (md_flush_pending_output): Use mips_emit_delays.
1920 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
1921 the previous instructions.
1922 (md_begin, append_insn, md_parse_option): Update callers.
1923 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
1925 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
1926 (s_gpdword): Update callers.
1927 (start_noreorder, end_noreorder): New functions.
1928 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
1929 manipulating mips_opts or prev_nop_frag directly.
1930 (mips_flush_pending_output): Delete.
1932 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1934 * config/tc-mips.c (mips_move_labels): New function, taken from...
1935 (append_insn, mips_emit_delays): ...here.
1937 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1939 * config/tc-mips.c (MAX_NOPS): New macro.
1940 (history): Resize to 1 + MAX_NOPS.
1941 (fix_vr4120_class): New enumeration.
1942 (vr4120_conflicts): New variable.
1943 (init_vr4120_conflicts): New function.
1944 (md_begin): Call it.
1945 (insn_uses_reg): Constify first argument.
1946 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
1947 (nops_for_insn_or_target): New functions.
1948 (append_insn): Use the new nops_for_* functions instead of inline
1949 delay checks. Generalize prev_nop_frag handling to handle an
1950 arbitrary history length. Insert nops into the history buffer
1951 once the number of nops in prev_nop_frag is fixed.
1952 (emit_delays): Use nops_for_insn instead of inline delay checks.
1954 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1956 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
1957 check from branch delay code. Remove unnecessary check for branches.
1959 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1961 * config/tc-mips.c (dummy_opcode): Delete.
1962 (nop_insn, mips16_nop_insn): New variables.
1963 (NOP_INSN): New macro.
1964 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
1965 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
1966 (md_begin): Initialize nop_insn and mips16_nop_insn.
1967 (append_insn): Use the new emit_nop function to add nops, recording
1968 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
1969 to reserve room for the instruction and install_insn to install the
1970 final form. Use insert_into_history to record the instruction in
1971 the history buffer. Use move_insn to do delay slot filling.
1972 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
1973 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
1974 (mips16_ip): Use create_insn to initialize mips_cl_insns.
1976 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1978 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
1979 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
1980 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
1981 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
1982 (mips16_ip): Use the new macros instead of explicit masks and shifts.
1984 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1986 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
1987 and extended_p fields with a single fixed_p field.
1988 (append_insn, mips_no_prev_insn): Adjust accordingly.
1990 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1992 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
1993 a single mips16_absolute_jump_p bit.
1994 (append_insn): Adjust accordingly.
1996 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
1998 * config/tc-mips.h (mips_cl_insn): Move definition to...
1999 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
2000 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
2002 (history): New variable.
2003 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
2004 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
2005 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
2006 (prev_prev_insn_unreordered): Delete.
2007 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
2008 (macro_start): Replace uses of prev_insn* with the equivalent history[]
2011 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2013 * doc/Makefile.am: Update as.info dependencies.
2014 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
2016 2005-03-08 Jan Beulich <jbeulich@novell.com>
2018 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
2019 error, and point to .purgem documentation if someone really needs
2021 * NEWS: Mention macro redefinition is now an error.
2023 2005-03-08 Jan Beulich <jbeulich@novell.com>
2025 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
2026 emitted to. Add more precise diagnostics for non-fitting insns based
2027 on that. Eliminate now superfluous special casing of MLX. Clear out
2028 slot information when dropping an insn.
2030 2005-03-08 Jan Beulich <jbeulich@novell.com>
2032 * config/tc-ia64.c (parse_section_name): Rename to...
2033 (cross_section): In addition to separating the name from the rest of
2034 the arguments, also carry out the operation.
2035 (dot_xdata): Use cross_section.
2036 (dot_float_cons): Likewise.
2037 (dot_xstringer): Likewise.
2038 (dot_xdata_ua): Likewise.
2039 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
2041 2005-03-05 Alan Modra <amodra@bigpond.net.au>
2043 * po/gas.pot: Regenerate.
2045 2005-03-04 David Daney <ddaney@avtrex.com>
2047 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
2048 instead of '_gp' for -mno-shared optimization.
2050 (s_abicalls): Document it in the comment.
2051 (md_show_usage): Document the -mno-shared option.
2053 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
2055 * config/tc-mips.c (mips_set_options): Add sym32 field.
2056 (mips_opts): Initialize it.
2057 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
2058 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
2059 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
2060 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
2061 when deciding whether to use a symbolic %highest/%higher expansion.
2062 (macro): Likewise. Remove o64/n32 linux hack. Always use
2063 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
2064 and "la". Handle constants separately from symbolic expressions in
2065 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
2066 and using load_register to load the high part of the address.
2067 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
2068 (OPTION_ELF_BASE): Bump by 2.
2069 (md_longopts): Add entries for -msym32 and -mno-sym32.
2070 (md_parse_option): Handle them.
2071 (usage): Document them.
2072 (s_mipsset): Handle ".set sym32" and ".set nosym32".
2073 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
2074 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
2075 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
2076 -msym32 and -mno-sym32.
2078 2005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2080 * config/tc-mips.c (load_address): Implement GP optimization
2081 for 64bit address space non-PIC. Fix formatting.
2082 (macro): Likewise. Simplify code.
2083 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
2084 (mips_after_parse_args): Simplify code.
2086 2005-03-03 Nick Clifton <nickc@redhat.com>
2088 * expr.c (operand): Remove redundant code enclosed by #ifdef
2089 RELAX_PAREN_GROUPING....#endif.
2091 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
2092 reloc is the difference of two symbols defined in the same
2095 * config/tc-iq2000.c (line_comment_chars): Include the # character
2096 as otherwise this breaks #APP/#NO_APP processing.
2098 2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2100 * config/tc-arc.c(md_assemble): Remove dead code for handling
2101 immediate indexing of ld and st .
2103 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2104 Joseph Myers <joseph@codesourcery.com>
2106 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
2107 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
2108 (parse_relocation): Check for a word break after a relocation
2110 (md_apply_fix3): Handle TLS relocations, and mark thread-local
2113 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2115 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
2117 2005-03-02 Jan Beulich <jbeulich@novell.com>
2119 * as.c (main): Use unlink_if_ordinary instead of unlink.
2120 * messages.c (as_fatal): Likewise.
2122 2005-03-02 Jan Beulich <jbeulich@novell.com>
2124 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
2126 (parse_register): Allow cr8...15 in all modes.
2128 2005-03-02 Jan Beulich <jbeulich@novell.com>
2130 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
2131 etc. like normal symbol references (T_ID).
2133 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2135 * symbols.c (fb_label_name): Fix silly thinko in last change.
2137 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2139 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
2140 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
2142 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
2144 2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2147 * config/tc-arc.c (md_assemble): Initialize suffix for extension
2150 2005-03-01 Alan Modra <amodra@bigpond.net.au>
2152 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
2154 * as.h (assert): Warning fix.
2155 * expr.c (expr): Correct assertion.
2156 * read.c (s_comm_internal): Remove assertion.
2157 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
2158 (fixup_segment): Remove assertion.
2159 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
2160 (md_apply_fix3): Likewise.
2161 * config/tc-i370.c (md_begin): Correct assertion.
2162 (i370_macro): Warning fix for assertion.
2164 2005-03-01 Alan Modra <amodra@bigpond.net.au>
2166 * configure.in (AC_C_BIGENDIAN): Invoke.
2167 * configure: Regenerate.
2168 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
2169 host variable to set string header size.
2170 * config/obj-aout.c (obj_header_append): Don't use host structs.
2171 (obj_symbol_to_chars): Likewise.
2172 (obj_emit_strings): Likewise. Use the passed in output pointer.
2173 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
2174 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
2175 not sizeof host struct.
2176 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
2177 (obj_emit_strings): Likewise.
2178 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
2179 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
2181 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
2183 (host_number_to_chars): Define.
2184 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
2185 host internal struct to set header sizes.
2186 * config/tc-i960.c (md_number_to_field): Warning fix.
2187 (md_ri_to_chars): Use host byte order.
2188 (get_cdisp, md_apply_fix3): Warning fix.
2189 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
2191 2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2193 * doc/c-arc.texi: Update documentation about ARC's extension
2196 2005-02-27 Svein E. Seldal <svein@dev.seldal.com>
2198 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
2201 2005-02-23 Alan Modra <amodra@bigpond.net.au>
2203 * cgen.c: Warning fixes.
2204 * config/tc-arc.c: Likewise.
2205 * config/tc-arm.c: Likewise.
2206 * config/tc-avr.c: Likewise.
2207 * config/tc-d10v.c: Likewise.
2208 * config/tc-d30v.c: Likewise.
2209 * config/tc-frv.c: Likewise.
2210 * config/tc-frv.h: Likewise.
2211 * config/tc-h8300.c: Likewise.
2212 * config/tc-h8500.c: Likewise.
2213 * config/tc-i370.c: Likewise.
2214 * config/tc-i960.c: Likewise.
2215 * config/tc-ia64.c: Likewise.
2216 * config/tc-ip2k.c: Likewise.
2217 * config/tc-m68hc11.c: Likewise.
2218 * config/tc-maxq.c: Likewise.
2219 * config/tc-mcore.c: Likewise.
2220 * config/tc-mips.c: Likewise.
2221 * config/tc-msp430.c: Likewise.
2222 * config/tc-pj.c: Likewise.
2223 * config/tc-ppc.c: Likewise.
2224 * config/tc-ppc.h: Likewise.
2225 * config/tc-s390.c: Likewise.
2226 * config/tc-sh.c: Likewise.
2227 * config/tc-sh64.c: Likewise.
2228 * config/tc-tic4x.c: Likewise.
2229 * config/tc-tic80.c: Likewise.
2230 * config/tc-v850.c: Likewise.
2231 * config/tc-vax.c: Likewise.
2232 * config/tc-w65.c: Likewise.
2233 * config/tc-xstormy16.c: Likewise.
2234 * config/tc-z8k.c: Likewise.
2236 2005-02-22 Catherine Moore <clm@cm00re.com>
2238 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
2239 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
2241 2005-02-22 Eric Christopher <echristo@redhat.com>
2243 * config/tc-mips.c (struct proc): Change isym to
2244 func_sym. New member func_end_sym.
2245 (s_mips_ent): Update.
2246 (s_mips_end): Ditto. Add code to compute function size.
2248 2005-02-22 Alan Modra <amodra@bigpond.net.au>
2250 * read.c: Warning fixes.
2251 * config/obj-elf.c: Likewise.
2253 2005-02-22 Maciej W. Rozycki <macro@mips.com>
2255 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
2258 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
2260 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
2263 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
2265 (demand_empty_rest_of_line): Likewise.
2266 (tic54x_sblock): Likewise.
2267 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
2269 2005-02-21 Alan Modra <amodra@bigpond.net.au>
2271 * read.c (address_bytes): New function.
2272 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
2273 (potable): Add "dc.a".
2274 (cons_worker): Handle "dc.a".
2275 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
2277 2005-02-21 Alan Modra <amodra@bigpond.net.au>
2279 * input-file.c (input_file_open): Rearrange to avoid warning.
2281 2005-02-19 Alan Modra <amodra@bigpond.net.au>
2283 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
2284 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
2285 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
2287 2005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2289 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
2290 uses after .set noat.
2291 (load_address): Likewise.
2292 (macro): Likewise. Don't try to avoid $at use by sacrificing
2293 the target register before it is stored, it won't work.
2295 2005-02-17 James E Wilson <wilson@specifixinc.com>
2297 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
2298 see an instruction that specifies a template.
2300 2005-02-18 Alan Modra <amodra@bigpond.net.au>
2302 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
2303 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
2304 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
2306 2005-02-17 H.J. Lu <hongjiu.lu@intel.com>
2308 * NEWS: Mention "-mhint.b=[ok|warning|error]".
2310 * config/tc-ia64.c (md): Add hint_b.
2311 (emit_one_bundle): Handle md.hint_b for "hint".
2312 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
2313 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
2314 (ia64_init): Set md.hint_b to error.
2315 (md_assemble): Handle md.hint_b for "hint.b".
2317 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
2318 * doc/c-ia64.texi: Likewise.
2320 2005-02-17 Alan Modra <amodra@bigpond.net.au>
2322 * tc.h (struct relax_type, relax_typeS): Move from here..
2323 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
2324 * ecoff.c (ecoff_new_file): Add appfile param.
2325 * ecoff.h (ecoff_new_file): Likewise.
2326 * itbl-lex.h: New file.
2327 * itbl-lex.l: Include itbl-lex.h.
2328 * itbl-parse.y: Likewise.
2329 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
2330 * read.c (s_app_file_string): Mark appfile possibly unused.
2331 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
2332 * subsegs.h (struct seg_info_trash): Delete.
2333 (seg_info): Use segment_info_type instead.
2334 * config/obj-coff.c (struct filename_list): Make filename const char *.
2335 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
2336 * config/obj-elf.c (elf_file_symbol): Similarly.
2337 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
2339 * config/tc-arc.c (md_operand): Warning fix.
2340 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
2341 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
2342 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
2343 * config/tc-frv.c (frv_force_relocation): Warning fix.
2344 * config/tc-m68k.c (md_parse_option): Delete unused var.
2345 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
2346 * config/tc-sparc.c: Likewise.
2347 (s_common): Warning fix.
2348 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
2349 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
2351 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
2352 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
2353 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
2354 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
2355 (tic4x_do_align): Use TIC_NOP_OPCODE.
2356 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
2357 * config/tc-vax.c: Include netinet/in.h.
2358 (tc_headers_hook): Formatting.
2359 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
2361 2005-02-17 Jan Beulich <jbeulich@novell.com>
2363 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
2364 parsing inN, locN, outN. Set 'idx' to offset register number starts
2365 at. Don't handle numbers with leading zeroes or beyond 95. Remove
2368 2005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2370 * config/tc-mips.c (load_address): Fix formatting.
2371 (macro): Don't use AT if .set noat is in effect. Fix formatting.
2372 Catch macros which are unexpandable without AT. Remove duplicate
2374 (macro2): Remove duplicate zeroing of used_at.
2376 2005-02-16 Alan Modra <amodra@bigpond.net.au>
2378 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
2381 2005-02-15 Nigel Stephens <nigel@mips.com>
2382 Maciej W. Rozycki <macro@mips.com>
2384 * config/tc-mips.c (reloc_needs_lo_p): Handle
2385 BFD_RELOC_MIPS16_HI16_S.
2386 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
2387 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
2388 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
2390 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
2391 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
2392 Call my_getSmallExpression() to parse percent operators.
2393 (percent_op_match, mips_percent_op): Separate definitions.
2394 (mips16_percent_op): Define percent operators for the MIPS16 mode.
2395 (parse_relocation): Handle the MIPS16 mode using
2397 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
2398 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
2400 2005-02-15 Jan Beulich <jbeulich@novell.com>
2402 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
2403 instead of explicitly dealing with the translation; exclude
2404 relocations that are already pcrel, however.
2406 2005-02-15 Jan Beulich <jbeulich@novell.com>
2408 * config/tc-ia64.c: Include limits.h (if available).
2409 (gr_values[0]): Set path to INT_MAX.
2410 (dot_reg_val): Don't allow changing value of r0. Limit range of
2411 general registers at r127.
2412 (specify_resource): Default resource index is -1. Don't set resource
2413 index (in case IA64_RS_RSE) without setting the specific flag.
2414 (note_register_values): Check operand is O_constant before tracking
2415 input value of moves. Add tracking for dep.z with constant inputs.
2416 (print_dependency): Resource index of specific resource may be zero.
2417 (check_dependencies): Likewise.
2419 2005-02-15 Jan Beulich <jbeulich@novell.com>
2421 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
2422 reg_class. Check operands and emit diagnostics for illegal use of
2425 2005-02-15 Jan Beulich <jbeulich@novell.com>
2427 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
2428 new variables type, suffix, and width. Handle
2429 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
2430 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
2431 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
2432 FUNC_DTP_RELATIVE case. Return incoming relocation type if
2433 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
2434 if unable to translate relocation type, using the new variables.
2436 2005-02-15 Jan Beulich <jbeulich@novell.com>
2438 * config/tc-ia64.h (ia64_symbol_chars): Declare.
2439 (ty_symbol_chars): Define.
2440 * config/tc-ia64.c (ia64_symbol_chars): Define.
2442 2005-02-15 Jan Beulich <jbeulich@novell.com>
2444 * config/tc-ia64.c (ia64_parse_name): Only update next character if
2445 input_line_pointer was advanced.
2447 2005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2449 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
2452 2005-02-13 Jan Beulich <jbeulich@novell.com>
2454 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
2455 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
2457 (ia64_init): Set md.detect_dv.
2458 (ia64_start_line): New static variable warned. Warn only once when
2459 encountering explicit stops in automatic mode.
2460 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
2461 * NEWS: Mention new default mode.
2463 2005-02-13 Jan Beulich <jbeulich@novell.com>
2465 * config/tc-ia64.c (dot_rot): Add comment that name strings should
2466 be freed when wiping out previous state. Canonicalize names before
2467 use. Free name string when detecting redefinition.
2468 (dot_pred_rel): Call generic expression parser to process arguments.
2469 Handle O_register case for individual predicates and O_subtract for
2471 (ia64_parse_name): Canonicalize name before looking it up in dynamic
2473 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
2474 Warn if multiple found, issue error if resulting symbol name has zero
2476 (dot_alias): Canonicalize name before use.
2478 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2480 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
2482 (in_procedure): Return -1 for warning.
2483 (in_prologue): Likewise.
2484 (in_body): Likewise.
2486 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2488 * config/tc-ia64.c (dot_xdata): Undo the last change.
2489 (dot_float_cons): Likewise.
2490 (dot_xstringer): Likewise.
2491 (dot_xdata_ua): Likewise.
2492 (dot_float_cons_ua): Likewise.
2494 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
2496 * NEWS: Mention "-munwind-check=[warning|error]".
2498 * config/tc-ia64.c (md): Add unwind_check.
2499 (unwind_diagnostic): New.
2500 (in_procedure): Call unwind_diagnostic when a directive isn't
2502 (in_prologue): Call unwind_diagnostic when a directive isn't in
2504 (in_body): Call unwind_diagnostic when a directive isn't in
2506 (dot_endp): Set md.unwind_check to error before calling
2507 in_procedure and restore it after. When the name is missing or
2508 couldn't be found, use the one from the last .proc if
2509 md.unwind_check isn't error. Warn if md.unwind_check is
2511 (md_parse_option): Handle "-munwind-check=[warning|error]".
2512 (md_show_usage): Add "-munwind-check=[warning|error]".
2513 (ia64_init): Set md.unwind_check to warning.
2515 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
2516 * doc/c-ia64.texi: Likewise.
2518 2005-02-11 Jan Beulich <jbeulich@novell.com>
2520 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
2522 (ia64_parse_name): New third parameter.
2523 (md_parse_name): Pass third argument.
2524 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
2525 (md_operand): Handling of '@'-prefixed symbols moved from here...
2526 (ia64_parse_name): ...to here.
2528 2005-02-11 Jan Beulich <jbeulich@novell.com>
2530 * config/tc-ia64.c (md): Remove last_groups and group_idx.
2531 (errata_nop_necessary_p): Remove declaraction and definition.
2532 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
2533 update md.group_idx. Don't reset md.last_groups.
2535 2005-02-11 Jan Beulich <jbeulich@novell.com>
2537 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
2539 (dot_xdata): Free section name after use.
2540 (dot_float_cons): Likewise.
2541 (dot_xstringer): Likewise.
2542 (dot_xdata_ua): Likewise.
2543 (dot_float_cons_ua): Likewise.
2544 (md_pseudo_table): Add xdata16 and xdata16.ua.
2546 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
2548 * doc/all.texi: Add IA64.
2549 * doc/as.texinfo: Likewise.
2551 * doc/c-ia64.texi: Fix typos.
2553 2005-02-10 Julian Brown <julian@codesourcery.com>
2555 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
2557 (do_t_push_pop): Likewise.
2558 (md_assemble): Likewise.
2559 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
2560 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
2561 (create_unwind_entry): Output dependency on the required personality
2564 2005-02-07 Nathan Sidwell <nathan@codesourcery.com>
2566 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
2567 * subsegs.c (seg_not_empty_p): Likewise.
2569 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
2571 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
2572 relative jump calculation.
2573 <md_convert_frag) : Likewise.
2574 <output_disp): Likewise.
2576 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
2578 * write.c (write_object_file): Recognize warning-symbol construct
2579 and skip object- and target- handling for the second symbol.
2581 2005-02-02 Jan Beulich <jbeulich@novell.com>
2583 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
2584 designators along with quoted ones. Free copy of quoted designator
2587 2005-02-01 Ben Elliston <bje@au.ibm.com>
2589 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
2590 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
2591 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
2592 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
2593 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
2594 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
2595 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
2596 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
2597 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
2598 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
2599 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
2600 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
2601 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
2602 #if 0'd code throughout.
2604 2005-01-31 Nick Clifton <nickc@redhat.com>
2606 * as.c (parse_args): Bump copyright date reported by --version to
2609 2005-01-31 Nick Clifton <nickc@redhat.com>
2611 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
2614 2005-01-31 Jan Beulich <jbeulich@novell.com>
2616 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
2617 that can end with .endr in that case. Make requiring/permitting
2618 pseudo-ops without leading dot closer to the logic in read.c serving
2620 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
2623 2005-01-31 Jan Beulich <jbeulich@novell.com>
2625 * macro.c (do_formals): Adjust to no longer accept empty parameter
2627 (define_macro): Adjust to no longer accept empty macro name, garbage
2628 following the parameters, or macros that were previously defined.
2629 * read.c (s_bad_end): Declare.
2630 (potable): Add endm. Handler for endr and endm is s_bad_end.
2631 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
2633 * read.h (s_bad_endr): Remove.
2635 2005-01-31 Jan Beulich <jbeulich@novell.com>
2637 * config/tc-ia64.c (parse_operands): Parse all specified operands,
2638 immediately discarding (but counting) those exceeding the maximum
2639 possible amount. Track whether output and input operand counts ever
2640 matched, and use this to better indicate which of the operands/
2641 operand types was wrong; specifically don't default to pointing to
2644 2005-01-31 Jan Beulich <jbeulich@novell.com>
2646 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
2647 variable in dot_endp). Add body and insn. Make prologue,
2648 prologue_mask, body, and insn bitfields.
2649 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
2651 (in_procedure, in_prologue, in_body): New.
2652 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
2653 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
2654 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
2655 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
2656 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
2657 dot_personality): Use the appropriate one of the above.
2658 (dot_proc): Clear unwind.proc_start; set to current location only if
2659 none of the entry points were valid. Check for non-zero-length entry
2660 point names. Check that entry points aren't defined, yet. Clear
2661 unwind.prologue, unwind.body, and unwind.insn.
2662 (dot_body): Call in_procedure. Check that first directive in procedure
2663 had no insns emitted before. Set unwind.body.
2664 (dot_prologue): Call in_procedure. Check that not already in prologue.
2665 Check that first directive in procedure had no insns emitted before.
2667 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
2668 length entry point names. Check that entry points became defined.
2669 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
2671 2005-01-31 Jan Beulich <jbeulich@novell.com>
2673 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
2674 before actually using it. Don't generate an error in manual bundling
2675 mode when looking at an insn requiring slot 2 but not yet at slot 2.
2676 Don't generate an error in manual bundling mode when looking at an
2677 insn required to be last in its group but the required slot hasn't
2678 been reached, yet. Allow conversion from MII to MI;I for bundle
2679 consisting of only 2 insns with the stop between them. Suppress
2680 various meaningless errors resulting from detecting earlier ones.
2682 2005-01-31 Jan Beulich <jbeulich@novell.com>
2684 * config/tc-ia64.c (parse_operands): Also handle alloc without first
2687 2005-01-28 Christian Groessler <chris@groessler.org>
2689 * config/tc-z8k.c (md_assemble): Improve error detection.
2691 2005-01-28 Jan Beulich <jbeulich@novell.com>
2693 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
2694 for personality routine pointer only if there is one.
2695 (ia64_convert_frag): Likewise.
2696 (generate_unwind_image): Likewise.
2698 2005-01-27 Christian Groessler <chris@groessler.org>
2700 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
2701 (md_apply_fix3): Make relative branches out of range an error
2702 instead of a warning. Display correct line number for out of
2703 range branches/calls/memory accesses.
2705 2005-01-27 Nathan Sidwell <nathan@codesourcery.com>
2707 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
2708 to emit .debug_line and other debug sections.
2709 * as.h (seg_not_empty_p): Declare.
2710 * subsegs.c (seg_not_empty_p): New predicate.
2712 2005-01-27 Andrew Cagney <cagney@gnu.org>
2714 * configure: Regenerate to track ../gettext.m4 change.
2716 2005-01-27 Jan Beulich <jbeulich@novell.com>
2718 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
2720 2005-01-27 Jan Beulich <jbeulich@novell.com>
2722 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
2723 to/from application registers dynamic insns.
2724 (md_assemble): Defer resolution of move to/from application registers
2725 dynamic insns when they can be issued on either the I- or M-units.
2727 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
2729 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
2730 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
2731 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
2732 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
2733 * cgen.c (gas_cgen_parse_operand): Handle
2734 CGEN_PARSE_OPERAND_SYMBOLIC.
2735 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
2736 (frv_force_relocation): Likewise. Fix handling of PIC
2738 (md_apply_fix3): Likewise.
2740 2005-01-21 Ben Elliston <bje@au.ibm.com>
2742 * as.h: Remove #if 0'd code.
2743 * atof-generic.c (atof_generic): Likewise.
2744 * ecoff.c (ecoff_directive_frame): Likewise.
2745 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
2746 * itbl-ops.c (itbl_add_reg): Likewise.
2747 * listing.c (calc_hex): Likewise.
2748 * read.c (MASK_CHAR): Likewise.
2749 * subsegs.c (subsegs_print_statistics): Likewise.
2750 * symbols.c (indent): Likewise.
2751 * write.c (write_relocs): Likewise.
2752 (write_object_file): Likewise.
2753 (relax_frag): Likewise.
2755 2005-01-20 Nick Clifton <nickc@redhat.com>
2757 * as.c (std_longopts): Add an entry for "--a" in order to prevent
2758 getopt_long_only() from considering -a as an abbreviation for
2760 (parse_args): Fix the parsing of -a=<file>.
2762 2005-01-20 Alan Modra <amodra@bigpond.net.au>
2765 * read.c (s_incbin): Adjust default count for skip. Check validity
2766 of count and skip rigorously.
2768 2005-01-19 Fred Fish <fnf@specifixinc.com>
2770 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
2772 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
2774 * read.c (convert_to_bignum): New function, split out from...
2775 (emit_expr): ...here. Handle the case where X_add_number is
2776 positive and the input value is negative.
2777 (output_big_sleb128): Fix setting of continuation bit. Check whether
2778 the final byte needs to be sign-extended. Fix size-shrinking loop.
2779 (emit_leb128_expr): When generating a signed leb128, see whether the
2780 sign of an O_constant's X_add_number matches the sign of the input
2781 value. Use a bignum if not.
2783 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
2785 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
2786 arch_sh_up in order to match the external name and make the
2787 testsuite's job easier.
2789 2005-01-14 H.J. Lu <hongjiu.lu@intel.com>
2792 * config/tc-i386.c (i386_scale): Disallow 0 scale.
2794 2005-01-12 Nick Clifton <nickc@redhat.com>
2796 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
2797 ignored_arguments array.
2799 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
2801 * write.c (write_object_file): Disallow a symbol equated to
2804 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
2806 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
2808 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
2809 (maxq_target): New function: Set the machine type.
2811 2005-01-06 Paul Brook <paul@codesourcery.com>
2813 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
2814 (md_begin): Handle TE_VXWORKS for FP defaults.
2815 (md_apply_fix3): Correct rela offsets.
2816 (elf32_arm_target_format): Add VxWorks targets.
2818 2005-01-06 Paul Brook <paul@codesourcery.com>
2820 * configure.tgt: Set em=vxworks for *-*-vxworks.
2821 * config/te-vxworks.h: New File.
2823 2005-01-06 Paul Brook <paul@codesourcery.com>
2825 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
2827 2005-01-04 Dmitry Diky <diwil@spec.ru>
2829 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
2832 2005-01-03 David Mosberger <davidm@hpl.hp.com>
2834 * config/tc-ia64.c (md): Add member "loc_directive_seen".
2835 (dot_loc): New function.
2836 (md_pseudo_table): Add entry to map .loc to dot_loc().
2837 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
2838 seen a .loc directive or we're generating DWARF2 debug info for
2841 2004-12-29 Alan Modra <amodra@bigpond.net.au>
2844 * read.c (s_comm_internal): Don't zero end of name until size
2845 expression has been parsed.
2847 2004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
2849 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
2851 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
2853 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
2856 2004-12-22 Ian Lance Taylor <ian@airs.com>
2858 * configure.tgt: New.
2859 * configure.in: Move setting of cpu_type, fmt, etc., to
2861 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
2862 $(srcdir)/configure.tgt.
2863 * configure, Makefile.in: Rebuild.
2865 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
2867 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
2868 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
2870 (avr_offset_expression): New function to parse offsets for LDI
2872 (avr_operand): Use it.
2873 (md_apply_fix3): Generate the relocs.
2875 2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
2877 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
2878 BFD_RELOC_SH_IMMS10BY8 relocation.
2880 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
2881 than just ignoring bad code.
2883 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
2885 * config/tc-v850.c (handle_lo16): New function.
2886 (v850_reloc_prefix): Use it to check lo().
2887 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
2889 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
2891 * configure.in: Add s390x-ibm-tpf support.
2892 * configure: Regenerate.
2894 2004-12-15 Jan Beulich <jbeulich@novell.com>
2896 * config/obj-elf.c (obj_elf_change_section): Only set type and
2897 attributes on new sections. Emit warning when type of re-declared
2898 section doesn't match.
2900 2004-12-15 Jan Beulich <jbeulich@novell.com>
2902 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
2903 '.cfi_startproc simple' doesn't inherit the old value.
2905 2004-12-15 Jan Beulich <jbeulich@novell.com>
2907 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
2908 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
2909 generation to emit a factored offset.
2911 2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
2913 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
2914 which is too large in the case of NO_PIC without 64-bit
2917 * config/tc-mips.c (mips_in_shared): New static variable.
2918 (macro_build_lui): Permit "_gp" if !mips_in_shared.
2919 (md_longopts): Add -mshared and -mno-shared.
2920 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
2921 (s_cpload): Implement !mips_in_shared case.
2922 (s_cpsetup): Likewise.
2923 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
2924 * NEWS: Mention -mno-shared.
2926 2004-12-09 Paul Brook <paul@codesourcery.com>
2928 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
2931 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
2933 * config/tc-mips.c (append_insn): If we emit a nop during a relax
2934 sequence, increase the size of the sequence.
2936 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
2939 2004-12-07 Ben Elliston <bje@gnu.org>
2941 * read.c (s_align): Use an align_limit temporary to allay a GCC
2942 signed/unsigned comparison warning.
2944 2004-12-01 Mark Mitchell <mark@codesourcery.com>
2946 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
2947 * configure.in: Use it for arm*-*-linux-gnueabi*.
2948 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
2949 * config/te-armlinuxeabi.h: New file.
2950 * Makefile.in: Regenerated.
2951 * aclocal.m4: Likewise.
2952 * configure: Likewise.
2953 * doc/Makefile.in: Regenerated.
2955 2004-12-02 Bob Wilson <bob.wilson@acm.org>
2957 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
2958 (xtensa_restore_emit_state): Likewise.
2960 2004-12-02 Alan Modra <amodra@bigpond.net.au>
2962 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
2965 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
2967 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
2968 * Makefile.in: Regenerate.
2970 2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
2972 * config/tc-crx.c: Major code cleanup. Remove unused variables and
2973 functions, give functions a meaningful name, add comments.
2974 (check_range): New function - Replace operand size calculation
2975 with range checking.
2976 (assemble_insn): Update Algorithm, improve error issuing.
2978 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
2981 2004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2983 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
2984 miss between different section in the same module.
2985 (tc_gen_reloc): Likewise.
2987 2004-11-25 Theodore A. Roth <troth@openavr.org>
2989 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
2990 atmega325, atmega3250, atmega645 and atmega6450.
2992 2004-11-25 Jan Beulich <jbeulich@novell.com>
2994 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
2995 permissible for the selected instruction suffix.
2996 (process_suffix): For DefaultSize instructions, suppressing the
2997 guessing of a 'q' suffix if the instruction doesn't support it is
2998 pointless, because only an 'l' suffix can be guessed in this place.
3000 2004-11-24 Nick Clifton <nickc@redhat.com>
3002 * config/tc-iq2000.c: Remove support for IQ10 processor.
3003 Convert to ISO C90 formatting.
3004 * config/tc-iq2000.h: Likewise.
3006 2004-11-23 Nick Clifton <nickc@redhat.com>
3008 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
3009 in this table. They should be correct now.
3011 2004-11-23 Jan Beulich <jbeulich@novell.com>
3013 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
3014 indicate the MMX extensions added by both SSE and 3DNow!A.
3015 (Cpu3dnowA): Declare.
3016 (CpuUnknownFlags): Update.
3017 * config/tc-i386.c (cpu_sub_arch_name): Declare.
3018 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
3019 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
3020 3DNow!. Athlon additionally implies 3DNow!A. Several new
3021 entries (those starting with a dot are for sub-arch specification).
3022 (set_cpu_arch): Handle sub-arch specifications.
3023 (parse_insn): Distinguish between instructions not supported because
3024 of insufficient CPU features and because of 64-bit mode.
3025 * doc/c-i386.texi: Describe enhanced .arch directive.
3027 2004-11-22 Bob Wilson <bob.wilson@acm.org>
3029 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
3031 2004-11-22 Bob Wilson <bob.wilson@acm.org>
3033 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
3034 without a corresponding .debug_info section.
3036 2004-11-22 Hans-Peter Nilsson <hp@axis.com>
3038 * read.c (potable): Add "error" and "warning".
3039 (s_errwarn): New function.
3040 * read.h (s_errwarn): Declare.
3041 * doc/as.texinfo (Error, Warning): Document .error and .warning.
3043 2004-11-22 Nick Clifton <nickc@redhat.com>
3045 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
3048 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3050 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
3051 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
3053 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3055 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
3056 (coff_adjust_symtab): Adjust call.
3057 (crawl_symbols): Likewise.
3058 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
3059 (obj_app_file): Adjust.
3061 2004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3063 * configure.in: Enable bfd_assember for the MAXQ port.
3064 * configure: Regenerate.
3066 2004-11-12 Bob Wilson <bob.wilson@acm.org>
3067 Sterling Augustine <sterling@tensilica.com>
3069 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
3070 there is a conflict.
3071 (check_t1_t2_reads_and_writes): Check for both reads and writes to
3072 interfaces that are related as determined by xtensa_interface_class_id.
3074 2004-11-12 Nick Clifton <nickc@redhat.com>
3076 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
3077 offsets for conditional branches.
3079 2004-11-11 Bob Wilson <bob.wilson@acm.org>
3081 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
3083 2004-11-10 Bob Wilson <bob.wilson@acm.org>
3085 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
3086 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
3088 (relax_frag_immed): Update call to update_next_frag_state.
3090 2004-11-10 Alan Modra <amodra@bigpond.net.au>
3092 * obj.h (struct format_ops <app_file>): Add int param.
3093 * read.h (s_app_file_string): Likewise.
3094 * read.c (s_app_file_string): Likewise.
3095 (s_app_file): Adjust s_app_file_string call.
3096 * config/tc-mips.c (s_mips_file): Likewise.
3097 * config/obj-coff.h (obj_app_file): Add app param.
3098 * config/obj-ecoff.h (obj_app_file): Likewise.
3099 * config/obj-multi.h (obj_app_file): Likewise.
3100 * config/obj-elf.h (elf_file_symbol): Likewise.
3101 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
3102 if called for # preprocessor lines.
3104 2004-11-08 H.J. Lu <hongjiu.lu@intel.com>
3107 * symbols.c (resolve_symbol_value): Convert weak symbols only
3109 (symbol_equated_reloc_p): Don't equate weaks when relocating
3110 only for Windows PECOFF.
3112 2004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
3114 * config/tc-crx.c (print_insn): Check and set insn_addr.
3115 * config/tc-crx.h (md_frag_check): Define.
3117 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3118 Vineet Sharma <vineets@noida.hcltech.com>
3120 * configure.in: Add support for new target maxq-coff.
3121 * configure: Regenerate.
3122 * NEWS: Mention new support.
3123 * config/tc-maxq.c: New file.
3124 * config/tc-maxq.h: New file.
3125 * config/obj-coff.h: Add support for maxq-coff.
3127 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3129 * symbols.c (any_external_name): Define.
3130 (resolve_symbol_value): Convert weak symbols.
3131 (S_SET_EXTERNAL): Support any_external_name.
3132 (S_SET_NAME): Qualify parameter const.
3133 (symbol_equated_reloc_p): Equate to weaks when relocating.
3134 * symbols.h (S_SET_NAME): Qualfiy parameter const.
3135 * tc.h (any_external_name): Declare.
3136 * config/obj-coff.c ("coff/pe.h"): Include for BFD
3138 (weak_is_altname): Declare and define.
3139 (weak_name2altname): Same.
3140 (weak_altname2name): Same.
3141 (weak_uniquify): Same.
3142 (weak_altprefix): Define.
3143 (obj_coff_weak): Change .weak syntax and handling.
3144 (coff_frob_symbol): Fix PE weak symbol alternates.
3145 * config/obj-coff.h (USE_UNIQUE): Define.
3146 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
3147 are in another segment.
3148 (tc_gen_reloc): Remove broken addend hack.
3149 doc/as.texinfo: Update.
3151 2004-11-05 Sterling Augustine <sterling@tensilica.com>
3153 * config/tc-xtensa.c (total_frag_text_expansion): New.
3154 (md_estimate_size_before_relax): Use it.
3155 (find_address_of_next_align_frag): Likewise.
3157 2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
3159 * config/tc-crx.c: Rename argument types.
3160 (processing_arg_number): Rename to 'cur_arg_num'.
3161 (get_number_of_bits): Rename to 'set_operand_size'.
3162 (get_operandtype): Rename to 'parse_operand', totally rewrite.
3163 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
3164 (set_indexmode_parameters): Remove function, integrate its code into
3166 (set_operand_size): Get rid of 'Operand Number' function parameter -
3167 use global variable 'cur_arg_num' instead.
3168 Use a local 'argument' pointer to reference the current argument.
3169 (parse_operand): Likewise.
3170 (set_operand): Likewise.
3171 (process_label_constant): Likewise.
3173 2004-11-04 Bob Wilson <bob.wilson@acm.org>
3175 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
3176 (add_section_rename): Delete. Inlined into...
3177 (build_section_rename): ...here. Use xstrdup instead of strdup.
3178 (xtensa_section_rename): Drop "const" from argument and return types.
3179 (md_show_usage): Indent to match show_usage().
3180 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
3181 (tc_canonicalize_section_name): Define.
3182 (md_elf_section_rename): Remove unused macro.
3183 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
3184 * doc/c-xtensa.texi (Xtensa Options): Likewise.
3185 (Frame Directive): Delete.
3187 2004-11-04 Daniel Jacobowitz <dan@debian.org>
3189 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
3190 * config/tc-arm.c (target_oabi): Delete.
3191 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
3192 (arm_opts): Remove moabi.
3193 * doc/as.texinfo (Overview): Remove documentation of -moabi.
3194 * doc/c-arm.texi (ARM Options): Likewise.
3195 * configure: Regenerated.
3197 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
3199 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
3200 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
3201 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
3202 * configure: Regenerate.
3203 * config/tc-cris.c (enum cris_archs): New.
3204 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
3205 (cris_insn_ver_valid_for_arch): New functions.
3206 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
3207 (cris_arch): New variable.
3208 (md_pseudo_table): New pseudo .arch.
3209 (err_for_dangerous_mul_placement): Initialize according to
3211 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
3213 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
3214 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
3215 (BRANCH_WF_V32, BRANCH_WB_V32): New.
3216 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
3217 use in md_cris_relax_table.
3218 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
3219 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3220 Update and improve head comment.
3221 (OPTION_PIC): Define in terms of previous option, OPTION_US.
3222 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
3224 (md_longopts): New option --march=...
3225 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
3227 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
3228 (HANDLE_RELAXABLE): New macro.
3229 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
3230 cases. Check for weak symbols and assume not relaxable. Handle
3231 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
3232 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
3234 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
3235 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3236 (cris_create_short_jump): Adjust for CRISv32.
3237 (cris_relax_frag): Handle new states.
3238 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
3239 (md_begin): Define symbols "..asm.arch.cris.v32",
3240 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
3241 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
3242 when entering opcode table entry points.
3243 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
3244 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
3245 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
3246 (cris_process_instruction): Initialize out_insnp->insn_type to
3247 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
3248 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
3250 <case 'm'>: Check that modified_char == '.'.
3251 <invalid operands>: Consume the rest of the line.
3252 When operands don't match, skip over subsequent insns with
3253 non-matching version specifier but same mnemonic.
3254 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
3255 special registers in CRISv32 are always 32 bit long.
3256 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
3258 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
3259 and compatible. Recognize "ACR" for v32, unless followed by "+".
3260 (get_spec_reg): Consider cris_arch when looking up register.
3261 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
3263 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
3264 (cris_get_expression): Restore input_line_pointer if failing "early".
3265 (get_flags): Consider cris_arch and recognize flags accordingly.
3266 (branch_disp): Adjust for CRISv32.
3267 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
3268 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
3269 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
3270 resolved. Don't enter zeros in object file for
3272 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
3273 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
3274 (md_parse_option): Break out "return 1".
3275 <OPTION_ARCH> New case.
3276 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
3277 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
3278 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
3279 <case BFD_RELOC_32_PCREL>: New cases.
3280 Addends for non-zero fx_pcrel are too in fx_offset.
3281 (md_show_usage): Show --march=<arch>.
3282 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
3283 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
3284 (s_syntax) <struct syntaxes>: Properly constify member operand.
3285 * config/tc-cris.h (TARGET_MACH): Define.
3286 (cris_mach): Declare.
3287 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
3288 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
3289 (CRIS-Opts): Document --march=...
3290 (CRIS-Pseudos): Document .arch.
3292 2004-11-04 Jan Beulich <jbeulich@novell.com>
3294 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
3295 intel syntax and no register prefix, allow $ in symbol names when
3297 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
3298 (intel_float_operand): Add fourth return value indicating math control
3299 operations. Make classification more precise.
3300 (md_assemble): Complain if memory operand of mov[sz]x has no size
3302 (parse_insn): Translate word operands to floating point instructions
3303 operating on integers as well as control instructions to short ones
3304 as expected by AT&T syntax. Translate 'd' suffix to short one only for
3305 floating point instructions operating on non-integer operands.
3306 (match_template): Remove fldcw special case. Adjust q-suffix handling
3307 to permit it on fild/fistp/fisttp in AT&T mode.
3308 (process_suffix): Don't guess DefaultSize insns' suffix from
3309 stackop_size for certain floating point control instructions. Guess
3310 suffix for branch and [ls][gi]dt based on flag_code. Split error
3311 messages for Intel and AT&T syntax, and make the condition more strict
3312 for the former. Adjust suppressing of generation of operand size
3314 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
3315 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
3316 more error checking.
3317 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
3318 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
3320 2004-11-03 Hans-Peter Nilsson <hp@axis.com>
3322 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
3323 md_short_jump_size, md_long_jump_size.
3324 * write.c [!WORKING_DOT_WORD]: Ditto.
3325 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
3327 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
3329 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
3330 const qualifier in these definitions.
3331 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
3332 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
3334 2004-11-02 Nick Clifton <nickc@redhat.com>
3336 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
3337 table before deciding to produce a .debug_line section to match up
3338 with a user provided .debug_info section.
3340 2004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
3342 * config/tc-crx.c (getreg_image): Bug fix, a return value was
3343 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
3345 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
3347 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
3348 (get_flags): New function.
3349 (get_number_of_bits): Edit comments, update numeric values to
3351 (process_label_constant): Don't support the colon
3352 format (SYMBOL:[s|m|l]).
3353 (set_cons_rparams): Support argument type 'arg_rbase'.
3354 (get_operandtype): Bug fix in 'rbase' operand type parsing.
3355 (handle_LoadStor): Bug fix, first handle post-increment mode.
3356 (getreg_image): Remove redundant code, update according to latest
3358 (print_constant): Bug fix relate to 3-word instructions.
3359 (assemble_insn): Bug fix, when matching instructions, verify also
3360 instruction type (not only mnemonic).
3361 Add various error checking.
3362 (preprocess_reglist): Support HI/LO and user registers.
3364 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
3366 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
3367 in an epilogue directive go negative.
3369 2004-10-25 H.J. Lu <hongjiu.lu@intel.com>
3372 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
3373 after reporting template error during manual bundling. Reported
3374 by Michael Dupont, michaelx.dupont@intel.com.
3376 2004-10-25 Daniel Jacobowitz <dan@debian.org>
3378 * Makefile.am: Run dep-am.
3379 * aclocal.m4: Regenerate with automake 1.9.2.
3380 * Makefile.in: Regenerate with automake 1.9.2.
3381 * doc/Makefile.in: Likewise.
3383 * config/tc-arm.c: Include "dw2gencfi.h".
3384 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3386 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
3387 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
3388 (tc_cfi_frame_initial_instructions): Define.
3389 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
3392 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
3394 * config/tc-crx.c (assemble_insn): Check unsigned immediate
3396 Update coprocessor id to be unsigned immediate.
3398 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3400 * config/tc-i386.c (O_secrel): Delete.
3401 (tc_pe_dwarf2_emit_offset): New function.
3402 * config/tc-i386.h (O_secrel): Define as O_md1.
3403 (TC_DWARF2_EMIT_OFFSET): Define.
3405 2004-10-18 Nick Clifton <nickc@redhat.com>
3407 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
3408 ignore @fptr() directives for 4-byte fixups.
3410 2004-10-15 Alan Modra <amodra@bigpond.net.au>
3412 * Makefile.am: Run "make dep-am"
3413 * Makefile.in: Regenerate.
3415 2004-10-14 Bob Wilson <bob.wilson@acm.org>
3417 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
3418 Remove comments about placement of literal pools.
3419 (Literal Directive): Update description of literal placement.
3420 (Literal Prefix Directive): Remove statement that this does not apply
3421 to absolute-mode literals. Describe new section naming scheme.
3423 2004-10-12 Bob Wilson <bob.wilson@acm.org>
3425 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
3426 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
3427 is_windowed_return_opcode): Delete.
3428 (xtensa_frob_label): Use get_subseg_target_freq.
3429 (md_assemble): Inline call to is_entry_opcode.
3430 (xtensa_handle_align): Inline call to get_frag_is_literal.
3431 (relaxation_requirements): Inline call to is_jx_opcode.
3432 (emit_single_op): Inline call to is_movi_opcode.
3433 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
3434 get_frag_is_no_transform, is_entry_opcode, and
3435 set_frag_is_specific_opcode. Use get_subseg_total_freq.
3436 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
3437 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
3438 Inline calls to get_frag_is_no_transform.
3439 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
3440 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
3441 get_frag_is_no_transform.
3442 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
3443 and set_frag_is_no_transform.
3444 (get_expression_value): Delete.
3445 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
3446 cur_target_freq to target_freq.
3447 (get_subseg_info): Split out code to create a new map entry into ...
3448 (add_subseg_info): ... this new function.
3449 (get_last_insn_flags): Check if get_subseg_info succeeded.
3450 (set_last_insn_flags): Call add_subseg_info if needed.
3451 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
3452 (xtensa_reorder_segments): Compute last_sec while counting sections.
3453 Remove call to get_last_sec.
3454 (get_last_sec): Delete.
3455 (cache_literal_section): Inline call to retrieve_literal_seg and its
3456 callees, seg_present and add_seg_list.
3457 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
3458 (get_frag_is_insn, get_frag_is_no_transform,
3459 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
3460 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
3462 2004-10-12 Bob Wilson <bob.wilson@acm.org>
3464 * config/tc-xtensa.c: Use ISO C90 formatting.
3465 * config/tc-xtensa.h: Likewise.
3466 * config/xtensa-istack.h: Likewise.
3467 * config/xtensa-relax.c: Likewise.
3468 * config/xtensa-relax.h: Likewise.
3470 2004-10-12 Paul Brook <paul@codesourcery.com>
3472 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
3475 * doc/c-arm.texi: Document that we actually support -meabi=4, not
3478 2004-10-08 Bob Wilson <bob.wilson@acm.org>
3480 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
3482 (Acknowledgements): Use "GAS" instead of AS variable.
3484 2004-10-08 Daniel Jacobowitz <dan@debian.org>
3486 * config/tc-i386.c: Include "elf/x86-64.h".
3487 (i386_elf_section_type): New function.
3488 * config/tc-i386.h (md_elf_section_type): Define.
3489 (i386_elf_section_type): New prototype.
3491 2004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
3493 * config/m68k-parse.h (enum m68k_register): New control register,
3495 * config/tc-m68k.c: Correct control register set for MCF5249.
3497 2004-10-07 Bob Wilson <bob.wilson@acm.org>
3498 Sterling Augustine <sterling@tensilica.com>
3500 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
3501 (UNREACHABLE_MAX_WIDTH): Define.
3502 (XTENSA_FETCH_WIDTH): Delete.
3503 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
3504 prefer_const16, prefer_l32r): New global variables.
3505 (LIT4_SECTION_NAME): Define.
3506 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
3507 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
3508 (frag_flags struct): New.
3509 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
3510 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
3511 (bitfield, bit_is_set, set_bit, clear_bit): Define.
3512 (MAX_FORMATS): Define.
3513 (op_placement_info struct, op_placement_table): New.
3514 (O_pltrel, O_hi16, O_lo16): Define.
3515 (directiveE enum): Rename directive_generics to directive_transform.
3516 Delete directive_relax. Add directive_schedule,
3517 directive_absolute_literals, and directive_last_directive.
3518 (directive_info): Rename "generics" to "transform". Delete "relax".
3519 Add "schedule" and "absolute-literals".
3520 (directive_state): Adjust entries to match changes in directive_info.
3521 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
3522 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
3523 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
3524 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
3525 (align_only_targets, software_a0_b_retw_interlock,
3526 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
3527 software_avoid_short_loop, software_avoid_close_loop_end,
3528 software_avoid_all_short_loops, specific_opcode): Delete.
3529 (warn_unaligned_branch_targets): New.
3530 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
3531 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
3532 (option_[no_]link_relax, option_[no_]transform,
3533 option_[no_]absolute_literals, option_warn_unaligned_targets,
3534 option_prefer_l32r, option_prefer_const16, option_target_hardware):
3536 (option_[no_]align_only_targets, option_literal_section_name,
3537 option_text_section_name, option_data_section_name,
3538 option_bss_section_name, option_eb, option_el): Delete.
3539 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
3540 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
3541 and target-hardware. Delete entries for [no-]target-align-only,
3542 literal-section-name, text-section-name, data-section-name, and
3544 (md_parse_option): Handle new options and remove old ones. Accept but
3545 ignore [no-]density options. Warn for [no-]generics and [no-]relax
3546 and treat them as [no-]transform.
3547 (md_show_usage): Add new options and remove old ones.
3548 (xtensa_setup_hw_workarounds): New.
3549 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
3550 "long", "short", "loc" and "frequency" entries.
3551 (use_generics): Rename to ...
3552 (use_transform): ... this function. Add past_xtensa_end check.
3553 (use_longcalls): Add past_xtensa_end check.
3554 (code_density_available, can_relax): Delete.
3555 (do_align_targets): New.
3556 (get_directive): Accept dashes in directive names. Warn about
3557 [no-]generics and [no-]relax directives and treat them as
3559 (xtensa_begin_directive): Call md_flush_pending_output only for some
3560 directives. Check for directives inside instruction bundles. Warn
3561 about deprecated ".begin literal" usage. Warn and ignore [no-]density
3562 directives. Handle new directives. Check generating_literals flag
3564 (xtensa_end_directive): Check for directives inside instruction
3565 bundles. Warn and ignore [no-]density directives. Handle new
3566 directives. Call xtensa_set_frag_assembly_state.
3567 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
3568 xtensa_dwarf2_emit_insn): New.
3569 (xtensa_literal_position): Call md_flush_pending_output. Do not check
3570 use_literal_section flag.
3571 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
3572 literals. Use xtensa_elf_cons to parse the expression.
3573 (xtensa_literal_prefix): Do not check use_literal_section. Support
3574 ".lit4" sections for absolute literals. Change prefix convention to
3575 replace ".text" (or ".t" in a linkonce section). No need to call
3577 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
3578 (expression_end): Handle closing braces and colons.
3579 (PLT_SUFFIX, plt_suffix): Delete.
3580 (expression_maybe_register): Use new xtensa-isa.h functions. Use
3581 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
3582 and O_hi16 expressions as well.
3583 (tokenize_arguments): Handle closing braces and colons.
3584 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
3585 operands and paired register syntax.
3586 (get_invisible_operands): New.
3587 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
3588 new xtensa-isa.h functions.
3589 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
3590 (xg_translate_idioms): Check if inside bundle. Use use_transform.
3591 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
3592 instructions. Use xtensa_translate_zero_immed.
3593 (operand_is_immed, operand_is_pcrel_label): Delete.
3594 (get_relaxable_immed): Use new xtensa-isa.h functions.
3595 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
3597 (xtensa_print_insn_table, print_vliw_insn): New.
3598 (is_direct_call_opcode): Use new xtensa-isa.h functions.
3599 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
3600 is_branch_or_jump_opcode): Delete.
3601 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
3602 (opnum_to_reloc, reloc_to_opnum): Delete.
3603 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
3604 xtensa-isa.h functions. Operate on one slot of an instruction.
3605 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
3606 xg_get_insn_size): Delete.
3607 (xg_get_build_instr_size): Use xg_get_single_size.
3608 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
3609 xg_build_widen_table. Use xg_get_single_size.
3610 (xg_get_max_narrow_insn_size): Delete.
3611 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
3612 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
3614 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
3615 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
3616 (xg_expand_to_stack, xg_expand_narrow): Update calls to
3617 xg_build_widen_table. Use xg_get_single_size.
3618 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
3620 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
3621 treat weak symbols conservatively.
3622 (xg_check_operand): Use new xtensa-isa.h functions.
3623 (is_dnrange): Delete.
3624 (xg_assembly_relax): Inline previous calls to tinsn_copy.
3625 (xg_finish_frag): Specify separate relax states for the frag and slot0.
3626 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
3627 xtensa-isa.h functions.
3628 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
3629 xg_instruction_matches_options): New.
3630 (xg_instruction_matches_rule): Handle O_register expressions. Call
3631 xg_instruction_matches_options.
3632 (transition_rule_cmp): New.
3633 (xg_instruction_match): Update call to xg_build_simplify_table.
3634 (xg_build_token_insn): Record loc fields.
3635 (xg_simplify_insn): Check is_specific_opcode field and
3636 density_supported flag.
3637 (xg_expand_assembly_insn): Skip checking code_density_available. Use
3638 new xtensa-isa.h functions. Call use_transform instead of can_relax.
3639 (xg_assemble_literal): Add error handling for O_big. Call
3640 record_alignment. Handle O_pltrel.
3641 (xg_valid_literal_expression): New.
3642 (xg_assemble_literal_space): Add slot parameter. Remove call to
3643 set_expr_symbol_offset. Add call to record_alignment. Update call to
3645 (xg_emit_insn): Delete.
3646 (xg_emit_insn_to_buf): Add format parameter. Update calls to
3647 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
3648 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
3649 and slot parameters. Handle new "alternate" relocations for absolute
3650 literals and CONST16 instructions. Check for bad uses of O_lo16 and
3651 O_hi16. Use new xtensa-isa.h functions.
3652 (xg_assemble_tokens): Delete.
3653 (is_register_writer): Use new xtensa-isa.h functions.
3654 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
3655 old-style RSR from LCOUNT.
3656 (next_frag_opcode): Delete.
3657 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
3658 update_next_frag_state): New.
3659 (update_next_frag_nop_state): Delete.
3660 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
3661 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
3662 the state of the absolute-literals directive. Add calls to
3663 record_alignment and xtensa_set_frag_assembly_state. Call
3664 xtensa_switch_to_non_abs_literal_fragment instead of
3665 xtensa_switch_to_literal_fragment.
3667 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
3668 (get_expanded_loop_offset): Change check for undefined opcode to an
3670 (xtensa_set_frag_assembly_state, relaxable_section,
3671 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
3672 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
3673 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
3674 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
3675 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
3676 (xtensa_init_fix_data): New.
3677 (xtensa_frob_label): Reset label symbol to the current frag. Check
3678 do_align_targets and generating_literals flag. Propagate frequency
3679 info to new alignment frag. Call xtensa_set_frag_assembly_state.
3680 (xtensa_unrecognized_line): New.
3681 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
3682 to xtensa_set_frag_assembly_state.
3683 (error_reset_cur_vinsn): New.
3684 (md_assemble): Remove check for literal frag. Remove call to
3685 istack_init. Call use_transform instead of use_generics. Parse
3686 explicit instruction format specifiers. Move code for
3687 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
3688 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
3689 Add dwarf2_where call. Remote automatic alignment for ENTRY
3690 instructions. Move call to xtensa_clear_insn_labels to the end.
3691 Rearrange to handle bundles.
3692 (xtensa_cons_fix_new): Delete.
3693 (xtensa_handle_align): New.
3694 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
3695 assignment to is_no_density field.
3696 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
3697 instead of reloc_to_opnum. Handle "alternate" relocations.
3698 (xtensa_force_relocation, xtensa_check_inside_bundle,
3699 xtensa_elf_section_change_hook): New.
3700 (xtensa_symbol_new_hook): Delete.
3701 (xtensa_fix_adjustable): Check for difference of symbols with an
3702 offset. Check for external and weak symbols.
3703 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
3704 (md_estimate_size_before_relax): Return expansion for the first slot.
3705 (tc_gen_reloc): Handle difference of symbols by producing
3706 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
3707 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
3708 tentative values into the output when linkrelax is set.
3709 (XTENSA_PROP_SEC_NAME): Define.
3710 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
3711 Create literal tables only if using literal sections. Create new
3712 property tables instead of old instruction tables. Check for unaligned
3713 branch targets and loops.
3714 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
3715 new_resource_table, clear_resource_table, resize_resource_table,
3716 resources_available, reserve_resources, release_resources,
3717 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
3718 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
3719 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
3720 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
3721 flag. Update checks for workaround options. Call
3722 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
3723 (xtensa_cleanup_align_frags): Add special case for branch targets.
3724 Check for and mark unreachable frags.
3725 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
3726 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
3727 end of a zero-overhead loop body.
3728 (frag_can_negate_branch): Handle instructions with multiple slots.
3729 Use new xtensa-isa.h functions
3730 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
3731 xtensa_mark_zcl_first_insns): New.
3732 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
3733 transformations are disabled.
3734 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
3735 multislot instructions.
3736 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
3737 Likewise. Also error if transformations are disabled.
3738 (unrelaxed_frag_max_size): New.
3739 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
3740 xtensa-isa.h functions.
3741 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
3742 xtensa_opcode_is_loop instead of is_loop_opcode.
3743 (get_text_align_power): Replace as_fatal with assertion.
3744 (get_text_align_fill_size): Iterate instead of using modulus when
3746 (get_noop_aligned_address): Assert that this is for a machine-dependent
3747 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
3748 xg_get_single_size, and frag_format_size.
3749 (get_widen_aligned_address): Rename to ...
3750 (get_aligned_diff): ... this function. Add max_diff parameter.
3751 Remove handling of rs_align/rs_align_code frags. Use
3752 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
3753 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
3754 and pass it back to caller.
3755 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
3756 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
3757 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
3758 (relax_frag_text_align): Rename to ...
3759 (relax_frag_loop_align): ... this function. Assume loops can only be
3760 in the first slot of an instruction.
3761 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
3762 instruction. Remove call to frag_wane.
3763 (relax_frag_narrow): Rename to ...
3764 (relax_frag_for_align): ... this function. Extend to handle
3765 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
3766 RELAX_NARROW for the first slot.
3767 (find_address_of_next_align_frag, bytes_to_stretch): New.
3768 (future_alignment_required): Use find_address_of_next_align_frag and
3769 bytes_to_stretch. Look ahead to subsequent frags to make smarter
3770 alignment decisions.
3771 (relax_frag_immed): Add format, slot, and estimate_only parameters.
3772 Check if transformations are enabled for b_j_loop_end workaround.
3773 Use new xtensa-isa.h functions and handle multislot instructions.
3774 Update call to xg_assembly_relax.
3775 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
3776 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
3778 (convert_frag_narrow): Add segP, format and slot parameters. Call
3779 convert_frag_immed for branch instructions. Adjust calls to
3780 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
3781 xg_get_single_size and xg_get_single_format.
3782 (convert_frag_fill_nop): New.
3783 (convert_frag_immed): Add format and slot parameters. Handle multislot
3784 instructions and use new xtensa-isa.h functions. Update calls to
3785 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
3786 enabled for b_j_loop_end workaround. Use build_nop instead of
3787 assemble_nop. Check is_specific_opcode flag. Check for unreachable
3788 frags. Use xg_get_single_size. Handle O_pltrel.
3789 (fix_new_exp_in_seg): Remove check for old plt flag.
3790 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
3791 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
3792 for loop opcode to an assertion. Mark all frags up to the end of the
3793 loop as not transformable.
3794 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
3795 (get_subseg_info): New.
3796 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
3798 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
3799 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
3800 (xtensa_switch_to_non_abs_literal_fragment): New.
3801 (cache_literal_section): Add is_code parameter and pass it through to
3802 retrieve_literal_seg.
3803 (retrieve_literal_seg): Add is_code parameter and use it to set the
3804 flags on the literal section. Handle case where head parameter is 0.
3805 (get_frag_is_no_transform, set_frag_is_specific_opcode,
3806 set_frag_is_no_transform): New.
3807 (xtensa_create_property_segments): Add end_property_function parameter
3808 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
3809 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
3810 (xtensa_create_xproperty_segments, section_has_xproperty): New.
3811 (add_xt_block_frags): Add end_property_function parameter and call it
3812 if it is non-zero. Call xtensa_frag_flags_init.
3813 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
3814 get_frag_property_flags, frag_flags_to_number,
3815 xtensa_frag_flags_combinable, xt_block_aligned_size,
3816 xtensa_xt_block_combine, add_xt_prop_frags,
3817 init_op_placement_info_table, opcode_fits_format_slot,
3818 xg_get_single_size, xg_get_single_format): New.
3819 (istack_push): Inline call to tinsn_copy.
3820 (tinsn_copy): Delete.
3821 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
3822 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
3823 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
3824 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
3825 functions. Handle invisible operands.
3826 (tinsn_to_slotbuf): New.
3827 (tinsn_check_arguments): Use new xtensa-isa.h functions.
3828 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
3829 vinsn_from_chars, and xg_free_vinsn.
3830 (tinsn_from_insnbuf): New.
3831 (tinsn_immed_from_frag): Add slot parameter and handle multislot
3832 instructions. Handle symbol differences.
3833 (get_num_stack_text_bytes): Use xg_get_single_size.
3834 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
3835 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
3836 get_expr_register, set_expr_symbol_offset_diff): New.
3837 * config/tc-xtensa.h (MAX_SLOTS): Define.
3838 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
3839 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
3840 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
3842 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
3843 (xtensa_frag_type struct): Add is_assembly_state_set,
3844 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
3845 is_align, is_text_align, alignment, and is_first_loop_insn fields.
3846 Replace is_generics and is_relax fields by is_no_transform field.
3847 Delete is_text and is_longcalls fields. Change text_expansion and
3848 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
3849 per-slot information: literal_frags, slot_subtypes, slot_symbols,
3850 slot_sub_symbols, and slot_offsets. Add fr_prev field.
3851 (xtensa_fix_data struct): New.
3852 (xtensa_symfield_type struct): Delete plt field.
3853 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
3854 forward declaration here.
3855 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
3856 (XTENSA_SECTION_RENAME): Undefine.
3857 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
3858 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
3859 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
3860 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
3861 (unit_num_copies_func, opcode_num_units_func,
3862 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
3863 (resource_table struct): New.
3864 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
3865 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
3866 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
3867 (tinsn_copy): Delete prototype.
3868 (vliw_insn struct): New.
3869 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
3870 (widen_spec_list): Add option conditions for density and boolean
3871 instructions. Add expansions using CONST16 and conditions for using
3872 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
3874 (simplify_spec_list): Add option conditions for density instructions.
3875 Add entry for NOP instruction.
3876 (append_transition): Add cmp function pointer parameter and use it to
3877 insert the new entry in order.
3878 (operand_function_LOW16U, operand_function_HI16U): New.
3879 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
3880 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
3881 (enter_opname, split_string): Use xstrdup instead of strdup.
3882 (init_insn_pattern): Initialize new options field.
3883 (clear_req_or_option_list, clear_req_option_list,
3884 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
3886 (parse_insn_pattern): Parse option conditions.
3887 (transition_applies): New.
3888 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
3889 swapped last arguments in calls to append_constant_value_condition.
3890 Call clone_req_option_list. Add warning about invalid opcode.
3891 Handle LOW16U and HI16U function names.
3892 (build_transition_table): Add cmp parameter and use it in calls to
3893 append_transition. Use new xtensa-isa.h functions. Check
3894 transition_applies before adding entries.
3895 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
3896 pass it through to build_transition_table.
3897 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
3898 ReqOption, transition_cmp_fn): New types.
3899 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
3900 (transition_rule struct): Add options field.
3901 * doc/as.texinfo (Overview): Update Xtensa options.
3902 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
3903 --[no-]relax, and --[no-]generics options. Update descriptions of
3904 --text-section-literals and --[no-]longcalls. Add
3905 --[no-]absolute-literals and --[no-]transform.
3906 (Xtensa Syntax): Add description of syntax for FLIX instructions.
3907 Remove use of "generic" and "specific" terminology for opcodes.
3908 (Xtensa Registers): Generalize the syntax description to include
3909 user-defined register files.
3910 (Xtensa Automatic Alignment): Update.
3911 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
3912 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
3913 (Xtensa Directives): Remove confusing rules about precedence.
3914 (Density Directive, Relax Directive): Delete.
3915 (Schedule Directive): New.
3916 (Generics Directive): Rename to ...
3917 (Transform Directive): ... this node.
3918 (Literal Directive): Update for absolute literals. Missing
3919 literal_position directive is now an error.
3920 (Literal Position Directive): Update for absolute literals.
3921 (Freeregs Directive): Delete.
3922 (Absolute Literals Directive): New.
3923 (Frame Directive): Minor editing.
3924 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
3925 Update dependencies.
3926 * Makefile.in: Regenerate.
3928 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
3930 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
3931 to build the second and third fixups for a composite relocation.
3932 (macro_read_relocs): New function.
3933 (macro_build): Use it.
3934 (s_cpsetup): Pass all three composite relocation codes to macro_build.
3935 Simplify fragging code accordingly.
3936 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
3937 of the composite relocation. Set fx_tcbit in both fixups.
3939 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
3941 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
3942 (md_apply_fix3): Don't treat composite relocs as done.
3944 2004-10-07 Jan Beulich <jbeulich@novell.com>
3946 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
3947 prefix for symbol names generated from the LOCAL macro directive.
3949 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
3950 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
3952 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
3954 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
3956 (md_assemble): Add error checking for Co-Processor instructions.
3957 (get_cinv_parameters): Add 'b' option to invalidate the
3958 branch-target cache.
3960 2004-10-05 Paul Brook <paul@codesourcery.com>
3962 * config/tc-arm.c (unwind): New variable.
3963 (vfp_sp_encode_reg): New function.
3964 (vfp_sp_reg_required_here): Use it.
3965 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
3966 (vfp_parse_reg_list): New function.
3967 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
3968 s_arm_unwind_personality, s_arm_unwind_personalityindex,
3969 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
3970 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
3972 (md_pseudo_table): Add them.
3973 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
3974 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
3975 (set_section, add_unwind_adjustsp, flush_pending_unwind,
3976 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
3977 require_hashconst, add_unwind_opcode): New functions.
3978 * doc/c-arm.texi: Document unwinding opcodes.
3979 * NEWS: Mention the new feature.
3981 2004-10-04 Eric Christopher <echristo@redhat.com>
3983 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
3985 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
3987 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
3989 * config/tc-s390.c (md_apply_fix3): Likewise.
3990 * config/tc-sparc.c (md_apply_fix3): Likewise.
3992 2004-10-01 Paul Brook <paul@codesourcery.com>
3994 * config/tc-arm.c (arm_elf_section_type): New function.
3995 (arm_elf_change_section): Set section link for exidx sections.
3996 * config/tc-arm.h (arm_elf_section_type): Add prototype.
3997 (md_elf_section_type): Define.
3999 2004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
4001 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
4002 instruction's offset.
4004 2004-10-01 Adam Nemet <anemet@lnxw.com>
4006 * (TARGET_FORMAT): Remove LynxOS COFF definition.
4008 2004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
4010 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
4011 asymbol *, instead use symbol_get_bfdsym.
4013 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
4015 * config/tc-m68k.c (select_control_regs): Add mcf5249.
4017 2004-09-30 Paul Brook <paul@codesourcery.com>
4019 * config/tc-arm.c (do_smi, do_nop): New functions.
4020 (insns): Add ARMv6ZK instructions.
4021 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
4022 (tc_gen_reloc): Ditto.
4023 (arm_cpus): Add mpcore and arm1176.
4024 (arm_archs): Add armv6{k,z,zk}.
4025 * doc/c-arm.texi: Document new cores and architectures.
4027 2004-09-30 Nick Clifton <nickc@redhat.com>
4029 * config/tc-arm.c: Use ISO C90 formatting.
4031 2004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
4033 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
4034 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
4035 REG_TYPE_MVDX is expected.
4037 2004-09-29 Marc Bevand <m.bevand@gmail.com>
4039 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
4041 2004-09-21 James E Wilson <wilson@specifixinc.com>
4043 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
4044 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
4045 output_spill_base, output_unat_psprel, output_lc_psprel,
4046 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
4047 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
4048 output_spill_psprel_p): Use it.
4050 2004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
4052 * config/tc-crx.c (handle_LoadStor): New function.
4053 Handle load/stor unique instructions before parsing.
4055 2004-09-17 Paul Brook <paul@codesourcery.com>
4057 * config/tc-arm.c (s_arm_rel31): New funciton.
4058 (md_pseudo_table): Add .rel31.
4059 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
4060 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
4061 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
4062 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
4063 (arm_parse_reloc): Add (target2).
4065 2004-09-17 Alan Modra <amodra@bigpond.net.au>
4067 * Makefile.am: Run "make dep-am".
4068 * Makefile.in: Regenerate.
4069 * aclocal.m4: Regenerate.
4070 * configure: Regenerate.
4071 * doc/Makefile.in: Regenerate.
4072 * po/POTFILES.in: Regenerate.
4073 * po/gas.pot: Regenerate.
4075 2004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
4077 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
4078 [!LLONG_MAX]: Ditto.
4080 2004-09-13 Paul Brook <paul@codesourcery.com>
4082 * config/tc-arm.c: Rename RELABS to TARGET1.
4084 2004-09-13 Alan Modra <amodra@bigpond.net.au>
4086 * messages.c (as_internal_value_out_of_range): Cast values passed
4087 to as_bad_where or as_warn_where to proper type.
4089 2004-09-11 Theodore A. Roth <troth@openavr.org>
4091 * config/tc-avr.c: Add support for
4092 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
4094 2004-09-09 Alan Modra <amodra@bigpond.net.au>
4096 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
4097 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
4099 2004-09-08 Paul Brook <paul@codesourcery.com>
4101 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
4102 fini_array and preinit_array section types.
4103 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
4105 * doc/as.texinfo: Document extra section types.
4107 2004-09-02 Mark Mitchell <mark@codesourcery.com>
4109 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
4110 * Makefile.in: Regenerated.
4111 * configure.in: Set em for arm*-*-symbianelf*.
4112 * configure: Regenerated.
4113 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
4114 vectors when appropriate.
4115 * config/te-symbian.h: New file.
4117 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
4119 * config/tc-crx.c (gettrap): Exception vector can be case
4121 (process_label_constant): Fix a 32-bit displacement bug in branch
4123 (get_operandtype) : Bug fix, wrong operand was used.
4124 (process_label_constant): Initialize relocation type to
4127 2004-09-01 Richard Earnshaw < reanrsha@arm.com>
4129 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
4130 for synthesizable cores.
4132 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
4134 2004-08-25 Dmitry Diky <diwil@spec.ru>
4136 * config/tc-msp430.c: Clean-up the code.
4137 (md_relax_table): New relax table.
4138 (mcu_types): Sort MCU types.
4139 (md_pseudo_table): Add .profiler pseudo handler.
4140 (pow2value): New function.
4141 (msp430_profiler): New function.
4142 (msp430_operands): Add new insns handlers.
4143 (msp430_srcoperand): Add register operand handler, allow complex
4145 (md_estimate_size_before_relax): Rewritten.
4146 (md_convert_frag): Rewritten.
4147 (msp430_relax_frag): New function.
4148 * config/tc-msp430.h (md_relax_frag): define macro
4149 * doc/c-msp430.texi: Update information.
4151 2004-08-24 Nick Clifton <nickc@redhat.com>
4153 * as.c (std_shortopts): Allow -g to take an optional argument.
4154 (parse_args): Pass any switch starting with -g on to the backend
4157 2004-08-18 Mark Mitchell <mark@codesourcery.com>
4159 * configure.in (arm*-*-symbianelf*): New target.
4160 (arm*-*-eabi*): Likewise.
4161 * configure: Regenerated.
4163 2004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4164 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
4167 2004-08-18 Jakub Jelinek <jakub@redhat.com>
4169 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
4170 argument, don't do anything if current section is not
4171 .gnu.linkonce.t.* and linkonce_empty is set.
4172 (generate_unwind_image, dot_endp): Adjust callers, call
4173 start_unwind_section (*, 1) if nothing will be put into the
4176 2004-08-17 Nick Clifton <nickc@redhat.com>
4178 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
4179 (show_usage): Add -g.
4180 (std_longopts): Add --gen-debug. Alpha sort the table.
4181 (parse_args): Print an error message if a switch is not handled.
4182 Handle the -g switch, calling md_debug_format_selector() if
4184 * NEWS: Mention new feature.
4185 * doc/as.texinfo: Document new switch.
4186 * doc/internals.texi: Document behaviour of md_parse_option.
4188 * config/tc-arm.c (md_parse_option): Do not issue an error message
4189 if the switch is not recognised.
4190 * config/tc-m68k.c (md_parse_option): Likewise.
4191 * config/tc-pdp11.c (md_parse_option): Likewise.
4192 * config/tc-v850.c (md_parse_option): Likewise.
4194 * as.h: Fix up formatting.
4197 2004-08-16 Nick Clifton <nickc@redhat.com>
4199 * macro.c (macro_set_alternate): Use ISO C90 formatting.
4201 * configure.in: Sort architecture based tables alphabetically.
4202 * configure: Regenerate.
4204 2004-08-16 Alan Modra <amodra@bigpond.net.au>
4206 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
4207 { "cc", 68 }, with { "cr", 70 }.
4209 2004-08-13 Jan Beulich <jbeulich@novell.com>
4210 Nick Clifton <nickc@redhat.com>
4212 * as.c: Add and handle new --alternate command line option.
4213 * macro.c (macro_set_alternate): New.
4214 * macro.h (macro_set_alternate): Declare.
4215 * read.c: Add and handle new .altmacro and .noaltmacro directives.
4216 * doc/as.texinfo: Document new command line option and pseudo-ops
4217 as well as insert documentation originating from gasp about
4218 alternate macro syntax.
4219 * NEWS: Mention new command line option and pseudo-ops.
4221 2004-08-10 Mark Mitchell <mark@codesourcery.com>
4223 * expr.c (operand): Handle the "~", "-", and "!" operators applied
4226 2004-08-06 Paul Brook <paul@codesourcery.com>
4228 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
4229 Handle new relocations.
4230 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
4232 2004-08-05 Bob Wilson <bob.wilson@acm.org>
4234 * write.c (relax_segment): Use was_address instead of address when
4235 setting fr_fix field for align frag due to backwards .org.
4237 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
4239 Introduce SH2a support.
4240 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4241 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
4243 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4244 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
4245 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4246 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
4247 to end of conditional expression.
4248 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4249 * config/tc-sh.c: Add sh2a-nofpu support.
4250 2003-12-29 DJ Delorie <dj@redhat.com>
4251 * tc-sh.c: Add sh2a support.
4252 (parse_reg): Add tbr.
4253 (parse_at): Support @@(disp,tbr).
4254 (get_specific): Support sh2a opcodes.
4255 (insert4): New, for 4 byte relocs.
4256 (build_Mytes): Support sh2a opcodes.
4257 (md_apply_fix3_Mytes): Support sh2a opcodes.
4258 2003-12-02 Michael Snyder <msnyder@redhat.com>
4259 * config/tc-sh.c (md_parse_option): Handle sh2a.
4260 (sh_elf_final_processing): Ditto.
4262 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
4264 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
4267 2004-07-27 Alan Modra <amodra@bigpond.net.au>
4269 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
4270 (ppc_arch): Expand comment.
4272 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
4274 * config/tc-crx.c: Support evaluating the difference between two
4276 * config/tc-crx.h: Likewise.
4278 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
4280 * config/tc-ia64.c (start_unwind_section): Set the linked-to
4282 (ia64_elf_section_change_hook): Set the linked-to section for
4285 2004-07-26 Dmitry Diky <diwil@spec.ru>
4287 * config/tc-msp430.c: Add new subtargets: msp430x1610,
4288 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
4289 msp430xG438, msp430xG439.
4291 2004-07-25 Daniel Jacobowitz <dan@debian.org>
4293 * doc/as.texinfo (Section, PushSection): Correct documentation
4296 2004-07-21 Jan Beulich <jbeulich@novell.com>
4298 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
4299 permissible for the selected instruction suffix.
4300 (match_template): Don't permit 64-bit general purpose operands in
4302 (finalize_imm): Permit 64-bit immediates.
4303 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
4304 specially except for the width of the used base and/or index
4305 registers. For 32-bit displacements, use sign-extended
4306 relocations only when using 64-bit addressing.
4307 Force zero displacement on rip-relative addressing when there is
4308 no other displacement.
4309 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
4310 specially except for the width of the used base and/or index
4312 (parse_register): Disallow Reg64 registers in 32-bit mode.
4314 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
4315 suffix if the instruction doesn't support it.
4317 2004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
4319 * config/tc-mips.c (append_insn): Handle constant expressions with
4320 no associated relocation.
4321 (mips_ip): Cancel the expression after use for the Q format
4323 (parse_relocation): Return no relocation for unsupported
4325 (my_getSmallExpression): Return no relocation if no relocation
4328 2004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4330 * config/obj-som.c (adjust_stab_sections): Add prototype.
4331 (obj_som_compiler, obj_som_version, obj_som_copyright,
4332 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
4333 * config/tc-hppa.c (update_subspace): Likewise.
4334 (is_defined_subspace): Amplify comment.
4335 * config/obj-som.h (som_frob_file): Add prototype.
4337 2004-07-19 Christopher Faylor <cgf@timesys.com>
4338 H.J. Lu <hongjiu.lu@intel.com>
4340 * subsegs.c (section_symbol): Don't create a new segment when
4341 existing segment is undefined.
4343 2004-07-16 Richard Earnshaw <rearnsha@arm.com>
4345 * config/tc-arm.c: Include include/opcode/arm.h.
4346 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
4347 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
4348 (FPU_ARCH_*): Delete.
4349 * Makefile.am: Update dependencies.
4350 * Makefile.in: Regenerate.
4352 2004-07-15 Nick Clifton <nickc@redhat.com>
4354 * configure.in: Accept armbe as a big-endian arm configuration.
4355 * configure: Regenerate.
4357 2004-07-13 Thomas Nystrom <thn@saeab.se>
4359 * config/tc-i386.c (T_SHIFTOP): New constant.
4360 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
4361 (intel_el1): Handle '~'.
4362 (intel_get_token): Handle '<>', '&', '|' and '~'.
4364 2004-07-13 Nick Clifton <nickc@redhat.com>
4366 (md_assemble): Remove spurious newline from end of as_bad error
4368 (intel_e05_1): Likewise.
4369 (intel_e11): Likewise.
4370 (intel_match_token): Likewise.
4372 2004-07-11 Andreas Schwab <schwab@suse.de>
4374 * config/tc-m68k.c: Convert to C90. Remove redundant
4375 declarations. Indentation fixup.
4376 [M68KCOFF]: Include "obj-coff.h" instead of declaring
4377 obj_coff_section ourselves.
4379 2004-07-09 James E Wilson <wilson@specifixinc.com>
4381 * config/tc-ia64.c (default_big_endian): New.
4382 (dot_byteorder, md_begin): Use it.
4383 (md_parse_option): Set it.
4385 2004-07-09 Nick Clifton <nickc@redhat.com>
4387 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
4388 * configure: Regenerate.
4389 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
4390 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
4391 sh_find_elf_flags if necessary.
4393 2004-07-08 Richard Sandiford <rsandifo@redhat.com>
4395 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
4396 going to be split into more than one in-place addend, return 0
4397 for relocations against mergeable sections. Associate comments
4400 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
4402 * Makefile.am (CPU_TYPES): Add crx.
4403 (TARGET_CPU_CFILES): Add config/tc-crx.c.
4404 (TARGET_CPU_HFILES): Add config/tc-crx.h.
4405 (DEPTC_crx_elf): New target.
4406 (DEPOBJ_crx_elf): Likewise.
4407 (DEP_crx_elf): Likewise.
4408 * Makefile.in: Regenerate.
4409 * configure.in: Add crx* target.
4410 * configure: Regenerate.
4411 * config/tc-crx.c: New file.
4412 * config/tc-crx.h: New file.
4413 * NEWS: Mention new target.
4415 2004-07-06 Nick Clifton <nickc@redhat.com>
4417 * config.in: Undefine TARGET_SYMBIAN by default.
4419 * configure: Regenerate. Add sh-symbian-elf target. If
4420 selected define TARGET_SYMBIAN.
4421 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
4422 format if TARGET_SYMBIAN has been defined.
4424 * output-file.c (output_file_create): Report the target format
4425 chosen when bfd_openw reports that it is invalid.
4427 * config/obj-coff.c (coff_pseudo_table): Only define the weak
4428 pseudo for BFD based assemblers.
4430 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
4433 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
4434 (md_parse_option): Remove redundant -isa testing.
4435 Make bfd_arch variable const.
4436 (md_show_usage): Make bfd_arch variable const.
4438 2004-07-03 James E Wilson <wilson@specifixinc.com>
4440 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
4441 * config/tc-ia64.h (md_frag_check): Define.
4443 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4445 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
4447 * doc/as.texinfo (Weak): Document PE weak symbols.
4449 2004-07-03 Richard Sandiford <rsandifo@redhat.com>
4451 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
4452 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
4453 (mips_frob_file): Rework so that only a single pass through the
4454 relocs is needed. Allow %lo()s to have higher offsets than their
4455 corresponding %hi()s or %got()s.
4457 2004-07-02 Nick Clifton <nickc@redhat.com>
4459 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
4460 allow values which have come from undefined symbols.
4461 Always consider this fixup to have been processed as a reloc
4462 cannot be generated for it.
4464 2004-07-02 Alan Modra <amodra@bigpond.net.au>
4466 * frags.h (struct frag): Add has_code and insn_addr fields.
4467 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
4468 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
4469 * config/tc-ppc.h (md_frag_check): Define.
4471 2004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
4473 * doc/Makefile.am (info): Rename goal to...
4474 (info-local): ... this, to preserve implicit dependencies.
4475 * doc/Makefile.in: Regenerate with automake 1.8.5.
4477 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4479 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
4480 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
4481 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
4482 (tc_gen_reloc): Likewise.
4483 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
4484 (m32r_parse_name): Likewise.
4485 (m32r_cgen_parse_fix_exp): Likewise.
4486 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
4487 (O_PIC_reloc): Likewise.
4488 (TC_CGEN_PARSE_FIX_EXP): Likewise..
4489 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
4490 for @GOTOFF, @GOT, @PLT.
4492 2004-06-21 Jan Beulich <jbeulich@novell.com>
4494 * gas/symbols.c: While discarding ordinary local absolute symbols
4495 when --strip-local-absolute is in effect, retain file symbols.
4497 2004-06-20 Andreas Schwab <schwab@suse.de>
4499 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
4500 (md_parse_option): Likewise.
4502 2004-06-17 Jan Beulich <jbeulich@novell.com>
4504 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
4505 * config/te-netware.h: New file.
4506 * config/te-ppcnw.h: Delete: Obsolete.
4507 * configure.in: Eliminate ill NetWare targets. Make generic
4508 NetWare target use proper emulation.
4509 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
4510 reference to new te-netware.h.
4511 * configure: Regenerate.
4512 * Makefile.in: Regenerate.
4514 2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
4516 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
4517 comparison in .insn pseudo operation.
4519 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4521 * config/obj-coff.c (coff_adjust_section_syms): Use
4522 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
4523 (coff_frob_section): Likewise.
4524 * config/tc-mips.c (md_apply_fix3): Likewise.
4525 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
4526 (elf_frob_file_after_relocs): Likewise.
4528 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4530 * config/tc-hppa.c (log2): Rename to exact_log2.
4531 (pa_next_subseg): Delete unused function.
4532 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
4533 (create_new_subspace): Likewise.
4536 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
4537 labels. Fix warning.
4539 2004-05-28 DJ Delorie <dj@redhat.com>
4541 * config/tc-mn10300.h (tc_fix_adjustable): Define.
4542 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
4543 or non-merged symbols.
4545 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
4547 * config/tc-ia64.c (remove_marked_resource): Save, clear and
4548 restore the old slot when inserting srlz.i/srlz.d.
4550 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
4552 * Makefile.am: Regenerate dependecies.
4553 * Makefile.in: Regenerate.
4554 * config/tc-sh.c (valid_arch): Make unsigned.
4555 (preset_target_arch): Likewise.
4556 (md_begin): Use new architecture flags system.
4557 (get_specific): Likewise.
4558 (assemble_ppi): Likewise.
4559 (md_assemble): Likewise. Also fix error check for bad opcodes.
4560 (md_parse_option): Likewise. Also generate -isa values according
4561 to the table in bfd/cpu-sh.c instead of just constants. Also
4562 allow <arch>-up ISA variants.
4563 (sh_elf_final_processing): Replace if-else chain with a call to
4564 sh_find_elf_flags().
4566 2004-05-28 Peter Barada <peter@the-baradas.com>
4568 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
4569 with zero offset into mode 2 addressing to save a word.
4571 2004-05-27 H.J. Lu <hongjiu.lu@intel.com>
4573 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
4574 (ar_is_only_in_integer_unit): New.
4575 (ar_is_only_in_memory_unit): New.
4576 (generate_unwind_image): Silence gcc on 32bit host.
4577 (md_assemble): Use ar_is_only_in_integer_unit instead of
4578 ar_is_in_integer_unit. Check AR access.
4580 2004-05-27 Peter Barada <peter@the-baradas.com>
4582 * config/tc-m68k.c (md_begin): Sort the opcode table into
4584 (m68k_compare_opcode): New function to do the sorting.
4586 2004-05-24 Peter Barada <peter@the-baradas.com>
4588 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
4589 addressing on MIT style operands.
4590 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
4592 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
4595 2004-05-23 Alan Modra <amodra@bigpond.net.au>
4597 * expr.c (operand, operator): Don't reject '++' and '--'.
4599 2004-05-20 Richard Sandiford <rsandifo@redhat.com>
4601 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
4604 2004-05-17 Adam Nemet <anemet@lnxw.com>
4606 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
4607 * configure: Regenerate.
4609 2004-05-13 Paul Brook <paul@codesourcery.com>
4611 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
4613 2004-05-13 Joel Sherrill <joel@oarcorp.com>
4615 * configure.in (or32-*-rtems*): Switch to elf.
4616 * configure: Regenerate.
4618 2004-05-13 Nick Clifton <nickc@redhat.com>
4620 * po/fr.po: Updated French translation.
4622 2004-05-11 Nick Clifton <nickc@redhat.com>
4624 * doc/as.texinfo (Section): Document G and T flags to .section
4625 directive. Document the extra arguments that the G flag
4626 requires. Document the #tls flag.
4628 2004-05-11 H.J. Lu <hongjiu.lu@intel.com>
4630 * subsegs.c (section_symbol): Create a new section symbol if
4631 the existing one doesn't match.
4632 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
4634 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
4636 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
4637 to cope with VR4181A errata MD(1) and MD(4).
4639 2004-05-07 Brian Ford <ford@vss.fsi.com>
4641 * NEWS: Mention .secrel32 for pe[i]-i386.
4643 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
4645 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
4646 (HANDLE_ALIGN): New.
4648 2004-05-06 Daniel Jacobowitz <dan@debian.org>
4650 * Makefile.am (DIST_SUBDIRS): Define.
4651 * aclocal.m4: Regenerate with automake 1.8.4.
4652 * Makefile.in: Likewise.
4653 * doc/Makefile.in: Likewise.
4655 2004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
4657 * config/tc-ia64.c (dot_serialize): Declare.
4658 (dot_serialize): New function.
4659 (md_pseudo_table): Add ".serialize.data" and
4660 ".serialize.instruction" directives.
4662 2004-05-06 Nick Clifton <nickc@redhat.com>
4664 * messages (as_internal_value_out_of_range): Print a message about
4665 a value being out of range. Be consistent about whether the
4666 values are printed in decimal or hexadecimal.
4667 (as_warn_value_out_of_range): Generate a warning message about an
4669 (as_bad_value_out_of_range): Generate an error message about an
4671 * as.h: Prototype the new functions.
4672 * config/tc-alpha.c (insert_operand): Use new function.
4673 * config/tc-arc.c (arc_insert_operand): Likewise.
4674 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
4675 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
4676 * config/tc-ppc.c (ppc_insert_operand): Likewise.
4677 * config/tc-s390.c (s390_insert_operand): Likewise.
4678 * config/tc-v850.c (v850_insert_operand): Likewise.
4680 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
4682 * configure.in: Set em=linux for frv-*-*linux*.
4683 * configure: Rebuilt.
4684 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
4685 (frv_md_fdpic_enabled): New.
4686 * config/tc-frv.c (frv_md_fdpic_enabled): New.
4687 (DEFAULT_FDPIC): New.
4688 (frv_flags): Use DEFAULT_FDPIC.
4689 (frv_pic_flag): Likewise.
4690 (OPTION_NOPIC): New.
4691 (md_longopts): Add -mnopic.
4692 (md_parse_option): Handle it.
4693 (md_show_usage): Add -mfdpic and -mnopic.
4695 2004-05-05 Peter Barada <peter@the-baradas.com>
4697 * config/tc-m68k.c: Add find_cf_chip to print list of valid
4698 chips for invalid coldfire instructions, rename selectors
4699 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
4700 add current_chip to track which chip is referred to(including save/restore),
4701 use current_chip to select control registers, not current_arch.
4702 (md_show_usage): Add new chips.
4703 * doc/c-m68k.texi: Document new command line switches.
4705 2004-05-05 Jakub Jelinek <jakub@redhat.com>
4707 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
4708 (NOP_OPCODE): Define.
4709 (s390_align_code): Remove prototype.
4710 * tc-s390.c (s390_align_code): Remove.
4712 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
4714 * config/tc-ia64.c (make_unw_section_name): Removed.
4715 (start_unwind_section): New function.
4716 (generate_unwind_image): Take const segT instead of const
4718 (dot_handlerdata): Adjusted.
4719 (dot_endp): Likewise.
4721 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
4723 * config/obj-elf.c (obj_elf_change_section): Allow the
4724 ".note.GNU-stack" section has SHF_EXECINSTR.
4726 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
4728 * config/obj-elf.c (get_section): Return bfd_boolean.
4729 (obj_elf_change_section): Call bfd_get_section_by_name_if
4730 instead of bfd_map_over_sections.
4732 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
4734 * config/obj-elf.c (get_section): New function.
4735 (obj_elf_change_section): Support multiple sections with same
4738 2004-04-30 Nick Clifton <nickc@redhat.com>
4740 * config/tc-arm.c (create_register_alias): Fix typo checking for
4741 case sensitive register aliases.
4742 (co_proc_number): Use error message string in all_reg_maps[]
4744 (cp_reg_required_here): Likewise.
4745 (fp_reg_required_here): Likewise.
4747 2004-04-29 Brian Ford <ford@vss.fsi.com>
4749 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
4751 2004-04-28 Chris Demetriou <cgd@broadcom.com>
4753 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
4754 (load_address, macro, mips_ip, md_parse_option)
4755 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
4756 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
4757 embedded-PIC handling, and update comments.
4758 (SWITCH_TABLE): Remove.
4759 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
4760 (enum mips_pic_level): Remove EMBEDDED_PIC.
4761 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
4762 (TC_FORCE_RELOCATION): Update comment.
4763 * ecoff.c (ecoff_build_lineno): Add comment about some code that
4764 might be safe to remove now that MIPS embedded-PIC is gone.
4766 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4768 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
4769 call to obj_set_subsection_attributes.
4770 (obj_som_init_stab_section): Likewise.
4771 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
4772 (pa_def_subspaces): Provide comdat default.
4773 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
4774 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
4775 calls to create_new_subspace and update_subspace to pass comdat flag.
4776 (create_new_subspace, update_subspace): Add new comdat argument. Use
4777 it in calls to obj_set_subsection_attributes.
4778 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
4779 and use of comdat, common and dup_comm parameters.
4781 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
4783 * config/obj-elf.c (obj_elf_change_section): Check if the old
4784 group name is NULL before comparison.
4786 2004-04-23 Chris Demetriou <cgd@broadcom.com>
4788 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
4790 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4792 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
4794 2004-04-23 Chris Demetriou <cgd@broadcom.com>
4796 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
4797 (OPTION_MEMBEDDED_PIC): Remove.
4798 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
4799 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
4800 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
4801 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
4802 (OPTION_ELF_BASE): Renumber.
4803 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
4804 (md_show_usage): Remove mention of -membedded-pic.
4805 * doc/as.texinfo: Remove mention of -membedded-pic.
4807 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4809 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
4810 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
4812 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
4813 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
4814 USE_GLOBAL_POINTER_OPT.
4816 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4818 * config/tc-mips.c (macro): One more use of load_delay_nop.
4820 2004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
4822 * config/tc-mips.c (load_delay_nop): New function.
4823 (load_address, macro): Use load_delay_nop() to build a nop
4824 which can be omitted with gpr_interlocks.
4826 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4828 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
4829 cop_interlocks): Remove superfluous CPU entries.
4831 2004-04-22 Paul Brook <paul@codesourcery.com>
4833 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
4835 2004-04-22 Peter Barada <peter@the-baradas.com>
4837 * NEWS: Added support for EMAC instructions and MAC/EMAC
4839 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
4840 scale factor tokens, trailing_ampersand to mark mask addressing
4841 for MAC/EMAC instructions.
4842 * config/m68k-parse.y: Add options_ampersand clause, '<<',
4844 (yylex): Handle '>', '<', and '&' following '+'.
4845 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
4846 architectures in archs[].
4847 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
4848 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
4850 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
4851 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
4853 Add EMAC operands to init_table[].
4855 2004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
4857 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
4859 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
4860 * config/tc-arm.c (enum mstate): Delete from here.
4861 (mapping_state): Remove the static mapstate variable and instead
4862 store the state in the segment. This allows a per-section mapping
4863 state. Handle and ignore MAP_UNDEFINED states.
4864 (arm_elf_change_section): Get the current mapping state from the
4866 (s_ltorg): Set the mapping state to MAP_DATA.
4867 (arm_cleanup): Use arm_elf_change_section to get the mapping state
4868 for each pool as it is emitted.
4870 2004-04-22 Nick Clifton <nickc@redhat.com>
4872 * config/tc-arm.h: Formatting tidy ups.
4874 2004-04-20 Chris Demetriou <cgd@broadcom.com>
4876 * NEWS: Note that MIPS -membedded-pic option is deprecated.
4878 2004-04-20 DJ Delorie <dj@redhat.com>
4880 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
4881 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
4882 [TE_PE] (O_secrel): Define.
4883 [TE_PE] (x86_pe_cons_fix_new): New.
4884 [TE_PE] (pe_directive_secrel): Likewise.
4885 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
4887 2004-04-19 Eric Christopher <echristo@redhat.com>
4889 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
4890 of previous patch for fix in gcc.
4892 2004-04-19 Jakub Jelinek <jakub@redhat.com>
4894 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
4896 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
4898 * read.c (do_align): Call md_flush_pending_output, if defined.
4900 2004-04-16 Alan Modra <amodra@bigpond.net.au>
4902 * expr.c (operand): Correct checks for ++ and --.
4904 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
4906 * config/tc-generic.c: Add some comments.
4908 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
4910 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
4911 -{no-}mfix-vr4122-bugs.
4912 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
4913 (append_insn, mips_emit_delays): Update accordingly.
4914 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
4915 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
4916 (md_parse_option): Update after above changes.
4917 (md_show_usage): Add -mfix-vr4120.
4919 2004-04-13 Bob Wilson <bob.wilson@acm.org>
4921 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
4922 of .section directive; add a reference to the ELF .subsection
4925 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4927 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
4930 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4932 * Makefile.am: Remove mips from aout targets.
4933 * Makefile.in: Regenerate.
4934 * configure.in: Remove mips-dec-bsd* target.
4935 * configure: Regenerate.
4937 2004-04-07 Alan Modra <amodra@bigpond.net.au>
4940 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
4941 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
4942 Update "mapping". Restrict some @ modifiers to 32 bit.
4944 2004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
4945 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4947 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
4948 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
4949 dont_adjust_reloc_32 is set.
4950 (md_longopts): Add option -renesas.
4951 (md_parse_option, md_show_usage): Likewise.
4952 * doc/c-sh.texi: Likewise.
4954 2004-04-01 Dave Korn <dk@artimi.com>
4956 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
4957 hi16 and lo16 fixS structs.
4958 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
4959 exactly the same way as for RELOC_DLX_REL16.
4960 (machine_ip): properly respect LO flag in the_insn and
4961 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
4962 (md_apply_fix3): apply RELOC_DLX_LO16.
4964 2004-03-30 Stan Shebs <shebs@apple.com>
4966 Remove long-obsolete MPW support.
4967 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
4968 * configure.in: Remove mention of ppc-*-mpw* config.
4969 * configure.in: Likewise.
4971 2004-03-30 Nick Clifton <nickc@redhat.com>
4973 * config/tc-arm.c (meabi_flags): Make its use conditional upon
4974 OBJ_ELF being defined.
4976 2004-03-27 Alan Modra <amodra@bigpond.net.au>
4978 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
4980 2004-03-23 Paul Brook <paul@codesourcery.com>
4982 * config/tc-arm.c (meabi_flags): New variable.
4983 (arm_parse_eabi): New function.
4984 (md_begin): Set flags for EABI v3.
4986 (arm_long_opts): Add meabi.
4987 * doc/as.texinfo <ARM>: Document -meabi.
4988 * doc/c-arm.texi: Ditto.
4990 2004-03-22 Bob Wilson <bob.wilson@acm.org>
4992 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
4993 tables even when use_literal_section flag is not set.
4995 2004-03-22 Alan Modra <amodra@bigpond.net.au>
4997 * config/tc-sh.c: Remove trailing whitespace.
4999 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
5001 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
5002 --mul-bug-abort and the default behavior.
5003 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
5004 (err_for_dangerous_mul_placement): New variable.
5005 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
5007 (md_cris_relax_table): Have placeholder for STATE_MUL.
5008 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
5009 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
5011 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
5012 STATE_BYTE)>: Ditto.
5013 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
5014 alignment and position of this frag, emit error message if
5016 (md_assemble): For a multiply insn and when checking it,
5017 transform the current frag into a special frag for that purpose.
5018 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
5019 OPTION_MULBUG_ABORT_ON>: Handle new options.
5021 2004-03-19 Bob Wilson <bob.wilson@acm.org>
5023 * config/tc-xtensa.c (mark_literal_frags): New function.
5024 (xtensa_move_literals): Call mark_literal_frags for all literal
5025 segments, including init and fini literal segments.
5026 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
5028 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5030 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
5031 (pa_comm): Set BSF_OBJECT in symbol flags.
5033 2004-03-19 Alan Modra <amodra@bigpond.net.au>
5035 * Makefile.am: Run "make dep-am".
5036 * Makefile.in: Regenerate.
5037 * doc/Makefile.in: Regenerate.
5038 * config.in: Regenerate.
5039 * po/gas.pot: Regenerate.
5041 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
5043 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
5044 (demand_empty_rest_of_line): Issue an error here.
5045 (ignore_rest_of_line): Silently skip to end.
5046 (demand_copy_string): Issue an error, not warning.
5048 * config/obj-elf.c (obj_elf_section_name): Likewise.
5049 (obj_elf_section): Likewise.
5050 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
5051 (arc_extinst): Likewise.
5052 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
5053 (dot_spill): Likewise.
5054 (dot_unwabi): Likewise.
5055 (dot_prologue): Likewise.
5057 * expr.c (operand): Reject ++ and --.
5058 (operator): Likewise.
5060 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5062 * config/tc-sh.c: Include dw2gencfi.h.
5063 (sh_cfi_frame_initial_instructions): New function.
5064 (sh_regname_to_dw2regnum): Likewise.
5065 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
5067 (TARGET_USE_CFIPOP): Define.
5068 (tc_cfi_frame_initial_instructions): Likewise.
5069 (tc_regname_to_dw2regnum): Likewise.
5070 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
5071 * Makefile.am: Update dependencies.
5072 * Makefile.in: Regenerate.
5074 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5076 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
5077 * configure: Regenerate.
5079 2004-03-12 Bob Wilson <bob.wilson@acm.org>
5081 * read.c (s_leb128): Call md_flush_pending_output.
5083 2004-03-12 Michal Ludvig <mludvig@suse.cz>
5085 * config/tc-i386.c (output_insn): Handle PadLock instructions.
5086 * config/tc-i386.h (CpuPadLock): New define.
5087 (CpuUnknownFlags): Added CpuPadLock.
5089 2004-03-07 Andreas Schwab <schwab@suse.de>
5091 * doc/c-hppa.texi (HPPA Directives): Fix typo.
5093 2004-03-07 Richard Henderson <rth@redhat.com>
5095 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
5096 (cfi_finish): Likewise for fde.
5098 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
5100 * config/tc-ia64.c (md_assemble): Properly handle NULL
5102 (ia64_handle_align): Don't abort if failed to add a stop bit.
5104 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
5106 * Makefile.in: Regenerated.
5107 * aclocal.m4: Likewise.
5108 * configure: Likewise.
5109 * doc/Makefile.in: Likewise.
5111 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
5113 * config/tc-ia64.c (dot_align): New.
5114 (ia64_do_align): Make it static.
5115 (md_pseudo_table): Use "dot_align" for "align".
5116 (ia64_md_do_align): Don't set align_frag here.
5117 (ia64_handle_align): Add a stop bit to the previous bundle if
5120 * config/tc-ia64.h (ia64_do_align): Removed.
5122 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
5124 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
5125 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
5126 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
5127 the most general type or the user specifically requested it.
5128 (md_assemble): Add a new error message for when an instruction
5129 is understood, but is not allowed due to an -isa option.
5131 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
5133 * config/tc-ia64.c (align_frag): New.
5134 (md_assemble): Set the tc_frag_data field in align_frag for
5135 IA64_OPCODE_FIRST instructions.
5136 (ia64_md_do_align): Set align_frag.
5137 (ia64_handle_align): Add a stop bit if needed.
5139 * config/tc-ia64.h (TC_FRAG_TYPE): New.
5140 (TC_FRAG_INIT): New.
5142 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
5144 * config/tc-frv.c (fr400_audio): New variable.
5145 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
5146 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
5147 (target_implements_insn_p): New function.
5148 (md_assemble): Report an error if the processor doesn't implement
5151 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5153 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
5154 (md_parse_option): Ditto.
5155 (OPTION_NO_SPECIAL_M32R): Added.
5156 (md_show_usage): Document it.
5157 (enable_speial_m32r): Changed a default value from 0 to 1.
5158 * doc/c-m32r.texi: Document the -no-bitinst option.
5160 2004-02-27 Nick Clifton <nickc@redhat.com>
5162 * config/tc-sh.c (get_operand): Revert previous delta.
5163 (tc_gen_reloc): Check for an unknown reloc type before processing
5166 2004-02-27 Hannes Reinecke <hare@suse.de>
5168 * config/tc-s390.c (s390_insn): Correct range check for opcode in
5169 .insn pseudo operation.
5171 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
5173 * config/tc-sh.c (get_operand): In case of #Imm, check has been
5174 added for wrong syntax.
5176 2004-02-26 Eric Christopher <echristo@redhat.com>
5178 * config/tc-mips.c (mips_dwarf2_addr_size): New.
5179 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
5181 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
5183 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
5184 nibble types to assembler.
5186 2004-02-25 Fred Fish <fnf@redhat.com>
5188 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
5190 2004-02-20 James E Wilson <wilson@specifixinc.com>
5192 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
5194 (fixup_unw_records): New arg before_relax. Pass to slot_index.
5195 (ia64_estimate_size_before_relax): New.
5196 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
5197 (generate_unwind_image): Pass 1 to fixup_unw_records.
5198 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
5199 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
5201 2004-02-19 Jakub Jelinek <jakub@redhat.com>
5203 * stabs.c (generate_asm_file): Avoid warning about use of
5204 uninitialized variable.
5206 2004-02-18 David Mosberger <davidm@hpl.hp.com>
5208 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
5209 body, and endp, allow unwind records which do not have a "t"
5210 (time/instruction) field.
5212 2004-02-17 Petko Manolov <petkan@nucleusys.com>
5214 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
5215 (do_mav_dspsc_2): Likewise.
5216 Fix accumulator registers move opcodes.
5218 2004-02-13 Hannes Reinecke <hare@suse.de>
5219 Jakub Jelinek <jakub@redhat.com>
5221 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
5223 2004-02-10 Steve Ellcey <sje@cup.hp.com>
5225 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
5226 (tc_frob_symbol): New macro definition.
5227 * config/tc-ia64.c (ia64_frob_symbol): New routine.
5229 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
5231 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
5234 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
5236 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
5237 (TC_CASE_SENSITIVE): ... this.
5238 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
5239 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
5241 2004-02-06 James E Wilson <wilson@specifixinc.com>
5243 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
5244 (generate_unwind_image): Re-add it here.
5246 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
5248 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
5249 * read.h (SKIP_WHITESPACE): Turn into an expression.
5250 * read.c (read_a_source_file): A pseudo is removed by having a
5253 2004-02-05 James E Wilson <wilson@specifixinc.com>
5255 * config/tc-ia64.c (output_endp): New.
5256 (count_bits): Delete.
5257 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
5258 endp unwind records.
5259 (fixup_unw_records): Handle endp unwind records. Delete code for
5260 shortening prologue regions not followed by a body record.
5261 (dot_endp): Call add_unwind_entry to emit endp unwind record.
5262 * config/tc-ia64.h (unw_record_type): Add endp.
5264 2004-02-03 James E Wilson <wilson@specifixinc.com>
5266 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
5267 fill padding bytes with zeroes.
5268 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
5269 sets unwind_record slot_number and slot_frag fields.
5271 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5273 * config/tc-mips.c (add_got_offset_hilo): New function.
5274 (macro): Use load_register() and add_got_offset_hilo() to load
5275 constants instead of hardcoding code sequences throughout.
5277 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
5279 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
5281 2004-01-26 Bernardo Innocenti <bernie@develer.com>
5283 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
5285 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
5286 of hard-coded test for TARGET_OS=elf.
5288 2004-01-24 Chris Demetriou <cgd@broadcom.com>
5290 * config/tc-mips.c (hilo_interlocks): Change definition
5291 so that MIPS32, MIPS64 and later ISAs are included, along with
5292 the already-included machines. Update comments.
5294 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
5296 * config/tc-arm.c (tc_gen_reloc): Improve error message for
5297 undefined local labels.
5299 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5301 * config/tc-mips.c (load_address, macro): Update comments about
5302 NewABI GP relaxation.
5304 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5306 * config/tc-mips.c (macro_build): Remove place and counter arguments.
5307 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
5308 (mips16_macro_build, macro_build_jalr): Remove counter argument.
5309 (set_at, load_register, load_address, move_register): Likewise.
5310 (load_got_offset, add_got_offset): Likewise.
5311 Update all calls and tidy accordingly.
5313 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5315 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
5316 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
5317 (RELAX_USE_SECOND): Bump to 0x10000.
5318 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
5319 (mips_macro_warning): New variable.
5320 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
5321 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
5322 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
5324 (append_insn): Update mips_macro_warning.sizes.
5325 (macro_start, macro_warning, macro_end): New functions.
5326 (macro_build): Don't emit warnings here.
5327 (macro_build_lui, md_estimate_size_before_relax): ...or here.
5328 (md_convert_frag): Check for cases where one macro alternative
5329 needs a warning and the other doesn't. Emit a warning if the
5330 longer sequence was chosen.
5332 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5334 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
5335 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
5336 the first sequence, the size of the second sequence, and a flag
5337 that says whether we should warn.
5338 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
5339 (RELAX_FIRST, RELAX_SECOND): New.
5340 (mips_relax): New variable.
5341 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
5342 (append_insn): Remove "place" argument. Use mips_relax.sequence
5343 rather than "place" to check whether we're expanding the second
5344 alternative of a relaxable macro. Remove redundant check for
5345 branch relaxation. If generating a normal insn, and there
5346 is not enough room in the current frag, call relax_close_frag()
5347 to close it. Update mips_relax.sizes[]. Emit fixups for the
5348 second version of a relaxable macro. Record the first relaxable
5349 fixup in mips_relax. Remove tc_gen_reloc workaround.
5350 (macro_build): Remove all uses of "place". Use mips_relax.sequence
5351 in the same way as in append_insn.
5352 (mips16_macro_build): Remove "place" argument.
5353 (macro_build_lui): As for macro_build. Don't drop the add_symbol
5354 when generating the second version of a relaxable macro.
5355 (load_got_offset, add_got_offset): New functions.
5356 (load_address, macro): Use new relaxation machinery. Remove
5357 tc_gen_reloc workarounds.
5358 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
5359 version of a relaxable macro is needed. Return -RELAX_SECOND if the
5360 first version is needed.
5361 (tc_gen_reloc): Remove relaxation handling.
5362 (md_convert_frag): Go through the fixups for a relaxable macro and
5363 mark those that belong to the unneeded alternative as done. If the
5364 second alternative is needed, adjust the fixup addresses to account
5365 for the deleted first alternative.
5367 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5369 * frags.h (frag_room): Declare.
5370 * frags.c (frag_room): New function.
5371 * doc/internals.texi: Document it.
5373 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5375 * config/tc-mips.c (append_insn): Don't do r3900 interlock
5376 optimization for -mtune=r3900, as this will break on other CPUs.
5378 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
5380 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
5381 be relaxed, use fixup.
5382 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
5384 2004-01-19 Jakub Jelinek <jakub@redhat.com>
5386 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
5389 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5391 * config/tc-mips.c (append_insn): Properly detect variant frags
5392 that preclude swapping of relaxed branches. Correctly swap
5393 instructions between frags when dealing with relaxed branches.
5395 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5397 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
5399 * aclocal.m4: Regenerate.
5400 * configure: Regenerate.
5402 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
5404 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
5407 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
5409 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
5410 reloc, reserve space for the delay slot as well as the jalr itself.
5412 2004-01-09 Paul Brook <paul@codesourcery.com>
5414 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
5415 (do_vfp_sp2_from_reg2): New function.
5417 (do_vfp_dp_from_reg2): Check return values properly.
5419 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
5421 * config/tc-mips.c (warn_nops): Remove static variable.
5422 (macro): Remove test of warn_nops.
5423 (md_shortops): Remove 'n'.
5424 (md_parse_option): Remove 'n' case.
5425 (md_show_usage): Remove -n.
5426 * doc/as.texinfo (Overview): Remove MIPS -n option.
5427 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
5428 * NEWS: Mention removal of MIPS -n option.
5430 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
5431 (cop_interlocks): Check ISA level.
5432 (cop_mem_interlocks): Define.
5433 (reg_needs_delay): Check cop_interlocks rather than
5434 ISA_HAS_COPROC_DELAYS.
5435 (append_insn): Likewise. Use cop_mem_interlocks rather than
5436 directly checking mips_opts.isa.
5437 (mips_emit_delays): Likewise.
5439 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
5441 * config/tc-ia64.c (unwind): Move next_slot_number and
5442 next_slot_frag to ...
5443 (unw_rec_list): Here.
5444 (free_list_records): Removed.
5445 (output_unw_records): Likewise.
5446 (generate_unwind_image): Make it void.
5447 (alloc_record): Initialize next_slot_number and next_slot_frag.
5448 (slot_index): Take .org, .space and .align into account.
5449 (fixup_unw_records): Don't set slot_number to 0. Use
5450 list->next_slot_number and list->next_slot_frag instead of
5451 unwind.next_slot_number and unwind.next_slot_frag.
5452 (ia64_convert_frag): New.
5453 (generate_unwind_image): Generate a rs_machine_dependent frag
5455 (emit_one_bundle): Use list->next_slot_number and
5456 list->next_slot_frag instead of unwind.next_slot_number and
5457 unwind.next_slot_frag.
5459 * config/tc-ia64.h (md_convert_frag): Defined as
5461 (md_estimate_size_before_relax): Defined as (f)->fr_var.
5463 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
5465 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
5466 * config/tc-frv.h (md_apply_fix3): Don't define.
5467 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
5469 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
5470 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5471 * config/tc-frv.c (line_separator_chars): Add `!'.
5472 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
5473 * config/tc-frv.c (md_assemble): Clear insn upfront.
5474 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
5475 * config/tc-frv.c (OPTION_FDPIC): New macro.
5476 (md_longopts): Add mfdpic.
5477 (md_parse_option): Handle it.
5478 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
5479 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
5480 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
5481 (frv_pic_ptr): Parse funcdesc.
5483 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5485 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
5486 gasver.texi. Remove duplicate symbol definitions for texi2pod.
5488 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5490 * Makefile.am (Makefile): Move the dependency on
5491 $(BFDDIR)/configure.in to...
5492 (CONFIG_STATUS_DEPENDENCIES): ... here.
5493 (AUTOMAKE_OPTIONS): Require automake 1.8.
5494 * Makefile.in: Regenerate.
5495 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
5496 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
5497 $(BFDDIR)/configure.in here as well.
5498 * doc/Makefile.in: Regenerate.
5500 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5502 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
5503 * Makefile.in: Regenerate.
5504 * aclocal.m4: Regenerate.
5505 * doc/Makefile.am (install, install-info): Remove.
5506 (install-data-local): A new hook for install-info.
5507 (AUTOMAKE_OPTIONS): Require automake 1.8.
5508 * doc/Makefile.in: Regenerate.
5510 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
5512 * doc/c-sh.texi: Update description about floating point behavior
5515 2004-01-02 Bernardo Innocenti <bernie@develer.com>
5517 * configure.in: Add m68k-uClinux target.
5518 * configure: Regenerate.
5520 For older changes see ChangeLog-0203
5526 version-control: never