gas/
[binutils.git] / gas / ChangeLog
blob3428d6ce4be81ae8d8e79262e72b77a191b9b118
1 2005-02-11  Jan Beulich  <jbeulich@novell.com>
3         * config/tc-ia64.h (LEX_AT): Include LEX_BEGIN_NAME.
4         (LEX_QM): Likewise.
5         (ia64_parse_name): New third parameter.
6         (md_parse_name): Pass third argument.
7         * config/tc-ia64.c (pseudo_func): Placeholders use NULL as name.
8         (md_operand): Handling of '@'-prefixed symbols moved from here...
9         (ia64_parse_name): ...to here.
11 2005-02-11  Jan Beulich  <jbeulich@novell.com>
13         * config/tc-ia64.c (md): Remove last_groups and group_idx.
14         (errata_nop_necessary_p): Remove declaraction and definition.
15         (emit_one_bundle): Don't call errata_nop_necessary_p. Don't
16         update md.group_idx. Don't reset md.last_groups.
18 2005-02-11  Jan Beulich  <jbeulich@novell.com>
20         * config/tc-ia64.c (parse_section_name): Handle non-quoted first
21         argument.
22         (dot_xdata): Free section name after use.
23         (dot_float_cons): Likewise.
24         (dot_xstringer): Likewise.
25         (dot_xdata_ua): Likewise.
26         (dot_float_cons_ua): Likewise.
27         (md_pseudo_table): Add xdata16 and xdata16.ua.
29 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
31         * doc/all.texi: Add IA64.
32         * doc/as.texinfo: Likewise.
34         * doc/c-ia64.texi: Fix typos.
36 2005-02-10  Julian Brown  <julian@codesourcery.com>
38         * config/tc-arm.c (do_t_ldmstm): Change BFD_RELOC_NONE to
39         BFD_RELOC_UNUSED.
40         (do_t_push_pop): Likewise.
41         (md_assemble): Likewise.
42         (md_apply_fix3): Handle BFD_RELOC_NONE correctly, make
43         BFD_RELOC_UNUSED same as previous meaning of BFD_RELOC_NONE.
44         (create_unwind_entry): Output dependency on the required personality
45         routines.
46         testsuite/gas/arm/unwind.d: Alter expected output to include
47         dependency on __aeabi_unwind_cpp_pr[01].
49 2005-02-07  Nathan Sidwell  <nathan@codesourcery.com>
51         * as.h (seg_not_empty_p): Return int, not bfd_boolean.
52         * subsegs.c (seg_not_empty_p): Likewise.
54 2005-02-07  Inderpreet Singh <inderpreetb@noida.hcltech.com>
56         * config/tc-maxq.c (md_estimate_size_before_relax): Correct the
57         relative jump calculation. 
58         <md_convert_frag) : Likewise.
59         <output_disp): Likewise.
61 2005-02-07  Hans-Peter Nilsson  <hp@axis.com>
63         * write.c (write_object_file): Recognize warning-symbol construct
64         and skip object- and target- handling for the second symbol.
66 2005-02-02  Jan Beulich  <jbeulich@novell.com>
68         * config/tc-ia64.c (dot_pred_rel): Update comment. Handle @-prefixed
69         designators along with quoted ones. Free copy of quoted designator
70         when done.
72 2005-02-01  Ben Elliston  <bje@au.ibm.com>
74         * config/atof-ieee.c, config/obj-coff.c, config/obj-elf.c,
75         config/obj-ieee.c, config/obj-som.c, config/obj-vms.c,
76         config/tc-a29k.c, config/tc-alpha.c, config/tc-arc.c,
77         config/tc-arm.c, config/tc-d30v.c, config/tc-dlx.c,
78         config/tc-fr30.c, config/tc-h8300.c, config/tc-h8500.c,
79         config/tc-i370.c, config/tc-i386.c, config/tc-i960.c,
80         config/tc-ia64.c, config/tc-m32r.c, config/tc-m32r.h,
81         config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-mips.c,
82         config/tc-mn10200.c, config/tc-msp430.c, config/tc-ns32k.c,
83         config/tc-openrisc.c, config/tc-or32.c, config/tc-pdp11.c,
84         config/tc-pj.c, config/tc-sparc.h, config/tc-tic54x.c,
85         config/tc-tic80.c, config/tc-v850.c, config/tc-w65.c,
86         config/tc-xtensa.c, config/tc-z8k.c, config/xtensa-relax.c: Remove
87         #if 0'd code throughout.
89 2005-01-31  Nick Clifton  <nickc@redhat.com>
91         * as.c (parse_args): Bump copyright date reported by --version to
92         2005.
94 2005-01-31  Nick Clifton  <nickc@redhat.com>
96         * configure.tgt: Remove obsolete targets m68k-lynxos, sparc-lynxos
97         and vax-vms.
99 2005-01-31  Jan Beulich  <jbeulich@novell.com>
101         * macro.c (buffer_and_nest): Allow 'from' being NULL; handle anything
102         that can end with .endr in that case. Make requiring/permitting
103         pseudo-ops without leading dot closer to the logic in read.c serving
104         the same purpose.
105         (expand_irp): Don't pass a mnemonic to buffer_and_nest as it will be
106         ignored.
108 2005-01-31  Jan Beulich  <jbeulich@novell.com>
110         * macro.c (do_formals): Adjust to no longer accept empty parameter
111         names.
112         (define_macro): Adjust to no longer accept empty macro name, garbage
113         following the parameters, or macros that were previously defined.
114         * read.c (s_bad_end): Declare.
115         (potable): Add endm. Handler for endr and endm is s_bad_end.
116         (s_bad_end): Rename from s_bad_endr. Adjust to handle both .endm
117         and .endr.
118         * read.h (s_bad_endr): Remove.
120 2005-01-31  Jan Beulich  <jbeulich@novell.com>
122         * config/tc-ia64.c (parse_operands): Parse all specified operands,
123         immediately discarding (but counting) those exceeding the maximum
124         possible amount. Track whether output and input operand counts ever
125         matched, and use this to better indicate which of the operands/
126         operand types was wrong; specifically don't default to pointing to
127         the first operand.
129 2005-01-31  Jan Beulich  <jbeulich@novell.com>
131         * config/tc-ia64.c (unwind): Remove proc_end (now an automatic
132         variable in dot_endp). Add body and insn. Make prologue,
133         prologue_mask, body, and insn bitfields.
134         (fixup_unw_records): Remove spurious new-lines from end of diagnostic
135         messages.
136         (in_procedure, in_prologue, in_body): New.
137         (dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
138         dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
139         dot_unwentry, dot_altrp, dot_savemem, dot_saveg, dot_savef, dot_saveb,
140         dot_savegf, dot_spill, dot_spillreg, dot_spillmem, dot_spillreg_p,
141         dot_spillmem_p, dot_label_state, dot_copy_state, dot_unwabi,
142         dot_personality): Use the appropriate one of the above.
143         (dot_proc): Clear unwind.proc_start; set to current location only if
144         none of the entry points were valid. Check for non-zero-length entry
145         point names. Check that entry points aren't defined, yet. Clear
146         unwind.prologue, unwind.body, and unwind.insn.
147         (dot_body): Call in_procedure. Check that first directive in procedure
148         had no insns emitted before. Set unwind.body.
149         (dot_prologue): Call in_procedure. Check that not already in prologue.
150         Check that first directive in procedure had no insns emitted before.
151         Clear unwind.body.
152         (dot_endp): Call in_procedure. Declare proc_end. Check for non-zero-
153         length entry point names. Check that entry points became defined.
154         (md_assemble): Set unwind.insn once unwind.proc_start is defined.
156 2005-01-31  Jan Beulich  <jbeulich@novell.com>
158         * config/tc-ia64.c (emit_one_bundle): Snapshot manual bundling state
159         before actually using it. Don't generate an error in manual bundling
160         mode when looking at an insn requiring slot 2 but not yet at slot 2.
161         Don't generate an error in manual bundling mode when looking at an
162         insn required to be last in its group but the required slot hasn't
163         been reached, yet. Allow conversion from MII to MI;I for bundle
164         consisting of only 2 insns with the stop between them. Suppress
165         various meaningless errors resulting from detecting earlier ones.
167 2005-01-31  Jan Beulich  <jbeulich@novell.com>
169         * config/tc-ia64.c (parse_operands): Also handle alloc without first
170         input being ar.pfs.
172 2005-01-28  Christian Groessler  <chris@groessler.org>
174         * config/tc-z8k.c (md_assemble): Improve error detection.
176 2005-01-28  Jan Beulich  <jbeulich@novell.com>
178         * config/tc-ia64.c (ia64_estimate_size_before_relax): Allocate space
179         for personality routine pointer only if there is one.
180         (ia64_convert_frag): Likewise.
181         (generate_unwind_image): Likewise.
183 2005-01-27  Christian Groessler  <chris@groessler.org>
185         * config/tc-z8k.c (INSERT): Remove, not used anywhere.
186         (md_apply_fix3): Make relative branches out of range an error
187         instead of a warning.  Display correct line number for out of
188         range branches/calls/memory accesses.
190 2005-01-27  Nathan Sidwell  <nathan@codesourcery.com>
192         * dwarf2dbg.c (dwarf2_finish): Correct logic for determining when
193         to emit .debug_line and other debug sections.
194         * as.h (seg_not_empty_p): Declare.
195         * subsegs.c (seg_not_empty_p): New predicate.
197 2005-01-27  Andrew Cagney  <cagney@gnu.org>
199         * configure: Regenerate to track ../gettext.m4 change.
201 2005-01-27  Jan Beulich  <jbeulich@novell.com>
203         * config/tc-ia64.c (emit_one_bundle): Change "?imbf??" to "?ibmfxx".
205 2005-01-27  Jan Beulich  <jbeulich@novell.com>
207         * config/tc-ia64.c (emit_one_bundle): Add late resolution of move
208         to/from application registers dynamic insns.
209         (md_assemble): Defer resolution of move to/from application registers
210         dynamic insns when they can be issued on either the I- or M-units.
212 2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
214         * config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
215         2004-12-10  Alexandre Oliva  <aoliva@redhat.com>
216         * config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
217         2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
218         * cgen.c (gas_cgen_parse_operand): Handle
219         CGEN_PARSE_OPERAND_SYMBOLIC.
220         * config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
221         (frv_force_relocation): Likewise.  Fix handling of PIC
222         relocations.
223         (md_apply_fix3): Likewise.
225 2005-01-21  Ben Elliston  <bje@au.ibm.com>
227         * as.h: Remove #if 0'd code.
228         * atof-generic.c (atof_generic): Likewise.
229         * ecoff.c (ecoff_directive_frame): Likewise.
230         * frags.h (FRAG_APPEND_1_CHAR): Likewise.
231         * itbl-ops.c (itbl_add_reg): Likewise.
232         * listing.c (calc_hex): Likewise.
233         * read.c (MASK_CHAR): Likewise.
234         * subsegs.c (subsegs_print_statistics): Likewise.
235         * symbols.c (indent): Likewise.
236         * write.c (write_relocs): Likewise.
237         (write_object_file): Likewise.
238         (relax_frag): Likewise.
240 2005-01-20  Nick Clifton  <nickc@redhat.com>
242         * as.c (std_longopts): Add an entry for "--a" in order to prevent
243         getopt_long_only() from considering -a as an abbreviation for
244         --alternate.
245         (parse_args): Fix the parsing of -a=<file>.
247 2005-01-20  Alan Modra  <amodra@bigpond.net.au>
249         PR gas/684
250         * read.c (s_incbin): Adjust default count for skip.  Check validity
251         of count and skip rigorously.
253 2005-01-19  Fred Fish  <fnf@specifixinc.com>
255         * config/tc-mips.c (dummy_opcode): Add init for new struct member.
257 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
259         * read.c (convert_to_bignum): New function, split out from...
260         (emit_expr): ...here.  Handle the case where X_add_number is
261         positive and the input value is negative.
262         (output_big_sleb128): Fix setting of continuation bit.  Check whether
263         the final byte needs to be sign-extended.  Fix size-shrinking loop.
264         (emit_leb128_expr): When generating a signed leb128, see whether the
265         sign of an O_constant's X_add_number matches the sign of the input
266         value.  Use a bignum if not.
268 2005-01-17  Andrew Stubbs  <andrew.stubbs@st.com>
270         * tc-sh.c (md_begin,md_parse_option): Change arch_sh1_up to
271         arch_sh_up in order to match the external name and make the
272         testsuite's job easier.
274 2005-01-14  H.J. Lu  <hongjiu.lu@intel.com>
276         PR 659  
277         * config/tc-i386.c (i386_scale): Disallow 0 scale.
279 2005-01-12  Nick Clifton  <nickc@redhat.com>
281         * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing
282         ignored_arguments array.
284 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
286         * write.c (write_object_file): Disallow a symbol equated to
287         common symbol.
289 2005-01-10  Inderpreet Singh <inderpreetb@noida.hcltech.com>
291         * tc-maxq.c: Replace constants 10 and 20 with bfd_mach_maxq10 and
292         bfd_mach_maxq20.
293         (md_pseudo_table): Add new pseudo ops for maxq10 and maxq20.
294         (maxq_target): New function: Set the machine type.
296 2005-01-06  Paul Brook  <paul@codesourcery.com>
298         * config/tc-arm.c (FPU_DEFAULT): Define for TE_VXWORKS.
299         (md_begin): Handle TE_VXWORKS for FP defaults.
300         (md_apply_fix3): Correct rela offsets.
301         (elf32_arm_target_format): Add VxWorks targets.
303 2005-01-06  Paul Brook  <paul@codesourcery.com>
305         * configure.tgt: Set em=vxworks for *-*-vxworks.
306         * config/te-vxworks.h: New File.
308 2005-01-06  Paul Brook  <paul@codesourcery.com>
310         * config/tc-arm.c (arm_cpus): Correct arch field for arm1026ej-s.
312 2005-01-04  Dmitry Diky  <diwil@spec.ru>
314         * config/tc-msp430.c (md_apply_fix3): Fix offset calculation for
315         global label.
317 2005-01-03  David Mosberger  <davidm@hpl.hp.com>
319         * config/tc-ia64.c (md): Add member "loc_directive_seen".
320         (dot_loc): New function.
321         (md_pseudo_table): Add entry to map .loc to dot_loc().
322         (emit_one_bundle): Only call dwarf2_gen_line_info() if we have
323         seen a .loc directive or we're generating DWARF2 debug info for
324         assembly source.
326 2004-12-29  Alan Modra  <amodra@bigpond.net.au>
328         PR gas/619
329         * read.c (s_comm_internal): Don't zero end of name until size
330         expression has been parsed.
332 2004-12-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
334         * config/tc-avr.c (mcu_types): Move attiny{13,2313} from avr4 to avr2.
336 2004-12-23  Tomer Levi  <Tomer.Levi@nsc.com>
338         * config/tc-crx.c: Support 'bcop' relaxation (dealt as in 'cmp&branch'
339         case).
341 2004-12-22  Ian Lance Taylor  <ian@airs.com>
343         * configure.tgt: New.
344         * configure.in: Move setting of cpu_type, fmt, etc., to
345         configure.tgt.
346         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
347         $(srcdir)/configure.tgt.
348         * configure, Makefile.in: Rebuild.
350 2004-12-22  Klaus Rudolph  <lts-rudolph@gmx.de>
351     
352         * config/tc-avr.c: Add support for the new R_AVR_LDI, R_AVR_6 and
353         R_AVR_6_ADIW relocs for the LDI, ADIW/SBIW and LDD/STD
354         instructions.
355         (avr_offset_expression): New function to parse offsets for LDI
356         instructions.
357         (avr_operand): Use it.
358         (md_apply_fix3): Generate the relocs.
360 2004-12-16  Andrew Stubbs  <andrew.stubbs@st.com>
362         * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
363         BFD_RELOC_SH_IMMS10BY8 relocation.
365         * config/tc-sh64.c (shmedia_build_Mytes): Emit an error message rather
366         than just ignoring bad code.
368 2004-12-16  Richard Sandiford  <rsandifo@redhat.com>
370         * config/tc-v850.c (handle_lo16): New function.
371         (v850_reloc_prefix): Use it to check lo().
372         (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.
374 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
376         * configure.in: Add s390x-ibm-tpf support.
377         * configure: Regenerate.
379 2004-12-15 Jan Beulich  <jbeulich@novell.com>
381         * config/obj-elf.c (obj_elf_change_section): Only set type and
382         attributes on new sections. Emit warning when type of re-declared
383         section doesn't match.
385 2004-12-15 Jan Beulich  <jbeulich@novell.com>
387         * dw2gencfi.c (dot.cfi.startproc): Clear cur_cfa_offset so
388         '.cfi_startproc simple' doesn't inherit the old value.
390 2004-12-15  Jan Beulich  <jbeulich@novell.com>
392         * dw2gencfi.c (output_cfi_insn): Adjust DW_CFA_def_cfa_sf generation
393         to emit a signed and factored offset. Adjust DW_CFA_def_cfa_offset_sf
394         generation to emit a factored offset.
396 2004-12-10  Ian Lance Taylor  <ian@wasabisystems.com>
398         * config/tc-mips.c (macro) [M_LA_AB]: Give an error for a offset
399         which is too large in the case of NO_PIC without 64-bit
400         addresses.
402         * config/tc-mips.c (mips_in_shared): New static variable.
403         (macro_build_lui): Permit "_gp" if !mips_in_shared.
404         (md_longopts): Add -mshared and -mno-shared.
405         (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED.
406         (s_cpload): Implement !mips_in_shared case.
407         (s_cpsetup): Likewise.
408         * doc/c-mips.texi (MIPS Opts): Document -mno-shared.
409         * NEWS: Mention -mno-shared.
411 2004-12-09  Paul Brook  <paul@codesourcery.com>
413         * config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
414         for function start.
416 2004-12-09  Ian Lance Taylor  <ian@wasabisystems.com>
418         * config/tc-mips.c (append_insn): If we emit a nop during a relax
419         sequence, increase the size of the sequence.
421         * config/tc-mips.c (mips_cpu_info_table): Change "9000" entry to
422         use CPU_RM9000.
424 2004-12-07  Ben Elliston  <bje@gnu.org>
426         * read.c (s_align): Use an align_limit temporary to allay a GCC
427         signed/unsigned comparison warning.
429 2004-12-01  Mark Mitchell  <mark@codesourcery.com>
431         * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h.
432         * configure.in: Use it for arm*-*-linux-gnueabi*.
433         * config/tc-arm.c: Allow emulation file to set FPU_DEFAULT.
434         * config/te-armlinuxeabi.h: New file.
435         * Makefile.in: Regenerated.
436         * aclocal.m4: Likewise.
437         * configure: Likewise.
438         * doc/Makefile.in: Regenerated. 
440 2004-12-02  Bob Wilson  <bob.wilson@acm.org>
442         * config/tc-xtensa.c (xtensa_switch_section_emit_state): Use subseg_set.
443         (xtensa_restore_emit_state): Likewise.
445 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
447         * read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
448         (s_align): Use it.
450 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
452         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
453         * Makefile.in: Regenerate.
455 2004-11-29  Tomer Levi  <Tomer.Levi@nsc.com>
457         * config/tc-crx.c: Major code cleanup. Remove unused variables and
458         functions, give functions a meaningful name, add comments.
459         (check_range): New function - Replace operand size calculation
460         with range checking.
461         (assemble_insn): Update Algorithm, improve error issuing.
462         (enum op_err): New.
463         (process_label_constant): Bug fix regarding COP_BRANCH_INS relocation
464         handling.
466 2004-11-29  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
468         * config/tc-m32r.c (md_pcrel_from_section): Fixed a pcrel relocte
469         miss between different section in the same module.
470         (tc_gen_reloc): Likewise.
472 2004-11-25  Theodore A. Roth  <troth@openavr.org>
474         * gas/config/tc-avr.c (mcu_types): Add support for atmega165,
475         atmega325, atmega3250, atmega645 and atmega6450.
477 2004-11-25 Jan Beulich  <jbeulich@novell.com>
479         * config/tc-i386.c (optimize_imm): Adjust immediates to only those
480         permissible for the selected instruction suffix.
481         (process_suffix): For DefaultSize instructions, suppressing the
482         guessing of a 'q' suffix if the instruction doesn't support it is
483         pointless, because only an 'l' suffix can be guessed in this place.
485 2004-11-24  Nick Clifton  <nickc@redhat.com>
487         * config/tc-iq2000.c: Remove support for IQ10 processor.
488         Convert to ISO C90 formatting.
489         * config/tc-iq2000.h: Likewise.
491 2004-11-23  Nick Clifton  <nickc@redhat.com>
493         * config/tc-mn10300.c (md_relax_table): More fixes to the offsets
494         in this table.  They should be correct now.
496 2004-11-23 Jan Beulich <jbeulich@novell.com>
498         * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to
499         indicate the MMX extensions added by both SSE and 3DNow!A.
500         (Cpu3dnowA): Declare.
501         (CpuUnknownFlags): Update.
502         * config/tc-i386.c (cpu_sub_arch_name): Declare.
503         (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do
504         neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies
505         3DNow!. Athlon additionally implies 3DNow!A. Several new
506         entries (those starting with a dot are for sub-arch specification).
507         (set_cpu_arch): Handle sub-arch specifications.
508         (parse_insn): Distinguish between instructions not supported because
509         of insufficient CPU features and because of 64-bit mode.
510         * doc/c-i386.texi: Describe enhanced .arch directive.
512 2004-11-22  Bob Wilson  <bob.wilson@acm.org>
514         * config/tc-xtensa.c (xg_add_opcode_fix): Set fx_no_overflow.
516 2004-11-22  Bob Wilson  <bob.wilson@acm.org>
518         * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
519         without a corresponding .debug_info section.
521 2004-11-22  Hans-Peter Nilsson  <hp@axis.com>
523         * read.c (potable): Add "error" and "warning".
524         (s_errwarn): New function.
525         * read.h (s_errwarn): Declare.
526         * doc/as.texinfo (Error, Warning): Document .error and .warning.
528 2004-11-22  Nick Clifton  <nickc@redhat.com>
530         * config/tc-tic54x.c (tic54x_adjust_symtab): Adjust call to
531         c_dot_file_symbol.
533 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
535         * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
536         struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
538 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
540         * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
541         (coff_adjust_symtab): Adjust call.
542         (crawl_symbols): Likewise.
543         * config/obj-coff.h (c_dot_file_symbol): Add "app" param.
544         (obj_app_file): Adjust.
546 2004-11-18  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
548         * configure.in: Enable bfd_assember for the MAXQ port.
549         * configure: Regenerate.
551 2004-11-12  Bob Wilson  <bob.wilson@acm.org>
552             Sterling Augustine  <sterling@tensilica.com>
554         * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if
555         there is a conflict.
556         (check_t1_t2_reads_and_writes): Check for both reads and writes to
557         interfaces that are related as determined by xtensa_interface_class_id.
559 2004-11-12  Nick Clifton  <nickc@redhat.com>
561         * config/tc-mn10300.c (md_relax_table): Fix off by one negative
562         offsets for conditional branches.
564 2004-11-11  Bob Wilson  <bob.wilson@acm.org>
566         * config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
568 2004-11-10  Bob Wilson  <bob.wilson@acm.org>
570         * config/tc-xtensa.c (update_next_frag_state): Always add a NOP if
571         relaxing at the end of a loop.  Don't mark frags as UNREACHABLE or
572         MAYBE_UNREACHABLE.
573         (relax_frag_immed): Update call to update_next_frag_state.
575 2004-11-10  Alan Modra  <amodra@bigpond.net.au>
577         * obj.h (struct format_ops <app_file>): Add int param.
578         * read.h (s_app_file_string): Likewise.
579         * read.c (s_app_file_string): Likewise.
580         (s_app_file): Adjust s_app_file_string call.
581         * config/tc-mips.c (s_mips_file): Likewise.
582         * config/obj-coff.h (obj_app_file): Add app param.
583         * config/obj-ecoff.h (obj_app_file): Likewise.
584         * config/obj-multi.h (obj_app_file): Likewise.
585         * config/obj-elf.h (elf_file_symbol): Likewise.
586         * config/obj-elf.c (elf_file_symbol): Only emit one file symbol
587         if called for # preprocessor lines.
589 2004-11-08  H.J. Lu  <hongjiu.lu@intel.com>
591         PR 528
592         * symbols.c (resolve_symbol_value): Convert weak symbols only
593         for Windows PECOFF.
594         (symbol_equated_reloc_p): Don't equate weaks when relocating
595         only for Windows PECOFF.
597 2004-11-08  Tomer Levi  <Tomer.Levi@nsc.com>
599         * config/tc-crx.c (print_insn): Check and set insn_addr.
600         * config/tc-crx.h (md_frag_check): Define.
602 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
603             Vineet Sharma      <vineets@noida.hcltech.com>
605         * configure.in: Add support for new target maxq-coff.
606         * configure: Regenerate.
607         * NEWS: Mention new support.
608         * config/tc-maxq.c: New file.
609         * config/tc-maxq.h: New file.
610         * config/obj-coff.h: Add support for maxq-coff.
612 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
614         * symbols.c (any_external_name): Define.
615         (resolve_symbol_value): Convert weak symbols.
616         (S_SET_EXTERNAL): Support any_external_name.
617         (S_SET_NAME): Qualify parameter const.
618         (symbol_equated_reloc_p): Equate to weaks when relocating.
619         * symbols.h (S_SET_NAME): Qualfiy parameter const.
620         * tc.h (any_external_name): Declare.
621         * config/obj-coff.c ("coff/pe.h"): Include for BFD
622         assemblers also.
623         (weak_is_altname): Declare and define.
624         (weak_name2altname): Same.
625         (weak_altname2name): Same.
626         (weak_uniquify): Same.
627         (weak_altprefix): Define.
628         (obj_coff_weak): Change .weak syntax and handling.
629         (coff_frob_symbol): Fix PE weak symbol alternates.
630         * config/obj-coff.h (USE_UNIQUE): Define.
631         * config/tc-i386.c (md_apply_fix3): Assume weak symbols
632         are in another segment.
633         (tc_gen_reloc): Remove broken addend hack.
634         doc/as.texinfo: Update.
636 2004-11-05  Sterling Augustine  <sterling@tensilica.com>
638         * config/tc-xtensa.c (total_frag_text_expansion): New.
639         (md_estimate_size_before_relax): Use it.
640         (find_address_of_next_align_frag): Likewise.
642 2004-11-05  Tomer Levi  <Tomer.Levi@nsc.com>
644         * config/tc-crx.c: Rename argument types.
645         (processing_arg_number): Rename to 'cur_arg_num'.
646         (get_number_of_bits): Rename to 'set_operand_size'.
647         (get_operandtype): Rename to 'parse_operand', totally rewrite.
648         (set_cons_rparams): Rename to 'set_operand', totally rewrite.
649         (set_indexmode_parameters): Remove function, integrate its code into
650         'set_operand'.
651         (set_operand_size): Get rid of 'Operand Number' function parameter -
652         use global variable 'cur_arg_num' instead.
653         Use a local 'argument' pointer to reference the current argument.
654         (parse_operand): Likewise.
655         (set_operand): Likewise.
656         (process_label_constant): Likewise.
658 2004-11-04  Bob Wilson  <bob.wilson@acm.org>
660         * config/tc-xtensa.c: Remove XTENSA_SECTION_RENAME ifdefs.
661         (add_section_rename): Delete.  Inlined into...
662         (build_section_rename): ...here.  Use xstrdup instead of strdup.
663         (xtensa_section_rename): Drop "const" from argument and return types.
664         (md_show_usage): Indent to match show_usage().
665         * config/tc-xtensa.h: Remove XTENSA_SECTION_RENAME ifdefs.
666         (tc_canonicalize_section_name): Define.
667         (md_elf_section_rename): Remove unused macro.
668         * doc/as.texinfo (Overview): Document Xtensa --rename-section option.
669         * doc/c-xtensa.texi (Xtensa Options): Likewise.
670         (Frame Directive): Delete.
672 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
674         * configure.in: Remove arm-*-oabi and thumb-*-oabi.
675         * config/tc-arm.c (target_oabi): Delete.
676         (md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
677         (arm_opts): Remove moabi.
678         * doc/as.texinfo (Overview): Remove documentation of -moabi.
679         * doc/c-arm.texi (ARM Options): Likewise.
680         * configure: Regenerated.
682 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
684         * configure.in (crisv32): Recognize.  AC_DEFINE_UNQUOTED
685         DEFAULT_CRIS_ARCH.  Handle crisv32-*-linux-gnu* like
686         cris-*-linux-gnu* and crisv32-*-* like cris-*-*.
687         * configure: Regenerate.
688         * config/tc-cris.c (enum cris_archs): New.
689         (cris_mach, cris_arch_from_string, s_cris_arch, get_sup_reg)
690         (cris_insn_ver_valid_for_arch): New functions.
691         (DEFAULT_CRIS_ARCH): New macro, default to cris_any_v0_v10.
692         (cris_arch): New variable.
693         (md_pseudo_table): New pseudo .arch.
694         (err_for_dangerous_mul_placement): Initialize according to
695         DEFAULT_CRIS_ARCH.
696         (STATE_COND_BRANCH): Renamed from STATE_CONDITIONAL_BRANCH.
697         All users changed.
698         (STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON)
699         (STATE_ABS_BRANCH_V32, STATE_LAPC, BRANCH_BF_V32, BRANCH_BB_V32)
700         (BRANCH_WF_V32, BRANCH_WB_V32): New.
701         (BRANCH_BF, BRANCH_BB, BRANCH_WF, BRANCH_WB): Don't undef after
702         use in md_cris_relax_table.
703         (md_cris_relax_table): Add entries for STATE_COND_BRANCH_V32,
704         STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
705         Update and improve head comment.
706         (OPTION_PIC): Define in terms of previous option, OPTION_US.
707         (OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): Similar.
708         (OPTION_ARCH): New.
709         (md_longopts): New option --march=...
710         (cris_any_v0_v10_long_jump_size, crisv32_long_jump_size): New
711         macros.
712         (md_long_jump_size): Initialize in terms of DEFAULT_CRIS_ARCH.
713         (HANDLE_RELAXABLE): New macro.
714         (md_estimate_size_before_relax): Use HANDLE_RELAXABLE for common
715         cases.  Check for weak symbols and assume not relaxable.  Handle
716         STATE_COND_BRANCH_V32, STATE_COND_BRANCH_COMMON,
717         STATE_ABS_BRANCH_V32, STATE_LAPC.  Use new variable symbolP, not
718         fragP->fr_symbol.
719         (md_convert_frag): Handle STATE_COND_BRANCH_V32,
720         STATE_COND_BRANCH_COMMON, STATE_ABS_BRANCH_V32, STATE_LAPC.
721         (cris_create_short_jump): Adjust for CRISv32.
722         (cris_relax_frag): Handle new states.
723         (md_create_long_jump): Ditto.  Emit error for common_v10_v32.
724         (md_begin): Define symbols "..asm.arch.cris.v32",
725         "..asm.arch.cris.v10", "..asm.arch.cris.common_v10_v32" and
726         "..asm.arch.cris.any_v0_v10".  Use cris_insn_ver_valid_for_arch
727         when entering opcode table entry points.
728         (md_assemble): Adjust branch handling for CRISv32.  Handle LAPC
729         relaxation.  In fix_new_exp call for main insn, pass 1 for pcrel
730         parameter for 8, 16 and 32-bit pc-relative insns and LAPC.
731         (cris_process_instruction): Initialize out_insnp->insn_type to
732         CRIS_INSN_NONE, not CRIS_INSN_NORMAL.
733         <case ']', '[', 'A', 'd', 'Q', 'N', 'n', 'Y', 'U', 'u', 'T'>: New
734         cases.
735         <case 'm'>: Check that modified_char == '.'.
736         <invalid operands>: Consume the rest of the line.
737         When operands don't match, skip over subsequent insns with
738         non-matching version specifier but same mnemonic.
739         <immediate constant, case SIZE_SPEC_REG>: Immediate operands for
740         special registers in CRISv32 are always 32 bit long.
741         <immediate constant, case SIZE_FIELD_SIGNED, SIZE_FIELD_UNSIGNED>:
742         New cases.
743         (get_gen_reg): Only recognize "PC" when followed by "+]" for v32
744         and compatible.  Recognize "ACR" for v32, unless followed by "+".
745         (get_spec_reg): Consider cris_arch when looking up register.
746         (get_autoinc_prefix_or_indir_op): Don't recognize assignment for
747         v32 or compatible.
748         (get_3op_or_dip_prefix_op): Check for ']' after seeing '[rN+'.
749         (cris_get_expression): Restore input_line_pointer if failing "early".
750         (get_flags): Consider cris_arch and recognize flags accordingly.
751         (branch_disp): Adjust for CRISv32.
752         (gen_cond_branch_32): Similar.  Emit error for common_v10_v32.
753         (cris_number_to_imm): Use as_bad_where, not as_bad.  Remove
754         related FIXME.  Don't insist on BFD_RELOC_32_PCREL fixup to be
755         resolved.  Don't enter zeros in object file for
756         BFD_RELOC_32_PCREL.
757         <case BFD_RELOC_CRIS_LAPCQ_OFFSET, BFD_RELOC_CRIS_SIGNED_16>
758         <case BFD_RELOC_CRIS_SIGNED_8>: New case.
759         (md_parse_option): Break out "return 1".
760         <OPTION_ARCH> New case.
761         (tc_gen_reloc): <case BFD_RELOC_CRIS_LAPCQ_OFFSET>
762         <case BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_SIGNED_8>
763         <case BFD_RELOC_CRIS_UNSIGNED_8, BFD_RELOC_CRIS_UNSIGNED_16>
764         <case BFD_RELOC_32_PCREL>: New cases.
765         Addends for non-zero fx_pcrel are too in fx_offset.
766         (md_show_usage): Show --march=<arch>.
767         (md_apply_fix3): Adjust val for BFD_RELOC_CRIS_LAPCQ_OFFSET.
768         (md_pcrel_from): BFD_RELOC_CRIS_LAPCQ_OFFSET is PC-relative too.
769         (s_syntax) <struct syntaxes>: Properly constify member operand.
770         * config/tc-cris.h (TARGET_MACH): Define.
771         (cris_mach): Declare.
772         * doc/as.texinfo (Overview) <CRIS>: Add --march=...
773         * doc/c-cris.texi (CRIS-Symbols): New node for built-in symbols.
774         (CRIS-Opts): Document --march=...
775         (CRIS-Pseudos): Document .arch.
777 2004-11-04 Jan Beulich <jbeulich@novell.com>
779         * config/tc-i386.c (set_intel_syntax): Allow % in symbol names when
780         intel syntax and no register prefix, allow $ in symbol names when
781         intel syntax.
782         (set_16bit_gcc_code_flag): Replace literal 'l' by LONG_MNEM_SUFFIX.
783         (intel_float_operand): Add fourth return value indicating math control
784         operations. Make classification more precise.
785         (md_assemble): Complain if memory operand of mov[sz]x has no size
786         specified.
787         (parse_insn): Translate word operands to floating point instructions
788         operating on integers as well as control instructions to short ones
789         as expected by AT&T syntax. Translate 'd' suffix to short one only for
790         floating point instructions operating on non-integer operands.
791         (match_template): Remove fldcw special case. Adjust q-suffix handling
792         to permit it on fild/fistp/fisttp in AT&T mode.
793         (process_suffix): Don't guess DefaultSize insns' suffix from
794         stackop_size for certain floating point control instructions. Guess
795         suffix for branch and [ls][gi]dt based on flag_code. Split error
796         messages for Intel and AT&T syntax, and make the condition more strict
797         for the former. Adjust suppressing of generation of operand size
798         overrides.
799         (intel parser): Allow the full set of MASM operators. Add FWORD, TBYTE,
800         OWORD, and XMMWORD operand size specifiers (TBYTE replaces XWORD). Add
801         more error checking.
802         * config/tc-i386.h (BYTE_PTR WORD_PTR DWORD_PTR QWORD_PTR XWORD_PTR
803         SHORT OFFSET_FLAT FLAT NONE_FOUND): Remove unused defines.
805 2004-11-03  Hans-Peter Nilsson  <hp@axis.com>
807         * symbols.c (colon) [!WORKING_DOT_WORD]: Don't declare
808         md_short_jump_size, md_long_jump_size.
809         * write.c [!WORKING_DOT_WORD]: Ditto.
810         * tc.h [!WORKING_DOT_WORD]: Declare them here.  Drop const
811         qualifier.
812         * config/tc-cris.h (md_short_jump_size, md_long_jump_size): Don't
813         declare.
814         * config/tc-cris.c (md_short_jump_size, md_long_jump_size): Drop
815         const qualifier in these definitions.
816         * config/tc-i370.c, config/tc-m68k.c, config/tc-pdp11.c,
817         config/tc-s390.c, config/tc-tahoe.c, config/tc-vax.c: Ditto.
819 2004-11-02  Nick Clifton  <nickc@redhat.com>
821         * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
822         table before deciding to produce a .debug_line section to match up
823         with a user provided .debug_info section.
825 2004-10-28  Tomer Levi  <Tomer.Levi@nsc.com>
827         * config/tc-crx.c (getreg_image): Bug fix, a return value was
828         mistakenly omitted from CRX_C_REGTYPE and CRX_CS_REGTYPE cases.
830 2004-10-27  Tomer Levi  <Tomer.Levi@nsc.com>
832         * config/tc-crx.c: Remove global variable 'post_inc_mode'.
833         (get_flags): New function.
834         (get_number_of_bits): Edit comments, update numeric values to
835         supported sizes.
836         (process_label_constant): Don't support the colon
837         format (SYMBOL:[s|m|l]).
838         (set_cons_rparams): Support argument type 'arg_rbase'.
839         (get_operandtype): Bug fix in 'rbase' operand type parsing.
840         (handle_LoadStor): Bug fix, first handle post-increment mode.
841         (getreg_image): Remove redundant code, update according to latest
842         CRX spec.
843         (print_constant): Bug fix relate to 3-word instructions.
844         (assemble_insn): Bug fix, when matching instructions, verify also
845         instruction type (not only mnemonic).
846         Add various error checking.
847         (preprocess_reglist): Support HI/LO and user registers.
849 2004-10-25  David Mosberger-Tang  <davidm@hpl.hp.com>
851         * config/tc-ia64.c (fixup_unw_records): Don't let the "t" value
852         in an epilogue directive go negative.
854 2004-10-25  H.J. Lu  <hongjiu.lu@intel.com>
856         PR 474
857         * config/tc-ia64.c (emit_one_bundle): Decrement md.num_slots_in_use
858         after reporting template error during manual bundling. Reported
859         by Michael Dupont, michaelx.dupont@intel.com.
861 2004-10-25  Daniel Jacobowitz  <dan@debian.org>
863         * Makefile.am: Run dep-am.
864         * aclocal.m4: Regenerate with automake 1.9.2.
865         * Makefile.in: Regenerate with automake 1.9.2.
866         * doc/Makefile.in: Likewise.
868         * config/tc-arm.c: Include "dw2gencfi.h".
869         (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
870         New functions.
871         * config/tc-arm.h (TARGET_USE_CFIPOP, DWARF2_DEFAULT_RETURN_COLUMN)
872         (DWARF2_CIE_DATA_ALIGNMENT, tc_regname_to_dw2regnum)
873         (tc_cfi_frame_initial_instructions): Define.
874         (tc_arm_regname_to_dw2regnum, tc_arm_frame_initial_instructions):
875         Add prototypes.
877 2004-10-21  Tomer Levi  <Tomer.Levi@nsc.com>
879         * config/tc-crx.c (assemble_insn): Check unsigned immediate
880         operands validity.
881         Update coprocessor id to be unsigned immediate.
883 2004-10-18  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
885         * config/tc-i386.c (O_secrel): Delete.
886         (tc_pe_dwarf2_emit_offset): New function.
887         * config/tc-i386.h (O_secrel): Define as O_md1.
888         (TC_DWARF2_EMIT_OFFSET): Define.
890 2004-10-18  Nick Clifton  <nickc@redhat.com>
892         * config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
893         ignore @fptr() directives for 4-byte fixups.
895 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
897         * Makefile.am: Run "make dep-am"
898         * Makefile.in: Regenerate.
900 2004-10-14  Bob Wilson  <bob.wilson@acm.org>
902         * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
903         Remove comments about placement of literal pools.
904         (Literal Directive): Update description of literal placement.
905         (Literal Prefix Directive): Remove statement that this does not apply
906         to absolute-mode literals.  Describe new section naming scheme.
908 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
910         * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
911         (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
912         is_windowed_return_opcode): Delete.
913         (xtensa_frob_label): Use get_subseg_target_freq.
914         (md_assemble): Inline call to is_entry_opcode.
915         (xtensa_handle_align): Inline call to get_frag_is_literal.
916         (relaxation_requirements): Inline call to is_jx_opcode.
917         (emit_single_op): Inline call to is_movi_opcode.
918         (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
919         get_frag_is_no_transform, is_entry_opcode, and
920         set_frag_is_specific_opcode.  Use get_subseg_total_freq.
921         (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
922         xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
923         Inline calls to get_frag_is_no_transform.
924         (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
925         (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
926         get_frag_is_no_transform.
927         (convert_frag_immed_finish_loop): Inline calls to get_expression_value
928         and set_frag_is_no_transform.
929         (get_expression_value): Delete.
930         (subseg_map struct): Rename cur_total_freq to total_freq.  Rename
931         cur_target_freq to target_freq.
932         (get_subseg_info): Split out code to create a new map entry into ...
933         (add_subseg_info): ... this new function.
934         (get_last_insn_flags): Check if get_subseg_info succeeded.
935         (set_last_insn_flags): Call add_subseg_info if needed.
936         (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
937         (xtensa_reorder_segments): Compute last_sec while counting sections.
938         Remove call to get_last_sec.
939         (get_last_sec): Delete.
940         (cache_literal_section): Inline call to retrieve_literal_seg and its
941         callees, seg_present and add_seg_list.
942         (retrieve_literal_seg, seg_present, add_seg_list): Delete.
943         (get_frag_is_insn, get_frag_is_no_transform,
944         set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
945         * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
947 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
949         * config/tc-xtensa.c: Use ISO C90 formatting.
950         * config/tc-xtensa.h: Likewise.
951         * config/xtensa-istack.h: Likewise.
952         * config/xtensa-relax.c: Likewise.
953         * config/xtensa-relax.h: Likewise.
955 2004-10-12  Paul Brook  <paul@codesourcery.com>
957         * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
958         EF_ARM_EABI_VER4.
959         (arm_eabis): Ditto.
960         * doc/c-arm.texi: Document that we actually support -meabi=4, not
961         -meabi=3.
963 2004-10-08  Bob Wilson  <bob.wilson@acm.org>
965         * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
966         entries.
967         (Acknowledgements): Use "GAS" instead of AS variable.
969 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
971         * config/tc-i386.c: Include "elf/x86-64.h".
972         (i386_elf_section_type): New function.
973         * config/tc-i386.h (md_elf_section_type): Define.
974         (i386_elf_section_type): New prototype.
976 2004-10-08  Linus Nielsen Feltzing  <linus@haxx.se>
978         * config/m68k-parse.h (enum m68k_register): New control register,
979         MBAR2 (for MCF5249)
980         * config/tc-m68k.c: Correct control register set for MCF5249.
982 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
983             Sterling Augustine  <sterling@tensilica.com>
985         * config/tc-xtensa.c (absolute_literals_supported): New global flag.
986         (UNREACHABLE_MAX_WIDTH): Define.
987         (XTENSA_FETCH_WIDTH): Delete.
988         (cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
989         prefer_const16, prefer_l32r): New global variables.
990         (LIT4_SECTION_NAME): Define.
991         (lit4_state struct): Add lit4_seg_name and lit4_seg fields.
992         (XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
993         (frag_flags struct): New.
994         (xtensa_block_info struct): Move from tc-xtensa.h.  Add flags field.
995         (subseg_map struct): Add cur_total_freq and cur_target_freq fields.
996         (bitfield, bit_is_set, set_bit, clear_bit): Define.
997         (MAX_FORMATS): Define.
998         (op_placement_info struct, op_placement_table): New.
999         (O_pltrel, O_hi16, O_lo16): Define.
1000         (directiveE enum): Rename directive_generics to directive_transform.
1001         Delete directive_relax.  Add directive_schedule,
1002         directive_absolute_literals, and directive_last_directive.
1003         (directive_info): Rename "generics" to "transform".  Delete "relax".
1004         Add "schedule" and "absolute-literals".
1005         (directive_state): Adjust entries to match changes in directive_info.
1006         (xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
1007         (xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
1008         xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
1009         (xtensa_j_opcode, xtensa_rsr_opcode): Delete.
1010         (align_only_targets, software_a0_b_retw_interlock,
1011         software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
1012         software_avoid_short_loop, software_avoid_close_loop_end,
1013         software_avoid_all_short_loops, specific_opcode): Delete.
1014         (warn_unaligned_branch_targets): New.
1015         (workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
1016         workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
1017         (option_[no_]link_relax, option_[no_]transform,
1018         option_[no_]absolute_literals, option_warn_unaligned_targets,
1019         option_prefer_l32r, option_prefer_const16, option_target_hardware):
1020         New enum values.
1021         (option_[no_]align_only_targets, option_literal_section_name,
1022         option_text_section_name, option_data_section_name,
1023         option_bss_section_name, option_eb, option_el): Delete.
1024         (md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
1025         warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
1026         and target-hardware.  Delete entries for [no-]target-align-only,
1027         literal-section-name, text-section-name, data-section-name, and
1028         bss-section-name.
1029         (md_parse_option): Handle new options and remove old ones.  Accept but
1030         ignore [no-]density options.  Warn for [no-]generics and [no-]relax
1031         and treat them as [no-]transform.
1032         (md_show_usage): Add new options and remove old ones.
1033         (xtensa_setup_hw_workarounds): New.
1034         (md_pseudo_table): Change "word" entry to use xtensa_elf_cons.  Add
1035         "long", "short", "loc" and "frequency" entries.
1036         (use_generics): Rename to ...
1037         (use_transform): ... this function.  Add past_xtensa_end check.
1038         (use_longcalls): Add past_xtensa_end check.
1039         (code_density_available, can_relax): Delete.
1040         (do_align_targets): New.
1041         (get_directive): Accept dashes in directive names.  Warn about
1042         [no-]generics and [no-]relax directives and treat them as
1043         [no-]transform.
1044         (xtensa_begin_directive): Call md_flush_pending_output only for some
1045         directives.  Check for directives inside instruction bundles.  Warn
1046         about deprecated ".begin literal" usage.  Warn and ignore [no-]density
1047         directives.  Handle new directives.  Check generating_literals flag
1048         for literal_prefix.
1049         (xtensa_end_directive): Check for directives inside instruction
1050         bundles.  Warn and ignore [no-]density directives.  Handle new
1051         directives.  Call xtensa_set_frag_assembly_state.
1052         (xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
1053         xtensa_dwarf2_emit_insn): New.
1054         (xtensa_literal_position): Call md_flush_pending_output.  Do not check
1055         use_literal_section flag.
1056         (xtensa_literal_pseudo): Call md_flush_pending_output.  Handle absolute
1057         literals.  Use xtensa_elf_cons to parse the expression.
1058         (xtensa_literal_prefix): Do not check use_literal_section.  Support
1059         ".lit4" sections for absolute literals.  Change prefix convention to
1060         replace ".text" (or ".t" in a linkonce section).  No need to call
1061         subseg_set.
1062         (xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
1063         (expression_end): Handle closing braces and colons.
1064         (PLT_SUFFIX, plt_suffix): Delete.
1065         (expression_maybe_register): Use new xtensa-isa.h functions.  Use
1066         xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
1067         and O_hi16 expressions as well.
1068         (tokenize_arguments): Handle closing braces and colons.
1069         (parse_arguments): Use new xtensa-isa.h functions.  Handle "invisible"
1070         operands and paired register syntax.
1071         (get_invisible_operands): New.
1072         (xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax.  Use
1073         new xtensa-isa.h functions.
1074         (xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
1075         (xg_translate_idioms): Check if inside bundle.  Use use_transform.
1076         Handle new Xtensa LX RSR/WSR/XSR syntax.  Remove code to widen density
1077         instructions.  Use xtensa_translate_zero_immed.
1078         (operand_is_immed, operand_is_pcrel_label): Delete.
1079         (get_relaxable_immed): Use new xtensa-isa.h functions.
1080         (get_opcode_from_buf): Add slot parameter.  Use new xtensa-isa.h
1081         functions.
1082         (xtensa_print_insn_table, print_vliw_insn): New.
1083         (is_direct_call_opcode): Use new xtensa-isa.h functions.
1084         (is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
1085         is_branch_or_jump_opcode): Delete.
1086         (is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
1087         (opnum_to_reloc, reloc_to_opnum): Delete.
1088         (xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
1089         xtensa-isa.h functions.  Operate on one slot of an instruction.
1090         (xtensa_insnbuf_set_immediate_field, is_negatable_branch,
1091         xg_get_insn_size): Delete.
1092         (xg_get_build_instr_size): Use xg_get_single_size.
1093         (xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
1094         xg_build_widen_table.  Use xg_get_single_size.
1095         (xg_get_max_narrow_insn_size): Delete.
1096         (xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
1097         xg_is_relaxable_insn): Update calls to xg_build_widen_table.  Use
1098         xg_get_single_size.
1099         (xg_build_to_insn): Record the loc field.  Handle OP_OPERAND_HI16U and
1100         OP_OPERAND_LOW16U.  Check xg_valid_literal_expression.
1101         (xg_expand_to_stack, xg_expand_narrow): Update calls to
1102         xg_build_widen_table.  Use xg_get_single_size.
1103         (xg_immeds_fit): Use new xtensa-isa.h functions.  Update call to
1104         xg_check_operand.
1105         (xg_symbolic_immeds_fit): Likewise.  Also handle O_lo16 and O_hi16, and
1106         treat weak symbols conservatively.
1107         (xg_check_operand): Use new xtensa-isa.h functions.
1108         (is_dnrange): Delete.
1109         (xg_assembly_relax): Inline previous calls to tinsn_copy.
1110         (xg_finish_frag): Specify separate relax states for the frag and slot0.
1111         (is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
1112         xtensa-isa.h functions.
1113         (xg_instruction_matches_option_term, xg_instruction_matches_or_options,
1114         xg_instruction_matches_options): New.
1115         (xg_instruction_matches_rule): Handle O_register expressions.  Call
1116         xg_instruction_matches_options.
1117         (transition_rule_cmp): New.
1118         (xg_instruction_match): Update call to xg_build_simplify_table.
1119         (xg_build_token_insn): Record loc fields.
1120         (xg_simplify_insn): Check is_specific_opcode field and
1121         density_supported flag.
1122         (xg_expand_assembly_insn): Skip checking code_density_available.  Use
1123         new xtensa-isa.h functions.  Call use_transform instead of can_relax.
1124         (xg_assemble_literal): Add error handling for O_big.  Call
1125         record_alignment.  Handle O_pltrel.
1126         (xg_valid_literal_expression): New.
1127         (xg_assemble_literal_space): Add slot parameter.  Remove call to
1128         set_expr_symbol_offset.  Add call to record_alignment.  Update call to
1129         xg_finish_frag.
1130         (xg_emit_insn): Delete.
1131         (xg_emit_insn_to_buf): Add format parameter.  Update calls to
1132         xg_add_opcode_fix and xtensa_insnbuf_to_chars.
1133         (xg_add_opcode_fix): Change opcode parameter to tinsn and add format
1134         and slot parameters.  Handle new "alternate" relocations for absolute
1135         literals and CONST16 instructions.  Check for bad uses of O_lo16 and
1136         O_hi16.  Use new xtensa-isa.h functions.
1137         (xg_assemble_tokens): Delete.
1138         (is_register_writer): Use new xtensa-isa.h functions.
1139         (is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
1140         old-style RSR from LCOUNT.
1141         (next_frag_opcode): Delete.
1142         (next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
1143         update_next_frag_state): New.
1144         (update_next_frag_nop_state): Delete.
1145         (next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
1146         (xtensa_mark_literal_pool_location): Check use_literal_section flag and
1147         the state of the absolute-literals directive.  Add calls to
1148         record_alignment and xtensa_set_frag_assembly_state.  Call
1149         xtensa_switch_to_non_abs_literal_fragment instead of
1150         xtensa_switch_to_literal_fragment.
1151         (build_nop): New.
1152         (assemble_nop): Use build_nop.  Update call to xtensa_insnbuf_to_chars.
1153         (get_expanded_loop_offset): Change check for undefined opcode to an
1154         assertion.
1155         (xtensa_set_frag_assembly_state, relaxable_section,
1156         xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
1157         xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
1158         (md_begin): Update call to xtensa_isa_init.  Initialize linkrelax to 1.
1159         Set lit4_seg_name.  Call xg_init_vinsn.  Initialize new global opcodes.
1160         Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
1161         (xtensa_init_fix_data): New.
1162         (xtensa_frob_label): Reset label symbol to the current frag.  Check
1163         do_align_targets and generating_literals flag.  Propagate frequency
1164         info to new alignment frag.  Call xtensa_set_frag_assembly_state.
1165         (xtensa_unrecognized_line): New.
1166         (xtensa_flush_pending_output): Check if inside a bundle.  Add a call
1167         to xtensa_set_frag_assembly_state.
1168         (error_reset_cur_vinsn): New.
1169         (md_assemble): Remove check for literal frag.  Remove call to
1170         istack_init.  Call use_transform instead of use_generics.  Parse
1171         explicit instruction format specifiers.  Move code for
1172         a0_b_retw_interlock workaround to xg_assemble_vliw_tokens.  Call
1173         error_reset_cur_vinsn on errors.  Add call to get_invisible_operands.
1174         Add dwarf2_where call.  Remote automatic alignment for ENTRY
1175         instructions.  Move call to xtensa_clear_insn_labels to the end.
1176         Rearrange to handle bundles.
1177         (xtensa_cons_fix_new): Delete.
1178         (xtensa_handle_align): New.
1179         (xtensa_frag_init): Call xtensa_set_frag_assembly_state.  Remove
1180         assignment to is_no_density field.
1181         (md_pcrel_from): Use new xtensa-isa.h functions.  Use decode_reloc
1182         instead of reloc_to_opnum.  Handle "alternate" relocations.
1183         (xtensa_force_relocation, xtensa_check_inside_bundle,
1184         xtensa_elf_section_change_hook): New.
1185         (xtensa_symbol_new_hook): Delete.
1186         (xtensa_fix_adjustable): Check for difference of symbols with an
1187         offset.  Check for external and weak symbols.
1188         (md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
1189         (md_estimate_size_before_relax): Return expansion for the first slot.
1190         (tc_gen_reloc): Handle difference of symbols by producing
1191         XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
1192         into the output.  Handle new XTENSA_SLOT*_OP relocs by storing the
1193         tentative values into the output when linkrelax is set.
1194         (XTENSA_PROP_SEC_NAME): Define.
1195         (xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
1196         Create literal tables only if using literal sections.  Create new
1197         property tables instead of old instruction tables.  Check for unaligned
1198         branch targets and loops.
1199         (finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
1200         new_resource_table, clear_resource_table, resize_resource_table,
1201         resources_available, reserve_resources, release_resources,
1202         opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
1203         resources_conflict, xg_find_narrowest_format, relaxation_requirements,
1204         bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
1205         (xtensa_end): Call xtensa_flush_pending_output.  Set past_xtensa_end
1206         flag.  Update checks for workaround options.  Call
1207         xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
1208         (xtensa_cleanup_align_frags): Add special case for branch targets.
1209         Check for and mark unreachable frags.
1210         (xtensa_fix_target_frags): Remove use of align_only_targets flag.
1211         Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
1212         end of a zero-overhead loop body.
1213         (frag_can_negate_branch): Handle instructions with multiple slots.
1214         Use new xtensa-isa.h functions
1215         (xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
1216         xtensa_mark_zcl_first_insns): New.
1217         (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
1218         transformations are disabled.
1219         (next_instrs_are_b_retw): Use new xtensa-isa.h functions.  Handle
1220         multislot instructions.
1221         (xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
1222         Likewise.  Also error if transformations are disabled.
1223         (unrelaxed_frag_max_size): New.
1224         (unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
1225         xtensa-isa.h functions.
1226         (xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
1227         xtensa_opcode_is_loop instead of is_loop_opcode.
1228         (get_text_align_power): Replace as_fatal with assertion.
1229         (get_text_align_fill_size): Iterate instead of using modulus when
1230         use_nops is false.
1231         (get_noop_aligned_address): Assert that this is for a machine-dependent
1232         RELAX_ALIGN_NEXT_OPCODE frag.  Use next_frag_opcode_is_loop,
1233         xg_get_single_size, and frag_format_size.
1234         (get_widen_aligned_address): Rename to ...
1235         (get_aligned_diff): ... this function.  Add max_diff parameter.
1236         Remove handling of rs_align/rs_align_code frags.  Use
1237         next_frag_format_size, get_text_align_power, get_text_align_fill_size,
1238         next_frag_opcode_is_loop, and xg_get_single_size.  Compute max_diff
1239         and pass it back to caller.
1240         (xtensa_relax_frag): Use relax_frag_loop_align.  Add code for new
1241         RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
1242         RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types.  Check relax_seen.
1243         (relax_frag_text_align): Rename to ...
1244         (relax_frag_loop_align): ... this function.  Assume loops can only be
1245         in the first slot of an instruction.
1246         (relax_frag_add_nop): Use assemble_nop instead of constructing an OR
1247         instruction.  Remove call to frag_wane.
1248         (relax_frag_narrow): Rename to ...
1249         (relax_frag_for_align): ... this function.  Extend to handle
1250         RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
1251         RELAX_NARROW for the first slot.
1252         (find_address_of_next_align_frag, bytes_to_stretch): New.
1253         (future_alignment_required): Use find_address_of_next_align_frag and
1254         bytes_to_stretch.  Look ahead to subsequent frags to make smarter
1255         alignment decisions.
1256         (relax_frag_immed): Add format, slot, and estimate_only parameters.
1257         Check if transformations are enabled for b_j_loop_end workaround.
1258         Use new xtensa-isa.h functions and handle multislot instructions.
1259         Update call to xg_assembly_relax.
1260         (md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
1261         RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
1262         frag types.
1263         (convert_frag_narrow): Add segP, format and slot parameters.  Call
1264         convert_frag_immed for branch instructions.  Adjust calls to
1265         tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf.  Use
1266         xg_get_single_size and xg_get_single_format.
1267         (convert_frag_fill_nop): New.
1268         (convert_frag_immed): Add format and slot parameters.  Handle multislot
1269         instructions and use new xtensa-isa.h functions.  Update calls to
1270         tinsn_immed_from_frag and xg_assembly_relax.  Check if transformations
1271         enabled for b_j_loop_end workaround.  Use build_nop instead of
1272         assemble_nop.  Check is_specific_opcode flag.  Check for unreachable
1273         frags.  Use xg_get_single_size.  Handle O_pltrel.
1274         (fix_new_exp_in_seg): Remove check for old plt flag.
1275         (convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
1276         xtensa_insnbuf_to_chars.  Call tinsn_immed_from_frag.  Change check
1277         for loop opcode to an assertion.  Mark all frags up to the end of the
1278         loop as not transformable.
1279         (get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
1280         (get_subseg_info): New.
1281         (xtensa_move_literals): Call xtensa_set_frag_assembly_state.  Add null
1282         check for dest_seg.
1283         (xtensa_switch_to_literal_fragment): Rewrite to handle absolute
1284         literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
1285         (xtensa_switch_to_non_abs_literal_fragment): New.
1286         (cache_literal_section): Add is_code parameter and pass it through to
1287         retrieve_literal_seg.
1288         (retrieve_literal_seg): Add is_code parameter and use it to set the
1289         flags on the literal section.  Handle case where head parameter is 0.
1290         (get_frag_is_no_transform, set_frag_is_specific_opcode,
1291         set_frag_is_no_transform): New.
1292         (xtensa_create_property_segments): Add end_property_function parameter
1293         and pass it through to add_xt_block_frags.  Call bfd_get_section_flags
1294         and skip SEC_DEBUGGING and !SEC_ALLOC sections.
1295         (xtensa_create_xproperty_segments, section_has_xproperty): New.
1296         (add_xt_block_frags): Add end_property_function parameter and call it
1297         if it is non-zero.  Call xtensa_frag_flags_init.
1298         (xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
1299         get_frag_property_flags, frag_flags_to_number,
1300         xtensa_frag_flags_combinable, xt_block_aligned_size,
1301         xtensa_xt_block_combine, add_xt_prop_frags,
1302         init_op_placement_info_table, opcode_fits_format_slot,
1303         xg_get_single_size, xg_get_single_format): New.
1304         (istack_push): Inline call to tinsn_copy.
1305         (tinsn_copy): Delete.
1306         (tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
1307         CONST16 opcodes.  Handle O_big, O_illegal, and O_absent.
1308         (tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
1309         (tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
1310         functions.  Handle invisible operands.
1311         (tinsn_to_slotbuf): New.
1312         (tinsn_check_arguments): Use new xtensa-isa.h functions.
1313         (tinsn_from_chars): Add slot parameter.  Rewrite using xg_init_vinsn,
1314         vinsn_from_chars, and xg_free_vinsn.
1315         (tinsn_from_insnbuf): New.
1316         (tinsn_immed_from_frag): Add slot parameter and handle multislot
1317         instructions.  Handle symbol differences.
1318         (get_num_stack_text_bytes): Use xg_get_single_size.
1319         (xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
1320         xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
1321         get_expr_register, set_expr_symbol_offset_diff): New.
1322         * config/tc-xtensa.h (MAX_SLOTS): Define.
1323         (xtensa_relax_statesE): Move from tc-xtensa.c. Add
1324         RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
1325         RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
1326         RELAX_NONE types.
1327         (RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
1328         (xtensa_frag_type struct): Add is_assembly_state_set,
1329         use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
1330         is_align, is_text_align, alignment, and is_first_loop_insn fields.
1331         Replace is_generics and is_relax fields by is_no_transform field.
1332         Delete is_text and is_longcalls fields.  Change text_expansion and
1333         literal_expansion to arrays of MAX_SLOTS entries.  Add arrays of
1334         per-slot information: literal_frags, slot_subtypes, slot_symbols,
1335         slot_sub_symbols, and slot_offsets.  Add fr_prev field.
1336         (xtensa_fix_data struct): New.
1337         (xtensa_symfield_type struct): Delete plt field.
1338         (xtensa_block_info struct): Move definition to tc-xtensa.h.  Add
1339         forward declaration here.
1340         (xt_section_type enum): Delete xt_insn_sec.  Add xt_prop_sec.
1341         (XTENSA_SECTION_RENAME): Undefine.
1342         (TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
1343         tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
1344         HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
1345         (TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
1346         (unit_num_copies_func, opcode_num_units_func,
1347         opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
1348         (resource_table struct): New.
1349         * config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
1350         (TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
1351         literal_space, symbol, sub_symbol, offset, and literal_frag fields.
1352         (tinsn_copy): Delete prototype.
1353         (vliw_insn struct): New.
1354         * config/xtensa-relax.c (insn_pattern_struct): Add options field.
1355         (widen_spec_list): Add option conditions for density and boolean
1356         instructions.  Add expansions using CONST16 and conditions for using
1357         CONST16 vs. L32R.  Use new Xtensa LX RSR/WSR syntax.  Add entries for
1358         predicted branches.
1359         (simplify_spec_list): Add option conditions for density instructions.
1360         Add entry for NOP instruction.
1361         (append_transition): Add cmp function pointer parameter and use it to
1362         insert the new entry in order.
1363         (operand_function_LOW16U, operand_function_HI16U): New.
1364         (xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
1365         OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
1366         (enter_opname, split_string): Use xstrdup instead of strdup.
1367         (init_insn_pattern): Initialize new options field.
1368         (clear_req_or_option_list, clear_req_option_list,
1369         clone_req_or_option_list, clone_req_option_list, parse_option_cond):
1370         New.
1371         (parse_insn_pattern): Parse option conditions.
1372         (transition_applies): New.
1373         (build_transition): Use new xtensa-isa.h functions.  Fix incorrectly
1374         swapped last arguments in calls to append_constant_value_condition.
1375         Call clone_req_option_list.  Add warning about invalid opcode.
1376         Handle LOW16U and HI16U function names.
1377         (build_transition_table): Add cmp parameter and use it in calls to
1378         append_transition.  Use new xtensa-isa.h functions.  Check
1379         transition_applies before adding entries.
1380         (xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
1381         pass it through to build_transition_table.
1382         * config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
1383         ReqOption, transition_cmp_fn): New types.
1384         (OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
1385         (transition_rule struct): Add options field.
1386         * doc/as.texinfo (Overview): Update Xtensa options.
1387         * doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
1388         --[no-]relax, and --[no-]generics options.  Update descriptions of
1389         --text-section-literals and --[no-]longcalls.  Add
1390         --[no-]absolute-literals and --[no-]transform.
1391         (Xtensa Syntax): Add description of syntax for FLIX instructions.
1392         Remove use of "generic" and "specific" terminology for opcodes.
1393         (Xtensa Registers): Generalize the syntax description to include
1394         user-defined register files.
1395         (Xtensa Automatic Alignment): Update.
1396         (Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
1397         (Xtensa Call Relaxation): Linker can now remove most of the overhead.
1398         (Xtensa Directives): Remove confusing rules about precedence.
1399         (Density Directive, Relax Directive): Delete.
1400         (Schedule Directive): New.
1401         (Generics Directive): Rename to ...
1402         (Transform Directive): ... this node.
1403         (Literal Directive): Update for absolute literals.  Missing
1404         literal_position directive is now an error.
1405         (Literal Position Directive): Update for absolute literals.
1406         (Freeregs Directive): Delete.
1407         (Absolute Literals Directive): New.
1408         (Frame Directive): Minor editing.
1409         * Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
1410         Update dependencies.
1411         * Makefile.in: Regenerate.
1413 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
1415         * config/tc-mips.c (append_insn): Use fix_new rather than fix_new_exp
1416         to build the second and third fixups for a composite relocation.
1417         (macro_read_relocs): New function.
1418         (macro_build): Use it.
1419         (s_cpsetup): Pass all three composite relocation codes to macro_build.
1420         Simplify fragging code accordingly.
1421         (s_gpdword): Use fix_new rather than fix_new_exp for the second part
1422         of the composite relocation.  Set fx_tcbit in both fixups.
1424 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
1426         * config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
1427         (md_apply_fix3): Don't treat composite relocs as done.
1429 2004-10-07  Jan Beulich <jbeulich@novell.com>
1431         * macro.c (macro_expand_body): When ELF, use .LL rather than LL as
1432         prefix for symbol names generated from the LOCAL macro directive.
1434         * dw2gencfi.c (select_cie_for_fde): When separating CIE out from
1435         FDE, treat a DW_CFA_remember_state as we do a DW_CFA_advance_loc.
1437 2004-10-07  Tomer Levi  <Tomer.Levi@nsc.com>
1439         * config/tc-crx.c (preprocess_reglist): Handle Co-processor
1440         Special registers.
1441         (md_assemble): Add error checking for Co-Processor instructions.
1442         (get_cinv_parameters): Add 'b' option to invalidate the
1443         branch-target cache.
1445 2004-10-05  Paul Brook  <paul@codesourcery.com>
1447         * config/tc-arm.c (unwind): New variable.
1448         (vfp_sp_encode_reg): New function.
1449         (vfp_sp_reg_required_here): Use it.
1450         (vfp_sp_reg_list, vfp_dp_reg_list): Remove.
1451         (vfp_parse_reg_list): New function.
1452         (s_arm_unwind_fnstart, s_arm_unwind_fnend, s_arm_unwind_cantunwind,
1453         s_arm_unwind_personality, s_arm_unwind_personalityindex,
1454         s_arm_unwind_handlerdata, s_arm_unwind_save, s_arm_unwind_movsp,
1455         s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): New
1456         functions.
1457         (md_pseudo_table): Add them.
1458         (do_vfp_reg2_from_sp2): Use vfp_parse_reg_list and vfp_sp_encode_reg.
1459         (do_vfp_sp2_from_reg2, vfp_sp_ldstm, vfp_dp_ldstm): Ditto.
1460         (set_section, add_unwind_adjustsp, flush_pending_unwind,
1461         finish_unwind_opcodes, start_unwind_section, create_unwind_entry,
1462         require_hashconst, add_unwind_opcode): New functions.
1463         * doc/tc-arm.text: Document unwinding opcodes.
1464         * NEWS: Mention the new feature.
1466 2004-10-04  Eric Christopher  <echristo@redhat.com>
1468         * config/tc-mips.c (md_apply_fix3): Remove erroneous assert.
1470 2004-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1472         * config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
1473         TLS relocations.
1474         * config/tc-s390.c (md_apply_fix3): Likewise.
1475         * config/tc-sparc.c (md_apply_fix3): Likewise.
1477 2004-10-01  Paul Brook  <paul@codesourcery.com>
1479         * config/tc-arm.c (arm_elf_section_type): New function.
1480         (arm_elf_change_section): Set section link for exidx sections.
1481         * config/tc-arm.h (arm_elf_section_type): Add prototype.
1482         (md_elf_section_type): Define.
1484 2004-10-01  Bill Farmer  <Bill@the-farmers.freeserve.co.uk>
1486         * config/tc-pdp11.c (md_apply_fix3): Change to sign of the SOB
1487         instruction's offset.
1489 2004-10-01  Adam Nemet  <anemet@lnxw.com>
1491         * (TARGET_FORMAT): Remove LynxOS COFF definition.
1493 2004-10-01  Ravi Ramaseshan  <ravi.ramaseshan@codito.com>
1495         * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
1496         asymbol *, instead use symbol_get_bfdsym.
1498 2004-09-30  Linus Nielsen Feltzing  <linus@haxx.se>
1500         * config/tc-m68k.c (select_control_regs): Add mcf5249.
1502 2004-09-30  Paul Brook  <paul@codesourcery.com>
1504         * config/tc-arm.c (do_smi, do_nop): New functions.
1505         (insns): Add ARMv6ZK instructions.
1506         (md_apply_fix3): Handle BFD_RELOC_ARM_SMI.
1507         (tc_gen_reloc): Ditto.
1508         (arm_cpus): Add mpcore and arm1176.
1509         (arm_archs): Add armv6{k,z,zk}.
1510         * doc/c-arm.texi: Document new cores and architectures.
1512 2004-09-30  Nick Clifton  <nickc@redhat.com>
1514         * config/tc-arm.c: Use ISO C90 formatting.
1516 2004-09-30  Vladimir Ivanov  <vladitx@nucleusys.com>
1518         * config/tc-arm.c (mav_reg_required_here): Allow REG_TYPE_CN
1519         as alternative when REG_TYPE_MVF, REG_TYPE_MVD, REG_TYPE_MVFX or
1520         REG_TYPE_MVDX is expected.
1522 2004-09-29  Marc Bevand  <m.bevand@gmail.com>
1524         * doc/c-i386.texi (i386-Mnemonics): Fix typo.
1526 2004-09-21  James E Wilson  <wilson@specifixinc.com>
1528         * config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
1529         (output_rp_psprel, output_pfs_psprel, output_preds_psprel,
1530         output_spill_base, output_unat_psprel, output_lc_psprel,
1531         output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
1532         output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
1533         output_spill_psprel_p): Use it.
1535 2004-09-20  Tomer Levi  <Tomer.Levi@nsc.com>
1537         * config/tc-crx.c (handle_LoadStor): New function.
1538         Handle load/stor unique instructions before parsing.
1540 2004-09-17  Paul Brook  <paul@codesourcery.com>
1542         * config/tc-arm.c (s_arm_rel31): New funciton.
1543         (md_pseudo_table): Add .rel31.
1544         (md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
1545         BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
1546         (tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
1547         (arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
1548         (arm_parse_reloc): Add (target2).
1550 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1552         * Makefile.am: Run "make dep-am".
1553         * Makefile.in: Regenerate.
1554         * aclocal.m4: Regenerate.
1555         * configure: Regenerate.
1556         * doc/Makefile.in: Regenerate.
1557         * po/POTFILES.in: Regenerate.
1558         * po/gas.pot: Regenerate.
1560 2004-09-14  Hideki IWAMOTO  <h-iwamoto@kit.hi-ho.ne.jp>
1562         * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
1563         [!LLONG_MAX]: Ditto.
1565 2004-09-13  Paul Brook  <paul@codesourcery.com>
1567         * config/tc-arm.c: Rename RELABS to TARGET1.
1569 2004-09-13  Alan Modra  <amodra@bigpond.net.au>
1571         * messages.c (as_internal_value_out_of_range): Cast values passed
1572         to as_bad_where or as_warn_where to proper type.
1574 2004-09-11  Theodore A. Roth  <troth@openavr.org>
1576         * config/tc-avr.c: Add support for
1577         atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
1579 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
1581         * dw2gencfi.c (select_cie_for_fde): When separating CIE out
1582         from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
1584 2004-09-08  Paul Brook  <paul@codesourcery.com>
1586         * config/obj-elf.c (obj_elf_section_type): Handle init_array,
1587         fini_array and preinit_array section types.
1588         * config/tc-ia64.c (ia64_elf_section_type): Remove init_array
1589         and fini_array.
1590         * doc/as.texinfo: Document extra section types.
1592 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1594         * Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
1595         * Makefile.in: Regenerated.
1596         * configure.in: Set em for arm*-*-symbianelf*.
1597         * configure: Regenerated.
1598         * config/tc-arm.c (elf32_arm_target_format): Use Symbian target
1599         vectors when appropriate.
1600         * config/te-symbian.h: New file.
1602 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1604         * config/tc-crx.c (gettrap): Exception vector can be case
1605         insensitive.
1606         (process_label_constant): Fix a 32-bit displacement bug in branch
1607         instructions.
1608         (get_operandtype) : Bug fix, wrong operand was used.
1609         (process_label_constant): Initialize relocation type to
1610         BFD_RELOC_NONE
1612 2004-09-01  Richard Earnshaw < reanrsha@arm.com>
1614         * tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
1615         for synthesizable cores.
1617         * doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
1619 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1621         * config/tc-msp430.c:   Clean-up the code.
1622         (md_relax_table): New relax table.
1623         (mcu_types): Sort MCU types.
1624         (md_pseudo_table): Add .profiler pseudo handler.
1625         (pow2value): New function.
1626         (msp430_profiler): New function.
1627         (msp430_operands): Add new insns handlers.
1628         (msp430_srcoperand): Add register operand handler, allow complex
1629         expressions.
1630         (md_estimate_size_before_relax): Rewritten.
1631         (md_convert_frag): Rewritten.
1632         (msp430_relax_frag): New function.
1633         * config/tc-msp430.h (md_relax_frag): define macro
1634         * doc/c-msp430.texi: Update information.
1636 2004-08-24  Nick Clifton  <nickc@redhat.com>
1638         * as.c (std_shortopts): Allow -g to take an optional argument.
1639         (parse_args): Pass any switch starting with -g on to the backend
1640         for parsing.
1642 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
1644         * configure.in (arm*-*-symbianelf*): New target.
1645         (arm*-*-eabi*): Likewise.
1646         * configure: Regenerated.
1648 2004-08-18  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1649         * config/tc-mips.c (append_insn): Handle delay slots in branch likely
1650         correctly.
1652 2004-08-18  Jakub Jelinek  <jakub@redhat.com>
1654         * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
1655         argument, don't do anything if current section is not
1656         .gnu.linkonce.t.* and linkonce_empty is set.
1657         (generate_unwind_image, dot_endp): Adjust callers, call
1658         start_unwind_section (*, 1) if nothing will be put into the
1659         section.
1661 2004-08-17  Nick Clifton  <nickc@redhat.com>
1663         * as.c (MD_DEBUG_FORMAT_SELECTOR): Provide default definition.
1664         (show_usage): Add -g.
1665         (std_longopts): Add --gen-debug.  Alpha sort the table.
1666         (parse_args): Print an error message if a switch is not handled.
1667         Handle the -g switch, calling md_debug_format_selector() if
1668         necessary.
1669         * NEWS: Mention new feature.
1670         * doc/as.texinfo: Document new switch.
1671         * doc/internals.texi: Document behaviour of md_parse_option.
1673         * config/tc-arm.c (md_parse_option): Do not issue an error message
1674         if the switch is not recognised.
1675         * config/tc-m68k.c (md_parse_option): Likewise.
1676         * config/tc-pdp11.c (md_parse_option): Likewise.
1677         * config/tc-v850.c (md_parse_option): Likewise.
1679         * as.h: Fix up formatting.
1680         * tc.h: Likewise.
1682 2004-08-16  Nick Clifton  <nickc@redhat.com>
1684         * macro.c (macro_set_alternate): Use ISO C90 formatting.
1686         * configure.in: Sort architecture based tables alphabetically.
1687         * configure: Regenerate.
1689 2004-08-16  Alan Modra  <amodra@bigpond.net.au>
1691         * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
1692         { "cc", 68 }, with { "cr", 70 }.
1694 2004-08-13 Jan Beulich <jbeulich@novell.com>
1695            Nick Clifton <nickc@redhat.com>
1697         * as.c: Add and handle new --alternate command line option.
1698         * macro.c (macro_set_alternate): New.
1699         * macro.h (macro_set_alternate): Declare.
1700         * read.c: Add and handle new .altmacro and .noaltmacro directives.
1701         * doc/as.texinfo: Document new command line option and pseudo-ops
1702         as well as insert documentation originating from gasp about
1703         alternate macro syntax.
1704         * NEWS: Mention new command line option and pseudo-ops.
1706 2004-08-10  Mark Mitchell  <mark@codesourcery.com>
1708         * expr.c (operand): Handle the "~", "-", and "!" operators applied
1709         to bignums.
1711 2004-08-06  Paul Brook  <paul@codesourcery.com>
1713         * config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
1714         Handle new relocations.
1715         * include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
1717 2004-08-05  Bob Wilson  <bob.wilson@acm.org>
1719         * write.c (relax_segment): Use was_address instead of address when
1720         setting fr_fix field for align frag due to backwards .org.
1722 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
1724         Introduce SH2a support.
1725         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
1726         * config/tc-sh.c (get_specific): Change arch_sh2a_up to
1727         arch_sh2a_nofpu_up.
1728         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
1729         * config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
1730         2004-02-20  Corinna Vinschen  <vinschen@redhat.com>
1731         * config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
1732         to end of conditional expression.
1733         2004-02-20  Corinna Vinschen  <vinschen@redhat.com>
1734         * config/tc-sh.c: Add sh2a-nofpu support.
1735         2003-12-29  DJ Delorie  <dj@redhat.com>
1736         * tc-sh.c: Add sh2a support.
1737         (parse_reg): Add tbr.
1738         (parse_at): Support @@(disp,tbr).
1739         (get_specific): Support sh2a opcodes.
1740         (insert4): New, for 4 byte relocs.
1741         (build_Mytes): Support sh2a opcodes.
1742         (md_apply_fix3_Mytes): Support sh2a opcodes.
1743         2003-12-02  Michael Snyder  <msnyder@redhat.com>
1744         * config/tc-sh.c (md_parse_option): Handle sh2a.
1745         (sh_elf_final_processing): Ditto.
1747 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
1749         * config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
1750         for TE_NetBSD.
1752 2004-07-27  Alan Modra  <amodra@bigpond.net.au>
1754         * config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
1755         (ppc_arch): Expand comment.
1757 2004-07-27  Tomer Levi  <Tomer.Levi@nsc.com>
1759         * config/tc-crx.c: Support evaluating the difference between two
1760         symbols.
1761         * config/tc-crx.h: Likewise.
1763 2004-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1765         * config/tc-ia64.c (start_unwind_section): Set the linked-to
1766         section.
1767         (ia64_elf_section_change_hook): Set the linked-to section for
1768         SHT_IA_64_UNWIND.
1770 2004-07-26  Dmitry Diky  <diwil@spec.ru>
1772         * config/tc-msp430.c: Add new subtargets: msp430x1610,
1773         msp430x1611, msp430x1612, msp430x415, msp430x417, msp430xG437,
1774         msp430xG438, msp430xG439.
1776 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
1778         * doc/as.texinfo (Section, PushSection): Correct documentation
1779         for ELF.
1781 2004-07-21  Jan Beulich  <jbeulich@novell.com>
1783         * config/tc-i386.c (optimize_imm): Adjust immediates to only those
1784         permissible for the selected instruction suffix.
1785         (match_template): Don't permit 64-bit general purpose operands in
1786         32-bit mode.
1787         (finalize_imm): Permit 64-bit immediates.
1788         (build_modrm_byte): Don't treat 32-bit addressing in 64-bit mode
1789         specially except for the width of the used base and/or index
1790         registers.  For 32-bit displacements, use sign-extended
1791         relocations only when using 64-bit addressing.
1792         Force zero displacement on rip-relative addressing when there is
1793         no other displacement.
1794         (i386_index_check): Don't treat 32-bit addressing in 64-bit mode
1795         specially except for the width of the used base and/or index
1796         registers.
1797         (parse_register): Disallow Reg64 registers in 32-bit mode.
1799         * config/tc-i386.c: For DefaultSize instructions, don't guess a 'q'
1800         suffix if the instruction doesn't support it.
1802 2004-07-20  Maciej W. Rozycki  <macro@linux-mips.org>
1804         * config/tc-mips.c (append_insn): Handle constant expressions with
1805         no associated relocation.
1806         (mips_ip): Cancel the expression after use for the Q format
1807         specifier.
1808         (parse_relocation): Return no relocation for unsupported
1809         operators.
1810         (my_getSmallExpression): Return no relocation if no relocation
1811         operators are used.
1813 2004-07-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1815         * config/obj-som.c (adjust_stab_sections): Add prototype.
1816         (obj_som_compiler, obj_som_version, obj_som_copyright,
1817         adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
1818         * config/tc-hppa.c (update_subspace):  Likewise.
1819         (is_defined_subspace): Amplify comment.
1820         * config/obj-som.h (som_frob_file): Add prototype.
1822 2004-07-19  Christopher Faylor  <cgf@timesys.com>
1823             H.J. Lu  <hongjiu.lu@intel.com>
1825         * subsegs.c (section_symbol): Don't create a new segment when
1826         existing segment is undefined.
1828 2004-07-16  Richard Earnshaw  <rearnsha@arm.com>
1830         * config/tc-arm.c: Include include/opcode/arm.h.
1831         (ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
1832         (FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
1833         (FPU_ARCH_*): Delete.
1834         * Makefile.am: Update dependencies.
1835         * Makefile.in: Regenerate.
1837 2004-07-15  Nick Clifton  <nickc@redhat.com>
1839         * configure.in: Accept armbe as a big-endian arm configuration.
1840         * configure: Regenerate.
1842 2004-07-13  Thomas Nystrom  <thn@saeab.se>
1844         * config/tc-i386.c (T_SHIFTOP): New constant.
1845         (intel_e05_1): Handle '&', '|' and T_SHIFTOP.
1846         (intel_el1): Handle '~'.
1847         (intel_get_token): Handle '<>', '&', '|' and '~'.
1849 2004-07-13  Nick Clifton <nickc@redhat.com>
1851         (md_assemble): Remove spurious newline from end of as_bad error
1852         message.
1853         (intel_e05_1): Likewise.
1854         (intel_e11): Likewise.
1855         (intel_match_token): Likewise.
1857 2004-07-11  Andreas Schwab  <schwab@suse.de>
1859         * config/tc-m68k.c: Convert to C90.  Remove redundant
1860         declarations.  Indentation fixup.
1861         [M68KCOFF]: Include "obj-coff.h" instead of declaring
1862         obj_coff_section ourselves.
1864 2004-07-09  James E Wilson  <wilson@specifixinc.com>
1866         * config/tc-ia64.c (default_big_endian): New.
1867         (dot_byteorder, md_begin): Use it.
1868         (md_parse_option): Set it.
1870 2004-07-09  Nick Clifton  <nickc@redhat.com>
1872         * configure.in: Change sh-sybmian-elf to sh-*-symbianelf.
1873         * configure: Regenerate.
1874         * NEWS: Change sh-sybmian-elf to sh-*-symbianelf.
1875         * config/tc-sh.c (sh_elf_final_processing): Use renamed version of
1876         sh_find_elf_flags if necessary.
1878 2004-07-08  Richard Sandiford  <rsandifo@redhat.com>
1880         * config/tc-mips.c (mips_fix_adjustable): If the full addend is
1881         going to be split into more than one in-place addend, return 0
1882         for relocations against mergeable sections.  Associate comments
1883         with code.
1885 2004-07-07  Tomer Levi  <Tomer.Levi@nsc.com>
1887         * Makefile.am (CPU_TYPES): Add crx.
1888         (TARGET_CPU_CFILES): Add config/tc-crx.c.
1889         (TARGET_CPU_HFILES): Add config/tc-crx.h.
1890         (DEPTC_crx_elf): New target.
1891         (DEPOBJ_crx_elf): Likewise.
1892         (DEP_crx_elf): Likewise.
1893         * Makefile.in: Regenerate.
1894         * configure.in: Add crx* target.
1895         * configure: Regenerate.
1896         * config/tc-crx.c: New file.
1897         * config/tc-crx.h: New file.
1898         * NEWS: Mention new target.
1900 2004-07-06  Nick Clifton  <nickc@redhat.com>
1902         * config.in: Undefine TARGET_SYMBIAN by default.
1903         * configure.in:
1904         * configure: Regenerate. Add sh-symbian-elf target.  If
1905         selected define TARGET_SYMBIAN.
1906         * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target
1907         format if TARGET_SYMBIAN has been defined.
1909         * output-file.c (output_file_create): Report the target format
1910         chosen when bfd_openw reports that it is invalid.
1912         * config/obj-coff.c (coff_pseudo_table): Only define the weak
1913         pseudo for BFD based assemblers.
1915 2004-07-05  Andrew Stubbs <andrew.stubbs@superh.com>
1917         gas:
1918         * config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
1919         (md_parse_option): Remove redundant -isa testing.
1920         Make bfd_arch variable const.
1921         (md_show_usage): Make bfd_arch variable const.
1923 2004-07-03  James E Wilson  <wilson@specifixinc.com>
1925         * config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
1926         * config/tc-ia64.h (md_frag_check): Define.
1928 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1930         * config/obj-coff.c (obj_coff_weak): New .weak syntax for PE weak
1931         externals.
1932         * doc/as.texinfo (Weak): Document PE weak symbols.
1934 2004-07-03  Richard Sandiford  <rsandifo@redhat.com>
1936         * config/tc-mips.c (HAVE_IN_PLACE_ADDENDS): New macro.
1937         (reloc_needs_lo_p): Only return true if HAVE_IN_PLACE_ADDENDS.
1938         (mips_frob_file): Rework so that only a single pass through the
1939         relocs is needed.  Allow %lo()s to have higher offsets than their
1940         corresponding %hi()s or %got()s.
1942 2004-07-02  Nick Clifton  <nickc@redhat.com>
1944         * config/tc-arm.c (md_apply_fix3:BFD_RELOC_ARM_IMMEDIATE): Do not
1945         allow values which have come from undefined symbols.
1946         Always consider this fixup to have been processed as a reloc
1947         cannot be generated for it.
1949 2004-07-02  Alan Modra  <amodra@bigpond.net.au>
1951         * frags.h (struct frag): Add has_code and insn_addr fields.
1952         * write.c (cvt_frag_to_fill): Invoke md_frag_check.
1953         * config/tc-ppc.c (md_assemble): Check and set insn_addr.
1954         * config/tc-ppc.h (md_frag_check): Define.
1956 2004-06-28  Maciej W. Rozycki  <macro@linux-mips.org>
1958         * doc/Makefile.am (info): Rename goal to...
1959         (info-local): ... this, to preserve implicit dependencies.
1960         * doc/Makefile.in: Regenerate with automake 1.8.5.
1962 2004-06-25  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1964         * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
1965         (m32r_cgen_record_fixup_exp): Changed for  @GOTOFF, @GOT.
1966         (m32r_fix_adjustable): Changed for  @GOTOFF, @GOT, @PLT.
1967         (tc_gen_reloc): Likewise.
1968         (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
1969         (m32r_parse_name): Likewise.
1970         (m32r_cgen_parse_fix_exp): Likewise.
1971         * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
1972         (O_PIC_reloc): Likewise.
1973         (TC_CGEN_PARSE_FIX_EXP): Likewise..
1974         * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
1975         for @GOTOFF, @GOT, @PLT.
1977 2004-06-21 Jan Beulich  <jbeulich@novell.com>
1979         * gas/symbols.c: While discarding ordinary local absolute symbols
1980         when --strip-local-absolute is in effect, retain file symbols.
1982 2004-06-20  Andreas Schwab  <schwab@suse.de>
1984         * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
1985         (md_parse_option): Likewise.
1987 2004-06-17  Jan Beulich <jbeulich@novell.com>
1989         * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
1990         * config/te-netware.h: New file.
1991         * config/te-ppcnw.h: Delete: Obsolete.
1992         * configure.in: Eliminate ill NetWare targets. Make generic
1993         NetWare target use proper emulation.
1994         * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
1995         reference to new te-netware.h.
1996         * configure: Regenerate.
1997         * Makefile.in: Regenerate.
1999 2004-06-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2001         * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
2002         comparison in .insn pseudo operation.
2004 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
2006         * config/obj-coff.c (coff_adjust_section_syms): Use
2007         bfd_get_section_size instead of bfd_get_section_size_before_reloc.
2008         (coff_frob_section): Likewise.
2009         * config/tc-mips.c (md_apply_fix3): Likewise.
2010         * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
2011         (elf_frob_file_after_relocs): Likewise.
2013 2004-06-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2015         * config/tc-hppa.c (log2): Rename to exact_log2.
2016         (pa_next_subseg): Delete unused function.
2017         (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
2018         (create_new_subspace): Likewise.
2020         Bug gas/213
2021         * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
2022         labels.  Fix warning.
2024 2004-05-28  DJ Delorie  <dj@redhat.com>
2026         * config/tc-mn10300.h (tc_fix_adjustable): Define.
2027         * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
2028         or non-merged symbols.
2030 2004-05-28  H.J. Lu  <hongjiu.lu@intel.com>
2032         * config/tc-ia64.c (remove_marked_resource): Save, clear and
2033         restore the old slot when inserting srlz.i/srlz.d.
2035 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
2037         * Makefile.am: Regenerate dependecies.
2038         * Makefile.in: Regenerate.
2039         * config/tc-sh.c (valid_arch): Make unsigned.
2040         (preset_target_arch): Likewise.
2041         (md_begin): Use new architecture flags system.
2042         (get_specific): Likewise.
2043         (assemble_ppi): Likewise.
2044         (md_assemble): Likewise. Also fix error check for bad opcodes.
2045         (md_parse_option): Likewise. Also generate -isa values according
2046         to the table in bfd/cpu-sh.c instead of just constants. Also
2047         allow <arch>-up ISA variants.
2048         (sh_elf_final_processing): Replace if-else chain with a call to
2049         sh_find_elf_flags().
2050         * testsuite/gas/sh/arch: New directory.
2051         * testsuite/gas/sh/arch/arch.exp: New test script.
2052         * testsuite/gas/sh/arch/arch_expected.txt: New file.
2053         * testsuite/gas/sh/arch/sh.s: New file.
2054         * testsuite/gas/sh/arch/sh2.s: New file.
2055         * testsuite/gas/sh/arch/sh-dsp.s: New file.
2056         * testsuite/gas/sh/arch/sh2e.s: New file.
2057         * testsuite/gas/sh/arch/sh3-nommu.s: New file.
2058         * testsuite/gas/sh/arch/sh3.s: New file.
2059         * testsuite/gas/sh/arch/sh3-dsp.s: New file.
2060         * testsuite/gas/sh/arch/sh3e.s: New file.
2061         * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
2062         * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
2063         * testsuite/gas/sh/arch/sh4.s: New file.
2064         * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
2065         * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
2066         * testsuite/gas/sh/arch/sh4a.s: New file.
2068 2004-05-28  Peter Barada <peter@the-baradas.com>
2070         * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
2071         with zero offset into mode 2 addressing to save a word.
2073 2004-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2075         * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
2076         (ar_is_only_in_integer_unit): New.
2077         (ar_is_only_in_memory_unit): New.
2078         (generate_unwind_image): Silence gcc on 32bit host.
2079         (md_assemble): Use ar_is_only_in_integer_unit instead of
2080         ar_is_in_integer_unit. Check AR access.
2082 2004-05-27  Peter Barada  <peter@the-baradas.com>
2084         * config/tc-m68k.c (md_begin): Sort the opcode table into
2085         alphabetical order.
2086         (m68k_compare_opcode): New function to do the sorting.
2088 2004-05-24  Peter Barada  <peter@the-baradas.com>
2090         * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
2091         addressing on MIT style operands.
2092         * config/m68k-parse.y(yylex): Allow '-&' for predecrement
2093         w/mask addressing.
2094         * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
2095         operands.
2097 2004-05-23  Alan Modra  <amodra@bigpond.net.au>
2099         * expr.c (operand, operator): Don't reject '++' and '--'.
2101 2004-05-20  Richard Sandiford  <rsandifo@redhat.com>
2103         * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
2104         dwarf tables.
2106 2004-05-17  Adam Nemet  <anemet@lnxw.com>
2108         * configure.in: Add ppc-*-lynxos*.  Update i386-*-lynxos* to ELF.
2109         * configure: Regenerate.
2111 2004-05-13  Paul Brook  <paul@codesourcery.com>
2113         * dw2gencfi.c (output_cie):  Handle dwarf3 format CIE entries.
2115 2004-05-13  Joel Sherrill <joel@oarcorp.com>
2117         * configure.in (or32-*-rtems*): Switch to elf.
2118         * configure: Regenerate.
2120 2004-05-13  Nick Clifton  <nickc@redhat.com>
2122         * po/fr.po: Updated French translation.
2124 2004-05-11  Nick Clifton  <nickc@redhat.com>
2126         * doc/as.texinfo (Section): Document G and T flags to .section
2127         directive.  Document the extra arguments that the G flag
2128         requires.  Document the #tls flag.
2130 2004-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2132         * subsegs.c (section_symbol): Create a new section symbol if
2133         the existing one doesn't match.
2134         * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
2136 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
2138         * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
2139         to cope with VR4181A errata MD(1) and MD(4).
2141 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2143         * NEWS: Mention .secrel32 for pe[i]-i386.
2145 2004-05-07  Alexandre Oliva  <aoliva@redhat.com>
2147         * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2148         (HANDLE_ALIGN): New.
2150 2004-05-06  Daniel Jacobowitz  <dan@debian.org>
2152         * Makefile.am (DIST_SUBDIRS): Define.
2153         * aclocal.m4: Regenerate with automake 1.8.4.
2154         * Makefile.in: Likewise.
2155         * doc/Makefile.in: Likewise.
2157 2004-05-06  David Mosberger-Tang  <davidm@hpl.hp.com>
2159         * config/tc-ia64.c (dot_serialize): Declare.
2160         (dot_serialize): New function.
2161         (md_pseudo_table): Add ".serialize.data" and
2162         ".serialize.instruction" directives.
2164 2004-05-06  Nick Clifton  <nickc@redhat.com>
2166         * messages (as_internal_value_out_of_range): Print a message about
2167         a value being out of range.  Be consistent about whether the
2168         values are printed in decimal or hexadecimal.
2169         (as_warn_value_out_of_range): Generate a warning message about an
2170         out of range value.
2171         (as_bad_value_out_of_range): Generate an error message about an
2172         out of range value.
2173         * as.h: Prototype the new functions.
2174         * config/tc-alpha.c (insert_operand): Use new function.
2175         * config/tc-arc.c (arc_insert_operand): Likewise.
2176         * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
2177         * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
2178         * config/tc-ppc.c (ppc_insert_operand): Likewise.
2179         * config/tc-s390.c (s390_insert_operand): Likewise.
2180         * config/tc-v850.c (v850_insert_operand): Likewise.
2182 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
2184         * configure.in: Set em=linux for frv-*-*linux*.
2185         * configure: Rebuilt.
2186         * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
2187         (frv_md_fdpic_enabled): New.
2188         * config/tc-frv.c (frv_md_fdpic_enabled): New.
2189         (DEFAULT_FDPIC): New.
2190         (frv_flags): Use DEFAULT_FDPIC.
2191         (frv_pic_flag): Likewise.
2192         (OPTION_NOPIC): New.
2193         (md_longopts): Add -mnopic.
2194         (md_parse_option): Handle it.
2195         (md_show_usage): Add -mfdpic and -mnopic.
2197 2004-05-05  Peter Barada  <peter@the-baradas.com>
2199         * config/tc-m68k.c: Add find_cf_chip to print list of valid
2200         chips for invalid coldfire instructions, rename selectors
2201         for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
2202         add current_chip to track which chip is referred to(including save/restore),
2203         use current_chip to select control registers, not current_arch.
2204         (md_show_usage): Add new chips.
2205         * doc/c-m68k.texi: Document new command line switches.
2207 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
2209         * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
2210         (NOP_OPCODE): Define.
2211         (s390_align_code): Remove prototype.
2212         * tc-s390.c (s390_align_code): Remove.
2214 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2216         * config/tc-ia64.c (make_unw_section_name): Removed.
2217         (start_unwind_section): New function.
2218         (generate_unwind_image): Take const segT instead of const
2219         char *.
2220         (dot_handlerdata): Adjusted.
2221         (dot_endp): Likewise.
2223 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2225         * config/obj-elf.c (obj_elf_change_section): Allow the
2226         ".note.GNU-stack" section has SHF_EXECINSTR.
2228 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2230         * config/obj-elf.c (get_section): Return bfd_boolean.
2231         (obj_elf_change_section): Call bfd_get_section_by_name_if
2232         instead of bfd_map_over_sections.
2234 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
2236         * config/obj-elf.c (get_section): New function.
2237         (obj_elf_change_section): Support multiple sections with same
2238         name.
2240 2004-04-30  Nick Clifton  <nickc@redhat.com>
2242         * config/tc-arm.c (create_register_alias): Fix typo checking for
2243         case sensitive register aliases.
2244         (co_proc_number): Use error message string in all_reg_maps[]
2245         array.
2246         (cp_reg_required_here): Likewise.
2247         (fp_reg_required_here): Likewise.
2249 2004-04-29  Brian Ford  <ford@vss.fsi.com>
2251         * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
2253 2004-04-28  Chris Demetriou  <cgd@broadcom.com>
2255         * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
2256         (load_address, macro, mips_ip, md_parse_option)
2257         (mips_force_relocation, mips_validate_fix, md_apply_fix3)
2258         (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
2259         embedded-PIC handling, and update comments.
2260         (SWITCH_TABLE): Remove.
2261         * config/tc-mips.h (DIFF_EXPR_OK): Delete.
2262         (enum mips_pic_level): Remove EMBEDDED_PIC.
2263         (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
2264         (TC_FORCE_RELOCATION): Update comment.
2265         * ecoff.c (ecoff_build_lineno): Add comment about some code that
2266         might be safe to remove now that MIPS embedded-PIC is gone.
2268 2004-04-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2270         * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
2271         call to obj_set_subsection_attributes.
2272         (obj_som_init_stab_section): Likewise.
2273         * config/tc-hppa.c (default_subspace_dict): Add comdat field.
2274         (pa_def_subspaces): Provide comdat default.
2275         (pa_subspace): Handle new "comdat" parameter.  Set SEC_LINK_ONCE and
2276         not SEC_IS_COMMON if section is comdat, common or dup_common.  Update
2277         calls to create_new_subspace and update_subspace to pass comdat flag.
2278         (create_new_subspace, update_subspace): Add new comdat argument.  Use
2279         it in calls to obj_set_subsection_attributes.
2280         * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
2281         and use of comdat, common and dup_comm parameters.
2283 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
2285         * config/obj-elf.c (obj_elf_change_section): Check if the old
2286         group name is NULL before comparison.
2288 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
2290         * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
2292 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2294         * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
2296 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
2298         * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
2299         (OPTION_MEMBEDDED_PIC): Remove.
2300         (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
2301         (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
2302         (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
2303         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
2304         (OPTION_ELF_BASE): Renumber.
2305         (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
2306         (md_show_usage): Remove mention of -membedded-pic.
2307         * doc/as.texinfo: Remove mention of -membedded-pic.
2309 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2311         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
2312         * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
2313         a.out support.
2314         (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
2315         s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
2316         USE_GLOBAL_POINTER_OPT.
2318 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2320         * config/tc-mips.c (macro): One more use of load_delay_nop.
2322 2004-04-22  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
2324         * config/tc-mips.c (load_delay_nop): New function.
2325         (load_address, macro): Use load_delay_nop() to build a nop
2326         which can be omitted with gpr_interlocks.
2328 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2330         * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
2331         cop_interlocks): Remove superfluous CPU entries.
2333 2004-04-22  Paul Brook  <paul@codesourcery.com>
2335         * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
2337 2004-04-22  Peter Barada <peter@the-baradas.com>
2339         * NEWS: Added support for EMAC instructions and MAC/EMAC
2340         Motorola syntax.
2341         * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
2342         scale factor tokens, trailing_ampersand to mark mask addressing
2343         for MAC/EMAC instructions.
2344         * config/m68k-parse.y: Add options_ampersand clause, '<<',
2345         '>>'.
2346         (yylex): Handle '>', '<', and '&' following '+'.
2347         * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
2348         architectures in archs[].
2349         (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
2350         for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
2351         respectively.
2352         (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
2353         (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
2354         cases.
2355         Add EMAC operands to init_table[].
2357 2004-04-22  Bruno De Bus <bdebus@elis.ugent.be>
2359         * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
2360         state.
2361         (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
2362         * config/tc-arm.c (enum mstate): Delete from here.
2363         (mapping_state): Remove the static mapstate variable and instead
2364         store the state in the segment.  This allows a per-section mapping
2365         state.  Handle and ignore MAP_UNDEFINED states.
2366         (arm_elf_change_section): Get the current mapping state from the
2367         new section.
2368         (s_ltorg): Set the mapping state to MAP_DATA.
2369         (arm_cleanup): Use arm_elf_change_section to get the mapping state
2370         for each pool as it is emitted.
2372 2004-04-22  Nick Clifton  <nickc@redhat.com>
2374         * config/tc-arm.h: Formatting tidy ups.
2376 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
2378         * NEWS: Note that MIPS -membedded-pic option is deprecated.
2380 2004-04-20  DJ Delorie  <dj@redhat.com>
2382         * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
2383         * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
2384         [TE_PE] (O_secrel): Define.
2385         [TE_PE] (x86_pe_cons_fix_new): New.
2386         [TE_PE] (pe_directive_secrel): Likewise.
2387         (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
2389 2004-04-19  Eric Christopher  <echristo@redhat.com>
2391         * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
2392         of previous patch for fix in gcc.
2394 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
2396         * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
2398 2004-04-19  Nathan Sidwell  <nathan@codesourcery.com>
2400         * read.c (do_align): Call md_flush_pending_output, if defined.
2402 2004-04-16  Alan Modra  <amodra@bigpond.net.au>
2404         * expr.c (operand): Correct checks for ++ and --.
2406 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
2408         * config/tc-generic.c: Add some comments.
2410 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
2412         * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
2413         -{no-}mfix-vr4122-bugs.
2414         * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
2415         (append_insn, mips_emit_delays): Update accordingly.
2416         (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
2417         (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
2418         (md_parse_option): Update after above changes.
2419         (md_show_usage): Add -mfix-vr4120.
2421 2004-04-13  Bob Wilson  <bob.wilson@acm.org>
2423         * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
2424         of .section directive; add a reference to the ELF .subsection
2425         directive.
2427 2004-04-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2429         * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
2430         in parallel.
2432 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2434         * Makefile.am: Remove mips from aout targets.
2435         * Makefile.in: Regenerate.
2436         * configure.in: Remove mips-dec-bsd* target.
2437         * configure: Regenerate.
2439 2004-04-07  Alan Modra  <amodra@bigpond.net.au>
2441         PR 96
2442         * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
2443         to struct map_bfd.  Adjust MAP macro, and define MAP32, MAP64.
2444         Update "mapping".  Restrict some @ modifiers to 32 bit.
2446 2004-04-01  Asgari Jinia  <asgarij@kpitcummins.com>
2447             Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2449         * config/tc-sh.c (dont_adjust_reloc_32): New variable.
2450         (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
2451         dont_adjust_reloc_32 is set.
2452         (md_longopts): Add option -renesas.
2453         (md_parse_option, md_show_usage): Likewise.
2454         * doc/c-sh.texi: Likewise.
2456 2004-04-01  Dave Korn  <dk@artimi.com>
2458         * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
2459         hi16 and lo16 fixS structs.
2460         (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
2461         exactly the same way as for RELOC_DLX_REL16.
2462         (machine_ip): properly respect LO flag in the_insn and
2463         output RELOC_DLX_LO16 rather than RELOC_DLX_16.
2464         (md_apply_fix3): apply RELOC_DLX_LO16.
2466 2004-03-30  Stan Shebs  <shebs@apple.com>
2468         Remove long-obsolete MPW support.
2469         * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
2470         * configure.in: Remove mention of ppc-*-mpw* config.
2471         * configure.in: Likewise.
2473 2004-03-30  Nick Clifton  <nickc@redhat.com>
2475         * config/tc-arm.c (meabi_flags): Make its use conditional upon
2476         OBJ_ELF being defined.
2478 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
2480         * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
2482 2004-03-23  Paul Brook  <paul@codesourcery.com>
2484         * config/tc-arm.c (meabi_flags): New variable.
2485         (arm_parse_eabi): New function.
2486         (md_begin): Set flags for EABI v3.
2487         (arm_eabis): Add.
2488         (arm_long_opts): Add meabi.
2489         * doc/as.texinf <ARM>: Document -meabi.
2490         * doc/c-arm.texi: Ditto.
2492 2004-03-22  Bob Wilson  <bob.wilson@acm.org>
2494         * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
2495         tables even when use_literal_section flag is not set.
2497 2004-03-22  Alan Modra  <amodra@bigpond.net.au>
2499         * config/tc-sh.c: Remove trailing whitespace.
2501 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
2503         * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
2504         --mul-bug-abort and the default behavior.
2505         * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
2506         (err_for_dangerous_mul_placement): New variable.
2507         (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
2508         macros.
2509         (md_cris_relax_table): Have placeholder for STATE_MUL.
2510         (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
2511         (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
2512         case doing nothing.
2513         (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
2514         STATE_BYTE)>: Ditto.
2515         (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
2516         alignment and position of this frag, emit error message if
2517         suspicious.
2518         (md_assemble): For a multiply insn and when checking it,
2519         transform the current frag into a special frag for that purpose.
2520         (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
2521         OPTION_MULBUG_ABORT_ON>: Handle new options.
2523 2004-03-19  Bob Wilson  <bob.wilson@acm.org>
2525         * config/tc-xtensa.c (mark_literal_frags): New function.
2526         (xtensa_move_literals): Call mark_literal_frags for all literal
2527         segments, including init and fini literal segments.
2528         (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
2530 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2532         * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
2533         (pa_comm): Set BSF_OBJECT in symbol flags.
2535 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
2537         * Makefile.am: Run "make dep-am".
2538         * Makefile.in: Regenerate.
2539         * doc/Makefile.in: Regenerate.
2540         * config.in: Regenerate.
2541         * po/gas.pot: Regenerate.
2543 2004-03-18  Nathan Sidwell  <nathan@codesourcery.com>
2545         * read.c (read_a_source_file): Use demand_empty_rest_of_line.
2546         (demand_empty_rest_of_line): Issue an error here.
2547         (ignore_rest_of_line): Silently skip to end.
2548         (demand_copy_string): Issue an error, not warning.
2549         (equals): Likewise.
2550         * config/obj-elf.c (obj_elf_section_name): Likewise.
2551         (obj_elf_section): Likewise.
2552         * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
2553         (arc_extinst): Likewise.
2554         * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
2555         (dot_spill): Likewise.
2556         (dot_unwabi): Likewise.
2557         (dot_prologue): Likewise.
2559         * expr.c (operand): Reject ++ and --.
2560         (operator): Likewise.
2562 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2564         * config/tc-sh.c: Include dw2gencfi.h.
2565         (sh_cfi_frame_initial_instructions): New function.
2566         (sh_regname_to_dw2regnum): Likewise.
2567         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
2568         file.
2569         (TARGET_USE_CFIPOP): Define.
2570         (tc_cfi_frame_initial_instructions): Likewise.
2571         (tc_regname_to_dw2regnum): Likewise.
2572         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
2573         * Makefile.am: Update dependencies.
2574         * Makefile.in: Regenerate.
2576 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2578         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
2579         * configure: Regenerate.
2581 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
2583         * read.c (s_leb128): Call md_flush_pending_output.
2585 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
2587         * config/tc-i386.c (output_insn): Handle PadLock instructions.
2588         * config/tc-i386.h (CpuPadLock): New define.
2589         (CpuUnknownFlags): Added CpuPadLock.
2591 2004-03-07  Andreas Schwab  <schwab@suse.de>
2593         * doc/c-hppa.texi (HPPA Directives): Fix typo.
2595 2004-03-07  Richard Henderson  <rth@redhat.com>
2597         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
2598         (cfi_finish): Likewise for fde.
2600 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2602         * config/tc-ia64.c (md_assemble): Properly handle NULL
2603         align_frag.
2604         (ia64_handle_align): Don't abort if failed to add a stop bit.
2606 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
2608         * Makefile.in: Regenerated.
2609         * aclocal.m4: Likewise.
2610         * configure: Likewise.
2611         * doc/Makefile.in: Likewise.
2613 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
2615         * config/tc-ia64.c (dot_align): New.
2616         (ia64_do_align): Make it static.
2617         (md_pseudo_table): Use "dot_align" for "align".
2618         (ia64_md_do_align): Don't set align_frag here.
2619         (ia64_handle_align): Add a stop bit to the previous bundle if
2620         needed.
2622         * config/tc-ia64.h (ia64_do_align): Removed.
2624 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
2626         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
2627         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
2628         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
2629         the most general type or the user specifically requested it.
2630         (md_assemble): Add a new error message for when an instruction
2631         is understood, but is not allowed due to an -isa option.
2633 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2635         * config/tc-ia64.c (align_frag): New.
2636         (md_assemble): Set the tc_frag_data field in align_frag for
2637         IA64_OPCODE_FIRST instructions.
2638         (ia64_md_do_align): Set align_frag.
2639         (ia64_handle_align): Add a stop bit if needed.
2641         * config/tc-ia64.h (TC_FRAG_TYPE): New.
2642         (TC_FRAG_INIT): New.
2644 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2646         * config/tc-frv.c (fr400_audio): New variable.
2647         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
2648         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
2649         (target_implements_insn_p): New function.
2650         (md_assemble): Report an error if the processor doesn't implement
2651         the instruction.
2653 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2655         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
2656         (md_parse_option): Ditto.
2657         (OPTION_NO_SPECIAL_M32R): Added.
2658         (md_show_usage): Document it.
2659         (enable_speial_m32r): Changed a default value from 0 to 1.
2660         * doc/c-m32r.texi: Document the -no-bitinst option.
2662 2004-02-27  Nick Clifton  <nickc@redhat.com>
2664         * config/tc-sh.c (get_operand): Revert previous delta.
2665         (tc_gen_reloc): Check for an unknown reloc type before processing
2666         the addend.
2668 2004-02-27  Hannes Reinecke  <hare@suse.de>
2670         * config/tc-s390.c (s390_insn): Correct range check for opcode in
2671         .insn pseudo operation.
2673 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
2675         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
2676         added for wrong syntax.
2678 2004-02-26  Eric Christopher  <echristo@redhat.com>
2680         * config/tc-mips.c (mips_dwarf2_addr_size): New.
2681         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
2683 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
2685         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
2686         nibble types to assembler.
2688 2004-02-25  Fred Fish  <fnf@redhat.com>
2690         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
2692 2004-02-20  James E Wilson  <wilson@specifixinc.com>
2694         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
2695         finalize_syms.
2696         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
2697         (ia64_estimate_size_before_relax): New.
2698         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
2699         (generate_unwind_image): Pass 1 to fixup_unw_records.
2700         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
2701         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
2703 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
2705         * stabs.c (generate_asm_file): Avoid warning about use of
2706         uninitialized variable.
2708 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
2710         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
2711         body, and endp, allow unwind records which do not have a "t"
2712         (time/instruction) field.
2714 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
2716         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
2717         (do_mav_dspsc_2): Likewise.
2718         Fix accumulator registers move opcodes.
2720 2004-02-13  Hannes Reinecke  <hare@suse.de>
2721             Jakub Jelinek  <jakub@redhat.com>
2723         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
2725 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
2727         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
2728         (tc_frob_symbol): New macro definition.
2729         * config/tc-ia64.c (ia64_frob_symbol): New routine.
2731 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2733         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
2734         read-only.
2736 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
2738         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
2739         (TC_CASE_SENSITIVE): ... this.
2740         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
2741         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
2743 2004-02-06  James E Wilson  <wilson@specifixinc.com>
2745         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
2746         (generate_unwind_image): Re-add it here.
2748 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
2750         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
2751         * read.h (SKIP_WHITESPACE): Turn into an expression.
2752         * read.c (read_a_source_file): A pseudo is removed by having a
2753         NULL handler.
2755 2004-02-05  James E Wilson  <wilson@specifixinc.com>
2757         * config/tc-ia64.c (output_endp): New.
2758         (count_bits): Delete.
2759         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
2760         endp unwind records.
2761         (fixup_unw_records): Handle endp unwind records.  Delete code for
2762         shortening prologue regions not followed by a body record.
2763         (dot_endp): Call add_unwind_entry to emit endp unwind record.
2764         * config/tc-ia64.h (unw_record_type): Add endp.
2766 2004-02-03  James E Wilson  <wilson@specifixinc.com>
2768         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
2769         fill padding bytes with zeroes.
2770         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
2771         sets unwind_record slot_number and slot_frag fields.
2773 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2775         * config/tc-mips.c (add_got_offset_hilo): New function.
2776         (macro): Use load_register() and add_got_offset_hilo() to load
2777         constants instead of hardcoding code sequences throughout.
2779 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
2781         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
2783 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
2785         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
2786         like m68k-elf.
2787         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
2788         of hard-coded test for TARGET_OS=elf.
2790 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
2792         * config/tc-mips.c (hilo_interlocks): Change definition
2793         so that MIPS32, MIPS64 and later ISAs are included, along with
2794         the already-included machines.  Update comments.
2796 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
2798         * config/tc-arm.c (tc_gen_reloc): Improve error message for
2799         undefined local labels.
2801 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
2803         * config/tc-mips.c (load_address, macro): Update comments about
2804         NewABI GP relaxation.
2806 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
2808         * config/tc-mips.c (macro_build): Remove place and counter arguments.
2809         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
2810         (mips16_macro_build, macro_build_jalr): Remove counter argument.
2811         (set_at, load_register, load_address, move_register): Likewise.
2812         (load_got_offset, add_got_offset): Likewise.
2813         Update all calls and tidy accordingly.
2815 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
2817         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
2818         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
2819         (RELAX_USE_SECOND): Bump to 0x10000.
2820         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
2821         (mips_macro_warning): New variable.
2822         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
2823         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
2824         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
2825         of RELAX_ENCODE.
2826         (append_insn): Update mips_macro_warning.sizes.
2827         (macro_start, macro_warning, macro_end): New functions.
2828         (macro_build): Don't emit warnings here.
2829         (macro_build_lui, md_estimate_size_before_relax): ...or here.
2830         (md_convert_frag): Check for cases where one macro alternative
2831         needs a warning and the other doesn't.  Emit a warning if the
2832         longer sequence was chosen.
2834 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
2836         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
2837         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
2838         the first sequence, the size of the second sequence, and a flag
2839         that says whether we should warn.
2840         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
2841         (RELAX_FIRST, RELAX_SECOND): New.
2842         (mips_relax): New variable.
2843         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
2844         (append_insn): Remove "place" argument.  Use mips_relax.sequence
2845         rather than "place" to check whether we're expanding the second
2846         alternative of a relaxable macro.  Remove redundant check for
2847         branch relaxation.  If generating a normal insn, and there
2848         is not enough room in the current frag, call relax_close_frag()
2849         to close it.  Update mips_relax.sizes[].  Emit fixups for the
2850         second version of a relaxable macro.  Record the first relaxable
2851         fixup in mips_relax.  Remove tc_gen_reloc workaround.
2852         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
2853         in the same way as in append_insn.
2854         (mips16_macro_build): Remove "place" argument.
2855         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
2856         when generating the second version of a relaxable macro.
2857         (load_got_offset, add_got_offset): New functions.
2858         (load_address, macro): Use new relaxation machinery.  Remove
2859         tc_gen_reloc workarounds.
2860         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
2861         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
2862         first version is needed.
2863         (tc_gen_reloc): Remove relaxation handling.
2864         (md_convert_frag): Go through the fixups for a relaxable macro and
2865         mark those that belong to the unneeded alternative as done.  If the
2866         second alternative is needed, adjust the fixup addresses to account
2867         for the deleted first alternative.
2869 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
2871         * frags.h (frag_room): Declare.
2872         * frags.c (frag_room): New function.
2873         * doc/internals.texi: Document it.
2875 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2877         * config/tc-mips.c (append_insn): Don't do r3900 interlock
2878         optimization for -mtune=r3900, as this will break on other CPUs.
2880 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
2882         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
2883         be relaxed, use fixup.
2884         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
2886 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
2888         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
2889         precision operands.
2891 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2893         * config/tc-mips.c (append_insn): Properly detect variant frags
2894         that preclude swapping of relaxed branches.  Correctly swap
2895         instructions between frags when dealing with relaxed branches.
2897 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2899         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
2900         throughout.
2901         * aclocal.m4: Regenerate.
2902         * configure: Regenerate.
2904 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
2906         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
2907         manipulation insns.
2909 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
2911         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
2912         reloc, reserve space for the delay slot as well as the jalr itself.
2914 2004-01-09  Paul Brook  <paul@codesourcery.com>
2916         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
2917         (do_vfp_sp2_from_reg2): New function.
2918         (insns): Use them.
2919         (do_vfp_dp_from_reg2): Check return values properly.
2921 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
2923         * config/tc-mips.c (warn_nops): Remove static variable.
2924         (macro): Remove test of warn_nops.
2925         (md_shortops): Remove 'n'.
2926         (md_parse_option): Remove 'n' case.
2927         (md_show_usage): Remove -n.
2928         * doc/as.texinfo (Overview): Remove MIPS -n option.
2929         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
2930         * NEWS: Mention removal of MIPS -n option.
2932         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
2933         (cop_interlocks): Check ISA level.
2934         (cop_mem_interlocks): Define.
2935         (reg_needs_delay): Check cop_interlocks rather than
2936         ISA_HAS_COPROC_DELAYS.
2937         (append_insn): Likewise.  Use cop_mem_interlocks rather than
2938         directly checking mips_opts.isa.
2939         (mips_emit_delays): Likewise.
2941 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
2943         * config/tc-ia64.c (unwind): Move next_slot_number and
2944         next_slot_frag to ...
2945         (unw_rec_list): Here.
2946         (free_list_records): Removed.
2947         (output_unw_records): Likewise.
2948         (generate_unwind_image): Make it void.
2949         (alloc_record): Initialize next_slot_number and next_slot_frag.
2950         (slot_index): Take .org, .space and .align into account.
2951         (fixup_unw_records): Don't set slot_number to 0. Use
2952         list->next_slot_number and list->next_slot_frag instead of
2953         unwind.next_slot_number and unwind.next_slot_frag.
2954         (ia64_convert_frag): New.
2955         (generate_unwind_image): Generate a rs_machine_dependent frag
2956         for unwind record.
2957         (emit_one_bundle): Use list->next_slot_number and
2958         list->next_slot_frag instead of unwind.next_slot_number and
2959         unwind.next_slot_frag.
2961         * config/tc-ia64.h (md_convert_frag): Defined as
2962         ia64_convert_frag.
2963         (md_estimate_size_before_relax): Defined as (f)->fr_var.
2965 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
2967         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
2968         * config/tc-frv.h (md_apply_fix3): Don't define.
2969         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
2970         operands.
2971         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2972         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
2973         * config/tc-frv.c (line_separator_chars): Add `!'.
2974         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
2975         * config/tc-frv.c (md_assemble): Clear insn upfront.
2976         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
2977         * config/tc-frv.c (OPTION_FDPIC): New macro.
2978         (md_longopts): Add mfdpic.
2979         (md_parse_option): Handle it.
2980         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
2981         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
2982         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
2983         (frv_pic_ptr): Parse funcdesc.
2985 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2987         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
2988         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
2990 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2992         * Makefile.am (Makefile): Move the dependency on
2993         $(BFDDIR)/configure.in to...
2994         (CONFIG_STATUS_DEPENDENCIES): ... here.
2995         (AUTOMAKE_OPTIONS): Require automake 1.8.
2996         * Makefile.in: Regenerate.
2997         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
2998         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
2999         $(BFDDIR)/configure.in here as well.
3000         * doc/Makefile.in: Regenerate.
3002 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3004         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
3005         * Makefile.in: Regenerate.
3006         * aclocal.m4: Regenerate.
3007         * doc/Makefile.am (install, install-info): Remove.
3008         (install-data-local): A new hook for install-info.
3009         (AUTOMAKE_OPTIONS): Require automake 1.8.
3010         * doc/Makefile.in: Regenerate.
3012 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
3014         * doc/c-sh.texi: Update description about floating point behavior
3015         of SH family.
3017 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
3019         * configure.in: Add m68k-uClinux target.
3020         * configure: Regenerate.
3022 For older changes see ChangeLog-0203
3024 Local Variables:
3025 mode: change-log
3026 left-margin: 8
3027 fill-column: 74
3028 version-control: never
3029 End: