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