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