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