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