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