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