* symbols.c (S_GET_VALUE): Don't treat O_constant and local
[binutils-gdb.git] / gas / ChangeLog
1 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2
3 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
4 symbols specially. Always resolve, adding fr_address to value.
5 * write.c (write_object_file): Don't add fr_address to sym values.
6 (relax_frag): Likewise.
7 (relax_segment): Likewise.
8 * config/obj-ieee.c (do_symbols): Likewise.
9 * config/tc-cris.c (md_convert_frag): Likewise.
10 * config/tc-fr30.c (md_convert_frag): Likewise.
11 * config/tc-i386.c (md_convert_frag): Likewise.
12 * config/tc-m32r.c (md_convert_frag): Likewise.
13 * config/tc-m68hc11.c (md_convert_frag): Likewise.
14 * config/tc-mcore.c (md_convert_frag): Likewise.
15 * config/tc-mips.c (mips16_extended_frag): Likewise.
16 * config/tc-ns32k.c (md_convert_frag): Likewise.
17 * config/tc-m68k.c (md_convert_frag_1): Likewise.
18 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
19 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
20 (md_relax_table): Remove first four entries. Format.
21 (md_estimate_size_before_relax): Remove old_fix. Don't bother
22 setting fr_var. Simplify byte branch checks.
23
24 2001-07-23 Alan Modra <amodra@bigpond.net.au>
25
26 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
27 "isbranch" param as all calls have it set.
28 (pa_parse_neg_cmpsub_cmpltr): Likewise.
29 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
30 strcasecmp in "nullify" var.
31 (pa_parse_neg_add_cmpltr): Likewise.
32 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
33 functions. Don't print wrong conditions in error messages.
34
35 2001-07-23 Andreas Jaeger <aj@suse.de>
36
37 * config/tc-s390.c (s390_force_relocation): Removed.
38
39 * config/tc-s390.h: Remove double declaration of
40 TC_FORCE_RELOCATION.
41
42 2001-07-22 H.J. Lu <hjl@gnu.org>
43
44 * config/tc-mips.c (s_mips_end): Remove unused variables.
45 (s_mips_frame): Add ATTRIBUTE_UNUSED.
46
47 2001-07-17 Andreas Schwab <schwab@suse.de>
48
49 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
50 .loc.
51 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
52 insn.
53 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
54
55 2001-07-17 matthew green <mrg@eterna.com.au>
56
57 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
58 TE_NetBSD.
59 (line_comment_chars): Set to '/' if TE_NetBSD.
60
61 2001-07-14 matthew green <mrg@eterna.com.au>
62
63 * configure.in (i386-*-netbsdelf*): New target.
64 * configure: Regenerate.
65
66 2001-07-11 Jakub Jelinek <jakub@redhat.com>
67
68 * testsuite/gas/sparc/unalign.s: Remove .uaxword test.
69 * testsuite/gas/sparc/unalign.d: Adjust accordingly.
70
71 2001-07-10 Mark Elbrecht <snowball3@softhome.net>
72
73 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
74 class of the non-debug symbol is C_NULL.
75
76 2001-07-10 Anders Norlander <anorland@synergenix.se>
77
78 * doc/as.texinfo (Incbin): Fix grammatical errors.
79
80 2001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
81
82 * depend.c: Use FOPEN_.. macros in calls to fopen().
83 * input-file.c: As above.
84 * itbl-ops.c: As above.
85 * listing.c: As above.
86 * output-file.c: As above.
87 * read.c: As above.
88
89 2001-07-08 Anders Norlander <anorland@synergenix.se>
90
91 * read.c (s_incbin): New .incbin function.
92 * read.c (potable): Add "incbin" pseudo-op.
93 * read.h: Add s_incbin prototype.
94 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
95 * NEWS: Mention new feature.
96
97 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
98
99 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
100 DEBUG_UNSPECIFIED.
101
102 2001-07-06 John Healy <jhealy@redhat.com>
103
104 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
105 set of fixups to be stored.
106 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
107 restored to be chosen from any that are saved.
108 (gas_cgen_swap_fixups): Modified to allow the current set of
109 fixups to be swapped with any other set that has been saved.
110 (gas_cgen_initialize_saved_fixups_array): New routine.
111 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
112 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
113 or MAX_SAVED_FIXUP_CHAINS.
114 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
115 store, swap and restore fuctions to reflect the new interface.
116
117 2001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
118
119 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
120 ignore empty, ineffectual alignment frags when deciding if a
121 branch can be short.
122
123 2001-07-05 Steve Ellcey <sje@cup.hp.com>
124
125 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
126 and SPECIAL_SECTION_FINI_ARRAY.
127 (special_section_name): Add .init_array and .fini_array.
128 (md_pseudo_table): Add init_array and fini_array.
129 (md): Add pointer_size and pointer_size_shift fields.
130 (setup_unwind_header): New static function.
131 (output_unw_records): Modify to use setup_unwind_header.
132 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
133 md.pointer_size_shift.
134 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
135
136 2001-07-05 Ben Elliston <bje@redhat.com>
137
138 * README (Supported platforms): m88k no longer suffers bitrot.
139
140 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
141
142 2001-07-05 Alan Modra <amodra@bigpond.net.au>
143
144 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
145 lsy_value. Correct typos in comments.
146 * symbols.c (local_symbol_make): Update for name change.
147 (local_symbol_convert): Likewise.
148 (colon): Likewise.
149 (S_GET_VALUE): Likewise.
150 (S_SET_VALUE): Likewise.
151 (print_symbol_value_1): Likewise.
152 (resolve_symbol_value): Likewise. Don't divide local sym values
153 by OCTETS_PER_BYTE twice.
154
155 2001-07-04 Jim Wilson <wilson@redhat.com>
156
157 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
158
159 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
160 sched branches.
161
162 2001-07-05 Ben Elliston <bje@redhat.com>
163
164 * read.c (s_fill): Correct spelling error in comments.
165
166 * doc/c-m88k.texi: New file.
167 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
168 * doc/Makefile.in: Regenerate.
169 * doc/all.texi: Set M880X0.
170 * doc/as.texinfo: Hook in m88k-dependent documentation.
171
172 2001-07-04 Eric Christopher <echristo@redhat.com>
173
174 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
175
176 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
177 and rm5721 as valid cpu strings.
178 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
179
180 2001-07-04 Richard Sandiford <rsandifo@redhat.com>
181
182 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
183 if it's expected to be non-zero.
184
185 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
186
187 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
188 fscan->fx_frag.
189
190 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
191 (write_object_file): Set finalize_syms to
192 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
193 called.
194
195 * doc/internals.texi; Document
196 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
197
198 2001-07-02 Alan Modra <amodra@bigpond.net.au>
199
200 * config/tc-ppc.c: Formatting fixes.
201
202 2001-07-01 Ben Elliston <bje@redhat.com>
203
204 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
205 they cause some subtle breakage. Will fix them again later.
206
207 2001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
208
209 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
210 outside of a function as a .appline directive.
211
212 2001-06-28 Eric Christopher <echristo@redhat.com>
213 H.J. Lu <hjl@gnu.org>
214
215 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
216 of mips_cpu for the ISA selection.
217 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
218 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
219 (mips_tune): New. Use mips_tune for scheduling and optimization
220 issues.
221 (append_insn): Use mips_tune and mips_arch.
222 (macro_build): Ditto.
223 (mips_ip): Ditto.
224 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
225 backwards compatability mips_cpu generates arch and tune.
226 (md_show_usage): Document new behavior.
227
228 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
229 Deprecate -mcpu.
230
231 * NEWS: Update.
232
233 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
234
235 * write.c (write_object_file): Do not set finalize_syms until
236 after the segments have been sized. Some backends may still
237 need to access the syms's frags in order to adjust relaxed
238 frags.
239
240 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
241 constants.
242
243 2001-06-27 Alan Modra <amodra@bigpond.net.au>
244
245 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
246 subtract MD_PCREL_FROM_SECTION for 68k.
247 (fixup_segment <Difference of 2 syms different seg>): Only fudge
248 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
249
250 2001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
251
252 * write.c (fixup_segment <Difference of 2 syms same seg>): If
253 pcrel, subtract MD_PCREL_FROM_SECTION value.
254
255 2001-06-24 Ben Elliston <bje@redhat.com>
256
257 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
258
259 2001-06-24 Jakub Jelinek <jakub@redhat.com>
260
261 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
262 section symbols the same way as externs.
263
264 2001-06-24 Ben Elliston <bje@redhat.com>
265
266 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
267 (emit_relocations): Ditto.
268 (s_bss): Ditto.
269 (md_begin): Reformat comments to conform to the GNU standards.
270 (md_assemble): Ditto.
271
272 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
273 (md_parse_option): Mark parameters as unused.
274 (md_show_usage): Ditto.
275 (calcop): Adjust type of `reg_prefix' to char.
276 (get_reg): Ditto.
277 (getval): Adjust type of local `c' to char.
278 (md_create_short_jump): Mark from_addr, to_addr params as unused.
279 (md_create_long_jump): Ditto.
280 (md_estimate_size_before_relax): Mark parameters as unused.
281
282 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
283 to allay a possible compiler warning.
284
285 2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
286
287 * doc/internals.texi (CPU backend): Document md_atof.
288
289 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
290
291 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
292 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
293 architecture.
294
295 2001-06-21 Philip Blundell <philb@gnu.org>
296
297 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
298 updated.
299 (insns): Remove entry for adrl. Add long_flag for adr.
300 (do_adr): Handle `l' suffix.
301 (do_adrl): Delete.
302
303 2001-06-21 Alan Modra <amodra@bigpond.net.au>
304
305 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
306 (md_apply_fix): Use it here. Replace printf with equivalent
307 as_bad_where.
308 (tc_gen_reloc): Use as_bad_where instead of as_bad.
309 (md_apply_fix): Here too.
310 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
311 * config/tc-m68k.c (tc_gen_reloc): Likewise.
312 (md_convert_frag_1): Likewise.
313
314 2000-06-20 Tom Rix <trix@redhat.com>
315
316 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
317
318 2001-06-18 H.J. Lu <hjl@gnu.org>
319
320 * doc/Makefile.am (info): Depend on $(MANS).
321 (as.1): Remove the prefix `$(srcdir)/'.
322 * doc/Makefile.in: Regenerated.
323
324 * as.1: Removed.
325
326 2001-06-18 Philip Blundell <philb@gnu.org>
327
328 * config/tc-arm.c (do_msr): Remove restriction on usage of
329 immediate operands.
330
331 2001-06-19 Alan Modra <amodra@bigpond.net.au>
332
333 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
334 line info.
335
336 2001-06-13 Philip Blundell <philb@gnu.org>
337
338 * config/tc-arm.c (thumb_shift): Improve wording of error message.
339 (do_t_arit): Likewise.
340
341 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
342
343 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
344 .loc pseudos if the dfwarf2 functions are available.
345 (md_assemble): Only call dwarf2_emit_insn if it is available.
346
347 * expr.c: Fix typo in comment.
348
349 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
350
351 * doc/as.texinfo (Infix Ops): Document that comparison and
352 combiner operators can be used as infix operators.
353
354 2001-06-12 Peter Jakubek <pjak@snafu.de>
355
356 * gas/config/tc-m68k.c (parse_mri_control_operand): Fix handling
357 of AND/OR.
358 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
359 (reverse_mri_condition): Likewise.
360 (swap_mri_condition): Issue warning for conditions that can not be
361 swapped.
362 (build_mri_control_operand): Fix order of operands (swapped).
363 (build_mri_control_operand): Allow upper case extension in structured
364 control directives.
365 (s_mri_else): Likewise.
366 (s_mri_next): Likewise.
367 (s_mri_for): Likewise.
368 (s_mri_if): Fix handling comment ('*') in mri mode.
369 (s_mri_while): Likewise.
370 * gas/macro.c (macro_expand): Allow macro invocation with empty
371 extension.
372
373 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
374
375 * config/tc-arm.c: Fix test for overlow of literal pool.
376
377 2001-06-11 H.J. Lu <hjl@gnu.org>
378
379 * NEWS: Updated for the new -n option for the MIPS assembler.
380
381 * config/tc-mips.c (md_show_usage): Add -n.
382
383 * doc/as.texinfo: Document the new -n option.
384 * doc/c-mips.texi: Likewise.
385 * doc/as.1: Regenerated.
386
387 2001-06-10 Alan Modra <amodra@bigpond.net.au>
388
389 * config/obj-coff.c (obj_coff_section): Formatting fix.
390
391 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
392 ",pn".
393
394 2001-06-08 H.J. Lu <hjl@gnu.org>
395
396 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
397 disable warning about all NOPS that the assembler generates.
398 (macro): Warn NOPS generated only if warn_nops is not 0.
399 (md_shortopts): Add `n'.
400 (md_parse_option): Set warn_nops to 1 for `n'.
401
402 2001-06-08 H.J. Lu <hjl@gnu.org>
403
404 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
405
406 2001-06-08 H.J. Lu <hjl@gnu.org>
407
408 * config/tc-mips.c (md_apply_fix): Don't adjust common
409 extern/weak symbols for ELF.
410 (md_estimate_size_before_relax): Treat weak like extern for
411 ELF.
412 (mips_fix_adjustable): Don't adjust extern/weak symbols for
413 ELF.
414
415 2001-06-08 Alan Modra <amodra@bigpond.net.au>
416
417 * Makefile.am: 'som' is not wrongly spelled 'some'.
418 * Makefile.in: Regenerate.
419
420 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
421 S_GET_VALUE by using a temp.
422 (append_insn): Likewise, and for S_SET_VALUE too.
423 (mips_emit_delays): Likewise.
424 (my_getExpression): Likewise.
425 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
426 (mips16_extended_frag): Remove code concerned with avoiding
427 locking in a frag address now that symbols are not finalized until
428 relaxation is complete. Cater for first relaxation pass having
429 bogus addresses. Use relax_marker to reliably determine whether a
430 symbol frag has been reached on the current pass.
431
432 2001-06-07 H.J. Lu <hjl@gnu.org>
433
434 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
435 * configure: Regenerate.
436
437 2001-06-07 H.J. Lu <hjl@gnu.org>
438
439 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
440 ecoff emulation.
441 * configure: Regenerate.
442
443 2001-06-07 H.J. Lu <hjl@gnu.org>
444
445 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
446 MIPS_STABS_ELF is defined.
447
448 2001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
449
450 * as.c (show_usage): Remove L from listing options. It is not a
451 generic option.
452
453 2001-06-06 Christian Groessler <cpg@aladdin.de>
454
455 * config/tc-z8k.c: Removed many warnings by removing unused
456 variables and tagging unused parameters as such.
457 (md_begin): Fixed a typo (","instead of ";").
458 (struct ctrl_table): Add parentheses to initialize array
459 correctly.
460 (struct flag_table): Likewise.
461 (struct intr_table): Likewise.
462 (struct table): Likewise.
463 (check_operand): "#if 0"'ed since it doesn't seem to be used.
464
465 2001-06-06 Peter Jakubek <pjak@snafu.de>
466
467 * gas/config/tc-m68k.c (md_show_usage): Add all supported ColdFire
468 options to list (e.g. m5206e, m5307, m5407).
469
470 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
471
472 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
473 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
474
475 2001-06-06 Alan Modra <amodra@bigpond.net.au>
476
477 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
478 <JumpByte, JumpDword insn output>: Remove dead code.
479
480 2001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
481
482 * as.c (parse_args): Correct option name "listing-lhs-width2".
483
484 2001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
485
486 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
487 status.
488
489 2001-05-30 Richard Henderson <rth@redhat.com>
490
491 * read.c (emit_leb128_expr): Call md_cons_align.
492
493 2001-05-28 Jeff Sturm <jsturm@one-point.com>
494
495 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
496 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
497 (tc_gen_reloc): Likewise.
498 (sparc_cons_align): Don't clear sparc_no_align_cons.
499 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
500 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
501
502 2001-05-27 Alan Modra <amodra@one.net.au>
503
504 * write.c (relax_segment <rs_space>): Check the section of a
505 symbol to determine whether it is absolute rather than comparing
506 its frag against zero_address_frag as listings play tricks with
507 frags.
508
509 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
510 allocated in the same chunk as the fixed part.
511
512 2001-05-26 Alan Modra <amodra@one.net.au>
513
514 * write.c (relax_segment <rs_space>): Calculate growth using
515 addresses before stretch. Prevent repeated error messages.
516 From Peter Jakubek <pjak@snafu.de>
517 Use as_bad_where and as_warn_where to pinpoint errors.
518
519 2001-05-25 Alan Modra <amodra@one.net.au>
520
521 * symbols.c (resolve_symbol_value): Always set segment, even when
522 not finalizing symbol value.
523
524 * config/obj-ieee.c (write_object_file): Set finalize_syms.
525 * config/obj-coff.c (write_object_file): Likewise.
526 * (size_section): Remove rs_space assert as fr_symbol is no longer
527 removed.
528 (fill_section): Likewise.
529
530 * configure.in: Replace linuxoldld with linux*oldld.
531 * configure: Regenerate.
532
533 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
534 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
535 that have been finalized.
536
537 * symbols.c (resolve_symbol_value): Clear sy_resolving before
538 taking exit_dont_set_value.
539
540 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
541 relaxing.
542
543 2000-05-24 Tom Rix <trix@redhat.com>
544
545 * config/obj-coff.c (add_lineno): xcoff allows negative line
546 numbers
547 * config/tc-ppc.c (ppc_stabx): fix generated symbol
548
549 2001-05-24 Alan Modra <amodra@one.net.au>
550
551 * write.c (write_object_file): Set finalize_syms = 1 before
552 size_seg is called.
553
554 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
555
556 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
557 architecture, remove erraneous ISA_MIPS32.
558 (md_show_usage): Add MIPS r12k support.
559 (mips_cpu_info_table): Add MIPS r12k support.
560
561 2001-05-22 Alan Modra <amodra@one.net.au>
562
563 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
564 testing for NULs.
565
566 * symbols.c (resolve_symbol_value): Remove "finalize" param,
567 instead use finalize_syms directly. Don't treat expressions
568 specially with regard to finalize_syms. Update calls to self.
569 (resolve_local_symbol): Update call to resolve_symbol_value.
570 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
571 !finalize_syms.
572 * symbols.h (resolve_symbol_value): Update prototype.
573 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
574 to resolve_symbol_value.
575 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
576 * config/obj-coff.c (do_relocs_for): Likewise.
577 (yank_symbols): Likewise.
578 (fixup_segment): Likewise.
579 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
580 * config/tc-mips.c (md_convert_frag): Likewise.
581 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
582 (ppc_fix_adjustable): Likewise.
583 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
584 (dwarf2dbg_convert_frag): Likewise.
585 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
586 (eh_frame_convert_frag): Likewise.
587 * expr.c (make_expr_symbol): Likewise.
588 * write.c (adjust_reloc_syms): Likewise.
589 (write_object_file): Likewise.
590 (relax_segment): Likewise.
591 (fixup_segment): Likewise.
592 (finalize_syms): Init to zero, and update comment.
593 (write_object_file): Set finalize_syms to 1 rather than 2.
594 * doc/internals.texi (sy_value): Mention finalize_syms.
595 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
596
597 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
598 as relaxable if embedded system, make weak syms non-relaxable.
599 Move definition..
600 (tc_m68k_fix_adjustable): ..so it can be used here.
601 (md_apply_fix_2): Sign extend without conditional.
602
603 * config/tc-v850.c: Update copyright.
604
605 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
606
607 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
608 howto entry is not found.
609
610 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
611
612 * config/tc-mn10300.c (mn10300_force_relocation): Don't
613 optimize differences between symbols in code sections to
614 constants.
615 (mn10300_fix_adjustable): Don't adjust to section+offset
616 relocations pointing at symbols in code sections.
617
618 2001-05-16 Alan Modra <amodra@one.net.au>
619
620 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
621 for 8 byte insns.
622 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
623 opcodes are output rather than after. Delete insn_size.
624 * config/tc-v850.c (md_assemble): Similarly, but delete
625 total_insn_size.
626
627 2001-05-14 Richard Henderson <rth@redhat.com>
628
629 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
630 last change.
631
632 2001-05-14 Richard Henderson <rth@redhat.com>
633
634 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
635 also collect whether to expect an FDE augmentation.
636 (check_eh_frame): Rewrite as a state machine. Track where in
637 an FDE we are located, skip any augmentation.
638 (eh_frame_estimate_size_before_relax): Get code alignment from
639 the fragment subtype.
640 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
641 * read.c (emit_leb128_expr): Call check_eh_frame.
642
643 2001-05-14 Alexandre Oliva <aoliva@redhat.com>
644
645 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
646 before a relaxable insns.
647
648 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
649
650 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
651 between symbols if the base symbol is in the current section;
652 emit a PC-relative relocation instead.
653
654 2001-05-12 Peter Targett <peter.targett@arccores.com>
655
656 * config/tc-arc.c: Update copyright and tidy source comments.
657 (md_pseudo_table): Add directive .cpu back as an alias for
658 .option. Add .file and .line for dwarf2 support.
659 (arc_mach_type): Make bfd_mach_arc_6 default.
660 (md_longopts): Add entry 'pre-v6' representing old command line
661 option when assembling for 'arc5' core versions.
662 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
663 default behaviour.
664 (arc_code_symbol): Make symbol value for @h30 fixup expression
665 equal to O_constant.
666 (md_assemble): Call dwarf2_emit_insn.
667 Include "dwarf2dbg2.h". Formatting fixes throughout file.
668 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
669 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
670
671 2001-05-11 Jakub Jelinek <jakub@redhat.com>
672
673 * config/tc-ia64.c (special_linkonce_name): New.
674 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
675 .gnu.linkonce.ia64unw{,i}.FOO.
676 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
677 (dot_endp): Add comment about it.
678
679 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
680
681 * config/tc-arm.c (arm_handle_align): When truncating an aligned
682 block, ensure that the low order bits of the alignment are
683 preserved.
684
685 2001-05-10 Alan Modra <amodra@one.net.au>
686
687 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
688 symbol_next.
689
690 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
691 current variable part of frag.
692 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
693 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
694 * config/tc-m68hc11.c (RELAX_STATE): Define.
695 (RELAX_LENGTH): Define.
696 (md_estimate_size_before_relax): Handle non-relaxable cases
697 separately from relaxable cases for clarity, and return correct
698 size for multi-pass relaxation.
699 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
700 (md_estimate_size_before_relax): As for tc-m68hc11.c.
701 (md_convert_frag): Remove "length_code".
702 * config/tc-vax.c (RELAX_STATE): Define.
703 (RELAX_LENGTH): Define.
704 (md_relax_table): Add missing entry.
705 (md_estimate_size_before_relax): As for tc-m68hc11.c.
706 (md_convert_frag): Remove "length_code".
707 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
708 don't bother setting fr_var. Return correct size for multi-pass
709 relaxation.
710 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
711 (md_convert_frag): Don't bother clearing fr_var.
712 (md_pseudo_table): Correct initialization.
713 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
714 (md_estimate_size_before_relax): No need to set fr_var.
715 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
716 (md_estimate_size_before_relax): No need to set fr_var.
717
718 2001-05-09 Richard Henderson <rth@redhat.com>
719
720 * config/tc-ia64.c (generate_unwind_image): Align the fragment
721 beginning a function's unwind info block.
722
723 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
724
725 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
726
727 2001-05-08 Andreas Schwab <schwab@suse.de>
728
729 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
730 fx_pcrel_adjust explicitly sign extend when reading it.
731
732 2001-05-08 Alan Modra <amodra@one.net.au>
733
734 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
735 from md_relax_table, and combine some switch cases.
736
737 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
738
739 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
740 from offset in non-pcrel operands too.
741
742 2001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
743
744 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
745 * config/tc-arm.c (arm_handle_align): Do not insert more than
746 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
747 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
748
749 2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
750
751 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
752 Run "make dep-am".
753 * Makefile.in: Regenerate.
754 * configure.in: Remove duplicate mips-*-ecoff* entry.
755 * configure: Regenerate.
756
757 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
758 (n_names): Cast away type mismatch.
759 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
760 (obj_ecoff_frob_symbol): Likewise.
761 * ecoff.c: (add_file): Add unused attribute.
762 (ecoff_directive_begin): Likewise.
763 (ecoff_directive_bend): Likewise.
764 (ecoff_directive_def): Likewise.
765 (ecoff_directive_dim): Likewise.
766 (ecoff_directive_scl): Likewise.
767 (ecoff_directive_size): Likewise.
768 (ecoff_directive_type): Likewise.
769 (ecoff_directive_tag): Likewise.
770 (ecoff_directive_val): Likewise.
771 (ecoff_directive_endef): Likewise.
772 (ecoff_directive_end): Likewise.
773 (ecoff_directive_ent): Likewise.
774 (ecoff_directive_extern): Likewise.
775 (ecoff_directive_file): Likewise.
776 (ecoff_directive_fmask): Likewise.
777 (ecoff_directive_frame): Likewise.
778 (ecoff_directive_mask): Likewise.
779 (ecoff_directive_loc): Likewise.
780 (mark_stabs): Likewise.
781 (ecoff_stab): Likewise.
782 (ecoff_frob_symbol): Cast away type mismatch.
783 (ecoff_padding_adjust): Likewise.
784 (ecoff_build_symbols): Likewise.
785 (ecoff_build_procs): Likewise.
786 (ecoff_build_aux): Likewise.
787 (ecoff_build_strings): Likewise.
788 (ecoff_build_fdr): Likewise.
789 (ecoff_build_debug): Likewise.
790 * itbl-ops.c (itbl_assemble): Variable initialization.
791
792 2001-05-03 Alan Modra <amodra@one.net.au>
793
794 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
795 expressions rather than triggering an assert.
796
797 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
798
799 * config/tc-openrisc.c: New file.
800 * config/tc-openrisc.h: Likewise.
801
802 * Makefile.am: Add OpenRISC target.
803 * Makefile.in: Regenerated.
804
805 * configure.in (openrisc-*-*): Add target.
806 * configure: Regenerated.
807
808 2001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
809
810 * config/tc-arm.c (arm_frag_align_code): Change error message to
811 more explanatory version.
812
813 2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
814
815 * config/tc-mips.c (md_parse_option): Also accept
816 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
817
818 2001-04-27 David Mosberger <davidm@hpl.hp.com>
819
820 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
821 argument passing order: predicate goes last, not first.
822
823 2001-04-27 Sean McNeil <sean@mcneil.com>
824
825 * configure.in: Add arm-vxworks.
826 * configure: Regenerate.
827
828 2001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
829
830 * config/tc-arm.c (arm_handle_align): New Function: Generate
831 no-op filled alignment frags.
832 (arm_frag_align_code): New Function: Create a code alignment frag.
833 (arm_init_frag): New Function: Initialse the target dependent
834 parts of a frag.
835
836 * config/tc-arm.h (TC_FRAG_TYPE): Define.
837 (TC_FRAG_INIT): Define.
838 (HANDLE_ALIGN): Define.
839 (md_do_align): Define.
840
841 2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
842
843 * config/obj-coff.c (do_linenos_for): Check to see if the filename
844 symbol has been initialised before extracting its symbol index.
845
846 2001-04-24 H.J. Lu <hjl@gnu.org>
847
848 * configure: Regenerated with the right version of autoconf.
849
850 2001-04-24 Christian Groessler <cpg@aladdin.de>
851
852 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
853 generate R_CALLR and R_REL16 relocations
854
855 2000-04-20 Jason Eckhardt <jle@redhat.com>
856
857 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
858 since frag_now can change after d10v_cleanup is called.
859
860 2001-04-16 David O'Brien <obrien@FreeBSD.org>
861
862 * configure.in: Add the em type for FreeBSD targets.
863 * configure: Regenerate.
864
865 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
866
867 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
868 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
869
870 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
871 pc-relative relocations not placed at the end of the instruction.
872
873 2001-04-13 Jim Wilson <wilson@redhat.com>
874
875 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
876 excluding br.i.
877
878 2001-04-13 Jakub Jelinek <jakub@redhat.com>
879
880 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
881 handle SHF_MERGE and SHF_STRINGS.
882 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
883 (obj_elf_section): Allow additional argument specifying entity size.
884 * write.c (adjust_reloc_syms): Keep relocations against local symbols
885 in SEC_MERGE sections.
886
887 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
888
889 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
890
891 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
892
893 * expr.c (operand): Pass &c to md_parse_name().
894 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
895
896 2001-04-07 Steven J. Hill <sjhill@cotw.com>
897
898 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
899
900 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
901 * Makefile.in: Regenerated.
902
903 * configure.in: Use traditional MIPS targets for Linux/MIPS.
904 * configure: Regenerated.
905
906 2001-04-06 Alexandre Oliva <aoliva@redhat.com>
907
908 * config/tc-mn10300.c (xr_registers): Added `pc'.
909
910 2001-04-05 Alan Modra <alan@linuxcare.com.au>
911
912 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
913 * configure: Regenerate.
914
915 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
916 cases, and always return size based on current fr_subtype.
917 (md_begin): Move initialization of md_relax_table..
918 (md_relax_table): ..to static initializer. Set rlx_length for
919 UNDEF_WORD_DISP cases.
920 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
921 (md_begin): Likewise.
922 (md_relax_table): Likewise.
923 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
924 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
925 Set rlx_backward and rlx_forward to zero for unused states.
926 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
927 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
928 (UNCOND12, UNCOND32): Remove duplicate defines.
929
930 2001-04-04 Hans-Peter Nilsson <hp@axis.com>
931
932 * config/tc-cris.c (md_estimate_size_before_relax) <case
933 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
934 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
935 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
936 Add cases to cover all relax states.
937 (cris_insn_first_word_frag): New.
938 (md_assemble): Call cris_insn_first_word_frag to get the first
939 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
940 end. Drop variable insn_size.
941 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
942 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
943 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
944
945 * write.c (write_object_file): Reset broken word state before
946 calling relax_seg.
947
948 2001-03-31 Alan Modra <alan@linuxcare.com.au>
949
950 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
951 for one line if not already enabled.
952 * cond.c (s_elseif): Correct conditional assembly listing.
953 (s_else): Likewise.
954
955 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
956 Don't abort on NULL current_cframe.
957
958 2001-03-30 Alan Modra <alan@linuxcare.com.au>
959
960 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
961 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
962 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
963 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
964 * config/obj-coff.c (do_relocs_for): Likewise.
965 (yank_symbols): Likewise.
966 (fixup_segment): Likewise.
967 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
968 (ppc_fix_adjustable): Likewise.
969 * config/tc-mips.c (md_convert_frag): Likewise.
970 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
971 * ehopt.c (eh_frame_convert_frag): Likewise.
972 * expr.c (make_expr_symbol): Likewise.
973
974 * frags.h (struct frag): Add last_fr_address. Reorder fields for
975 better packing.
976 * symbols.c (resolve_symbol_value): Don't fix expression values
977 until relaxation is complete.
978 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
979 (S_GET_VALUE): Likewise, and return unresolved expression value.
980 * write.c (finalize_syms): New.
981 (relax_and_size_seg): Split into..
982 (relax_seg): New function, returns 1 if anything changed..
983 (size_seg): And the remainder of relax_and_size_seg.
984 (fixup_segment): Arrange for final resolution of sym values.
985 (adjust_reloc_syms): Likewise.
986 (write_object_file): Likewise, and repeatedly call relax_seg until
987 nothing more changes.
988 (relax_segment): Return 1 if anything changed. Use correct types
989 for rs_org `target' and `after'.
990 * write.h (finalize_syms): Declare.
991 (relax_segment): Update prototype.
992
993 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
994 do-nothing cases to switch to avoid abort on a second relaxation
995 pass, and tidy code a little.
996 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
997 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
998 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
999 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
1000 (md_relax_table): Remove first four unused entries. Increment
1001 rlx_length by one throughout table, and update comments to suit.
1002 (md_estimate_size_before_relax): Return size of current variable
1003 part of frag to reflect reality when relaxing more than once.
1004 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
1005 (COND32, UNCD32): Rename to DISP32 throughout.
1006 (UNDEF_WORD_DISP): Renumber to 3.
1007 (md_estimate_size_before_relax): Add extra do-nothing cases.
1008 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
1009 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
1010 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
1011 handle word and dword branches.
1012
1013 2001-03-29 Hans-Peter Nilsson <hp@axis.com>
1014
1015 * config/tc-cris.h (tc_fix_adjustable): Allow only
1016 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
1017 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
1018 example in comment to valid type.
1019
1020 2001-03-28 H.J. Lu <hjl@gnu.org>
1021
1022 * read.c (equals): Set to local for COFF only if it hasn't been
1023 defined before.
1024
1025 2001-03-28 Alan Modra <alan@linuxcare.com.au>
1026
1027 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
1028 (md_begin): Use it when setting default architecture.
1029
1030 2001-03-27 Nick Papadonis <nick@coelacanth.com>
1031
1032 * read.c (equals): (for COFF) default symbols to being local.
1033
1034 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1035
1036 * configure.in (cris-*-*): Change default emulation to criself.
1037 (cris-*-*aout*): New rule.
1038 * configure: Regenerate.
1039
1040 2001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
1041
1042 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
1043 BFD_RELOC_390_GOTENT.
1044 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
1045 BFD_RELOC_390_GOTENT.
1046
1047 2001-03-26 Nick Clifton <nickc@redhat.com>
1048
1049 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
1050 * config/tc-s390.c (s390_force_relocation): New function: Force
1051 relocations for VTINHERIT relocs.
1052
1053 2001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1054
1055 * doc/as.texinfo: Put @c man begin to generate the as man page.
1056 When generating man, define all the variables. Re-organize some
1057 options to obtain better indentation of man page.
1058 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
1059 (as.1): Build from as.texinfo.
1060 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
1061
1062 2001-03-25 Alan Modra <alan@linuxcare.com.au>
1063
1064 * config/tc-i386.c (i386_scale): Accept an absolute expression for
1065 scale factor, and return the end of the expression.
1066 (i386_operand): Modify for above.
1067
1068 2001-03-23 Nick Clifton <nickc@redhat.com>
1069
1070 * doc/as.texinfo: Document --listing-XXX command line switches.
1071 Explain why listings behave differently when -pipe is used.
1072
1073 2001-03-23 Richard Sandiford <rsandifo@redhat.com>
1074
1075 * write.c (fix_new_exp): Print an error if passed a register.
1076
1077 2001-03-23 Hans-Peter Nilsson <hp@axis.com>
1078
1079 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
1080 (PIC_SUFFIX_CHAR): New macro.
1081 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
1082 (pic): New variable.
1083 (md_longopts): New option --pic.
1084 (OPTION_PIC): Define.
1085 (md_estimate_size_before_relax): Tweak longish comment.
1086 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
1087 (md_assemble): Handle a PIC relocation on prefix and normal
1088 instruction operands.
1089 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
1090 "complex" operand expressions. Call frag_more outside
1091 gen_cond_branch_32 parameter list.
1092 (cris_process_instruction): Handle PIC relocs on parsed
1093 operand expressions. Validize PIC reloc sizes.
1094 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
1095 (gen_bdap): Handle "complex" operand expressions.
1096 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
1097 ADD.D offset,PC as jump instruction if generating PIC. Generate
1098 error instead of crashing on complex expressions.
1099 (cris_number_to_imm): Add segT parameter. All callers changed.
1100 Use segT parameter, not now_seg, for segment of fixup. Handle
1101 PCREL relocations but check that they are fully resolved.
1102 (md_parse_option): Handle OPTION_PIC.
1103 (tc_gen_reloc): Handle PIC relocs.
1104 (md_show_usage): Update for --pic.
1105 (md_apply_fix3): Renamed from md_apply_fix.
1106 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
1107 (md_cris_force_relocation): Force relocation for PIC relocs.
1108
1109 * config/tc-cris.h: Tweak attribution.
1110 (MD_APPLY_FIX3): Define.
1111 (IS_CRIS_PIC_RELOC): New macro.
1112 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
1113 (tc_fix_adjustable): Don't adjust a globally visible symbol when
1114 generating ELF.
1115 (tc_frob_symbol): Avoid emitting undefined symbols.
1116
1117 2001-03-20 Alan Modra <alan@linuxcare.com.au>
1118
1119 * frags.h (struct frag): Add relax_marker.
1120 * write.c (is_dnrange): Delete.
1121 (relax_frag): Use correct types for `aim', `target', `address'.
1122 Delete `offset', `was_address'. Test `relax_marker' instead of
1123 using fragile (and slow) address test.
1124 (relax_segment): Init and flip `relax_marker'.
1125
1126 2001-03-19 Alan Modra <alan@linuxcare.com.au>
1127
1128 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
1129 used register name.
1130
1131 2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1132
1133 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
1134 with 'Motorola specification for assembly language input standard'.
1135
1136 2001-03-17 Richard Henderson <rth@redhat.com>
1137
1138 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
1139 (dwarf2_directive_loc): Don't use them.
1140 (dwarf2_directive_file): Reject duplicate file definitions.
1141 (get_filenum): Zero allocated memory.
1142 (out_file_list): Complain about missing file definitions.
1143
1144 2001-03-17 Alan Modra <alan@linuxcare.com.au>
1145
1146 * read.c (do_org): Handle complex expressions.
1147 * cgen.c (gas_cgen_finish_insn): Likewise.
1148
1149 2001-03-15 David Mosberger <davidm@hpl.hp.com>
1150
1151 * config/tc-ia64.c (md): New member keep_pending_output.
1152 (ia64_flush_pending_output): Flush only if md.keep_pending_output
1153 is not set.
1154 (dot_xdata): Turn on md.keep_pending_output for the duration of
1155 this function.
1156 (dot_xfloat_cons): Ditto.
1157 (dot_xstringer): Ditto.
1158 (dot_xdata_ua): Ditto.
1159 (dot_xfloat_cons_ua): Ditto.
1160
1161 2001-03-15 Jim Wilson <wilson@redhat.com>
1162
1163 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
1164 label support.
1165
1166 2001-03-15 Alexandre Oliva <aoliva@redhat.com>
1167
1168 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
1169
1170 2001-03-15 DJ Delorie <dj@redhat.com>
1171
1172 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
1173 blindly freeing string if it isn't at the top of the obstack.
1174
1175 2001-03-13 Alan Modra <alan@linuxcare.com.au>
1176
1177 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
1178 (NUM_FLAG_CODE): Define.
1179 (lex_got): New function.
1180 (got_reloc): New global var.
1181 (x86_cons_fix_new): New function.
1182 (x86_cons): New function.
1183 (i386_immediate): Use lex_got here, replacing inline code. Change
1184 "ignoring junk.." error message to "junk.."
1185 (i386_displacement): Likewise.
1186 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
1187 (x86_cons): Declare.
1188 (TC_CONS_FIX_NEW): Define.
1189 (x86_cons_fix_new): Declare.
1190
1191 2001-03-12 Nick Clifton <nickc@redhat.com>
1192
1193 * config/tc-arm.c (md_begin): Always set machine type based on
1194 cpu_variant.
1195
1196 2001-03-07 Alan Modra <alan@linuxcare.com.au>
1197
1198 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
1199 (md_assemble) <smallest displacement>: Use correct field of i.op[]
1200 union.
1201 <JumpInterSegment output>: Use correct i.disp_reloc[].
1202 <immediate output>: Likewise.
1203
1204 2001-03-06 Nick Clifton <nickc@redhat.com>
1205
1206 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
1207 BLX(1) instruction.
1208
1209 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1210
1211 * config/tc-m68k.c : Add 5407 to archs[] table.
1212 (HAVE_LONG_BRANCH): Add mcf5407.
1213 (select_control_regs): Recognize 5407.
1214
1215 2001-03-02 Dave Brolley <brolley@redhat.com>
1216
1217 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
1218 than m32r_do_align.
1219
1220 2001-03-02 Richard Sandiford <rsandifo@redhat.com>
1221
1222 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
1223 (gen_to_words): Print warnings if NaNs are found and the target CPU
1224 does not support them. Allow largest exponent to be used in normal
1225 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
1226
1227 2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
1228
1229 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
1230 anymore since we use bfd_elf_generic_reloc now.
1231 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
1232
1233 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1234
1235 * configure.in (BFD_VERSION): New.
1236 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1237 * configure: Regenerate.
1238 * Makefile.am: Run "make dep-am"
1239 * Makefile.in: Regenerate.
1240 * doc/Makefile.in: Regenerate.
1241
1242 2001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
1243
1244 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
1245 SEC_NEVER_LOAD when the 'n' flag is used.
1246 Add SEC_NEVER_LOAD to matchflags.
1247
1248 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1249
1250 * symbols.c (decode_local_label_name): Initialize message_format
1251 only when an error is reported (perf pb due to I18N).
1252
1253 2001-02-23 H.J. Lu <hjl@gnu.org>
1254
1255 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
1256 BFD_ASSEMBLER is not defined.
1257
1258 2001-02-23 Richard Sandiford <rsandifo@redhat.com>
1259
1260 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
1261 done if it's against a symbol.
1262
1263 2001-02-22 Timothy Wall <twall@cygnus.com>
1264
1265 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
1266 target formats if applicable.
1267 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
1268 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
1269 * Makefile.in: Regenerated.
1270 * configure.in: Added configuration for ia64-*-aix*.
1271 * configure: Regenerated.
1272
1273 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1274
1275 * config/tc-ia64.c (enum operand_match_result): New type.
1276 (operand_match): Change return type to operand_match_result.
1277 Fix all returns appropriately, adding support for returning the
1278 out-of-range result.
1279 (parse_operands): New locals result, error_pos, out_of_range_pos,
1280 curr_out_of_range_pos. Rewrite operand matching loop to give better
1281 error messages.
1282
1283 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1284
1285 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
1286 (dot_proc): Clear unwind.prologue_count to zero.
1287 (dot_prologue): Increment unwind.prologue_count.
1288 (dot_restore): If second operand is omitted, use
1289 unwind.prologue_count -1 for "ecount" (# of additional regions to
1290 pop). Decrement unwind.prologue_count by number of regions
1291 popped.
1292
1293 2001-02-21 Nick Clifton <nickc@redhat.com>
1294
1295 * doc/as.texinfo (Section): Note that some flags to the COFF
1296 version of .section remove attributes rather than setting them.
1297
1298 2001-02-20 Kazu Hirata <kazu@hxi.com>
1299
1300 * config/tc-pdp11.c: Fix formatting.
1301 * config/tc-pdp11.h: Likewise.
1302
1303 2001-02-20 Bo Thorsen <bo@suse.de>
1304
1305 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
1306 entry.
1307
1308 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1309
1310 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
1311 all FreeBSD platforms should look the same at this level.
1312 * configure: Rebuilt.
1313 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
1314
1315 2001-02-18 lars brinkhoff <lars@nocrew.org>
1316
1317 * Makefile.am: Add PDP-11 target.
1318 * configure.in: Likewise.
1319 * config/tc-pdp11.c: New file.
1320 * config/tc-pdp11.h: New file.
1321 * doc/Makefile.am: Add PDP-11 documentation.
1322 * doc/all.texi: Likewise.
1323 * doc/as.texinfo: Likewise.
1324 * doc/c-pdp11.texi: New file.
1325
1326 2001-02-16 matthew green <mrg@redhat.com>
1327
1328 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
1329
1330 2001-02-13 Jim Wilson <wilson@redhat.com>
1331
1332 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
1333 reloc instead of a 0 reloc.
1334 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
1335 as done.
1336 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
1337
1338 2001-02-13 Ian Lance Taylor <ian@zembu.com>
1339
1340 * write.c (is_dnrange): Stop as soon as the address becomes
1341 larger.
1342 (relax_frag): Add segment parameter. Only call symbol_get_frag
1343 once. Only call is_dnrange if the symbol is in the same segment,
1344 and the symbol address is larger.
1345 (relax_segment): Pass segment to md_relax_frag and relax_frag.
1346 * write.h (relax_frag): Update declaration.
1347 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
1348 it to relax_frag.
1349 * config/tc-m32r.c (m32r_relax_frag): Likewise.
1350 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
1351 (m32r_relax_frag): Update declaration.
1352 * config/tc-mips.h (md_relax_frag): Add segment parameter.
1353 * config/tc-tic54x.h (md_relax_frag): Likewise.
1354 * doc/internals.texi (CPU backend): Update documentation for
1355 md_relax_frag.
1356
1357 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1358
1359 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
1360 Mention effect of < 386 architectures on jump promotion.
1361 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
1362
1363 * config/tc-i386.c (no_cond_jump_promotion): New.
1364 (set_cpu_arch): Parse "jumps" arch modifier.
1365 (insn_size): Modify usage comment.
1366 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
1367 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
1368 (TYPE_FROM_RELAX_STATE): New define.
1369 (UNCOND_JUMP, COND_JUMP): Renumber.
1370 (md_relax_table): Reorder to suit.
1371 (COND_JUMP86): New define.
1372 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
1373 (md_assemble): Create frag var for jumps of max size, encode relax
1374 state for COND_JUMP86.
1375 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
1376 leave conditional jumps small if no_cond_jump_promotion.
1377 (md_convert_frag): Likewise.
1378
1379 * expr.c (operator): Don't bump input_line_pointer for two char
1380 operators. Instead return operator size via new param num_chars.
1381 (expr): Use above to parse multi-char operators correctly.
1382
1383 Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
1384
1385 * config/tc-i386.c (i386_displacement): Fix handling of
1386 BFD_RELOC_X86_64_GOTPCREL.
1387 (i386_validate_fix): Likewise.
1388
1389 2001-02-12 Philip Blundell <pb@futuretv.com>
1390
1391 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
1392 ldrt/strt instructions.
1393
1394 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1395
1396 * config/tc-mips.c (macro): For M_LA_AB emit a
1397 BFD_RELOC_MIPS_CALL16 relocation or a
1398 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
1399 BFD_RELOC_MIPS_GOT16 and
1400 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
1401 loading the jump register when generating SVR4_PIC code.
1402
1403 2001-02-10 Chris Demetriou <cgd@broadcom.com>
1404
1405 * configure.in: Make 'mipself' and 'mipsecoff' emulations
1406 map to MIPS-specific files, as they used to do before the
1407 change on 2000-05-21.
1408 * configure: Regerate.
1409
1410 2001-02-10 Chris Demetriou <cgd@broadcom.com>
1411
1412 * config/tc-mips.c (md_parse_option): Don't try to compile
1413 ELF-only option code if not ELF.
1414
1415 2001-02-08 David Mosberger <davidm@hpl.hp.com>
1416
1417 * config/tc-ia64.h (md_elf_section_type): New macro.
1418 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
1419 (they're now handled via ia64_elf_section_type.
1420
1421 * config/tc-ia64.c (unwind): New members saved_text_seg,
1422 saved_text_subseg, and force_unwind_entry.
1423 (optimize_unw_records): New function to optimize away unnecessary
1424 unwind directives.
1425 (ia64_elf_section_type): New function.
1426 (output_unw_records): Generate unwind info only if the size is
1427 non-zero or if it's forced for some other reason (e.g.,
1428 handlerdata or a personality routine).
1429 (generate_unwind_image): Don't switch back to previous
1430 section---stay inside the unwind info section instead so that
1431 handlerdata that may follow goes into the right place.
1432 (dot_handlerdata): Force generation of unwind entry and save the
1433 current active text segment before generating unwind image.
1434 (dot_unwentry): Force generation of unwind entry.
1435 (dot_personality): Ditto.
1436 (dot_endp): Generate unwind table entry only if there is
1437 some unwind info or the unwind entry was forced.
1438
1439 * config/tc-ia64.c (make_unw_section_name): New macro to form
1440 unwind section name.
1441 (generate_unwind_image): Add "text_name" argument. Use it to
1442 form unwind section name.
1443 (dot_handlerdata): Determine current segment (section) name and
1444 pass it to generate_unwind_image().
1445 (dot_endp): Determine current segment (section) name and use
1446 it to determine the appropriate unwind section name.
1447 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
1448 n, fill, and max arguments.
1449
1450 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
1451
1452 * Makefile.am: Add linux target for S/390.
1453 * configure.in: Likewise.
1454 * config/tc-s390.c: New file.
1455 * config/tc-s390.h: New file.
1456
1457 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1458
1459 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
1460 2byte, 4byte and 8byte.
1461
1462 2001-02-08 Alan Modra <alan@linuxcare.com.au>
1463
1464 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
1465 md_number_to_chars with size > sizeof (valueT).
1466
1467 2001-02-06 H.J. Lu <hjl@gnu.org>
1468
1469 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
1470 there is no relocation.
1471
1472 2001-02-06 H.J. Lu <hjl@gnu.org>
1473
1474 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
1475
1476 * config/tc-ia64.c (md_parse_option): Only accept the valid
1477 ia64 options on "-axxx".
1478
1479 2001-02-05 Jim Wilson <wilson@redhat.com>
1480
1481 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
1482 aborting for invalid operands.
1483
1484 2001-02-06 Alan Modra <alan@linuxcare.com.au>
1485
1486 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
1487 than via pointer. Update all callers.
1488 (UNWIND_LOW32): Define.
1489 (UNWIND_HIGH32): Define.
1490 (pa_build_unwind_subspace): Use the above macros instead of dumping
1491 bitfields directly. Call frag_more once rather than multiple times.
1492 (md_assemble): Use UNWIND_LOW32.
1493 (pa_entry): Likewise
1494 (pa_procend): Likewise.
1495 (process_exit): Use UNWIND_HIGH32.
1496
1497 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1498
1499 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
1500 function to select the header according to the cpu.
1501 (md_after_pass_hook, md_do_align): Remove.
1502 (md_cleanup, m68hc11_cleanup): Remove.
1503 (md_pcrel_from_section): Declare.
1504 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
1505 (build_jump_insn, build_insn): Likewise.
1506 (m68hc11_listing_header): New function.
1507 (m68hc11_cleanup): Remove.
1508
1509 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1510
1511 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
1512 symbols because there is no support for shared libraries and these
1513 symbols can't be overridden (unless they are weak).
1514
1515 2001-02-01 Momchil Velikov <velco@fadata.bg>
1516
1517 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
1518 for the compilation unit with a zero byte.
1519
1520 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1521
1522 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
1523 destinations. Correct range check for 17 and 22 bit branches.
1524
1525 2001-01-25 Nick Clifton <nickc@redhat.com>
1526
1527 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
1528 still set. Issue an error message instead.
1529 (md_estimate_size_before_relax): Delete unused variable
1530 'buffer_address'. Fixup parentheses around if statement.
1531
1532 2001-01-23 Kazu Hirata <kazu@hxi.com>
1533
1534 * as.c: Fix formatting.
1535 * ehopt.c: Likewise.
1536 * messages.c: Likewise.
1537 * stabs.c: Likewise.
1538 * symbols.c: Likewise.
1539
1540 2001-01-23 Ben Elliston <bje@redhat.com>
1541
1542 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
1543
1544 2001-01-22 Kazu Hirata <kazu@hxi.com>
1545
1546 * config/tc-alpha.c: Fix formatting.
1547
1548 2001-01-19 Kazu Hirata <kazu@hxi.com>
1549
1550 * config/tc-alpha.c: Fix formatting.
1551
1552 2001-01-18 Kazu Hirata <kazu@hxi.com>
1553
1554 * config/tc-alpha.c: Fix formatting.
1555
1556 2001-01-18 Nick Clifton <nickc@redhat.com>
1557
1558 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
1559 "da" flags.
1560 (stm_flags): Remove redundant bit from "ed" and "da" flags.
1561
1562 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
1563
1564 * configure.in (cpu_type, arch): Match i386 too.
1565 * configure: Rebuilt.
1566
1567 2001-01-16 Kazu Hirata <kazu@hxi.com>
1568
1569 * config/tc-i386.c: Fix formatting.
1570
1571 2001-01-16 Alan Modra <alan@linuxcare.com.au>
1572
1573 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
1574 relocs for .PARISC.unwind section.
1575
1576 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
1577 depending on section flags, not just for .text.
1578
1579 2001-01-15 Jim Wilson <wilson@redhat.com>
1580
1581 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
1582 not immediately followed by an instruction.
1583
1584 2001-01-15 Kazu Hirata <kazu@hxi.com>
1585
1586 * config/tc-m68hc11.c: Fix formatting.
1587
1588 2001-01-15 Nick Clifton <nickc@redhat.com>
1589
1590 * symbols.c (colon): Change 'already defined symbol' from a
1591 fatal error to an ordinary error. There is no reason why this
1592 error should be fatal.
1593
1594 * message.c (as_fatal): Delete output file, if one has been
1595 created.
1596
1597 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1598
1599 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
1600
1601 2001-01-14 Kazu Hirata <kazu@hxi.com>
1602
1603 * config/tc-alpha.c: Fix formatting.
1604 * config/tc-arc.c: Likewise.
1605 * config/tc-arc.h: Likewise.
1606 * config/tc-d10v.c: Likewise.
1607 * config/tc-i370.c: Likewise.
1608 * config/tc-i386.c: Likewise.
1609 * config/tc-i960.c: Likewise.
1610 * config/tc-m68k.c: Likewise.
1611 * config/tc-ppc.c: Likewise.
1612 * config/tc-sparc.c: Likewise.
1613 * config/tc-tahoe.c: Likewise.
1614 * config/tc-vax.c: Likewise.
1615
1616 * config/tc-arc.c: Fix formatting.
1617
1618 * config/tc-arc.c: Fix formatting.
1619
1620 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1621
1622 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
1623 both 32 and 64 bit ELF.
1624
1625 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
1626 and don't bother storing `m' for "ce" completer. Tidy handling of
1627 'J' and 'K' operands to suit. Handle '<' and '>' operands.
1628
1629 Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
1630
1631 * config/tc-i386.h (TARGET_MACH): New macro.
1632 (i386_mach): Declare.
1633 * config/tc-i386.c (i386_mach): New function.
1634
1635 2001-01-13 Philip Blundell <philb@gnu.org>
1636
1637 * doc/as.texinfo: Fix spelling and cross-references.
1638
1639 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
1640 character for all systems, not just GNU/Linux. Make it explicit
1641 that `-k' doesn't affect code generation, just ELF flags.
1642
1643 Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
1644
1645 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
1646 instructions.
1647
1648 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
1649
1650 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
1651
1652 2001-01-12 Nick Clifton <nickc@redhat.com>
1653
1654 * as.c (print_args): Update copyright date to 2001.
1655
1656 2001-01-12 Peter Targett <peter.targett@arccores.com>
1657
1658 * doc/c-arc.texi: New file.
1659 Some sections to be expanded.
1660
1661 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1662
1663 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
1664 (md_parse_option): Always accept "--32".
1665
1666 2001-01-11 Peter Targett <peter.targett@arccores.com>
1667
1668 * as.h (TC_ARC): Ensure struc-symbol.h included.
1669 * as.c (dwarf2dbg.h): Include to remove implicit declaration
1670 warnings.
1671 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
1672 (TARGET_SYMBOL_FIELDS) added.
1673
1674 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
1675 * doc/c-arc.texi: New file.
1676 Some sections to be expanded.
1677 * doc/as.texinfo: Update command-line options.
1678 Removed outdated text for ARC dependant features, instead include
1679 text from above file.
1680
1681 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
1682 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
1683 (targ-cpu.h) header.
1684 * config/tc-arc.h:
1685 * config/tc-arc.c: New updated configuration for
1686 ARC, including selection of core variants, and extensibility of
1687 instructions, registers etc. through directives.
1688
1689 * config/tc-arc.c (arc_extinst): Minor corrections for
1690 error messages.
1691 (arc_common) Likewise. Make alignment argument optional for local
1692 symbols also, with default of zero.
1693
1694 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1695
1696 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
1697 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
1698 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
1699 and fix_new_exp() instead.
1700 (md_convert_frag): For indexed post byte use the symbol value
1701 rather than the displacement.
1702 (md_relax_table): Fix indexed offset relax.
1703
1704 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1705
1706 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
1707 relax weak symbols.
1708 (relaxable_symbol): New function.
1709
1710 2001-01-11 Andreas Jaeger <aj@suse.de>
1711
1712 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
1713 not used anywhere.
1714
1715 2001-01-10 Nick Clifton <nickc@redhat.com>
1716
1717 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
1718 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
1719
1720 2001-01-10 Nick Clifton <nickc@redhat.com>
1721
1722 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
1723 character used to dollar local symbols.
1724 (LOCAL_LABEL_CHAR): New constant - the magic character used to
1725 local label symbols.
1726 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
1727 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
1728 if defined.
1729 Use LOCAL_LABEL_CHAR.
1730 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
1731 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
1732 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
1733
1734 2001-01-08 Bo Thorsen <bo@suse.de>
1735
1736 * config/tc-i386.c (i386_immediate, i386_displacement):
1737 GOTPCREL check fix.
1738
1739 2001-01-07 Ian Lance Taylor <ian@zembu.com>
1740
1741 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
1742 in last change.
1743
1744 2001-01-07 Philip Blundell <philb@gnu.org>
1745
1746 * doc/as.texinfo (Bug Reporting): Update email address for
1747 reports.
1748 * README: Likewise.
1749
1750 Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
1751
1752 * configure.in: Define DEFAULT_ARCH for i386.
1753 * config/tc-i386.c (md_assemble): Return after the error message;
1754 move testing for 64bit operands to proper place.
1755
1756 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
1757
1758 * doc/as.texinfo: Document '#' as comment character for i386 and
1759 x86_64. Add AMD x86-64 into menu of machine dependent information.
1760
1761 * doc/c-i386.texi: Document x86_64 extensions.
1762
1763 Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
1764
1765 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
1766
1767 Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
1768
1769 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
1770 * NEWS: Add note about Pentium4 support.
1771
1772 Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
1773
1774 * config/tc-i387.c (pi, pte, pt): Update.
1775 (type_names): Add new types.
1776
1777 Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
1778
1779 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
1780 CpuUnknown): Renumber
1781 (CpuP4, CpuSSE2): New.
1782 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
1783
1784 2001-01-03 Philip Blundell <pb@futuretv.com>
1785
1786 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
1787 relocs.
1788 (alpha_fix_adjustable): Likewise.
1789 (md_apply_fix): Likewise.
1790
1791 2000-12-31 H.J. Lu <hjl@gnu.org>
1792
1793 * listing.c (listing_message): Allocate string only if it is
1794 used.
1795
1796 * configure: Rebuild.
1797
1798 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
1799
1800 * doc/internals.texi (Relaxing with a table) <after relaxation>:
1801 Point out caveats with generating fixups for the opcode in a frag.
1802
1803 Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
1804
1805 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
1806 * NEWS: Add x86_64.
1807
1808 2000-12-29 H.J. Lu <hjl@gnu.org>
1809
1810 * listing.c (calc_hex): Print the variable part only if the
1811 fragment type is rs_fill.
1812
1813 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1814
1815 * doc/internals.texi (tc_conditional_pseudoop,
1816 TC_LINKRELAX_FIXUP): Fix typos.
1817
1818 2000-12-28 Richard Henderson <rth@redhat.com>
1819
1820 * write.c (subsegs_finish): Fix thinko last change -- don't
1821 "optimize" the alignment == 0 case.
1822
1823 2000-12-28 Richard Henderson <rth@redhat.com>
1824
1825 * as.h (rs_align_test): New.
1826 * frags.c (NOP_OPCODE): Move default from read.c.
1827 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
1828 (frag_align_code): New.
1829 * frags.h (frag_align_code): Declare.
1830 * read.c (NOP_OPCODE): Remove.
1831 (do_align): Use frag_align_code.
1832 * write.c (NOP_OPCODE): Remove.
1833 (get_recorded_alignment): New.
1834 (cvt_frag_to_fill): Handle rs_align_test.
1835 (relax_segment): Likewise.
1836 (subsegs_finish): Align last subseg in section to the
1837 section alignment. Use frag_align_code.
1838 * write.h (get_recorded_alignment): Declare.
1839 * config/obj-coff.c (size_section): Handle rs_align_test.
1840 (fill_section, fixup_mdeps): Likewise.
1841 (write_object_file): Use frag_align_code.
1842
1843 * config/tc-alpha.c (alpha_align): Use frag_align_code.
1844 (alpha_handle_align): New.
1845 * config/tc-alpha.h (HANDLE_ALIGN): New.
1846 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
1847
1848 * config/tc-i386.h (md_do_align): Use frag_align_code.
1849 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
1850
1851 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
1852 (ia64_handle_align): New.
1853 * config/tc-ia64.h (HANDLE_ALIGN): New.
1854 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
1855
1856 * config/tc-m32r.c (m32r_do_align): Remove.
1857 (m32r_handle_align): New.
1858 (fill_insn): Use frag_align_code.
1859 * config/tc-m32r.h (md_do_align): Remove.
1860 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
1861 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
1862 * config/tc-mips.c, config/tc-mips.h: Similarly.
1863
1864 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
1865 (sh_handle_align): Likewise. Handle rs_align_code.
1866 (sh_do_align): Remove.
1867 * config/tc-sh.h (md_do_align): Remove.
1868 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
1869
1870 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
1871 (sparc_handle_align): Likewise. Handle rs_align_code.
1872 * config/tc-sparc.h (md_do_align): Remove.
1873 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
1874
1875 2000-12-22 DJ Delorie <dj@redhat.com>
1876
1877 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
1878 when we assemble the first half of a pair.
1879
1880 2000-12-22 H.J. Lu <hjl@gnu.org>
1881
1882 * config/tc-i386.c (reloc): Update the macro for non-bfd
1883 assembler.
1884 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
1885
1886 2000-12-22 H.J. Lu <hjl@gnu.org>
1887
1888 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
1889
1890 Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
1891
1892 * config/tc-i386.h (i386_target_format): Define even for ELFs.
1893 (QWORD_MNEM_SUFFIX): New macro.
1894 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
1895 New macros
1896 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
1897 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
1898 ImmExt): Renumber.
1899 (Size64, No_qSuf, NoRex64, Rex64): New macros.
1900 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
1901 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
1902 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
1903 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
1904 Renumber.
1905 (Reg, WordReg): Add Reg64.
1906 (Imm): Add Imm32S and Imm64.
1907 (EncImm): New.
1908 (Disp): Add Disp64 and Disp32S.
1909 (AnyMem): Add Disp32S.
1910 (RegRex, RegRex64): New macros.
1911 (rex_byte): New type.
1912 * config/tc-i386.c (set_16bit_code_flag): Kill.
1913 (fits_in_unsigned_long, fits_in_signed_long): New functions.
1914 (reloc): New parameter "signed"; support x86_64.
1915 (set_code_flag): New.
1916 (DEFAULT_ARCH): New macro; default to "i386".
1917 (default_arch): New static variable.
1918 (struct _i386_insn): New fields Operand_PCrel; rex.
1919 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
1920 (flag_code): New enum and static variable.
1921 (use_rela_relocations): New static variable.
1922 (flag_code_names): New static variable.
1923 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
1924 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
1925 K6 and Athlon.
1926 (i386_align_code): Return plain "nop" for x86_64.
1927 (mode_from_disp_size): Support Disp32S.
1928 (smallest_imm_type): Support Imm32S and Imm64.
1929 (offset_in_range): Support size of 8.
1930 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
1931 (md_pseudo_table): Add "code64"; use set_code_flat.
1932 (md_begin): Emit sane error message on hash failure.
1933 (tc_i386_fix_adjustable): Support x86_64 relocations.
1934 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
1935 instructions supported on particular arch just partially,
1936 output of 64bit immediates, handling of Imm32S and Disp32S type.
1937 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
1938 (i386_displacement): Likewise.
1939 (i386_index_check): Cleanup; support 64bit addresses.
1940 (md_apply_fix3): Support x86_64 relocation and rela.
1941 (md_longopts): Add "32" and "64".
1942 (md_parse_option): Add OPTION_32 and OPTION_64.
1943 (i386_target_format): Call even for ELFs; choose between
1944 elf64-x86-64 and elf32-i386.
1945 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
1946 (tc_gen_reloc): Support rela relocations and x86_64.
1947 (intel_e09_1): Support QWORD.
1948
1949 2000-12-15 Diego Novillo <dnovillo@redhat.com>
1950
1951 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
1952 it's not an offset expression.
1953 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
1954 keep the braces '[' and ']' in the output string.
1955 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
1956 != FLAT. There is no such op_modifier.
1957
1958 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1959
1960 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
1961 if we have it.
1962
1963 2000-12-13 Kazu Hirata <kazu@hxi.com>
1964
1965 * as.h: Fix formatting.
1966 * cgen.h: Likewise.
1967 * dwarf2dbg.c: Likewise.
1968 * input-scrub.c: Likewise.
1969 * read.h: Likewise.
1970
1971 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
1972
1973 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
1974 configure: Regenerate.
1975
1976 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1977
1978 * dwarf2dbg.c: #include <limits.h> only if it exists.
1979
1980 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
1981
1982 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
1983 (md_apply_fix): Here too.
1984
1985 2000-12-12 Jim Wilson <wilson@redhat.com>
1986
1987 * config/tc-ia64.h (ia64_init): Add prototype.
1988
1989 2000-12-12 H.J. Lu <hjl@gnu.org>
1990
1991 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
1992
1993 * read.h (outputting_stabs_line_debug): Change it to int.
1994 * stabs.c (outputting_stabs_line_debug): Likewise.
1995
1996 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1997
1998 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
1999 the address of a function result.
2000
2001 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2002
2003 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
2004 (md_assemble): Call dwarf2_emit_insn.
2005 (shlib): Fix typo SHILB -> SHLIB.
2006 (md_parse_option): Likewise.
2007 (ppc_elf_validate_fix): Likewise:
2008 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2009
2010 2000-12-12 Nick Clifton <nickc@redhat.com>
2011
2012 * cgen.h: Fix formatting.
2013 * input-scrub.c: Fix formatting.
2014 * macro.c: Fix formatting.
2015 * config/tc-mips.c: Fix formatting.
2016 * doc/c-mips.texi: Fix formatting.
2017
2018 Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
2019
2020 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
2021 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
2022 references.
2023 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
2024 otherwise.
2025 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
2026 (No_dSuf): Kill.
2027
2028 * i386.h (*_Suf): Remove No_dSuf.
2029 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
2030 Remove.
2031 (i386_optab): Remove 'd' in the suffixes.
2032
2033 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2034
2035 * config/tc-i386.c (T_SHORT): Undefine before defining.
2036
2037 2000-12-05 Kazu Hirata <kazu@hxi.com>
2038
2039 * config/tc-mips.c: Fix formatting.
2040
2041 2000-12-04 Matthew Hiller <hiller@redhat.com>
2042
2043 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
2044 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
2045 (md_show_usage): Ditto.
2046 (md_parse_option): Ditto.
2047 (d10v_cleanup): Writes pending instruction only if
2048 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
2049 Fix compile time warning messages.
2050
2051 * doc/c-d10v.texi: Documents new options.
2052
2053 2000-12-04 Matthew Hiller <hiller@redhat.com>
2054
2055 * stabs.c (outputting_stabs_line_debug): New variable.
2056 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
2057 function entry and unset at function exit.
2058
2059 * read.h (outputting_stabs_line_debug): New extern declaration.
2060
2061 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
2062
2063 * dwarf2dbg.c: Fix compile time warning messages.
2064
2065 2000-12-03 Kazu Hirata <kazu@hxi.com>
2066
2067 * config/tc-a29k.c: Fix formatting.
2068 * config/tc-alpha.c: Likewise.
2069 * config/tc-arm.c: Likewise.
2070 * config/tc-cris.c: Likewise.
2071 * config/tc-hppa.c: Likewise.
2072 * config/tc-i370.c: Likewise.
2073 * config/tc-i386.c: Likewise.
2074 * config/tc-i860.c: Likewise.
2075 * config/tc-i960.c: Likewise.
2076 * config/tc-ia64.c: Likewise.
2077 * config/tc-m68hc11.c: Likewise.
2078 * config/tc-m68k.c: Likewise.
2079 * config/tc-m88k.c: Likewise.
2080 * config/tc-pj.c: Likewise.
2081 * config/tc-ppc.c: Likewise.
2082 * config/tc-sh.c: Likewise.
2083 * config/tc-sparc.c: Likewise.
2084 * config/tc-tahoe.c: Likewise.
2085 * config/tc-vax.c: Likewise.
2086
2087 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2088
2089 * config/tc-mips.c (mips_ip): When calculating offsets,
2090 don't accept as constant the difference between the
2091 addresses of symbols in two different sections.
2092
2093 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
2094 specifiers.
2095 (validate_mips_insn): Likewise. Also, update 'B' operand
2096 specifier to use OP_*_CODE20 constants and delete 'm' operand
2097 specifier.
2098 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
2099 operand specifiers. Change warning generated by 'B' operand
2100 specifier to reflect its new multi-purpose usage.
2101
2102 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
2103 -1, and update comment.
2104 (file_mips_isa): Likewise.
2105 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
2106 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
2107 ISA_* constants rather than hard-coded numbers.
2108 (mips_cpu_info): New structure.
2109 (mips_cpu_info_table): New table describing CPU and ISA names
2110 and numbers.
2111 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
2112 mips_cpu_info_from_cpu): New functions.
2113 (mips_isa_to_str): New function to get string for ISA name.
2114 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
2115 return const char *.
2116 (md_begin): Redo CPU and ISA selection logic, using
2117 mips_cpu_info_from_*. Convert to use ISA_* constants rather
2118 than hard-coded numbers.
2119 (append_insn, mips_emit_delays, macro, macro2): Convert to use
2120 ISA_* constants rather than hard-coded numbers.
2121 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
2122 (md_longopts): Delete OPTION_NO_MIPS32.
2123 (md_parse_option): Convert to use ISA_* constants rather than
2124 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
2125 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
2126 to use strcasecmp to recognize "default" and to use
2127 mips_cpu_info_from_name to get CPU numbers from argument.
2128 (md_show_usage): Move -mips32 so it's with the rest of the ISA
2129 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
2130 mips32-4k.
2131 (s_mipsset): Accept ISA value 32.
2132 * doc/as.texinfo: Clean up MIPS options summary slightly,
2133 remove -no-mips32. Add note about -mips4 and -mips32
2134 specifying those ISA levels. Delete -mips32 and -no-mips32
2135 cpu flag descriptions.
2136 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
2137 up the supported CPU switch list, and replace 4Kc, 4Km, and
2138 4Kp entries with a single mips32-4k entry. Note that you can
2139 use ".set mips32".
2140
2141 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
2142 ISA_MIPS64.
2143 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
2144 -mips5 and -mips64.
2145 (md_parse_option): Add cases for OPTION_MIPS5 and
2146 OPTION_MIPS64.
2147 (md_show_usage): Mention -mips5 and -mips64 arguments.
2148 (s_mipsset): Add cases for MIPS5 and MIPS64.
2149 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
2150 and pseudo-CPUs.
2151 * doc/as.texinfo: Mention -mips5 and -mips64 options
2152 and their meanings.
2153 * doc/c-mips.texi: Likewise. Also update introduction
2154 and ".set" usage information.
2155
2156 * config/tc-mips.c (md_show_usage): Add "sb1" to the
2157 CPU list.
2158 (mips_cpu_info_table): Add SB-1 entries.
2159 * doc/c-mips.texi: Add "sb1" to the list of CPUs
2160 known to the -mcpu option.
2161
2162 * doc/as.texinfo: Correct description of MIPS -mcpu
2163 option, by copying some of the text from doc/c-mips.texi.
2164
2165 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2166
2167 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2168 New targets.
2169 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2170 (sparc*-*-rtems*): Switched from a.out to ELF.
2171 * configure: Regenerate.
2172 * config.in: Regenerate.
2173 * Makefile.in: Regenerate.
2174 * aclocal.m4: Regenerate.
2175 * po/gas.pot: Regenerate.
2176
2177 2000-11-30 Philip Blundell <pb@futuretv.com>
2178
2179 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
2180 even in non BFD_ASSEMBLER case.
2181
2182 2000-11-30 Diego Novillo <dnovillo@redhat.com>
2183
2184 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
2185 syntax.
2186
2187 2000-11-29 Richard Henderson <rth@redhat.com>
2188
2189 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
2190 until dwarf2_finish; use relaxation to get cross-fragment offsets;
2191 thread multiple subsegments properly; handle multiple code
2192 sections properly; emit proper compilation unit info for assembler
2193 generated debugging.
2194
2195 * as.h (enum _relax_state): Add rs_dwarf2dbg.
2196 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
2197 (dwarf2dbg_estimate_size_before_relax): Declare.
2198 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
2199 * write.c: Include dwarf2dbg.h.
2200 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
2201 (relax_segment): Likewise.
2202
2203 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
2204
2205 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
2206 jump>: Use as_bad_where instead of as_bad. Tweak error message
2207 accordingly. Stabilize frag by updating fix part and resetting
2208 variant part.
2209 <undefined symbol, unconditional jump>: Ditto.
2210 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
2211 indexing is_end_of_line[].
2212 (md_assemble): Initialize size to 0.
2213 (md_section_align): Mark parameter seg as unused.
2214 (parse_reg): Parse names case-insensitively.
2215
2216 2000-11-28 Kazu Hirata <kazu@hxi.com>
2217
2218 * config/obj-aout.h: Fix formatting.
2219 * config/obj-bout.h: Likewise.
2220 * config/obj-coff.c: Likewise.
2221 * config/obj-coff.h: Likewise.
2222 * config/obj-elf.h: Likewise.
2223 * config/obj-som.h: Likewise.
2224 * config/obj-vms.c: Likewise.
2225 * config/obj-vms.h: Likewise.
2226 * config/tc-h8300.h: Likewise.
2227 * config/tc-ns32k.h: Likewise.
2228 * config/tc-sparc.h: Likewise.
2229 * config/tc-tic54x.h: Likewise.
2230 * config/tc-z8k.h: Likewise.
2231
2232 2000-11-28 Nick Clifton <nickc@redhat.com>
2233
2234 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
2235 License is present in the sources, but not the output, and
2236 also available from the GNU website.
2237 (GNU Free Documentation License): Comment out this section.
2238
2239 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
2240
2241 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
2242 targets. Remove i860 from valid a.out targets.
2243 * Makefile.in: Regenerate.
2244
2245 * config/tc-cris.c: Include dwarf2dbg.h.
2246 (md_pseudo_table): Add .file and .loc.
2247 (md_assemble): Call dwarf2_emit_insn if generating ELF.
2248 (s_cris_file, s_cris_loc): New.
2249 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2250 * Makefile.am: Regenerate dependencies.
2251 * Makefile.in: Regenerate.
2252
2253 2000-11-28 Alan Modra <alan@linuxcare.com.au>
2254
2255 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
2256 (MRI_MUL_PRECEDENCE): Likewise.
2257 (op_rank): Fix a comment typo.
2258
2259 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2260
2261 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
2262 the error message.
2263 (get_operand): Fix analysis for movw/movb instructions.
2264
2265 2000-11-24 Nick Clifton <nickc@redhat.com>
2266
2267 * configure.in (xscale-elf): Add target.
2268 (xscale-coff): Add target.
2269 * configure: Regenerate.
2270
2271 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
2272 extenstion.
2273 (ARM_EXT_XSCALE): New ARM architecture extension.
2274 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
2275 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
2276 (ARM_THUMB): Rename to ARM_EXT_THUMB.
2277 (ARM_ARCH_V4): Remove processor from architecture.
2278 (ARM_ARCH_3M): New architecutre definition.
2279 (ARM_ARCH_V5TE): New architecutre definition.
2280 (ARM_ARCH_XSCALE): New architecutre definition.
2281 (CPU_DEFAULT): Allow to be defaulted to XScale.
2282 (atpcs): New boolean variable.
2283 (ldr_flags): Support 'd' flag for double word loads.
2284 (str_flags): Support 'd' flag for double word stored.
2285 (do_mia): New function.
2286 (do_mar): New function.
2287 (do_mra): New function.
2288 (do_pld): New function.
2289 (do_ldrd): New function.
2290 (do_blx): New function.
2291 (do_bkpt): New function.
2292 (do_clz): New function.
2293 (do_lstc2): New function.
2294 (do_cdp2): New function.
2295 (do_t_blx): New function.
2296 (do_t_bkpt): New function.
2297 (do_smla): New function.
2298 (do_smlal): New function.
2299 (do_smul): New function.
2300 (do_qadd): New function.
2301 (do_co_reg2c): New function.
2302 (LONGEST_INSN): Redefine to 7.
2303
2304 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
2305 command line switches.
2306
2307 2000-11-22 Jim Wilson <wilson@redhat.com>
2308
2309 * config/tc-ia64.c (pseudo_func): Add missing initializers.
2310 (struct rsrc): Make line unsigned.
2311 (gr_values): Add missing initializer.
2312 (SLOT_NUM_NOT_SET): Add unsigned cast.
2313 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
2314 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
2315 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
2316 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
2317 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
2318 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
2319 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
2320 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
2321 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
2322 Add ATTRIBUTE_UNUSED to unused parameters.
2323 (convert_expr_to_ab_reg): Add parens.
2324 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
2325 (dot_prologue): Initialize grsave when declared.
2326 (md_pseudo_table): Add missing initializers.
2327 (operand_match): Add casts to bfd_vma.
2328 (emit_one_bundle): Delete unused local prev. Make required_template
2329 unsigned.
2330 (specify_resource): Cast i to unsigned.
2331 (note_register_values): Use fprintf_vma.
2332 (print_dependency): Likewise.
2333
2334 2000-11-21 Jim Wilson <wilson@redhat.com>
2335
2336 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
2337 for unwind info section.
2338 (dot_endp): Likewise for unwind section.
2339
2340 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
2341 fix_new_exp.
2342
2343 2000-11-21 Jakub Jelinek <jakub@redhat.com>
2344
2345 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
2346 (output_insn): Call dwarf2_emit_insn.
2347 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2348
2349 2000-11-17 Richard Henderson <rth@redhat.com>
2350
2351 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
2352 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
2353 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
2354
2355 2000-11-17 Nick Clifton <nickc@redhat.com>
2356
2357 * config/tc-arm.c (md_pseudo_table): Add support for .line and
2358 .file pseudo ops.
2359
2360 2000-11-17 Richard Henderson <rth@redhat.com>
2361
2362 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
2363
2364 2000-11-17 Richard Henderson <rth@redhat.com>
2365
2366 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
2367 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
2368 tri-state definition of alpha_flag_mdebug.
2369 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
2370 (s_alpha_file): Store first .file directive.
2371 (s_alpha_stab): New.
2372 (md_pseudo_table): Add stabs and stabn.
2373
2374 2000-11-17 Richard Henderson <rth@redhat.com>
2375
2376 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
2377
2378 2000-11-17 Richard Henderson <rth@redhat.com>
2379
2380 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
2381 (main): Call dwarf2_finish.
2382 * as.h (debug_type): Clarify documentation of the meaning
2383 of this variable.
2384 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
2385 (print_stats): Fix parenthesis problem.
2386 (now_subseg_size): New.
2387 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
2388 (dwarf2_directive_file): Don't set debug_type.
2389 (dwarf2_where): Honor DEBUG_DWARF2 first.
2390 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
2391 do nothing if not emitting dwarf2 debug info, or no work.
2392 * dwarf2dbg.h (dwarf2_emit_insn): Update.
2393 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
2394 (ecoff_new_file): Likewise.
2395 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
2396 commentary wrt dwarf2.
2397
2398 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
2399 ATTRIBUTE_UNUSED as needed.
2400 (emit_insn): Call dwarf2_emit_insn.
2401 (s_alpha_file): New.
2402 (s_alpha_loc): New.
2403 (s_alpha_coff_wrapper): Don't handle them.
2404 (md_pseudo_table): Update for .file and .loc.
2405 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2406
2407 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
2408 don't protect with debug_type.
2409 * config/tc-hppa.c (md_assemble): Likewise.
2410 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
2411 * config/tc-mn10300.c (md_assemble): Likewise.
2412 * config/tc-sh.c (md_assemble): Likewise.
2413 * config/tc-v850.c (md_assemble): Likewise.
2414
2415 * config/tc-arm.c (arm_end_of_source): Remove.
2416 * config/tc-hppa.c (pa_end_of_source): Remove.
2417 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
2418 * config/tc-mn10300.c (mn10300_finalize): Remove.
2419 * config/tc-sh.c (sh_finalize): Remove.
2420 * config/tc-v850.c (sh_finalize): Remove.
2421
2422 * config/tc-arm.h (md_end): Remove.
2423 * config/tc-hppa.h (md_end): Remove.
2424 (DWARF2_LINE_MIN_INSN_LENGTH): New.
2425 * config/tc-m68hc11.h (md_end): Remove.
2426 * config/tc-mn10300.h (md_end): Remove.
2427 * config/tc-sh.h (md_end): Remove.
2428 * config/tc-v850.h (md_end): Remove.
2429
2430 * config/tc-ia64.c (emit_one_bundle): Don't protect
2431 dwarf2 bits with debug_type.
2432 (md_assemble): Likewise.
2433 (ia64_end_of_source): Don't call dwarf2_finish.
2434
2435 2000-11-16 Jim Wilson <wilson@redhat.com>
2436
2437 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
2438 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
2439 > 16.
2440
2441 2000-11-16 H.J. Lu <hjl@gnu.org>
2442
2443 * config/obj-elf.c (obj_elf_symver): Don't check the missing
2444 version name.
2445
2446 2000-11-15 Kazu Hirata <kazu@hxi.com>
2447
2448 * config/tc-tic30.c: Fix formatting.
2449 * config/tc-tic80.c: Likewise.
2450 * config/tc-v850.c: Likewise.
2451 * config/tc-vax.c: Likewise.
2452 * config/tc-w65.c: Likewise.
2453 * config/tc-z8k.c: Likewise.
2454
2455 2000-11-14 DJ Delorie <dj@redhat.com>
2456
2457 * config/tc-v850.c: Support dwarf2.
2458 * config/tc-v850.h: Ditto.
2459
2460 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
2461 parse_cons_expression_v850 to initialize hold_cons_reloc.
2462
2463 2000-11-15 Bernd Schmidt <bernds@redhat.com>
2464
2465 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
2466 (errata_nops_necessary_p): New function.
2467 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
2468 md.
2469
2470 2000-11-14 Jim Wilson <wilson@redhat.com>
2471
2472 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
2473 return little endian bfd formats.
2474
2475 2000-11-14 Kazu Hirata <kazu@hxi.com>
2476
2477 * config/aout_gnu.h: Fix formatting.
2478 * config/atof-vax.c: Likewise.
2479 * config/m68k-parse.h: Likewise.
2480 * config/m88k-opcode.h: Likewise.
2481 * config/obj-elf.c: Likewise.
2482 * config/tc-arm.c: Likewise.
2483 * config/tc-cris.c: Likewise.
2484 * config/tc-i386.c: Likewise.
2485 * config/tc-ia64.c: Likewise.
2486 * config/tc-mn10300.c: Likewise.
2487 * config/te-386bsd.h: Likewise.
2488 * config/te-hppa.h: Likewise.
2489 * config/te-nbsd.h: Likewise.
2490 * config/te-ppcnw.h: Likewise.
2491 * config/te-sparcaout.h: Likewise.
2492 * config/te-tmips.h: Likewise.
2493 * config/vax-inst.h: Likewise.
2494 * config/vms-conf.h: Likewise.
2495
2496 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2497
2498 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
2499
2500 2000-11-13 H.J. Lu <hjl@gnu.org>
2501
2502 * config/obj-elf.c (elf_frob_symbol): Support
2503 ".symver name,name2@@@nodename".
2504 (elf_frob_file_before_adjust): Likewise.
2505
2506 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
2507 and ".symver name,name2@@@nodename".
2508 Fix a typo.
2509
2510 2000-11-12 H.J. Lu (hjl@gnu.org)
2511
2512 * config/obj-elf.c (obj_elf_symver): Check missing version
2513 name.
2514
2515 2000-11-12 H.J. Lu (hjl@gnu.org)
2516
2517 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
2518 instead of bfd_vma for non-bfd assemblers.
2519
2520 2000-11-09 Kazu Hirata <kazu@hxi.com>
2521
2522 * itbl-ops.c: Fix comment typos.
2523
2524 2000-11-08 Jim Wilson <wilson@redhat.com>
2525
2526 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
2527 (struct unwind): Add next_slot_frag field.
2528 (slot_index): New parameters slot_frag and first_frag. Add code
2529 to add in frag sizes when different. Add comments.
2530 (fixup_unw_records): New locals first_frag and last_frag. Pass new
2531 arguments to slot_index.
2532 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
2533 loop end. Set next_slot_frag field.
2534
2535 2000-11-07 H.J. Lu <hjl@gnu.org>
2536
2537 * doc/as.texinfo (.symver): Updated for versioned symbol
2538 reference.
2539
2540 * obj.h (format_ops): Add the frob_file_before_adjust field.
2541
2542 * config/obj-aout.c (aout_format_ops): Set the
2543 frob_file_before_adjust field to 0.
2544 * config/obj-coff.c (coff_format_ops): Likewise.
2545 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
2546
2547 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
2548 name.
2549 (elf_frob_file_before_adjust): New function to remove unneeded
2550 versioned symbols from the symbol table.
2551 (elf_format_ops): Set the frob_file_before_adjust field to
2552 elf_frob_file_before_adjust.
2553
2554 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
2555 not defined.
2556
2557 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
2558
2559 2000-11-07 Peter Targett <peter.targett@arccores.com>
2560
2561 * gas/config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
2562 BIG_ENDIAN macros.
2563 * gas/config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
2564 Fix compile time warning messages.
2565
2566 2000-11-07 Nick Clifton <nickc@redhat.com>
2567
2568 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
2569 buffer in order to avoid buffer overflows.
2570
2571 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2572
2573 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
2574 Change M to m for -milp32 or -mlp64 to match gcc.
2575 (dot_endp): Use bytes_per_address instead of 8.
2576 (emit_one_bundle): Use number_to_chars_littleendian instead of
2577 md_number_to_chars.
2578 (fix_insn): Likewise.
2579 (ia64_init): New function.
2580 (ia64_target_format): New function.
2581 (md_begin): Set endianness, arch, and machine as appropriate.
2582 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
2583 Make these macros depend on TE_HPUX macro.
2584 (TARGET_FORMAT): Define.
2585 (HOST_SPECIAL_INIT): Define.
2586 * config/te-hpux.h: New file.
2587 * configure.in: Add "ia64-*-hpux*" target to configure.
2588 * configure: Regenerate.
2589
2590 2000-11-06 Kazu Hirata <kazu@hxi.com>
2591
2592 * as.c: Fix formatting.
2593 * dwarf2dbg.c: Likewise.
2594 * input-file.c: Likewise.
2595 * input-file.h: Likewise.
2596 * input-scrub.c: Likewise.
2597 * itbl-ops.c: Likewise.
2598 * listing.c: Likewise.
2599 * macro.h: Likewise.
2600 * messages.c: Likewise.
2601 * read.c: Likewise.
2602 * subsegs.c: Likewise.
2603 * subsegs.h: Likewise.
2604 * write.c: Likewise.
2605
2606 2000-11-06 Nick Clifton <nickc@redhat.com>
2607
2608 * doc/as.texinfo: Add GNU Free Documentation License.
2609 * doc/gasp.texi: Add GNU Free Documentation License.
2610 * doc/as.1: Add GNU Free Documentation License.
2611
2612 2000-11-05 Nick Clifton <nickc@redhat.com>
2613
2614 * config/tc-arm.c: Add include of "dwarf2dbg.h"
2615
2616 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2617
2618 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
2619 * configure: Regenerate.
2620
2621 2000-11-01 Nick Clifton <nickc@redhat.com>
2622
2623 * read.c (original_case_string): New global variable.
2624 (read_a_source_file): Copy opcode string into
2625 original_case_string if clobbering the case of the opcode.
2626 * read.h: Export the definition of original_case_string.
2627 * config/tc-arm.c (md_assembler): When parsing a .req
2628 directive use the original opcode string, not the case
2629 clobbered version.
2630
2631 2000-11-02 Nick Clifton <nickc@redhat.com>
2632
2633 * config/tc-mn10300.c (debug_line): Remove this static
2634 variable.
2635 (md_assemble): Call dwarf2_generate_asm_lineno instead of
2636 dwarf2_where and dwarf2_gen_line_info.
2637
2638 2000-11-02 Theo Honohan <th@futuretv.com>
2639
2640 * config/tc-arm.c (do_msr): Improve error message.
2641
2642 2000-10-31 Eric Christopher <echristo@redhat.com>
2643
2644 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
2645 or pc-relative, else use fx_offset.
2646
2647 2000-10-31 Jim Wilson <wilson@redhat.com>
2648
2649 * config/tc-ia64.c (struct md): New field tag_fixups.
2650 (ia64_flush_insns): Handle tag_fixups. Error if dangling
2651 qualifying predicate.
2652 (emit_one_bundle): Delete spurious multiplication by one. Handle
2653 tag_fixups.
2654 (ia64_start_line): Error if dangling qualifying predicate.
2655 (defining_tag): New static variable.
2656 (ia64_unrecognized_line, case '['): Parse tags.
2657 (ia64_frob_label): Create tag_fixups.
2658 (md_assemble): Reset md.qp.X_op after using it.
2659
2660 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2661
2662 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
2663
2664 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
2665
2666 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
2667
2668 2000-10-30 Kazu Hirata <kazu@hxi.com>
2669
2670 * expr.c: Fix formatting.
2671 * flonum-copy.c: Likewise.
2672 * flonum.h: Likewise.
2673 * gasp.c: Likewise.
2674 * hash.c: Likewise.
2675
2676 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2677
2678 * as.h (OPTION_MD_BASE): Bump to 190.
2679 * as.c (parse_args) <std_longopts>: Add comment about the need to
2680 check OPTION_MD_BASE in as.h.
2681
2682 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
2683 for weak symbols.
2684
2685 2000-10-27 Nick Clifton <nickc@redhat.com>
2686
2687 * configure.in (emulations): Add m68hc12.
2688 * configure: Regenerate.
2689 * po/gas.pot: Regenerate.
2690
2691 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
2692
2693 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
2694 cpsr*.
2695 (arm_psr_parse): Handle lowercase CPSR and SPSR.
2696
2697 2000-10-25 Nick Clifton <nickc@redhat.com>
2698
2699 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
2700 a DWARF2 line number information sequence.
2701
2702 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
2703
2704 * read.c (generate_lineno_debug): Update comment describing why
2705 DWARF2 line number debug information is not generated
2706 automatically by this function.
2707
2708 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
2709 not all.
2710
2711 * config/tc-arm.h (md_end): Define.
2712 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2713
2714 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
2715 if generating DWARF2 line numbers.
2716 (arm_end_of_source): New function. Call dwarf2_finish if
2717 necessary.
2718
2719 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
2720 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
2721 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
2722
2723 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
2724
2725 * config/tc-i386.c: Fix prototype declarations for functions taking no
2726 arguments.
2727
2728 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
2729
2730 * config/tc-i386.c (i386_operand_modifier): Remove.
2731 (build_displacement_string): Remove.
2732 (i386_parse_seg): Remove.
2733 (i386_intel_memory_operand): Remove.
2734 (i386_intel_operand): Re-write using recursive descent parser based
2735 on MASM documentation.
2736 (struct intel_parser_s): New structure.
2737 (intel_parser): New static variable.
2738 (struct intel_token): New structure.
2739 (cur_token, prev_token): New static variables.
2740 (T_NIL): Define.
2741 (T_CONST): Define.
2742 (T_REG): Define.
2743 (T_BYTE): Define.
2744 (T_WORD): Define.
2745 (T_DWORD): Define.
2746 (T_QWORD): Define.
2747 (T_XWORD): Define.
2748 (T_SHORT): Define.
2749 (T_OFFSET): Define.
2750 (T_PTR): Define.
2751 (T_ID): Define.
2752 (intel_match_token): New function.
2753 (intel_get_token): New function.
2754 (intel_putback_token): New function.
2755 (intel_expr): New function.
2756 (intel_e05): New function.
2757 (intel_e05_1): New function.
2758 (intel_e06): New function.
2759 (intel_e06_1): New function.
2760 (intel_e09): New function.
2761 (intel_e09_1): New function.
2762 (intel_e10): New function.
2763 (intel_e10_1): New function.
2764 (intel_e11): New function.
2765
2766 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2767
2768 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
2769 instructions to loose any special insn->architecture mask.
2770
2771 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
2772 (sparc_md_end, sparc_arch_types, sparc_arch,
2773 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
2774 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
2775 request v9b architecture if they are used).
2776
2777 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2778
2779 * config/tc-m68k.c: Fix the previous misapplied patch.
2780
2781 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2782
2783 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
2784 BFD_ASSEMBLER and !BFD_ASSEMBLER.
2785 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
2786 BFD_RELOC_*.
2787
2788 2000-10-17 Kazu Hirata <kazu@hxi.com>
2789
2790 * debug.c: Fix formatting.
2791 * depend.c: Likewise.
2792 * dwarf2dbg.c: Likewise.
2793 * dwarf2dbg.h: Likewise.
2794 * ecoff.c: Likewise.
2795 * expr.c: Likewise.
2796 * expr.h: Likewise.
2797 * flonum-konst.c: Likewise.
2798 * frags.h: Likewise.
2799
2800 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2801
2802 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
2803 options.
2804 * doc/as.texinfo: Added notes about this new option.
2805
2806 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
2807
2808 * config/tc-sh.c (JREG): Remove.
2809 (md_convert_frag): Remove #if 0:d code using JREG.
2810
2811 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
2812
2813 * config/tc-i386.c (i386_operand_modifier): Only match
2814 modifiers SHORT and FLAT if they are followed by a space.
2815 (parse_register): When `allow_naked_reg' is set, do not confuse
2816 identifiers that start with a register name with a register.
2817
2818 2000-10-12 Kazu Hirata <kazu@hxi.com>
2819
2820 * app.c: Fix formatting.
2821 * as.c: Likewise.
2822 * as.h: Likewise.
2823 * bit_fix.h: Likewise.
2824 * cgen.c: Likewise.
2825 * cgen.h: Likewise.
2826 * cond.c: Likewise.
2827
2828 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2829
2830 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
2831
2832 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2833
2834 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
2835 Re-arrange function a little and improve error message.
2836
2837 * write.c (write_relocs): Fix a comment.
2838
2839 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
2840 link-once sections.
2841
2842 2000-10-05 Jim Wilson <wilson@cygnus.com>
2843
2844 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
2845
2846 2000-10-05 Alan Modra <alan@linuxcare.com.au>
2847
2848 * config/tc-i386.c: Delete some useless comments, reformat others.
2849
2850 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
2851 non-global syms in linkonce sections.
2852
2853 2000-10-04 Ralf Baechle <ralf@gnu.org>
2854
2855 * config/tc-ia64.c (operand_match): Don't use // style comments.
2856 * config/tc-i370.c: Likewise.
2857
2858 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2859
2860 Changes to handle varying register prefix and user symbol prefix.
2861 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
2862 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
2863 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
2864 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
2865 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
2866 (demand_register_prefix): New variable.
2867 (md_pseudo_table): New pseudo ".syntax".
2868 (md_longopts): New options --no-underscore and --underscore.
2869 (cris_target_format): Return elf32-us-cris or elf32-cris depending
2870 on symbols_have_leading_underscore.
2871 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
2872 (get_spec_reg): Ditto.
2873 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
2874 Fix formatting.
2875 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
2876 --help.
2877 <case OPTION_NO_US, case OPTION_US>: New.
2878 (md_show_usage): Be brief and reformat to match continuation of
2879 --help.
2880 * po/gas.pot: Regenerate.
2881
2882 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2883
2884 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
2885 force relocs for 12 bit branches.
2886 (md_apply_fix): Similarly, adjust logic here.
2887
2888 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2889
2890 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
2891 adjust for external and weak syms as we will use a reloc. Allow
2892 for +8 offset when calculating limits of branches.
2893 (hppa_fix_adjustable): Undo 2000-09-23 change.
2894 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
2895 Correct distance calculation.
2896 (tc_gen_reloc): Print the file name and line number if we can't
2897 handle a fixup.
2898
2899 From John David Anglin <dave@hiauly1.hia.nrc.ca>
2900 * config/tc-hppa.c (nonzero_dibits): Define.
2901 (arg_reloc_stub_needed): Check each arg and return value
2902 separately for zero case.
2903 (pa_align): Declare argument `bytes'.
2904
2905 2000-09-25 Kazu Hirata <kazu@hxi.com>
2906
2907 * config/tc-cris.c: Fix formatting.
2908 * config/tc-d10v.h: Likewise.
2909 * config/tc-d30v.c: Likewise.
2910 * config/tc-d30v.h: Likewise.
2911 * config/tc-fr30.c: Likewise.
2912 * config/tc-fr30.h: Likewise.
2913 * config/tc-m68k.c: Likewise.
2914 * config/tc-m68k.h: Likewise.
2915 * config/tc-pj.h: Likewise.
2916 * config/tc-ppc.c: Likewise.
2917 * config/tc-ppc.h: Likewise.
2918 * config/tc-sh.c: Likewise.
2919 * config/tc-sh.h: Likewise.
2920 * config/tc-sparc.c: Likewise.
2921 * config/tc-v850.h: Likewise.
2922 * config/tc-vax.h: Likewise.
2923 * config/tc-w65.h: Likewise.
2924 * config/tc-z8k.h: Likewise.
2925
2926 2000-09-23 Alan Modra <alan@linuxcare.com.au>
2927
2928 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
2929 checks only for ELF.
2930 (hppa_force_relocation): Likewise.
2931
2932 2000-09-22 Jim Wilson <wilson@cygnus.com>
2933
2934 * config/tc-ia64.c (dv_sem): Add "stop".
2935 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
2936 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
2937 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
2938 match above.
2939 (mark_resources): Check IA64_RS_PRr.
2940
2941 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2942
2943 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
2944 md_estimate_size_before_relax): Redesign and clean up the
2945 relaxation mechanism.
2946
2947 2000-09-21 Kazu Hirata <kazu@hxi.com>
2948
2949 * config/tc-ns32k.c: Fix formatting.
2950 * config/tc-ns32k.h: Likewise.
2951
2952 2000-09-20 Kazu Hirata <kazu@hxi.com>
2953
2954 * config/tc-m32r.c: Fix formatting.
2955 * config/tc-m32r.h: Likewise.
2956 * config/tc-m68851.h: Likewise.
2957 * config/tc-m68hc11.c: Likewise.
2958 * config/tc-m68hc11.h: Likewise.
2959 * config/tc-m88k.c: Likewise.
2960 * config/tc-mcore.c: Likewise.
2961 * config/tc-mcore.h: Likewise.
2962 * config/tc-mips.c: Likewise.
2963 * config/tc-mips.h: Likewise.
2964 * config/tc-mn10200.h: Likewise.
2965 * config/tc-mn10300.h: Likewise.
2966 * config/tc-tahoe.c: Likewise.
2967 * config/tc-tahoe.h: Likewise.
2968
2969 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2970
2971 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
2972 Likewise in relaxation description comments.
2973
2974 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2975
2976 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
2977 subtraction of two syms without emitting a relocation.
2978
2979 From David Huggins-Daines <dhd@linuxcare.com>
2980 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
2981 global or weak symbols.
2982
2983 2000-09-15 Kazu Hirata <kazu@hxi.com>
2984
2985 * config/tc-h8300.h: Fix formatting.
2986 * config/tc-h8500.c: Likewise.
2987 * config/tc-h8500.h: Likewise.
2988 * config/tc-hppa.h: Likewise.
2989 * config/tc-i370.h: Likewise.
2990 * config/tc-i386.h: Likewise.
2991 * config/tc-i860.c: Likewise.
2992 * config/tc-i860.h: Likewise.
2993 * config/tc-i960.h: Likewise.
2994 * config/tc-ia64.c: Likewise.
2995 * config/tc-ia64.h: Likewise.
2996
2997 2000-09-14 Kazu Hirata <kazu@hxi.com>
2998
2999 * config/tc-a29k.c: Fix formatting.
3000 * config/tc-alpha.c: Likewise.
3001 * config/tc-arc.c: Likewise.
3002 * config/tc-arc.h: Likewise.
3003 * config/tc-arm.c: Likewise.
3004 * config/tc-arm.h: Likewise.
3005 * config/tc-avr.c: Likewise.
3006 * config/tc-avr.h: Likewise.
3007 * config/tc-tic30.c: Likewise.
3008 * config/tc-tic30.h: Likewise.
3009 * config/tc-tic54x.c: Likewise.
3010 * config/tc-tic54x.h: Likewise.
3011 * config/tc-tic80.c: Likewise.
3012 * config/tc-tic80.h: Likewise.
3013
3014 2000-09-14 Timothy Wall <twall@cygnus.com>
3015
3016 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
3017 parallel comparisons for later use.
3018 (struct rsrc): Add parallel comparison type.
3019 (resources_match): Skip special cases of PR usage (non-conflicting
3020 parallel compares).
3021
3022 2000-09-13 Kazu Hirata <kazu@hxi.com>
3023
3024 * config/obj-ecoff.c: Fix formatting.
3025 * config/obj-elf.c: Likewise.
3026 * config/obj-elf.h: Likewise.
3027 * config/obj-evax.h: Likewise.
3028 * config/obj-generic.h: Likewise.
3029 * config/obj-hp300.c: Likewise.
3030 * config/obj-hp300.h: Likewise.
3031 * config/obj-ieee.h: Likewise.
3032 * config/obj-vms.c: Likewise.
3033 * config/obj-vms.h: Likewise.
3034
3035 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3036
3037 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
3038 (md_parse_option): Ditto.
3039 (md_longopts): Add -mips32 option.
3040 (md_show_usage): Document new options.
3041 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
3042 (mips_ip): Assemble mfc0 with a sub-selection code.
3043 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
3044 (mips_cpu_to_str): New function.
3045 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
3046 Use CPU_* defines instead of hardcoded numbers.
3047
3048 * doc/as.texinfo: Document new options.
3049 * doc/c-mips.texi: Ditto.
3050
3051 2000-09-12 Kazu Hirata <kazu@hxi.com>
3052
3053 * as.h: Fix formatting.
3054 * asintl.h: Likewise.
3055 * bit_fix.h: Likewise.
3056 * config/obj-aout.c: Likewise.
3057 * config/obj-aout.h: Likewise.
3058 * config/obj-bout.c: Likewise.
3059 * config/obj-bout.h: Likewise.
3060 * config/obj-coff.c: Likewise.
3061 * config/obj-coff.h: Likewise.
3062 * dwarf2dbg.h: Likewise.
3063 * expr.h: Likewise.
3064 * flonum.h: Likewise.
3065 * frags.h: Likewise.
3066 * itbl-ops.h: Likewise.
3067 * macro.h: Likewise.
3068 * read.h: Likewise.
3069 * sb.h: Likewise.
3070 * struc-symbol.h: Likewise.
3071 * subsegs.h: Likewise.
3072 * symbols.h: Likewise.
3073 * tc.h: Likewise.
3074 * write.h: Likewise.
3075
3076 2000-09-11 Kazu Hirata <kazu@hxi.com>
3077
3078 * bignum-copy.c: Fix formatting.
3079 * config/tc-i370.c: Likewise.
3080 * config/tc-i960.c: Likewise.
3081 * config/tc-m68k.c: Likewise.
3082 * ehopt.c: Likewise.
3083 * flonum-copy.c: Likewise.
3084 * flonum-konst.c: Likewise.
3085 * flonum-mult.c: Likewise.
3086 * literal.c: Likewise.
3087 * read.c: Likewise.
3088 * sb.c: Likewise.
3089 * stabs.c: Likewise.
3090 * subsegs.c: Likewise.
3091
3092 2000-09-09 Philip Blundell <philb@gnu.org>
3093
3094 * configure.in (arm*-*-uclinux*): New target.
3095 * configure: Regenerate.
3096
3097 2000-09-09 Kazu Hirata <kazu@hxi.com>
3098
3099 * input-file.c: Fix formatting.
3100 * itbl-ops.c: Likewise.
3101 * messages.c: Likewise.
3102
3103 2000-09-08 Philip Blundell <philb@gnu.org>
3104
3105 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
3106 offset is negative.
3107
3108 2000-09-07 H.J. Lu <hjl@gnu.org>
3109
3110 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3111 * configure: Rebuild.
3112
3113 2000-09-07 Kazu Hirata <kazu@hxi.com>
3114
3115 * atof-generic.c: Fix formatting.
3116 * config/tc-mips.c: Likewise.
3117 * config/tc-vax.c: Likewise.
3118 * input-scrub.c: Likewise.
3119
3120 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3121
3122 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
3123 * configure.in (sh-*-linux*): Added.
3124 * configure: Rebuilt.
3125
3126 2000-09-06 Kazu Hirata <kazu@hxi.com>
3127
3128 * config/tc-hppa.c: Fix formatting.
3129
3130 * ecoff.c: Fix formatting.
3131
3132 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3133
3134 * configure: Rebuilt with new libtool.m4.
3135
3136 2000-09-05 Kazu Hirata <kazu@hxi.com>
3137
3138 * cgen.c: Fix formatting.
3139 * config/tc-ia64.c: Likewise.
3140
3141 2000-09-05 Nick Clifton <nickc@redhat.com>
3142
3143 * aclocal.m4: Regenerate.
3144 * config.in: Regenerate.
3145 * configure: Regenerate.
3146 * po/gas.pot: Regenerate.
3147
3148 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
3149
3150 * config/tc-cris.c: Correct comment typos.
3151
3152 2000-09-05 Eric Christopher <echristo@cygnus.com>
3153
3154 * config/tc-mn10300.c: Cleanup.
3155 (md_pcrel_from): Enable.
3156
3157 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3158
3159 * expr.c (operand): Fix a comment typo.
3160 * write.c (write_relocs): Fix a signed/unsigned warning.
3161
3162 * config/tc-hppa.c (fudge_reg_expressions): New
3163 (hppa_force_reg_syms_absolute): New.
3164 (pa_equ): Allow reg_section expressions.
3165 * config/tc-hppa.c (md_optimize_expr): Define.
3166 (hppa_force_reg_syms_absolute): Prototype.
3167
3168 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
3169 (pa_parse_number): Pass in arg to select fp reg parsing.
3170 Return 1 to indicate format checks pass. If strict, then only
3171 accept a register or register symbol. Return value in...
3172 (pa_number): New static for pa_parse_number.
3173 (FP_REG_BASE): Define.
3174 (FP_REG_RSEL): Define.
3175 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
3176 appropriate. White space changes.
3177 (need_pa11_opcode): Don't bother passing any params, get them from
3178 globals instead.
3179 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
3180 Remove extraneous check in case 'Q'.
3181 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
3182 reg, set section of resulting symbol to reg_section.
3183 (pa_parse_space_stmt): Modify call to pa_parse_number.
3184 (pa_space): Likewise.
3185
3186 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
3187 (hppa_force_relocation): Handle vtable relocs.
3188 (pa_vtable_entry): New.
3189 (pa_vtable_inherit): New.
3190 (md_pseudo_table): Add entries for vtable pseudos.
3191 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
3192 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
3193 against weak syms.
3194 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
3195 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
3196 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
3197 millicode import.
3198 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
3199 specify a symbol type.
3200
3201 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
3202 dependent things together.
3203 (md_elf_symbol_type): Define.
3204
3205 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
3206 symbol.
3207 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
3208
3209 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
3210 (obj_elf_vtable_entry): Declare.
3211
3212 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
3213 and export function.
3214 (obj_elf_vtable_entry): Similarly.
3215 (elf_pseudo_table): Fix the damage with a cast.
3216
3217 2000-09-03 Richard Henderson <rth@cygnus.com>
3218
3219 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
3220 for template selection when a label is needed.
3221
3222 2000-09-02 Kazu Hirata <kazu@hxi.com>
3223
3224 * config/tc-ia64.c: Fix formatting.
3225
3226 2000-09-02 Nick Clifton <nickc@redhat.com>
3227
3228 * configure.in: Increase version number to 2.10.91.
3229 * configure: Regenerate.
3230 * aclocal.m4: Regenerate.
3231 * config.in: Regenerate.
3232 * po/gas.pot: Regenerate.
3233 * Makefile.in: Regenerate.
3234
3235 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
3236
3237 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
3238 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
3239 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
3240 similar relocs.
3241 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
3242 branches.
3243
3244 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3245
3246 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
3247 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
3248 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
3249 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
3250 (GOT_symbol): New variable.
3251 (md_undefined_symbol): Set it.
3252
3253 2000-09-01 Richard Henderson <rth@cygnus.com>
3254
3255 * config/tc-ia64.c (match): Don't inline.
3256 (extra_goodness): New.
3257 (md_begin): Prefer nop.f and nop.b for best_template.
3258
3259 2000-08-31 Kazu Hirata <kazu@hxi.com>
3260
3261 * as.c: Fix formatting.
3262 * cond.c: Likewise.
3263 * frags.c: Likewise.
3264 * macro.c: Likewise.
3265
3266 2000-08-31 Eric Christopher <echristo@cygnus.com>
3267
3268 * config/tc-mn10300.c: Cleanup and fix warnings.
3269 (md_pseudo_table): Add initializers.
3270 (md_show_usage): Cleanup.
3271 (md_parse_option): Fix warnings.
3272 (md_undefined_symbol): Fix warnings.
3273 (md_conver_frag): Fix warnings.
3274 (tc_gen_reloc): Fix warnings.
3275 (md_apply_fix3): Fix warnings.
3276 (check_operand): Fix warnings.
3277
3278 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3279
3280 * acinclude.m4: Include libtool and gettext macros from the
3281 top level.
3282 * aclocal.m4, configure: Rebuilt.
3283
3284 2000-08-30 Mark Hatle <mhatle@mvista.com>
3285
3286 * config/tc-ppc.c (md_parse_option): Recognize -m405.
3287
3288 2000-08-31 Kazu Hirata <kazu@hxi.com>
3289
3290 * listing.c: Fix formatting.
3291
3292 2000-08-29 Kazu Hirata <kazu@hxi.com>
3293
3294 * app.c: Fix a comment typo. Fix formatting.
3295
3296 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3297
3298 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
3299 offset of the target destination for jmp instructions.
3300 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
3301
3302 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3303
3304 * NEWS: Mention support for CRIS.
3305
3306 Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
3307
3308 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
3309 Sets `.lcomm' alignment to zero.
3310
3311 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
3312
3313 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
3314 TC_FIX_ADJUSTABLE): Define.
3315
3316 2000-08-23 Jim Wilson <wilson@cygnus.com>
3317
3318 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
3319 unwind.personality_routine is set.
3320
3321 2000-08-23 H.J. Lu <hjl@gnu.org>
3322
3323 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
3324
3325 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
3326
3327 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
3328 environment is pe.
3329
3330 2000-08-22 H.J. Lu <hjl@gnu.org>
3331
3332 * config.in (STRICTCOFF): New for strict COFF.
3333
3334 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
3335 i386-*-go32* and i386-go32-rtems*.
3336 * configure: Rebuilt.
3337
3338 * config/obj-coff.c (obj_coff_endef): Follow the historical
3339 behavior if STRICTCOFF is not defined.
3340
3341 * doc/internals.texi: Document STRICTCOFF.
3342
3343 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3344
3345 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
3346 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
3347 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
3348 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
3349 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
3350 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
3351 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
3352 Likewise.
3353
3354 2000-08-22 Eric Christopher <echristo@cygnus.com>
3355
3356 * config/tc-mn10300.c: (md_apply_fix): New function.
3357 (mn10300_force_relocation): New function.
3358 (mn10300_fix_adjustable): New function.
3359
3360 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
3361 (TC_HANDLES_FX_DONE): Define.
3362 (obj_fix_adjustable): Define.
3363 (MD_APPLY_FIX3): Define.
3364 (TC_LINKRELAX_FIXUP): Define.
3365
3366 * write.c: (TC_LINKRELAX_FIXUP): Define if not
3367 previously defined.
3368 (fixup_segment): Use TC_LINKRELAX_FIXUP.
3369
3370 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
3371
3372 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3373
3374 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
3375 if the fixup resulted in a relocation.
3376
3377 2000-08-18 Nick Clifton <nickc@redhat.com>
3378
3379 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
3380 Make reference to first element of shift_names explicit.
3381
3382 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
3383
3384 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
3385 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
3386 add a symbol's address. Removed all target-specific #ifdefs that
3387 used to accomplished the same.
3388 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3389 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3390 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3391 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3392 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3393
3394 2000-08-17 Kazu Hirata <kazu@hxi.com>
3395
3396 * dwarf2dbg.c: Fix formatting.
3397
3398 2000-08-17 Nick Clifton <nickc@redhat.com>
3399
3400 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
3401 to be recoded as logical shift lefts by zero.
3402
3403 2000-08-16 Jim Wilson <wilson@cygnus.com>
3404
3405 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
3406 postincrement modified registers. Handle IA64_OPND_R3_2 addl
3407 source registers.
3408 (note_register_values): Handle IA64_OPND_R3_2 operands.
3409
3410 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3411
3412 * config/tc-i860.c (md_operand): Silly typo fixed.
3413
3414 2000-08-16 Nick Clifton <nickc@redhat.com>
3415
3416 * config/tc-arm.c (struct asm_shift): Delete.
3417 (shift[]): Delete.
3418 (enum asm_shift_index): New.
3419 (struct asm_shift_properties): New.
3420 (struct asm_shift_name): New.
3421 (shift_properties[]); New.
3422 (shift_names[]); New.
3423
3424 (decode_shift): Use new structures.
3425 Issue a warning is "ROR #0" is used.
3426 Issue a warning if "ASR #0" or "LSR #0" is used.
3427
3428 (md_begin): Initialise arm_shift_hsh table from new
3429 asm_shift_name array.
3430
3431 2000-08-16 Jakub Jelinek <jakub@redhat.com>
3432
3433 * config/tc-sparc.c: Kill all warnings.
3434 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
3435 in -xarch= as well.
3436 (md_show_usage): Update usage text.
3437
3438 2000-08-16 Nick Clifton <nickc@redhat.com>
3439
3440 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
3441 useful.
3442
3443 2000-08-15 Will Cohen <wcohen@redhat.com>
3444
3445 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
3446
3447 * config/tc-sh.c (md_assemble): Changed so debug_type
3448 test performed for ppi_assemble
3449 * config/tc-sh.c: Included dwarf2dbg.h.
3450 (debug_line): Defined.
3451 (md_assemble): Generates dwarf2 line info.
3452 (sh_finalize): New function. Finalize dwarf2 info.
3453 (assemble_ppi): Returns size of code generated.
3454 (build_Mytes): Returns size of code generated.
3455 (md_pseudo_table): Added "file" and "loc" psuedo ops.
3456 * config/tc-sh.h (md_end): Defined.
3457 (sh_finalize): Declared.
3458
3459 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
3460
3461 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
3462 md_number_to_chars.
3463
3464 2000-08-14 Nick Clifton <nickc@redhat.com>
3465
3466 * config/tc-arm.c (do_bx): Allow "bx pc".
3467
3468 2000-08-14 Jim Wilson <wilson@cygnus.com>
3469
3470 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
3471 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
3472 (md_begin): Change assignment to md.flag to OR in the new bit.
3473
3474 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
3475
3476 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
3477 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
3478 C_MOU, and C_EOS.
3479
3480 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3481
3482 * NEWS: Mention i860 support.
3483
3484 Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
3485
3486 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3487
3488 2000-08-14 Andreas Schwab <schwab@suse.de>
3489
3490 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
3491
3492 2000-08-11 Andreas Schwab <schwab@suse.de>
3493
3494 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
3495 argument.
3496
3497 2000-08-11 Kazu Hirata <kazu@hxi.com>
3498
3499 * expr.c: Fix formatting.
3500 * config/obj-bout.c: Likewise.
3501
3502 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3503
3504 * doc/c-i860.texi: Flesh out the i860 section more.
3505
3506 2000-08-10 Kazu Hirata <kazu@hxi.com>
3507
3508 * symbols.c: Fix formatting.
3509 * expr.c: Likewise.
3510
3511 Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
3512
3513 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
3514 modifier has the IgnoreSize bit set.
3515
3516 2000-08-09 Alan Modra <alan@linuxcare.com.au>
3517
3518 From Rodney Brown <RodneyBrown@mynd.com>
3519 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
3520 * configure: Regenerate.
3521
3522 2000-08-09 Kazu Hirata <kazu@hxi.com>
3523
3524 * hash.c: Fix formatting.
3525 * gasp.c: Likewise.
3526
3527 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3528
3529 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
3530 (i860_fix_info): New enum.
3531 (MD_APPLY_FIX3): Define.
3532 (WORKING_DOT_WORD): Define.
3533 (TC_HANDLES_FX_DONE): Define.
3534 (DIFF_EXPR_OK): Define.
3535 (LISTING_HEADER): Define.
3536 (TARGET_FORMAT): Select target format based on endian flag.
3537 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
3538 (target_big_endian): Add external declaration.
3539
3540 * config/tc-i860.c: All existing code reworked completely. Other
3541 new code shown below.
3542 (SYNTAX_SVR4): Define.
3543 (target_warn_expand): New variable.
3544 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
3545 (md_longopts): Declare and define with new options (-EL, -EB,
3546 and -mwarn-expand).
3547 (md_show_usage): New function.
3548 (md_operand): New function.
3549 (obtain_reloc_for_imm16): New function.
3550 (md_apply_fix3): New function.
3551 (tc_gen_reloc): New function.
3552
3553 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3554
3555 * config/tc-m68hc11.c (build_jump_insn): Make sure the
3556 2 bytes of the jump address are in the same frag.
3557 (find): Accept 68hc12 register indirect modes.
3558
3559 * NEWS: Mention 68HC11 & 68HC12 support.
3560
3561 2000-08-07 Richard Henderson <rth@cygnus.com>
3562
3563 * config/tc-ia64.c (unwind): Add prologue_mask member.
3564 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
3565 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
3566 (dot_body): Clear unwind.prologue_mask.
3567 (dot_prologue): Set it. Accept a register second argument.
3568
3569 2000-08-07 Kazu Hirata <kazu@hxi.com>
3570
3571 * config/atof-ieee.c: Fix formatting.
3572 * config/atof-tahoe.c: Likewise.
3573
3574 2000-08-06 Nick Clifton <nickc@cygnus.com>
3575
3576 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
3577 work.
3578
3579 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
3580 of .popsection, .previous, .pushsection, .subsection,
3581 .version, .vtable_entry, .vtable_inherit and .weak.
3582
3583 2000-08-05 Kazu Hirata <kazu@hxi.com>
3584
3585 * config/tc-cris.c: Fix formatting.
3586 * config/tc-i386.c: Likewise.
3587 * config/tc-sparc.c (sparc_ip): Simplify the code.
3588
3589 2000-08-04 Kazu Hirata <kazu@hxi.com>
3590
3591 * config/tc-cris.c: Rearrange code for readability.
3592 * config/tc-d10v.c: Fix formatting.
3593 * config/tc-m32r.c: Likewise.
3594 * config/tc-sparc.c: Likewise.
3595
3596 2000-08-02 Jim Wilson <wilson@cygnus.com>
3597
3598 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
3599 before ia64_find_opcode.
3600 (md_assemble): Likewise.
3601
3602 2000-08-01 Nick Clifton <nickc@cygnus.com>
3603
3604 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
3605 Undo some formatting fixes.
3606
3607 2000-08-01 Kazu Hirata <kazu@hxi.com>
3608
3609 * config/obj-som.c: Fix formatting.
3610 * config/obj-ieee.c: Likewise.
3611 * config/tc-arm.c: Likewise.
3612 * config/tc-v850.c: Likewise.
3613
3614 2000-08-01 Nick Clifton <nickc@redhat.com>
3615
3616 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
3617 index by command line option.
3618
3619 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3620
3621 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
3622 (@node M68K-Branch): Rewrite to match the reality.
3623
3624 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3625
3626 * doc/c-i860.texi: New file.
3627 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
3628 * doc/Makefile.in: Regenerate.
3629 * doc/all.texi: Add I860 as relevant architecture.
3630 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
3631
3632 2000-07-31 Kazu Hirata <kazu@hxi.com>
3633
3634 * config/tc-d30v.c: Fix formatting.
3635
3636 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3637
3638 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
3639 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
3640 long emit a long branch if available instead of an absolute jump, never
3641 emit absolute jumps for anything with --pcrel.
3642
3643 * doc/c-m68k.texi: Document new command line option.
3644
3645 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
3646
3647 * config/tc-avr.c: Use PARAMS macro in function declarations.
3648 Don't declare md_pcrel_from_section (already in tc-avr.h).
3649 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
3650 (avr_operand): Don't set (unsigned) op_mask to -1.
3651
3652 2000-07-28 Jason Eckhardt <jle@cygnus.com>
3653
3654 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
3655 * configure: Regenerated.
3656 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
3657 of operand to the .type directive (.e.g, "type").
3658
3659 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3660
3661 * as.h (warn_comment, found_comment, found_comment_file): Declare.
3662 * app.c (do_scrub_chars): Record where first comment found.
3663 * read.c (read_a_source_file): Init found_comment on entry, and
3664 notify whether comments found on exit.
3665 * config/tc-hppa.c (md_shortopts): Add "c".
3666 (md_longopts): Add warn-comment.
3667 (md_parse_option): Handle it.
3668 (md_show_usage): Show available options.
3669 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
3670
3671 Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
3672
3673 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
3674 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
3675 sym_ptr_ptr
3676 (md_estimate_size_before_relax): Don't fall off end of function.
3677
3678 2000-07-27 Kazu Hirata <kazu@hxi.com>
3679
3680 * config/tc-avr.c: Fix formatting.
3681 * config/tc-ns32k.c: Likewise.
3682
3683 2000-07-27 Alan Modra <alan@linuxcare.com.au>
3684
3685 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
3686
3687 2000-07-27 Kazu Hirata <kazu@hxi.com>
3688
3689 * config/tc-d10v.c: Fix formatting.
3690 * config/tc-z8k.c: Likewise.
3691 * config/tc-sparc.c: Likewise.
3692
3693 2000-07-26 Dave Brolley <brolley@redhat.com>
3694
3695 * cgen.c (queue_fixup): Declare opinfo.
3696 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
3697 (gas_cgen_md_operand): Ditto.
3698 (gas_cgen_md_apply_fix3): Ditto.
3699
3700 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
3701
3702 * config/obj-coff.c (obj_frob_symbol): Don't merge
3703 labels. Don't merge if the symbol isn't constant. Return
3704 immediately if a symbol is merged.
3705
3706 2000-07-22 Alan Modra <alan@linuxcare.com.au>
3707
3708 * frags.c (frag_align): Correct absolute section alignment.
3709
3710 2000-07-20 DJ Delorie <dj@redhat.com>
3711
3712 * config/obj-coff.c (obj_frob_symbol): revert previous change,
3713 it breaks linking against DLLs.
3714
3715 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3716
3717 * configure.in: Add CRIS support.
3718 * configure: Regenerate.
3719 * Makefile.am: (CPU_TYPES): Add cris.
3720 (CPU_OBJ_VALID) [aout]: Add cris.
3721 (MULTI_CPU_TYPES): Add cris.
3722 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
3723 [coff]: Only i386 and mips are valid.
3724 (TARGET_CPU_CFILES): Add config/tc-cris.c.
3725 (TARGET_CPU_HFILES): Add config/tc-cris.h.
3726 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
3727 Regenerate dependencies.
3728 * Makefile.in: Regenerate.
3729 * aclocal.m4: Regenerate.
3730 * as.c: Declare crisaout, criself.
3731 * config/tc-cris.h, config/tc-cris.c: New.
3732 * config/e-criself.c, config/e-crisaout.c: New.
3733 * po/POTFILES.in, po/gas.pot: Regenerate.
3734
3735 2000-07-20 Kazu Hirata <kazu@hxi.com>
3736
3737 * read.c: Fix formatting.
3738 * write.c: Fix formatting.
3739
3740 2000-07-19 H.J. Lu <hjl@gnu.org>
3741
3742 * sb.c: Include <stdlib.h> if exists for abort ().
3743
3744 2000-07-19 Alan Modra <alan@linuxcare.com.au>
3745
3746 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
3747 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
3748 (pa_type_args): Same here.
3749
3750 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
3751
3752 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
3753 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
3754 the storage class is already set.
3755
3756 2000-07-17 Kazu Hirata <kazu@hxi.com>
3757
3758 * config/tc-m68hc11.c: Fix formatting.
3759 * config/tc-mn10200.c: Likewise.
3760 * config/tc-mn10300.c: Likewise.
3761 * config/tc-pj.c: Likewise.
3762 * config/tc-tic80.c: Likewise.
3763 * config/tc-w65.c: Likewise.
3764
3765 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
3766
3767 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
3768 is defined.
3769
3770 2000-07-15 Ian Lance Taylor <ian@zembu.com>
3771
3772 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
3773 @code.
3774
3775 2000-07-15 Alan Modra <alan@linuxcare.com.au>
3776
3777 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
3778 ELF as are used for SOM (except the 32-bit reloc one) to decide
3779 whether a symbol can be reduced to a section symbol. Expand on
3780 the comment for symbols involved in LR% and RR% expressions.
3781
3782 2000-07-14 Nick Clifton <nickc@cygnus.com>
3783
3784 * config/tc-mips.c (mips_disable_float_construction): New
3785 static variable. Set to true if doubles should not be
3786 constructed by loading two single width fp registers with
3787 halves of the value.
3788 (mips_ip): Test mips_disable_float_construction.
3789 (md_longopts): Add command line switches --construct-floats
3790 and --no-construct-floats.
3791 (md_parse_option): Parse new command line options.
3792 (md_show_usage): Describe new command line options.
3793
3794 * doc/c-mips.texi: Document new command line options.
3795
3796 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
3797
3798 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
3799 * configure: Regenerate.
3800
3801 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
3802
3803 * configure.in (DEFAULT_EMULATION setting): Revert part of
3804 2000-07-01 change that set te_multi=multi unless set to tmips.
3805 * configure: Regenerate.
3806
3807 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3808
3809 * config/obj-coff.c (coff_frob_section): Add padding to the last
3810 section when aligning it increases its size.
3811
3812 2000-07-11 Kazu Hirata <kazu@hxi.com>
3813
3814 * config/tc-tic54x.c: Fix formatting.
3815
3816 2000-07-10 Kazu Hirata <kazu@hxi.com>
3817
3818 * config/tc-h8500.c: Fix formatting.
3819 * config/tc-tic54x.c: Fix formatting.
3820
3821 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3822
3823 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
3824 displacements correctly.
3825
3826 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
3827
3828 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
3829
3830 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
3831 warning.
3832 (hash_jam): Ditto.
3833
3834 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3835
3836 From David Huggins-Daines <dhd@linuxcare.com>
3837 * config/te-hppalinux64.h: Add a new emulation.
3838 * configure.in (emulations): Add configure bits to support the
3839 64-bit Linux/parisc target.
3840 * configure: Regenerate.
3841
3842 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
3843 (md_shortopts): Add `V' for ELF.
3844
3845 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
3846 when SOM or ELF_ARG_RELOC are defined.
3847 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
3848 ELF_ARG_RELOC are defined.
3849 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
3850 (pa_stringer): ..Do it here instead. Fix comment typos.
3851 (hppa_force_relocation): Cast enums to int before comparing with
3852 ints.
3853
3854 From Ryan Bradetich <rbradetich@uswest.net>
3855 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
3856 redifinition warning.
3857 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
3858 (hppa_force_relocation): ditto
3859 (md_apply_fix): Added cast to buf to fix warnings.
3860
3861 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
3862 cons_fix_new_hppa, hppa_force_relocation): Prototype.
3863
3864 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
3865 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
3866 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
3867 reloc_type** to avoid warnings in switch.
3868 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
3869 little earlier instead.
3870
3871 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
3872 and elf.
3873 (pa_type_args): Use symbol_arg_reloc_info.
3874 (struct pa_it): Make arg_reloc unsigned int.
3875 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
3876 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
3877 (pa_code): Delete. pa_text duplicates this function.
3878 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
3879 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
3880 int.
3881 (cons_fix_new_hppa): Actually change selector to e_fsel when
3882 warning about assuming so.
3883 (tc_gen_reloc): More example elf arg reloc code.
3884 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
3885 (hppa_force_relocation): Likewise.
3886
3887 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
3888 files.
3889 (pa_end_of_source): Prototype.
3890 (hppa_fix_adjustable): Prototype.
3891 (LABELS_WITHOUT_COLONS): Move it..
3892 * config/te-hppa.h: To here.
3893
3894 * config/te-hppa64.h: New file.
3895
3896 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
3897 type.
3898 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
3899 format -10, -16, 16 relocs.
3900 (hppa_elf_mark_end_of_function): Test for null
3901 last_call_info->start_symbol
3902
3903 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
3904 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
3905 re_assesmble_* functions. Delete extraneous statements. Fix
3906 typos in comments.
3907 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
3908 insn to re_assemble_*.
3909
3910 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
3911
3912 * doc/internals.texi (Expressions): Fix typo.
3913
3914 2000-07-08 Kazu Hirata <kazu@hxi.com>
3915
3916 * config/tc-sh.c: Fix formatting.
3917 * config/tc-tic54x.c: Fix formatting.
3918 * depend.c: Fix formatting.
3919 * flonum-konst.c: Likewise.
3920 * flonum-mult.c: Likewise.
3921
3922 2000-07-07 Kazu Hirata <kazu@hxi.com>
3923
3924 * config/tc-sh.c: Fix comments.
3925 * config/obj-vms.c: Fix comments.
3926 * config/tc-a29k.c: Likewise.
3927 * config/tc-alpha.c: Likewise.
3928 * config/tc-h8300.c: Likewise.
3929 * config/tc-h8500.c: Likewise.
3930 * config/tc-i370.c: Likewise.
3931 * config/tc-ia64.c: Likewise.
3932 * config/tc-m68hc11.c: Likewise.
3933 * config/tc-m68k.c: Likewise.
3934 * config/tc-mips.c: Likewise.
3935 * config/tc-ns32k.c: Likewise.
3936 * config/tc-ppc.c: Likewise.
3937 * config/tc-z8k.c: Likewise.
3938
3939 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
3940
3941 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
3942 Default to '(SEC_LOAD | SEC_DATA)'.
3943 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
3944
3945 * doc/internals.texi (CPU Backend): Describe
3946 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
3947
3948 Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
3949
3950 * as.c (parse_args): NULL terminate the long option list.
3951
3952 Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
3953
3954 * config/tc-d30v.h: Include "write.h" for fixS.
3955 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
3956
3957 2000-07-05 Nick Clifton <nickc@cygnus.com>
3958
3959 * config/tc-d30v.c (write_2_short): Further changes to warning
3960 messages produced when combining EITHER_BUT_PREFER_MU attributed
3961 opcodes.
3962
3963 2000-07-05 DJ Delorie <dj@redhat.com>
3964
3965 * MAINTAINERS: new
3966
3967 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3968
3969 * config/tc-arm.c (psrs): Accept combinations of flags.
3970
3971 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3972
3973 * config/tc-avr.c: Change _ () to _() around all strings marked
3974 for translation (exception from the usual coding style).
3975 (avr_opt): New struct variable, how the new switches are set.
3976 (OPTION_MMCU): Define as 'm' and actually use.
3977 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
3978 (show_mcu_list): New function, display the list of known MCUs.
3979 (md_show_usage): Document the new switches. Call show_mcu_list.
3980 (avr_set_arch): Change 'm' to OPTION_MMCU.
3981 (md_parse_option): Call show_mcu_list if unknown MCU specified.
3982 Handle the new switches.
3983 (avr_operands): Disable warnings for undefined combinations of
3984 operands if -mall-opcodes. Disable warnings for skipping two-word
3985 instructions if enhanced core or -mno-skip-bug.
3986 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
3987 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
3988 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
3989 (avr_ldi_expression): Warn about implicit lo8().
3990 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
3991
3992 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3993
3994 * configure.in: Add entry for mips-*-sysv4*MP*
3995 * configure: Rebuild
3996 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
3997 elf32-tradlittlemips for traditional mips targets.
3998 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
3999 test for Link Once sections as in adjust_reloc_syms.
4000 * config/te-tmips.h: New file for traditional mips targets. Define
4001 TE_TMIPS.
4002
4003 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4004
4005 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
4006 flags argument is not present, don't change an existing section's
4007 section's attributes. If the flags argument is present, warn if the
4008 attributes don't match the section's current attributes. When
4009 long section names are supported, set SEC_LINK_ONCE and
4010 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
4011
4012 Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
4013
4014 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
4015 symbols; create them.
4016
4017 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4018
4019 * write.c (set_segment_vma): New: Set vma and lma for a segment.
4020 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
4021
4022 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
4023
4024 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
4025 expressions. Ignore the problem when handling 16 bit signed
4026 immediates, because the assembler will take care of the relocation
4027 later.
4028
4029 2000-06-27 Nick Clifton <nickc@cygnus.com>
4030
4031 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
4032 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
4033 sequential order, and emit warning messages if the input source
4034 code contains constructs like that, or parallel constructs
4035 containing such opcodes.
4036
4037 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4038
4039 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
4040 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
4041 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
4042 (md_show_usage): Update usage message.
4043 (md_parse_option): Allow redefinition of MCU type within the
4044 same avr[1-5] bfd machine type. Show both old and new MCU type
4045 in the error message.
4046 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
4047 Simplify 8K wrap code.
4048
4049 2000-06-25 Kazu Hirata <kazu@hxi.com>
4050
4051 * config/obj-aout.c: Remove all uses of DEFUN.
4052 * config/obj-ieee.c: Likewise.
4053 * config/tc-sh.c: Fix comment typos.
4054 * config/tc-tahoe.c: Likewise.
4055 * config/tc-vax.c: Likewise.
4056 * config/tc-w65.c: Likewise.
4057 * config/tc-z8k.c: Likewise.
4058 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
4059
4060 2000-06-24 DJ Delorie <dj@cygnus.com>
4061
4062 * config/tc-i386.c (md_estimate_size_before_relax): Revert
4063 more changes from Sept 1999
4064 (tc_i386_fix_adjustable): ditto
4065 (md_apply_fix3): ditto
4066
4067 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
4068
4069 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
4070 (gas_cgen_parse_operand): Set it around expression() call.
4071 (gas_cgen_md_operand): Test for it before longjmp().
4072
4073 2000-06-24 Kazu Hirata <kazu@hxi.com>
4074
4075 * config/tc-h8500.c: Remove all uses of DEFUN.
4076 * config/tc-sh.c: Likewise.
4077 * config/tc-w65.c: Likewise.
4078 * config/tc-z8k.c: Likewise.
4079
4080 * config/tc-h8500.c: Fix typos in comments.
4081
4082 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
4083
4084 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
4085 is defined.
4086
4087 2000-06-23 matthew green <mrg@redhat.com>
4088
4089 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
4090 defined. Fix error message for `[' grouping.
4091
4092 2000-06-22 Kazu Hirata <kazu@hxi.com>
4093
4094 * config/tc-h8300.c: Fix formatting and comment typos.
4095
4096 2000-06-22 Timothy Wall <twall@cygnus.com>
4097
4098 * config/tc-ia64.c (note_register_values): Move premature QP
4099 notation clearing into the appropriate place.
4100
4101 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4102
4103 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
4104 first before anything else. Add bin-bugs.h, emul.h and progress.h
4105 Sort list of files as for $(OBJS) in Makefile.am.
4106
4107 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
4108 find one. Remake dependencies.
4109 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
4110 * Makefile.in: Regenerate.
4111 * doc/Makefile.in: Regenerate.
4112
4113 * config/tc-i386.c (i386_displacement): Don't assume a constant
4114 displacement is necessarily 16 bits when in 16 bit code mode.
4115 (md_assemble): Instead size the displacement here after we know
4116 for sure that a .code16gcc operand hasn't automatically added
4117 operand size prefixes.
4118
4119 2000-06-21 H.J. Lu <hjl@gnu.org>
4120
4121 * Makefile.am: Rebuild dependency.
4122 * Makefile.in: Rebuild.
4123
4124 2000-06-21 Kazu Hirata <kazu@hxi.com>
4125
4126 * config/tc-h8300.c (parse_reg): Make the function static.
4127 (parse_exp): Likewise.
4128
4129 2000-06-20 DJ Delorie <dj@cygnus.com>
4130
4131 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
4132 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
4133 for cygwin import libraries to work properly.
4134
4135 2000-06-20 H.J. Lu <hjl@gnu.org>
4136
4137 * Makefile.am: Rebuild dependency.
4138 * Makefile.in: Rebuild.
4139 * configure: Likewise.
4140 * doc/Makefile.in: Likewise.
4141
4142 2000-06-20 Timothy Wall <twall@cygnus.com>
4143
4144 * doc/internals.texi (CPU backend): Add @itemx for
4145 TC_START_LABEL_WITHOUT_COLON.
4146 * doc/c-tic54x.texi: New.
4147 * doc/as.texinfo: Add tic54x features and include primary tic54x
4148 documentation file.
4149 * doc/all.texi: Add C54X.
4150 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
4151 * doc/Makefile.in: Regenerate.
4152 * configure.in: Add tic54x and define LIBM for tic54x.
4153 * configure: Regenrate.
4154 * config/tc-tic54x.[ch]: New.
4155 * config/obj-coff.h: Add tic54x.
4156 * Makefile.am: (CPU_TYPES): Add tic54x.
4157 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
4158 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
4159 (as_new_LDADD): Add $(LIBM).
4160 * Makefile.in: Regenerate.
4161
4162 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4163
4164 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
4165 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
4166 * doc/as.texinfo: Likewise.
4167
4168 * configure, Makefile.in: Regenerate.
4169 * configure.in (emulations): Recognize m6811 and m6812.
4170 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
4171 Added files for 68hc11 and 68hc12 assembler.
4172 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
4173 * config/tc-m68hc11.h: Header definition for that assembler.
4174
4175 2000-06-18 Nick Clifton <nickc@redhat.com>
4176
4177 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
4178 instead of OCTETS_PER_BYTE.
4179
4180 * config/tc-v850.c: Fix compile time warnings.
4181 * config/tc-ppc.c: Fix compile time warnings.
4182
4183 2000-06-18 H.J. Lu <hjl@gnu.org>
4184
4185 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
4186 * configure: Rebuild.
4187
4188 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
4189
4190 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
4191 to BFD_ASSEMBLER.
4192
4193 2000-06-16 Nick Clifton <nickc@cygnus.com>
4194
4195 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
4196 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
4197
4198 * doc/c-mips.texi: Document newly accepted cpu variants.
4199
4200 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4201
4202 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
4203
4204 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
4205
4206 * macro.c (getstring): Make it possible to escape the quote
4207 character.
4208
4209 Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
4210
4211 * config/tc-hppa.c (pa_export): Weak symbols can be global.
4212
4213 2000-06-13 H.J. Lu <hjl@gnu.org>
4214
4215 * configure: Regenerate.
4216
4217 2000-06-09 Alan Modra <alan@linuxcare.com.au>
4218
4219 * app.c (do_scrub_begin): Don't default lex[';'] as a line
4220 separator.
4221 * doc/internals.texi (line_separator_chars): Semicolon is no
4222 longer a default. Mention null and newline as defaults.
4223
4224 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
4225
4226 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
4227 * config/tc-i860.h (line_separator_chars): Likewise.
4228 * config/tc-h8300.c (line_separator_chars): Likewise.
4229 * config/tc-i960.c (line_separator_chars): Likewise.
4230 * config/tc-m68k.c (line_separator_chars): Likewise.
4231 * config/tc-mips.c (line_separator_chars): Likewise.
4232 * config/tc-ns32k.c (line_separator_chars): Likewise.
4233 * config/tc-sparc.c (line_separator_chars): Likewise.
4234 * config/tc-vax.c (line_separator_chars): Likewise.
4235
4236 * config/tc-h8300.c (comment_chars): Use string initialiser.
4237 * config/tc-i960.c (line_comment_chars): Likewise.
4238 * config/tc-z8k.c (comment_chars, line_comment_chars,
4239 line_separator_chars): Likewise.
4240
4241 * config/tc-arm.c (line_separator_chars): Always use `;', not just
4242 for TE_LINUX.
4243
4244 2000-06-08 Nick Clifton <nickc@cygnus.com>
4245
4246 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
4247 for size 1 fixes.
4248
4249 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4250
4251 * configure.in (VERSION): Update to show this is the CVS mainline.
4252
4253 2000-06-08 Matthew Jacob <mjacob@feral.com>
4254
4255 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
4256 $at is the integer register $r28, vs. both $r28 and the floating
4257 point register $f28.
4258
4259 2000-06-08 James E. Wilson <wilson@cygnus.com>
4260
4261 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
4262 (dot_endp): Don't call ia64_flush_insns.
4263 (emit_one_bundle): Don't delete prologue/body records from
4264 unwind_record list in first loop. Rewrite second loop to account for
4265 this.
4266
4267 2000-06-07 David Mosberger <davidm@hpl.hp.com>
4268
4269 * config/tc-ia64.c: Add missing prototypes.
4270 (generate_unwind_image): Cast argument to output_unw_records call.
4271
4272 Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
4273
4274 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
4275
4276 Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
4277
4278 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
4279 (REGISTER_P): likewise.
4280 (avr_opcodes): uses include/opcode/avr.h
4281 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
4282
4283 2000-06-04 Alan Modra <alan@linuxcare.com.au>
4284
4285 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
4286 initializers too.
4287
4288 2000-06-03 H.J. Lu <hjl@gnu.org>
4289
4290 * read.c (is_end_of_line): Put back `;'.
4291
4292 2000-06-03 Alan Modra <alan@linuxcare.com.au>
4293
4294 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
4295
4296 2000-06-01 Alan Modra <alan@linuxcare.com.au>
4297
4298 * expr.c (operand): Test is_end_of_line outside switch to catch
4299 line separator chars that are also operators.
4300 (operator): Return O_illegal for line separator chars.
4301
4302 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
4303 entry (or `!' entry for TC_HPPA).
4304
4305 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
4306 before indexing is_end_of_line. Remove redundant check for '\0'.
4307 (fp_op2): Likewise.
4308 * config/tc-h8500.c (md_assemble): Likewise.
4309 * config/tc-mcore.c (md_assemble): Likewise.
4310 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
4311 (md_atof): Likewise
4312
4313 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
4314 is_end_of_line.
4315 * config/tc-mcore.c (mcore_cons): Likewise.
4316 (mcore_float_cons): Likewise.
4317 (mcore_stringer): Likewise.
4318 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
4319
4320 2000-06-01 Scott Bambrough <scottb@netwinder.org>
4321
4322 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
4323
4324 2000-05-29 Nick Clifton <nickc@cygnus.com>
4325
4326 * config/tc-sh.c: Fix compile time warning messages.
4327
4328 * config/tc-mips.c: Fix compile time warning messages.
4329
4330 2000-05-29 Philip Blundell <philb@gnu.org>
4331
4332 * doc/as.texinfo: Update copyright dates.
4333 (Local Labels): Delete misplaced mention of ARM.
4334 * NEWS: Mention ARM ELF support.
4335
4336 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
4337
4338 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
4339 it is modified, and use the real_size to compute the frag address
4340 for dwarf2 line info.
4341
4342 2000-05-27 Alan Modra <alan@linuxcare.com.au>
4343
4344 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
4345 line-matching scheme to cope with automake moving variables around.
4346 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
4347 * Makefile.in: Regenerate.
4348
4349 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4350
4351 * config/tc-sparc.c (sparc_relax): New.
4352 (md_longopts): Add -relax and -no-relax options.
4353 (md_parse_options, md_show_usage): Likewise.
4354 (md_apply_fix3): Optimize tail call into branch always if possible.
4355
4356 Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
4357
4358 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
4359 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
4360 rules, with warning when a GAS statement specifies a packing that
4361 will result in an instruction being squashed.
4362 Added typdef packing_type and enumerals, changed various integer
4363 literals to use the enumerals.
4364
4365 2000-05-24 David Mosberger <davidm@hpl.hp.com>
4366
4367 * config/tc-ia64.c (dot_restorereg_p): New function.
4368 (md_pseudo_table): Add restorereg.p.
4369 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
4370 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
4371
4372 * config/tc-ia64.h (unw_record_type): Add unwabi.
4373 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
4374 called MASK with members for imask, and the masks produced by
4375 fr_mem, gr_mem, br_mem, and frgr_mem.
4376 (unw_p_record): Add members ABI and CONTEXT.
4377 (unw_x_record): Add member AB.
4378 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
4379 as pseudo-register for use during unwind info generation.
4380 (AR_PFS, AR_LC): New macros.
4381 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
4382 whose names start with an at sign (as in "@priunat").
4383 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
4384 register.
4385 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
4386 proc_end, unwind_info, personality_routine): Consolidate into
4387 "unwind" structure to reduce offset-table use. Add member
4388 NEXT_SLOT_NUMBER to track the slot number for the next instruction
4389 to be emitted.
4390 (output_R1_format, output_R3_format, output_P3_format,
4391 output_P6_format): Initialize R with zero to reduce compiler warnings.
4392 (output_P7_format): Ditto. Add `default' branch to switch
4393 statement to reduce compiler warnings.
4394 (output_P8_format, output_B1_format, output_B4_format): Ditto.
4395 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
4396 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
4397 into single argument.
4398 (output_X1_format, output_X3_format): Initialize R with zero to reduce
4399 compiler warnings. Merge A and B args into single argument.
4400 (output_X2_format, output_X4_format): Remove unused variable R. Merge
4401 A and B args into single argument.
4402 (free_record): Removed (wasn't used).
4403 (free_list_records): Also free imasks in prologue records.
4404 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
4405 (output_spill_mask): Remove.
4406 (output_unwabi): New function.
4407 (output_epilogue, output_label_state, output_copy_state): Call
4408 alloc_record.
4409 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
4410 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
4411 argument.
4412 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
4413 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
4414 as part of handling the prologue records. Emit region's imask if
4415 we have one. Handle unwabi, epilogue, label_state, copy_state,
4416 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
4417 spill_sprel_p, and spill_reg_p records.
4418 (set_imask, count_bits, slot_index): New function.
4419 (fixup_unw_records): Fix region size computation. Handle
4420 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
4421 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
4422 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
4423 set_imask accordingly. Update imask for gr_gr, and br_gr records.
4424 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
4425 (dot_save): Use manifest constants for applicaton registers.
4426 Handle REG_PR and REG_PRIUNAT.
4427 (dot_restore): Don't just ignore it.
4428 (dot_restorereg): New function..
4429 (generate_unwind_image): Ensure unwind info is a multiple of eight
4430 bytes, not just four bytes.
4431 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
4432 (dot_altrp): Don't just ignore it.
4433 (dot_savemem): New function. Replaces dot_savesp() and
4434 dot_savepsp(). Use manifest constants for applicaton registers.
4435 Handle REG_PR and REG_PRIUNAT.
4436 (dot_savef): Simplify.
4437 (dot_saveb): Support generation of br_gr.
4438 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
4439 dot_label_state, dot_copy_state): New function.
4440 (dot_unwabi): Don't just ignore it.
4441 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
4442 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
4443 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
4444 (emit_one_bundle): Set slot number for prologue/body records
4445 *before* emitting the first insn.
4446 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
4447 (md_begin): Declare "psp" pseudo-register.
4448 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
4449 so we don't get segfault.
4450 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
4451 counts as required per SW Conventions manual
4452 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
4453 output_preds_psprel, output_preds_sprel, output_spill_base,
4454 output_unat_psprel, output_unat_sprel, output_lc_psprel,
4455 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
4456 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
4457 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
4458 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
4459 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
4460 (dot_vframe): Implement.
4461 (dot_vframesp, dot_vframepsp): New function.
4462
4463 Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
4464
4465 * configure.in (i386-*-freebsd a.out entry): Quote properly.
4466 * configure: Regenerate.
4467
4468 2000-05-23 Alan Modra <alan@linuxcare.com.au>
4469
4470 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
4471 (md_estimate_size_before_relax): so we can use it here instead of
4472 old kludges. Localise vars to blocks. Comment.
4473
4474 * frags.c (frag_new): Update fr_var comments.
4475 * frags.h (struct frag): Ditto.
4476
4477 2000-05-22 Richard Henderson <rth@cygnus.com>
4478
4479 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
4480 (pseudo_func): Add pcrel.
4481 (operand_match): Handle IA64_OPND_TGT64.
4482 (build_insn): Likewise.
4483 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
4484 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
4485 (fix_insn): Handle all three 64-bit relocation types.
4486
4487 Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
4488
4489 * obj.h (struct format_ops): New members begin, app_file,
4490 s_set_other, s_set_desc, s_get_type, s_set_type,
4491 separate_stab_sections, init_stab_section.
4492
4493 * config/obj-multi.h: Update GPL notice to v2.
4494 (obj_begin): New.
4495 (obj_app_file): New.
4496 (S_SET_SIZE): Test s_set_size for NULL before calling.
4497 (S_SET_ALIGN): Similar for s_set_align.
4498 (S_SET_OTHER): New.
4499 (S_SET_DESC): New.
4500 (S_GET_TYPE): New.
4501 (S_SET_TYPE): New.
4502 (SEPARATE_STAB_SECTIONS): New.
4503 (INIT_STAB_SECTION): New.
4504 (EMIT_SECTION_SYMBOLS): New.
4505 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
4506
4507 * config/obj-elf.h: Update GPL notice to v2.
4508 Mention that this file is included from obj-multi.h.
4509 (obj_begin): Wrap definition in ifndef.
4510 (elf_file_symbol): Constify declaration.
4511 (obj_app_file): Ditto.
4512 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
4513 Wrap in ifndef SEPARATE_STAB_SECTIONS.
4514
4515 * config/obj-elf.c (elf_s_set_other): New.
4516 (elf_file_symbol): Constify argument.
4517 (elf_separate_stab_sections): New.
4518 (elf_init_stab_section): New.
4519 (elf_format_ops): Add new members. Remove comma at end.
4520
4521 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
4522 (ecoff_format_ops): Add new fields. Remove comma at end.
4523 Mention inconsistency for emit_section_symbols.
4524
4525 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
4526
4527 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
4528 (coff_separate_stab_sections): New.
4529 (coff_format_ops): Add new members.
4530
4531 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
4532 (obj_aout_s_set_other): New.
4533 (obj_aout_s_set_desc): New.
4534 (obj_aout_s_get_type): New.
4535 (obj_aout_s_set_type): New.
4536 (obj_aout_separate_stab_sections): New.
4537 (aout_format_ops): New members added. Use obj_aout_process_stab,
4538 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
4539 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
4540 appropriate.
4541 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
4542
4543 2000-05-22 Alan Modra <alan@linuxcare.com.au>
4544
4545 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
4546 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
4547 (md_estimate_size_before_relax): Ensure jumps to weak and
4548 externally visible symbols are relocatable.
4549
4550 Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
4551
4552 * stabs.c (aout_process_stab): Make global.
4553 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
4554 * read.h (aout_process_stab): Declare.
4555
4556 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
4557 Generalize to *aout, *coff *elf.
4558 * configure: Regenerated.
4559
4560 * doc/internals.texi (Object format backend): Say
4561 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
4562
4563 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
4564 * Makefile.in: Regenerated.
4565
4566 2000-05-19 Catherine Moore <clm@cygnus.com>
4567
4568 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
4569
4570 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4571
4572 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
4573 instruction to reflect change in re_assemble_*.
4574
4575 Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
4576
4577 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
4578 build PA64 ELF tools.
4579 * configure: Rebuilt.
4580
4581 2000-05-17 Alan Modra <alan@linuxcare.com.au>
4582
4583 * Makefile.am: Regenerate dependencies.
4584 * Makefile.in: Regenerate.
4585
4586 2000-05-15 Nick Clifton <nickc@cygnus.com>
4587
4588 * config/tc-arm.c (struct asm_psr): Add boolean field
4589 distinguishing between CSPR and SPSR. Rename 'number' field
4590 to 'field'.
4591 (psrs): Rearrange contents to match new asm_psr structure.
4592 (arm_psr_parse): Move next to psr_required_here. Make it
4593 return an asm_psr structure.
4594 (psr_required_here): Use asm_psr structure returned by
4595 arm_psr_parse.
4596 (do_msr): Reorganise to allow psr_required_here to be called
4597 only once.
4598 (md_undefined_name): Mark 'name' parameter as unused, since
4599 the COFF target does not use it.
4600
4601 2000-05-14 David O'Brien <obrien@FreeBSD.org>
4602
4603 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
4604 standards.
4605 * config/te-aux.h: Likewise.
4606 * config/te-dpx2.h: Likewise.
4607 * config/te-go32.h: Likewise.
4608 * config/te-hp300.h: Likewise.
4609 * config/te-hppa.h: Likewise.
4610 * config/te-i386aix.h: Likewise.
4611 * config/te-ic960.h: Likewise.
4612 * config/te-interix.h: Likewise.
4613 * config/te-nbsd532.h: Likewise.
4614 * config/te-pc532mach.h: Likewise.
4615 * config/te-ppcnw.h: Likewise.
4616 * config/te-psos.h: Likewise.
4617 * config/te-sparcaout.h: Likewise.
4618 * config/te-sun3.h: Likewise.
4619 * config/te-sysv32.h: Likewise.
4620
4621 2000-05-14 Alan Modra <alan@linuxcare.com.au>
4622
4623 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
4624 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
4625 and sign extend without an if statement.
4626 (build_bytes): Likewise.
4627
4628 2000-05-14 Kazu Hirata <kazu@hxi.com>
4629
4630 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
4631 X_add_symbol L_32 case.
4632
4633 2000-05-14 David O'Brien <obrien@FreeBSD.org>
4634
4635 * config/te-freebsd.h: New file.
4636
4637 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4638
4639 * asintl.h (gettext, dgettext, dcgettext, textdomain,
4640 bindtextdomain): Replace defines with those from intl/libgettext.h
4641 to quieten gcc warnings.
4642
4643 * NEWS: Mention x86 .arch and -q.
4644
4645 * config/tc-i386.c (quiet_warnings): New.
4646 (md_assemble): Use quiet_warnings.
4647 (md_parse_option): Set quiet_warnings from -q.
4648 (md_show_usage): Mention -q, delete -m.
4649 (flag_do_long_jump): Delete.
4650 (md_parse_option): Remove -m.
4651 (md_show_usage): Remove -m.
4652 (md_create_long_jump): Remove useless flag_do_long_jump code.
4653
4654 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
4655 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
4656
4657 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4658 Alexander Sokolov <robocop@netlink.ru>
4659
4660 * doc/c-i386.texi (i386-Arch): New section.
4661 (i386-Syntax): Mention .intel_syntax and .att_syntax.
4662
4663 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
4664 (smallest_imm_type): Use smallest opcode for shift by one if cpu
4665 architecture has been given and is not 486.
4666 (set_cpu_arch): New.
4667 (md_pseudo_table): Add .arch.
4668 (md_assemble): Warn if cpu architecture has been given and an
4669 unsupported instruction.
4670
4671 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
4672 Move operand_types bit defines after relevant template field.
4673 (template): Add cpu_flags.
4674 (Cpu*): Define.
4675 (arch_entry): New.
4676
4677 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4678
4679 * config/tc-mn10300.h (md_end): Define.
4680 (mn10300_finalize): Declare.
4681 * config/tc-mn10300.c: Include dwarf2dbg.h.
4682 (debug_line): Define.
4683 (md_assemble): Generate dwarf2 line info.
4684 (mn10300_finalize): New function. Finalize dwarf2 info.
4685
4686 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
4687
4688 * config/tc-mips.c (md_estimate_size_before_relax): Use the
4689 external version of the relocation for weak symbols.
4690
4691 2000-05-08 David Mosberger <davidm@hpl.hp.com>
4692
4693 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
4694 frame size in units of 16 bytes, as required per SW Conventions manual.
4695 (output_unw_records): Output info-block header as a dword to get
4696 byte-order right.
4697
4698 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4699
4700 * as.h: #include "file", not <file> on files from ../include.
4701 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
4702 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
4703 (md_convert_frag): Add ATTRIBUTE_UNUSED.
4704 (tc_coff_symbol_emit_hook): Ditto.
4705 (OPTCOUNT): Cast to int to avoid compiler warning.
4706 (md_begin): Fix signed/unsigned warnings.
4707
4708 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4709
4710 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
4711 ABRANCH LONG case for a conditional branch on a 68000.
4712 (md_estimate_size_before_relax): Likewise. Also handle
4713 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
4714 (m68k-ip: case ABSL): Relax absolute references to 16-bit
4715 PC-relative on all CPUs.
4716 (md_estimate_size_before_relax): Likewise.
4717
4718 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4719
4720 * as.c (parse_args): Just mention current year in printed
4721 copyright message.
4722
4723 2000-05-03 J.T. Conklin <jtc@redback.com>
4724
4725 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
4726 unit registers.
4727 (md_parse_option): Recognize -m7400.
4728
4729 2000-05-03 Ian Lance Taylor <ian@zembu.com>
4730
4731 * config/atof-ieee.c (gen_to_words): When adding carry back in,
4732 don't permit lp to become less than the words array.
4733
4734 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
4735
4736 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
4737 Fix little-endian case.
4738
4739 2000-05-03 David O'Brien <obrien@NUXI.com>
4740
4741 * as.c (parse_args): Update copyright.
4742
4743 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4744
4745 * gas/config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
4746 for the .bss section too.
4747
4748 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4749
4750 * configure.in: Set em=linux for hppa-*-linux.
4751 * configure: Regenerate.
4752 * doc/Makefile.in: Regenerate with correct automake.
4753
4754 * frags.c (frag_grow): Sanity check chunk_size.
4755
4756 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
4757 * config/obj-som.h: Likewise.
4758 * config/obj-ieee.h: Likewise.
4759
4760 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
4761
4762 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
4763 (md_pseudo_table): Fully initialise OBJ_ELF cases.
4764 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
4765 (pa_ip): low_sign_unext now returns via function value. Use
4766 re_assemble_* instead of dis_assemble_* and
4767 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
4768 unnecessarily.
4769 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
4770 (md_section_align, md_parse_option, md_show_usage,
4771 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
4772 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
4773 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
4774 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
4775 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
4776 pa_text): Likewise.
4777 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
4778 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
4779 outside of switch. Correct mask and shifting errors in case 10
4780 and case -11. In case 21, compare against signed range to suit
4781 hppa_field_adjust changes. In case 12, use re_assemble_12. In
4782 case 17 and case 22, use offsetT variable to properly check range.
4783 Use re_assemble_* here too.
4784 (evaluate_absolute): Change type of value to offsetT. Call
4785 hppa_field_adjust to do the work for us.
4786 (pa_parse_cmpb_64_cmpltr): Delete save_s.
4787 (pa_parse_cmpib_64_cmpltr): Ditto.
4788 (pa_build_unwind_subspace): Delete unused var subseg. Change type
4789 of i to unsigned int.
4790 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
4791 (pa_end_of_source): Return type is void.
4792
4793 Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
4794
4795 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
4796
4797 Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
4798
4799 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
4800 More comments added.
4801 (md_begin): Removed "construct symbols for each register name".
4802 Because register names conflicts with GCC generated function
4803 names.
4804 (avr_operand): Now constant numbers can be used as a register
4805 identifiers (0 as r0, 31 as r31).
4806 (md_assemble): use skip_space () before parsing instruction
4807 operands.
4808
4809 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4810
4811 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
4812 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
4813 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
4814 * configure: Regenerate.
4815
4816 2000-04-29 Andreas Jaeger <aj@suse.de>
4817
4818 * as.h: Correctly check GCC version.
4819
4820 2000-04-26 David O'Brien <obrien@FreeBSD.org>
4821
4822 * doc/as.1: Fix unbalanced brackets.
4823
4824 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
4825 TE_FreeBSD.
4826 (line_comment_chars): Set to '/' if TE_FreeBSD.
4827
4828 Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
4829
4830 * configure.in: Configury support for PA64 (currently disabled).
4831 * configure: Rebuilt.
4832
4833 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
4834
4835 * config/tc-mips.c (s_change_sec): Use record_alignment, not
4836 bfd_set_section_alignment.
4837
4838 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4839
4840 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
4841 than 32.
4842
4843 2000-04-24 Nick Clifton <nickc@cygnus.com>
4844
4845 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
4846 * doc/as.texinfo (Align): Include arm and strongarm in list of
4847 targets that have the second form of the behaviour of the .align
4848 directive.
4849
4850 2000-04-24 Mark Klein <mklein@dis.com>
4851
4852 * config/obj-som.c: Terminate obj_pseudo_table.
4853
4854 Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
4855
4856 * as.c (parse_args): Allow md_parse_option to override -a listing
4857 option.
4858 * config/obj-coff.c (add_lineno): Change type of offset parameter
4859 from "int" to "bfd_vma."
4860 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
4861 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
4862 (ppc_change_csect): Align correctly for XCOFF64.
4863 (ppc_machine): New function, which discards "ppc_machine" line.
4864 (ppc_tc): Cons for 8 when code is 64 bit.
4865 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
4866 relocations.
4867 (md_parse_option): Handle -a64 and -a32.
4868 (ppc_xcoff64): New.
4869 * config/tc-ppc.h (TARGET_MACH): Define.
4870 (TARGET_FORMAT): Move to function.
4871 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
4872
4873 Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
4874
4875 * config/tc-avr.c: New AVR_ISA_ defined.
4876 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
4877 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
4878 for `fmul', `movw' and `lpm R,Z' instructions.
4879 (avr_operands): Warn if current opcode is a two-word instruction
4880 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
4881 (avr_opcodes): New commands added.
4882 (REGISTER_P): Check 'a' and 'v' constraint letters.
4883 (mcu_types): New MCU added.
4884
4885 2000-04-22 Timothy Wall <twall@cygnus.com>
4886
4887 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
4888 to "natval".
4889 (operand_match): Conditionally insert default bit values for IMMU9.
4890
4891 2000-04-14 Matthew Green <mrg@cygnus.com>
4892
4893 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
4894 * configure: Rebuilt.
4895
4896 Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
4897 Jason Eckhardt <jle@cygnus.com>
4898
4899 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
4900
4901 * config/tc-hppa.c (CHECK_ALIGN): New macro.
4902 Added handling of new operand types l,y,&,fe,fE,fx.
4903
4904 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4905 David Mosberger <davidm@hpl.hp.com>
4906 Timothy Wall <twall@cygnus.com>
4907 Andrew MacLeod <amacleod@cygnus.com>
4908 Jim Wilson <wilson@cygnus.com>
4909
4910 * Makefile.am (CPU_TYPES): Add ia64.
4911 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
4912 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
4913 * Makefile.in: Rebuild.
4914 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
4915 * configure: Rebuild.
4916 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
4917 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
4918 * expr.c (expr): Handle md_optimize_expr.
4919 * read.c (LEX_HASH): Add comment.
4920 * config/tc-ia64.c, config/tc-ia64.h: New files.
4921
4922 2000-04-21 Richard Henderson <rth@cygnus.com>
4923
4924 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
4925 bundling a non-delayed branch type instruction.
4926
4927 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
4928
4929 * config/tc-mn10300.c (HAVE_AM30): Define.
4930 (md_assemble): Use it.
4931
4932 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4933
4934 * config/obj-elf.c (obj_elf_change_section): Check for changed
4935 section attributes.
4936
4937 * Makefile.am: (CPU_MULTI_VALID): Remove.
4938 (MULTI_CPU_TYPES): Define.
4939 (MULTI_CPU_OBJ_VALID): Define.
4940 (DEPTC): Use the above.
4941 (DEPOBJ): Same here.
4942 (DEP2): And here.
4943 Regenerate dependencies.
4944 * Makefile.in: Regenerate.
4945
4946 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4947
4948 * Makefile.am (YACC, LEX): Get them from configure.
4949
4950 2000-04-18 H.J. Lu (hjl@gnu.org)
4951
4952 * config/tc-i386.c (offset_in_range): Use addressT instead of
4953 bfd_vma for non-bfd assemblers.
4954
4955 2000-04-17 Alan Modra <alan@linuxcare.com.au>
4956
4957 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
4958 doesn't give spurious errors.
4959
4960 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4961
4962 * as.h (SEEK_SET): Define if undefined.
4963
4964 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4965
4966 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
4967 constants, and don't assume offsetT is 32 bits.
4968
4969 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
4970
4971 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
4972 (md_pcrel_from_section): Add prototype.
4973 (d10v_fix_adjustable): Add prototype.
4974 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
4975
4976 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
4977
4978 2000-04-12 Nick Clifton <nickc@cygnus.com>
4979
4980 * config/tc-d10v.c (find_opcode): Correctly calculate position of
4981 symbol in frag chain.
4982
4983 2000-04-10 Alan Modra <alan@linuxcare.com.au>
4984
4985 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
4986 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
4987 (fits_in_signed_word, smallest_imm_type): Ditto.
4988 (md_assemble): Use an offsetT var to hold offsetT values, not a
4989 long.
4990 (offset_in_range): New.
4991 (md_assemble): Use it.
4992 (md_convert_frag): Change type of target_address, opcode_address,
4993 and displacement_from_opcode_start to offsetT.
4994 (md_create_short_jump): Change type of offset to offsetT.
4995 (md_create_long_jump): Ditto.
4996 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
4997 (md_chars_to_number): Remove.
4998 (output_invalid): Remove duplicate prototype.
4999
5000 2000-04-09 Nick Clifton <nickc@cygnus.com>
5001
5002 * Makefile.am (CPU_TYPES): Add 'avr'.
5003 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
5004 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
5005
5006 * Makefile.in: Regenerate.
5007
5008 * doc/as.texinfo: Add M32R documentation.
5009
5010 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5011
5012 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5013 --enable-build-warnings option.
5014 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5015 * Makefile.in, configure: Re-generate.
5016
5017 2000-04-07 Nick Clifton <nickc@cygnus.com>
5018
5019 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
5020 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
5021 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
5022 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
5023 (arm_force_relocation): Force relocations for
5024 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
5025
5026 Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5027
5028 * config/tc-sh.c (get_operands): There's no third operand if the
5029 first operand is an immediate.
5030
5031 Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5032
5033 * config/tc-sh.c (immediate): Delete.
5034 (sh_operand_info): Add immediate member.
5035 (parse_reg): Use A_PC for pc.
5036 (parse_exp): Add second argument 'op'. All callers changed.
5037 (parse_at): Expect pc to be coded as A_PC.
5038 Use immediate field in *op.
5039 (insert): Add fourth argument 'op'. All callers changed.
5040 (build_relax): Add second argument 'op'. All callers changed.
5041 (insert_loop_bounds): New function.
5042 (build_Mytes): Remove DISP_4.
5043 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
5044 (assemble_ppi): Use immediate field in *operand.
5045 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
5046 (md_apply_fix): Likewise.
5047 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
5048
5049 Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5050
5051 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
5052
5053 Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
5054
5055 * internals.texi (CPU backend): Document
5056 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
5057
5058 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5059
5060 * po/gas.pot: Regenerate.
5061
5062 * as.c (show_usage): Restore translated part of bug string.
5063 * gasp.c (show_usage): Likewise.
5064
5065 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
5066 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
5067 than move-if-change.
5068 (DEP1): Modify for "gcc -MM".
5069 (DEPTC): Likewise.
5070 (DEPOBJ): Likewise.
5071 (DEP2): Likewise.
5072 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
5073 Update dependencies.
5074 * Makefile.in: Regenerate.
5075
5076 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
5077
5078 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
5079 (md_begin): Likewise.
5080 (HAVE_AM33): New macro.
5081 (md_assemble): Use it. Match r_regs and xr_regs only if
5082 HAVE_AM33.
5083
5084 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5085
5086 * as.h: #include "bin-bugs.h"
5087 * as.c (show_usage): Use REPORT_BUGS_TO.
5088 * gasp.c: #include "bin-bugs.h"
5089 (show_usage): Use REPORT_BUGS_TO.
5090
5091 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
5092
5093 Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
5094
5095 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
5096 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
5097 adjustments.
5098
5099 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5100
5101 * config/tc-i386.c (i386_immediate): Don't assume a constant
5102 immediate is necessarily 16 bits when in 16 bit code mode.
5103 (md_assemble): Instead set guess_suffix here after we have checked
5104 registers.
5105
5106 2000-04-02 Richard Henderson <rth@cygnus.com>
5107
5108 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
5109 quantities. Correct right shift sign extension.
5110 (build_insn): Make `number' unsigned long. Mask top 6 bits of
5111 32-bit value when shifting into place.
5112
5113 2000-04-01 Ian Lance Taylor <ian@zembu.com>
5114
5115 * app.c: Add ATTRIBUTE_UNUSED as needed.
5116 * config/tc-ppc.c: Likewise.
5117 (ppc_size): Make unsigned long.
5118 (ppc_insert_operand): Add casts to avoid warnings.
5119
5120 2000-03-31 Nick Clifton <nickc@cygnus.com>
5121
5122 * config/tc-d10v.h (md_flush_pending_output): Define.
5123
5124 2000-03-29 Nick Clifton <nickc@cygnus.com>
5125
5126 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
5127 segment. Works for both BFD_ASSEMBLER and others.
5128 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
5129
5130 2000-03-29 Nick Clifton <nickc@cygnus.com
5131
5132 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
5133
5134 2000-03-28 Alan Modra <alan@linuxcare.com.au>
5135
5136 * listing.c (LISTING_LHS_WIDTH): Default depends on
5137 LISTING_WORD_SIZE.
5138 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
5139
5140 2000-03-27 Ian Lance Taylor <ian@zembu.com>
5141
5142 * config/tc-sh.c (md_show_usage): Use backslash before newline in
5143 string literal.
5144
5145 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5146
5147 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
5148
5149 * config/tc-avr.c (mcu_types): Add missing initialiser.
5150 (md_pcrel_from_section): Add prototype.
5151 (avr_operand): Remove redundant test of unsigned < 0.
5152 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
5153
5154 2000-03-27 Denis Chertykov <denisc@overta.ru>
5155
5156 * config/tc-avr.c: New file for AVR support.
5157 * config/tc-avr.h: Likewise.
5158 * configure.in: Add AVR support.
5159 * configure: Regenerate.
5160
5161 2000-03-26 Timothy Wall <twall@cygnus.com>
5162
5163 * gasp.c (macro_op): Add new argument to check_macro call.
5164 Macro structure definitions moved to macro.h
5165 * sb.h: Add argument to prototype for input_scrub_include_sb.
5166 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
5167 nesting checks with an additional flag.
5168 (struct input_save): Add flag to indicate whether current sb
5169 should be checked for proper macro/conditional nesting.
5170 (input_scrub_push/pop): Save/restore nest check flag.
5171 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
5172 defined.
5173 * macro.c (check_macro): Allow caller to retrieve parsed macro
5174 information if a pointer is provided. This information may be
5175 used by the new macro hooks.
5176 * macro.h: Update prototype for check_macro. Macro struct
5177 definitions moved here from macro.c/gasp.c.
5178 * read.c (read_a_source_file): Add parameter to check_macro call,
5179 and pass macro info to the macro hook, if defined.
5180 (input_scrub_insert_line): New. Allow insertion of a line of
5181 characters into the input stream.
5182 (input_scrub_insert_file): New. Allow insertion of an arbitrary
5183 file into the input stream.
5184 (s_include): Use input_scrub_insert_file.
5185 * internals.texi: Document new macro hooks.
5186 * as.h: New prototypes added.
5187
5188 2000-03-26 Alan Modra <alan@linuxcare.com.au>
5189
5190 * config/tc-i386.c: Don't start any as_bad or as_warn message with
5191 an initial capital letter.
5192 (i386_index_check): Reindent.
5193
5194 2000-03-19 Nick Clifton <nickc@cygnus.com>
5195
5196 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
5197 relative branches.
5198
5199 2000-03-17 Thomas de Lellis <tdel@windriver.com>
5200
5201 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
5202 instruction operand bad if Rd > 7 when generating
5203 thumb instructions. Prevents for example,
5204 "adr r12,label" from silently failing and generating
5205 the wrong instruction.
5206
5207 2000-03-17 Nick Clifton <nickc@cygnus.com>
5208
5209 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
5210 that have a destingation >= 0x400000.
5211 Fix compile time warning messages.
5212
5213 Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5214
5215 * config/tc-sh.c (md_begin): When encountering insn that are
5216 not supported by the current arch, only change the name if
5217 its contents are the same as prev_name.
5218 (get_specific): If the the architecture doesn't match, fail.
5219
5220 Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5221
5222 * config/tc-sh.c (IDENT_CHAR): Define.
5223 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
5224 matching back where it came from.
5225
5226 Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5227
5228 * config/tc-sh.c (md_show_usage): Add description of -dsp.
5229
5230 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
5231
5232 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
5233 normal operands.
5234
5235 2000-03-15 Kazu Hirata <kazu@hxi.com>
5236
5237 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
5238
5239 Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
5240
5241 * expr.c (operand) [case 'f']: When testing if '0f' can start a
5242 floating-point-number, make sure 'f' is in FLT_CHARS.
5243
5244 Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
5245
5246 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
5247 (s_lcomm_internal): Use it.
5248 * doc/internals.texi (CPU backend): Document it.
5249 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
5250 bytes.
5251
5252 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5253
5254 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
5255 when embedded-pic.
5256
5257 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
5258 implementation doesn't have special handling for switch
5259 statements.
5260 (macro_build): Allow for code in sections other than .text.
5261 (macro): Likewise.
5262 (mips_ip): Likewise.
5263 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
5264 Don't perform relocs if we will be outputting them.
5265 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
5266 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
5267 embedded-pic.
5268
5269 2000-03-09 Catherine Moore <clm@cygnus.com>
5270
5271 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
5272 relocation type based on the entry in the fixup structure.
5273 Put S_IS_EXTERN processing back in.
5274
5275 2000-03-08 H.J. Lu (hjl@gnu.org)
5276
5277 * Makefile.am (install-exec-tooldir): Depend on
5278 install-exec-bindir for parallel make.
5279 * Makefile.in: Regenerated.
5280
5281 2000-03-06 Nick Clifton <nickc@cygnus.com>
5282
5283 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
5284 switch.
5285 (md_parse_option): Parse -m32r command line switch - disable m32rx
5286 compatability.
5287 (md_show_usage): Document new option.
5288
5289 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
5290 * doc/Makefile.in: Regenerate.
5291 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
5292
5293 2000-03-02 Michael Meissner <meissner@redhat.com>
5294
5295 * config/tc-d30v.c (check_range): Remove code that incorrectly
5296 sign extended values where bits < 32.
5297
5298 2000-03-02 H.J. Lu (hjl@gnu.org)
5299
5300 * configure.in: Support --enable-targets=all on ia32.
5301 * configure: Regenerated.
5302
5303 2000-03-01 Nick Clifton <nickc@cygnus.com>
5304
5305 * gasp.c (do_align): Remove bogus check of alignment value.
5306
5307 2000-02-27 Thomas de Lellis <tdel@windriver.com>
5308
5309 * config/obj-elf.c (elf_frob_symbol): Remove code which when
5310 TC_PPC was defined forced the type of a symbol with no other type
5311 to be BSF_OBJECT.
5312
5313 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
5314
5315 * doc/internals.texi (CPU backend): Mention that
5316 line_separator_chars do not break up comments. Fix typos for
5317 LEX_AT and LEX_NAME descriptions. Document operands for
5318 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
5319 description of md_create_short_jump usage. Document argument for
5320 md_undefined_symbol.
5321
5322 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5323
5324 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
5325 (md_parse_option): Handle it.
5326 (md_show_usage): Document it.
5327
5328 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5329
5330 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
5331 opcode, for the instruction `pal19'. From Andrea Arcangeli
5332 <andrea@suse.de>.
5333
5334 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
5335
5336 * config/tc-i386.c (i386_immediate): Move constant operand sizing
5337 from here..
5338 (md_assemble): To here, before template operands are matched.
5339 Also ensure a constant immediate is sign extended when we know the
5340 size is at most 16 bits. This is to catch cases like "add
5341 $0xffc0,%ax" where we don't know the size, and thus that the
5342 immediate can be represented as Imm8S until after parsing the
5343 register operand.
5344 (i386_displacement): Similarly sign extend 16 bit constant
5345 displacements.
5346 (md_assemble): Relax 16-bit jump constant range check to suit sign
5347 extended displacements.
5348
5349 2000-02-26 Andreas Jaeger <aj@suse.de>
5350
5351 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
5352
5353 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
5354
5355 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
5356 call operands when intel_syntax.
5357 (intel_float_operand): Return 2 for "fi...".
5358 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
5359 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
5360 earlier "SHORT" change.
5361 (md_assemble): When determining suffix from Regs, exclude
5362 InOutPortReg.
5363
5364 2000-02-24 Nick Clifton <nickc@cygnus.com>
5365
5366 * configure: Add arm-wince, mips-pe and sh-pe targets.
5367 * configure: Regenerate.
5368
5369 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
5370 sh-pe targets.
5371 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
5372 "pe-mips" for the mips-pe target.
5373
5374 * config/tc-arm.c (insns): Change displacement encoded in BL
5375 and B instructions if the target port is arm-wince.
5376 (do_ldst): Do not bias the relocation offset if the target
5377 port is arm-wince.
5378 (md_pcrel_from): Add in missing relocation offset bias if the
5379 target os arm-wince.
5380
5381 * config/tc-mips.c (mips_target_format): Support COFF flavour.
5382 (md_begin): Disable -G support for mips-pe target.
5383 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
5384 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
5385 COFF flavour.
5386
5387 * config/tc-sh.c (md_begin): sh-pe target is little endian.
5388 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
5389 assembler, just set the alignment to 4.
5390
5391 * config/te-wince-pe.h: New file for WinCE targets. Define
5392 TE_WINCE.
5393
5394 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
5395
5396 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
5397 string instructions.
5398 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
5399 (i386_intel_memory_operand): After finding a segment override,
5400 check again for no `[' before looking for a displacement. Bomb if
5401 more than one displacement rather than silently discarding the
5402 second and subsequent ones. Free strings malloc'd by
5403 build_displacement_string.
5404
5405 2000-02-24 Catherine Moore <clm@cygnus.com>
5406
5407 * config/obj-som.c (obj_pseudo_table): Add "weak".
5408 (obj_som_weak): New routine.
5409
5410 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
5411
5412 * config/tc-i386.c (union i386_op): New.
5413 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
5414 Throughout file replace occurences of disps[n], imms[n], regs[n]
5415 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
5416 intel mode operand swapping. Add assert in regKludge and
5417 fake_zero_displacement code. Test i.types[n] when outputting
5418 displacements and immediates. Combine output of Disp16 with
5419 Disp32.
5420 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
5421 when in intel mode by (not) reversing fsub and fdiv operands
5422 before the template search. This fails for single operand
5423 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
5424 undefined. Instead fix the base_opcode after we've found the
5425 template. Move base_opcode xor with found_reverse_match from
5426 opcode output code to before this fix so we test for the correct
5427 opcodes.
5428 (md_assemble): Don't use strcmp when deciding to ignore the suffix
5429 check in intel mode. Instead compare opcodes.
5430
5431 * config/tc-i386.h (TC_RELOC): Delete.
5432 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
5433 with equivalent call to reloc.
5434
5435 * as.h (flag_m68k_mri): Move declaration after target include, and
5436 only declare when TC_M68K defined. Define as zero otherwise.
5437 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
5438 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
5439 Define as zero otherwise.
5440 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
5441 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
5442 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
5443 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
5444 testing whether defined.
5445 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
5446 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
5447 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
5448 rather than testing whether defined.
5449 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
5450 (parse_mri_cons): Declare and use only when TC_M68K.
5451 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
5452 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
5453 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
5454
5455 * NEWS: Mention IBM 370 support.
5456
5457 2000-02-23 Richard Henderson <rth@cygnus.com>
5458
5459 * config/tc-i386.c (md_assemble): When swapping operands for
5460 intel_syntax, assume everything that's not Imm or Disp is a
5461 register.
5462
5463 2000-02-23 Linas Vepstas <linas@linas.org>
5464
5465 * config/tc-i370.c, config/tc-i370.h: New files.
5466 * Makefile.am: Add support for Linux/IBM 370.
5467 * configure.in: Likewise.
5468 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
5469 * config/obj-elf.c: Include elf/i370.h
5470 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
5471
5472 * Makefile.in: Regenerate.
5473 * configure: Regenerate.
5474
5475 * doc/c-i370.texi: New file.
5476 * doc/all.texi: Include it.
5477 * doc/as.texinfo: And here.
5478 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
5479 * doc/Makefile.in: Regenerate.
5480
5481 2000-02-19 Michael Meissner <meissner@redhat.com>
5482
5483 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
5484 determine if an instruction can be used in parallel with an ADDppp
5485 or SUBppp instruction.
5486
5487 2000-02-22 Andrew Haley <aph@cygnus.com>
5488
5489 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
5490
5491 2000-02-22 Andrew Haley <aph@cygnus.com>
5492
5493 * config/tc-mips.c (mips_gp32): New variable.
5494 (macro_build) Use mips_gp32.
5495 (mips_ip): Ditto.
5496 (md_longopts): Add "-mgp32" and "-mgp64".
5497 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
5498
5499 (OPTION_M7900): Change offset
5500 (OPTION_NO_M7900): Ditto.
5501
5502 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5503
5504 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
5505 warning, and bump it to 1.
5506
5507 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5508
5509 From Brad Lucier <lucier@math.purdue.edu>:
5510 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
5511 match format.
5512
5513 2000-02-21 Catherine Moore <clm@cygnus.com>
5514
5515 * config/tc-mips.c (MF_HILO_INSN): Define.
5516 (mips_7000_hilo_fix): Declare.
5517 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
5518 (md_parse_option): Check for 7000_HILO_FIX options.
5519 (OPTION_M7000_HILO_FIX): Define.
5520 (OPTION_NO_M7000_HILO_FIX): Define.
5521 * doc/c-mips.texi (-mfix7000): Describe.
5522
5523 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5524
5525 * listing.c (print_lines): Remove unused variable `end'.
5526
5527 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
5528 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
5529 reloc_type when BFD_ASSEMBLER.
5530 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
5531 reloc_type when BFD_ASSEMBLER. Move common code out of switch
5532 statement and quell signed vs. unsigned comparison warning.
5533
5534 2000-02-18 Nick Clifton <nickc@cygnus.com>
5535
5536 * config/tc-d10v.c (find_opcode): Add a symbol's value to
5537 the computed frag offset, rather than overwriting it.
5538
5539 Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5540
5541 * config/tc-sh.c ("elf/sh.h"): Include.
5542 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
5543 (md.begin): Initialize target_arch.
5544 Only include opcodes in has table that match selected architecture.
5545 (parse_reg): Recognize register names for sh-dsp.
5546 (parse_at): Recognize post-modify addressing.
5547 (get_operands): The leading space is now optional.
5548 (get_specific): Remove FDREG_N support. Add support for sh-dsp
5549 arguments. Update valid_arch.
5550 (build_Mytes): Add support for SDT_REG_N.
5551 (find_cooked_opcode): New function, broken out of md_assemble.
5552 (assemble_ppi, sh_elf_final_processing): New functions.
5553 (md_assemble): Use find_cooked_opcode and assemble_ppi.
5554 (md_longopts, md_parse_option): New option: -dsp.
5555 * config/tc-sh.h (elf_tc_final_processing): Define.
5556 (sh_elf_final_processing): Declare.
5557
5558 Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
5559
5560 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
5561 the unwinder subspace. Save the current seg/subseg before creating
5562 the new seg/subseg.
5563
5564 2000-02-10 Nick Clifton <nickc@cygnus.com>
5565
5566 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
5567 little endian targets.
5568 (INST_BYTE1): Redefine to handle big and little endian
5569 targets.
5570 (cpu_type): New type: Select between M340 and M210.
5571 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
5572 instructions of the M340.
5573 (md_assemble): Add support for the MULSH and OPSR classes of
5574 instructions.
5575 (md_atof): Add support for little endian targets.
5576 (md_parse_option): Add support for -EL, -EB and -mcpu command
5577 line switches.
5578 (md_convert_frag): Add support for little endian targets.
5579 (md_apply_fix3): Add support for little endian targets.
5580 (md_number_to_chars): Add support for little endian targets.
5581
5582 2000-02-10 Timothy Wall <twall@redhat.com>
5583
5584 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
5585 defined, use it to verify the symbol just read should be a label.
5586
5587 2000-02-10 Timothy Wall <twall@redhat.com>
5588
5589 * app.c (do_scrub_chars): Handle "||" for parallel instructions
5590 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
5591 around colons when KEEP_WHITE_AROUND_COLON is defined.
5592 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
5593 and KEEP_WHITE_AROUND_COLON.
5594
5595 2000-02-08 Timothy Wall <twall@redhat.com>
5596
5597 * read.c (s_rept): Call do_repeat, which abstracts the repeat
5598 logic.
5599 (do_repeat): New. Abstract repeat logic so that a "break" can be
5600 implemented.
5601 (end_repeat): New. Provide support for a "break" out of the
5602 repeat loop.
5603 * read.h: Add prototypes for new functions.
5604
5605 2000-02-08 Timothy Wall <twall@redhat.com>
5606
5607 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
5608 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
5609 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
5610 non-zero.
5611
5612 2000-02-08 Timothy Wall <twall@redhat.com>
5613
5614 * read.c: Added elseif to directives table.
5615 * read.h: Added prototype for s_elseif.
5616 * doc/as.texinfo: Added description for elseif.
5617 * cond.c (s_elseif): New function
5618
5619 2000-02-04 Timothy Wall <twall@redhat.com>
5620
5621 * listing.c (print_lines): Remove conditionals causing bug in
5622 listings.
5623
5624 2000-02-03 Timothy Wall <twall@cygnus.com>
5625
5626 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
5627 default values.
5628 * frags.c (frag_new): Calculate fr_fix in octets
5629 (frag_now_fix) Return offset as target address offset (bytes).
5630 (frag_now_fix_octets) New - Return offset in octets (8-bit
5631 quantities).
5632 * frags.h: Added prototype for frag_now_fix_octets().
5633 Distinguish between octets and bytes in field descriptions.
5634 * listing.c (calc_hex): Account for octets vs bytes when
5635 printing addresses/offsets.
5636 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
5637 target is little-endian, print the octets in a word in big-endian
5638 order so that the display looks like a proper hexadecimal number,
5639 instead of having the octets reversed.
5640 * read.c (do_align): When recording alignment, alignment power
5641 should be in terms of target bytes (minimum addressible unit)
5642 instead of octets.
5643 (do_org) Convert ORG target address (byte) argument into an
5644 octet offset when generating a variable fragment.
5645 * symbols.c (resolve_symbol_value): Symbol final value
5646 converted to a target address offset (bytes) from its octet offset.
5647 * config/obj-coff.c (coff_frob_symbol): Symbol target address
5648 offset (bytes) is adjusted by the frag offset (octets) converted
5649 to bytes.
5650 (coff_frob_section) Section alignment power is in terms of bytes;
5651 convert it to an octet alignment power when calculating size (and
5652 size mask) in octets. Don't modify the section size in order to
5653 "align" it for TI COFF, since that format has a different method
5654 for storing alignment information.
5655
5656 2000-02-01 Timothy Wall <twall@cygnus.com>
5657
5658 * stabs.c (generate_asm_file): Escape backslashes in stabs file
5659 entries, matching the way GCC generates them. If not escaped, the
5660 filename is encoded incorrectly.
5661
5662 2000-01-31 Nick Clifton <nickc@cygnus.com>
5663
5664 * config/tc-arm.c (reg_table): Add support for ATPCS register
5665 naming conventions.
5666
5667 2000-01-31 Geoff Keating <geoffk@cygnus.com>
5668
5669 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
5670 already defined.
5671 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
5672 New macro.
5673 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
5674 of a symbol when we really care about its value.
5675
5676 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
5677
5678 * config/tc-mcore.c (md_assemble): Give warning message if
5679 operands passes to instruction are more than the spec.
5680
5681 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5682
5683 * config/tc-arm.c (armadjust_symtab): If the assembler is in
5684 Thumb mode but the label seen was not declared as '.thumb_func'
5685 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
5686 correct disassembly of Thumb code bounded by non function labels.
5687
5688 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5689
5690 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
5691 Add dependencies for e-i386aout.o. Fix 2 comment lines.
5692
5693 * Makefile.in: Same here.
5694 Update copyright.
5695
5696 * configure.in: Set bfd_gas for i386-aout when primary target
5697 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
5698 we may need the primary te_file. Remove incorrect comment.
5699
5700 * configure: Regenerate.
5701
5702 * config/e-i386aout.c: New file.
5703
5704 * as.c (USE_EMULATIONS): Move to before print_version_id.
5705 (struct emulation): Add i386aout.
5706 (show_usage): Split text strings. Reformat -a text. Add --em
5707 help.
5708 Update copyright.
5709
5710 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
5711 (aout_format_ops): New.
5712 Update copyright.
5713
5714 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
5715 preprocessor conditional and add aout USE_EMULATIONS tests.
5716 (read_a_source_file): Don't pass error strings to printf as
5717 format arg.
5718 Update copyright.
5719
5720 * gasp.c (exp_get_abs): Don't pass error strings to printf as
5721 format arg.
5722 (do_data): Same here.
5723 (process_file): And here.
5724 Update copyright.
5725
5726 * symbols.c (colon): Rewrite "already defined" fatal message
5727 code for aout with USE_EMULATIONS.
5728 Update copyright.
5729
5730 * config/obj-aout.c (OBJ_HEADER): Define.
5731 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
5732 fields of sentinel.
5733 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
5734 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
5735 forms here.
5736 (obj_aout_type): Expand S_SET_OTHER here too.
5737 (obj_read_begin_hook): Remove.
5738 (aout_pop_insert): New.
5739 (obj_aout_s_get_other): New.
5740 (obj_aout_s_get_desc): New.
5741 (aout_format_ops): New.
5742 Update copyright.
5743
5744 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
5745 gets aout_pseudo_table.
5746 (aout_pseudo_table): Declare.
5747 (obj_read_begin_hook): Define.
5748 Update copyright.
5749
5750 * config/obj-coff.c (obj_pseudo_table): Rename to
5751 coff_pseudo_table.
5752 (coff_pop_insert): Use coff_pseudo_table.
5753 (coff_sec_sym_ok_for_reloc): Remove.
5754 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
5755 and comment all zero entries and remove #if 0 code.
5756 Update copyright.
5757
5758 * config/obj-coff.h (obj_pop_insert): Define.
5759 (coff_pseudo_table): Declare.
5760 Update copyright.
5761
5762 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
5763 s_get_size, s_set_size. Comment all zero entries.
5764 Update copyright.
5765
5766 * config/obj-elf.c (elf_s_get_other): New function.
5767 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
5768 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
5769 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
5770 comment.
5771 (obj_elf_parse_section_letters): Don't pass error strings to
5772 printf as format arg.
5773 Update copyright.
5774
5775 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
5776 OBJ_MAYBE_ECOFF.
5777 (elf_s_get_other): Declare.
5778 (S_GET_OTHER) Define as elf_s_get_other if not already
5779 defined.
5780 (S_SET_OTHER): Only define when not already defined.
5781 (elf_obj_read_begin_hook): Declare.
5782 (obj_read_begin_hook): Define.
5783 (elf_obj_symbol_new_hook): Declare.
5784 (obj_symbol_new_hook): Define.
5785 Update copyright.
5786
5787 * config/obj-multi.h: Add copyright header and protect against
5788 multiple inclusion. Add * to all function pointers.
5789 (OBJ_HEADER): If defined, include it rather than other defines
5790 in this file.
5791 (obj_frob_file_after_relocs): Test for NULL.
5792 (obj_symbol_new_hook): Here too.
5793 (obj_sec_sym_ok_for_reloc): And here.
5794 (S_GET_OTHER): Define.
5795 (S_GET_DESC): Define.
5796 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
5797 (OBJ_MAYBE_ELF): Update comment.
5798
5799 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
5800 OBJ_AOUT preprocessor conditional and handle emulation by
5801 testing OUTPUT_FLAVOR.
5802 (i386_displacement): Here too.
5803 (md_section_align): Similarly here.
5804 (i386_target_format): Conditionally compile when more than one
5805 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
5806 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
5807 (i386_displacement): Here too.
5808 Update copyright.
5809
5810 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
5811 Define TARGET_FORMAT for aout only when not multi.
5812 Update copyright.
5813
5814 * config/te-multi.h: Delete file as it's identical to te-generic.h
5815
5816 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
5817
5818 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
5819 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
5820 LONG_MNEM_SUFFIX.
5821
5822 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
5823 DWORD_MNEM_SUFFIX.
5824 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
5825 comments.
5826
5827 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
5828
5829 * config/tc-mips.c (mips_do_align): New function.
5830 * config/tc-mips.h (md_do_align): Define.
5831
5832 2000-01-10 Philip Blundell <philb@gnu.org>
5833
5834 * doc/c-arm.texi (ARM Options): Fix typo.
5835 (ARM-Chars): Correct description of `#'. Mention that `;' is a
5836 line separator for Linux.
5837 * doc/as.texinfo (Comments): Mention the ARM.
5838
5839 2000-01-10 Philip Blundell <pb@futuretv.com>
5840
5841 * configure.in (arm*-*-conix*): New target.
5842 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
5843 armv*-*-linux-gnu.
5844 * configure: Regenerate.
5845
5846 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5847
5848 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
5849 (obj_elf_visibility): New function.
5850
5851 * doc/as.texinfo (Visibility): New node: document visibility
5852 pseudo ops.
5853
5854 For older changes see ChangeLog-9899