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