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