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