1 2005-09-30 Bob Wilson <bob.wilson@acm.org>
3 * config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.
5 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
7 * Makefile.am: Run "make dep-am".
8 * Makefile.in: Regenerated.
9 * aclocal.m4: Likewise.
11 2005-09-30 Mark Mitchell <mark@codesourcery.com>
13 * as.c (main): Use expandargv.
15 2005-09-30 Jan Beulich <jbeulich@novell.com>
17 * config/tc-tic4x.c (tic4x_set): Advance input_line_pointer past
20 2005-09-30 Catherine Moore <clm@cm00re.com>
22 * Makefile.am: Bfin support.
23 * Makefile.in: Regenerated.
24 * aclocal.m4: Regenerated.
25 * configure: Regenerated.
26 * configure.in: Bfin support.
27 * configure.tgt: Bfin support.
28 * config/bfin-aux.h: New file.
29 * config/bfin-defs.h: New file.
30 * config/bfin-lex.l: New file.
31 * config/bfin-parse.y: New file.
32 * config/tc-bfin.c: New file.
33 * config/tc-bfin.h: New file.
34 * doc/Makefile.am: Recognize c-bfin.texi.
35 * doc/Makefile.in: Regenerated.
36 * doc/all.texi: Bfin support.
37 * doc/as.texinfo: Likewise.
38 * doc/c-bfin.texi: Document bfin-specific syntax and
41 2005-09-30 Paul Brook <paul@codesourcery.com>
43 * config/tc-arm.c (opcode_tag): Add OT_cinfix3_legacy.
44 (opcode_lookup): Handle OT_cinfix3_legacy. Revert earlier change for
45 normal infix conditions.
46 (C3E): Include Thumb-2 definition.
48 (insns): Use them for legacy mnemonics.
50 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
52 * asintl.h: Prevent the inclusion of <libintl.h> from the Solaris
53 version of <locale.h> when ENABLE_NLS is not defined.
55 2005-09-29 Jan Beulich <jbeulich@novell.com>
57 * config/tc-ia64.c (parse_operands): Always parse first operand of
60 2005-09-29 Arnold Metselaar <arnold.metselaar@planet.nl>
61 Alan Modra <amodra@bigpond.net.au>
63 * app.c (do_scrub_chars): Match open and close quote of strings.
64 Remove redundant EOF test in case 7.
66 2005-09-28 Jan Beulich <jbeulich@novell.com>
68 * config/tc-i386.c (reloc): Disable signedness check for 4-byte
69 relocations in 16- and 32-bit modes.
70 (i386_displacement): Make pc-relative branch handling dependent
71 upon operand (rather than address) size.
73 2005-09-28 Jan Beulich <jbeulich@novell.com>
75 * dw2gencfi.c (dot_cfi): Call ignore_rest_of_line when not fully
77 (dot_cfi_startproc): Likewise.
78 (dot_cfi_endproc): Likewise. Also check no extra input was given.
79 (dot_cfi_escape): Likewise.
81 2005-09-28 Jan Beulich <jbeulich@novell.com>
83 * config/tc-i386.h (x86_cons_fix_new): Declare unconditionally.
84 (TC_CONS_FIX_NEW): Define unconditionally.
85 (x86_pe_cons_fix_new): Remove.
86 * config/tc-i386.c (signed_cons): New.
87 (md_pseudo_table): Add slong.
88 (x86_cons_fix_new): Declare unconditionally.
89 (x86_pe_cons_fix_new): Merge into x86_cons_fix_new.
90 (tc_gen_reloc): Also consider BFD_RELOC_X86_64_32S for gotpc
93 2005-09-28 Arnold Metselaar <arnold.metselaar@planet.nl>
95 * app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for full
96 buffer after copying string.
98 2005-09-27 Paul Brook <paul@codesourcery.com>
100 * config/arm.c (arm_cpus): Add more cpu names.
101 * doc/c-arm.texi: Document them.
103 2005-09-21 Alan Modra <amodra@bigpond.net.au>
105 * read.c (pseudo_set): Don't set undefined symbols to expr_section.
107 2005-09-20 Richard Henderson <rth@redhat.com>
109 * dwarf2dbg.c (process_entries): Fix uninitialized variable warning.
111 2005-09-20 Richard Henderson <rth@redhat.com>
113 * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofs
115 (dwarf2_loc_mark_labels): New.
116 (dwarf2_gen_line_info_1): Split out of ...
117 (dwarf2_gen_line_info): ... here. Create the temp symbol here.
118 (dwarf2_emit_label): New.
119 (dwarf2_directive_loc_mark_labels): New.
120 (out_set_addr): Take a symbol instead of frag+ofs.
121 (relax_inc_line_addr): Likewise.
122 (emit_inc_line_addr): Assert delta non-negative.
123 (process_entries): Remove dead code. Update to work with temp
124 symbols instead of frag+ofs.
125 * dwarf2dbg.h (dwarf2_directive_loc_mark_labels): Declare.
126 (dwarf2_emit_label, dwarf2_loc_mark_labels): Declare.
127 * config/obj-elf.c (elf_pseudo_tab): Add loc_mark_labels.
128 * config/obj-elf.h (obj_frob_label): New.
129 * config/tc-alpha.c (alpha_define_label): Call dwarf2_emit_label.
130 * config/tc-arm.c, config/tc-hppa.c, config/tc-m68k.c,
131 config/tc-mips.c, config/tc-ppc.c, config/tc-sh.c, config/tc-xtensa.c:
132 Similarly in the respective tc_frob_label implementation functions.
133 * config/tc-i386.c (md_pseudo_table): Move file and loc to
134 non-elf section; add loc_mark_labels.
135 * config/tc-ia64.c (struct label_fix): Add dw2_mark_labels.
136 (ia64_flush_insns): Check for marked labels; emit line entry if so.
137 (emit_one_bundle): Similarly.
138 (ia64_frob_label): Record marked labels.
139 * config/tc-m68hc11.h (tc_frob_label): Remove.
140 * config/tc-ms1.c (md_pseudo_table): Remove file and loc.
141 * config/tc-sh.h (tc_frob_label): Pass sym to sh_frob_label.
142 * config/tc-sh64.h (tc_frob_label): Likewise.
143 * doc/as.texinfo (LNS directives): Docuement .loc_mark_blocks.
145 2005-09-20 Alan Modra <amodra@bigpond.net.au>
147 * read.c (pseudo_set): Set segment of expression syms to expr_section.
149 2005-09-14 Jan Beulich <jbeulich@novell.com>
151 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Add selector
152 registers, floating point control and status words, and mxcsr as
153 well as (for 64-bit code) segment base registers and rflags.
155 2005-09-09 Dmitry Diky <diwil@spec.ru>
157 * config/tc-msp430.c (msp430_operands): Undo last changes. Instead...
158 (msp430_relax_frag): add a guard check to ensure that final fr_subtype
161 2005-09-08 Chao-ying Fu <fu@mips.com>
163 * doc/as.texinfo: Document -mdsp and -mno-dsp options.
164 * doc/c-mips.texi: Likewise, and document ".set dsp" and ".set nodsp"
167 2005-09-08 Paul Brook <paul@codesourcery.com>
169 * config/tc-arm.c (do_smi, do_t_smi): Rename ...
170 (do_smc, do_t_smc): ... to this.
171 (insns): Remane smi to smc.
172 (md_apply_fix, tc_gen_reloc): Rename BFD_RELOC_ARM_SMI to
175 2005-09-07 Richard Henderson <rth@redhat.com>
177 * dwarf2dbg.c (dwarf2_where): Set line->isa.
178 (dwarf2_set_isa): New.
179 (dwarf2_directive_loc): Rearrange to allow all options on one line.
180 * dwarf2dbg.h (dwarf2_set_isa): Declare.
181 * doc/as.texinfo: Update .loc documentation.
183 2005-09-07 Richard Henderson <rth@redhat.com>
185 * dwarf2dbg.c: Include safe-ctype.h.
186 (DWARF2_LINE_OPCODE_BASE): Bump to 13.
187 (current): Initialize.
188 (dwarf2_emit_insn): Clear DWARF2_FLAG_BASIC_BLOCK,
189 DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN.
190 (dwarf2_directive_file): Cope with invalid filename.
191 (dwarf2_directive_loc): Add handling for basic_block, prologue_end,
192 epilogue_begin, is_stmt, isa.
193 (emit_inc_line_addr): Move line_delta == 0, addr_delta == 0 special
195 (process_entries): Handle isa, DWARF2_FLAG_PROLOGUE_END,
196 and DWARF2_FLAG_EPILOGUE_BEGIN.
197 (out_debug_line): Emit sizes for DW_LNS_set_prologue_end,
198 DW_LNS_set_epilogue_begin, DW_LNS_set_isa.
199 * dwarf2dbg.h (DWARF2_FLAG_IS_STMT): Rename from DWARF2_FLAG_BEGIN_STMT.
200 (DWARF2_FLAG_BASIC_BLOCK): Rename from DWARF2_FLAG_BEGIN_BLOCK.
201 (DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN): New.
202 (struct dwarf2_line_info): Add isa member.
203 * doc/as.texinfo (LNS directives): New node.
205 2005-09-07 David Ung <davidu@mips.com>
207 * config/tc-mips.c (append_insn): Undo last change. Instead add
208 guard to suppress calling frag_grow if the current instruction is
209 one that allows a delay slot.
211 2005-09-06 Chao-ying Fu <fu@mips.com>
213 * config/tc-mips.c (mips_set_options): Add ase_mt for MT instructions.
214 (mips_opts): Add -1 to initialize ase_mt.
215 (file_ase_mt): New variable for -mmt.
216 (CPU_HAS_MT): New define.
217 (validate_mips_insn): Add supports for +t, +T, !, $, *, &, g operand
219 (mips_ip): Check ase_mt to enable MT instructions.
220 Handle !, $, *, &, +T, +t, g operand formats.
221 For "mftc1", "mfthc1", "cftc1", "mttc1", "mtthc1", "cttc1", we allow
223 (OPTION_MT, OPTION_NO_MT): New define.
224 (OPTION_COMPAT_ARCH_BASE): Change because of inserting MT define.
225 (md_parse_option): Parse OPTION_MT and OPTION_NO_MT.
226 (mips_after_parse_args): Set ase_mt based on CPU.
227 (s_mipsset): Handle ".set mt" and ".set nomt".
228 (mips_elf_final_processing): Remind of adding new flag for MT ASE.
229 (md_show_usage): Show usage of -mmt and -mno-mt.
230 * doc/as.texinfo: Document -mmt and -mno-mt options.
231 * doc/c-mips.texi: Likewise, and document ".set mt" and ".set nomt"
234 2005-09-06 Paul Brook <paul@codesourcery.com>
236 * config/tc-arm.c (arm_it): Add relax field.
237 (T16_32_TAB): Add addi, addis, add_pc, add_sp, dec_sp, inc_sp,
238 b, bcond, ldr_pc, ldr_pc2, ldr_sp, str_sp, subi, subis.
239 (do_t_add_sub, do_t_addr, do_t_branch, do_t_ldst,
240 do_t_mov_cmp): Allow relaxation.
241 (output_relax_insn): New function.
242 (put_thumb32_insn): New function.
243 (output_inst): Use new functions.
244 (md_assemble): Don't throw error on relaxable instructions.
245 (insns): Change "b" entry from TCE(...) to tCE(...).
246 (md_estimate_size_before_relax): Return 2.
247 (md_convert_frag, relax_immediate, relax_adr, relax_addsub,
248 relax_branch, arm_relax_frag): New functions.
249 (arm_force_relocation): Return 0 for Thumb-2 immediate operand
251 * config/tc-arm.h (md_convert_frag): Remove definition.
252 (md_relax_frag): Define.
253 (arm_relax_frag): Add prototype.
255 2005-09-02 Paul Brook <paul@codesourcery.com>
257 * config/tc-arm.c (do_rn_rd): Enforce SWP operand constraints.
259 2005-09-02 Paul Brook <paul@codesourcery.com>
261 * config/tc-arm.c (encode_arm_cp_address): Use
262 BFD_RELOC_ARM_T32_CP_OFF_IMM in thumb mode.
263 (do_iwmmxt_wldstbh): Use BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 in thumb
265 (md_assemble): Only allow coprocessor instructions when Thumb-2 is
268 (insns): Use them for coprocessor instructions.
269 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM.
270 (get_thumb32_insn): New function.
271 (put_thumb32_insn): New function.
272 (md_apply_fix): Handle BFD_RELOC_ARM_T32_CP_OFF_IMM and
273 BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
275 2005-09-02 Paul Brook <paul@codesourcery.com>
277 * config/tc-arm.c (opcode_lookup): Look for infix opcode when
278 incorrect suffix matches.
280 2005-09-01 David Ung <davidu@mips.com>
282 * config/tc-mips.c (append_insn): Correctly handle mips16 case
283 when the frags are different for the 2 instructions we want to
284 swap. If the lengths of the 2 instructions are not the same, we
285 won't do the swap but emit an nop.
287 2005-09-01 Dmitry Diky <diwil@spec.ru>
289 * config/tc-msp430.c (msp430_operands): Emit dwarf2_emit_insn()
290 as appropriate. Change frag_variant() to frag_var() for relaxes.
292 2005-08-29 Nick Clifton <nickc@redhat.com>
294 * write.c (generic_force_reloc): Do not call S_FORCE_RELOC if
297 2005-08-26 Jan Beulich <jbeulich@novell.com>
299 * config/tc-i386.c (intel_e09): Set JumpAbsolute when seeing a PTR-
300 qualified operand of a branch.
301 (intel_bracket_expr): Set JumpAbsolute here...
302 (intel_e11): ... rather than here.
304 2005-08-26 Christian Groessler <chris@groessler.org>
306 * configure.tgt: Set bfd_gas also for z8k cpu.
307 * config/tc-z8k.c (s_segm): Use bfd_set_arch_mach to set machine
309 (newfix): Adapt to bfd reloc types.
310 (build_bytes): Adapt to bfd reloc types. Ensure that enough space
311 is available in the current frag.
312 (md_convert_frag): Adapt function parameters.
313 (tc_gen_reloc): New function.
314 (md_section_align): Use bfd_get_section_alignment.
315 (md_apply_fix): Adapt to bfd reloc types. Fix handling of
316 BFD_RELOC_Z8K_IMM4L, BFD_RELOC_8, BFD_RELOC_16, and BFD_RELOC_32
318 * config/tc-z8k.h (TARGET_ARCH): Define.
319 (tc_fix_adjustable): Define.
321 2005-08-25 Chao-ying Fu <fu@mips.com>
323 * config/tc-mips.c (mips_set_options): Add ase_dsp for DSP instructions.
324 (mips_opts): Add -1 to initialize ase_dsp.
325 (file_ase_dsp): New variable for -mdsp.
326 (CPU_HAS_DSP): New define.
327 (validate_mips_insn): Add supports for 3, 4, 5, 6, 7, 8, 9, 0, ', :, @
329 (mips_ip): Add min_range and max_range for checking singed numbers.
330 Check ase_dsp to enable DSP instructions.
331 Handle 3, 4, 5, 6, 7, 8, 9, 0, ', :, @ operand formats.
332 (OPTION_DSP, OPTION_NO_DSP): New define.
333 (OPTION_COMPAT_ARCH_BASE): Change because of inserting DSP define.
334 (md_parse_option): Parse OPTION_DSP and OPTION_NO_DSP.
335 (mips_after_parse_args): Set ase_dsp based on CPU.
336 (s_mipsset): Handle ".set dsp" and ".set nodsp".
337 (mips_elf_final_processing): Remind of adding new flag for DSP ASE.
338 (md_show_usage): Show usage of -mdsp and -mno-dsp.
340 2005-08-23 David Ung <davidu@mips.com>
342 * config/tc-mips.c (mips_cpu_info_table): Add 5kf to the table of
345 2005-08-23 Alan Modra <amodra@bigpond.net.au>
348 * config/tc-ppc.c (ppc_symbol_chars): Add '%' and '['.
350 2005-08-23 Phil Edwards <phil@codesourcery.com>
352 * configure.tgt (*-*-vxworks): Match vxworks* instead.
354 2005-08-22 Jan Beulich <jbeulich@novell.com>
356 * config/tc-i386.c (object_64bit): New.
357 (i386_target_format): Initialize it.
358 (output_disp): Use object_64bit for relocation type determination.
359 (output_imm): Likewise.
360 (i386_validate_fix): Likewise.
361 (tc_gen_reloc): Likewise.
362 (lex_got): Likewise. Remove static mode_name. Change array size
363 of gotrel's rel field, and adjust its initializer. Adjust diagnostic.
364 (x86_cons): Use object_64bit for deciding whether quad fields can
367 2005-08-18 Christian Groessler <chris@groessler.org>
369 * config/tc-h8300.h: Remove TC_RELOC_MANGLE/tc_reloc_mangle.
370 * config/tc-mcore.h: Likewise.
371 * config/tc-z8k.h: Likewise.
372 * config/tc-z8k.c: Likewise.
373 * config/tc-sh.h: Remove TC_RELOC_MANGLE and
374 sh_coff_reloc_mangle declaration.
375 * config/tc-sh.c: (md_apply_fix): Fix comment for case
378 2005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
380 * config/tc-sh64.c (sh64_target_format): Check preset_target_arch
381 to confirm that no ISA is specified.
383 2005-08-18 Nick Clifton <nickc@redhat.com>
385 * write.c (relax_segment): Count the number of frags being
386 processed and use this to compute a maximum limit on the number of
387 iterations that will be allowed when attempting to relax the
390 2005-08-17 Danny Smith <dannysmith@users.sourceforge.net>
392 * config/obj-coff.c (obj_coff_weak): Set auxiliary record
393 of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
395 2005-08-16 Alan Modra <amodra@bigpond.net.au>
397 * config/tc-ppc.c (ppc_set_cpu): Don't select 64-bit based on
400 2005-08-15 Paul Brook <paul@codesourcery.com>
402 * config/tc-arm.c (do_t_mov_cmp): Fix encoding of i16-bit conditional
404 (do_t_mvn_tst, do_t_neg, do_t_shift): Ditto.
406 2005-08-15 Daniel Jacobowitz <dan@codesourcery.com>
408 * config/tc-ppc.c (parse_cpu): Add -me300 support.
409 (md_show_usage): Likewise.
410 * doc/c-ppc.texi (PowerPC-Opts): Document it.
412 2005-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
414 * config/tc-s390.c (md_parse_option): Add cpu type z9-109.
415 (md_gather_operands): Add support for optional operands.
417 2005-08-12 Dmitry Diky <diwil@spec.ru>
418 * config/tc-msp430.c (msp430_enable_relax): New flag.
419 (msp430_enable_polys): Likewise.
420 (OPTION_RELAX): New option.
421 (OPTION_POLYMORPHS): Likewise.
422 (md_longopts): New long options.
423 (md_show_usage): Updated.
424 (md_parse_option): Add new options handler.
425 (msp430_operands): Add check if polymorph insns are enabled.
426 (msp430_force_relocation_local): New function.
427 (md_apply_fix): Now delete relocs according to new flags combination.
428 (msp430_relax_frag): Convert long branches to short branches only if
429 flag msp430_enable_relax is set.
430 * config/tc-msp430.h (TC_FORCE_RELOCATION_LOCAL): Defined.
431 (msp430_force_relocation_local): Likewise.
432 * doc/c-msp430.texi: Describe new options.
434 2005-08-11 Ian Lance Taylor <ian@airs.com>
436 * Makefile.am ($(srcdir)/make-gas.com): Remove target.
437 (stamp-mk.com): Likewise.
438 (EXTRA_DIST): Remove make-gas.com from list.
439 (MOSTLYCLEANFILES): Remove stamp-mk.com from list.
440 * Makefile.in: Regenerate.
442 2005-08-11 Hans-Peter Nilsson <hp@axis.com>
444 * subsegs.c (subseg_change): Move declaration of seginfo to before
447 2005-08-11 Alan Modra <amodra@bigpond.net.au>
449 * README-vms: Delete.
450 * config-gas.com: Delete.
451 * makefile.vms: Delete.
452 * vmsconf.sh: Delete.
453 * config/atof-tahoe.c: Delete.
454 * config/m88k-opcode.h: Delete.
455 * config/obj-bout.c: Delete.
456 * config/obj-bout.h: Delete.
457 * config/obj-hp300.c: Delete.
458 * config/obj-hp300.h: Delete.
459 * config/tc-a29k.c: Delete.
460 * config/tc-a29k.h: Delete.
461 * config/tc-h8500.c: Delete.
462 * config/tc-h8500.h: Delete.
463 * config/tc-m88k.c: Delete.
464 * config/tc-m88k.h: Delete.
465 * config/tc-tahoe.c: Delete.
466 * config/tc-tahoe.h: Delete.
467 * config/tc-tic80.c: Delete.
468 * config/tc-tic80.h: Delete.
469 * config/tc-w65.c: Delete.
470 * config/tc-w65.h: Delete.
471 * config/te-aux.h: Delete.
472 * config/te-delt88.h: Delete.
473 * config/te-delta.h: Delete.
474 * config/te-dpx2.h: Delete.
475 * config/te-hp300.h: Delete.
476 * config/te-ic960.h: Delete.
477 * config/vms-a-conf.h: Delete.
478 * doc/c-a29k.texi: Delete.
479 * doc/c-h8500.texi: Delete.
480 * doc/c-m88k.texi: Delete.
481 * README: Remove obsolete examples, and list of supported targets.
482 * Makefile.am: Remove a29k, h8500, m88k, tahoe, tic80, w65,
483 bout and hp300 support.
484 (DEP_FLAGS): Don't define BFD_ASSEMBLER.
485 * configure.in: Remove --enable-bfd-assembler, need_bfd,
487 * configure.tgt: Remove a29k, h8300-coff, h8500-*, i960 non-elf,
488 m68k non bfd, m88k, or32-coff, tic80-*, vax non-bfd, w65k-*, *-nindy.
489 * as.c: Remove all non-BFD_ASSEMBLER code, support for above targets.
491 * dw2gencfi.c: Likewise.
492 * dwarf2dbg.c: Likewise.
494 * input-file.c: Likewise.
495 * listing.c: Likewise.
496 * literal.c: Likewise.
497 * messages.c: Likewise.
499 * output-file.c: Likewise.
502 * struc-symbol.h: Likewise.
503 * subsegs.c: Likewise.
504 * subsegs.h: Likewise.
505 * symbols.c: Likewise.
506 * symbols.h: Likewise.
510 * config/aout_gnu.h: Likewise.
511 * config/obj-aout.c: Likewise.
512 * config/obj-aout.h: Likewise.
513 * config/obj-coff.c: Likewise.
514 * config/obj-coff.h: Likewise.
515 * config/obj-evax.h: Likewise.
516 * config/obj-ieee.h: Likewise.
517 * config/tc-arm.c: Likewise.
518 * config/tc-arm.h: Likewise.
519 * config/tc-avr.c: Likewise.
520 * config/tc-avr.h: Likewise.
521 * config/tc-crx.h: Likewise.
522 * config/tc-d10v.h: Likewise.
523 * config/tc-d30v.h: Likewise.
524 * config/tc-dlx.h: Likewise.
525 * config/tc-fr30.h: Likewise.
526 * config/tc-frv.h: Likewise.
527 * config/tc-h8300.c: Likewise.
528 * config/tc-h8300.h: Likewise.
529 * config/tc-hppa.h: Likewise.
530 * config/tc-i370.h: Likewise.
531 * config/tc-i386.c: Likewise.
532 * config/tc-i386.h: Likewise.
533 * config/tc-i860.h: Likewise.
534 * config/tc-i960.c: Likewise.
535 * config/tc-i960.h: Likewise.
536 * config/tc-ip2k.h: Likewise.
537 * config/tc-iq2000.h: Likewise.
538 * config/tc-m32c.h: Likewise.
539 * config/tc-m32r.h: Likewise.
540 * config/tc-m68hc11.h: Likewise.
541 * config/tc-m68k.c: Likewise.
542 * config/tc-m68k.h: Likewise.
543 * config/tc-maxq.c: Likewise.
544 * config/tc-maxq.h: Likewise.
545 * config/tc-mcore.c: Likewise.
546 * config/tc-mcore.h: Likewise.
547 * config/tc-mn10200.h: Likewise.
548 * config/tc-mn10300.c: Likewise.
549 * config/tc-mn10300.h: Likewise.
550 * config/tc-ms1.h: Likewise.
551 * config/tc-msp430.c: Likewise.
552 * config/tc-msp430.h: Likewise.
553 * config/tc-ns32k.c: Likewise.
554 * config/tc-ns32k.h: Likewise.
555 * config/tc-openrisc.h: Likewise.
556 * config/tc-or32.c: Likewise.
557 * config/tc-or32.h: Likewise.
558 * config/tc-ppc.c: Likewise.
559 * config/tc-ppc.h: Likewise.
560 * config/tc-s390.h: Likewise.
561 * config/tc-sh.c: Likewise.
562 * config/tc-sh.h: Likewise.
563 * config/tc-sparc.c: Likewise.
564 * config/tc-tic30.c: Likewise.
565 * config/tc-tic30.h: Likewise.
566 * config/tc-tic4x.c: Likewise.
567 * config/tc-tic4x.h: Likewise.
568 * config/tc-tic54x.c: Likewise.
569 * config/tc-tic54x.h: Likewise.
570 * config/tc-v850.h: Likewise.
571 * config/tc-vax.c: Likewise.
572 * config/tc-vax.h: Likewise.
573 * config/tc-xstormy16.h: Likewise.
574 * config/tc-xtensa.h: Likewise.
575 * config/tc-z8k.c: Likewise.
576 * config/tc-z8k.h: Likewise.
577 * config/vms-a-conf.h
578 * doc/Makefile.am: Likewise.
579 * doc/all.texi: Likewise.
580 * doc/as.texinfo: Likewise.
581 * doc/internals.texi: Likewise.
582 * doc/Makefile.in: Regenerate.
583 * Makefile.in: Regenerate.
584 * configure: Regenerate.
585 * config.in: Regenerate.
586 * po/POTFILES.in: Regenerate.
588 2005-08-09 Nick Clifton <nickc@redhat.com>
591 * macro.c (getstring): Do not treat round parentheses exactly the
592 same as angle brackets - the parentheses need to be preserved and
593 passed on to the macro processing code.
595 2005-08-08 Nick Clifton <nickc@redhat.com>
597 * config/tc-msp430.c (MSP430_ISA_21): Define.
598 (mcu_types): Add entries for msp430x21xx variants.
600 2005-08-08 Nick Clifton <nickc@redhat.com>
603 * macro.c (getstring): Treat round parentheses in the same way as
605 (get_any_string): Likewise.
607 2005-08-07 H.J. Lu <hongjiu.lu@intel.com>
610 * as.c (parse_args): Handle -al=<FILE>.
612 2005-08-07 Nick Clifton <nickc@redhat.com>
614 * read.c (s_app_line): Accept a line number of 0 for compatibility
615 with gcc's output for assembler-with-cpp files.
617 2005-08-05 Paul Brook <paul@codesourcery.com>
619 * config/tc-arm.c (current_it_mask, current_cc): New variables.
620 (do_t_add_sub): Use correct encodings inside IT block.
621 (do_t_arit3c): Ditto.
622 (do_t_it): Simplify logic. Set current_it_mask and current_cc.
623 (md_assemble): Verify conditional suffixes agains IT blocks.
625 2005-08-05 Paul Brook <paul@codesourcery.com>
627 * config/tc-arm.c (encode_thumb32_immediate): Only accept shifted
629 (encode_thumb32_shifted_operand): Prohibit register shifts.
630 (encode_thumb32_addr_mode): Fix typo.
631 (insns): Correct thumb2 ldm and stm opcodes.
633 2005-08-02 Khem Raj <kraj@mvista.com>
635 * config/tc-arm.c (do_iwmmxt_wldstd): Correct the offset range for
636 WLDRD/WSTRD instruction.
638 2005-08-02 Alan Modra <amodra@bigpond.net.au>
640 * config/tc-ppc.c (md_apply_fix <ELF>): Don't warn on overflow
643 2005-07-29 Thiemo Seufer <ths@networkno.de>
645 * config/tc-mips.c (s_mips_globl): Allow multiple symbols per .globl.
647 2005-07-29 Paul Brook <paul@codesourcery.com>
649 * config/tc-arm.c (T16_32_TAB): Add "addr". Fix encoding of push and
651 (do_t_addr): Implement 32-bit variant.
652 (do_t_push_pop): Make some errors warnings. Handle single register
654 (insns): Use tCE for adr.
655 (md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_ADD_PC12.
656 (md_apply_fix): Ditto.
658 2005-07-29 Paul Brook <paul@codesourcery.com>
660 * config/tc-arm.c (parse_tb): New function.
661 (enum operand_parse_code): Add OP_TB.
662 (parse_operands): Handle OP_TB.
663 (do_t_add_sub_w, do_t_tb): New functions.
664 (insns): Add entries for addw, subw, tbb and tbh.
665 (md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12.
667 2005-07-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
669 * config/tc-m32r.c (m32r_check_fixup): Fixed X_op check.
671 2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
673 * config/tc-i386.c (handle_large_common): Declare only for ELF.
675 2005-07-27 Jan Beulich <jbeulich@novell.com>
677 * config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
679 (unw_p_record): Remove unused/redundant fields imask and rmask.
680 Combine spoff and pspoff into a union. Combine gr and br into a
681 union. Change type of grmask and brmask to unsigned char. Change type
682 of frmask to unsigned int.
683 (unw_x_record): Combine spoff, pspoff, and treg into a union.
684 * config/tc-ia64.c (unwind): New field 'pending_saves'.
685 (check_pending_save): New.
686 (alloc_record): Clear out entire record.
687 (output_psp_gr): Use renamed structure fields.
688 (output_psp_sprel): Likewise.
689 (output_rp_gr): Likewise.
690 (output_rp_br): Likewise.
691 (output_rp_psprel): Likewise.
692 (output_rp_sprel): Likewise.
693 (output_pfs_gr): Likewise.
694 (output_pfs_psprel): Likewise.
695 (output_pfs_sprel): Likewise.
696 (output_preds_gr): Likewise.
697 (output_preds_psprel): Likewise.
698 (output_preds_sprel): Likewise.
699 (output_spill_base): Likewise.
700 (output_unat_gr): Likewise.
701 (output_unat_psprel): Likewise.
702 (output_unat_sprel): Likewise.
703 (output_lc_gr): Likewise.
704 (output_lc_psprel): Likewise.
705 (output_lc_sprel): Likewise.
706 (output_fpsr_gr): Likewise.
707 (output_fpsr_psprel): Likewise.
708 (output_fpsr_sprel): Likewise.
709 (output_priunat_gr): Likewise.
710 (output_priunat_psprel): Likewise.
711 (output_priunat_sprel): Likewise.
712 (output_bsp_gr): Likewise.
713 (output_bsp_psprel): Likewise.
714 (output_bsp_sprel): Likewise.
715 (output_bspstore_gr): Likewise.
716 (output_bspstore_psprel): Likewise.
717 (output_bspstore_sprel): Likewise.
718 (output_rnat_gr): Likewise.
719 (output_rnat_psprel): Likewise.
720 (output_rnat_sprel): Likewise.
721 (output_spill_psprel): Likewise.
722 (output_spill_sprel): Likewise.
723 (output_spill_reg): Likewise.
724 (output_fr_mem): Likewise. Allocate one unwind record per set mask
726 (output_frgr_mem): Likewise.
727 (output_gr_mem): Likewise.
728 (output_br_mem): Likewise.
729 (output_gr_gr): Likewise.
730 (output_br_gr): Likewise.
731 (fixup_unw_records): Likewise.
732 (process_one_record): Use renamed structure fields. For gr_gr and
733 br_gr, collect mask from chain of records before output.
734 (in_prologue): Simplify and eliminate early returns. Call
736 (in_body): Simplify and eliminate early returns.
737 (dot_body): Call check_pending_save.
738 (md_assemble): Update comment. Deal with pending saves.
740 2005-07-26 Jan Beulich <jbeulich@novell.com>
742 * config/tc-i386.c (optimize_imm): Calculate candidate immediates
743 mask from guessed suffix, but mask out other immediate types only
744 if at least on candidate is valid for the insn.
746 2005-07-25 DJ Delorie <dj@redhat.com>
748 * config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
749 Support %mod() modifiers from opcodes.
750 * doc/c-m32c.texi (M32C-Modifiers): New section.
752 2005-07-25 Jan Hubicka <jh@suse.cz>
753 H.J. Lu <hongjiu.lu@intel.com>
755 * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
757 (elf_com_section_ptr): New.
758 (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
759 (elf_common_parse): Make it global. Use elf_com_section_ptr
760 instead of bfd_com_section_ptr.
761 (obj_elf_change_section): Handle x86-64 large bss sections.
763 * config/obj-elf.h (elf_com_section_ptr): New.
764 (elf_common_parse): New.
766 * config/tc-i386.c (handle_large_common): New.
767 (md_pseudo_table): Add "largecomm".
768 (x86_64_section_letter): New.
769 (x86_64_section_word): New.
771 * config/tc-i386.h (x86_64_section_word): New.
772 (x86_64_section_letter): New.
773 (md_elf_section_letter): New. Defined.
774 (md_elf_section_word): Likewise.
776 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
778 * configure.tgt: Remove i386-*-rtemself*.
779 Remove sparc-*-rtemself*.
781 2005-07-21 Ben Elliston <bje@gnu.org>
783 * config/tc-m68k.h: Remove TE_LYNX conditional code.
785 2005-07-21 Paul Brook <paul@codesourcery.com>
787 * config/tc-arm.c (encode_thumb32_addr_mode): Don't set
790 2005-07-20 Tavis Ormandy <taviso@gentoo.org>
792 * messages.c: Use vsnprintf instead of vsprintf.
794 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
796 * config/tc-m32r.c (tc_gen_reloc): Check BFD_RELOC_32_PCREL and
797 BFD_RELOC_16_PCREL to Support R_M32R_REL32.
799 2005-07-18 Nick Clifton <nickc@redhat.com>
801 * configure.tgt: Restore alpha ordering to list of arches.
803 2005-07-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
805 * tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
807 2005-07-18 Jan Beulich <jbeulich@novell.com>
809 * config/tc-i386.c (md_begin): Use IS_ELF.
810 (tc_i386_fix_adjustable): Likewise.
811 (md_estimate_size_before_relax): Likewise.
812 (md_apply_fix): Likewise.
813 (i386_target_format): Likewise.
814 (lex_got): Define to NULL when not ELF or when LEX_AT. Check IS_ELF.
815 (i386_immediate): Remove #ifdef LEX_AT.
816 (i386_displacement): Likewise.
817 * config/tc-i386.h (x86_cons): Prototype only when ELF and when not
820 2005-07-18 Jan Beulich <jbeulich@novell.com>
822 * config/tc-i386.c (reloc): Convert to ISO C90. Change first
823 parameter to unsigned. Parameter sign now is tristate - zero/
824 positive mean unsigned/signed, negative means signedness doesn't
825 matter. Check field size,
826 signedness, and pcrel-ness are in agreement between relocated field
827 and relocation type. Adjust diagnostics.
828 (optimize_imm): And type mask of operand instead of overwriting it.
829 (lex_got): Convert to ISO C90. Add third parameter. Add new field to
830 local structure and initialize gotrel accordingly. Pass caller as
831 mask of types that the operator can match.
832 (x86_cons_fix_new): Let reloc know that signedness of relocation
834 (x86_pe_cons_fix_new): Likewise.
835 (x86_cons): Pass additional argument to lex_got.
836 (i386_immediate): New local variable 'types'. Pass its address as
837 additional argument to lex_got. Mask out operand types not supported
839 (i386_displacement): Likewise. Set bigdisp to all types supported in
840 64-bit mode, combining the previously split initialization.
842 2005-07-18 Jan Beulich <jbeulich@novell.com>
844 * config/tc-i386.c (parse_insn): Reject prefix if unavailable in
847 2005-07-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
849 * config/tc-hppa.c (pa_ip): Search entire mnemonic before considering
852 2005-07-16 Alan Modra <amodra@bigpond.net.au>
854 * Makefile.am: Run "make dep-am".
855 * Makefile.in: Regenerate.
857 2007-07-15 H.J. Lu <hongjiu.lu@intel.com>
859 * gas/config/tc-i386.h (CpuVMX): New.
860 (CpuUnknownFlags): Add CpuVMX.
862 2005-07-14 Jim Blandy <jimb@redhat.com>
864 Add support for the Renesas M32C.
865 * Makefile.am (CPU_TYPES): List m32c.
866 (TARGET_CPU_CFILES): List config/tc-m32c.c.
867 (TARGET_CPU_HFILES): List config/tc-m32c.h.
868 * configure.in: Add case for m32c.
869 * configure.tgt: Add cases for m32c and m32c-*-elf.
870 * configure: Regenerated.
871 * config/tc-m32c.c, config/tc-m32c.h: New files.
872 * doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
873 * doc/Makefile.in: Regenerated.
874 * doc/all.texi: Set M32C.
875 * doc/as.texinfo: Add text for the M32C-specific options and line
876 comment characters, and refer to c-m32c.texi.
877 * doc/c-m32c.texi: New file.
879 2005-07-14 Nick Clifton <nickc@redhat.com>
882 * config/tc-crx.c (reset_vars): Use strncpy to prevent overflowing
883 the ins_parse buffer.
885 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
887 * configure.tgt: Remove a29k-*-rtems*, hppa*-*-rtems*,i386-go32-rtems*,
888 i386-*-rtemscoff*, sparc-*-rtemsaout*.
890 2005-07-10 H.J. Lu <hongjiu.lu@intel.com>
892 * config/tc-i386.c (optimize_disp): Optimize signed 32bit
895 2005-07-08 Ben Elliston <bje@au.ibm.com>
897 * frags.h: Remove ANSI_PROTOTYPES conditional code.
898 * config/obj-elf.h: Likewise.
899 * config/tc-h8300.h: Likewise.
900 * config/tc-h8500.h: Likewise.
901 * config/tc-i370.h: Likewise.
902 * config/tc-i386.h: Likewise.
903 * config/tc-m68hc11.h: Likewise.
904 * config/tc-m68k.h: Likewise.
905 * config/tc-ppc.h: Likewise.
906 * config/tc-s390.h: Likewise.
907 * config/tc-sh.h: Likewise.
908 * config/tc-sparc.h: Likewise.
909 * config/tc-tic30.c: Likewise.
910 * config/tc-w65.h: Likewise.
911 * config/tc-xtensa.h: Likewise.
913 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
916 * config/tc-cris.h (MD_APPLY_SYM_VALUE): Define.
918 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
920 * config/tc-tic30.c (debug): Add format attribute. Fix format
923 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
925 * config/tc-i386.c (cpu_arch): Add sse3.
927 * config/tc-i386.h (CpuSSE3): Renamed from ...
928 (CpuPNI): This. Defined as CpuSSE3.
930 * doc/c-i386.texi: Document .sse3.
932 2005-07-06 Jan Beulich <jbeulich@novell.com>
934 * config/tc-ia64.c (nop): Use zero for L-unit pseudo-nop.
936 2005-07-05 Nick Clifton <nickc@redhat.com>
938 * config/tc-pdp11.c (md_apply_fix): Cast first argument to
939 md_chars_to_numbers to an unsigned pointer in order to avoid a
940 compile time warning.
942 2005-07-05 Paul Brook <paul@codesourcery.com>
944 * config/tc-ppc.c (ppc_target_format): Add VxWorks.
946 2005-07-05 Aldy Hernandez <aldyh@redhat.com>
948 * config/tc-ms1.c: New.
949 * config/tc-ms1.h: New.
950 * testsuite/gas/ms1/allinsn.d: New.
951 * testsuite/gas/ms1/allinsn.s: New.
952 * testsuite/gas/ms1/badinsn.s: New.
953 * testsuite/gas/ms1/badinsn1.s: New.
954 * testsuite/gas/ms1/badoffsethigh.s: New.
955 * testsuite/gas/ms1/badoffsetlow.s: New.
956 * testsuite/gas/ms1/badorder.s: New.
957 * testsuite/gas/ms1/badreg.s: New.
958 * testsuite/gas/ms1/badsignedimmhigh.s: New.
959 * testsuite/gas/ms1/badsignedimmlow.s: New.
960 * testsuite/gas/ms1/badsyntax.s: New.
961 * testsuite/gas/ms1/badsyntax1.s: New.
962 * testsuite/gas/ms1/badunsignedimmhigh.s: New.
963 * testsuite/gas/ms1/badunsignedimmlow.s: New.
964 * testsuite/gas/ms1/errors.exp: New.
965 * testsuite/gas/ms1/ldst.s: New.
966 * testsuite/gas/ms1/misc.d: New.
967 * testsuite/gas/ms1/misc.s: New.
968 * testsuite/gas/ms1/ms1-16-003.d: New.
969 * testsuite/gas/ms1/ms1-16-003.s: New.
970 * testsuite/gas/ms1/ms1.exp: New.
971 * testsuite/gas/ms1/msys.d: New.
972 * testsuite/gas/ms1/msys.s: New.
973 * testsuite/gas/ms1/relocs.d: New.
974 * testsuite/gas/ms1/relocs.exp: New.
975 * testsuite/gas/ms1/relocs1.s: New.
976 * testsuite/gas/ms1/relocs2.s: New.
978 2005-07-05 Jan Beulich <jbeulich@novell.com>
980 * config/tc-i386.h (CpuSVME): New.
981 (CpuUnknownFlags): Include CpuSVME.
982 * config/tc-i386.c (cpu_arch): Add .pacifica and .svme. Add opteron
983 as alias of sledgehammer.
984 (md_assemble): Include invlpga in the check for insns with two source
986 (process_operands): Include SVME insns in the check for ignored
987 segment overrides. Adjust diagnostic.
988 (i386_index_check): Special-case SVME insns with memory operands.
990 2005-07-04 Khem Raj <kraj@mvista.com>
991 Nick Clifton <nickc@redhat.com>
993 * tc-arm.c (struct arm_it): Make operands.imm signed to match its
994 use an immediate value.
995 (parse_vfp_reg_list): Make the 2nd parameter an unsigned pointer
996 since the register field of the operands structure is unsigned.
997 (s_arm_unwind_save_vfp): Make "reg" unsigned.
998 (parse_operands): Make the 2ns parameter an unsigned pointer to
1000 (do_ldrd): When using the imm field of the operands structure as a
1001 second register field, treat it as unsigned.
1003 2005-07-04 Alan Modra <amodra@bigpond.net.au>
1006 * config/obj-elf.c (obj_elf_change_section): Use backend
1009 2005-07-01 Jan Beulich <jbeulich@novell.com>
1011 * config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
1012 (output_spill_psprel, output_spill_psprel_p): Combine.
1013 (output_spill_sprel, output_spill_sprel_p): Combine.
1014 (output_spill_reg, output_spill_regp_p): Combine.
1015 (process_one_record): Handle psp_psprel.
1016 (parse_predicate_and_operand): New.
1017 (convert_expr_to_ab_reg): Two new parameters. Return void. Always
1018 initialize output values. Emit diagnostic case here.
1019 (convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
1020 (add_unwind_entry): New second parameter. Allow first parameter to
1021 be NULL. Parse optional tag, emit warning about further support for
1022 it otherwise being missing. Check end-of-line when requested.
1023 (dot_fframe): Clear operand when wrong. Allow tag.
1024 (dot_vframe): Likewise.
1025 (dot_vframesp): Likewise. Rename parameter, issue warning when psp
1027 (dot_vframepsp): Remove.
1028 (dot_altrp): Clear operand when wrong. Allow tag.
1029 (dot_save): Likewise. Let default case also go through
1031 (dot_savemem): Likewise.
1032 (dot_restore): Don't return when wrong operand. Allow tag.
1033 (dot_spillreg, dot_spillreg_p): Combine. Simplify by using
1034 parse_predicate_and_operand and the new arguments to
1035 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
1036 when wrong operand. Allow tag.
1037 (dot_restorereg, dot_restorereg_p): Likewise.
1038 (dot_spillmem, dot_spillmem_p): Likewise.
1039 (dot_saveg): Clear operand when wrong. Perform tighter operand
1041 (dot_savef): Likewise.
1042 (dot_saveb): Likewise.
1043 (dot_savegf): Likewise.
1044 (dot_spill): Remove end-of-line check. Combine. Simplify by using
1045 parse_predicate_and_operand and the new arguments to
1046 convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
1047 when wrong operand. Allow tag.
1049 (dot_label_state): Don't return when wrong operand.
1050 (dot_copy_state): Likewise.
1051 (dot_unwabi): Likewise. Check if in prologue.
1052 (dot_body): Don't call demand_empty_rest_of_line.
1053 (dot_prologue): Type of mask and grsave is unsigned. Perform tighter
1055 (md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
1056 use dot_spillreg for .spillreg.p. Also use dot_spillmem for
1057 .spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
1058 (parse_operand): New second parameter. Don't deal with '}' here
1059 anymore. Don't advance past end-of-line.
1060 (parse_operands): Pass second argument to parse_operand.
1061 (ia64_start_line): Prevent out-of-bounds access through
1062 input_line_pointer. Deal with '}' here.
1063 (ia64_unrecognized_line): Don't deal with '}' here.
1064 (dot_alias): Use ignore_rest_of_line not its deprecated alias
1065 discard_rest_of_line.
1067 2005-06-30 Zack Weinberg <zack@codesourcery.com>
1069 * config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
1070 (encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
1071 (do_t_branch, insns [b, bl]): Don't encode pipeline offset.
1072 (do_branch): Always set inst.reloc.pc_rel.
1073 (s_arm_elf_cons): Disallow use of (plt) suffix.
1074 (do_adrl): Adjust X_add_number unconditionally.
1075 (md_pcrel_from): Rename md_pcrel_from_section, add second segT
1076 argument. Handle all adjustment for pipeline offset here.
1077 (md_apply_fix): No need to undo work of md_pcrel_from. No
1078 need to extract pre-encoded pipeline adjustments from various
1079 branch instructions. Generally, assume instructions are already
1080 all-bits-zero in the field being fixed up. Remove all OBJ_ELF
1081 special cases. Handle BFD_RELOC_ARM_PLT32 like
1082 BFD_RELOC_ARM_PCREL_BRANCH.
1083 (tc_gen_reloc): Remove OBJ_ELF special case.
1084 * config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
1086 2005-06-30 Ben Elliston <bje@gnu.org>
1088 * Makefile.am (check-DEJAGNU): Don't search for expect.
1089 * Makefile.in: Regenerate.
1091 2005-06-30 Ben Elliston <bje@gnu.org>
1093 * Makefile.am (EXPECT): Set to expect.
1094 (RUNTEST): Likewise, set to runtest.
1095 * Makefile.in: Regenerate.
1097 2005-06-23 Ben Elliston <bje@gnu.org>
1099 * config/m68k-parse.h: Use ISO C90.
1100 * config/m68k-parse.y: Likewise.
1101 * config/tc-m68k.h: Likewise.
1103 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1106 * config/tc-i386.c (md_assemble): Don't call optimize_disp on
1108 (optimize_disp): Optimize only if possible. Don't use 64bit
1109 displacement on non-constants and do same on constants if
1112 2005-06-17 Jan Beulich <jbeulich@novell.com>
1114 * config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
1115 (tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
1116 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
1117 (output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
1118 and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
1120 (output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
1121 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
1122 (tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
1123 Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
1124 BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
1125 BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
1126 convert 8-byte pc-relative relocations.
1127 (lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
1128 (i386_validate_fix): Likewise.
1129 (x86_cons): Also handle quad values in 64-bit mode.
1130 (i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
1131 (md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
1132 BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
1133 to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
1135 2005-06-13 Zack Weinberg <zack@codesourcery.com>
1137 * config/tc-arm.c (find_real_start): Check S_IS_LOCAL on
1138 symbolP as well as for names with a leading dot. Use ACONCAT.
1139 (md_apply_fix): For branch relocations, only replace value
1140 with fixP->fx_offset (under #ifdef OBJ_ELF) when !fixP->fx_done.
1141 (arm_force_relocation): Remove #ifdef OBJ_ELF case.
1142 * config/tc-arm.h (LOCAL_LABEL): Remove unnecessary parentheses.
1143 (LOCAL_LABEL_PREFIX): Don't define.
1145 2005-06-10 Alan Modra <amodra@bigpond.net.au>
1147 * config/tc-hppa.c (pa_block): Allocate just one byte for the
1150 2005-06-08 James E Wilson <wilson@specifixinc.com>
1153 * config/tc-ia64.c (slot_index): Revert last change. If first_frag
1154 is NULL, then emit a warning, and return the current index.
1156 2005-06-08 Tomas Hurka <tom@hukatronic.cz>
1159 * config/tc-m68k.c (m68k_ip): Test for insn compatiblity using a
1160 temporary copy of the operands array so that changes can be safely
1161 backed out if the insn does not match.
1162 (m68k_compare_opcode): Shortcut the test when the parameters are
1163 the same. Return 1 if the names match but the second opcode is
1164 further on in the array than the first.
1166 2005-06-08 Nick Clifton <nickc@redhat.com>
1169 * config/tc-ia64.c (slot_index): Check for a NULL first_frag.
1171 2005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1173 * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.
1175 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
1176 Michael Snyder <msnyder@redhat.com>
1177 Stan Cox <scox@redhat.com>
1179 * configure.in: Add ms1 case.
1181 * configure: Regenerate.
1183 * configure.tgt: Add ms1 case.
1185 2005-06-07 Bob Wilson <bob.wilson@acm.org>
1187 * config/tc-xtensa.h (resource_table): Change units to unsigned chars.
1188 * config/tc-xtensa.c (new_resource_table): Likewise.
1189 (resize_resource_table): Likewise.
1190 (release_resources): Fix assertion for unsigned values.
1192 2005-06-07 Zack Weinberg <zack@codesourcery.com>
1194 * cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
1195 * config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
1196 * config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
1197 * config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
1198 * config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
1199 * config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
1200 * config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
1201 * config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
1202 * config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
1203 * config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
1204 * config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
1205 * config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
1206 * config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
1207 * config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
1208 * config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
1209 * config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
1210 * config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
1211 * config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
1212 * config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
1213 * config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
1214 * config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
1215 * config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
1216 * config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
1217 * config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
1218 * config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
1219 * config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
1220 * config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
1221 * config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
1222 * config/tc-xtensa.c, config/tc-z8k.c:
1223 Replace all instances of the string "_apply_fix3" with
1225 * po/POTFILES.in, po/gas.pot: Regenerate.
1227 2005-06-08 Alan Modra <amodra@bigpond.net.au>
1229 * Makefile.am: Run "make dep-am".
1230 (POTFILES): Remove GAS_CFILES.
1231 * Makefile.in: Regenerate.
1233 2005-06-07 David Ung <davidu@mips.com>
1235 * config/tc-mips.c (mips_cpu_info_table): Add cpu names m4k, 24k,
1236 24kc, 24kf and 24kfx under MIPS32 release 2.
1238 2005-06-04 Nick Clifton <nickc@redhat.com>
1240 * config/tc-arm.c (CE, C3, CM, UE, UF): Redefine without reference
1241 to their Thumb-enabled equivalents.
1243 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
1245 * config/tc-mips.c (load_register): Add leading "0x" to the
1246 output of sprintf_vma().
1249 2005-06-01 Nick Clifton <nickc@redhat.com>
1251 * config/tc-arm.c (TxCE, TxC3, TxCM, TUE, TUF): Remove redundant
1252 test for the presence of thumb version of the parsing functions
1253 since they must always exist and the test generates a compile time
1256 2005-05-31 Richard Henderson <rth@redhat.com>
1258 * config/tc-alpha.c (O_lituse_jsrdirect): New.
1259 (alpha_reloc_op): Add it.
1260 (debug_exp): Handle it.
1261 (DUMMY_RELOC_LITUSE_JSRDIRECT): New.
1262 (emit_insn): Handle it.
1263 * doc/c-alpha.texi (Alpha-Relocs): Document lituse_jsrdirect.
1265 2005-05-31 Christian Groessler <chris@groessler.org>
1267 * write.c (dump_section_relocs): Convert to ISO-C.
1268 (write_relocs): Avoid signed/unsigned and fprintf argument
1269 warnings in debug code.
1271 2005-05-26 Zack Weinberg <zack@codesourcery.com>
1273 * config/tc-arm.h (TC_FIX_TYPE): Change to int.
1274 (TC_INIT_FIX_DATA): Initialize to 0, not NULL.
1275 * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast.
1276 (md_apply_fix3): Delete fix_is_thumb variable; refer to
1277 fixP->tc_fix_data directly in the sole place it was used.
1278 Explicitly truncate value, *valP, fixP->fx_addnumber, and
1279 fixP->fx_offset to 32 bits, for consistent behavior between 32-
1282 2005-05-27 Jan Beulich <jbeulich@novell.com>
1284 * config/tc-ia64.c (struct proc_pending): New.
1285 (unwind): Replace proc_start with proc_pending.
1286 (unwind_diagnostic): Check unwind.proc_pending.sym.
1287 (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym.
1288 Check if previous proc not closed. Record all entry points.
1289 (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym.
1290 Set symbol sizes for entry points recorded in dot_proc. Check
1291 arguments for consistency with respective .proc's.
1292 (md_assemble): Replace unwind.proc_start with
1293 unwind.proc_pending.sym.
1295 2005-05-27 Jan Beulich <jbeulich@novell.com>
1297 * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr,
1298 and last_ptr. Check all in-use slots for first one with non-NULL
1299 unwind_record. Don't reload end_ptr before second update round.
1301 2005-05-26 James E Wilson <wilson@specifixinc.com>
1303 * config/tc-ia64.c (extra_goodness): Update comment.
1304 (md_begin): Add debugging code to print best_template table.
1306 2005-05-25 Jan Beulich <jbeulich@novell.com>
1308 * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX
1311 2005-05-25 Jan Beulich <jbeulich@novell.com>
1313 * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle
1314 BFD_RELOC_UNUSED when determining the width of the reloc.
1316 2005-05-25 Jan Beulich <jbeulich@novell.com>
1318 * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind
1321 2005-05-25 Jan Beulich <jbeulich@novell.com>
1323 * config/tc-ia64.c (dot_radix): Rewrite.
1325 2005-05-25 Jan Beulich <jbeulich@novell.com>
1327 * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
1329 (alloc_record): Remove references to next_slot_number and
1331 (emit_one_bundle): Likewise.
1333 2005-05-22 Nick Clifton <nickc@redhat.com>
1335 * config/tc-v850.c (md_apply_fix3): Pass the address of the
1336 message buffer when invoking the insert function.
1338 2005-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1340 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1
1341 only if an instruction match is found.
1343 2005-05-20 Bob Wilson <bob.wilson@acm.org>
1345 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtraction
1346 to addition in argument to xtensa_dwarf2_emit_insn.
1348 2005-05-19 Zack Weinberg <zack@codesourcery.com>
1350 * Makefile.am: Have 'all' depend on 'info'.
1351 * Makefile.in: Regenerate.
1353 2005-05-19 Alan Modra <amodra@bigpond.net.au>
1355 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.
1357 2005-05-19 Anton Blanchard <anton@samba.org>
1359 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".
1360 (md_show_usage): Document it.
1361 (ppc_setup_opcodes): Insert POWER5 mnemonics.
1362 * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
1364 2005-05-19 Jan Beulich <jbeulich@novell.com>
1366 * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind
1367 relocations in unwind section.
1369 2005-05-18 Nick Clifton <nickc@redhat.com>
1371 * config/tc-v850.c (md_apply_fix3): Only use the insertion routine
1372 if one exists. Ignore any error messages it may produce, just
1373 allow it to perform the insertion.
1375 2005-05-17 Zack Weinberg <zack@codesourcery.com>
1377 * hash.c (hash_lookup): Add len parameter. All callers changed.
1378 (hash_find_n): New interface.
1379 * hash.h: Prototype hash_find_n.
1380 * sb.c: Include as.h.
1381 (scrub_from_sb, sb_to_scrub, scrub_position): New statics.
1382 (sb_scrub_and_add_sb): New interface.
1383 * sb.h: Prototype sb_scrub_and_add_sb.
1384 * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
1386 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
1387 reference to BFD_RELOC_ARM_GOT12 which is never generated.
1388 * config/tc-arm.c: Rewrite, adding Thumb-2 support.
1390 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1392 * doc/Makefile.am (gasver.texi): Don't use $<.
1393 * doc/Makefile.in: Regenerated.
1395 2005-05-17 Nick Clifton <nickc@redhat.com>
1398 * symbols.c (resolve_symbol_value): Do not move symbols whose
1399 value expression has not been resolved or finalized into the
1400 absolute section as this will confuse other parts of the assembler
1401 into thinking that their value is zero.
1403 2005-05-17 Jan Beulich <jbeulich@novell.com>
1405 * read.c (_find_end_of_line): New.
1406 (find_end_of_line): New.
1407 (HANDLE_CONDITIONAL_ASSEMBLY): Use it.
1408 (read_a_source_file): Use it.
1411 (get_line_sb): Use it.
1412 (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line.
1413 (s_comm_internal): Likewise.
1415 (s_macro): Likewise.
1416 (s_ignore): Use ignore_rest_of_line.
1417 * read.h (find_end_of_line): Prototype.
1418 (discard_rest_of_line): Remove prototype. #define to
1419 ignore_rest_of_line.
1421 2005-05-17 Nick Clifton <nickc@redhat.com>
1423 * config/tc-v850,h (TC_FIX_TYPE): Define.
1424 (TC_INIT_FIX_TYPE): Define.
1425 * config/tc-v850.c (md_assemble): When creating a fix record the
1426 operand in the tc_fix_data field.
1427 (md_apply_fix3): When applying a resolved fix use the operand's
1428 insertion procedure to store the value, if the operand has been
1431 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1433 * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap
1435 * Makefile.in: Regenerated.
1437 2005-05-13 Sterling Augustine <sterling@tensilica.com>
1438 Bob Wilson <bob.wilson@acm.org>
1440 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify error
1442 (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional
1443 for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
1445 2005-05-11 Alan Modra <amodra@bigpond.net.au>
1447 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,
1448 BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
1450 2005-05-10 Michael Matz <matz@suse.de>
1452 * frags.c (frag_grow): Don't be too greedy in allocating memory.
1454 * config/tc-hppa.c (pa_block): Check arguments to .block[z].
1456 2005-05-10 Hans-Peter Nilsson <hp@bitrange.com>
1459 * config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly.
1460 Handle label-without-colon before ordinary dot-pseudo as an
1461 ordinary label. Don't leak memory for label-without-colon alone
1462 on a line. Don't mmixal-munge operands for dot-pseudos.
1464 2005-05-10 Jan Beulich <jbeulich@novell.com>
1466 * macro.c (get_any_string): Remove the two last parameters. Replace
1467 references to the former expand parameter by using macro_alternate.
1468 Simplify loop condition for checking for end-of-string.
1469 (get_string): Remove redunant call to sb_skip_white.
1470 (do_formals): Remove two last arguments to get_any_string.
1471 (macro_expand): Likewise.
1472 (expand_irp): Likewise.
1474 2005-05-10 Jan Beulich <jbeulich@novell.com>
1476 * read.c (s_macro): Move local variable 'local' to smaller scope.
1477 Call sb_kill on it when done.
1479 2005-05-09 Jan Beulich <jbeulich@novell.com>
1481 * config/tc-i386.c (optimize_disp): Discard displacement entirely
1482 when zero and not required by encoding constraints.
1484 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1487 * config/tc-sh64.c (sh64_fake_label): New.
1489 * config/tc-sh64.h (TC_FAKE_LABEL): New.
1491 * doc/internals.texi (TC_FAKE_LABEL): Document.
1493 * write.c (TC_FAKE_LABEL): New.
1494 (adjust_reloc_syms): Use it.
1495 (write_object_file): Likewise.
1497 2005-05-09 Jan Beulich <jbeulich@novell.com>
1499 * config/tc-i386.c (parse_insn): Disallow use of prefix separator
1500 and comma in Intel mode.
1502 2005-05-09 Jan Beulich <jbeulich@novell.com>
1504 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
1505 names to match ABI. Add more registers for 32-bit and 64-bit modes.
1506 Make name array static and const. Adjust lookup to account for NULL
1507 entries (standing for unused register numbers).
1509 2005-05-09 Jan Beulich <jbeulich@novell.com>
1511 * config/tc-i386.c (parse_insn): Consider all matching instructions
1512 when checking for string instruction after string-only prefix.
1514 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
1517 * config/tc-ia64.c (start_unwind_section): Properly check
1518 comdat group with SHF_GROUP.
1520 2005-05-06 Bob Wilson <bob.wilson@acm.org>
1522 * doc/c-xtensa.texi (Literal Directive): Spelling correction.
1524 2005-05-06 Bob Wilson <bob.wilson@acm.org>
1526 * config/tc-xtensa.c: Remove excess whitespace.
1527 * config/tc-xtensa.h: Likewise.
1528 * config/xtensa-istack.h: Likewise.
1529 * config/xtensa-relax.c: Likewise.
1530 * config/xtensa-relax.h: Likewise.
1532 2005-05-06 Nick Clifton <nickc@redhat.com>
1534 * sb.h: Fix formatting of comments.
1535 * sb.c: Fix formatting of comments.
1537 2005-05-06 Jan Beulich <jbeulich@novell.com>
1539 * sb.h (sb_add_buffer): Reintroduce.
1540 * sb.c (sb_add_buffer): Likewise.
1542 2005-05-06 Jan Beulich <jbeulich@novell.com>
1544 * macro.c (new_formal, del_formal): New.
1545 (do_formals): Use new_formal. Check for and parse qualifier. Warn if
1546 required argument has default value. Stop looking for more formal
1547 when there was a vararg one.
1548 (macro_expand_body): Use new_formal and del_formal.
1549 (macro_expand): Likewise. Initialize local variable err. Don't
1550 return immediately when encountering an error. Warn when keyword
1551 argument already had a value assigned. Eliminate duplicate clearing
1552 of argument value. When current positional argument matches parameter
1553 of vararg type, assign to it all the remaining arguments. Issue error
1554 when required parameter does not have value.
1555 (free_macro): Use del_formal.
1556 (expand_irp): Initialize formal type. Free buffers associated with
1557 formal prior to returning.
1558 * macro.h (struct formal_struct): Add new field 'type' with new
1559 enumeration type 'formal_type'.
1560 * doc/as.texinfo: Document macro parameter qualifiers.
1561 * NEWS: Mention new functionality.
1563 2005-05-06 Jan Beulich <jbeulich@novell.com>
1565 * cond.c (s_ifb): New.
1566 * read.c (potable): Add s_ifb as handler for .ifb and .ifnb.
1567 * read.h (s_ifb): Prototype.
1568 * doc/as.texinfo: Document .ifb and .ifnb.
1570 2005-05-05 Steve Ellcey <sje@cup.hp.com>
1572 * config/tc-ia64.c (MIN): Undef.
1574 2005-05-05 Paul Brook <paul@codesourcery.com>
1576 * config/tc-i386.h (ELF_TARGET_FORMAT): Define for TE_VXWORKS.
1578 2005-05-05 Matt Thomas <matt@3am-software.com>
1580 * config/tc-vax.c (md_assemble): Don't assume a valueT is 4
1583 2005-05-05 Nick Clifton <nickc@redhat.com>
1585 * Update the address and phone number of the FSF organization in
1586 the GPL notices in the following files:
1587 COPYING, app.c, as.c, as.h, asintl.h, atof-generic.c, bignum.h,
1588 bit_fix.h, cgen.c, cgen.h, cond.c, debug.c, depend.c, dw2gencfi.c,
1589 dw2gencfi.h, dwarf2dbg.c, dwarf2dbg.h, ecoff.c, ecoff.h, ehopt.c,
1590 emul-target.h, emul.h, expr.c, expr.h, flonum-copy.c,
1591 flonum-konst.c, flonum.h, frags.c, frags.h, hash.c, hash.h,
1592 input-file.c, input-file.h, input-scrub.c, itbl-lex.h, itbl-lex.l,
1593 itbl-ops.c, itbl-ops.h, itbl-parse.y, listing.c, listing.h,
1594 literal.c, macro.c, macro.h, messages.c, obj.h, output-file.c,
1595 output-file.h, read.c, read.h, sb.c, sb.h, stabs.c,
1596 struc-symbol.h, subsegs.c, subsegs.h, symbols.c, symbols.h, tc.h,
1597 write.c, write.h, config/aout_gnu.h, config/atof-ieee.c,
1598 config/atof-vax.c, config/itbl-mips.h, config/m68k-parse.h,
1599 config/m68k-parse.y, config/m88k-opcode.h, config/obj-aout.c,
1600 config/obj-aout.h, config/obj-bout.c, config/obj-bout.h,
1601 config/obj-coff.c, config/obj-coff.h, config/obj-ecoff.c,
1602 config/obj-ecoff.h, config/obj-elf.c, config/obj-elf.h,
1603 config/obj-evax.c, config/obj-evax.h, config/obj-hp300.c,
1604 config/obj-hp300.h, config/obj-ieee.c, config/obj-ieee.h,
1605 config/obj-multi.h, config/obj-som.c, config/obj-som.h,
1606 config/tc-a29k.c, config/tc-a29k.h, config/tc-alpha.c,
1607 config/tc-alpha.h, config/tc-arc.c, config/tc-arc.h,
1608 config/tc-arm.h, config/tc-avr.c, config/tc-avr.h,
1609 config/tc-cris.c, config/tc-cris.h, config/tc-crx.c,
1610 config/tc-crx.h, config/tc-d10v.c, config/tc-d10v.h,
1611 config/tc-d30v.c, config/tc-d30v.h, config/tc-dlx.c,
1612 config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1613 config/tc-frv.c, config/tc-frv.h, config/tc-generic.c,
1614 config/tc-generic.h, config/tc-h8300.c, config/tc-h8300.h,
1615 config/tc-h8500.c, config/tc-h8500.h, config/tc-hppa.c,
1616 config/tc-hppa.h, config/tc-i370.c, config/tc-i370.h,
1617 config/tc-i386.c, config/tc-i386.h, config/tc-i860.c,
1618 config/tc-i860.h, config/tc-i960.c, config/tc-i960.h,
1619 config/tc-ia64.c, config/tc-ia64.h, config/tc-ip2k.c,
1620 config/tc-ip2k.h, config/tc-iq2000.c, config/tc-iq2000.h,
1621 config/tc-m32r.c, config/tc-m32r.h, config/tc-m68851.h,
1622 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c,
1623 config/tc-m68k.h, config/tc-m88k.c, config/tc-m88k.h,
1624 config/tc-maxq.c, config/tc-maxq.h, config/tc-mcore.c,
1625 config/tc-mcore.h, config/tc-mips.c, config/tc-mips.h,
1626 config/tc-mmix.c, config/tc-mmix.h, config/tc-mn10200.c,
1627 config/tc-mn10200.h, config/tc-mn10300.c, config/tc-mn10300.h,
1628 config/tc-msp430.c, config/tc-msp430.h, config/tc-ns32k.c,
1629 config/tc-ns32k.h, config/tc-openrisc.c, config/tc-openrisc.h,
1630 config/tc-or32.c, config/tc-or32.h, config/tc-pdp11.c,
1631 config/tc-pdp11.h, config/tc-pj.c, config/tc-pj.h,
1632 config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c,
1633 config/tc-s390.h, config/tc-sh.c, config/tc-sh.h,
1634 config/tc-sh64.c, config/tc-sh64.h, config/tc-sparc.c,
1635 config/tc-sparc.h, config/tc-tahoe.c, config/tc-tahoe.h,
1636 config/tc-tic30.c, config/tc-tic30.h, config/tc-tic4x.c,
1637 config/tc-tic4x.h, config/tc-tic54x.c, config/tc-tic54x.h,
1638 config/tc-tic80.c, config/tc-tic80.h, config/tc-v850.c,
1639 config/tc-v850.h, config/tc-vax.c, config/tc-vax.h,
1640 config/tc-w65.c, config/tc-w65.h, config/tc-xstormy16.c,
1641 config/tc-xstormy16.h, config/tc-xtensa.c, config/tc-xtensa.h,
1642 config/tc-z8k.c, config/tc-z8k.h, config/te-386bsd.h,
1643 config/te-freebsd.h, config/te-hp300.h, config/te-hppa.h,
1644 config/te-ic960.h, config/te-irix.h, config/te-nbsd.h,
1645 config/te-netware.h, config/te-sparcaout.h, config/te-sun3.h,
1646 config/te-tmips.h, config/te-vxworks.h, config/vax-inst.h,
1647 config/xtensa-istack.h, config/xtensa-relax.c,
1648 config/xtensa-relax.h, doc/fdl.texi
1650 2005-05-05 Nick Clifton <nickc@redhat.com>
1652 * config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
1653 the target_big_endian variable to false.
1655 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1657 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
1658 list traversal. Use bfd_section_list_prepend.
1659 * config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
1660 over the section list.
1661 * config/tc-xtensa.c (xtensa_remove_section): Delete.
1662 (xtensa_insert_section): Delete.
1663 (xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
1664 and bfd_section_list_prepend.
1665 (xtensa_reorder_seg_list): Use bfd_section_list_remove and
1666 bfd_section_list_insert_after.
1668 2005-05-03 Nick Clifton <nickc@redhat.com>
1670 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Fix invocations
1671 of bfd_section_list... macros.
1672 * config/tc-mmix.c (mmix_frob_file): Likewise.
1673 * config/tc-xtensa.c (xtensa_remove_section): Likewise.
1674 (xtensa_insert_section): Likewise.
1676 * macro.c (macro_hash): Remove static.
1677 * macro.h (macro_hash): Provide an external declaration.
1679 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1681 * write.c (write_object_file): Use bfd_section_double_list_remove
1684 2005-05-02 Daniel Jacobowitz <dan@codesourcery.com>
1686 * doc/Makefile.am (gasver.texi): Correct quoting.
1687 * doc/Makefile.in: Regenerated.
1689 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1691 * configure.tgt: Add h8300*-*-rtemscoff.
1692 Switch h8300*-*-rtems* to elf.
1694 2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
1696 * hash.c: Undo the last change.
1699 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
1701 * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
1703 (DISTCLEANFILES): Remove.
1704 (MAINTAINERCLEANFILES): Add asconfig.texi.
1705 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
1707 2005-04-29 Ben Elliston <bje@au.ibm.com>
1709 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.
1710 (GENERIC_OBJS): Likewise, remove bignum-copy.o.
1711 (bignum-copy.o): Remove.
1712 * Makefile.in: Regenerate.
1713 * makefile.vms (OBJS): Remove bignum-copy.obj.
1714 * symbols.h (local_symbol_make): Remove declaration.
1715 (verify_symbol_chain_2): Likewise.
1716 * symbols.c (local_symbol_make): Make static.
1717 (max_indent_level): Likewise.
1718 (verify_symbol_chain_2): Remove.
1719 * macro.c (macro_hash): Make static.
1720 * messages.c (fprint_value): Remove.
1721 * read.h (get_absolute_expr): Remove.
1722 (emit_leb128_expr): Likewise.
1723 (do_s_func): Likewise.
1724 * read.c (do_s_func): Make static.
1725 (emit_leb128_expr): Likewise.
1726 (get_absolute_expr): Likewise.
1727 * as.h (as_howmuch): Remove declaration.
1728 (fprint_value): Likewise.
1729 * as.c (myname): Make static.
1730 * input-scrub.c (as_howmuch): Remove.
1731 (as_1_char): Likewise.
1732 * input-file.h (input_file_is_open): Remove.
1733 * input-file.c (input_file_is_open): Likewise.
1734 * expr.h (expr_build_unary): Remove declaration.
1735 (expr_build_binary): Likewise.
1736 * expr.c (expr_build_unary): Remove.
1737 (expr_build_binary): Likewise.
1738 * hash.h (hash_replace): Remove declaration.
1739 (hash_delete): Likewise.
1740 * hash.c (hash_replace): Remove.
1741 (hash_delete): Likewise.
1742 * bignum-copy.c (bignum_copy): Move from here ..
1743 * config/tc-vax.c (bignum_copy): .. to here.
1744 * bignum.h (LOG_TO_BASE_2_OF_10): Remove.
1745 (bignum_copy): Remove extern declaration.
1746 * sb.h (string_count): Remove extern declaration.
1747 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1748 (sb_name): Likewise.
1749 * sb.c (dsize): Replace preprocessor macro with static int.
1750 (string_count): Make static.
1751 (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
1752 (sb_name): Likewise.
1753 * config/obj-coff.c (dim_index): Make static.
1754 * config/tc-i386.c (GOT_symbol): Likewise.
1755 (output_invalid_buf): Likewise.
1756 * doc/internals.texi (Warning and error messages): Remove the
1757 prototype for fprint_value.
1759 2005-04-27 Ben Elliston <bje@au.ibm.com>
1763 2005-04-26 H.J. Lu <hongjiu.lu@intel.com>
1765 * config/obj-multi.h (FAKE_LABEL_NAME): Defined.
1767 * read.c (pseudo_set): Disallow symbol set to common symbol.
1770 * write.c (write_object_file): Report common symbol name when
1771 disallowing local symbol set to common symbol.
1772 (adjust_reloc_syms): Disallow local symbol set to undefined
1775 2005-04-25 Jan Beulich <jbeulich@novell.com>
1777 * macro.c (macro_expand_body): Replace locals indicator parameters
1778 with actual macro_entry. New local variables macro_line and err.
1779 Don't return when encountering an error, just record the fact.
1780 Detect local symbol name colliding with parameter. Track line number
1781 inside of macro expansion.
1782 (do_formals): Move local variable name to wider scope. Check
1783 parameter of the same name doesn't already exist. In MRI mode, also
1784 check it doesn't collide with the argument count pseudo-parameter).
1785 (define_macro): Add file and line number parameters. Remove local
1786 variable namestr. New local variable error. Initialize macro_entry
1787 members file, line, and name. Don't return when encountering an
1788 error, just record the fact. Use %s in some diagnostics for read.c
1789 to insert the macro name. Free macro_entry on error.
1790 (macro_expand): Pass macro_entry to macro_epand_body. Don't return
1791 when encountering an error, just record the fact.
1792 (expand_irp): Don't return when encountering an error, just record
1794 * macro.h (macro_struct): New members name, file, and line.
1795 (define_macro): Add file and line number parameters.
1796 * read.c (s_macro): Pass file and line to define_macro. Tag warning
1797 regarding pseudo-op redefinition with the file/line that macro
1798 definition started at.
1800 2005-04-22 Bob Wilson <bob.wilson@acm.org>
1802 * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
1803 (future_alignment_required): Remove ifdefs that use it.
1805 2005-04-22 Bob Wilson <bob.wilson@acm.org>
1807 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
1808 (xg_is_narrow_insn, xg_expand_narrow): Remove. Merge into...
1809 (xg_is_single_relaxable_insn): ...here. Add "targ" and "narrow_only"
1811 (xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
1812 convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
1814 2005-04-21 Christian Groessler <chris@groessler.org>
1816 * config/tc-z8k.c (md_assemble): Fix buffer overrun in operand[]
1819 2005-04-20 H.J. Lu <hongjiu.lu@intel.com>
1821 * config/obj-aout.h (S_IS_EXTERN): Removed.
1822 * config/obj-bout.h (S_IS_EXTERN): Likewise.
1823 * config/obj-coff.h (S_IS_EXTERN): Likewise.
1824 * symbols.c (S_IS_EXTERN): Likewise.
1825 * symbols.h (S_IS_EXTERN): Likewise.
1827 * config/tc-alpha.c (tc_gen_reloc): Replace S_IS_EXTERN with
1829 * config/tc-d10v.c (md_apply_fix3): Likewise.
1830 * config/tc-ia64.c (ia64_fix_adjustable): Likewise.
1831 * config/tc-iq2000.c (iq2000_fix_adjustable): Likewise.
1832 * config/tc-m32r.c (m32r_fix_adjustable): Likewise.
1833 * config/tc-mmix.c (mmix_adjust_symtab): Likewise.
1834 * config/tc-sh64.c (shmedia_frob_file_before_adjust): Likewise.
1835 (shmedia_md_convert_frag): Likewise.
1836 * symbols.c (print_symbol_value_1): Likewise.
1837 * write.c (write_object_file): Likewise.
1839 2005-04-20 Nick Clifton <nickc@redhat.com>
1841 * config/tc-xtensa.c (get_aligned_diff): Change type of
1842 branch_align to offsetT so that its signedness matches that of
1845 * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
1846 number into a readable string.
1847 (load_register): Likewise.
1849 2005-04-20 Andreas Schwab <schwab@suse.de>
1851 * config/tc-ia64.c (specify_resource): Initialize all of tmpl.
1853 2005-04-19 David S. Miller <davem@davemloft.net>
1855 * config/tc-sparc.c (md_assemble): If sparc_ip gives us a
1856 NULL insn, exit early. Remove now spurious NULL checks.
1857 (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn
1860 2005-04-19 Jan Beulich <jbeulich@novell.com>
1862 * symbols.h (symbol_find_base): Remove prototype.
1863 * symbols.c (save_symbol_name): Remove code section conditional upon
1865 (symbol_find): Remove.
1866 (symbol_find_base): Rename to symbol_find.
1867 * subsegs.c (section_symbol): Replace use of symbol_find_base with
1869 * config/obj-coff.c (tag_insert): Remove code section conditional
1870 upon STRIP_UNDERSCORE.
1871 (obj_coff_def): Likewise.
1872 (obj_coff_endef): Replace use of symbol_find_base with symbol_find.
1873 (coff_frob_symbol): Likewise.
1874 (yank_symbols): Likewise.
1875 (c_section_symbol): Likewise.
1876 * config/obj-coff.h (DO_NOT_STRIP): Remove.
1877 * config/tc-arm.c (symbol_locate): Remove code section conditional
1878 upon STRIP_UNDERSCORE.
1879 * config/tc-h8300.h (DO_NOT_STRIP): Remove.
1880 * config/tc-h8500.h (DO_NOT_STRIP): Remove.
1881 * config/tc-sh.h (DO_NOT_STRIP): Remove.
1882 * config/tc-w65.h (DO_NOT_STRIP): Remove.
1883 * config/tc-z8k.h (DO_NOT_STRIP): Remove.
1885 2005-04-19 Andreas Schwab <schwab@suse.de>
1887 * config/tc-ia64.c (md_assemble): Fix error message for wrong
1888 access to application registers.
1890 2005-04-19 Jan Beulich <jbeulich@novell.com>
1892 * config/te-sysv32.h: Remove.
1893 * Makefile.am (TARG_ENV_HFILES): Remove reference to
1895 * Makefile.in (TARG_ENV_HFILES): Likewise.
1897 2005-04-19 Jan Beulich <jbeulich@novell.com>
1900 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero-
1903 2005-04-18 Mark Kettenis <kettenis@gnu.org>
1905 * config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
1907 2005-04-18 Maciej W. Rozycki <macro@linux-mips.org>
1909 * config/tc-mips.c (normalize_constant_expr): Don't check for
1911 (check_absolute_expr): Only call normalize_constant_expr() if
1913 (mips_ip): Likewise.
1915 * config/tc-mips.c (check_absolute_expr): Fix formatting.
1917 2005-04-18 Jan Beulich <jbeulich@novell.com>
1919 * macro.c (free_token): New, freeing all the memory associated with a
1921 (do_formals): Move initializers to ...
1922 (define_macro): ... here.
1923 (delete_macro): Convert passed in name to lower case. Warn when
1924 purging macro that doesn't exist. Use hash_jam instead of hash_delete.
1926 2005-04-15 Maciej W. Rozycki <macro@linux-mips.org>
1928 * config/tc-mips.c (normalize_constant_expr): Fix formatting.
1930 2005-04-15 Jan Beulich <jbeulich@novell.com>
1932 * config/obj-elf.c (obj_elf_struct): New.
1933 (elf_pseudo_table). Use it for .offset and .struct.
1935 2005-04-14 Bob Wilson <bob.wilson@acm.org>
1936 Sterling Augustine <sterling@tensilica.com>
1938 * config/tc-xtensa.c (get_aligned_diff): Handle target_size larger
1939 than the section alignment.
1941 2005-04-14 Bob Wilson <bob.wilson@acm.org>
1942 H.J. Lu <hongjiu.lu@intel.com>
1944 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.
1945 * config/tc-xtensa.c (xg_translate_sysreg_op,
1946 xtensa_translate_old_userregs_ops,
1947 xtensa_find_unaligned_branch_targets,
1948 xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags,
1949 relax_frag_add_nop): Support 64-bit host.
1950 (xtensa_mark_literal_pool_location, xtensa_move_literals): Use
1951 tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
1953 2005-04-14 Mark Kettenis <kettenis@gnu.org>
1955 * configure.tgt: Add support for OpenBSD/sparc ELF.
1957 * configure.tgt: Set emulation for mips-*-openbsd*.
1958 Remove broken mips-dec-openbsd* config.
1959 * configure.in: Set default ABI for mips64-*-openbsd*.
1960 * configure: Regenerate.
1962 2005-04-14 Maciej W. Rozycki <macro@linux-mips.org>
1964 * config/tc-mips.c (macro) [ldd_std]: Don't attempt the GP
1965 optimization for constant addresses.
1967 2005-04-14 Nick Clifton <nickc@redhat.com>
1969 * as.c (main): Move parse_args before symbol_begin and frag_init
1970 so that the hash table size can be set before it is used.
1971 * hash.c: Use an unsigned long type for the size of the hash
1973 * hash.h (set_gas_hash_table_size): Update the prototype.
1975 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1977 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1978 * acinclude.m4: Include ../bfd/warning.m4.
1979 * configure.in: Invoke AM_BINUTILS_WARNINGS.
1980 * Makefile.in: Regenerate.
1981 * configure: Regenerate.
1982 * doc/Makefile.in: Regenerate.
1984 2005-04-13 Maciej W. Rozycki <macro@linux-mips.org>
1986 * config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro.
1987 (normalize_address_expr): New function to sign-extend address
1988 offsets that fit into 32 bits in 32-bit mode.
1989 (macro_build_ldst_constoffset): Use normalize_address_expr()
1990 instead of a handcoded sequence.
1991 (load_register): Likewise. Report oversized numbers in a useful
1993 (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only
1994 for constant addresses. Report oversized numbers in a useful way.
1995 (mips_ip): Use normalize_address_expr() for addresses.
1997 2005-04-12 Mark Kettenis <kettenis@gnu.org>
1999 * config/tc-i386.c (output_insn): Handle VIA PadLock instructions
2000 similar to other instructions now that they're marked as ImmExt.
2002 2005-04-12 Nick Clifton <nickc@redhat.com>
2004 * hash.c (DEFAULT_SIZE): Delete. Replace with:
2005 (gas_hash_table_size): New static variable.
2006 (set_gas_hash_table_size): New function: Records a requested size
2007 for the hash tables.
2008 (get_gas_hash_table_size): New function: Return a prime number
2009 near the requested size of the hash table.
2010 (hash_new): Use get_gas_hash_table_size.
2011 * hash.h: Add a prototype for set_gas_hash_table_size.
2012 * as.c (show_usage): Add description of new switches: --hash-size
2013 and --reduce-memory-overheads.
2014 (option_values): Add OPTION_HASH_TABLE_SIZE and
2015 OPTION_REDUCE_MEMORY_OVERHEADS.
2016 (std_longpopts): Add entries for the new options.
2017 (parse_args): Handle the new options.
2018 * Makefile.am: Add a dependency of as.c on hash.h.
2019 * Makefile.in: Regenerate.
2020 * doc/as.texinfo: Document the new switches.
2021 * NEWS: Mention the new switches.
2023 2005-04-12 Nick Clifton <nickc@redhat.com>
2026 * config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3]
2029 2005-04-12 Alan Modra <amodra@bigpond.net.au>
2031 * Makefile.am: Run "make dep-am".
2032 * Makefile.in: Regenerate.
2034 2005-04-11 Sterling Augustine <sterling@tensilica.com>
2035 Bob Wilson <bob.wilson@acm.org>
2037 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.
2039 2005-04-11 Mark Kettenis <kettenis@gnu.org>
2041 * configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
2043 2005-04-11 Jan Beulich <jbeulich@novell.com>
2045 * NEWS: Mention these changes and their effects.
2046 * macro.c (get_token): Use is_name_beginner/is_part_of_name/
2048 (check_macro): Likewise.
2049 (buffer_and_nest): Likewise. Permit multiple labels. Don't discard
2050 labels together with the closing pseudo-op.
2051 (macro_expand_body): Adjust comment. Range-check input before use.
2052 Adjust mis-spelled diagnostic. Use is_name_beginner.
2053 * read.c (try_macro): New.
2054 (read_a_source_file): New static variable last_eol. Don't list
2055 macro expansion lines more than once. Call try_macro.
2056 (s_macro): Set section of line_label to absolute instead of undefined.
2057 * doc/as.texinfo: Add information on the caveats of these changes.
2059 2005-04-11 Alan Modra <amodra@bigpond.net.au>
2061 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".
2062 * symbols.h (symbol_X_add_number): Update prototype.
2064 2005-04-10 Eric Christopher <echristo@redhat.com>
2066 * symbols.c (symbol_X_add_number): Fix warning.
2068 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
2070 * config/tc-m68k.c (md_begin): Support 64bit host.
2071 (get_num): Support 64bit BFD on 32bit host.
2073 2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
2075 * config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
2077 2005-04-09 Alan Modra <amodra@bigpond.net.au>
2079 * read.c (assign_symbol): Remove const from parm. Fix xcalloc
2080 call. Don't do the COFF hacks for multi-emulation gas. Move
2081 demand_empty_rest_of_line back to caller.
2082 (s_set, equals): demand_empty_rest_of_line here.
2085 * as.h (rs_dummy): Define.
2086 * symbols.c (symbol_X_add_number): New function.
2087 * symbols.h (symbol_X_add_number): Declare.
2088 * stabs.c (aout_process_stab): Tidy symbol frag setting.
2089 * read.c (assign_symbol): New function, split out from s_set.
2090 Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy.
2091 Fix COFF hacks for multi-emulation gas.
2092 (s_set): Call assign_symbol. Remove "register" keyword.
2093 (set_zero_frag): New function.
2094 (pseudo_set): Always check for assignment to section syms.
2095 Always set segment and frag of symbol, and likewise extern for
2096 aout/bout. Handle assignment of sym=sym+/-const specially. Don't
2097 special case exp.X_add_number non-zero for O_symbol expressions.
2098 (equals): Use assign_symbol.
2100 2005-04-08 Bob Wilson <bob.wilson@acm.org>
2102 * config/tc-xtensa.c (xtensa_create_xproperty_segments): Skip
2105 2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
2107 * config/tc-i386.c (tc_gen_reloc): Don't turn
2108 BFD_RELOC_X86_64_32S into BFD_RELOC_32.
2110 2005-04-06 Nick Clifton <nickc@redhat.com>
2112 * po/rw.po: New translation: Kinyarwanda
2113 * configure.in (ALL_LINGUAS): Add rw
2114 * configure: Regenerate.
2116 2005-04-05 Sterling Augustine <sterling@tensilica.com>
2117 Bob Wilson <bob.wilson@acm.org>
2119 * config/tc-xtensa.c (branch_align_power): New.
2120 (xtensa_find_unaligned_branch_targets, get_aligned_diff,
2121 future_alignment_required): Use branch_align_power to check section
2122 alignment as well as xtensa_fetch_width when aligning branch targets.
2124 2005-04-05 Bob Wilson <bob.wilson@acm.org>
2126 * config/tc-xtensa.c: Warning fixes throughout.
2127 (xtensa_fetch_width): Change to unsigned.
2128 (assemble_nop, xtensa_find_unaligned_branch_targets,
2129 xtensa_find_unaligned_loops, xg_assemble_vliw_tokens,
2130 is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags,
2131 min_bytes_to_other_loop_end, unrelaxed_frag_min_size,
2132 unrelaxed_frag_max_size, xtensa_fix_short_loop_frags,
2133 count_insns_to_loop_end, unrelaxed_frag_min_insn_count,
2134 get_text_align_max_fill_size, get_text_align_nop_count,
2135 get_text_align_nth_nop_size, get_noop_aligned_address,
2136 get_aligned_diff, convert_frag_align_next_opcode,
2137 convert_frag_immed_finish_loop, xtensa_create_property_segments,
2138 xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up
2139 types, avoiding size_t and using offsetT and addressT appropriately.
2140 (get_text_align_power): Clean up types. Avoid incorrect bound.
2141 (get_text_align_fill_size): Clean up types. Restructure for clarity.
2143 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
2145 * config/tc-ia64.c (start_unwind_section): Undo the change
2147 (generate_unwind_image, dot_endp): Likewise.
2149 2005-04-01 David Mosberger <davidm@hpl.hp.com>
2151 * config/tc-ia64.c (ia64_handle_align): Move le_nop and
2152 le_nop_stop arrays and initializers to file scope.
2153 (md_begin): When generating code for anything other than
2154 Itanium 1, use MMI instead of MFI NOP bundles as a filler.
2156 2005-04-01 Jan Beulich <jbeulich@novell.com>
2158 * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push
2161 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2163 * NEWS: Mention [fdgh]_floating.
2164 * config/atof-vax.c: Fix some whitespace.
2165 * config/tc-vax.c (md_pseudo_table): Add "[fdgh]_floating".
2167 2005-04-01 Nick Clifton <nickc@redhat.com>
2169 * configure.in: Add a check for <unistd.h> providing a prototype
2170 for getopt() which is compatible with the one in
2171 include/getopt.h. If so then define HAVE_DECL_GETOPT.
2172 * configure: Regenerate.
2173 * config.in (HAVE_DECL_GETOPT): Add.
2175 2005-04-01 Jan Beulich <jbeulich@novell.com>
2177 * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
2179 2005-04-01 Jan Beulich <jbeulich@novell.com>
2181 * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
2182 (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case.
2184 2005-03-30 Julian Brown <julian@codesourcery.com>
2186 * config/tc-arm.c (arm_adjust_symtab): Rename
2187 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
2189 2005-03-30 Julian Brown <julian@codesourcery.com>
2191 * config/tc-arm.c (mapping_state): Change documentation in function
2192 comment to cross-reference spec instead. Change type of mapping symbols
2194 (arm_adjust_symtab): Don't change type of mapping symbols here.
2196 2005-03-30 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2198 * as.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
2199 * config.in: Regenerate.
2200 * configure: Regenerate.
2201 * configure.in: Check for ffs decl and alphabetize.
2203 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2204 Phil Blundell <philb@gnu.org>
2206 * config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
2207 (md_apply_fix3): Mark TLS symbols.
2208 (tc_gen_reloc): Handle TLS relocations.
2209 (arm_fix_adjustable): Ignore TLS relocations.
2210 (s_arm_elf_cons): Support expressions after decorated symbols.
2212 2005-03-29 Julian Brown <julian@codesourcery.com>
2214 * config/tc-arm.c (marked_pr_dependency): New bitmap, bit N indicates
2215 whether personality routine index N has been output for this section.
2216 (mapping_state): tc_segment_info_data now struct not enum.
2217 (arm_elf_change_section): Likewise, and marked_pr_dependency is now
2218 handled on section change.
2219 (create_unwind_entry): Previous code to output dependency removed.
2220 (s_arm_unwind_fnend): Output dependency if it hasn't been done already
2222 * config/tc-arm.h (TC_SEGMENT_INFO_TYPE): Redefined as struct
2223 arm_segment_info_type.
2224 (arm_segment_info_type): New struct.
2226 2005-03-28 Sterling Augustine <sterling@tensilica.com>
2227 Bob Wilson <bob.wilson@acm.org>
2229 * config/tc-xtensa.c (do_align_targets): Update comment.
2230 (xtensa_frob_label): Compute "freq" before possibly switching frags.
2231 Insert a LOOP_END frag before every loop target, and do not overload
2232 DESIRE_ALIGN_IF_TARGET frags with loop end information.
2233 (xg_assemble_vliw_tokens): Use do_align_targets.
2234 (xtensa_fix_target_frags): Remove code to convert a
2235 DESIRE_ALIGN_IF_TARGET frag to a LOOP_END frag when there is a
2236 negatable branch at the end of a loop.
2237 (frag_can_negate_branch): Delete.
2239 2005-03-28 David Mosberger <davidm@hpl.hp.com>
2240 H.J. Lu <hongjiu.lu@intel.com>
2243 NEWS: Mention "-mtune=[itanium1|itanium2]".
2245 * config/tc-ia64.c (md): Add tune.
2246 (md_parse_option): Accepted "-mtune=[itanium1|itanium2]".
2247 (md_show_usage): Add "-mtune=[itanium1|itanium2]".
2248 (extra_goodness): Prefer M- and I-unit NOPs for itanium2. F and
2249 B unit NOPs are discouraged for McKinley-derived cores.
2250 (md_begin): Don't hardcode the "extra_goodness()" function in
2252 (ia64_init): Set md.tune to itanium2.
2254 * doc/as.texinfo: Add -mtune=[itanium1|itanium2]".
2255 * doc/c-ia64.texi: Likewise.
2257 2005-03-27 Ian Lance Taylor <ian@airs.com>
2259 * config/obj-coff.c (coff_frob_symbol): When crashing because of a
2260 bad C_EFCN symbol, print its name.
2262 2005-03-25 Bob Wilson <bob.wilson@acm.org>
2264 * config/tc-xtensa.c (use_longcalls): Delete.
2265 (xg_symbolic_immeds_fit): Check for direct calls and return TRUE if
2266 the use_longcalls flag is set. Do this before checking the segment.
2267 (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never
2268 expand direct calls at this point.
2269 (xtensa_set_frag_assembly_state): Set use_longcalls flag.
2270 (xtensa_find_unmarked_state_frags): Likewise.
2271 (md_assemble): Do not disable longcalls by setting is_specific_opcode.
2272 (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes.
2273 (convert_frag_immed): Remove unnecessary check of is_specific_opcode.
2274 * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
2276 2005-03-25 Hans-Peter Nilsson <hp@bitrange.com>
2278 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.
2280 2005-03-25 Hans-Peter Nilsson <hp@axis.com>
2282 * config/tc-cris.h: Convert to ISO C90.
2283 * config/tc-cris.c: Ditto.
2284 (md_estimate_size_before_relax): Remove obsolete comment for
2285 parameter "segment_type".
2286 (md_begin): Document reason for cast of hash_insert argument.
2287 (md_atof): Correct type of parameter "type".
2289 2005-03-24 Nick Clifton <nickc@redhat.com>
2291 * write.h (bit_fix_new): Remove redundant prototype.
2292 * config/atof-ieee.c: Convert to ISO-C90 and fix formatting.
2293 * config/obj-aout.c: Convert to ISO-C90 and fix formatting.
2294 * config/obj-aout.h: Convert to ISO-C90 and fix formatting.
2295 * config/obj-bout.c: Convert to ISO-C90 and fix formatting.
2296 * config/obj-bout.h: Convert to ISO-C90 and fix formatting.
2297 * config/obj-ecoff.c: Convert to ISO-C90 and fix formatting.
2298 * config/obj-ecoff.h: Convert to ISO-C90 and fix formatting.
2299 * config/obj-som.c: Convert to ISO-C90 and fix formatting.
2300 * config/obj-som.h: Convert to ISO-C90 and fix formatting.
2301 * config/tc-a29k.c: Convert to ISO-C90 and fix formatting.
2302 * config/tc-a29k.h: Convert to ISO-C90 and fix formatting.
2303 * config/tc-alpha.c: Convert to ISO-C90 and fix formatting.
2304 * config/tc-alpha.h: Convert to ISO-C90 and fix formatting.
2305 * config/tc-arc.c: Convert to ISO-C90 and fix formatting.
2306 * config/tc-arc.h: Convert to ISO-C90 and fix formatting.
2307 * config/tc-d10v.c: Convert to ISO-C90 and fix formatting.
2308 * config/tc-d10v.h: Convert to ISO-C90 and fix formatting.
2309 * config/tc-d30v.c: Convert to ISO-C90 and fix formatting.
2310 * config/tc-d30v.h: Convert to ISO-C90 and fix formatting.
2311 * config/tc-dlx.c: Convert to ISO-C90 and fix formatting.
2312 * config/tc-dlx.h: Convert to ISO-C90 and fix formatting.
2313 * config/tc-fr30.c: Convert to ISO-C90 and fix formatting.
2314 * config/tc-fr30.h: Convert to ISO-C90 and fix formatting.
2315 * config/tc-h8500.c: Convert to ISO-C90 and fix formatting.
2316 * config/tc-h8500.h: Convert to ISO-C90 and fix formatting.
2317 * config/tc-i370.c: Convert to ISO-C90 and fix formatting.
2318 * config/tc-i370.h: Convert to ISO-C90 and fix formatting.
2319 * config/tc-i960.c: Convert to ISO-C90 and fix formatting.
2320 * config/tc-ip2k.c: Convert to ISO-C90 and fix formatting.
2321 * config/tc-ip2k.h: Convert to ISO-C90 and fix formatting.
2322 * config/tc-m32r.c: Convert to ISO-C90 and fix formatting.
2323 * config/tc-m32r.h: Convert to ISO-C90 and fix formatting.
2324 * config/tc-m88k.c: Convert to ISO-C90 and fix formatting.
2325 * config/tc-m88k.h: Convert to ISO-C90 and fix formatting.
2326 * config/tc-mcore.c: Convert to ISO-C90 and fix formatting.
2327 * config/tc-mcore.h: Convert to ISO-C90 and fix formatting.
2328 * config/tc-mn10200.c: Convert to ISO-C90 and fix formatting.
2329 * config/tc-ns32k.c: Convert to ISO-C90 and fix formatting.
2330 * config/tc-ns32k.h: Convert to ISO-C90 and fix formatting.
2331 * config/tc-openrisc.c: Convert to ISO-C90 and fix formatting.
2332 * config/tc-openrisc.h: Convert to ISO-C90 and fix formatting.
2333 * config/tc-or32.c: Convert to ISO-C90 and fix formatting.
2334 * config/tc-or32.h: Convert to ISO-C90 and fix formatting.
2335 * config/tc-pdp11.h: Convert to ISO-C90 and fix formatting.
2336 * config/tc-pj.c: Convert to ISO-C90 and fix formatting.
2337 * config/tc-pj.h: Convert to ISO-C90 and fix formatting.
2338 * config/tc-tahoe.c: Convert to ISO-C90 and fix formatting.
2339 * config/tc-tic80.c: Convert to ISO-C90 and fix formatting.
2340 * config/tc-tic80.h: Convert to ISO-C90 and fix formatting.
2341 * config/tc-v850.c: Convert to ISO-C90 and fix formatting.
2342 * config/tc-v850.h: Convert to ISO-C90 and fix formatting.
2343 * config/tc-w65.c: Convert to ISO-C90 and fix formatting.
2344 * config/tc-w65.h: Convert to ISO-C90 and fix formatting.
2345 * config/tc-xstormy16.c: Convert to ISO-C90 and fix formatting.
2346 * config/tc-xstormy16.h: Convert to ISO-C90 and fix formatting.
2348 2005-03-23 Jim Blandy <jimb@redhat.com>
2350 * config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
2351 attributes properly.
2353 2005-03-23 Mike Frysinger <vapier@gentoo.org>
2354 Nick Clifton <nickc@redhat.com>
2356 * configure.tgt: Accept any C library to accompany a GNU Linux
2357 implementation, not just the GNU C library.
2358 * configure.in: Likewise.
2359 * configure: Regenerate.
2361 2005-03-23 Nick Clifton <nickc@redhat.com>
2363 * config/tc-tic30.c: Convert to ISO C90 formatting.
2364 * config/tc-tic30.h: Convert to ISO C90 formatting.
2365 * config/tc-pdp11.c: Convert to ISO C90 formatting.
2366 * config/atof-vax.c: Convert to ISO C90 formatting.
2368 2005-03-21 Maciej W. Rozycki <macro@mips.com>
2370 * config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16
2371 relocations correctly as well.
2372 (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16
2373 relocations in mergeable sections section-relative either.
2375 2005-03-21 Bob Wilson <bob.wilson@acm.org>
2377 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.
2379 2005-03-21 Nick Clifton <nickc@redhat.com>
2381 * config/tc-sh.c (sh_elf_final_processing): Fix compile time
2382 warning by providing a prototype for sh_symbian_find_elf_flags.
2384 * cgen.c (gas_cgen_parse_operand): Fix typo introduced by
2387 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2389 * configure.tgt: Handle setting of bfd_gas for fmt=multi targets
2390 along with other formats that set bfd_gas. Remove unnecessary
2391 setting of bfd_gas. Delete strongarm cases in generic_target
2394 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2397 * config/tc-m68k.c (TRUNC, SEXT): Define.
2398 (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above.
2399 (m68k_ip): Truncate or sign extend expressions as appropriate.
2400 (get_num): Likewise.
2401 (md_apply_fix3): Use SEXT.
2403 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2405 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.
2406 (OBJ_FORMAT_HFILES): Prune config/obj-vms.h.
2407 (obj-vms.o): Delete rule.
2409 * Makefile.in: Regenerate.
2410 * aclocal.m4: Regenerate.
2411 * doc/Makefile.in: Regenerate.
2412 * po/POTFILES.in: Regenerate.
2414 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
2416 * config/tc-m68k.c (m68k_elf_final_processing): Set file specific
2417 flag for coldfire v4e.
2419 2005-03-17 Bob Wilson <bob.wilson@acm.org>
2421 * config/tc-xtensa.c (xg_apply_tentative_value): Rename to
2422 xg_apply_fix_value and return a value to indicate success.
2423 (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative.
2424 (xtensa_force_relocation): Remove checks for VTABLE relocs.
2425 (xtensa_validate_fix_sub): New.
2426 (xtensa_fix_adjustable): Remove check for external or weak symbols.
2427 (tc_gen_reloc): Move code to handle difference of symbols and code to
2428 apply tentative fix values to ...
2429 (md_apply_fix3): ...here. Enable standard overflow checks for simple
2430 8, 16, and 32 bit relocations. Apply fixes for slot-specific
2431 relocations when linkrelax flag is not set.
2432 * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype.
2433 (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
2435 2005-03-17 Jan Beulich <jbeulich@novell.com>
2437 * config/tc-i386.c (i386_scale): Beautify error message.
2438 (Intel syntax comments): Update.
2439 (struct intel_parser_s): Add fields in_offset, in_bracket, and
2441 (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1):
2442 Remove declarations.
2443 (intel_bracket_expr): Declare.
2444 (i386_intel_operand): Initialize new intel_parser fields. Wrap most
2445 of the function body in a loop allowing to split an operand into two.
2446 Replace calls to malloc and checks of it returning non-NULL with
2447 calls to xmalloc/xstrdup.
2448 (intel_expr): SHORT no longer handled here. Add comment indicating
2449 comparison ops need implementation.
2450 (intel_e04, intel_e04_1): Combine, replace recursion with loop.
2451 Check right operand of - does not specify a register when parsing
2452 the address of a memory reference.
2453 (intel_e05, intel_e05_1): Combine, replace recursion with loop.
2454 Check operands do not specify a register when parsing the address of
2456 (intel_e06, intel_e06_1): Likewise.
2457 (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also
2458 handle SHORT as well as unary + and -. Don't accept : except for
2459 segment overrides or in direct far jump/call insns.
2460 (intel_brack_expr): New.
2461 (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use
2463 (intel_e11): Replace chain of if/else-if by switch, alloing fall-
2464 through in certain cases. Use intel_brack_expr. Add new diagnostics.
2465 Allow symbolic constants as register scale value.
2466 (intel_get_token): Replace call to malloc and check of return value
2467 with call to xmalloc. Change handling for FLAT to match MASM's.
2468 (intel_putback_token): Don't try to back up/free current token if
2471 2005-03-16 Daniel Jacobowitz <dan@codesourcery.com>
2473 * configure.tgt: Set emulation for arm-*-eabi*.
2474 * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
2475 * config/te-armeabi.h: New file.
2476 * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
2477 * config/te-symbian.h: Include "te-armeabi.h".
2479 2005-03-16 Nick Clifton <nickc@redhat.com>
2481 * cgen.c (gas_cgen_parse_operand): Copy opinfo parameter into a
2482 local variable in case it is clobbered by the setjmp.
2484 2005-03-16 Nick Clifton <nickc@redhat.com>
2485 Ben Elliston <bje@au.ibm.com>
2487 * configure.in (werror): New switch: Add -Werror to the
2488 compiler command line. Enabled by default. Disable via
2490 * configure: Regenerate.
2492 2005-03-16 Nick Clifton <nickc@redhat.com>
2494 * config/obj-coff.h: Convert to ISO C90 formatting.
2495 * config/obj-coff.c: Convert to ISO C90 formatting.
2497 2005-03-15 Zack Weinberg <zack@codesourcery.com>
2499 * config/tc-arm.c (do_mla): Rename to do_mlas, take second
2500 is_mls parameter; do not diagnose Rm==Rd when is_mls.
2501 (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width)
2502 (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions.
2503 (insns): Add ARMv6T2 instructions:
2504 bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht.
2505 (arm_archs): Add V6T2 variants.
2507 2005-03-15 Nick Clifton <nickc@redhat.com>
2509 * NEWS: Add cutoff for changes in 2.16 release.
2511 2005-03-15 Jan Beulich <jbeulich@novell.com>
2513 * expr.c (operand): Merge handling of unary + into that for unary
2516 2005-03-14 Eric Christopher <echristo@redhat.com>
2518 * config/tc-mips.c: Include dw2gencfi.h.
2519 (mips_cfi_frame_initial_instructions): New.
2520 * config/tc-mips.h (TARGET_USE_CFIPOP): Define.
2521 (tc_cfi_frame_initial_instructions): Ditto.
2522 (DWARF2_DEFAULT_RETURN_COLUMN): Ditto.
2523 (DWARF2_CIE_DATA_ALIGNMENT): Ditto.
2524 * Makefile.am: Update dependencies.
2525 * Makefile.in: Regenerate.
2527 2005-03-15 Alan Modra <amodra@bigpond.net.au>
2529 * po/es.po: Commit new Spanish translation.
2531 2005-03-14 Alan Modra <amodra@bigpond.net.au>
2533 * po/tr.po: Commit new Turkish translation.
2535 2005-03-12 Zack Weinberg <zack@codesourcery.com>
2537 * config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe,
2540 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
2542 * config-gas.com: Mark vax-vms as obsolete.
2543 * configure.in: Remove fmt=vms support.
2544 * config.in: Regenerate.
2545 * configure: Regenerate.
2546 * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
2548 2005-03-10 Sterling Augustine <sterling@tensilica.com>
2549 Bob Wilson <bob.wilson@acm.org>
2551 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slot
2552 when checking if xg_resolve_literals needs to be called.
2553 * config/tc-xtensa.h: Fix spelling typo in a comment.
2555 2005-03-10 Jan Beulich <jbeulich@novell.com>
2557 * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
2558 * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
2559 crafted structure declarations with the types from macro.h.
2561 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2563 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
2564 for -mno-shared optimization.
2566 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2568 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.
2569 (MAX_NOPS): Bump to 4.
2570 (mips_fix_vr4130): New variable.
2571 (nops_for_vr4130): New function.
2572 (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use
2573 nops_for_vr4130 if working around VR4130 errata.
2574 (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros.
2575 (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130.
2576 (md_parse_option): Handle them.
2577 (md_show_usage): Print them.
2578 * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
2580 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2582 * config/tc-mips.c (append_insn): Remove cop_interlocks test from
2585 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2587 * config/tc-mips.h (mips_flush_pending_output): Delete.
2588 (mips_emit_delays): Declare.
2589 (md_flush_pending_output): Use mips_emit_delays.
2590 * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget
2591 the previous instructions.
2592 (md_begin, append_insn, md_parse_option): Update callers.
2593 (mips_emit_delay): Remove parameter. Move INSNS != 0 code to
2595 (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword)
2596 (s_gpdword): Update callers.
2597 (start_noreorder, end_noreorder): New functions.
2598 (macro, macro2, mips16_macro, s_mipsset): Use them instead of
2599 manipulating mips_opts or prev_nop_frag directly.
2600 (mips_flush_pending_output): Delete.
2602 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2604 * config/tc-mips.c (mips_move_labels): New function, taken from...
2605 (append_insn, mips_emit_delays): ...here.
2607 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2609 * config/tc-mips.c (MAX_NOPS): New macro.
2610 (history): Resize to 1 + MAX_NOPS.
2611 (fix_vr4120_class): New enumeration.
2612 (vr4120_conflicts): New variable.
2613 (init_vr4120_conflicts): New function.
2614 (md_begin): Call it.
2615 (insn_uses_reg): Constify first argument.
2616 (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
2617 (nops_for_insn_or_target): New functions.
2618 (append_insn): Use the new nops_for_* functions instead of inline
2619 delay checks. Generalize prev_nop_frag handling to handle an
2620 arbitrary history length. Insert nops into the history buffer
2621 once the number of nops in prev_nop_frag is fixed.
2622 (emit_delays): Use nops_for_insn instead of inline delay checks.
2624 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2626 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0
2627 check from branch delay code. Remove unnecessary check for branches.
2629 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2631 * config/tc-mips.c (dummy_opcode): Delete.
2632 (nop_insn, mips16_nop_insn): New variables.
2633 (NOP_INSN): New macro.
2634 (insn_length, create_insn, install_insn, move_insn, add_fixed_insn)
2635 (add_relaxed_insn, insert_into_history, emit_nop): New functions.
2636 (md_begin): Initialize nop_insn and mips16_nop_insn.
2637 (append_insn): Use the new emit_nop function to add nops, recording
2638 them in the history buffer. Use add_fixed_insn or add_relaxed_insn
2639 to reserve room for the instruction and install_insn to install the
2640 final form. Use insert_into_history to record the instruction in
2641 the history buffer. Use move_insn to do delay slot filling.
2642 (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro.
2643 (macro_build, mips16_macro_build, macro_build_lui, mips_ip)
2644 (mips16_ip): Use create_insn to initialize mips_cl_insns.
2646 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2648 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)
2649 (EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New.
2650 (insn_uses_reg, reg_needs_delay, append_insn, macro_build)
2651 (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip)
2652 (mips16_ip): Use the new macros instead of explicit masks and shifts.
2654 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2656 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_p
2657 and extended_p fields with a single fixed_p field.
2658 (append_insn, mips_no_prev_insn): Adjust accordingly.
2660 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2662 * config/tc-mips.c (mips_cl_insn): Replace reloc_type array with
2663 a single mips16_absolute_jump_p bit.
2664 (append_insn): Adjust accordingly.
2666 2005-03-09 Richard Sandiford <rsandifo@redhat.com>
2668 * config/tc-mips.h (mips_cl_insn): Move definition to...
2669 * config/tc-mips.c (mips_cl_insn): ...here. Add new fields:
2670 frag, where, fixp, reloc_type, valid_p, noreorder_p, delay_slot_p
2672 (history): New variable.
2673 (prev_insn, prev_prev_insn, prev_insn_valid, prev_insn_frag)
2674 (prev_insn_where, prev_insn_reloc_type, prev_insn_fixp)
2675 (prev_insn_is_delay_slot, prev_insn_unreordered, prev_insn_extended)
2676 (prev_prev_insn_unreordered): Delete.
2677 (reg_needs_delay, append_insn, mips_no_prev_insn, mips_emit_delays)
2678 (macro_start): Replace uses of prev_insn* with the equivalent history[]
2681 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2683 * doc/Makefile.am: Update as.info dependencies.
2684 * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
2686 2005-03-08 Jan Beulich <jbeulich@novell.com>
2688 * doc/as.texinfo: Add sentence to indicate redefining a macro is an
2689 error, and point to .purgem documentation if someone really needs
2691 * NEWS: Mention macro redefinition is now an error.
2693 2005-03-08 Jan Beulich <jbeulich@novell.com>
2695 * config/tc-ia64.c (emit_one_bundle): Track last slot user insn was
2696 emitted to. Add more precise diagnostics for non-fitting insns based
2697 on that. Eliminate now superfluous special casing of MLX. Clear out
2698 slot information when dropping an insn.
2700 2005-03-08 Jan Beulich <jbeulich@novell.com>
2702 * config/tc-ia64.c (parse_section_name): Rename to...
2703 (cross_section): In addition to separating the name from the rest of
2704 the arguments, also carry out the operation.
2705 (dot_xdata): Use cross_section.
2706 (dot_float_cons): Likewise.
2707 (dot_xstringer): Likewise.
2708 (dot_xdata_ua): Likewise.
2709 (dot_float_cons_ua): Likewise. Pass float_cons, not stmt_float_cons.
2711 2005-03-05 Alan Modra <amodra@bigpond.net.au>
2713 * po/gas.pot: Regenerate.
2715 2005-03-04 David Daney <ddaney@avtrex.com>
2717 * config/tc-mips.c (macro_build_lui): Use '__gnu_local_gp'
2718 instead of '_gp' for -mno-shared optimization.
2720 (s_abicalls): Document it in the comment.
2721 (md_show_usage): Document the -mno-shared option.
2723 2005-03-04 Richard Sandiford <rsandifo@redhat.com>
2725 * config/tc-mips.c (mips_set_options): Add sym32 field.
2726 (mips_opts): Initialize it.
2727 (HAVE_32BIT_ADDRESSES): Set to true if pointers are 32 bits wide.
2728 (HAVE_64BIT_ADDRESSES): Redefine as !HAVE_32BIT_ADDRESSES.
2729 (HAVE_32BIT_SYMBOLS, HAVE_64BIT_SYMBOLS): New macros.
2730 (load_address): Use HAVE_64BIT_SYMBOLS instead of HAVE_64BIT_ADDRESSES
2731 when deciding whether to use a symbolic %highest/%higher expansion.
2732 (macro): Likewise. Remove o64/n32 linux hack. Always use
2733 ADDRESS_ADD*_INSN for address addition in the expansion of "dla"
2734 and "la". Handle constants separately from symbolic expressions in
2735 the "ld_st:" case, using 64-bit arithmetic if HAVE_64BIT_ADDRESSES
2736 and using load_register to load the high part of the address.
2737 (OPTION_MSYM32, OPTION_NO_MSYM32): New macros.
2738 (OPTION_ELF_BASE): Bump by 2.
2739 (md_longopts): Add entries for -msym32 and -mno-sym32.
2740 (md_parse_option): Handle them.
2741 (usage): Document them.
2742 (s_mipsset): Handle ".set sym32" and ".set nosym32".
2743 (s_cpload, s_cpsetup): Use HAVE_64BIT_SYMBOLS instead of
2744 HAVE_64BIT_ADDRESSES to detect 64-bit values of "_gp".
2745 * doc/c-mips.texi: Document ".set sym32", ".set nosym32",
2746 -msym32 and -mno-sym32.
2748 2005-03-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2750 * config/tc-mips.c (load_address): Implement GP optimization
2751 for 64bit address space non-PIC. Fix formatting.
2752 (macro): Likewise. Simplify code.
2753 (md_parse_option): Don't bail out if -G 0 is set for PIC code.
2754 (mips_after_parse_args): Simplify code.
2756 2005-03-03 Nick Clifton <nickc@redhat.com>
2758 * expr.c (operand): Remove redundant code enclosed by #ifdef
2759 RELAX_PAREN_GROUPING....#endif.
2761 * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
2762 reloc is the difference of two symbols defined in the same
2765 * config/tc-iq2000.c (line_comment_chars): Include the # character
2766 as otherwise this breaks #APP/#NO_APP processing.
2768 2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2770 * config/tc-arc.c(md_assemble): Remove dead code for handling
2771 immediate indexing of ld and st .
2773 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2774 Joseph Myers <joseph@codesourcery.com>
2776 * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
2777 %dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
2778 (parse_relocation): Check for a word break after a relocation
2780 (md_apply_fix3): Handle TLS relocations, and mark thread-local
2783 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2785 * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
2787 2005-03-02 Jan Beulich <jbeulich@novell.com>
2789 * as.c (main): Use unlink_if_ordinary instead of unlink.
2790 * messages.c (as_fatal): Likewise.
2792 2005-03-02 Jan Beulich <jbeulich@novell.com>
2794 * config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
2796 (parse_register): Allow cr8...15 in all modes.
2798 2005-03-02 Jan Beulich <jbeulich@novell.com>
2800 * config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
2801 etc. like normal symbol references (T_ID).
2803 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2805 * symbols.c (fb_label_name): Fix silly thinko in last change.
2807 2005-03-02 Alan Modra <amodra@bigpond.net.au>
2809 * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
2810 * config/tc-m68k.h (TARGET_WORD_SIZE): Delete.
2812 * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
2814 2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2817 * config/tc-arc.c (md_assemble): Initialize suffix for extension
2820 2005-03-01 Alan Modra <amodra@bigpond.net.au>
2822 * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
2824 * as.h (assert): Warning fix.
2825 * expr.c (expr): Correct assertion.
2826 * read.c (s_comm_internal): Remove assertion.
2827 * write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
2828 (fixup_segment): Remove assertion.
2829 * config/tc-dlx.c (machine_ip): Remove untrue assertions.
2830 (md_apply_fix3): Likewise.
2831 * config/tc-i370.c (md_begin): Correct assertion.
2832 (i370_macro): Warning fix for assertion.
2834 2005-03-01 Alan Modra <amodra@bigpond.net.au>
2836 * configure.in (AC_C_BIGENDIAN): Invoke.
2837 * configure: Regenerate.
2838 * write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
2839 host variable to set string header size.
2840 * config/obj-aout.c (obj_header_append): Don't use host structs.
2841 (obj_symbol_to_chars): Likewise.
2842 (obj_emit_strings): Likewise. Use the passed in output pointer.
2843 * config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
2844 * config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
2845 not sizeof host struct.
2846 (obj_header_append, obj_symbol_to_chars): Don't use host structs.
2847 (obj_emit_strings): Likewise.
2848 * config/obj-bout.h (EXEC_BYTES_SIZE): Define.
2849 (N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
2851 (H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
2853 (host_number_to_chars): Define.
2854 * config/obj-hp300.c (hp300_header_append): Don't use sizeof
2855 host internal struct to set header sizes.
2856 * config/tc-i960.c (md_number_to_field): Warning fix.
2857 (md_ri_to_chars): Use host byte order.
2858 (get_cdisp, md_apply_fix3): Warning fix.
2859 * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
2861 2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2863 * doc/c-arc.texi: Update documentation about ARC's extension
2866 2005-02-27 Svein E. Seldal <svein@dev.seldal.com>
2868 * config/tc-tic4x.c (tic4x_gen_to_words): Changed mail
2871 2005-02-23 Alan Modra <amodra@bigpond.net.au>
2873 * cgen.c: Warning fixes.
2874 * config/tc-arc.c: Likewise.
2875 * config/tc-arm.c: Likewise.
2876 * config/tc-avr.c: Likewise.
2877 * config/tc-d10v.c: Likewise.
2878 * config/tc-d30v.c: Likewise.
2879 * config/tc-frv.c: Likewise.
2880 * config/tc-frv.h: Likewise.
2881 * config/tc-h8300.c: Likewise.
2882 * config/tc-h8500.c: Likewise.
2883 * config/tc-i370.c: Likewise.
2884 * config/tc-i960.c: Likewise.
2885 * config/tc-ia64.c: Likewise.
2886 * config/tc-ip2k.c: Likewise.
2887 * config/tc-m68hc11.c: Likewise.
2888 * config/tc-maxq.c: Likewise.
2889 * config/tc-mcore.c: Likewise.
2890 * config/tc-mips.c: Likewise.
2891 * config/tc-msp430.c: Likewise.
2892 * config/tc-pj.c: Likewise.
2893 * config/tc-ppc.c: Likewise.
2894 * config/tc-ppc.h: Likewise.
2895 * config/tc-s390.c: Likewise.
2896 * config/tc-sh.c: Likewise.
2897 * config/tc-sh64.c: Likewise.
2898 * config/tc-tic4x.c: Likewise.
2899 * config/tc-tic80.c: Likewise.
2900 * config/tc-v850.c: Likewise.
2901 * config/tc-vax.c: Likewise.
2902 * config/tc-w65.c: Likewise.
2903 * config/tc-xstormy16.c: Likewise.
2904 * config/tc-z8k.c: Likewise.
2906 2005-02-22 Catherine Moore <clm@cm00re.com>
2908 * read.c (read_a_source_file): Reinstate TC_EQUAL_IN_INSN test.
2909 * doc/internals.texi (TC_EQUAL_IN_INSN): Reinstate.
2911 2005-02-22 Eric Christopher <echristo@redhat.com>
2913 * config/tc-mips.c (struct proc): Change isym to
2914 func_sym. New member func_end_sym.
2915 (s_mips_ent): Update.
2916 (s_mips_end): Ditto. Add code to compute function size.
2918 2005-02-22 Alan Modra <amodra@bigpond.net.au>
2920 * read.c: Warning fixes.
2921 * config/obj-elf.c: Likewise.
2923 2005-02-22 Maciej W. Rozycki <macro@mips.com>
2925 * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before
2928 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
2930 * config/obj-coff.c (obj_coff_section): Replace SEC_SHARED with
2933 * config/tc-tic54x.c (tic54x_bss): Replace SEC_BLOCK with
2935 (demand_empty_rest_of_line): Likewise.
2936 (tic54x_sblock): Likewise.
2937 (tic54x_clink): Replace with SEC_CLINK with SEC_TIC54X_CLINK.
2939 2005-02-21 Alan Modra <amodra@bigpond.net.au>
2941 * read.c (address_bytes): New function.
2942 (TC_ADDRESS_BYTES): Default for BSD_ASSEMBLER to address_bytes.
2943 (potable): Add "dc.a".
2944 (cons_worker): Handle "dc.a".
2945 * doc/internals.texi (TC_ADDRESS_BYTES): Document.
2947 2005-02-21 Alan Modra <amodra@bigpond.net.au>
2949 * input-file.c (input_file_open): Rearrange to avoid warning.
2951 2005-02-19 Alan Modra <amodra@bigpond.net.au>
2953 * config/tc-hppa.h (TC_EQUAL_IN_INSN): Delete.
2954 * read.c (read_a_source_file): Remove TC_EQUAL_IN_INSN test.
2955 * doc/internals.texi (TC_EQUAL_IN_INSN): Delete.
2957 2005-02-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2959 * config/tc-mips.c (macro_build_ldst_constoffset): Fail on $at
2960 uses after .set noat.
2961 (load_address): Likewise.
2962 (macro): Likewise. Don't try to avoid $at use by sacrificing
2963 the target register before it is stored, it won't work.
2965 2005-02-17 James E Wilson <wilson@specifixinc.com>
2967 * config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
2968 see an instruction that specifies a template.
2970 2005-02-18 Alan Modra <amodra@bigpond.net.au>
2972 * config/tc-openrisc.c (openrisc_relax_frag): Delete unused function.
2973 * config/tc-sparc.c (sparc_ip): Make op_exp static to silence warnings.
2974 * config/tc-tic80.c (build_insn): Init insn[1] to silence warning.
2976 2005-02-17 H.J. Lu <hongjiu.lu@intel.com>
2978 * NEWS: Mention "-mhint.b=[ok|warning|error]".
2980 * config/tc-ia64.c (md): Add hint_b.
2981 (emit_one_bundle): Handle md.hint_b for "hint".
2982 (md_parse_option): Accepted "-mhint.b=[ok|warning|error]".
2983 (md_show_usage): Add "-mhint.b=[ok|warning|error]".
2984 (ia64_init): Set md.hint_b to error.
2985 (md_assemble): Handle md.hint_b for "hint.b".
2987 * doc/as.texinfo: Add "-mhint.b=[ok|warning|error]".
2988 * doc/c-ia64.texi: Likewise.
2990 2005-02-17 Alan Modra <amodra@bigpond.net.au>
2992 * tc.h (struct relax_type, relax_typeS): Move from here..
2993 * as.h: ..to here. Make rlx_forward and rlx_backward an offsetT.
2994 * ecoff.c (ecoff_new_file): Add appfile param.
2995 * ecoff.h (ecoff_new_file): Likewise.
2996 * itbl-lex.h: New file.
2997 * itbl-lex.l: Include itbl-lex.h.
2998 * itbl-parse.y: Likewise.
2999 (insntbl_line, yyparse, yylex): Move to itbl-lex.h.
3000 * read.c (s_app_file_string): Mark appfile possibly unused.
3001 * subsegs.c (seg_not_empty_p): Make sec possibly unused.
3002 * subsegs.h (struct seg_info_trash): Delete.
3003 (seg_info): Use segment_info_type instead.
3004 * config/obj-coff.c (struct filename_list): Make filename const char *.
3005 * config/obj-ecoff.h (obj_app_file): Pass app to ecoff_new_file.
3006 * config/obj-elf.c (elf_file_symbol): Similarly.
3007 * config/tc-a29k.c (md_apply_fix3): Make val a valueT. Don't use
3009 * config/tc-arc.c (md_operand): Warning fix.
3010 * config/tc-arm.c (arm_parse_reloc): Only define when OBJ_ELF.
3011 (md_begin): Rearrange #if defined OBJ_COFF || defined OBJ_ELF.
3012 * config/tc-cris.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Use do while.
3013 * config/tc-frv.c (frv_force_relocation): Warning fix.
3014 * config/tc-m68k.c (md_parse_option): Delete unused var.
3015 * config/tc-mcore.c (mylog2): Rename from log2 throughout.
3016 * config/tc-sparc.c: Likewise.
3017 (s_common): Warning fix.
3018 * config/tc-mips.c (append_insn): Use unsigned long long expressions.
3019 * config/tc-mmix.c (PUSHJSTUB_MAX, PUSHJSTUB_MIN): Define from
3021 * config/tc-s390.c (s390_insn): Delete test of unsigned >= 0.
3022 * config/tc-sh.c (sh_cfi_frame_initial_instructions,
3023 sh_regname_to_dw2regnum): Only define for OBJ_ELF.
3024 * config/tc-tic4x.c (tic4x_insert_reg): Use ISLOWER.
3025 (tic4x_do_align): Use TIC_NOP_OPCODE.
3026 * config/tc-tic4x.h (TIC_NOP_OPCODE): Rename from NOP_OPCODE.
3027 * config/tc-vax.c: Include netinet/in.h.
3028 (tc_headers_hook): Formatting.
3029 * config/tc-xstormy16.c (md_pcrel_from_section): Correct parens.
3031 2005-02-17 Jan Beulich <jbeulich@novell.com>
3033 * config/tc-ia64.c (ia64_parse_name): Don't advance 'name' when
3034 parsing inN, locN, outN. Set 'idx' to offset register number starts
3035 at. Don't handle numbers with leading zeroes or beyond 95. Remove
3038 2005-02-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3040 * config/tc-mips.c (load_address): Fix formatting.
3041 (macro): Don't use AT if .set noat is in effect. Fix formatting.
3042 Catch macros which are unexpandable without AT. Remove duplicate
3044 (macro2): Remove duplicate zeroing of used_at.
3046 2005-02-16 Alan Modra <amodra@bigpond.net.au>
3048 * dw2gencfi.c (output_cie, output_fde): Use DW_CFA_nop rather
3051 2005-02-15 Nigel Stephens <nigel@mips.com>
3052 Maciej W. Rozycki <macro@mips.com>
3054 * config/tc-mips.c (reloc_needs_lo_p): Handle
3055 BFD_RELOC_MIPS16_HI16_S.
3056 (fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
3057 (append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
3058 and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
3060 (mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
3061 BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
3062 Call my_getSmallExpression() to parse percent operators.
3063 (percent_op_match, mips_percent_op): Separate definitions.
3064 (mips16_percent_op): Define percent operators for the MIPS16 mode.
3065 (parse_relocation): Handle the MIPS16 mode using
3067 (md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
3068 BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.
3070 2005-02-15 Jan Beulich <jbeulich@novell.com>
3072 * config/tc-ia64.c (md_apply_fix3): Call ia64_gen_real_reloc_type
3073 instead of explicitly dealing with the translation; exclude
3074 relocations that are already pcrel, however.
3076 2005-02-15 Jan Beulich <jbeulich@novell.com>
3078 * config/tc-ia64.c: Include limits.h (if available).
3079 (gr_values[0]): Set path to INT_MAX.
3080 (dot_reg_val): Don't allow changing value of r0. Limit range of
3081 general registers at r127.
3082 (specify_resource): Default resource index is -1. Don't set resource
3083 index (in case IA64_RS_RSE) without setting the specific flag.
3084 (note_register_values): Check operand is O_constant before tracking
3085 input value of moves. Add tracking for dep.z with constant inputs.
3086 (print_dependency): Resource index of specific resource may be zero.
3087 (check_dependencies): Likewise.
3089 2005-02-15 Jan Beulich <jbeulich@novell.com>
3091 * config/tc-ia64.c (parse_operands): New local variables reg1, reg2,
3092 reg_class. Check operands and emit diagnostics for illegal use of
3095 2005-02-15 Jan Beulich <jbeulich@novell.com>
3097 * config/tc-ia64.c (ia64_gen_real_reloc_type): Define and initialize
3098 new variables type, suffix, and width. Handle
3099 BFD_RELOC_IA64_DIR(32|64)[LM]SB in FUNC_LT_FPTR_RELATIVE case.
3100 Handle BFD_RELOC_IA64_DIR64[LM]SB in FUNC_TP_RELATIVE case. Add
3101 FUNC_DTP_MODULE case. Handle BFD_RELOC_IA64_DIR32[LM]SB in
3102 FUNC_DTP_RELATIVE case. Return incoming relocation type if
3103 BFD_RELOC_IA64_IPLT[LM]SB in FUNC_IPLT_RELOC case. Generate warning
3104 if unable to translate relocation type, using the new variables.
3106 2005-02-15 Jan Beulich <jbeulich@novell.com>
3108 * config/tc-ia64.h (ia64_symbol_chars): Declare.
3109 (ty_symbol_chars): Define.
3110 * config/tc-ia64.c (ia64_symbol_chars): Define.
3112 2005-02-15 Jan Beulich <jbeulich@novell.com>
3114 * config/tc-ia64.c (ia64_parse_name): Only update next character if
3115 input_line_pointer was advanced.
3117 2005-02-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3119 * config/tc-sh.c (md_apply_fix3): Add parentheses around &
3122 2005-02-13 Jan Beulich <jbeulich@novell.com>
3124 * config/tc-ia64.c (md_parse_option): Handle -xnone and -xdebugn.
3125 (md_show_usage): Add -xnone, -xdebugn, and -xdebugx. Relocate default
3127 (ia64_init): Set md.detect_dv.
3128 (ia64_start_line): New static variable warned. Warn only once when
3129 encountering explicit stops in automatic mode.
3130 * doc/c-ia64.texi: Describe -xnone, -xdebugn, and -xdebugx.
3131 * NEWS: Mention new default mode.
3133 2005-02-13 Jan Beulich <jbeulich@novell.com>
3135 * config/tc-ia64.c (dot_rot): Add comment that name strings should
3136 be freed when wiping out previous state. Canonicalize names before
3137 use. Free name string when detecting redefinition.
3138 (dot_pred_rel): Call generic expression parser to process arguments.
3139 Handle O_register case for individual predicates and O_subtract for
3141 (ia64_parse_name): Canonicalize name before looking it up in dynamic
3143 (ia64_canonicalize_symbol_name): Strip off all trailing # characters.
3144 Warn if multiple found, issue error if resulting symbol name has zero
3146 (dot_alias): Canonicalize name before use.
3148 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3150 * config/tc-ia64.c (unwind_diagnostic): Return -1 for warning
3152 (in_procedure): Return -1 for warning.
3153 (in_prologue): Likewise.
3154 (in_body): Likewise.
3156 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3158 * config/tc-ia64.c (dot_xdata): Undo the last change.
3159 (dot_float_cons): Likewise.
3160 (dot_xstringer): Likewise.
3161 (dot_xdata_ua): Likewise.
3162 (dot_float_cons_ua): Likewise.
3164 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3166 * NEWS: Mention "-munwind-check=[warning|error]".
3168 * config/tc-ia64.c (md): Add unwind_check.
3169 (unwind_diagnostic): New.
3170 (in_procedure): Call unwind_diagnostic when a directive isn't
3172 (in_prologue): Call unwind_diagnostic when a directive isn't in
3174 (in_body): Call unwind_diagnostic when a directive isn't in
3176 (dot_endp): Set md.unwind_check to error before calling
3177 in_procedure and restore it after. When the name is missing or
3178 couldn't be found, use the one from the last .proc if
3179 md.unwind_check isn't error. Warn if md.unwind_check is
3181 (md_parse_option): Handle "-munwind-check=[warning|error]".
3182 (md_show_usage): Add "-munwind-check=[warning|error]".
3183 (ia64_init): Set md.unwind_check to warning.
3185 * doc/as.texinfo: Add "-munwind-check=[none|warning|error]".
3186 * doc/c-ia64.texi: Likewise.
3188 2005-02-11 Jan Beulich <jbeulich@novell.com>
3190 * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
3192 (ia64_parse_name): New third parameter.
3193 (md_parse_name): Pass third argument.
3194 * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
3195 (md_operand): Handling of '@'-prefixed symbols moved from here...
3196 (ia64_parse_name): ...to here.
3198 2005-02-11 Jan Beulich <jbeulich@novell.com>
3200 * config/tc-ia64.c (md): Remove last_groups and group_idx.
3201 (errata_nop_necessary_p): Remove declaraction and definition.
3202 (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
3203 update md.group_idx. Don't reset md.last_groups.
3205 2005-02-11 Jan Beulich <jbeulich@novell.com>
3207 * config/tc-ia64.c (parse_section_name): Handle non-quoted first
3209 (dot_xdata): Free section name after use.
3210 (dot_float_cons): Likewise.
3211 (dot_xstringer): Likewise.
3212 (dot_xdata_ua): Likewise.
3213 (dot_float_cons_ua): Likewise.
3214 (md_pseudo_table): Add xdata16 and xdata16.ua.
3216 2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
3218 * doc/all.texi: Add IA64.
3219 * doc/as.texinfo: Likewise.
3221 * doc/c-ia64.texi: Fix typos.
3223 2005-02-10 Julian Brown <julian@codesourcery.com>
3225 * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
3227 (do_t_push_pop): Likewise.
3228 (md_assemble): Likewise.
3229 (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
3230 BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
3231 (create_unwind_entry): Output dependency on the required personality
3234 2005-02-07 Nathan Sidwell <nathan@codesourcery.com>
3236 * as.h (seg_not_empty_p): Return int, not bfd_boolean.
3237 * subsegs.c (seg_not_empty_p): Likewise.
3239 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
3241 * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
3242 relative jump calculation.
3243 <md_convert_frag) : Likewise.
3244 <output_disp): Likewise.
3246 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
3248 * write.c (write_object_file): Recognize warning-symbol construct
3249 and skip object- and target- handling for the second symbol.
3251 2005-02-02 Jan Beulich <jbeulich@novell.com>
3253 * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
3254 designators along with quoted ones. Free copy of quoted designator
3257 2005-02-01 Ben Elliston <bje@au.ibm.com>
3259 * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
3260 config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
3261 config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
3262 config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
3263 config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
3264 config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
3265 config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
3266 config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
3267 config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
3268 config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
3269 config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
3270 config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
3271 config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
3272 #if 0'd code throughout.
3274 2005-01-31 Nick Clifton <nickc@redhat.com>
3276 * as.c (parse_args): Bump copyright date reported by --version to
3279 2005-01-31 Nick Clifton <nickc@redhat.com>
3281 * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
3284 2005-01-31 Jan Beulich <jbeulich@novell.com>
3286 * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
3287 that can end with .endr in that case. Make requiring/permitting
3288 pseudo-ops without leading dot closer to the logic in read.c serving
3290 (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
3293 2005-01-31 Jan Beulich <jbeulich@novell.com>
3295 * macro.c (do_formals): Adjust to no longer accept empty parameter
3297 (define_macro): Adjust to no longer accept empty macro name, garbage
3298 following the parameters, or macros that were previously defined.
3299 * read.c (s_bad_end): Declare.
3300 (potable): Add endm. Handler for endr and endm is s_bad_end.
3301 (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
3303 * read.h (s_bad_endr): Remove.
3305 2005-01-31 Jan Beulich <jbeulich@novell.com>
3307 * config/tc-ia64.c (parse_operands): Parse all specified operands,
3308 immediately discarding (but counting) those exceeding the maximum
3309 possible amount. Track whether output and input operand counts ever
3310 matched, and use this to better indicate which of the operands/
3311 operand types was wrong; specifically don't default to pointing to
3314 2005-01-31 Jan Beulich <jbeulich@novell.com>
3316 * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
3317 variable in dot_endp). Add body and insn. Make prologue,
3318 prologue_mask, body, and insn bitfields.
3319 (fixup_unw_records): Remove spurious new-lines from end of diagnostic
3321 (in_procedure, in_prologue, in_body): New.
3322 (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
3323 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
3324 dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
3325 dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
3326 dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
3327 dot_personality): Use the appropriate one of the above.
3328 (dot_proc): Clear unwind.proc_start; set to current location only if
3329 none of the entry points were valid. Check for non-zero-length entry
3330 point names. Check that entry points aren't defined, yet. Clear
3331 unwind.prologue, unwind.body, and unwind.insn.
3332 (dot_body): Call in_procedure. Check that first directive in procedure
3333 had no insns emitted before. Set unwind.body.
3334 (dot_prologue): Call in_procedure. Check that not already in prologue.
3335 Check that first directive in procedure had no insns emitted before.
3337 (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
3338 length entry point names. Check that entry points became defined.
3339 (md_assemble): Set unwind.insn once unwind.proc_start is defined.
3341 2005-01-31 Jan Beulich <jbeulich@novell.com>
3343 * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
3344 before actually using it. Don't generate an error in manual bundling
3345 mode when looking at an insn requiring slot 2 but not yet at slot 2.
3346 Don't generate an error in manual bundling mode when looking at an
3347 insn required to be last in its group but the required slot hasn't
3348 been reached, yet. Allow conversion from MII to MI;I for bundle
3349 consisting of only 2 insns with the stop between them. Suppress
3350 various meaningless errors resulting from detecting earlier ones.
3352 2005-01-31 Jan Beulich <jbeulich@novell.com>
3354 * config/tc-ia64.c (parse_operands): Also handle alloc without first
3357 2005-01-28 Christian Groessler <chris@groessler.org>
3359 * config/tc-z8k.c (md_assemble): Improve error detection.
3361 2005-01-28 Jan Beulich <jbeulich@novell.com>
3363 * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
3364 for personality routine pointer only if there is one.
3365 (ia64_convert_frag): Likewise.
3366 (generate_unwind_image): Likewise.
3368 2005-01-27 Christian Groessler <chris@groessler.org>
3370 * config/tc-z8k.c (INSERT): Remove, not used anywhere.
3371 (md_apply_fix3): Make relative branches out of range an error
3372 instead of a warning. Display correct line number for out of
3373 range branches/calls/memory accesses.
3375 2005-01-27 Nathan Sidwell <nathan@codesourcery.com>
3377 * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
3378 to emit .debug_line and other debug sections.
3379 * as.h (seg_not_empty_p): Declare.
3380 * subsegs.c (seg_not_empty_p): New predicate.
3382 2005-01-27 Andrew Cagney <cagney@gnu.org>
3384 * configure: Regenerate to track ../gettext.m4 change.
3386 2005-01-27 Jan Beulich <jbeulich@novell.com>
3388 * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
3390 2005-01-27 Jan Beulich <jbeulich@novell.com>
3392 * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
3393 to/from application registers dynamic insns.
3394 (md_assemble): Defer resolution of move to/from application registers
3395 dynamic insns when they can be issued on either the I- or M-units.
3397 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
3399 * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
3400 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
3401 * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
3402 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
3403 * cgen.c (gas_cgen_parse_operand): Handle
3404 CGEN_PARSE_OPERAND_SYMBOLIC.
3405 * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
3406 (frv_force_relocation): Likewise. Fix handling of PIC
3408 (md_apply_fix3): Likewise.
3410 2005-01-21 Ben Elliston <bje@au.ibm.com>
3412 * as.h: Remove #if 0'd code.
3413 * atof-generic.c (atof_generic): Likewise.
3414 * ecoff.c (ecoff_directive_frame): Likewise.
3415 * frags.h (FRAG_APPEND_1_CHAR): Likewise.
3416 * itbl-ops.c (itbl_add_reg): Likewise.
3417 * listing.c (calc_hex): Likewise.
3418 * read.c (MASK_CHAR): Likewise.
3419 * subsegs.c (subsegs_print_statistics): Likewise.
3420 * symbols.c (indent): Likewise.
3421 * write.c (write_relocs): Likewise.
3422 (write_object_file): Likewise.
3423 (relax_frag): Likewise.
3425 2005-01-20 Nick Clifton <nickc@redhat.com>
3427 * as.c (std_longopts): Add an entry for "--a" in order to prevent
3428 getopt_long_only() from considering -a as an abbreviation for
3430 (parse_args): Fix the parsing of -a=<file>.
3432 2005-01-20 Alan Modra <amodra@bigpond.net.au>
3435 * read.c (s_incbin): Adjust default count for skip. Check validity
3436 of count and skip rigorously.
3438 2005-01-19 Fred Fish <fnf@specifixinc.com>
3440 * config/tc-mips.c (dummy_opcode): Add init for new struct member.
3442 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
3444 * read.c (convert_to_bignum): New function, split out from...
3445 (emit_expr): ...here. Handle the case where X_add_number is
3446 positive and the input value is negative.
3447 (output_big_sleb128): Fix setting of continuation bit. Check whether
3448 the final byte needs to be sign-extended. Fix size-shrinking loop.
3449 (emit_leb128_expr): When generating a signed leb128, see whether the
3450 sign of an O_constant's X_add_number matches the sign of the input
3451 value. Use a bignum if not.
3453 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
3455 * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
3456 arch_sh_up in order to match the external name and make the
3457 testsuite's job easier.
3459 2005-01-14 H.J. Lu <hongjiu.lu@intel.com>
3462 * config/tc-i386.c (i386_scale): Disallow 0 scale.
3464 2005-01-12 Nick Clifton <nickc@redhat.com>
3466 * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
3467 ignored_arguments array.
3469 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
3471 * write.c (write_object_file): Disallow a symbol equated to
3474 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
3476 * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
3478 (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
3479 (maxq_target): New function: Set the machine type.
3481 2005-01-06 Paul Brook <paul@codesourcery.com>
3483 * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
3484 (md_begin): Handle TE_VXWORKS for FP defaults.
3485 (md_apply_fix3): Correct rela offsets.
3486 (elf32_arm_target_format): Add VxWorks targets.
3488 2005-01-06 Paul Brook <paul@codesourcery.com>
3490 * configure.tgt: Set em=vxworks for *-*-vxworks.
3491 * config/te-vxworks.h: New File.
3493 2005-01-06 Paul Brook <paul@codesourcery.com>
3495 * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
3497 2005-01-04 Dmitry Diky <diwil@spec.ru>
3499 * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
3502 2005-01-03 David Mosberger <davidm@hpl.hp.com>
3504 * config/tc-ia64.c (md): Add member "loc_directive_seen".
3505 (dot_loc): New function.
3506 (md_pseudo_table): Add entry to map .loc to dot_loc().
3507 (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
3508 seen a .loc directive or we're generating DWARF2 debug info for
3511 2004-12-29 Alan Modra <amodra@bigpond.net.au>
3514 * read.c (s_comm_internal): Don't zero end of name until size
3515 expression has been parsed.
3517 2004-12-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3519 * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
3521 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
3523 * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
3526 2004-12-22 Ian Lance Taylor <ian@airs.com>
3528 * configure.tgt: New.
3529 * configure.in: Move setting of cpu_type, fmt, etc., to
3531 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
3532 $(srcdir)/configure.tgt.
3533 * configure, Makefile.in: Rebuild.
3535 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
3537 * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
3538 R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
3540 (avr_offset_expression): New function to parse offsets for LDI
3542 (avr_operand): Use it.
3543 (md_apply_fix3): Generate the relocs.
3545 2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>
3547 * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
3548 BFD_RELOC_SH_IMMS10BY8 relocation.
3550 * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
3551 than just ignoring bad code.
3553 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
3555 * config/tc-v850.c (handle_lo16): New function.
3556 (v850_reloc_prefix): Use it to check lo().
3557 (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
3559 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
3561 * configure.in: Add s390x-ibm-tpf support.
3562 * configure: Regenerate.
3564 2004-12-15 Jan Beulich <jbeulich@novell.com>
3566 * config/obj-elf.c (obj_elf_change_section): Only set type and
3567 attributes on new sections. Emit warning when type of re-declared
3568 section doesn't match.
3570 2004-12-15 Jan Beulich <jbeulich@novell.com>
3572 * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
3573 '.cfi_startproc simple' doesn't inherit the old value.
3575 2004-12-15 Jan Beulich <jbeulich@novell.com>
3577 * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
3578 to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
3579 generation to emit a factored offset.
3581 2004-12-10 Ian Lance Taylor <ian@wasabisystems.com>
3583 * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
3584 which is too large in the case of NO_PIC without 64-bit
3587 * config/tc-mips.c (mips_in_shared): New static variable.
3588 (macro_build_lui): Permit "_gp" if !mips_in_shared.
3589 (md_longopts): Add -mshared and -mno-shared.
3590 (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
3591 (s_cpload): Implement !mips_in_shared case.
3592 (s_cpsetup): Likewise.
3593 * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
3594 * NEWS: Mention -mno-shared.
3596 2004-12-09 Paul Brook <paul@codesourcery.com>
3598 * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
3601 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
3603 * config/tc-mips.c (append_insn): If we emit a nop during a relax
3604 sequence, increase the size of the sequence.
3606 * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
3609 2004-12-07 Ben Elliston <bje@gnu.org>
3611 * read.c (s_align): Use an align_limit temporary to allay a GCC
3612 signed/unsigned comparison warning.
3614 2004-12-01 Mark Mitchell <mark@codesourcery.com>
3616 * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
3617 * configure.in: Use it for arm*-*-linux-gnueabi*.
3618 * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
3619 * config/te-armlinuxeabi.h: New file.
3620 * Makefile.in: Regenerated.
3621 * aclocal.m4: Likewise.
3622 * configure: Likewise.
3623 * doc/Makefile.in: Regenerated.
3625 2004-12-02 Bob Wilson <bob.wilson@acm.org>
3627 * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
3628 (xtensa_restore_emit_state): Likewise.
3630 2004-12-02 Alan Modra <amodra@bigpond.net.au>
3632 * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
3635 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
3637 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
3638 * Makefile.in: Regenerate.
3640 2004-11-29 Tomer Levi <Tomer.Levi@nsc.com>
3642 * config/tc-crx.c: Major code cleanup. Remove unused variables and
3643 functions, give functions a meaningful name, add comments.
3644 (check_range): New function - Replace operand size calculation
3645 with range checking.
3646 (assemble_insn): Update Algorithm, improve error issuing.
3648 (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
3651 2004-11-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3653 * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
3654 miss between different section in the same module.
3655 (tc_gen_reloc): Likewise.
3657 2004-11-25 Theodore A. Roth <troth@openavr.org>
3659 * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
3660 atmega325, atmega3250, atmega645 and atmega6450.
3662 2004-11-25 Jan Beulich <jbeulich@novell.com>
3664 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
3665 permissible for the selected instruction suffix.
3666 (process_suffix): For DefaultSize instructions, suppressing the
3667 guessing of a 'q' suffix if the instruction doesn't support it is
3668 pointless, because only an 'l' suffix can be guessed in this place.
3670 2004-11-24 Nick Clifton <nickc@redhat.com>
3672 * config/tc-iq2000.c: Remove support for IQ10 processor.
3673 Convert to ISO C90 formatting.
3674 * config/tc-iq2000.h: Likewise.
3676 2004-11-23 Nick Clifton <nickc@redhat.com>
3678 * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
3679 in this table. They should be correct now.
3681 2004-11-23 Jan Beulich <jbeulich@novell.com>
3683 * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
3684 indicate the MMX extensions added by both SSE and 3DNow!A.
3685 (Cpu3dnowA): Declare.
3686 (CpuUnknownFlags): Update.
3687 * config/tc-i386.c (cpu_sub_arch_name): Declare.
3688 (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
3689 neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
3690 3DNow!. Athlon additionally implies 3DNow!A. Several new
3691 entries (those starting with a dot are for sub-arch specification).
3692 (set_cpu_arch): Handle sub-arch specifications.
3693 (parse_insn): Distinguish between instructions not supported because
3694 of insufficient CPU features and because of 64-bit mode.
3695 * doc/c-i386.texi: Describe enhanced .arch directive.
3697 2004-11-22 Bob Wilson <bob.wilson@acm.org>
3699 * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
3701 2004-11-22 Bob Wilson <bob.wilson@acm.org>
3703 * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
3704 without a corresponding .debug_info section.
3706 2004-11-22 Hans-Peter Nilsson <hp@axis.com>
3708 * read.c (potable): Add "error" and "warning".
3709 (s_errwarn): New function.
3710 * read.h (s_errwarn): Declare.
3711 * doc/as.texinfo (Error, Warning): Document .error and .warning.
3713 2004-11-22 Nick Clifton <nickc@redhat.com>
3715 * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
3718 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3720 * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
3721 struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
3723 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3725 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
3726 (coff_adjust_symtab): Adjust call.
3727 (crawl_symbols): Likewise.
3728 * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
3729 (obj_app_file): Adjust.
3731 2004-11-18 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3733 * configure.in: Enable bfd_assember for the MAXQ port.
3734 * configure: Regenerate.
3736 2004-11-12 Bob Wilson <bob.wilson@acm.org>
3737 Sterling Augustine <sterling@tensilica.com>
3739 * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
3740 there is a conflict.
3741 (check_t1_t2_reads_and_writes): Check for both reads and writes to
3742 interfaces that are related as determined by xtensa_interface_class_id.
3744 2004-11-12 Nick Clifton <nickc@redhat.com>
3746 * config/tc-mn10300.c (md_relax_table): Fix off by one negative
3747 offsets for conditional branches.
3749 2004-11-11 Bob Wilson <bob.wilson@acm.org>
3751 * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
3753 2004-11-10 Bob Wilson <bob.wilson@acm.org>
3755 * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
3756 relaxing at the end of a loop. Don't mark frags as UNREACHABLE or
3758 (relax_frag_immed): Update call to update_next_frag_state.
3760 2004-11-10 Alan Modra <amodra@bigpond.net.au>
3762 * obj.h (struct format_ops <app_file>): Add int param.
3763 * read.h (s_app_file_string): Likewise.
3764 * read.c (s_app_file_string): Likewise.
3765 (s_app_file): Adjust s_app_file_string call.
3766 * config/tc-mips.c (s_mips_file): Likewise.
3767 * config/obj-coff.h (obj_app_file): Add app param.
3768 * config/obj-ecoff.h (obj_app_file): Likewise.
3769 * config/obj-multi.h (obj_app_file): Likewise.
3770 * config/obj-elf.h (elf_file_symbol): Likewise.
3771 * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
3772 if called for # preprocessor lines.
3774 2004-11-08 H.J. Lu <hongjiu.lu@intel.com>
3777 * symbols.c (resolve_symbol_value): Convert weak symbols only
3779 (symbol_equated_reloc_p): Don't equate weaks when relocating
3780 only for Windows PECOFF.
3782 2004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
3784 * config/tc-crx.c (print_insn): Check and set insn_addr.
3785 * config/tc-crx.h (md_frag_check): Define.
3787 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
3788 Vineet Sharma <vineets@noida.hcltech.com>
3790 * configure.in: Add support for new target maxq-coff.
3791 * configure: Regenerate.
3792 * NEWS: Mention new support.
3793 * config/tc-maxq.c: New file.
3794 * config/tc-maxq.h: New file.
3795 * config/obj-coff.h: Add support for maxq-coff.
3797 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3799 * symbols.c (any_external_name): Define.
3800 (resolve_symbol_value): Convert weak symbols.
3801 (S_SET_EXTERNAL): Support any_external_name.
3802 (S_SET_NAME): Qualify parameter const.
3803 (symbol_equated_reloc_p): Equate to weaks when relocating.
3804 * symbols.h (S_SET_NAME): Qualfiy parameter const.
3805 * tc.h (any_external_name): Declare.
3806 * config/obj-coff.c ("coff/pe.h"): Include for BFD
3808 (weak_is_altname): Declare and define.
3809 (weak_name2altname): Same.
3810 (weak_altname2name): Same.
3811 (weak_uniquify): Same.
3812 (weak_altprefix): Define.
3813 (obj_coff_weak): Change .weak syntax and handling.
3814 (coff_frob_symbol): Fix PE weak symbol alternates.
3815 * config/obj-coff.h (USE_UNIQUE): Define.
3816 * config/tc-i386.c (md_apply_fix3): Assume weak symbols
3817 are in another segment.
3818 (tc_gen_reloc): Remove broken addend hack.
3819 doc/as.texinfo: Update.
3821 2004-11-05 Sterling Augustine <sterling@tensilica.com>
3823 * config/tc-xtensa.c (total_frag_text_expansion): New.
3824 (md_estimate_size_before_relax): Use it.
3825 (find_address_of_next_align_frag): Likewise.
3827 2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
3829 * config/tc-crx.c: Rename argument types.
3830 (processing_arg_number): Rename to 'cur_arg_num'.
3831 (get_number_of_bits): Rename to 'set_operand_size'.
3832 (get_operandtype): Rename to 'parse_operand', totally rewrite.
3833 (set_cons_rparams): Rename to 'set_operand', totally rewrite.
3834 (set_indexmode_parameters): Remove function, integrate its code into
3836 (set_operand_size): Get rid of 'Operand Number' function parameter -
3837 use global variable 'cur_arg_num' instead.
3838 Use a local 'argument' pointer to reference the current argument.
3839 (parse_operand): Likewise.
3840 (set_operand): Likewise.
3841 (process_label_constant): Likewise.
3843 2004-11-04 Bob Wilson <bob.wilson@acm.org>
3845 * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
3846 (add_section_rename): Delete. Inlined into...
3847 (build_section_rename): ...here. Use xstrdup instead of strdup.
3848 (xtensa_section_rename): Drop "const" from argument and return types.
3849 (md_show_usage): Indent to match show_usage().
3850 * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
3851 (tc_canonicalize_section_name): Define.
3852 (md_elf_section_rename): Remove unused macro.
3853 * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
3854 * doc/c-xtensa.texi (Xtensa Options): Likewise.
3855 (Frame Directive): Delete.
3857 2004-11-04 Daniel Jacobowitz <dan@debian.org>
3859 * configure.in: Remove arm-*-oabi and thumb-*-oabi.
3860 * config/tc-arm.c (target_oabi): Delete.
3861 (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
3862 (arm_opts): Remove moabi.
3863 * doc/as.texinfo (Overview): Remove documentation of -moabi.
3864 * doc/c-arm.texi (ARM Options): Likewise.
3865 * configure: Regenerated.
3867 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
3869 * configure.in (crisv32): Recognize. AC_DEFINE_UNQUOTED
3870 DEFAULT_CRIS_ARCH. Handle crisv32-*-linux-gnu* like
3871 cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
3872 * configure: Regenerate.
3873 * config/tc-cris.c (enum cris_archs): New.
3874 (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
3875 (cris_insn_ver_valid_for_arch): New functions.
3876 (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
3877 (cris_arch): New variable.
3878 (md_pseudo_table): New pseudo .arch.
3879 (err_for_dangerous_mul_placement): Initialize according to
3881 (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
3883 (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
3884 (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
3885 (BRANCH_WF_V32, BRANCH_WB_V32): New.
3886 (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
3887 use in md_cris_relax_table.
3888 (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
3889 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3890 Update and improve head comment.
3891 (OPTION_PIC): Define in terms of previous option, OPTION_US.
3892 (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
3894 (md_longopts): New option --march=...
3895 (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
3897 (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
3898 (HANDLE_RELAXABLE): New macro.
3899 (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
3900 cases. Check for weak symbols and assume not relaxable. Handle
3901 STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
3902 STATE_ABS_BRANCH_V32, STATE_LAPC. Use new variable symbolP, not
3904 (md_convert_frag): Handle STATE_COND_BRANCH_V32,
3905 STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
3906 (cris_create_short_jump): Adjust for CRISv32.
3907 (cris_relax_frag): Handle new states.
3908 (md_create_long_jump): Ditto. Emit error for common_v10_v32.
3909 (md_begin): Define symbols "..asm.arch.cris.v32",
3910 "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
3911 "..asm.arch.cris.any_v0_v10". Use cris_insn_ver_valid_for_arch
3912 when entering opcode table entry points.
3913 (md_assemble): Adjust branch handling for CRISv32. Handle LAPC
3914 relaxation. In fix_new_exp call for main insn, pass 1 for pcrel
3915 parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
3916 (cris_process_instruction): Initialize out_insnp->insn_type to
3917 CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
3918 <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
3920 <case 'm'>: Check that modified_char == '.'.
3921 <invalid operands>: Consume the rest of the line.
3922 When operands don't match, skip over subsequent insns with
3923 non-matching version specifier but same mnemonic.
3924 <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
3925 special registers in CRISv32 are always 32 bit long.
3926 <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
3928 (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
3929 and compatible. Recognize "ACR" for v32, unless followed by "+".
3930 (get_spec_reg): Consider cris_arch when looking up register.
3931 (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
3933 (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
3934 (cris_get_expression): Restore input_line_pointer if failing "early".
3935 (get_flags): Consider cris_arch and recognize flags accordingly.
3936 (branch_disp): Adjust for CRISv32.
3937 (gen_cond_branch_32): Similar. Emit error for common_v10_v32.
3938 (cris_number_to_imm): Use as_bad_where, not as_bad. Remove
3939 related FIXME. Don't insist on BFD_RELOC_32_PCREL fixup to be
3940 resolved. Don't enter zeros in object file for
3942 <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
3943 <case BFD_RELOC_CRIS_SIGNED_8>: New case.
3944 (md_parse_option): Break out "return 1".
3945 <OPTION_ARCH> New case.
3946 (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
3947 <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
3948 <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
3949 <case BFD_RELOC_32_PCREL>: New cases.
3950 Addends for non-zero fx_pcrel are too in fx_offset.
3951 (md_show_usage): Show --march=<arch>.
3952 (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
3953 (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
3954 (s_syntax) <struct syntaxes>: Properly constify member operand.
3955 * config/tc-cris.h (TARGET_MACH): Define.
3956 (cris_mach): Declare.
3957 * doc/as.texinfo (Overview) <CRIS>: Add --march=...
3958 * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
3959 (CRIS-Opts): Document --march=...
3960 (CRIS-Pseudos): Document .arch.
3962 2004-11-04 Jan Beulich <jbeulich@novell.com>
3964 * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
3965 intel syntax and no register prefix, allow $ in symbol names when
3967 (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
3968 (intel_float_operand): Add fourth return value indicating math control
3969 operations. Make classification more precise.
3970 (md_assemble): Complain if memory operand of mov[sz]x has no size
3972 (parse_insn): Translate word operands to floating point instructions
3973 operating on integers as well as control instructions to short ones
3974 as expected by AT&T syntax. Translate 'd' suffix to short one only for
3975 floating point instructions operating on non-integer operands.
3976 (match_template): Remove fldcw special case. Adjust q-suffix handling
3977 to permit it on fild/fistp/fisttp in AT&T mode.
3978 (process_suffix): Don't guess DefaultSize insns' suffix from
3979 stackop_size for certain floating point control instructions. Guess
3980 suffix for branch and [ls][gi]dt based on flag_code. Split error
3981 messages for Intel and AT&T syntax, and make the condition more strict
3982 for the former. Adjust suppressing of generation of operand size
3984 (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
3985 OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
3986 more error checking.
3987 * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
3988 SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
3990 2004-11-03 Hans-Peter Nilsson <hp@axis.com>
3992 * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
3993 md_short_jump_size, md_long_jump_size.
3994 * write.c [!WORKING_DOT_WORD]: Ditto.
3995 * tc.h [!WORKING_DOT_WORD]: Declare them here. Drop const
3997 * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
3999 * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
4000 const qualifier in these definitions.
4001 * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
4002 config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
4004 2004-11-02 Nick Clifton <nickc@redhat.com>
4006 * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
4007 table before deciding to produce a .debug_line section to match up
4008 with a user provided .debug_info section.
4010 2004-10-28 Tomer Levi <Tomer.Levi@nsc.com>
4012 * config/tc-crx.c (getreg_image): Bug fix, a return value was
4013 mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
4015 2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
4017 * config/tc-crx.c: Remove global variable 'post_inc_mode'.
4018 (get_flags): New function.
4019 (get_number_of_bits): Edit comments, update numeric values to
4021 (process_label_constant): Don't support the colon
4022 format (SYMBOL:[s|m|l]).
4023 (set_cons_rparams): Support argument type 'arg_rbase'.
4024 (get_operandtype): Bug fix in 'rbase' operand type parsing.
4025 (handle_LoadStor): Bug fix, first handle post-increment mode.
4026 (getreg_image): Remove redundant code, update according to latest
4028 (print_constant): Bug fix relate to 3-word instructions.
4029 (assemble_insn): Bug fix, when matching instructions, verify also
4030 instruction type (not only mnemonic).
4031 Add various error checking.
4032 (preprocess_reglist): Support HI/LO and user registers.
4034 2004-10-25 David Mosberger-Tang <davidm@hpl.hp.com>
4036 * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
4037 in an epilogue directive go negative.
4039 2004-10-25 H.J. Lu <hongjiu.lu@intel.com>
4042 * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
4043 after reporting template error during manual bundling. Reported
4044 by Michael Dupont, michaelx.dupont@intel.com.
4046 2004-10-25 Daniel Jacobowitz <dan@debian.org>
4048 * Makefile.am: Run dep-am.
4049 * aclocal.m4: Regenerate with automake 1.9.2.
4050 * Makefile.in: Regenerate with automake 1.9.2.
4051 * doc/Makefile.in: Likewise.
4053 * config/tc-arm.c: Include "dw2gencfi.h".
4054 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
4056 * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
4057 (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
4058 (tc_cfi_frame_initial_instructions): Define.
4059 (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
4062 2004-10-21 Tomer Levi <Tomer.Levi@nsc.com>
4064 * config/tc-crx.c (assemble_insn): Check unsigned immediate
4066 Update coprocessor id to be unsigned immediate.
4068 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4070 * config/tc-i386.c (O_secrel): Delete.
4071 (tc_pe_dwarf2_emit_offset): New function.
4072 * config/tc-i386.h (O_secrel): Define as O_md1.
4073 (TC_DWARF2_EMIT_OFFSET): Define.
4075 2004-10-18 Nick Clifton <nickc@redhat.com>
4077 * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
4078 ignore @fptr() directives for 4-byte fixups.
4080 2004-10-15 Alan Modra <amodra@bigpond.net.au>
4082 * Makefile.am: Run "make dep-am"
4083 * Makefile.in: Regenerate.
4085 2004-10-14 Bob Wilson <bob.wilson@acm.org>
4087 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
4088 Remove comments about placement of literal pools.
4089 (Literal Directive): Update description of literal placement.
4090 (Literal Prefix Directive): Remove statement that this does not apply
4091 to absolute-mode literals. Describe new section naming scheme.
4093 2004-10-12 Bob Wilson <bob.wilson@acm.org>
4095 * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
4096 (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
4097 is_windowed_return_opcode): Delete.
4098 (xtensa_frob_label): Use get_subseg_target_freq.
4099 (md_assemble): Inline call to is_entry_opcode.
4100 (xtensa_handle_align): Inline call to get_frag_is_literal.
4101 (relaxation_requirements): Inline call to is_jx_opcode.
4102 (emit_single_op): Inline call to is_movi_opcode.
4103 (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
4104 get_frag_is_no_transform, is_entry_opcode, and
4105 set_frag_is_specific_opcode. Use get_subseg_total_freq.
4106 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
4107 xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
4108 Inline calls to get_frag_is_no_transform.
4109 (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
4110 (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
4111 get_frag_is_no_transform.
4112 (convert_frag_immed_finish_loop): Inline calls to get_expression_value
4113 and set_frag_is_no_transform.
4114 (get_expression_value): Delete.
4115 (subseg_map struct): Rename cur_total_freq to total_freq. Rename
4116 cur_target_freq to target_freq.
4117 (get_subseg_info): Split out code to create a new map entry into ...
4118 (add_subseg_info): ... this new function.
4119 (get_last_insn_flags): Check if get_subseg_info succeeded.
4120 (set_last_insn_flags): Call add_subseg_info if needed.
4121 (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
4122 (xtensa_reorder_segments): Compute last_sec while counting sections.
4123 Remove call to get_last_sec.
4124 (get_last_sec): Delete.
4125 (cache_literal_section): Inline call to retrieve_literal_seg and its
4126 callees, seg_present and add_seg_list.
4127 (retrieve_literal_seg, seg_present, add_seg_list): Delete.
4128 (get_frag_is_insn, get_frag_is_no_transform,
4129 set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
4130 * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
4132 2004-10-12 Bob Wilson <bob.wilson@acm.org>
4134 * config/tc-xtensa.c: Use ISO C90 formatting.
4135 * config/tc-xtensa.h: Likewise.
4136 * config/xtensa-istack.h: Likewise.
4137 * config/xtensa-relax.c: Likewise.
4138 * config/xtensa-relax.h: Likewise.
4140 2004-10-12 Paul Brook <paul@codesourcery.com>
4142 * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
4145 * doc/c-arm.texi: Document that we actually support -meabi=4, not
4148 2004-10-08 Bob Wilson <bob.wilson@acm.org>
4150 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
4152 (Acknowledgements): Use "GAS" instead of AS variable.
4154 2004-10-08 Daniel Jacobowitz <dan@debian.org>
4156 * config/tc-i386.c: Include "elf/x86-64.h".
4157 (i386_elf_section_type): New function.
4158 * config/tc-i386.h (md_elf_section_type): Define.
4159 (i386_elf_section_type): New prototype.
4161 2004-10-08 Linus Nielsen Feltzing <linus@haxx.se>
4163 * config/m68k-parse.h (enum m68k_register): New control register,
4165 * config/tc-m68k.c: Correct control register set for MCF5249.
4167 2004-10-07 Bob Wilson <bob.wilson@acm.org>
4168 Sterling Augustine <sterling@tensilica.com>
4170 * config/tc-xtensa.c (absolute_literals_supported): New global flag.
4171 (UNREACHABLE_MAX_WIDTH): Define.
4172 (XTENSA_FETCH_WIDTH): Delete.
4173 (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
4174 prefer_const16, prefer_l32r): New global variables.
4175 (LIT4_SECTION_NAME): Define.
4176 (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
4177 (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
4178 (frag_flags struct): New.
4179 (xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
4180 (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
4181 (bitfield, bit_is_set, set_bit, clear_bit): Define.
4182 (MAX_FORMATS): Define.
4183 (op_placement_info struct, op_placement_table): New.
4184 (O_pltrel, O_hi16, O_lo16): Define.
4185 (directiveE enum): Rename directive_generics to directive_transform.
4186 Delete directive_relax. Add directive_schedule,
4187 directive_absolute_literals, and directive_last_directive.
4188 (directive_info): Rename "generics" to "transform". Delete "relax".
4189 Add "schedule" and "absolute-literals".
4190 (directive_state): Adjust entries to match changes in directive_info.
4191 (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
4192 (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
4193 xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
4194 (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
4195 (align_only_targets, software_a0_b_retw_interlock,
4196 software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
4197 software_avoid_short_loop, software_avoid_close_loop_end,
4198 software_avoid_all_short_loops, specific_opcode): Delete.
4199 (warn_unaligned_branch_targets): New.
4200 (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
4201 workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
4202 (option_[no_]link_relax, option_[no_]transform,
4203 option_[no_]absolute_literals, option_warn_unaligned_targets,
4204 option_prefer_l32r, option_prefer_const16, option_target_hardware):
4206 (option_[no_]align_only_targets, option_literal_section_name,
4207 option_text_section_name, option_data_section_name,
4208 option_bss_section_name, option_eb, option_el): Delete.
4209 (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
4210 warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
4211 and target-hardware. Delete entries for [no-]target-align-only,
4212 literal-section-name, text-section-name, data-section-name, and
4214 (md_parse_option): Handle new options and remove old ones. Accept but
4215 ignore [no-]density options. Warn for [no-]generics and [no-]relax
4216 and treat them as [no-]transform.
4217 (md_show_usage): Add new options and remove old ones.
4218 (xtensa_setup_hw_workarounds): New.
4219 (md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
4220 "long", "short", "loc" and "frequency" entries.
4221 (use_generics): Rename to ...
4222 (use_transform): ... this function. Add past_xtensa_end check.
4223 (use_longcalls): Add past_xtensa_end check.
4224 (code_density_available, can_relax): Delete.
4225 (do_align_targets): New.
4226 (get_directive): Accept dashes in directive names. Warn about
4227 [no-]generics and [no-]relax directives and treat them as
4229 (xtensa_begin_directive): Call md_flush_pending_output only for some
4230 directives. Check for directives inside instruction bundles. Warn
4231 about deprecated ".begin literal" usage. Warn and ignore [no-]density
4232 directives. Handle new directives. Check generating_literals flag
4234 (xtensa_end_directive): Check for directives inside instruction
4235 bundles. Warn and ignore [no-]density directives. Handle new
4236 directives. Call xtensa_set_frag_assembly_state.
4237 (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
4238 xtensa_dwarf2_emit_insn): New.
4239 (xtensa_literal_position): Call md_flush_pending_output. Do not check
4240 use_literal_section flag.
4241 (xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
4242 literals. Use xtensa_elf_cons to parse the expression.
4243 (xtensa_literal_prefix): Do not check use_literal_section. Support
4244 ".lit4" sections for absolute literals. Change prefix convention to
4245 replace ".text" (or ".t" in a linkonce section). No need to call
4247 (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
4248 (expression_end): Handle closing braces and colons.
4249 (PLT_SUFFIX, plt_suffix): Delete.
4250 (expression_maybe_register): Use new xtensa-isa.h functions. Use
4251 xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
4252 and O_hi16 expressions as well.
4253 (tokenize_arguments): Handle closing braces and colons.
4254 (parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
4255 operands and paired register syntax.
4256 (get_invisible_operands): New.
4257 (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
4258 new xtensa-isa.h functions.
4259 (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
4260 (xg_translate_idioms): Check if inside bundle. Use use_transform.
4261 Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
4262 instructions. Use xtensa_translate_zero_immed.
4263 (operand_is_immed, operand_is_pcrel_label): Delete.
4264 (get_relaxable_immed): Use new xtensa-isa.h functions.
4265 (get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
4267 (xtensa_print_insn_table, print_vliw_insn): New.
4268 (is_direct_call_opcode): Use new xtensa-isa.h functions.
4269 (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
4270 is_branch_or_jump_opcode): Delete.
4271 (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
4272 (opnum_to_reloc, reloc_to_opnum): Delete.
4273 (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
4274 xtensa-isa.h functions. Operate on one slot of an instruction.
4275 (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
4276 xg_get_insn_size): Delete.
4277 (xg_get_build_instr_size): Use xg_get_single_size.
4278 (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
4279 xg_build_widen_table. Use xg_get_single_size.
4280 (xg_get_max_narrow_insn_size): Delete.
4281 (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
4282 xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
4284 (xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
4285 OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
4286 (xg_expand_to_stack, xg_expand_narrow): Update calls to
4287 xg_build_widen_table. Use xg_get_single_size.
4288 (xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
4290 (xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
4291 treat weak symbols conservatively.
4292 (xg_check_operand): Use new xtensa-isa.h functions.
4293 (is_dnrange): Delete.
4294 (xg_assembly_relax): Inline previous calls to tinsn_copy.
4295 (xg_finish_frag): Specify separate relax states for the frag and slot0.
4296 (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
4297 xtensa-isa.h functions.
4298 (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
4299 xg_instruction_matches_options): New.
4300 (xg_instruction_matches_rule): Handle O_register expressions. Call
4301 xg_instruction_matches_options.
4302 (transition_rule_cmp): New.
4303 (xg_instruction_match): Update call to xg_build_simplify_table.
4304 (xg_build_token_insn): Record loc fields.
4305 (xg_simplify_insn): Check is_specific_opcode field and
4306 density_supported flag.
4307 (xg_expand_assembly_insn): Skip checking code_density_available. Use
4308 new xtensa-isa.h functions. Call use_transform instead of can_relax.
4309 (xg_assemble_literal): Add error handling for O_big. Call
4310 record_alignment. Handle O_pltrel.
4311 (xg_valid_literal_expression): New.
4312 (xg_assemble_literal_space): Add slot parameter. Remove call to
4313 set_expr_symbol_offset. Add call to record_alignment. Update call to
4315 (xg_emit_insn): Delete.
4316 (xg_emit_insn_to_buf): Add format parameter. Update calls to
4317 xg_add_opcode_fix and xtensa_insnbuf_to_chars.
4318 (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
4319 and slot parameters. Handle new "alternate" relocations for absolute
4320 literals and CONST16 instructions. Check for bad uses of O_lo16 and
4321 O_hi16. Use new xtensa-isa.h functions.
4322 (xg_assemble_tokens): Delete.
4323 (is_register_writer): Use new xtensa-isa.h functions.
4324 (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
4325 old-style RSR from LCOUNT.
4326 (next_frag_opcode): Delete.
4327 (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
4328 update_next_frag_state): New.
4329 (update_next_frag_nop_state): Delete.
4330 (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
4331 (xtensa_mark_literal_pool_location): Check use_literal_section flag and
4332 the state of the absolute-literals directive. Add calls to
4333 record_alignment and xtensa_set_frag_assembly_state. Call
4334 xtensa_switch_to_non_abs_literal_fragment instead of
4335 xtensa_switch_to_literal_fragment.
4337 (assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
4338 (get_expanded_loop_offset): Change check for undefined opcode to an
4340 (xtensa_set_frag_assembly_state, relaxable_section,
4341 xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
4342 xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
4343 (md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
4344 Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
4345 Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
4346 (xtensa_init_fix_data): New.
4347 (xtensa_frob_label): Reset label symbol to the current frag. Check
4348 do_align_targets and generating_literals flag. Propagate frequency
4349 info to new alignment frag. Call xtensa_set_frag_assembly_state.
4350 (xtensa_unrecognized_line): New.
4351 (xtensa_flush_pending_output): Check if inside a bundle. Add a call
4352 to xtensa_set_frag_assembly_state.
4353 (error_reset_cur_vinsn): New.
4354 (md_assemble): Remove check for literal frag. Remove call to
4355 istack_init. Call use_transform instead of use_generics. Parse
4356 explicit instruction format specifiers. Move code for
4357 a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
4358 error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
4359 Add dwarf2_where call. Remote automatic alignment for ENTRY
4360 instructions. Move call to xtensa_clear_insn_labels to the end.
4361 Rearrange to handle bundles.
4362 (xtensa_cons_fix_new): Delete.
4363 (xtensa_handle_align): New.
4364 (xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
4365 assignment to is_no_density field.
4366 (md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
4367 instead of reloc_to_opnum. Handle "alternate" relocations.
4368 (xtensa_force_relocation, xtensa_check_inside_bundle,
4369 xtensa_elf_section_change_hook): New.
4370 (xtensa_symbol_new_hook): Delete.
4371 (xtensa_fix_adjustable): Check for difference of symbols with an
4372 offset. Check for external and weak symbols.
4373 (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
4374 (md_estimate_size_before_relax): Return expansion for the first slot.
4375 (tc_gen_reloc): Handle difference of symbols by producing
4376 XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
4377 into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
4378 tentative values into the output when linkrelax is set.
4379 (XTENSA_PROP_SEC_NAME): Define.
4380 (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
4381 Create literal tables only if using literal sections. Create new
4382 property tables instead of old instruction tables. Check for unaligned
4383 branch targets and loops.
4384 (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
4385 new_resource_table, clear_resource_table, resize_resource_table,
4386 resources_available, reserve_resources, release_resources,
4387 opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
4388 resources_conflict, xg_find_narrowest_format, relaxation_requirements,
4389 bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
4390 (xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
4391 flag. Update checks for workaround options. Call
4392 xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
4393 (xtensa_cleanup_align_frags): Add special case for branch targets.
4394 Check for and mark unreachable frags.
4395 (xtensa_fix_target_frags): Remove use of align_only_targets flag.
4396 Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
4397 end of a zero-overhead loop body.
4398 (frag_can_negate_branch): Handle instructions with multiple slots.
4399 Use new xtensa-isa.h functions
4400 (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
4401 xtensa_mark_zcl_first_insns): New.
4402 (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
4403 transformations are disabled.
4404 (next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
4405 multislot instructions.
4406 (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
4407 Likewise. Also error if transformations are disabled.
4408 (unrelaxed_frag_max_size): New.
4409 (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
4410 xtensa-isa.h functions.
4411 (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
4412 xtensa_opcode_is_loop instead of is_loop_opcode.
4413 (get_text_align_power): Replace as_fatal with assertion.
4414 (get_text_align_fill_size): Iterate instead of using modulus when
4416 (get_noop_aligned_address): Assert that this is for a machine-dependent
4417 RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
4418 xg_get_single_size, and frag_format_size.
4419 (get_widen_aligned_address): Rename to ...
4420 (get_aligned_diff): ... this function. Add max_diff parameter.
4421 Remove handling of rs_align/rs_align_code frags. Use
4422 next_frag_format_size, get_text_align_power, get_text_align_fill_size,
4423 next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
4424 and pass it back to caller.
4425 (xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
4426 RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
4427 RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
4428 (relax_frag_text_align): Rename to ...
4429 (relax_frag_loop_align): ... this function. Assume loops can only be
4430 in the first slot of an instruction.
4431 (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
4432 instruction. Remove call to frag_wane.
4433 (relax_frag_narrow): Rename to ...
4434 (relax_frag_for_align): ... this function. Extend to handle
4435 RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
4436 RELAX_NARROW for the first slot.
4437 (find_address_of_next_align_frag, bytes_to_stretch): New.
4438 (future_alignment_required): Use find_address_of_next_align_frag and
4439 bytes_to_stretch. Look ahead to subsequent frags to make smarter
4440 alignment decisions.
4441 (relax_frag_immed): Add format, slot, and estimate_only parameters.
4442 Check if transformations are enabled for b_j_loop_end workaround.
4443 Use new xtensa-isa.h functions and handle multislot instructions.
4444 Update call to xg_assembly_relax.
4445 (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
4446 RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
4448 (convert_frag_narrow): Add segP, format and slot parameters. Call
4449 convert_frag_immed for branch instructions. Adjust calls to
4450 tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
4451 xg_get_single_size and xg_get_single_format.
4452 (convert_frag_fill_nop): New.
4453 (convert_frag_immed): Add format and slot parameters. Handle multislot
4454 instructions and use new xtensa-isa.h functions. Update calls to
4455 tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
4456 enabled for b_j_loop_end workaround. Use build_nop instead of
4457 assemble_nop. Check is_specific_opcode flag. Check for unreachable
4458 frags. Use xg_get_single_size. Handle O_pltrel.
4459 (fix_new_exp_in_seg): Remove check for old plt flag.
4460 (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
4461 xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
4462 for loop opcode to an assertion. Mark all frags up to the end of the
4463 loop as not transformable.
4464 (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
4465 (get_subseg_info): New.
4466 (xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
4468 (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
4469 literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
4470 (xtensa_switch_to_non_abs_literal_fragment): New.
4471 (cache_literal_section): Add is_code parameter and pass it through to
4472 retrieve_literal_seg.
4473 (retrieve_literal_seg): Add is_code parameter and use it to set the
4474 flags on the literal section. Handle case where head parameter is 0.
4475 (get_frag_is_no_transform, set_frag_is_specific_opcode,
4476 set_frag_is_no_transform): New.
4477 (xtensa_create_property_segments): Add end_property_function parameter
4478 and pass it through to add_xt_block_frags. Call bfd_get_section_flags
4479 and skip SEC_DEBUGGING and !SEC_ALLOC sections.
4480 (xtensa_create_xproperty_segments, section_has_xproperty): New.
4481 (add_xt_block_frags): Add end_property_function parameter and call it
4482 if it is non-zero. Call xtensa_frag_flags_init.
4483 (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
4484 get_frag_property_flags, frag_flags_to_number,
4485 xtensa_frag_flags_combinable, xt_block_aligned_size,
4486 xtensa_xt_block_combine, add_xt_prop_frags,
4487 init_op_placement_info_table, opcode_fits_format_slot,
4488 xg_get_single_size, xg_get_single_format): New.
4489 (istack_push): Inline call to tinsn_copy.
4490 (tinsn_copy): Delete.
4491 (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
4492 CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
4493 (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
4494 (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
4495 functions. Handle invisible operands.
4496 (tinsn_to_slotbuf): New.
4497 (tinsn_check_arguments): Use new xtensa-isa.h functions.
4498 (tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
4499 vinsn_from_chars, and xg_free_vinsn.
4500 (tinsn_from_insnbuf): New.
4501 (tinsn_immed_from_frag): Add slot parameter and handle multislot
4502 instructions. Handle symbol differences.
4503 (get_num_stack_text_bytes): Use xg_get_single_size.
4504 (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
4505 xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
4506 get_expr_register, set_expr_symbol_offset_diff): New.
4507 * config/tc-xtensa.h (MAX_SLOTS): Define.
4508 (xtensa_relax_statesE): Move from tc-xtensa.c. Add
4509 RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
4510 RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
4512 (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
4513 (xtensa_frag_type struct): Add is_assembly_state_set,
4514 use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
4515 is_align, is_text_align, alignment, and is_first_loop_insn fields.
4516 Replace is_generics and is_relax fields by is_no_transform field.
4517 Delete is_text and is_longcalls fields. Change text_expansion and
4518 literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
4519 per-slot information: literal_frags, slot_subtypes, slot_symbols,
4520 slot_sub_symbols, and slot_offsets. Add fr_prev field.
4521 (xtensa_fix_data struct): New.
4522 (xtensa_symfield_type struct): Delete plt field.
4523 (xtensa_block_info struct): Move definition to tc-xtensa.h. Add
4524 forward declaration here.
4525 (xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
4526 (XTENSA_SECTION_RENAME): Undefine.
4527 (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
4528 tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
4529 HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
4530 (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
4531 (unit_num_copies_func, opcode_num_units_func,
4532 opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
4533 (resource_table struct): New.
4534 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
4535 (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
4536 literal_space, symbol, sub_symbol, offset, and literal_frag fields.
4537 (tinsn_copy): Delete prototype.
4538 (vliw_insn struct): New.
4539 * config/xtensa-relax.c (insn_pattern_struct): Add options field.
4540 (widen_spec_list): Add option conditions for density and boolean
4541 instructions. Add expansions using CONST16 and conditions for using
4542 CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
4544 (simplify_spec_list): Add option conditions for density instructions.
4545 Add entry for NOP instruction.
4546 (append_transition): Add cmp function pointer parameter and use it to
4547 insert the new entry in order.
4548 (operand_function_LOW16U, operand_function_HI16U): New.
4549 (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
4550 OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
4551 (enter_opname, split_string): Use xstrdup instead of strdup.
4552 (init_insn_pattern): Initialize new options field.
4553 (clear_req_or_option_list, clear_req_option_list,
4554 clone_req_or_option_list, clone_req_option_list, parse_option_cond):
4556 (parse_insn_pattern): Parse option conditions.
4557 (transition_applies): New.
4558 (build_transition): Use new xtensa-isa.h functions. Fix incorrectly
4559 swapped last arguments in calls to append_constant_value_condition.
4560 Call clone_req_option_list. Add warning about invalid opcode.
4561 Handle LOW16U and HI16U function names.
4562 (build_transition_table): Add cmp parameter and use it in calls to
4563 append_transition. Use new xtensa-isa.h functions. Check
4564 transition_applies before adding entries.
4565 (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
4566 pass it through to build_transition_table.
4567 * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
4568 ReqOption, transition_cmp_fn): New types.
4569 (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
4570 (transition_rule struct): Add options field.
4571 * doc/as.texinfo (Overview): Update Xtensa options.
4572 * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
4573 --[no-]relax, and --[no-]generics options. Update descriptions of
4574 --text-section-literals and --[no-]longcalls. Add
4575 --[no-]absolute-literals and --[no-]transform.
4576 (Xtensa Syntax): Add description of syntax for FLIX instructions.
4577 Remove use of "generic" and "specific" terminology for opcodes.
4578 (Xtensa Registers): Generalize the syntax description to include
4579 user-defined register files.
4580 (Xtensa Automatic Alignment): Update.
4581 (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
4582 (Xtensa Call Relaxation): Linker can now remove most of the overhead.
4583 (Xtensa Directives): Remove confusing rules about precedence.
4584 (Density Directive, Relax Directive): Delete.
4585 (Schedule Directive): New.
4586 (Generics Directive): Rename to ...
4587 (Transform Directive): ... this node.
4588 (Literal Directive): Update for absolute literals. Missing
4589 literal_position directive is now an error.
4590 (Literal Position Directive): Update for absolute literals.
4591 (Freeregs Directive): Delete.
4592 (Absolute Literals Directive): New.
4593 (Frame Directive): Minor editing.
4594 * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
4595 Update dependencies.
4596 * Makefile.in: Regenerate.
4598 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4600 * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
4601 to build the second and third fixups for a composite relocation.
4602 (macro_read_relocs): New function.
4603 (macro_build): Use it.
4604 (s_cpsetup): Pass all three composite relocation codes to macro_build.
4605 Simplify fragging code accordingly.
4606 (s_gpdword): Use fix_new rather than fix_new_exp for the second part
4607 of the composite relocation. Set fx_tcbit in both fixups.
4609 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
4611 * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
4612 (md_apply_fix3): Don't treat composite relocs as done.
4614 2004-10-07 Jan Beulich <jbeulich@novell.com>
4616 * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
4617 prefix for symbol names generated from the LOCAL macro directive.
4619 * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
4620 FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
4622 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com>
4624 * config/tc-crx.c (preprocess_reglist): Handle Co-processor
4626 (md_assemble): Add error checking for Co-Processor instructions.
4627 (get_cinv_parameters): Add 'b' option to invalidate the
4628 branch-target cache.
4630 2004-10-05 Paul Brook <paul@codesourcery.com>
4632 * config/tc-arm.c (unwind): New variable.
4633 (vfp_sp_encode_reg): New function.
4634 (vfp_sp_reg_required_here): Use it.
4635 (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
4636 (vfp_parse_reg_list): New function.
4637 (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
4638 s_arm_unwind_personality, s_arm_unwind_personalityindex,
4639 s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
4640 s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
4642 (md_pseudo_table): Add them.
4643 (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
4644 (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
4645 (set_section, add_unwind_adjustsp, flush_pending_unwind,
4646 finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
4647 require_hashconst, add_unwind_opcode): New functions.
4648 * doc/c-arm.texi: Document unwinding opcodes.
4649 * NEWS: Mention the new feature.
4651 2004-10-04 Eric Christopher <echristo@redhat.com>
4653 * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
4655 2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
4657 * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
4659 * config/tc-s390.c (md_apply_fix3): Likewise.
4660 * config/tc-sparc.c (md_apply_fix3): Likewise.
4662 2004-10-01 Paul Brook <paul@codesourcery.com>
4664 * config/tc-arm.c (arm_elf_section_type): New function.
4665 (arm_elf_change_section): Set section link for exidx sections.
4666 * config/tc-arm.h (arm_elf_section_type): Add prototype.
4667 (md_elf_section_type): Define.
4669 2004-10-01 Bill Farmer <Bill@the-farmers.freeserve.co.uk>
4671 * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
4672 instruction's offset.
4674 2004-10-01 Adam Nemet <anemet@lnxw.com>
4676 * (TARGET_FORMAT): Remove LynxOS COFF definition.
4678 2004-10-01 Ravi Ramaseshan <ravi.ramaseshan@codito.com>
4680 * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
4681 asymbol *, instead use symbol_get_bfdsym.
4683 2004-09-30 Linus Nielsen Feltzing <linus@haxx.se>
4685 * config/tc-m68k.c (select_control_regs): Add mcf5249.
4687 2004-09-30 Paul Brook <paul@codesourcery.com>
4689 * config/tc-arm.c (do_smi, do_nop): New functions.
4690 (insns): Add ARMv6ZK instructions.
4691 (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
4692 (tc_gen_reloc): Ditto.
4693 (arm_cpus): Add mpcore and arm1176.
4694 (arm_archs): Add armv6{k,z,zk}.
4695 * doc/c-arm.texi: Document new cores and architectures.
4697 2004-09-30 Nick Clifton <nickc@redhat.com>
4699 * config/tc-arm.c: Use ISO C90 formatting.
4701 2004-09-30 Vladimir Ivanov <vladitx@nucleusys.com>
4703 * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
4704 as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
4705 REG_TYPE_MVDX is expected.
4707 2004-09-29 Marc Bevand <m.bevand@gmail.com>
4709 * doc/c-i386.texi (i386-Mnemonics): Fix typo.
4711 2004-09-21 James E Wilson <wilson@specifixinc.com>
4713 * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
4714 (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
4715 output_spill_base, output_unat_psprel, output_lc_psprel,
4716 output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
4717 output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
4718 output_spill_psprel_p): Use it.
4720 2004-09-20 Tomer Levi <Tomer.Levi@nsc.com>
4722 * config/tc-crx.c (handle_LoadStor): New function.
4723 Handle load/stor unique instructions before parsing.
4725 2004-09-17 Paul Brook <paul@codesourcery.com>
4727 * config/tc-arm.c (s_arm_rel31): New funciton.
4728 (md_pseudo_table): Add .rel31.
4729 (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
4730 BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
4731 (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
4732 (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
4733 (arm_parse_reloc): Add (target2).
4735 2004-09-17 Alan Modra <amodra@bigpond.net.au>
4737 * Makefile.am: Run "make dep-am".
4738 * Makefile.in: Regenerate.
4739 * aclocal.m4: Regenerate.
4740 * configure: Regenerate.
4741 * doc/Makefile.in: Regenerate.
4742 * po/POTFILES.in: Regenerate.
4743 * po/gas.pot: Regenerate.
4745 2004-09-14 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
4747 * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
4748 [!LLONG_MAX]: Ditto.
4750 2004-09-13 Paul Brook <paul@codesourcery.com>
4752 * config/tc-arm.c: Rename RELABS to TARGET1.
4754 2004-09-13 Alan Modra <amodra@bigpond.net.au>
4756 * messages.c (as_internal_value_out_of_range): Cast values passed
4757 to as_bad_where or as_warn_where to proper type.
4759 2004-09-11 Theodore A. Roth <troth@openavr.org>
4761 * config/tc-avr.c: Add support for
4762 atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
4764 2004-09-09 Alan Modra <amodra@bigpond.net.au>
4766 * dw2gencfi.c (select_cie_for_fde): When separating CIE out
4767 from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
4769 2004-09-08 Paul Brook <paul@codesourcery.com>
4771 * config/obj-elf.c (obj_elf_section_type): Handle init_array,
4772 fini_array and preinit_array section types.
4773 * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
4775 * doc/as.texinfo: Document extra section types.
4777 2004-09-02 Mark Mitchell <mark@codesourcery.com>
4779 * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
4780 * Makefile.in: Regenerated.
4781 * configure.in: Set em for arm*-*-symbianelf*.
4782 * configure: Regenerated.
4783 * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
4784 vectors when appropriate.
4785 * config/te-symbian.h: New file.
4787 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
4789 * config/tc-crx.c (gettrap): Exception vector can be case
4791 (process_label_constant): Fix a 32-bit displacement bug in branch
4793 (get_operandtype) : Bug fix, wrong operand was used.
4794 (process_label_constant): Initialize relocation type to
4797 2004-09-01 Richard Earnshaw < reanrsha@arm.com>
4799 * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
4800 for synthesizable cores.
4802 * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
4804 2004-08-25 Dmitry Diky <diwil@spec.ru>
4806 * config/tc-msp430.c: Clean-up the code.
4807 (md_relax_table): New relax table.
4808 (mcu_types): Sort MCU types.
4809 (md_pseudo_table): Add .profiler pseudo handler.
4810 (pow2value): New function.
4811 (msp430_profiler): New function.
4812 (msp430_operands): Add new insns handlers.
4813 (msp430_srcoperand): Add register operand handler, allow complex
4815 (md_estimate_size_before_relax): Rewritten.
4816 (md_convert_frag): Rewritten.
4817 (msp430_relax_frag): New function.
4818 * config/tc-msp430.h (md_relax_frag): define macro
4819 * doc/c-msp430.texi: Update information.
4821 2004-08-24 Nick Clifton <nickc@redhat.com>
4823 * as.c (std_shortopts): Allow -g to take an optional argument.
4824 (parse_args): Pass any switch starting with -g on to the backend
4827 2004-08-18 Mark Mitchell <mark@codesourcery.com>
4829 * configure.in (arm*-*-symbianelf*): New target.
4830 (arm*-*-eabi*): Likewise.
4831 * configure: Regenerated.
4833 2004-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4834 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
4837 2004-08-18 Jakub Jelinek <jakub@redhat.com>
4839 * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
4840 argument, don't do anything if current section is not
4841 .gnu.linkonce.t.* and linkonce_empty is set.
4842 (generate_unwind_image, dot_endp): Adjust callers, call
4843 start_unwind_section (*, 1) if nothing will be put into the
4846 2004-08-17 Nick Clifton <nickc@redhat.com>
4848 * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
4849 (show_usage): Add -g.
4850 (std_longopts): Add --gen-debug. Alpha sort the table.
4851 (parse_args): Print an error message if a switch is not handled.
4852 Handle the -g switch, calling md_debug_format_selector() if
4854 * NEWS: Mention new feature.
4855 * doc/as.texinfo: Document new switch.
4856 * doc/internals.texi: Document behaviour of md_parse_option.
4858 * config/tc-arm.c (md_parse_option): Do not issue an error message
4859 if the switch is not recognised.
4860 * config/tc-m68k.c (md_parse_option): Likewise.
4861 * config/tc-pdp11.c (md_parse_option): Likewise.
4862 * config/tc-v850.c (md_parse_option): Likewise.
4864 * as.h: Fix up formatting.
4867 2004-08-16 Nick Clifton <nickc@redhat.com>
4869 * macro.c (macro_set_alternate): Use ISO C90 formatting.
4871 * configure.in: Sort architecture based tables alphabetically.
4872 * configure: Regenerate.
4874 2004-08-16 Alan Modra <amodra@bigpond.net.au>
4876 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
4877 { "cc", 68 }, with { "cr", 70 }.
4879 2004-08-13 Jan Beulich <jbeulich@novell.com>
4880 Nick Clifton <nickc@redhat.com>
4882 * as.c: Add and handle new --alternate command line option.
4883 * macro.c (macro_set_alternate): New.
4884 * macro.h (macro_set_alternate): Declare.
4885 * read.c: Add and handle new .altmacro and .noaltmacro directives.
4886 * doc/as.texinfo: Document new command line option and pseudo-ops
4887 as well as insert documentation originating from gasp about
4888 alternate macro syntax.
4889 * NEWS: Mention new command line option and pseudo-ops.
4891 2004-08-10 Mark Mitchell <mark@codesourcery.com>
4893 * expr.c (operand): Handle the "~", "-", and "!" operators applied
4896 2004-08-06 Paul Brook <paul@codesourcery.com>
4898 * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
4899 Handle new relocations.
4900 * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
4902 2004-08-05 Bob Wilson <bob.wilson@acm.org>
4904 * write.c (relax_segment): Use was_address instead of address when
4905 setting fr_fix field for align frag due to backwards .org.
4907 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
4909 Introduce SH2a support.
4910 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4911 * config/tc-sh.c (get_specific): Change arch_sh2a_up to
4913 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
4914 * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
4915 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4916 * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
4917 to end of conditional expression.
4918 2004-02-20 Corinna Vinschen <vinschen@redhat.com>
4919 * config/tc-sh.c: Add sh2a-nofpu support.
4920 2003-12-29 DJ Delorie <dj@redhat.com>
4921 * tc-sh.c: Add sh2a support.
4922 (parse_reg): Add tbr.
4923 (parse_at): Support @@(disp,tbr).
4924 (get_specific): Support sh2a opcodes.
4925 (insert4): New, for 4 byte relocs.
4926 (build_Mytes): Support sh2a opcodes.
4927 (md_apply_fix3_Mytes): Support sh2a opcodes.
4928 2003-12-02 Michael Snyder <msnyder@redhat.com>
4929 * config/tc-sh.c (md_parse_option): Handle sh2a.
4930 (sh_elf_final_processing): Ditto.
4932 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
4934 * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
4937 2004-07-27 Alan Modra <amodra@bigpond.net.au>
4939 * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
4940 (ppc_arch): Expand comment.
4942 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
4944 * config/tc-crx.c: Support evaluating the difference between two
4946 * config/tc-crx.h: Likewise.
4948 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
4950 * config/tc-ia64.c (start_unwind_section): Set the linked-to
4952 (ia64_elf_section_change_hook): Set the linked-to section for
4955 2004-07-26 Dmitry Diky <diwil@spec.ru>
4957 * config/tc-msp430.c: Add new subtargets: msp430x1610,
4958 msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
4959 msp430xG438, msp430xG439.
4961 2004-07-25 Daniel Jacobowitz <dan@debian.org>
4963 * doc/as.texinfo (Section, PushSection): Correct documentation
4966 2004-07-21 Jan Beulich <jbeulich@novell.com>
4968 * config/tc-i386.c (optimize_imm): Adjust immediates to only those
4969 permissible for the selected instruction suffix.
4970 (match_template): Don't permit 64-bit general purpose operands in
4972 (finalize_imm): Permit 64-bit immediates.
4973 (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
4974 specially except for the width of the used base and/or index
4975 registers. For 32-bit displacements, use sign-extended
4976 relocations only when using 64-bit addressing.
4977 Force zero displacement on rip-relative addressing when there is
4978 no other displacement.
4979 (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
4980 specially except for the width of the used base and/or index
4982 (parse_register): Disallow Reg64 registers in 32-bit mode.
4984 * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
4985 suffix if the instruction doesn't support it.
4987 2004-07-20 Maciej W. Rozycki <macro@linux-mips.org>
4989 * config/tc-mips.c (append_insn): Handle constant expressions with
4990 no associated relocation.
4991 (mips_ip): Cancel the expression after use for the Q format
4993 (parse_relocation): Return no relocation for unsupported
4995 (my_getSmallExpression): Return no relocation if no relocation
4998 2004-07-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5000 * config/obj-som.c (adjust_stab_sections): Add prototype.
5001 (obj_som_compiler, obj_som_version, obj_som_copyright,
5002 adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
5003 * config/tc-hppa.c (update_subspace): Likewise.
5004 (is_defined_subspace): Amplify comment.
5005 * config/obj-som.h (som_frob_file): Add prototype.
5007 2004-07-19 Christopher Faylor <cgf@timesys.com>
5008 H.J. Lu <hongjiu.lu@intel.com>
5010 * subsegs.c (section_symbol): Don't create a new segment when
5011 existing segment is undefined.
5013 2004-07-16 Richard Earnshaw <rearnsha@arm.com>
5015 * config/tc-arm.c: Include include/opcode/arm.h.
5016 (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
5017 (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
5018 (FPU_ARCH_*): Delete.
5019 * Makefile.am: Update dependencies.
5020 * Makefile.in: Regenerate.
5022 2004-07-15 Nick Clifton <nickc@redhat.com>
5024 * configure.in: Accept armbe as a big-endian arm configuration.
5025 * configure: Regenerate.
5027 2004-07-13 Thomas Nystrom <thn@saeab.se>
5029 * config/tc-i386.c (T_SHIFTOP): New constant.
5030 (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
5031 (intel_el1): Handle '~'.
5032 (intel_get_token): Handle '<>', '&', '|' and '~'.
5034 2004-07-13 Nick Clifton <nickc@redhat.com>
5036 (md_assemble): Remove spurious newline from end of as_bad error
5038 (intel_e05_1): Likewise.
5039 (intel_e11): Likewise.
5040 (intel_match_token): Likewise.
5042 2004-07-11 Andreas Schwab <schwab@suse.de>
5044 * config/tc-m68k.c: Convert to C90. Remove redundant
5045 declarations. Indentation fixup.
5046 [M68KCOFF]: Include "obj-coff.h" instead of declaring
5047 obj_coff_section ourselves.
5049 2004-07-09 James E Wilson <wilson@specifixinc.com>
5051 * config/tc-ia64.c (default_big_endian): New.
5052 (dot_byteorder, md_begin): Use it.
5053 (md_parse_option): Set it.
5055 2004-07-09 Nick Clifton <nickc@redhat.com>
5057 * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
5058 * configure: Regenerate.
5059 * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
5060 * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
5061 sh_find_elf_flags if necessary.
5063 2004-07-08 Richard Sandiford <rsandifo@redhat.com>
5065 * config/tc-mips.c (mips_fix_adjustable): If the full addend is
5066 going to be split into more than one in-place addend, return 0
5067 for relocations against mergeable sections. Associate comments
5070 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
5072 * Makefile.am (CPU_TYPES): Add crx.
5073 (TARGET_CPU_CFILES): Add config/tc-crx.c.
5074 (TARGET_CPU_HFILES): Add config/tc-crx.h.
5075 (DEPTC_crx_elf): New target.
5076 (DEPOBJ_crx_elf): Likewise.
5077 (DEP_crx_elf): Likewise.
5078 * Makefile.in: Regenerate.
5079 * configure.in: Add crx* target.
5080 * configure: Regenerate.
5081 * config/tc-crx.c: New file.
5082 * config/tc-crx.h: New file.
5083 * NEWS: Mention new target.
5085 2004-07-06 Nick Clifton <nickc@redhat.com>
5087 * config.in: Undefine TARGET_SYMBIAN by default.
5089 * configure: Regenerate. Add sh-symbian-elf target. If
5090 selected define TARGET_SYMBIAN.
5091 * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
5092 format if TARGET_SYMBIAN has been defined.
5094 * output-file.c (output_file_create): Report the target format
5095 chosen when bfd_openw reports that it is invalid.
5097 * config/obj-coff.c (coff_pseudo_table): Only define the weak
5098 pseudo for BFD based assemblers.
5100 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
5103 * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
5104 (md_parse_option): Remove redundant -isa testing.
5105 Make bfd_arch variable const.
5106 (md_show_usage): Make bfd_arch variable const.
5108 2004-07-03 James E Wilson <wilson@specifixinc.com>
5110 * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
5111 * config/tc-ia64.h (md_frag_check): Define.
5113 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
5115 * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
5117 * doc/as.texinfo (Weak): Document PE weak symbols.
5119 2004-07-03 Richard Sandiford <rsandifo@redhat.com>
5121 * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
5122 (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
5123 (mips_frob_file): Rework so that only a single pass through the
5124 relocs is needed. Allow %lo()s to have higher offsets than their
5125 corresponding %hi()s or %got()s.
5127 2004-07-02 Nick Clifton <nickc@redhat.com>
5129 * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
5130 allow values which have come from undefined symbols.
5131 Always consider this fixup to have been processed as a reloc
5132 cannot be generated for it.
5134 2004-07-02 Alan Modra <amodra@bigpond.net.au>
5136 * frags.h (struct frag): Add has_code and insn_addr fields.
5137 * write.c (cvt_frag_to_fill): Invoke md_frag_check.
5138 * config/tc-ppc.c (md_assemble): Check and set insn_addr.
5139 * config/tc-ppc.h (md_frag_check): Define.
5141 2004-06-28 Maciej W. Rozycki <macro@linux-mips.org>
5143 * doc/Makefile.am (info): Rename goal to...
5144 (info-local): ... this, to preserve implicit dependencies.
5145 * doc/Makefile.in: Regenerate with automake 1.8.5.
5147 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5149 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
5150 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
5151 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
5152 (tc_gen_reloc): Likewise.
5153 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
5154 (m32r_parse_name): Likewise.
5155 (m32r_cgen_parse_fix_exp): Likewise.
5156 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
5157 (O_PIC_reloc): Likewise.
5158 (TC_CGEN_PARSE_FIX_EXP): Likewise..
5159 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
5160 for @GOTOFF, @GOT, @PLT.
5162 2004-06-21 Jan Beulich <jbeulich@novell.com>
5164 * gas/symbols.c: While discarding ordinary local absolute symbols
5165 when --strip-local-absolute is in effect, retain file symbols.
5167 2004-06-20 Andreas Schwab <schwab@suse.de>
5169 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
5170 (md_parse_option): Likewise.
5172 2004-06-17 Jan Beulich <jbeulich@novell.com>
5174 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
5175 * config/te-netware.h: New file.
5176 * config/te-ppcnw.h: Delete: Obsolete.
5177 * configure.in: Eliminate ill NetWare targets. Make generic
5178 NetWare target use proper emulation.
5179 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
5180 reference to new te-netware.h.
5181 * configure: Regenerate.
5182 * Makefile.in: Regenerate.
5184 2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
5186 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
5187 comparison in .insn pseudo operation.
5189 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5191 * config/obj-coff.c (coff_adjust_section_syms): Use
5192 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
5193 (coff_frob_section): Likewise.
5194 * config/tc-mips.c (md_apply_fix3): Likewise.
5195 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
5196 (elf_frob_file_after_relocs): Likewise.
5198 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5200 * config/tc-hppa.c (log2): Rename to exact_log2.
5201 (pa_next_subseg): Delete unused function.
5202 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
5203 (create_new_subspace): Likewise.
5206 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
5207 labels. Fix warning.
5209 2004-05-28 DJ Delorie <dj@redhat.com>
5211 * config/tc-mn10300.h (tc_fix_adjustable): Define.
5212 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
5213 or non-merged symbols.
5215 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
5217 * config/tc-ia64.c (remove_marked_resource): Save, clear and
5218 restore the old slot when inserting srlz.i/srlz.d.
5220 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
5222 * Makefile.am: Regenerate dependecies.
5223 * Makefile.in: Regenerate.
5224 * config/tc-sh.c (valid_arch): Make unsigned.
5225 (preset_target_arch): Likewise.
5226 (md_begin): Use new architecture flags system.
5227 (get_specific): Likewise.
5228 (assemble_ppi): Likewise.
5229 (md_assemble): Likewise. Also fix error check for bad opcodes.
5230 (md_parse_option): Likewise. Also generate -isa values according
5231 to the table in bfd/cpu-sh.c instead of just constants. Also
5232 allow <arch>-up ISA variants.
5233 (sh_elf_final_processing): Replace if-else chain with a call to
5234 sh_find_elf_flags().
5236 2004-05-28 Peter Barada <peter@the-baradas.com>
5238 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
5239 with zero offset into mode 2 addressing to save a word.
5241 2004-05-27 H.J. Lu <hongjiu.lu@intel.com>
5243 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
5244 (ar_is_only_in_integer_unit): New.
5245 (ar_is_only_in_memory_unit): New.
5246 (generate_unwind_image): Silence gcc on 32bit host.
5247 (md_assemble): Use ar_is_only_in_integer_unit instead of
5248 ar_is_in_integer_unit. Check AR access.
5250 2004-05-27 Peter Barada <peter@the-baradas.com>
5252 * config/tc-m68k.c (md_begin): Sort the opcode table into
5254 (m68k_compare_opcode): New function to do the sorting.
5256 2004-05-24 Peter Barada <peter@the-baradas.com>
5258 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
5259 addressing on MIT style operands.
5260 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
5262 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
5265 2004-05-23 Alan Modra <amodra@bigpond.net.au>
5267 * expr.c (operand, operator): Don't reject '++' and '--'.
5269 2004-05-20 Richard Sandiford <rsandifo@redhat.com>
5271 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
5274 2004-05-17 Adam Nemet <anemet@lnxw.com>
5276 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
5277 * configure: Regenerate.
5279 2004-05-13 Paul Brook <paul@codesourcery.com>
5281 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
5283 2004-05-13 Joel Sherrill <joel@oarcorp.com>
5285 * configure.in (or32-*-rtems*): Switch to elf.
5286 * configure: Regenerate.
5288 2004-05-13 Nick Clifton <nickc@redhat.com>
5290 * po/fr.po: Updated French translation.
5292 2004-05-11 Nick Clifton <nickc@redhat.com>
5294 * doc/as.texinfo (Section): Document G and T flags to .section
5295 directive. Document the extra arguments that the G flag
5296 requires. Document the #tls flag.
5298 2004-05-11 H.J. Lu <hongjiu.lu@intel.com>
5300 * subsegs.c (section_symbol): Create a new section symbol if
5301 the existing one doesn't match.
5302 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
5304 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5306 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
5307 to cope with VR4181A errata MD(1) and MD(4).
5309 2004-05-07 Brian Ford <ford@vss.fsi.com>
5311 * NEWS: Mention .secrel32 for pe[i]-i386.
5313 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
5315 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
5316 (HANDLE_ALIGN): New.
5318 2004-05-06 Daniel Jacobowitz <dan@debian.org>
5320 * Makefile.am (DIST_SUBDIRS): Define.
5321 * aclocal.m4: Regenerate with automake 1.8.4.
5322 * Makefile.in: Likewise.
5323 * doc/Makefile.in: Likewise.
5325 2004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
5327 * config/tc-ia64.c (dot_serialize): Declare.
5328 (dot_serialize): New function.
5329 (md_pseudo_table): Add ".serialize.data" and
5330 ".serialize.instruction" directives.
5332 2004-05-06 Nick Clifton <nickc@redhat.com>
5334 * messages (as_internal_value_out_of_range): Print a message about
5335 a value being out of range. Be consistent about whether the
5336 values are printed in decimal or hexadecimal.
5337 (as_warn_value_out_of_range): Generate a warning message about an
5339 (as_bad_value_out_of_range): Generate an error message about an
5341 * as.h: Prototype the new functions.
5342 * config/tc-alpha.c (insert_operand): Use new function.
5343 * config/tc-arc.c (arc_insert_operand): Likewise.
5344 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
5345 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
5346 * config/tc-ppc.c (ppc_insert_operand): Likewise.
5347 * config/tc-s390.c (s390_insert_operand): Likewise.
5348 * config/tc-v850.c (v850_insert_operand): Likewise.
5350 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
5352 * configure.in: Set em=linux for frv-*-*linux*.
5353 * configure: Rebuilt.
5354 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
5355 (frv_md_fdpic_enabled): New.
5356 * config/tc-frv.c (frv_md_fdpic_enabled): New.
5357 (DEFAULT_FDPIC): New.
5358 (frv_flags): Use DEFAULT_FDPIC.
5359 (frv_pic_flag): Likewise.
5360 (OPTION_NOPIC): New.
5361 (md_longopts): Add -mnopic.
5362 (md_parse_option): Handle it.
5363 (md_show_usage): Add -mfdpic and -mnopic.
5365 2004-05-05 Peter Barada <peter@the-baradas.com>
5367 * config/tc-m68k.c: Add find_cf_chip to print list of valid
5368 chips for invalid coldfire instructions, rename selectors
5369 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
5370 add current_chip to track which chip is referred to(including save/restore),
5371 use current_chip to select control registers, not current_arch.
5372 (md_show_usage): Add new chips.
5373 * doc/c-m68k.texi: Document new command line switches.
5375 2004-05-05 Jakub Jelinek <jakub@redhat.com>
5377 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
5378 (NOP_OPCODE): Define.
5379 (s390_align_code): Remove prototype.
5380 * tc-s390.c (s390_align_code): Remove.
5382 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
5384 * config/tc-ia64.c (make_unw_section_name): Removed.
5385 (start_unwind_section): New function.
5386 (generate_unwind_image): Take const segT instead of const
5388 (dot_handlerdata): Adjusted.
5389 (dot_endp): Likewise.
5391 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
5393 * config/obj-elf.c (obj_elf_change_section): Allow the
5394 ".note.GNU-stack" section has SHF_EXECINSTR.
5396 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
5398 * config/obj-elf.c (get_section): Return bfd_boolean.
5399 (obj_elf_change_section): Call bfd_get_section_by_name_if
5400 instead of bfd_map_over_sections.
5402 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
5404 * config/obj-elf.c (get_section): New function.
5405 (obj_elf_change_section): Support multiple sections with same
5408 2004-04-30 Nick Clifton <nickc@redhat.com>
5410 * config/tc-arm.c (create_register_alias): Fix typo checking for
5411 case sensitive register aliases.
5412 (co_proc_number): Use error message string in all_reg_maps[]
5414 (cp_reg_required_here): Likewise.
5415 (fp_reg_required_here): Likewise.
5417 2004-04-29 Brian Ford <ford@vss.fsi.com>
5419 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
5421 2004-04-28 Chris Demetriou <cgd@broadcom.com>
5423 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
5424 (load_address, macro, mips_ip, md_parse_option)
5425 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
5426 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
5427 embedded-PIC handling, and update comments.
5428 (SWITCH_TABLE): Remove.
5429 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
5430 (enum mips_pic_level): Remove EMBEDDED_PIC.
5431 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
5432 (TC_FORCE_RELOCATION): Update comment.
5433 * ecoff.c (ecoff_build_lineno): Add comment about some code that
5434 might be safe to remove now that MIPS embedded-PIC is gone.
5436 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5438 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
5439 call to obj_set_subsection_attributes.
5440 (obj_som_init_stab_section): Likewise.
5441 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
5442 (pa_def_subspaces): Provide comdat default.
5443 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
5444 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
5445 calls to create_new_subspace and update_subspace to pass comdat flag.
5446 (create_new_subspace, update_subspace): Add new comdat argument. Use
5447 it in calls to obj_set_subsection_attributes.
5448 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
5449 and use of comdat, common and dup_comm parameters.
5451 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
5453 * config/obj-elf.c (obj_elf_change_section): Check if the old
5454 group name is NULL before comparison.
5456 2004-04-23 Chris Demetriou <cgd@broadcom.com>
5458 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
5460 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5462 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
5464 2004-04-23 Chris Demetriou <cgd@broadcom.com>
5466 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
5467 (OPTION_MEMBEDDED_PIC): Remove.
5468 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
5469 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
5470 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
5471 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
5472 (OPTION_ELF_BASE): Renumber.
5473 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
5474 (md_show_usage): Remove mention of -membedded-pic.
5475 * doc/as.texinfo: Remove mention of -membedded-pic.
5477 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5479 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
5480 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
5482 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
5483 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
5484 USE_GLOBAL_POINTER_OPT.
5486 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5488 * config/tc-mips.c (macro): One more use of load_delay_nop.
5490 2004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
5492 * config/tc-mips.c (load_delay_nop): New function.
5493 (load_address, macro): Use load_delay_nop() to build a nop
5494 which can be omitted with gpr_interlocks.
5496 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5498 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
5499 cop_interlocks): Remove superfluous CPU entries.
5501 2004-04-22 Paul Brook <paul@codesourcery.com>
5503 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
5505 2004-04-22 Peter Barada <peter@the-baradas.com>
5507 * NEWS: Added support for EMAC instructions and MAC/EMAC
5509 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
5510 scale factor tokens, trailing_ampersand to mark mask addressing
5511 for MAC/EMAC instructions.
5512 * config/m68k-parse.y: Add options_ampersand clause, '<<',
5514 (yylex): Handle '>', '<', and '&' following '+'.
5515 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
5516 architectures in archs[].
5517 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
5518 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
5520 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
5521 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
5523 Add EMAC operands to init_table[].
5525 2004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
5527 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
5529 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
5530 * config/tc-arm.c (enum mstate): Delete from here.
5531 (mapping_state): Remove the static mapstate variable and instead
5532 store the state in the segment. This allows a per-section mapping
5533 state. Handle and ignore MAP_UNDEFINED states.
5534 (arm_elf_change_section): Get the current mapping state from the
5536 (s_ltorg): Set the mapping state to MAP_DATA.
5537 (arm_cleanup): Use arm_elf_change_section to get the mapping state
5538 for each pool as it is emitted.
5540 2004-04-22 Nick Clifton <nickc@redhat.com>
5542 * config/tc-arm.h: Formatting tidy ups.
5544 2004-04-20 Chris Demetriou <cgd@broadcom.com>
5546 * NEWS: Note that MIPS -membedded-pic option is deprecated.
5548 2004-04-20 DJ Delorie <dj@redhat.com>
5550 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
5551 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
5552 [TE_PE] (O_secrel): Define.
5553 [TE_PE] (x86_pe_cons_fix_new): New.
5554 [TE_PE] (pe_directive_secrel): Likewise.
5555 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
5557 2004-04-19 Eric Christopher <echristo@redhat.com>
5559 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
5560 of previous patch for fix in gcc.
5562 2004-04-19 Jakub Jelinek <jakub@redhat.com>
5564 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
5566 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
5568 * read.c (do_align): Call md_flush_pending_output, if defined.
5570 2004-04-16 Alan Modra <amodra@bigpond.net.au>
5572 * expr.c (operand): Correct checks for ++ and --.
5574 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
5576 * config/tc-generic.c: Add some comments.
5578 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
5580 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
5581 -{no-}mfix-vr4122-bugs.
5582 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
5583 (append_insn, mips_emit_delays): Update accordingly.
5584 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
5585 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
5586 (md_parse_option): Update after above changes.
5587 (md_show_usage): Add -mfix-vr4120.
5589 2004-04-13 Bob Wilson <bob.wilson@acm.org>
5591 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
5592 of .section directive; add a reference to the ELF .subsection
5595 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5597 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
5600 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5602 * Makefile.am: Remove mips from aout targets.
5603 * Makefile.in: Regenerate.
5604 * configure.in: Remove mips-dec-bsd* target.
5605 * configure: Regenerate.
5607 2004-04-07 Alan Modra <amodra@bigpond.net.au>
5610 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
5611 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
5612 Update "mapping". Restrict some @ modifiers to 32 bit.
5614 2004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
5615 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
5617 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
5618 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
5619 dont_adjust_reloc_32 is set.
5620 (md_longopts): Add option -renesas.
5621 (md_parse_option, md_show_usage): Likewise.
5622 * doc/c-sh.texi: Likewise.
5624 2004-04-01 Dave Korn <dk@artimi.com>
5626 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
5627 hi16 and lo16 fixS structs.
5628 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
5629 exactly the same way as for RELOC_DLX_REL16.
5630 (machine_ip): properly respect LO flag in the_insn and
5631 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
5632 (md_apply_fix3): apply RELOC_DLX_LO16.
5634 2004-03-30 Stan Shebs <shebs@apple.com>
5636 Remove long-obsolete MPW support.
5637 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
5638 * configure.in: Remove mention of ppc-*-mpw* config.
5639 * configure.in: Likewise.
5641 2004-03-30 Nick Clifton <nickc@redhat.com>
5643 * config/tc-arm.c (meabi_flags): Make its use conditional upon
5644 OBJ_ELF being defined.
5646 2004-03-27 Alan Modra <amodra@bigpond.net.au>
5648 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
5650 2004-03-23 Paul Brook <paul@codesourcery.com>
5652 * config/tc-arm.c (meabi_flags): New variable.
5653 (arm_parse_eabi): New function.
5654 (md_begin): Set flags for EABI v3.
5656 (arm_long_opts): Add meabi.
5657 * doc/as.texinfo <ARM>: Document -meabi.
5658 * doc/c-arm.texi: Ditto.
5660 2004-03-22 Bob Wilson <bob.wilson@acm.org>
5662 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
5663 tables even when use_literal_section flag is not set.
5665 2004-03-22 Alan Modra <amodra@bigpond.net.au>
5667 * config/tc-sh.c: Remove trailing whitespace.
5669 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
5671 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
5672 --mul-bug-abort and the default behavior.
5673 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
5674 (err_for_dangerous_mul_placement): New variable.
5675 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
5677 (md_cris_relax_table): Have placeholder for STATE_MUL.
5678 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
5679 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
5681 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
5682 STATE_BYTE)>: Ditto.
5683 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
5684 alignment and position of this frag, emit error message if
5686 (md_assemble): For a multiply insn and when checking it,
5687 transform the current frag into a special frag for that purpose.
5688 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
5689 OPTION_MULBUG_ABORT_ON>: Handle new options.
5691 2004-03-19 Bob Wilson <bob.wilson@acm.org>
5693 * config/tc-xtensa.c (mark_literal_frags): New function.
5694 (xtensa_move_literals): Call mark_literal_frags for all literal
5695 segments, including init and fini literal segments.
5696 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
5698 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5700 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
5701 (pa_comm): Set BSF_OBJECT in symbol flags.
5703 2004-03-19 Alan Modra <amodra@bigpond.net.au>
5705 * Makefile.am: Run "make dep-am".
5706 * Makefile.in: Regenerate.
5707 * doc/Makefile.in: Regenerate.
5708 * config.in: Regenerate.
5709 * po/gas.pot: Regenerate.
5711 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
5713 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
5714 (demand_empty_rest_of_line): Issue an error here.
5715 (ignore_rest_of_line): Silently skip to end.
5716 (demand_copy_string): Issue an error, not warning.
5718 * config/obj-elf.c (obj_elf_section_name): Likewise.
5719 (obj_elf_section): Likewise.
5720 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
5721 (arc_extinst): Likewise.
5722 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
5723 (dot_spill): Likewise.
5724 (dot_unwabi): Likewise.
5725 (dot_prologue): Likewise.
5727 * expr.c (operand): Reject ++ and --.
5728 (operator): Likewise.
5730 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5732 * config/tc-sh.c: Include dw2gencfi.h.
5733 (sh_cfi_frame_initial_instructions): New function.
5734 (sh_regname_to_dw2regnum): Likewise.
5735 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
5737 (TARGET_USE_CFIPOP): Define.
5738 (tc_cfi_frame_initial_instructions): Likewise.
5739 (tc_regname_to_dw2regnum): Likewise.
5740 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
5741 * Makefile.am: Update dependencies.
5742 * Makefile.in: Regenerate.
5744 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5746 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
5747 * configure: Regenerate.
5749 2004-03-12 Bob Wilson <bob.wilson@acm.org>
5751 * read.c (s_leb128): Call md_flush_pending_output.
5753 2004-03-12 Michal Ludvig <mludvig@suse.cz>
5755 * config/tc-i386.c (output_insn): Handle PadLock instructions.
5756 * config/tc-i386.h (CpuPadLock): New define.
5757 (CpuUnknownFlags): Added CpuPadLock.
5759 2004-03-07 Andreas Schwab <schwab@suse.de>
5761 * doc/c-hppa.texi (HPPA Directives): Fix typo.
5763 2004-03-07 Richard Henderson <rth@redhat.com>
5765 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
5766 (cfi_finish): Likewise for fde.
5768 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
5770 * config/tc-ia64.c (md_assemble): Properly handle NULL
5772 (ia64_handle_align): Don't abort if failed to add a stop bit.
5774 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
5776 * Makefile.in: Regenerated.
5777 * aclocal.m4: Likewise.
5778 * configure: Likewise.
5779 * doc/Makefile.in: Likewise.
5781 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
5783 * config/tc-ia64.c (dot_align): New.
5784 (ia64_do_align): Make it static.
5785 (md_pseudo_table): Use "dot_align" for "align".
5786 (ia64_md_do_align): Don't set align_frag here.
5787 (ia64_handle_align): Add a stop bit to the previous bundle if
5790 * config/tc-ia64.h (ia64_do_align): Removed.
5792 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
5794 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
5795 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
5796 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
5797 the most general type or the user specifically requested it.
5798 (md_assemble): Add a new error message for when an instruction
5799 is understood, but is not allowed due to an -isa option.
5801 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
5803 * config/tc-ia64.c (align_frag): New.
5804 (md_assemble): Set the tc_frag_data field in align_frag for
5805 IA64_OPCODE_FIRST instructions.
5806 (ia64_md_do_align): Set align_frag.
5807 (ia64_handle_align): Add a stop bit if needed.
5809 * config/tc-ia64.h (TC_FRAG_TYPE): New.
5810 (TC_FRAG_INIT): New.
5812 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
5814 * config/tc-frv.c (fr400_audio): New variable.
5815 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
5816 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
5817 (target_implements_insn_p): New function.
5818 (md_assemble): Report an error if the processor doesn't implement
5821 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5823 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
5824 (md_parse_option): Ditto.
5825 (OPTION_NO_SPECIAL_M32R): Added.
5826 (md_show_usage): Document it.
5827 (enable_speial_m32r): Changed a default value from 0 to 1.
5828 * doc/c-m32r.texi: Document the -no-bitinst option.
5830 2004-02-27 Nick Clifton <nickc@redhat.com>
5832 * config/tc-sh.c (get_operand): Revert previous delta.
5833 (tc_gen_reloc): Check for an unknown reloc type before processing
5836 2004-02-27 Hannes Reinecke <hare@suse.de>
5838 * config/tc-s390.c (s390_insn): Correct range check for opcode in
5839 .insn pseudo operation.
5841 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
5843 * config/tc-sh.c (get_operand): In case of #Imm, check has been
5844 added for wrong syntax.
5846 2004-02-26 Eric Christopher <echristo@redhat.com>
5848 * config/tc-mips.c (mips_dwarf2_addr_size): New.
5849 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
5851 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
5853 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
5854 nibble types to assembler.
5856 2004-02-25 Fred Fish <fnf@redhat.com>
5858 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
5860 2004-02-20 James E Wilson <wilson@specifixinc.com>
5862 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
5864 (fixup_unw_records): New arg before_relax. Pass to slot_index.
5865 (ia64_estimate_size_before_relax): New.
5866 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
5867 (generate_unwind_image): Pass 1 to fixup_unw_records.
5868 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
5869 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
5871 2004-02-19 Jakub Jelinek <jakub@redhat.com>
5873 * stabs.c (generate_asm_file): Avoid warning about use of
5874 uninitialized variable.
5876 2004-02-18 David Mosberger <davidm@hpl.hp.com>
5878 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
5879 body, and endp, allow unwind records which do not have a "t"
5880 (time/instruction) field.
5882 2004-02-17 Petko Manolov <petkan@nucleusys.com>
5884 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
5885 (do_mav_dspsc_2): Likewise.
5886 Fix accumulator registers move opcodes.
5888 2004-02-13 Hannes Reinecke <hare@suse.de>
5889 Jakub Jelinek <jakub@redhat.com>
5891 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
5893 2004-02-10 Steve Ellcey <sje@cup.hp.com>
5895 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
5896 (tc_frob_symbol): New macro definition.
5897 * config/tc-ia64.c (ia64_frob_symbol): New routine.
5899 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
5901 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
5904 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
5906 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
5907 (TC_CASE_SENSITIVE): ... this.
5908 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
5909 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
5911 2004-02-06 James E Wilson <wilson@specifixinc.com>
5913 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
5914 (generate_unwind_image): Re-add it here.
5916 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
5918 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
5919 * read.h (SKIP_WHITESPACE): Turn into an expression.
5920 * read.c (read_a_source_file): A pseudo is removed by having a
5923 2004-02-05 James E Wilson <wilson@specifixinc.com>
5925 * config/tc-ia64.c (output_endp): New.
5926 (count_bits): Delete.
5927 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
5928 endp unwind records.
5929 (fixup_unw_records): Handle endp unwind records. Delete code for
5930 shortening prologue regions not followed by a body record.
5931 (dot_endp): Call add_unwind_entry to emit endp unwind record.
5932 * config/tc-ia64.h (unw_record_type): Add endp.
5934 2004-02-03 James E Wilson <wilson@specifixinc.com>
5936 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
5937 fill padding bytes with zeroes.
5938 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
5939 sets unwind_record slot_number and slot_frag fields.
5941 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5943 * config/tc-mips.c (add_got_offset_hilo): New function.
5944 (macro): Use load_register() and add_got_offset_hilo() to load
5945 constants instead of hardcoding code sequences throughout.
5947 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
5949 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
5951 2004-01-26 Bernardo Innocenti <bernie@develer.com>
5953 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
5955 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
5956 of hard-coded test for TARGET_OS=elf.
5958 2004-01-24 Chris Demetriou <cgd@broadcom.com>
5960 * config/tc-mips.c (hilo_interlocks): Change definition
5961 so that MIPS32, MIPS64 and later ISAs are included, along with
5962 the already-included machines. Update comments.
5964 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
5966 * config/tc-arm.c (tc_gen_reloc): Improve error message for
5967 undefined local labels.
5969 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5971 * config/tc-mips.c (load_address, macro): Update comments about
5972 NewABI GP relaxation.
5974 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5976 * config/tc-mips.c (macro_build): Remove place and counter arguments.
5977 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
5978 (mips16_macro_build, macro_build_jalr): Remove counter argument.
5979 (set_at, load_register, load_address, move_register): Likewise.
5980 (load_got_offset, add_got_offset): Likewise.
5981 Update all calls and tidy accordingly.
5983 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
5985 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
5986 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
5987 (RELAX_USE_SECOND): Bump to 0x10000.
5988 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
5989 (mips_macro_warning): New variable.
5990 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
5991 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
5992 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
5994 (append_insn): Update mips_macro_warning.sizes.
5995 (macro_start, macro_warning, macro_end): New functions.
5996 (macro_build): Don't emit warnings here.
5997 (macro_build_lui, md_estimate_size_before_relax): ...or here.
5998 (md_convert_frag): Check for cases where one macro alternative
5999 needs a warning and the other doesn't. Emit a warning if the
6000 longer sequence was chosen.
6002 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6004 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
6005 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
6006 the first sequence, the size of the second sequence, and a flag
6007 that says whether we should warn.
6008 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
6009 (RELAX_FIRST, RELAX_SECOND): New.
6010 (mips_relax): New variable.
6011 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
6012 (append_insn): Remove "place" argument. Use mips_relax.sequence
6013 rather than "place" to check whether we're expanding the second
6014 alternative of a relaxable macro. Remove redundant check for
6015 branch relaxation. If generating a normal insn, and there
6016 is not enough room in the current frag, call relax_close_frag()
6017 to close it. Update mips_relax.sizes[]. Emit fixups for the
6018 second version of a relaxable macro. Record the first relaxable
6019 fixup in mips_relax. Remove tc_gen_reloc workaround.
6020 (macro_build): Remove all uses of "place". Use mips_relax.sequence
6021 in the same way as in append_insn.
6022 (mips16_macro_build): Remove "place" argument.
6023 (macro_build_lui): As for macro_build. Don't drop the add_symbol
6024 when generating the second version of a relaxable macro.
6025 (load_got_offset, add_got_offset): New functions.
6026 (load_address, macro): Use new relaxation machinery. Remove
6027 tc_gen_reloc workarounds.
6028 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
6029 version of a relaxable macro is needed. Return -RELAX_SECOND if the
6030 first version is needed.
6031 (tc_gen_reloc): Remove relaxation handling.
6032 (md_convert_frag): Go through the fixups for a relaxable macro and
6033 mark those that belong to the unneeded alternative as done. If the
6034 second alternative is needed, adjust the fixup addresses to account
6035 for the deleted first alternative.
6037 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
6039 * frags.h (frag_room): Declare.
6040 * frags.c (frag_room): New function.
6041 * doc/internals.texi: Document it.
6043 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6045 * config/tc-mips.c (append_insn): Don't do r3900 interlock
6046 optimization for -mtune=r3900, as this will break on other CPUs.
6048 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
6050 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
6051 be relaxed, use fixup.
6052 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
6054 2004-01-19 Jakub Jelinek <jakub@redhat.com>
6056 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
6059 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6061 * config/tc-mips.c (append_insn): Properly detect variant frags
6062 that preclude swapping of relaxed branches. Correctly swap
6063 instructions between frags when dealing with relaxed branches.
6065 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6067 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
6069 * aclocal.m4: Regenerate.
6070 * configure: Regenerate.
6072 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
6074 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
6077 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
6079 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
6080 reloc, reserve space for the delay slot as well as the jalr itself.
6082 2004-01-09 Paul Brook <paul@codesourcery.com>
6084 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
6085 (do_vfp_sp2_from_reg2): New function.
6087 (do_vfp_dp_from_reg2): Check return values properly.
6089 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
6091 * config/tc-mips.c (warn_nops): Remove static variable.
6092 (macro): Remove test of warn_nops.
6093 (md_shortops): Remove 'n'.
6094 (md_parse_option): Remove 'n' case.
6095 (md_show_usage): Remove -n.
6096 * doc/as.texinfo (Overview): Remove MIPS -n option.
6097 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
6098 * NEWS: Mention removal of MIPS -n option.
6100 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
6101 (cop_interlocks): Check ISA level.
6102 (cop_mem_interlocks): Define.
6103 (reg_needs_delay): Check cop_interlocks rather than
6104 ISA_HAS_COPROC_DELAYS.
6105 (append_insn): Likewise. Use cop_mem_interlocks rather than
6106 directly checking mips_opts.isa.
6107 (mips_emit_delays): Likewise.
6109 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
6111 * config/tc-ia64.c (unwind): Move next_slot_number and
6112 next_slot_frag to ...
6113 (unw_rec_list): Here.
6114 (free_list_records): Removed.
6115 (output_unw_records): Likewise.
6116 (generate_unwind_image): Make it void.
6117 (alloc_record): Initialize next_slot_number and next_slot_frag.
6118 (slot_index): Take .org, .space and .align into account.
6119 (fixup_unw_records): Don't set slot_number to 0. Use
6120 list->next_slot_number and list->next_slot_frag instead of
6121 unwind.next_slot_number and unwind.next_slot_frag.
6122 (ia64_convert_frag): New.
6123 (generate_unwind_image): Generate a rs_machine_dependent frag
6125 (emit_one_bundle): Use list->next_slot_number and
6126 list->next_slot_frag instead of unwind.next_slot_number and
6127 unwind.next_slot_frag.
6129 * config/tc-ia64.h (md_convert_frag): Defined as
6131 (md_estimate_size_before_relax): Defined as (f)->fr_var.
6133 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
6135 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
6136 * config/tc-frv.h (md_apply_fix3): Don't define.
6137 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
6139 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
6140 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
6141 * config/tc-frv.c (line_separator_chars): Add `!'.
6142 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
6143 * config/tc-frv.c (md_assemble): Clear insn upfront.
6144 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
6145 * config/tc-frv.c (OPTION_FDPIC): New macro.
6146 (md_longopts): Add mfdpic.
6147 (md_parse_option): Handle it.
6148 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
6149 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
6150 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
6151 (frv_pic_ptr): Parse funcdesc.
6153 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6155 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
6156 gasver.texi. Remove duplicate symbol definitions for texi2pod.
6158 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6160 * Makefile.am (Makefile): Move the dependency on
6161 $(BFDDIR)/configure.in to...
6162 (CONFIG_STATUS_DEPENDENCIES): ... here.
6163 (AUTOMAKE_OPTIONS): Require automake 1.8.
6164 * Makefile.in: Regenerate.
6165 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
6166 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
6167 $(BFDDIR)/configure.in here as well.
6168 * doc/Makefile.in: Regenerate.
6170 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6172 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
6173 * Makefile.in: Regenerate.
6174 * aclocal.m4: Regenerate.
6175 * doc/Makefile.am (install, install-info): Remove.
6176 (install-data-local): A new hook for install-info.
6177 (AUTOMAKE_OPTIONS): Require automake 1.8.
6178 * doc/Makefile.in: Regenerate.
6180 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
6182 * doc/c-sh.texi: Update description about floating point behavior
6185 2004-01-02 Bernardo Innocenti <bernie@develer.com>
6187 * configure.in: Add m68k-uClinux target.
6188 * configure: Regenerate.
6190 For older changes see ChangeLog-0203
6196 version-control: never