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