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