Test for a NULL frag link.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2
3 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4 NULL frag link.
5
6 2001-12-31 Richard Henderson <rth@redhat.com>
7
8 * config/tc-ia64.c (errata_nop_necessary_p): Prototype.
9 (make_unw_section_name): Constify local variables.
10
11 * config/tc-ia64.c (has_suffix_p): New.
12 (note_register_values): Use it instead of strstr.
13
14 2001-12-31 Jeffrey A Law (law@redhat.com)
15
16 * config/tc-hppa.c (pa_ip): Handle new 'c' mode completers,
17 'X', 'M', and 'A'.
18
19 2001-12-21 Jakub Jelinek <jakub@redhat.com>
20
21 * config/tc-sparc.h (TC_PARSE_CONS_EXPRESSION): Define.
22 (sparc_cons): Provide prototype.
23 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_*_PCREL and
24 BFD_RELOC_SPARC_PLT{32,64}. Enumerate for which relocs
25 reloc->addend = fixp->fx_addnumber shouldn't be done instead of
26 enumarating for which pc relative ones it should be done.
27 (sparc_cons_special_reloc): New variable.
28 (sparc_cons): New function.
29 (cons_fix_new_sparc): Use sparc_cons_special_reloc.
30 * testsuite/gas/sparc/pcrel.s: New test.
31 * testsuite/gas/sparc/pcrel.d: Expected output.
32 * testsuite/gas/sparc/pcrel64.s: New test.
33 * testsuite/gas/sparc/pcrel64.d: Expected output.
34 * testsuite/gas/sparc/plt.s: New test.
35 * testsuite/gas/sparc/plt.d: Expected output.
36 * testsuite/gas/sparc/plt64.s: New test.
37 * testsuite/gas/sparc/plt64.d: Expected output.
38 * testsuite/gas/sparc/sparc.exp: Add pcrel, pcrel64, plt and plt64
39 tests.
40
41 2001-12-20 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
42 Daniel Jacobowitz <drow@mvista.com>
43
44 * config/tc-mips.c (file_mips_gp32): Initialize to invalid value.
45 (file_mips_fp32): Likewise.
46 (md_begin): Compatibility handling for -mipsN option.
47
48 2001-12-20 Alexandre Oliva <aoliva@redhat.com>
49
50 * config/tc-sh.c (parse_at): Reject @(r0) and @(r0,).
51
52 2001-12-20 matthew green <mrg@redhat.com>
53
54 * config/tc-ppc.c (md_parse_option): Make -maltivec default
55 to generating PowerPC instructions.
56
57 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
58
59 * configure.in (mips-dec-netbsd*): Delete.
60 * configure: Regenerate.
61
62 * configure.in (arm-*-netbsdelf*): Add target.
63 * configure: Regenerate.
64
65 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
66
67 * config/tc-mips.h (TC_HANDLE_FX_DONE): Remove redundant
68 definition.
69
70 2001-12-18 Niibe Yutaka <gniibe@m17n.org>
71
72 * configure.in (assign object format): Bug fix for setting
73 endian.
74 * configure: Regenerate.
75
76 2001-12-18 matthew green <mrg@eterna.com.au>
77
78 * configure.in (m68k-*-netbsdelf*): New target.
79 (m68k-*-netbsd*): Also include ELF support.
80 (m68k-*-netbsdaout*): New alias for m68*-*-netbsd*.
81 * configure: Regenerate.
82
83 2001-12-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
84
85 * gasp.c (main): Protoype.
86
87 2001-12-17 Richard Henderson <rth@redhat.com>
88
89 * config/tc-alpha.c (alpha_handle_align): Encode unop with RB as $sp.
90
91 2001-12-17 Nick Clifton <nickc@cambridge.redhat.com>
92
93 * cgen.c: Add prototype for queue_fixup.
94 (gas_cgen_parse_operand): Move initilisastion of errmsg to avoid
95 possible longjmp corruption.
96 * cgen.h: Add prototype for gas_cgen_md_operand.
97
98 2001-12-15 Alan Modra <amodra@bigpond.net.au>
99
100 * config/obj-elf.c (obj_elf_init_stab_section): References are
101 kept to section name strings. Don't alloca them!
102
103 2001-12-12 Alexandre Oliva <aoliva@redhat.com>
104
105 * config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after
106 OPERAND_ATSIGN as O_absent.
107
108 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
109 Richard Henderson <rth@redhat.com>
110
111 * configure.in: Add support for xstormy16.
112 * configure: Regenerated.
113 * Makefile.am: Add support for xstormy16.
114 * Makefile.in: Regenerated.
115 * config/tc-xstormy16.c: New file.
116 * config/tc-xstormy16.h: New file.
117
118 2001-12-06 Richard Earnshaw (rearnsha@arm.com)
119
120 * tc-arm.c (do_arit, do_cmp, do_mov, do_ldst, do_ldstt, do_ldmstm)
121 (do_branch, do_swi, do_adr, do_adrl, do_empty, do_mul, do_mla)
122 (do_swap, do_msr, do_mrs, do_mull, do_ldstv4, do_bx, do_blx)
123 (do_bkpt, do_clz, do_lstc2, do_cdp2, do_co_reg2, do_smla, do_smlal)
124 (do_smul, do_qadd, do_pld, do_ldrd, do_co_reg2c, do_cdp, do_lstc)
125 (do_co_reg, do_fpa_ctrl, do_fpa_ldst, do_fpa_ldmstm, do_fpa_monadic)
126 (do_fpa_dyadic, do_fpa_cmp, do_fpa_from_reg, do_fpa_to_reg, do_mia)
127 (do_mar, do_mra, do_c_binops, do_c_binops_1, do_c_binops_2)
128 (do_c_binops_3, do_c_triple, do_c_triple_4, do_c_triple_5, do_c_quad)
129 (do_c_quad_6, do_c_dspsc, do_c_dspsc_1, do_c_dspsc_2, do_c_shift)
130 (do_c_shift_1, do_c_shift_2, do_c_ldst, do_c_ldst_1, do_c_ldst_2)
131 (do_c_ldst_3, do_c_ldst_4, do_branch25): Delete redundant argument,
132 FLAGS.
133 (struct asm_opcode): Adjust parms field accordingly.
134 (md_assemble): Don't pass dummy second argument when calling worker
135 functions.
136 (build_arm_ops_hsh): Add prototype
137 (BAD_FLAGS): Delete.
138
139 2001-12-05 Richard Earnshaw <rearnsha@arm.com>
140
141 * tc-arm.c (struct asm_opcode): Delete comp_suffix and flags. Add
142 cond_offset. Rename variants->variant.
143 (insns): Adjust for new format. Explicitly code each variant that
144 takes flags. Remove temporary instructions.
145 (struct arm_it): Remove redundant field suffix.
146 (s_flag, ldr_flags, str_flags, byte_flag, cmp_flags, ldm_flags)
147 (stm_flags, lfm_flags, sfm_flags, round_flags, fix_flags, except_flag)
148 (long_flag): Delete.
149 (struct asm_flg): Delete.
150 (LONGEST_INST): Delete.
151 (V4_STR_BIT): Define.
152 (struct thumb_opcode): Rename variants->variant.
153 (do_empty): Renamed from do_nop.
154 (ldst_extend): Delete argument hwse. Split code for half-word and
155 signed byte instructions to ...
156 (ldst_extend_v4): ... here.
157 (ld_mode_required_here): Use ldst_extend_v4.
158 (do_ldrd): Simplify now that this is only called for ldrd. No
159 need to test for XScale, which was wrong anyway. Don't reject r12
160 as a target register. Add test that ldrd doesn't update an index
161 register.
162 (do_pld): Don't allow post-indexed or write-back addressing modes.
163 Adjust call to ldst_extend.
164 (do_adr): Split code for adrl to ...
165 (do_adrl): ... here.
166 (do_cmp): No need to fold in COND_BIT.
167 (do_ldst): Simplify. Split code for ldrt/strt into do_ldstt. Split
168 code to handle half-word and signed byte instructions to ...
169 (do_ldstv4): ... here.
170 (do_ldstt): New function. Handle load/store with translate.
171 (do_ldmstm): Write feature modification bits directly into
172 inst.instruction.
173 (do_fpa_ldst): Remove suffix handling code.
174 (do_fpa_dyadic, do_fpa_monadic, do_fpa_from_reg): Likewise.
175 (do_fpa_ldmstm): Type of access is now held in inst.instruction.
176 (build_arm_ops_hsh): New function.
177 (md_begin): Call it. Don't build the ARM opcode directly.
178 (md_assemble): Simplify ARM instruction handling.
179
180 2001-12-05 Arati Dikey <aratid@kpit.com>
181
182 * tc-sh.c (parse_at): Corrected incorrect op->type selection due
183 to missing 'else'.
184
185 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
186
187 * config/tc-d10v.c (write_2_short): Don't skip dummy fixups, so
188 that we can tell which operand refers to the insn put in the L
189 container and mark it as such, so that the relocation type can be
190 adjusted.
191
192 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
193
194 * config/tc-mips.c (mips_cpreturn_offset): Better comment.
195 (load_register): Better error message. Cast away signedness
196 mismatches. Add casts needed for varargs.
197 (load_address): Replace checks of HAVE_64BIT_ADDRESS with dbl.
198 Remove superfluous casts.
199 (macro): Cast away signedness mismatches. Remove superfluous casts.
200 (s_cpload): Fix wrong comment.
201 (s_mips_weakext): Standardize output message.
202 (get_number): Likewise.
203
204 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
205
206 * config/tc-mips.c (append_insn): Add jump address range overflow
207 check.
208
209 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
210
211 * config/tc-mips.c (md_parse_option): Fix comment. Allow -mabi option
212 for ELF only.
213 (show): Document -mabi option.
214
215 2001-12-03 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
216
217 * config/tc-arm.c (md_parse_option): Only clear cpu part when
218 specifying 'xscale' cpu (don't change the fpu part).
219
220 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
221
222 * config/tc-d10v.c (find_opcode): Reject SP operand if
223 OPERAND_NOSP flag is present.
224
225 2001-12-03 Eric Christopher <echristo@redhat.com>
226
227 * config/tc-mips.c (tc_gen_reloc): One missed BFD_RELOC_MIPS_GPREL.
228
229 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
230
231 * config/tc-mips.c (macro_build): Replace BFD_RELOC_MIPS_GPREL
232 by BFD_RELOC_GPREL16.
233 (load_address): Likewise.
234 (macro): Likewise.
235 (md_apply_fix): Likewise. Replace BFD_RELOC_MIPS_GPREL32 by
236 BFD_RELOC_GPREL32.
237 (s_gpword): Replace BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
238 (tc_gen_reloc): Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
239 *config/tc-mips.h: Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
240
241 2001-11-29 Alexandre Oliva <aoliva@redhat.com>
242
243 * config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
244 prefix `+'.
245
246 * config/tc-d10v.c (find_opcode): Reject non-SP operand if
247 flags requires SP.
248
249 2001-11-29 Arati Dikey <aratid@kpit.com>
250
251 * tc-sh.c (parse_at): Removed case-sensitivity of index register
252 R8, R9.
253
254 2001-11-28 Jakub Jelinek <jakub@redhat.com>
255
256 * write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used
257 in reloc if it has non-zero addend.
258 * config/tc-alpha.c (tc_gen_reloc): Reinstall SEC_MERGE check.
259 * config/tc-sparc.c (md_apply_fix3): Likewise.
260
261 2001-11-28 Andreas Schwab <schwab@suse.de>
262
263 * as.c (parse_args): Call md_after_parse_args if defined.
264 * config/tc-ia64.h (md_after_parse_args): Define.
265 * config/tc-ia64.c (ia64_after_parse_args): Reject --gstabs.
266 * doc/internals.texi (CPU backend): Document md_after_parse_args.
267
268 2001-11-23 Jakub Jelinek <jakub@redhat.com>
269
270 * config/tc-alpha.c (tc_gen_reloc): Remove SEC_MERGE test.
271 * write.c (adjust_reloc_syms): Don't handle relocs against
272 SEC_MERGE section symbols specially.
273 (fixup_segment): Likewise.
274
275 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
276
277 * config/tc-mips.c (mips_need_elf_addend_fixup): New, extracted from...
278 (md_apply_fix3): ...here. Don't prevent the symbol value being
279 subtracted twice from GPREL addends.
280 (tc_gen_reloc): Add the symbol value to a GPREL addend if it was
281 subtracted by the previous function.
282
283 2001-11-20 Nick Clifton <nickc@cambridge.redhat.com>
284
285 * config/tc-avr.c (md_apply_fix3): Fix typo introduced by
286 md_apply_fix3 change.
287
288 2001-11-20 Ben Elliston <bje@redhat.com>
289
290 * config/tc-m88k.c (md_apply_fix3): Match local variable `val' to
291 usage after md_apply_fix3 cleanups.
292
293 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
294
295 * doc/c-mmix.texi: Use texinfo 4 features.
296 (MMIX-mmixal): Fix typo.
297
298 2001-11-17 Hans-Peter Nilsson <hp@axis.com>
299
300 * config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
301 val assignment.
302
303 2001-11-16 Michael Snyder <msnyder@redhat.com>
304
305 * stabs.c (stabs_generate_asm_lineno): Remember file and line number
306 from one call to the next, and eliminate consecutive duplicates
307 (thereby emitting only one line symbol per source line).
308 * dwarf2dbg.c (dwarf2_gen_line_info): Ditto.
309
310 2001-11-16 Alan Modra <amodra@bigpond.net.au>
311
312 * config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
313
314 2001-11-15 H.J. Lu <hjl@gnu.org>
315
316 * config/tc-hppa.c (md_apply_fix3): Fix a typo.
317
318 2001-11-15 H.J. Lu <hjl@gnu.org>
319
320 * config/tc-alpha.c (md_apply_fix3): Fix a typo.
321
322 2001-11-15 Nick Clifton <nickc@cambridge.redhat.com>
323
324 * write.c (fixup_segment): Remove references to md_apply_fix and
325 TC_HANDLE_FX_DONE.
326 * cgen.c, config/obj-coff.c, config/tc-*.c: Update all occurances
327 of md_apply_fix to md_apply_fix3.
328 Make all md_apply_fix3 functions void.
329 * cgen.h, config/obj-coff.h, tc-*.h: Remove all definitions of
330 MD_APPLY_FIX3 and TC_HANDLE_FX_DONE.
331 * doc/internals.texi: Update references to md_apply_fix3.
332 * tc.h: Update prototype for md_apply_fix3.
333
334 2001-11-15 Alan Modra <amodra@bigpond.net.au>
335
336 * config/tc-i386.h (md_end): Define.
337 (i386_elf_emit_arch_note): Declare.
338 (CpuUnknown): Delete.
339 * config/tc-i386.c (default_arch): Constify.
340 (smallest_imm_type): Remove CpuUnknown test.
341 (md_assemble): Don't bother checking cpu_arch_flags non-zero.
342 (i386_elf_emit_arch_note): New function.
343
344 * po/POTFILES.in: Regenerate.
345
346 2001-11-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
347
348 * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
349
350 2001-11-15 Alan Modra <amodra@bigpond.net.au>
351
352 * frags.c (frag_grow): Revert last change.
353
354 * dwarf2dbg.c (get_frag_fix): Align last frag size.
355
356 * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
357 to operand->insert.
358 (md_assemble): Likewise.
359
360 2001-11-12 Nick Clifton <nickc@cambridge.redhat.com>
361
362 * frags.c (frag_grow): Use frag_make_room() to grow the
363 obstack.
364
365 2001-11-14 Nick Clifton <nickc@cambridge.redhat.com>
366
367 * config/tc-sparc.c (md_apply_fix3): Do not remove the symbol's
368 value from the addend for fixups against local symbols in
369 SEC_MERGE sections - it was not added in, in the first place.
370
371 2001-11-11 Timothy Wall <twall@alum.mit.edu>
372
373 * write.c (relax_segment): Convert symbol address into an octet
374 offset prior to adding to the frag address, which is an octet
375 offset. Add comments to that effect.
376 * config/tc-tic54x.c: Fix bugs causing tests to fail.
377 * config/tc-tic54x.h: Ditch PARAMS macro.
378
379 2001-11-13 Alan Modra <amodra@bigpond.net.au>
380
381 * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
382 put in note section. Use sizeof instead of hard-coded constants.
383
384 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
385
386 * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
387 (md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
388 OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
389 Sort options a bit more logical.
390 (md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
391 OPTION_MABI only for elf targets.
392
393 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
394
395 * config/tc-mips.c (set_at): Add cast needed for varargs.
396 (load_register): Likewise.
397 (macro): Likewise. Some code reformatting.
398 (macro2): Add cast needed for varargs.
399 (mips16_macro): Likewise.
400
401 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
402
403 * config/tc-mips.c (md_assemble): Remove superflous casts.
404 (append_insn): Likewise.
405 (mips16_macro_build): Likewise.
406 (macro): Likewise.
407 (mips16_ip): Likewise.
408 (s_cpload): Likewise.
409 (mips_relax_frag): Likewise.
410
411 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
412
413 * config/tc-mips.c (mips_abi_level): Move in front of
414 mips_set_options.
415 (mips_set_options): Add members gp32, fp32, abi.
416 (file_mips_gp32): New flag.
417 (file_mips_fp32): New flag.
418 (mips_opts): Initialize the new members.
419 (mips_gp32): Remove.
420 (mips_fp32): Remove.
421 (HAVE_32BIT_GPRS): Use the new values from mips_opts.
422 (HAVE_32BIT_FPRS): Likewise.
423 (HAVE_NEWABI): Likewise.
424 (HAVE_64BIT_OBJECTS): Likewise.
425 (md_begin): Likewise. Save default (file) values.
426 (md_parse_option): Use the new values from mips_opts.
427 (s_mipsset): Likewise. Fix logic to keep the ABI selection if
428 possible. Let .set mipsN work together with .set push/pop.
429 Enhance error messages.
430 (mips_elf_final_processing): Use file_mips_* for header processing.
431
432 2001-11-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
433
434 * config/tc-avr.c (mcu_types): Update for new devices.
435
436 2001-11-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
437
438 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
439 the page man title.
440 * doc/Makefile.in: Rebuild.
441 * doc/as.texinfo: Do not put man SEEALSO in document;
442 Use @command for commands, @option for options; Reorganize usage
443 to clearly identify target specific options.
444
445 2001-11-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
446
447 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
448
449 2001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
450
451 * config/tc-mips.c (my_getSmallParser): Fix small parser bug.
452
453 2001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
454
455 * config/tc-s390.c (tc_s390_force_relocation): Force all relocations
456 that need the global offset table.
457 (md_apply_fix3): Add code to undo opertions done in fixup_segment
458 triggered by TC_FORCE_RELOCATION.
459 * config/tc-s390.h (TC_FORCE_RELOCATION): Replace macro code with
460 a call to function tc_s390_force_relocation.
461 (TC_FIX_ADJUSTABLE): Define.
462
463 2001-11-04 Chris Demetriou <cgd@broadcom.com>
464
465 * configure.in (mips-*-netbsd*): Add support for target.
466 * configure: Regenerate.
467
468 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
469
470 * configure.in (ALL_LINGUAS): Add 'fr'.
471 * configure: Regernate.
472 * po/fr.po: New file. Obtained from the translation project web
473 site.
474
475 2001-11-02 Richard Earnshaw <rearnsha@arm.com>
476
477 * tc-arm.c: Re-arrange prototypes by architecture.
478 (insns): Re-arrange instructions by archtitecture. Pld instruction
479 is part of ARMv5E.
480 (tinsns): blx and bkpt are part of ARMv5T.
481 (do_fp_{ctrl,ldst,ldstm,dyadic,monadic,cmp,from_reg,to_reg}): Rename
482 to do_fpa_*. All callers changed.
483
484 * tc-arm.c (insns): Add two temporary instructions to handle
485 ldrd/strd.
486
487 2001-11-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
488
489 * config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
490 for bra/bsr and use frag_variant(), this ensure that the possible
491 16-bit BFD_RELOC_16 will be in the same frag.
492
493 2001-10-31 Chris Demetriou <cgd@broadcom.com>
494
495 * config/tc-mips.c (HAVE_32BIT_ADDRESSES): If compiling embedded
496 PIC code, assume pointers the same size as GPRs.
497 (macro): In M_LA_AB handling for embedded PIC code, support
498 "la $treg,foo-bar($breg)". In load/store handling
499 (label ld_st) support "<op> $treg,<sym>-<local_sym>($breg)"
500 which is used by the compiler for switch statements.
501 In load/store double multi-instruction macro handling
502 (label ldd_std) add a comment that no special handling
503 is currently done for embedded PIC.
504 (mips_ip): In 'o' (16-bit offset) case, only accept 16
505 bit offsets.
506
507 2001-10-31 Richard Earnshaw <rearnsha@arm.com>
508
509 General cleanup of feature definitions.
510 * tc-arm.c (ARM_EXT_LONGMUL, ARM_EXT_HALFWORD, ARM_EXT_THUMB): Delete.
511 (ARM_2UP, ARM_ALL, ARM_3UP, ARM_6UP): Delete.
512 (FPU_CORE, FPU_FPA10, FPA_FPA11, FPU_ALL, FPA_MEMMULTI): Delete.
513 (ARM_EXT_V{1,2,2S,3,3M,4,4T,5T,5ExP}): New defines.
514 (ARM_EXT_V{5,5E}): Synchronize with above.
515 (ARM_ARCH_V*): Define a complete set in terms of above features.
516 (ARM_{1,2,3,250,6,7,8,9,STRONG}): Define in terms of architecture.
517 (FPU_FPA_EXT_V[12]): Define.
518 (FPU_ARCH_FPE, FPU_ARCH_FPA): Define in terms of above.
519 (FPU_ANY): Define.
520 (FPU_DEFAULT): Default to FPA.
521 (CPU_DEFAULT): For XScale, this is now just ARM_ARCH_XSCALE; for
522 Thumb, this is now ARM_ARCH_V5T.
523 (insns): Rework for new feature defines.
524 (tinsns): Likewise.
525 (opcode_select, do_ldst, md_begin, md_parse_option): Likewise.
526
527 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
528
529 * configure.in: Handle sh*eb-*-linux* and sh*-*-linux*.
530 * configure: Regenerate.
531 * Makefile.in: Regenerate.
532 * doc/c-sh.texi (SH Options): Added descriptions.
533
534 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
535
536 * configure.in: Update for MMIX port.
537 * Makefile.am: Ditto. Regenerate dependencies.
538 * Makefile.in: Regenerate.
539 * configure: Regenerate.
540 * config/tc-mmix.h, config/tc-mmix.c: New files.
541 * doc/Makefile.am (CPU_DOCS): Add c-mmix.texi
542 * doc/Makefile.in: Regenerate.
543 * doc/all.texi: @set MMIX.
544 * doc/as.texinfo: Ditto. Add MMIX gas manpage option overview.
545 Include c-mmix.texi.
546 * doc/c-mmix.texi: New file.
547
548 2001-10-24 Chris Demetriou <cgd@broadcom.com>
549
550 * config/tc-mips.c (hilo_interlocks, cop_interlocks): Make
551 these evaluate to true if mips_arch indicates SB-1.
552
553 2001-10-23 Alan Modra <amodra@bigpond.net.au>
554
555 * as.c (parse_args): Print the date as well for --version.
556
557 2001-10-20 Chris Demetriou <cgd@broadcom.com>
558
559 * config/tc-mips.c (md_show_usage): Print "sb1" for Broadcom
560 SB-1 CPU for consistency.
561 (mips_cpu_info_table): Tweak comment about SB-1.
562
563 2001-10-20 H.J. Lu <hjl@gnu.org>
564
565 * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
566 (cirrus_parse_offset): Likewise.
567
568 2001-10-19 Nick Clifton <nickc@cambridge.redhat.com>
569
570 * config/tc-arm.c: Restore line_comment_chars.
571
572 2001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
573
574 * config/tc-arm.c (comment_chars): Remove semi-colon accidentally
575 added to the list.
576
577 2001-10-18 Hans-Peter Nilsson <hp@bitrange.com>
578
579 * write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
580 for undefined symbols.
581
582 2001-10-17 Chris Demetriou <cgd@broadcom.com>
583
584 * doc/as.texinfo (MIPS ISA options): Added accidentally
585 omitted "-mips64" option to list of options.
586
587 2001-10-17 matthew green <mrg@redhat.com>
588
589 * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
590 -m7410, -m7450 and -m7455 options.
591
592 2001-10-17 Alan Modra <amodra@bigpond.net.au>
593
594 * config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
595 (ppc_size): Select PPC_OPCODE_64 if 64 bit.
596 (md_begin): Don't set ppc_size here.
597 (ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
598 (md_shortopts): Constify.
599 (md_longopts): Likewise.
600 (md_longopts_size): Likewise.
601 (ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
602 64-bit opcodes.
603 (ppc_machine): Explain why this function is a nop.
604
605 2001-10-17 Alan Modra <amodra@bigpond.net.au>
606
607 * bit_fix.h: Comment typo fix.
608 * config/tc-mips.c: Likewise.
609 * config/tc-sh.c: Likewise.
610 * config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
611
612 * configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
613 that autoheader doesn't duplicate config.in entries.
614 (DEFAULT_ARCH): Ditto.
615 * configure: Regenerate.
616 * config.in: Regenerate.
617
618 2001-10-16 Alan Modra <amodra@bigpond.net.au>
619
620 From Andrew Pines <apines@cosmodog.com>
621 * config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
622
623 2001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
624 Hans-Peter Nilsson <hp@bitrange.com>
625
626 * config/tc-sh.c (shl): Remove.
627 (big): New function.
628 (little): Remove shl handling. Emit error for endian mismatch.
629 (md_show_usage): Add description of -big.
630 (md_parse_option): Handle OPTION_BIG. Remove shl handling.
631 (OPTION_BIG): Add.
632 (md_pseudo_table): Add .big.
633 (md_longopts): Add -big.
634 (md_begin): Don't set target_big_endian here.
635 * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
636 (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
637 (shl): Remove.
638 * configure.in (endian): Default is big.
639 (sh-*-pe*): Little endian.
640 (cpu_type): Set sh for target sh*.
641 * configure: Regenerate.
642
643 2001-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
644
645 * config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
646 relocations.
647
648 2001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
649
650 * config/tc-arm.c: Replace CONST with const.
651
652 * cgen.c: Tidy up formatting.
653
654 2001-10-12 matthew green <mrg@redhat.com>
655
656 * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
657 flags, equivalent to -m7400. New -maltivec to enable AltiVec
658 instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable
659 64-bit and 32-bit BookE support, respectively. Change -m403 and
660 -m405 to set PPC403 option.
661 (md_show_usage): Adjust for new options.
662 * doc/all.texi: Set PPC.
663 * doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
664 * doc/c-ppc.texi: New file.
665 * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
666 * doc/Makefile.in: Regenerate.
667
668 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
669
670 * read.c (s_bad_endr): New function. Issues a warning message
671 about a bad use of the .rept pseudo op.
672 (po_table[]): Add .endr.
673 * read.h: Prototype s_bad_endr.
674
675 * CONTRIBUTORS: Update contact email address.
676
677 2001-10-11 Kazu Hirata <kazu@hxi.com>
678
679 * config/tc-alpha.c: Fix comment typos.
680 * config/tc-cris.c: Likewise.
681 * config/tc-hppa.c: Likewise.
682 * config/tc-i370.c: Likewise.
683 * config/tc-mips.c: Likewise.
684 * config/tc-mn10200.c: Likewise.
685 * config/tc-mn10300.c: Likewise.
686 * config/tc-sh.c: Likewise.
687 * config/tc-tahoe.c: Likewise.
688 * config/tc-v850.c: Likewise.
689
690 2001-10-11 Kazu Hirata <kazu@hxi.com>
691
692 * app.c: Fix comment typos.
693 * bit_fix.h: Likewise.
694 * expr.c: Likewise.
695 * itbl-ops.c: Likewise.
696
697 2001-10-11 Nick Clifton <nickc@cambridge.redhat.com>
698
699 * input-file.c: Include safe-ctype.h.
700 (input_file_open): Use ISSPACE instead of isspace.
701
702 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
703
704 * config/tc-mips.c (mips_cpreturn_offset): New variable.
705 (mips_cpreturn_register): Likewise.
706 (mips_gp_register): Likewise.
707 (s_cpsetup): New function prototype.
708 (s_cplocal): Likewise.
709 (s_cpreturn): Likewise.
710 (s_gpvalue): Likewise.
711 (mips_pseudo_table): Add .cpsetup, .cplocal, .cpreturn, .gpvalue
712 pseudo-ops.
713 (macro): Don't warn about .cprestore for NewABI.
714 (md_pcrel_from): Code cleanup.
715 (mips_force_relocation): Force output of some NewABI relocations even
716 without a defined symbol.
717 (s_cpload): Ignore .cpload for NewABI.
718 (s_cpsetup): Handle .cpsetup.
719 (s_cplocal): Handle .cplocal.
720 (s_cprestore): Ignore .cprestore for NewABI.
721 (s_cpreturn): Handle .cpreturn.
722 (s_gpvalue): Handle .gpvalue.
723 (s_cpadd): Ignore .cpadd for NewABI.
724 (nopic_need_relax): Take g_switch_value into account as gp
725 optimization.
726 (tc_gen_reloc): Don't handle BFD_RELOC_MIPS_{CALL,GOT}* for NewABI.
727
728 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
729
730 * config/tc-mips.c (my_getSmallParser): New function prototype.
731 (small_ex_type): Named this enum, more return values for
732 my_getSmallExpression.
733 (mips_ip): Allow SPC and HT between arguments. Handle some NewABI
734 triple relocations. Protect some parts with ifdef OBJ_ELF.
735 (percent_op_match): New struct, lookup table for %some_reloc().
736 (my_getSmallParser): New function, parses nested percent_ops also.
737 (my_getSmallExpression): Rewite to support nested percent_ops.
738
739 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
740
741 * config/tc-mips.c
742 (load_address): Support both 32- and 64-bit addresses.
743 (macro): Call load_register correctly. Expand 64-bit loads ans stores.
744 (macro2): Call load_address correctly.
745
746 2001-10-09 Christian Groessler <cpg@aladdin.de>
747
748 * config/tc-z8k.c: Include opcodes/z8k-opc.h after bfd.h
749 since z8k-opc.h now uses the PARAMS macro.
750
751 2001-10-09 Aldy Hernandez <aldyh@redhat.com>
752
753 * config/tc-arm.c: Change MAVERIK to MAVERICK.
754
755 2001-10-09 Alan Modra <amodra@bigpond.net.au>
756
757 * config/obj-elf.c: Make use of elf_group_name and elf_next_in_group
758 throughout file.
759 (obj_elf_change_section): Rename "group" to "group_name".
760 (obj_elf_section): Likewise.
761 (elf_frob_file): Don't use sec->lineno for SHT_GROUP section to store
762 first member section; Instead use elf_next_in_group.
763
764 2001-10-09 Alan Modra <amodra@bigpond.net.au>
765
766 * config/obj-elf.c: (obj_elf_change_section): Add "group" param.
767 Set elf_section_data group from it. Warn if group name changed.
768 (obj_elf_parse_section_letters): Parse 'G' too.
769 (obj_elf_section): Parse group name.
770 (struct group_list): New.
771 (build_group_lists): New function.
772 (elf_frob_file): Create SEC_GROUP section(s).
773
774 * config/obj-elf.c: (elf_copy_symbol_attributes): Zap trailing
775 whitespace.
776
777 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
778
779 * doc/arm/c-arm.texi (ARM Options): Add arm9e documentation.
780
781 * config/tc-arm.c (ARM_EXT_MAVERIK): New macro.
782 (cirrus_regtype): New enum.
783 (LONGEST_INST): Change to 10.
784 (CIRRUS_MODE1): New.
785 (CIRRUS_MODE2): New.
786 (CIRRUS_MODE3): New.
787 (CIRRUS_MODE4): New.
788 (CIRRUS_MODE5): New.
789 (CIRRUS_MODE6): New.
790 (insns): Add cirrus dsp instructions.
791 (ARM_EXT_MAVERIKSC_REG): New.
792 (cirrus_register): New.
793 (cirrus_mvf_register): New.
794 (cirrus_mvd_register): New.
795 (cirrus_mvfx_register): New.
796 (cirrus_mvdx_register): New.
797 (cirrus_mvax_register): New.
798 (ARM_EXT_MAVERIKsc_register): New.
799 (reg_table): Add cirrus registers.
800 (cirrus_valid_reg): New.
801 (cirrus_reg_required_here): New.
802 (do_c_binops_1): New.
803 (do_c_binops_2): New.
804 (do_c_binops_3): New.
805 (do_c_triple_4): New.
806 (do_c_triple_5): New.
807 (do_c_quad_6): New.
808 (do_c_dspsc_1): New.
809 (do_c_dspsc_2): New.
810 (do_c_shift_1): New.
811 (do_c_shift_2): New.
812 (do_c_ldst_1): New.
813 (do_c_ldst_2): New.
814 (do_c_ldst_3): New.
815 (do_c_ldst_4): New.
816 (do_c_binops): New.
817 (do_c_triple): New.
818 (do_c_quad): New.
819 (do_c_dspsc): New.
820 (do_c_shift): New.
821 (cirrus_parse_offset): New.
822 (do_c_ldst): New.
823 (md_parse_option): Add arm9e.
824 (md_show_usage): Same.
825
826 2001-10-08 Tom Rix <trix@redhat.com>
827
828 * config/tc-ppc (ppc_bf, ppc_biei) : Set first .bi lineno value to
829 location of next .bf
830 * config/obj-coff.c (coff_frob_symbol) : XCOFF does not use endndx.
831
832 2001-10-07 Alan Modra <amodra@bigpond.net.au>
833
834 * config/obj-elf.c: Standardize error/warning messages - don't
835 capitalise, no final period or newline, don't say "ignoring" for
836 as_bad messages. In some cases, change the wording to that used
837 elsewhere for similar messages.
838 (obj_elf_section_name): New function, split out from ..
839 (obj_elf_section): .. here. Correctly mask off SHF_MERGE if
840 entsize not specified.
841
842 2001-10-05 Jakub Jelinek <jakub@redhat.com>
843
844 * doc/as.texinfo: Document M and S ELF section flags.
845
846 2001-10-05 Alan Modra <amodra@bigpond.net.au>
847
848 * subsegs.c (subseg_text_p): Return 0 for absolute section.
849 * read.c (do_align): If in absolute section, warn about and ignore
850 non-zero fill pattern.
851
852 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
853
854 * config/tc-mn10300.c (tc_gen_reloc): Don't free
855 reloc->sym_ptr_ptr if it's not allocated.
856
857 2001-10-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
858
859 * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
860 relocation triple.
861 (prev_insn_fixp): Likewise.
862 (append_insn): Changed prototype to accept a relocation pointer.
863 (imm_reloc): Make it an array.
864 (offset_reloc): Likewise.
865 (md_assemble): Handle triple relocations.
866 (append_insn): Likewise. Add handling for some NewABI relocations.
867 (mips_no_prev_insn): Handle triple relocations.
868 (macro_build): Likewise. Add handling for some NewABI relocations.
869 Move handling for the 'u' case to append_insn().
870 (mips16_macro_build): Handle triple relocations.
871 (macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
872 for NewABI.
873 (mips_ip): Handle triple relocations.
874 (mips16_ip): Likewise.
875 (mips_force_relocation): Force handling of triple relocations
876 without symbols for NewABI.
877 (md_apply_fix): Add handling for some NewABI relocations.
878
879 2001-10-05 Alan Modra <amodra@bigpond.net.au>
880
881 * config/tc-i386.c (parse_register): If not producing code for
882 x86_64, reject x86_64 register name matches.
883 (md_assemble): Remove now redundant check for x86_64 regs.
884
885 2001-10-04 Alan Modra <amodra@bigpond.net.au>
886
887 * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
888 as BFD_DEFAULT_TARGET_SIZE.
889 (ppc_tc): Likewise.
890 (ppc_is_toc_sym): Likewise.
891 (md_apply_fix3): Likewise.
892
893 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
894
895 * config/tc-mips.c (mips_64): Remove.
896 (mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
897 in it.
898 (mips_abi_level, mips_abi): New enum.
899 (mips_32bit_abi): Remove.
900 (HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
901 (HAVE_NEWABI): New define.
902 (HAVE_64BIT_OBJECTS): New define.
903 (HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
904 (HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
905 (support_64bit_objects): New prototype.
906 (md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
907 .reginfo section for n32, use .MIPS.options instead.
908 (support_64bit_objects): New function, code from md_parse_option.
909 (md_longopts): Add -n32 option.
910 (md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
911 Add -n32 option. Protect with OBJ_ELF.
912 (s_mipsset): Use mips_abi instead of mips_32bit_abi.
913 (mips_elf_final_processing): Likewise. Don't write .reginfo section
914 for n32, use .MIPS.options instead.
915
916 2001-10-03 Alan Modra <amodra@bigpond.net.au>
917
918 * po/POTFILES.in: Regenerate.
919 * configure: Regenerate.
920
921 2001-10-02 Alan Modra <amodra@bigpond.net.au>
922
923 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
924 bits if target is 64 bit.
925
926 * doc/as.texinfo (listing): Fix typo.
927
928 * as.c (print_version_id): Use BFD_VERSION_STRING in place of
929 BFD_VERSION.
930 * Makefile.am (Makefile): Depend on bfd/configure.in.
931 Run "make dep-am".
932 * Makefile.in: Regenerate.
933
934 2001-09-30 H.J. Lu <hjl@gnu.org>
935
936 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
937 and "ams" for compatibility.
938
939 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
940
941 * config/tc-sh.c (md_pcrel_from_section): Transformed from
942 md_pcrel_from. Handle pc-relativeness against link-time
943 symbol. Handle relativeness to elsewhere than the fixup.
944 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
945 (md_pcrel_from_section): Prototype.
946
947 * Makefile.am: Update dependencies with "make dep-am".
948 * Makefile.in: Regenerate.
949
950 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
951
952 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
953 (print_opcode_format, skip_whites): Likewise.
954 (convert_branch, m68hc11_new_insn): Likewise.
955 (build_dbranch_insn, build_indexed_byte): Likewise.
956 (build_reg_mode, find, find_opcode): Likewise.
957 (print_insn_format): Fix call to print_opcode_format.
958 (md_assemble): Fix call to build_dbranch_insn.
959
960 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
961
962 * config/tc-arm.c: Add missing prototypes.
963
964 2001-09-26 Jeff Johnston <jjohnstn@redhat.com>
965
966 * input-file.c (input_file_open): When reading the
967 first line looking for #NO_APP, prepare for the possibility
968 of finding #APP instead. Also fix algorithm to allow
969 white-space to follow either #NO_APP or #APP directives.
970
971 2001-09-25 Geoff Berry <geoff.berry@bops.com>
972
973 * listing.c (buffer_line): Don't write past the end of `line' when
974 EOF is reached.
975
976 2001-09-25 Alexandre Oliva <aoliva@redhat.com>
977
978 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
979 relocation for differences between symbols in a section other
980 than the one in which the difference is to be placed; apply
981 the relocation instead.
982
983 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
984
985 * config/tc-arc.c: Add missing prototype.
986 (md_atof): Change type to int. Add missing prototype.
987 * config/tc-arc.h: Prototype exported functions.
988
989 2001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
990
991 * as.c: Add missing function prototype.
992 * config/obj-aout.c: Fix compile time warning.
993
994 2001-09-21 Bruno Haible <haible@clisp.cons.org>
995
996 * config/tc-openrisc.c: Don't include <ctype.h>.
997
998 2001-09-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
999
1000 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
1001
1002 2001-09-19 Alan Modra <amodra@bigpond.net.au>
1003
1004 * config/tc-i370.c: Fix typo in last change.
1005
1006 2001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
1007
1008 * doc/as.texinfo (Symbol Names): Improve documentation on local
1009 labels and add documenation about dollar labels.
1010
1011 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1012
1013 * as.h: Don't include <ctype.h>.
1014 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
1015 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
1016 (atof_generic): Use ISDIGIT instead of isdigit.
1017 * config/m68k-parse.y: Include "safe-ctype.h".
1018 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
1019 * config/obj-elf.c: Include "safe-ctype.h".
1020 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
1021 * config/obj-vms.c: Include "safe-ctype.h".
1022 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
1023 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
1024 instead of isupper/islower/toupper/tolower.
1025 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
1026 (insert_sreg): Use TOUPPER instead of islower/toupper.
1027 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
1028 isalpha/isalnum/isupper/tolower.
1029 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
1030 isdigit.
1031 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
1032 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
1033 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
1034 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
1035 (arc_extoper): Use TOLOWER instead of isupper/tolower.
1036 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
1037 (arm_psr_parse): Use ISALPHA instead of isalpha.
1038 (accum0_required_here): Use ISALNUM instead of isalnum.
1039 (do_ldrd): Use ISSPACE instead of isspace.
1040 (decode_shift): Use ISALPHA instead of isalpha.
1041 (insert_reg): Use TOUPPER instead of islower/toupper.
1042 (arm_reg_parse): Use ISALPHA instead of isalpha.
1043 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
1044 isalnum/ispunct/tolower.
1045 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
1046 (md_parse_option): Use TOLOWER instead of tolower.
1047 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
1048 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
1049 (cris_process_instruction): Use ISLOWER instead of islower.
1050 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
1051 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
1052 (get_flags): Use ISSPACE instead of isspace.
1053 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
1054 (do_assemble): Use TOLOWER instead of tolower.
1055 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
1056 (do_assemble): Use TOLOWER instead of tolower.
1057 (d30v_start_line): Use ISSPACE instead of isspace.
1058 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
1059 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
1060 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
1061 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
1062 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
1063 (start_label): Use ISALPHA instead of isalpha.
1064 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
1065 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
1066 isupper/islower/tolower.
1067 (pa_parse_number): Use ISDIGIT instead of isdigit.
1068 (pa_chk_field_selector): Use TOLOWER instead of tolower.
1069 (pa_stringer): Use ISDIGIT instead of isdigit.
1070 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
1071 (register_name): Use ISALPHA instead of isalpha.
1072 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
1073 isalnum/islower/tolower.
1074 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
1075 isdigit/isalpha.
1076 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
1077 isalpha/isxdigit.
1078 (md_assemble): Use ISSPACE instead of isspace.
1079 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
1080 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
1081 instead of isdigit/islower/isupper/tolower/isalpha.
1082 (output_invalid): Use ISPRINT instead of isprint.
1083 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
1084 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1085 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
1086 (get_args): Use ISALNUM instead of isalnum.
1087 * config/tc-ia64.c: Include "safe-ctype.h".
1088 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1089 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
1090 (ia64_parse_name): Likewise.
1091 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
1092 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
1093 instead of isspace/isalnum/isupper/tolower.
1094 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
1095 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
1096 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
1097 (mklower_table): Remove variable.
1098 (mklower): Remove macro.
1099 (insert_reg): Use TOUPPER instead of islower/toupper.
1100 (md_begin): Remove initialization of mklower_table.
1101 (s_reg): Use ISALNUM instead of isalnum.
1102 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
1103 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
1104 (build_mri_control_operand): Use TOLOWER instead of tolower.
1105 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
1106 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
1107 (md_assemble): Use ISSPACE instead of isspace.
1108 (get_imm16): Use ISALNUM instead of isalnum.
1109 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
1110 isdigit/isupper/tolower.
1111 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
1112 instead of isalpha/isupper/tolower.
1113 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
1114 isdigit/islower/isupper.
1115 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
1116 (mcore_s_section): Use ISSPACE instead of isspace.
1117 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
1118 isspace/tolower/isalnum.
1119 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
1120 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
1121 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
1122 isspace.
1123 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
1124 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
1125 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1126 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
1127 isdigit/tolower.
1128 (tc_get_register): Likewise.
1129 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
1130 (s_mips_ent): Use ISDIGIT instead of isdigit.
1131 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
1132 (md_assemble): Use ISSPACE instead of isspace.
1133 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
1134 (md_assemble): Use ISSPACE instead of isspace.
1135 * config/tc-ns32k.c: Don't include <ctype.h>.
1136 * config/tc-pdp11.c: Include "safe-ctype.h".
1137 (mklower): Remove function.
1138 (parse_reg): Use TOLOWER instead of mklower.
1139 * config/tc-pj.c: Include "safe-ctype.h".
1140 (md_assemble): Use ISSPACE instead of isspace.
1141 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
1142 (register_name): Use ISALPHA instead of isalpha.
1143 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
1144 isalnum/islower/tolower.
1145 (md_assemble): Use ISSPACE instead of isspace.
1146 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
1147 islower/toupper.
1148 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
1149 (register_name): Use ISALPHA instead of isalpha.
1150 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
1151 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
1152 isspace.
1153 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
1154 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
1155 isalnum/islower/tolower.
1156 (IDENT_CHAR): Use ISALNUM instead of isalnum.
1157 (parse_reg): Use TOLOWER instead of tolower.
1158 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
1159 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
1160 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1161 (parse_keyword_arg): Use ISALNUM instead of isalnum.
1162 * config/tc-tahoe.c: Include "safe-ctype.h".
1163 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
1164 (tip_op): Use TOLOWER instead of isupper/tolower.
1165 * config/tc-tic30.c: Include "safe-ctype.h".
1166 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
1167 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
1168 (tic30_operand): Use TOLOWER instead of tolower.
1169 (tic30_find_parallel_insn): Likewise.
1170 (output_invalid): Use ISPRINT instead of isprint.
1171 * config/tc-tic54x.c: Include "safe-ctype.h".
1172 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
1173 (lookup_version): Use TOUPPER instead of toupper.
1174 (tic54x_var): Use ISALPHA instead of isalpha.
1175 (tic54x_mlib): Use ISSPACE instead of isspace.
1176 (subsym_iscons): Use TOUPPER instead of toupper.
1177 (get_operands): Use ISSPACE instead of isspace.
1178 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1179 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
1180 (next_line_shows_parallel): Use ISSPACE instead of isspace.
1181 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
1182 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
1183 ISSPACE instead of isspace.
1184 * config/tc-tic80.c: Include "safe-ctype.h".
1185 (md_assemble): Use ISSPACE instead of isspace.
1186 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1187 (system_register_name): Use ISDIGIT instead of isdigit.
1188 (md_assemble): Use ISSPACE instead of isspace.
1189 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
1190 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
1191 isupper/tolower/isdigit.
1192 (vip_op): Use TOLOWER instead of isupper/tolower.
1193 * config/tc-w65.c: Don't include <ctype.h>.
1194 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
1195 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
1196 (whatreg): Use ISDIGIT instead of isdigit.
1197 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
1198 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
1199 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
1200 (integer_constant): Use ISALNUM/TOUPPER instead of
1201 isalnum/islower/toupper.
1202 (operand): Use TOLOWER instead of isupper/tolower.
1203 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
1204 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
1205 of isdigit.
1206 (process_assigns, whatcond): Use TOUPPER instead of toupper.
1207 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
1208 (main): For gettext, also set the LC_CTYPE locate facet.
1209 * hash.c: Include "safe-ctype.h".
1210 (main): Use TOLOWER instead of isupper/tolower.
1211 * itbl-lex.l: Don't include <ctype.h>.
1212 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
1213 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
1214 omit non-ASCII characters.
1215 (debugging_pseudo): Use ISSPACE instead of isspace.
1216 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
1217 (buffer_and_nest): Use ISALNUM instead of isalnum.
1218 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
1219 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
1220 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
1221 instead of isalnum/isdigit/isupper/isalpha.
1222 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
1223 of isalpha/isalnum/isupper/tolower.
1224 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
1225 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
1226 isupper/tolower/isdigit.
1227 (s_mri_common): Use ISDIGIT instead of isdigit.
1228 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
1229 (s_float_space): Use ISALPHA instead of isalpha.
1230 (ignore_rest_of_line): Use ISPRINT instead of isprint.
1231 (float_cons): Use ISALPHA instead of isalpha.
1232 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
1233 isdigit/isxdigit.
1234 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
1235 (save_symbol_name): Use ISLOWER/TOUPPER instead of
1236 islower/toupper.
1237 (symbol_find_base): Use TOUPPER instead of islower/toupper.
1238 (decode_local_label_name): Use ISDIGIT instead of isdigit.
1239
1240 2001-09-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1241
1242 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
1243 in 64 bit mode and make format "e" work.
1244
1245 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1246
1247 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
1248
1249 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
1250 var to ensure bfd_alloc arg is the right type.
1251 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
1252 bfd_bwrite.
1253
1254 * config/obj-coff.c: Replace calls to bfd_write with calls to
1255 bfd_bwrite. Cast args of bfd_seek.
1256
1257 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
1258 warning.
1259
1260 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
1261
1262 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
1263 call to bfd_bread.
1264
1265 2001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
1266
1267 * config/tc-sh.h (sh_force_relocation): Prototype.
1268 (struct fix): Forward declare.
1269 * config/tc-sh.c (type sh_operand_info): Move to top of file.
1270 (cons, s_align_bytes): Remove old-type declarations.
1271 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
1272 get_operands, get_specific, insert, build_relax,
1273 insert_loop_bounds, build_Mytes): Prototype.
1274 (little): Make static. Prototype.
1275 (check, tc_Nout_fix_to_chars): Delete unused functions.
1276
1277 2001-09-14 Eric Christopher <echristo@redhat.com>
1278
1279 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
1280 -mgp32/mgp64.
1281
1282 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1283
1284 * configure.in: Add arm-openbsd target.
1285 * configure: Regenerate.
1286
1287 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1288
1289 * configure.in: Change machine triplets from mips-*-linux-gnu* to
1290 mips*-*-linux*.
1291
1292 2001-09-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1293
1294 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
1295
1296 2001-09-11 Richard Henderson <rth@redhat.com>
1297
1298 * config/tc-alpha.c (alpha_elf_section_letter): New.
1299 (alpha_elf_section_flags): New.
1300 * config/tc-alpha.h (md_elf_section_letter): New.
1301 (md_elf_section_flags): New.
1302 * config/tc-ia64.c (ia64_elf_section_letter): New.
1303 * config/tc-ia64.h (md_elf_section_letter): New.
1304
1305 2001-09-11 Jakub Jelinek <jakub@redhat.com>
1306
1307 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
1308 of 'm', 'S' instead of 's'. Update bad_msg.
1309 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
1310 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
1311
1312 2001-09-09 Alan Modra <amodra@bigpond.net.au>
1313
1314 * expr.c (expr): Move code setting "retval" to the end of the loop,
1315 and rearrange for efficiency. For "PIC code" subtraction, use
1316 "rightseg" rather than recalculating. For "symbol OP symbol"
1317 subtract, set "retval" to absolute_section if symbols in same
1318 section.
1319 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
1320 O_symbol. Simplify a +/- b code. Allow equality and non-equality
1321 comparisons on symbols from any section. Allow other comparison
1322 operators as for subtraction.
1323 (symbol_equated_reloc_p): New predicate function.
1324 * symbols.h (symbol_equated_reloc_p): Declare.
1325 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
1326 for expression syms is set correctly.
1327 (adjust_reloc_syms): Use symbol_equated_reloc_p.
1328 (write_relocs): Likewise.
1329 (write_object_file): Likewise.
1330 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
1331 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
1332 of a complex expression when setting up frag_var.
1333
1334 2001-09-07 Richard Henderson <rth@redhat.com>
1335
1336 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
1337 require_seq and allow_seq. Let !literal omit the sequence number.
1338 (tokenize_arguments): Reject sequence numbers of !allow_seq.
1339
1340 2001-09-08 Jakub Jelinek <jakub@redhat.com>
1341
1342 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
1343 section symbols the same way as externs.
1344
1345 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1346
1347 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
1348 pseudo-op.
1349
1350 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1351
1352 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
1353 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
1354 PIC, BFD_RELOC_16_PCREL for the rest.
1355 (mips_ip): Likewise.
1356 (md_pcrel_from): return the right offset for the differently shifted
1357 pcrel relocs.
1358 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
1359
1360 2001-09-05 Richard Henderson <rth@redhat.com>
1361
1362 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
1363 (pseudo_func): Add @iplt.
1364 (pseudo_opcode): Add data16 and data16.ua.
1365 (md_begin): Set iplt pseudo.
1366 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
1367
1368 2001-09-04 Richard Henderson <rth@redhat.com>
1369
1370 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
1371 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
1372 (alpha_macros): Remove occurrences of same.
1373 (O_lituse_addr, O_gprel): New.
1374 (DUMMY_RELOC_LITUSE_*): New.
1375 (s_alpha_ucons, s_alpha_arch): Prototype.
1376 (alpha_reloc_op): Construct elements via DEF macro.
1377 (ALPHA_RELOC_SEQUENCE_OK): Remove.
1378 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
1379 members to not be literal specific.
1380 (next_sequence_num): New.
1381 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
1382 added/removed BFD relocations.
1383 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1384 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
1385 (tokenize_arguments): Parse ! relocations properly.
1386 (find_macro_match): Delete unused macro argument types.
1387 (assemble_insn): Add reloc parameter; emit that instead of the
1388 default as appropriate.
1389 (get_alpha_reloc_tag): New. Split from ...
1390 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
1391 (assemble_tokens): Don't search macros if user relocation present.
1392 Copy reloc sequence number to insn struct.
1393 (emit_ldgp): Remove user reloc handling.
1394 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
1395 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
1396 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
1397 * config/tc-alpha.h (tc_adjust_symtab): Always define.
1398 (struct alpha_fix_tag): Name members less literal specific.
1399
1400 2001-09-04 Jeffrey A Law (law@cygnus.com)
1401
1402 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
1403 address of two symbols in different sections.
1404
1405 2001-08-31 Eric Christopher <echristo@redhat.com>
1406 Jason Eckhardt <jle@redhat.com>
1407
1408 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
1409 5kc, and 20kc. Clean up old entries.
1410
1411 2001-08-31 J"orn Rennecke <amylaar@redhat.com>
1412 Jeff Law <law@redhat.com>
1413
1414 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
1415 offset match H8 ELF spec.
1416 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
1417 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
1418
1419 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
1420 (build_bytes): Mark fixups for PCrel branches as signed. For
1421 OBJ_ELF, make sure the reloc's offset points to the first byte
1422 to be modified.
1423 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
1424 * tc-h8300.h (relocation mappings): Add.
1425
1426 2001-08-30 J"orn Rennecke <amylaar@redhat.com>
1427
1428 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
1429 define for BFD_ASSEMBLER.
1430 (tc_reloc_mangle): Likewise.
1431 (tc_gen_reloc): New function for BFD_ASSEMBLER.
1432
1433 2001-08-29 Jeffrey A Law (law@cygnus.com)
1434
1435 * config/tc-h8300.c (h8300hmode): Record the machine type
1436 if BFD_ASSEMBLER is defined.
1437 (h8300smode, md_begin): Similarly.
1438
1439 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1440
1441 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1442 default from coff to elf.
1443 * configure: Regenerate.
1444
1445 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
1446
1447 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
1448 assorted coff relocations to the corresponding elf relocations.
1449 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
1450
1451 * configure.in: Add case for h8300-*-elf.
1452 * configure: Regenerate.
1453
1454 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
1455
1456 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
1457 documentation to reflect reality.
1458
1459 2001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1460
1461 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
1462 (macro): Reflect change to MAX_GPREL_OFFSET.
1463
1464 2001-08-27 Torbjorn Granlund <tege@swox.com>
1465 Staffan Ulfberg <staffanu@swox.se>
1466 Linus Nordberg <linus@swox.se>
1467 Alan Modra <amodra@bigpond.net.au>
1468
1469 * configure.in: Recognise powerpc*le*, not just powerpcle*.
1470 * configure: Regenerate.
1471 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
1472 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
1473 (md_assemble): Use them.
1474 (ppc_machine): Support stub for ELF64 as well as XCOFF.
1475 (md_pseudo_table): Add "llong", "quad".
1476 (md_parse_option): Match default_cpu of powerpc*.
1477 (ppc_arch): Likewise.
1478 (ppc_subseg_align): Only for OBJ_XCOFF.
1479 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
1480 (md_begin): Select PPC_OPCODE_64 for 64 bit.
1481 (ppc_insert_operand): Don't bother testing 'file' before calling
1482 as_bad_where. Use as_bad_where for operand->insert errors.
1483 (mapping): Add ELF64 relocation modifiers.
1484 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
1485 expressions with abs_symbol.
1486 (ppc_elf_cons): Correct offset for little endian targets.
1487 (ppc_elf_frob_symbol): New.
1488 (md_assemble): Add support for 64 bit ELF relocs.
1489 (ppc_tc): Ensure 8 byte alignment when 64 bit.
1490 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
1491 ".toc" section for 64 bit ELF.
1492 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
1493 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
1494 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
1495 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
1496 Expand on comments, error message. Add support for 64 bit relocs,
1497 and use PPC_HI etc. macros.
1498 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1499 (HANDLE_ALIGN): Define to generate nops in code sections rather
1500 than zeros.
1501 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
1502 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
1503 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
1504 (ppc_fix_adjustable): Declare.
1505 (tc_frob_symbol): Define.
1506 (ppc_elf_frob_symbol): Declare.
1507
1508 2001-08-26 Andreas Jaeger <aj@suse.de>
1509
1510 * config/tc-s390.c: Add missing prototypes
1511 (md_gather_operands): Make static.
1512
1513 2001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1514
1515 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
1516 allowed value, not the word beyond maximum.
1517 * config/tc-mips.c (macro_build_lui): Code cleanup.
1518 (macro): Reflect change to MAX_GPREL_OFFSET.
1519 (mips_ip): Check explicitly against S_EX_NONE.
1520 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
1521 (md_apply_fix): Code cleanup.
1522
1523 2001-08-24 Andreas Jaeger <aj@suse.de>
1524
1525 * config/tc-ppc.h: Fix prototype declaration.
1526
1527 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1528
1529 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
1530 * config/obj-elf.c (obj_elf_size): When size is constant, free
1531 and clear symbol_get_obj(sym)->size if any.
1532
1533 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1534
1535 * config/tc-mips.c (md_begin): Warn about incompatibility between
1536 -march=FOO and -mipsN option, continue with default ISA.
1537
1538 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1539
1540 * config/tc-mips.c (md_parse_option): #ifdef the
1541 traditional/non-traditional names as it is done in mips_target_format.
1542
1543 2001-08-20 Richard Henderson <rth@redhat.com>
1544
1545 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
1546 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
1547 use seg parameter instead of now_seg.
1548
1549 2001-08-18 H.J. Lu <hjl@gnu.org>
1550
1551 * config/tc-mips.c (show): Add the missing prototype.
1552
1553 2001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1554
1555 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
1556 return values.
1557 (mips_ip): Use the new return values instead of characters. Add
1558 support for %higher and %highest.
1559 (LP): Remove.
1560 (RP): Remove.
1561 (my_getSmallExpression): Make parsing case insensitive and more
1562 reliable. Add support for %higher and %highest. Further support to
1563 parse %gprel and %neg is implemented but currently deactivated.
1564
1565 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1566
1567 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
1568 (ecoff_build_symbols): Likewise.
1569 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
1570
1571 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1572
1573 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
1574 for n32 ABI if appropriate.
1575
1576 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1577
1578 * config/tc-mips.c (cons_fix_new_mips): Remove.
1579 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
1580 (cons_fix_new_mips): Remove.
1581
1582 2001-08-14 Jeff Johnston <jjohnstn@redhat.com>
1583
1584 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
1585 a label, not a hex constant.
1586
1587 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1588
1589 * config/tc-v850.h: Add missing prototypes.
1590
1591 2001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1592
1593 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
1594 relocations.
1595
1596 2001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1597
1598 * config/tc-sparc.c (cons_fix_new_sparc): Move
1599 `sparc_no_align_cons = 0;' to...
1600 (s_uacons): ...here so that sparc_no_align_cons will get
1601 cleared properly.
1602
1603 2001-08-11 Kazu Hirata <kazu@hxi.com>
1604
1605 * config/tc-mips.c: Fix a comment typo.
1606
1607 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1608
1609 * config/tc-mips.c (move_register): New function.
1610 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
1611 (mips_ip): Likewise.
1612 (macro2): Use move_register rather than macro_build for moves.
1613 (mips16_macro): Likewise.
1614 (macro): Likewise. Handle M_MOVE.
1615
1616 2001-08-10 Andreas Jaeger <aj@suse.de>
1617
1618 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1619 to build warnings.
1620 * configure: Regenerate.
1621
1622 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1623
1624 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
1625 Comment indentation of #pragma.
1626 * macro.c (alloca): Likewise.
1627
1628 * config/tc-ppc.c: Revert 2001-08-08.
1629
1630 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1631
1632 * symbols.c: Add missing prototypes.
1633 * config/e-i386elf.c: Likewise.
1634 * config/e-i386coff.c: Likewise.
1635 * config/e-i386aout.c: Likewise.
1636 * config/obj-coff.c: Likewise.
1637 (def_symbol_in_progress, stack): Move definition.
1638 * config/obj-elf.c: Add missing prototypes.
1639 (obj_elf_change_section): Make static.
1640 (obj_elf_parse_section_letters): Likewise.
1641 (obj_elf_section_word): Likewise.
1642 (obj_elf_section_type): Likewise.
1643
1644 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1645
1646 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
1647 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
1648 determining reloc type with code reading operands->reloc field.
1649
1650 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1651
1652 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
1653 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
1654 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
1655 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
1656
1657 * output-file.c (output_file_create): Don't try to open a second
1658 time as it's unnecessary. FOPEN_W was undefined too.
1659
1660 2001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1661
1662 * config/tc-mips.c (macro_build): Replace magic constants by defines.
1663 (mips_ip): Likewise. Typo.
1664
1665 2001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1666
1667 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
1668 of 0.
1669 (RELAX_ENCODE): Replace bfd_vma by valueT.
1670 (load_address): Formatting.
1671 (macro): Likewise. Code cleanup. Typo.
1672 (macro2): Formatting.
1673 (md_parse_option): Typo.
1674 (s_mipsset): Reorder cases to look nicer.
1675 (md_estimate_size_before_relax): Formatting. Code cleanup.
1676 (mips_elf_final_processing): Check against NULL instead of 0.
1677 (md_obj_end): Remove ugly `' in message string.
1678 (s_mips_ent): Remove ugly `' in message string.
1679
1680 2001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1681
1682 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
1683 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
1684 mutually exclusive (if they are different).
1685 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
1686 set more than once.
1687
1688 2001-08-03 Richard Sandiford <rsandifo@redhat.com>
1689
1690 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
1691 from GPREL addends.
1692
1693 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
1694
1695 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
1696 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
1697 (md_long_opts): Add -mfp32 option.
1698 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
1699 (md_show_usage): Show usage for -mfp32 and -mgp32.
1700 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
1701 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
1702 (HAVE_32BIT_ADDRESSES): New macro.
1703 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
1704 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
1705 (s_cprestore, s_cpadd): Likewise.
1706 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
1707 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
1708 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
1709 to determine the width of addresses in load, store and jump macros.
1710 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
1711 used in set instructions; do not check the address size for them.
1712 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
1713 unaligned load and store macros.
1714 (mips_ip): Use the new macros to check the width of a register when
1715 processing float constants. Force a constant into memory if it is
1716 destined for an FPR and the FPRs are wider than the GPRs. Warn about
1717 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
1718 than mips_gp32 to select synthetic instructions.
1719 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
1720 synthetic instructions.
1721
1722 2001-08-01 Christian Groessler <cpg@aladdin.de>
1723
1724 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
1725 "rh", "rr", "rq", or "sp" then don't automatically assume
1726 it's a register name. Check whether there is a number
1727 following.
1728
1729 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1730
1731 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
1732 Don't allocate more space than necessary for the input line copy.
1733
1734 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1735
1736 * read.c: Standardize error/warning messages - don't capitalise, no
1737 final period or newline, don't say "ignored" or "zero assumed" for
1738 as_bad messages. In some cases, change the wording to that used
1739 elsewhere for similar messages.
1740 * app.c: Likewise.
1741 * as.c: Likewise.
1742 * atof-generic.c: Likewise.
1743 * cgen.c: Likewise.
1744 * cond.c: Likewise.
1745 * depend.c: Likewise.
1746 * dwarf2dbg.c: Likewise.
1747 * ecoff.c: Likewise.
1748 * expr.c: Likewise.
1749 * frags.c: Likewise.
1750 * input-file.c: Likewise.
1751 * input-scrub.c: Likewise.
1752 * listing.c: Likewise.
1753 * output-file.c: Likewise.
1754 * stabs.c: Likewise.
1755 * subsegs.c: Likewise.
1756 * symbols.c: Likewise.
1757 * write.c: Likewise.
1758 * ecoff.c (ecoff_directive_end): Test for missing name by
1759 comparing input line pointers rather than reading string.
1760 (ecoff_directive_ent): Likewise.
1761 * read.c (s_set): Likewise.
1762 (s_align): Report a warning rather than an error for
1763 alignment too large.
1764 (s_comm): Check for missing symbol name.
1765 (s_lcomm_internal): Likewise.
1766 (s_lsym): Likewise.
1767 (s_globl): Use is_end_of_line instead of looking for '\n'.
1768 (s_lcomm_internal): Likewise.
1769 (ignore_rest_of_line): Report a warning rather than an error.
1770
1771 2001-07-31 Geoffrey Keating <geoffk@redhat.com>
1772
1773 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
1774 any kind of relocation against a not-loaded section.
1775
1776 2001-07-30 Alan Modra <amodra@bigpond.net.au>
1777
1778 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
1779 to include '@' in symbol names when parsing versioned symbols
1780 rather than calling get_symbol_end multiple times.
1781 * config/tc-i370.c (register_name): Format fixes. Don't call
1782 get_symbol_end after parsing number.
1783 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
1784 code out of conditional.
1785 (address_register_name): Likewise.
1786 (other_register_name): Likewise.
1787 * config/tc-mn10300.c (r_register_name): Likewise.
1788 (xr_register_name): Likewise.
1789 (data_register_name): Likewise.
1790 (address_register_name): Likewise.
1791 (other_register_name): Likewise.
1792 * config/tc-ppc.c (register_name): Likewise.
1793 * config/tc-s390.c (register_name): Likewise.
1794
1795 2001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1796
1797 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
1798 and bra relax: update fragP->fr_fix after the fixup.
1799
1800 2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1801
1802 * read.c (s_set): Check for missing symbol name.
1803
1804 2001-07-26 Alan Modra <amodra@bigpond.net.au>
1805
1806 * write.c (relax_segment <rs_space>): Account for fr_fix.
1807
1808 2001-07-25 H.J. Lu <hjl@gnu.org>
1809
1810 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
1811 we treat weak like extern only for ELF.
1812 (mips_fix_adjustable): Make sure we don't adjust extern/weak
1813 symbols only for ELF.
1814
1815 2001-07-25 Chris Demetriou <cgd@broadcom.com>
1816
1817 * config/tc-mips.c: Fix spelling error in comment.
1818
1819 2001-07-25 Dave Brolley <brolley@redhat.com>
1820
1821 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
1822 (IS_PARALLEL_SEPARATOR): New macro.
1823 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
1824 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
1825 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
1826 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
1827 been seen).
1828
1829 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1830
1831 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
1832 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
1833 Update dependencies with "make dep-am".
1834 * Makefile.in: Regenerate.
1835 * doc/Makefile.in: Regenerate.
1836
1837 2001-07-23 Kazu Hirata <kazu@hxi.com>
1838
1839 * config/tc-alpha.h: Fix formatting.
1840 * config/tc-arc.c: Likewise.
1841 * config/tc-d10v.h: Likewise.
1842 * config/tc-hppa.c: Likewise.
1843 * config/tc-i370.c: Likewise.
1844 * config/tc-i386.h: Likewise.
1845 * config/tc-i960.h: Likewise.
1846 * config/tc-ia64.c: Likewise.
1847 * config/tc-ia64.h: Likewise.
1848 * config/tc-m32r.c: Likewise.
1849 * config/tc-m68k.c: Likewise.
1850 * config/tc-m88k.c: Likewise.
1851 * config/tc-ns32k.c: Likewise.
1852 * config/tc-pdp11.c: Likewise.
1853 * config/tc-pj.h: Likewise.
1854 * config/tc-s390.c: Likewise.
1855 * config/tc-sparc.c: Likewise.
1856 * config/tc-sparc.h: Likewise.
1857 * config/tc-tic80.c: Likewise.
1858 * config/tc-w65.h: Likewise.
1859
1860 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1861
1862 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
1863 symbols specially. Always resolve, adding fr_address to value.
1864 * write.c (write_object_file): Don't add fr_address to sym values.
1865 (relax_frag): Likewise.
1866 (relax_segment): Likewise.
1867 * config/obj-ieee.c (do_symbols): Likewise.
1868 * config/tc-cris.c (md_convert_frag): Likewise.
1869 * config/tc-fr30.c (md_convert_frag): Likewise.
1870 * config/tc-i386.c (md_convert_frag): Likewise.
1871 * config/tc-m32r.c (md_convert_frag): Likewise.
1872 * config/tc-m68hc11.c (md_convert_frag): Likewise.
1873 * config/tc-mcore.c (md_convert_frag): Likewise.
1874 * config/tc-mips.c (mips16_extended_frag): Likewise.
1875 * config/tc-ns32k.c (md_convert_frag): Likewise.
1876 * config/tc-m68k.c (md_convert_frag_1): Likewise.
1877 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
1878 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
1879 (md_relax_table): Remove first four entries. Format.
1880 (md_estimate_size_before_relax): Remove old_fix. Don't bother
1881 setting fr_var. Simplify byte branch checks.
1882
1883 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1884
1885 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
1886 "isbranch" param as all calls have it set.
1887 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1888 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
1889 strcasecmp in "nullify" var.
1890 (pa_parse_neg_add_cmpltr): Likewise.
1891 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
1892 functions. Don't print wrong conditions in error messages.
1893
1894 2001-07-23 Andreas Jaeger <aj@suse.de>
1895
1896 * config/tc-s390.c (s390_force_relocation): Removed.
1897
1898 * config/tc-s390.h: Remove double declaration of
1899 TC_FORCE_RELOCATION.
1900
1901 2001-07-22 H.J. Lu <hjl@gnu.org>
1902
1903 * config/tc-mips.c (s_mips_end): Remove unused variables.
1904 (s_mips_frame): Add ATTRIBUTE_UNUSED.
1905
1906 2001-07-17 Andreas Schwab <schwab@suse.de>
1907
1908 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
1909 .loc.
1910 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
1911 insn.
1912 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1913
1914 2001-07-17 matthew green <mrg@eterna.com.au>
1915
1916 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1917 TE_NetBSD.
1918 (line_comment_chars): Set to '/' if TE_NetBSD.
1919
1920 2001-07-14 matthew green <mrg@eterna.com.au>
1921
1922 * configure.in (i386-*-netbsdelf*): New target.
1923 * configure: Regenerate.
1924
1925 2001-07-10 Mark Elbrecht <snowball3@softhome.net>
1926
1927 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
1928 class of the non-debug symbol is C_NULL.
1929
1930 2001-07-10 Anders Norlander <anorland@synergenix.se>
1931
1932 * doc/as.texinfo (Incbin): Fix grammatical errors.
1933
1934 2001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
1935
1936 * depend.c: Use FOPEN_.. macros in calls to fopen().
1937 * input-file.c: As above.
1938 * itbl-ops.c: As above.
1939 * listing.c: As above.
1940 * output-file.c: As above.
1941 * read.c: As above.
1942
1943 2001-07-08 Anders Norlander <anorland@synergenix.se>
1944
1945 * read.c (s_incbin): New .incbin function.
1946 * read.c (potable): Add "incbin" pseudo-op.
1947 * read.h: Add s_incbin prototype.
1948 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1949 * NEWS: Mention new feature.
1950
1951 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
1952
1953 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1954 DEBUG_UNSPECIFIED.
1955
1956 2001-07-06 John Healy <jhealy@redhat.com>
1957
1958 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1959 set of fixups to be stored.
1960 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1961 restored to be chosen from any that are saved.
1962 (gas_cgen_swap_fixups): Modified to allow the current set of
1963 fixups to be swapped with any other set that has been saved.
1964 (gas_cgen_initialize_saved_fixups_array): New routine.
1965 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1966 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1967 or MAX_SAVED_FIXUP_CHAINS.
1968 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1969 store, swap and restore fuctions to reflect the new interface.
1970
1971 2001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
1972
1973 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1974 ignore empty, ineffectual alignment frags when deciding if a
1975 branch can be short.
1976
1977 2001-07-05 Steve Ellcey <sje@cup.hp.com>
1978
1979 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1980 and SPECIAL_SECTION_FINI_ARRAY.
1981 (special_section_name): Add .init_array and .fini_array.
1982 (md_pseudo_table): Add init_array and fini_array.
1983 (md): Add pointer_size and pointer_size_shift fields.
1984 (setup_unwind_header): New static function.
1985 (output_unw_records): Modify to use setup_unwind_header.
1986 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1987 md.pointer_size_shift.
1988 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1989
1990 2001-07-05 Ben Elliston <bje@redhat.com>
1991
1992 * README (Supported platforms): m88k no longer suffers bitrot.
1993
1994 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1995
1996 2001-07-05 Alan Modra <amodra@bigpond.net.au>
1997
1998 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1999 lsy_value. Correct typos in comments.
2000 * symbols.c (local_symbol_make): Update for name change.
2001 (local_symbol_convert): Likewise.
2002 (colon): Likewise.
2003 (S_GET_VALUE): Likewise.
2004 (S_SET_VALUE): Likewise.
2005 (print_symbol_value_1): Likewise.
2006 (resolve_symbol_value): Likewise. Don't divide local sym values
2007 by OCTETS_PER_BYTE twice.
2008
2009 2001-07-04 Jim Wilson <wilson@redhat.com>
2010
2011 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
2012
2013 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
2014 sched branches.
2015
2016 2001-07-05 Ben Elliston <bje@redhat.com>
2017
2018 * read.c (s_fill): Correct spelling error in comments.
2019
2020 * doc/c-m88k.texi: New file.
2021 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
2022 * doc/Makefile.in: Regenerate.
2023 * doc/all.texi: Set M880X0.
2024 * doc/as.texinfo: Hook in m88k-dependent documentation.
2025
2026 2001-07-04 Eric Christopher <echristo@redhat.com>
2027
2028 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
2029
2030 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
2031 and rm5721 as valid cpu strings.
2032 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
2033
2034 2001-07-04 Richard Sandiford <rsandifo@redhat.com>
2035
2036 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
2037 if it's expected to be non-zero.
2038
2039 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2040
2041 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
2042 fscan->fx_frag.
2043
2044 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
2045 (write_object_file): Set finalize_syms to
2046 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
2047 called.
2048
2049 * doc/internals.texi: Document
2050 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
2051
2052 2001-07-02 Alan Modra <amodra@bigpond.net.au>
2053
2054 * config/tc-ppc.c: Formatting fixes.
2055
2056 2001-07-01 Ben Elliston <bje@redhat.com>
2057
2058 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
2059 they cause some subtle breakage. Will fix them again later.
2060
2061 2001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
2062
2063 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
2064 outside of a function as a .appline directive.
2065
2066 2001-06-28 Eric Christopher <echristo@redhat.com>
2067 H.J. Lu <hjl@gnu.org>
2068
2069 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
2070 of mips_cpu for the ISA selection.
2071 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
2072 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
2073 (mips_tune): New. Use mips_tune for scheduling and optimization
2074 issues.
2075 (append_insn): Use mips_tune and mips_arch.
2076 (macro_build): Ditto.
2077 (mips_ip): Ditto.
2078 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
2079 backwards compatability mips_cpu generates arch and tune.
2080 (md_show_usage): Document new behavior.
2081
2082 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
2083 Deprecate -mcpu.
2084
2085 * NEWS: Update.
2086
2087 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
2088
2089 * write.c (write_object_file): Do not set finalize_syms until
2090 after the segments have been sized. Some backends may still
2091 need to access the syms's frags in order to adjust relaxed
2092 frags.
2093
2094 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
2095 constants.
2096
2097 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2098
2099 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
2100 subtract MD_PCREL_FROM_SECTION for 68k.
2101 (fixup_segment <Difference of 2 syms different seg>): Only fudge
2102 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
2103
2104 2001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
2105
2106 * write.c (fixup_segment <Difference of 2 syms same seg>): If
2107 pcrel, subtract MD_PCREL_FROM_SECTION value.
2108
2109 2001-06-24 Ben Elliston <bje@redhat.com>
2110
2111 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
2112
2113 2001-06-24 Jakub Jelinek <jakub@redhat.com>
2114
2115 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
2116 section symbols the same way as externs.
2117
2118 2001-06-24 Ben Elliston <bje@redhat.com>
2119
2120 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
2121 (emit_relocations): Ditto.
2122 (s_bss): Ditto.
2123 (md_begin): Reformat comments to conform to the GNU standards.
2124 (md_assemble): Ditto.
2125
2126 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
2127 (md_parse_option): Mark parameters as unused.
2128 (md_show_usage): Ditto.
2129 (calcop): Adjust type of `reg_prefix' to char.
2130 (get_reg): Ditto.
2131 (getval): Adjust type of local `c' to char.
2132 (md_create_short_jump): Mark from_addr, to_addr params as unused.
2133 (md_create_long_jump): Ditto.
2134 (md_estimate_size_before_relax): Mark parameters as unused.
2135
2136 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
2137 to allay a possible compiler warning.
2138
2139 2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
2140
2141 * doc/internals.texi (CPU backend): Document md_atof.
2142
2143 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
2144
2145 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
2146 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
2147 architecture.
2148
2149 2001-06-21 Philip Blundell <philb@gnu.org>
2150
2151 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
2152 updated.
2153 (insns): Remove entry for adrl. Add long_flag for adr.
2154 (do_adr): Handle `l' suffix.
2155 (do_adrl): Delete.
2156
2157 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2158
2159 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
2160 (md_apply_fix): Use it here. Replace printf with equivalent
2161 as_bad_where.
2162 (tc_gen_reloc): Use as_bad_where instead of as_bad.
2163 (md_apply_fix): Here too.
2164 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
2165 * config/tc-m68k.c (tc_gen_reloc): Likewise.
2166 (md_convert_frag_1): Likewise.
2167
2168 2000-06-20 Tom Rix <trix@redhat.com>
2169
2170 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
2171
2172 2001-06-18 H.J. Lu <hjl@gnu.org>
2173
2174 * doc/Makefile.am (info): Depend on $(MANS).
2175 (as.1): Remove the prefix `$(srcdir)/'.
2176 * doc/Makefile.in: Regenerated.
2177
2178 * as.1: Removed.
2179
2180 2001-06-18 Philip Blundell <philb@gnu.org>
2181
2182 * config/tc-arm.c (do_msr): Remove restriction on usage of
2183 immediate operands.
2184
2185 2001-06-19 Alan Modra <amodra@bigpond.net.au>
2186
2187 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
2188 line info.
2189
2190 2001-06-13 Philip Blundell <philb@gnu.org>
2191
2192 * config/tc-arm.c (thumb_shift): Improve wording of error message.
2193 (do_t_arit): Likewise.
2194
2195 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2196
2197 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
2198 .loc pseudos if the dfwarf2 functions are available.
2199 (md_assemble): Only call dwarf2_emit_insn if it is available.
2200
2201 * expr.c: Fix typo in comment.
2202
2203 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2204
2205 * doc/as.texinfo (Infix Ops): Document that comparison and
2206 combiner operators can be used as infix operators.
2207
2208 2001-06-12 Peter Jakubek <pjak@snafu.de>
2209
2210 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
2211 of AND/OR.
2212 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
2213 (reverse_mri_condition): Likewise.
2214 (swap_mri_condition): Issue warning for conditions that can not be
2215 swapped.
2216 (build_mri_control_operand): Fix order of operands (swapped).
2217 (build_mri_control_operand): Allow upper case extension in structured
2218 control directives.
2219 (s_mri_else): Likewise.
2220 (s_mri_next): Likewise.
2221 (s_mri_for): Likewise.
2222 (s_mri_if): Fix handling comment ('*') in mri mode.
2223 (s_mri_while): Likewise.
2224 * macro.c (macro_expand): Allow macro invocation with empty
2225 extension.
2226
2227 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2228
2229 * config/tc-arm.c: Fix test for overlow of literal pool.
2230
2231 2001-06-11 H.J. Lu <hjl@gnu.org>
2232
2233 * NEWS: Updated for the new -n option for the MIPS assembler.
2234
2235 * config/tc-mips.c (md_show_usage): Add -n.
2236
2237 * doc/as.texinfo: Document the new -n option.
2238 * doc/c-mips.texi: Likewise.
2239 * doc/as.1: Regenerated.
2240
2241 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2242
2243 * config/obj-coff.c (obj_coff_section): Formatting fix.
2244
2245 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
2246 ",pn".
2247
2248 2001-06-08 H.J. Lu <hjl@gnu.org>
2249
2250 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
2251 disable warning about all NOPS that the assembler generates.
2252 (macro): Warn NOPS generated only if warn_nops is not 0.
2253 (md_shortopts): Add `n'.
2254 (md_parse_option): Set warn_nops to 1 for `n'.
2255
2256 2001-06-08 H.J. Lu <hjl@gnu.org>
2257
2258 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
2259
2260 2001-06-08 H.J. Lu <hjl@gnu.org>
2261
2262 * config/tc-mips.c (md_apply_fix): Don't adjust common
2263 extern/weak symbols for ELF.
2264 (md_estimate_size_before_relax): Treat weak like extern for
2265 ELF.
2266 (mips_fix_adjustable): Don't adjust extern/weak symbols for
2267 ELF.
2268
2269 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2270
2271 * Makefile.am: 'som' is not wrongly spelled 'some'.
2272 * Makefile.in: Regenerate.
2273
2274 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
2275 S_GET_VALUE by using a temp.
2276 (append_insn): Likewise, and for S_SET_VALUE too.
2277 (mips_emit_delays): Likewise.
2278 (my_getExpression): Likewise.
2279 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
2280 (mips16_extended_frag): Remove code concerned with avoiding
2281 locking in a frag address now that symbols are not finalized until
2282 relaxation is complete. Cater for first relaxation pass having
2283 bogus addresses. Use relax_marker to reliably determine whether a
2284 symbol frag has been reached on the current pass.
2285
2286 2001-06-07 H.J. Lu <hjl@gnu.org>
2287
2288 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
2289 * configure: Regenerate.
2290
2291 2001-06-07 H.J. Lu <hjl@gnu.org>
2292
2293 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
2294 ecoff emulation.
2295 * configure: Regenerate.
2296
2297 2001-06-07 H.J. Lu <hjl@gnu.org>
2298
2299 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
2300 MIPS_STABS_ELF is defined.
2301
2302 2001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
2303
2304 * as.c (show_usage): Remove L from listing options. It is not a
2305 generic option.
2306
2307 2001-06-06 Christian Groessler <cpg@aladdin.de>
2308
2309 * config/tc-z8k.c: Removed many warnings by removing unused
2310 variables and tagging unused parameters as such.
2311 (md_begin): Fixed a typo (","instead of ";").
2312 (struct ctrl_table): Add parentheses to initialize array
2313 correctly.
2314 (struct flag_table): Likewise.
2315 (struct intr_table): Likewise.
2316 (struct table): Likewise.
2317 (check_operand): "#if 0"'ed since it doesn't seem to be used.
2318
2319 2001-06-06 Peter Jakubek <pjak@snafu.de>
2320
2321 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
2322 options to list (e.g. m5206e, m5307, m5407).
2323
2324 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2325
2326 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
2327 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2328
2329 2001-06-06 Alan Modra <amodra@bigpond.net.au>
2330
2331 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
2332 <JumpByte, JumpDword insn output>: Remove dead code.
2333
2334 2001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
2335
2336 * as.c (parse_args): Correct option name "listing-lhs-width2".
2337
2338 2001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
2339
2340 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
2341 status.
2342
2343 2001-05-30 Richard Henderson <rth@redhat.com>
2344
2345 * read.c (emit_leb128_expr): Call md_cons_align.
2346
2347 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2348
2349 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
2350 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
2351 (tc_gen_reloc): Likewise.
2352 (sparc_cons_align): Don't clear sparc_no_align_cons.
2353 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
2354 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
2355
2356 2001-05-27 Alan Modra <amodra@one.net.au>
2357
2358 * write.c (relax_segment <rs_space>): Check the section of a
2359 symbol to determine whether it is absolute rather than comparing
2360 its frag against zero_address_frag as listings play tricks with
2361 frags.
2362
2363 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
2364 allocated in the same chunk as the fixed part.
2365
2366 2001-05-26 Alan Modra <amodra@one.net.au>
2367
2368 * write.c (relax_segment <rs_space>): Calculate growth using
2369 addresses before stretch. Prevent repeated error messages.
2370 From Peter Jakubek <pjak@snafu.de>
2371 Use as_bad_where and as_warn_where to pinpoint errors.
2372
2373 2001-05-25 Alan Modra <amodra@one.net.au>
2374
2375 * symbols.c (resolve_symbol_value): Always set segment, even when
2376 not finalizing symbol value.
2377
2378 * config/obj-ieee.c (write_object_file): Set finalize_syms.
2379 * config/obj-coff.c (write_object_file): Likewise.
2380 * (size_section): Remove rs_space assert as fr_symbol is no longer
2381 removed.
2382 (fill_section): Likewise.
2383
2384 * configure.in: Replace linuxoldld with linux*oldld.
2385 * configure: Regenerate.
2386
2387 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
2388 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
2389 that have been finalized.
2390
2391 * symbols.c (resolve_symbol_value): Clear sy_resolving before
2392 taking exit_dont_set_value.
2393
2394 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
2395 relaxing.
2396
2397 2000-05-24 Tom Rix <trix@redhat.com>
2398
2399 * config/obj-coff.c (add_lineno): xcoff allows negative line
2400 numbers
2401 * config/tc-ppc.c (ppc_stabx): fix generated symbol
2402
2403 2001-05-24 Alan Modra <amodra@one.net.au>
2404
2405 * write.c (write_object_file): Set finalize_syms = 1 before
2406 size_seg is called.
2407
2408 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2409
2410 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
2411 architecture, remove erraneous ISA_MIPS32.
2412 (md_show_usage): Add MIPS r12k support.
2413 (mips_cpu_info_table): Add MIPS r12k support.
2414
2415 2001-05-22 Alan Modra <amodra@one.net.au>
2416
2417 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
2418 testing for NULs.
2419
2420 * symbols.c (resolve_symbol_value): Remove "finalize" param,
2421 instead use finalize_syms directly. Don't treat expressions
2422 specially with regard to finalize_syms. Update calls to self.
2423 (resolve_local_symbol): Update call to resolve_symbol_value.
2424 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
2425 !finalize_syms.
2426 * symbols.h (resolve_symbol_value): Update prototype.
2427 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
2428 to resolve_symbol_value.
2429 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2430 * config/obj-coff.c (do_relocs_for): Likewise.
2431 (yank_symbols): Likewise.
2432 (fixup_segment): Likewise.
2433 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2434 * config/tc-mips.c (md_convert_frag): Likewise.
2435 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2436 (ppc_fix_adjustable): Likewise.
2437 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
2438 (dwarf2dbg_convert_frag): Likewise.
2439 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
2440 (eh_frame_convert_frag): Likewise.
2441 * expr.c (make_expr_symbol): Likewise.
2442 * write.c (adjust_reloc_syms): Likewise.
2443 (write_object_file): Likewise.
2444 (relax_segment): Likewise.
2445 (fixup_segment): Likewise.
2446 (finalize_syms): Init to zero, and update comment.
2447 (write_object_file): Set finalize_syms to 1 rather than 2.
2448 * doc/internals.texi (sy_value): Mention finalize_syms.
2449 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2450
2451 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
2452 as relaxable if embedded system, make weak syms non-relaxable.
2453 Move definition..
2454 (tc_m68k_fix_adjustable): ..so it can be used here.
2455 (md_apply_fix_2): Sign extend without conditional.
2456
2457 * config/tc-v850.c: Update copyright.
2458
2459 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
2460
2461 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
2462 howto entry is not found.
2463
2464 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2465
2466 * config/tc-mn10300.c (mn10300_force_relocation): Don't
2467 optimize differences between symbols in code sections to
2468 constants.
2469 (mn10300_fix_adjustable): Don't adjust to section+offset
2470 relocations pointing at symbols in code sections.
2471
2472 2001-05-16 Alan Modra <amodra@one.net.au>
2473
2474 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
2475 for 8 byte insns.
2476 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
2477 opcodes are output rather than after. Delete insn_size.
2478 * config/tc-v850.c (md_assemble): Similarly, but delete
2479 total_insn_size.
2480
2481 2001-05-14 Richard Henderson <rth@redhat.com>
2482
2483 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
2484 last change.
2485
2486 2001-05-14 Richard Henderson <rth@redhat.com>
2487
2488 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
2489 also collect whether to expect an FDE augmentation.
2490 (check_eh_frame): Rewrite as a state machine. Track where in
2491 an FDE we are located, skip any augmentation.
2492 (eh_frame_estimate_size_before_relax): Get code alignment from
2493 the fragment subtype.
2494 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
2495 * read.c (emit_leb128_expr): Call check_eh_frame.
2496
2497 2001-05-14 Alexandre Oliva <aoliva@redhat.com>
2498
2499 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
2500 before a relaxable insns.
2501
2502 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2503
2504 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
2505 between symbols if the base symbol is in the current section;
2506 emit a PC-relative relocation instead.
2507
2508 2001-05-12 Peter Targett <peter.targett@arccores.com>
2509
2510 * config/tc-arc.c: Update copyright and tidy source comments.
2511 (md_pseudo_table): Add directive .cpu back as an alias for
2512 .option. Add .file and .line for dwarf2 support.
2513 (arc_mach_type): Make bfd_mach_arc_6 default.
2514 (md_longopts): Add entry 'pre-v6' representing old command line
2515 option when assembling for 'arc5' core versions.
2516 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
2517 default behaviour.
2518 (arc_code_symbol): Make symbol value for @h30 fixup expression
2519 equal to O_constant.
2520 (md_assemble): Call dwarf2_emit_insn.
2521 Include "dwarf2dbg2.h". Formatting fixes throughout file.
2522 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2523 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
2524
2525 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2526
2527 * config/tc-ia64.c (special_linkonce_name): New.
2528 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
2529 .gnu.linkonce.ia64unw{,i}.FOO.
2530 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
2531 (dot_endp): Add comment about it.
2532
2533 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2534
2535 * config/tc-arm.c (arm_handle_align): When truncating an aligned
2536 block, ensure that the low order bits of the alignment are
2537 preserved.
2538
2539 2001-05-10 Alan Modra <amodra@one.net.au>
2540
2541 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
2542 symbol_next.
2543
2544 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
2545 current variable part of frag.
2546 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
2547 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
2548 * config/tc-m68hc11.c (RELAX_STATE): Define.
2549 (RELAX_LENGTH): Define.
2550 (md_estimate_size_before_relax): Handle non-relaxable cases
2551 separately from relaxable cases for clarity, and return correct
2552 size for multi-pass relaxation.
2553 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
2554 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2555 (md_convert_frag): Remove "length_code".
2556 * config/tc-vax.c (RELAX_STATE): Define.
2557 (RELAX_LENGTH): Define.
2558 (md_relax_table): Add missing entry.
2559 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2560 (md_convert_frag): Remove "length_code".
2561 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
2562 don't bother setting fr_var. Return correct size for multi-pass
2563 relaxation.
2564 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
2565 (md_convert_frag): Don't bother clearing fr_var.
2566 (md_pseudo_table): Correct initialization.
2567 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
2568 (md_estimate_size_before_relax): No need to set fr_var.
2569 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
2570 (md_estimate_size_before_relax): No need to set fr_var.
2571
2572 2001-05-09 Richard Henderson <rth@redhat.com>
2573
2574 * config/tc-ia64.c (generate_unwind_image): Align the fragment
2575 beginning a function's unwind info block.
2576
2577 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2578
2579 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2580
2581 2001-05-08 Andreas Schwab <schwab@suse.de>
2582
2583 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
2584 fx_pcrel_adjust explicitly sign extend when reading it.
2585
2586 2001-05-08 Alan Modra <amodra@one.net.au>
2587
2588 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
2589 from md_relax_table, and combine some switch cases.
2590
2591 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
2592
2593 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
2594 from offset in non-pcrel operands too.
2595
2596 2001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2597
2598 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
2599 * config/tc-arm.c (arm_handle_align): Do not insert more than
2600 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2601 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
2602
2603 2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2604
2605 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
2606 Run "make dep-am".
2607 * Makefile.in: Regenerate.
2608 * configure.in: Remove duplicate mips-*-ecoff* entry.
2609 * configure: Regenerate.
2610
2611 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
2612 (n_names): Cast away type mismatch.
2613 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
2614 (obj_ecoff_frob_symbol): Likewise.
2615 * ecoff.c: (add_file): Add unused attribute.
2616 (ecoff_directive_begin): Likewise.
2617 (ecoff_directive_bend): Likewise.
2618 (ecoff_directive_def): Likewise.
2619 (ecoff_directive_dim): Likewise.
2620 (ecoff_directive_scl): Likewise.
2621 (ecoff_directive_size): Likewise.
2622 (ecoff_directive_type): Likewise.
2623 (ecoff_directive_tag): Likewise.
2624 (ecoff_directive_val): Likewise.
2625 (ecoff_directive_endef): Likewise.
2626 (ecoff_directive_end): Likewise.
2627 (ecoff_directive_ent): Likewise.
2628 (ecoff_directive_extern): Likewise.
2629 (ecoff_directive_file): Likewise.
2630 (ecoff_directive_fmask): Likewise.
2631 (ecoff_directive_frame): Likewise.
2632 (ecoff_directive_mask): Likewise.
2633 (ecoff_directive_loc): Likewise.
2634 (mark_stabs): Likewise.
2635 (ecoff_stab): Likewise.
2636 (ecoff_frob_symbol): Cast away type mismatch.
2637 (ecoff_padding_adjust): Likewise.
2638 (ecoff_build_symbols): Likewise.
2639 (ecoff_build_procs): Likewise.
2640 (ecoff_build_aux): Likewise.
2641 (ecoff_build_strings): Likewise.
2642 (ecoff_build_fdr): Likewise.
2643 (ecoff_build_debug): Likewise.
2644 * itbl-ops.c (itbl_assemble): Variable initialization.
2645
2646 2001-05-03 Alan Modra <amodra@one.net.au>
2647
2648 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
2649 expressions rather than triggering an assert.
2650
2651 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2652
2653 * config/tc-openrisc.c: New file.
2654 * config/tc-openrisc.h: Likewise.
2655
2656 * Makefile.am: Add OpenRISC target.
2657 * Makefile.in: Regenerated.
2658
2659 * configure.in (openrisc-*-*): Add target.
2660 * configure: Regenerated.
2661
2662 2001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2663
2664 * config/tc-arm.c (arm_frag_align_code): Change error message to
2665 more explanatory version.
2666
2667 2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
2668
2669 * config/tc-mips.c (md_parse_option): Also accept
2670 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2671
2672 2001-04-27 David Mosberger <davidm@hpl.hp.com>
2673
2674 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
2675 argument passing order: predicate goes last, not first.
2676
2677 2001-04-27 Sean McNeil <sean@mcneil.com>
2678
2679 * configure.in: Add arm-vxworks.
2680 * configure: Regenerate.
2681
2682 2001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
2683
2684 * config/tc-arm.c (arm_handle_align): New Function: Generate
2685 no-op filled alignment frags.
2686 (arm_frag_align_code): New Function: Create a code alignment frag.
2687 (arm_init_frag): New Function: Initialse the target dependent
2688 parts of a frag.
2689
2690 * config/tc-arm.h (TC_FRAG_TYPE): Define.
2691 (TC_FRAG_INIT): Define.
2692 (HANDLE_ALIGN): Define.
2693 (md_do_align): Define.
2694
2695 2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
2696
2697 * config/obj-coff.c (do_linenos_for): Check to see if the filename
2698 symbol has been initialised before extracting its symbol index.
2699
2700 2001-04-24 H.J. Lu <hjl@gnu.org>
2701
2702 * configure: Regenerated with the right version of autoconf.
2703
2704 2001-04-24 Christian Groessler <cpg@aladdin.de>
2705
2706 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
2707 generate R_CALLR and R_REL16 relocations
2708
2709 2000-04-20 Jason Eckhardt <jle@redhat.com>
2710
2711 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
2712 since frag_now can change after d10v_cleanup is called.
2713
2714 2001-04-16 David O'Brien <obrien@FreeBSD.org>
2715
2716 * configure.in: Add the em type for FreeBSD targets.
2717 * configure: Regenerate.
2718
2719 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2720
2721 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
2722 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2723
2724 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
2725 pc-relative relocations not placed at the end of the instruction.
2726
2727 2001-04-13 Jim Wilson <wilson@redhat.com>
2728
2729 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
2730 excluding br.i.
2731
2732 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2733
2734 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
2735 handle SHF_MERGE and SHF_STRINGS.
2736 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
2737 (obj_elf_section): Allow additional argument specifying entity size.
2738 * write.c (adjust_reloc_syms): Keep relocations against local symbols
2739 in SEC_MERGE sections.
2740
2741 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
2742
2743 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2744
2745 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2746
2747 * expr.c (operand): Pass &c to md_parse_name().
2748 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2749
2750 2001-04-07 Steven J. Hill <sjhill@cotw.com>
2751
2752 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
2753
2754 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
2755 * Makefile.in: Regenerated.
2756
2757 * configure.in: Use traditional MIPS targets for Linux/MIPS.
2758 * configure: Regenerated.
2759
2760 2001-04-06 Alexandre Oliva <aoliva@redhat.com>
2761
2762 * config/tc-mn10300.c (xr_registers): Added `pc'.
2763
2764 2001-04-05 Alan Modra <alan@linuxcare.com.au>
2765
2766 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
2767 * configure: Regenerate.
2768
2769 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
2770 cases, and always return size based on current fr_subtype.
2771 (md_begin): Move initialization of md_relax_table..
2772 (md_relax_table): ..to static initializer. Set rlx_length for
2773 UNDEF_WORD_DISP cases.
2774 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2775 (md_begin): Likewise.
2776 (md_relax_table): Likewise.
2777 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
2778 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2779 Set rlx_backward and rlx_forward to zero for unused states.
2780 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
2781 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2782 (UNCOND12, UNCOND32): Remove duplicate defines.
2783
2784 2001-04-04 Hans-Peter Nilsson <hp@axis.com>
2785
2786 * config/tc-cris.c (md_estimate_size_before_relax) <case
2787 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
2788 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
2789 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
2790 Add cases to cover all relax states.
2791 (cris_insn_first_word_frag): New.
2792 (md_assemble): Call cris_insn_first_word_frag to get the first
2793 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
2794 end. Drop variable insn_size.
2795 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
2796 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
2797 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
2798
2799 * write.c (write_object_file): Reset broken word state before
2800 calling relax_seg.
2801
2802 2001-03-31 Alan Modra <alan@linuxcare.com.au>
2803
2804 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
2805 for one line if not already enabled.
2806 * cond.c (s_elseif): Correct conditional assembly listing.
2807 (s_else): Likewise.
2808
2809 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
2810 Don't abort on NULL current_cframe.
2811
2812 2001-03-30 Alan Modra <alan@linuxcare.com.au>
2813
2814 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
2815 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
2816 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
2817 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2818 * config/obj-coff.c (do_relocs_for): Likewise.
2819 (yank_symbols): Likewise.
2820 (fixup_segment): Likewise.
2821 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2822 (ppc_fix_adjustable): Likewise.
2823 * config/tc-mips.c (md_convert_frag): Likewise.
2824 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2825 * ehopt.c (eh_frame_convert_frag): Likewise.
2826 * expr.c (make_expr_symbol): Likewise.
2827
2828 * frags.h (struct frag): Add last_fr_address. Reorder fields for
2829 better packing.
2830 * symbols.c (resolve_symbol_value): Don't fix expression values
2831 until relaxation is complete.
2832 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
2833 (S_GET_VALUE): Likewise, and return unresolved expression value.
2834 * write.c (finalize_syms): New.
2835 (relax_and_size_seg): Split into..
2836 (relax_seg): New function, returns 1 if anything changed..
2837 (size_seg): And the remainder of relax_and_size_seg.
2838 (fixup_segment): Arrange for final resolution of sym values.
2839 (adjust_reloc_syms): Likewise.
2840 (write_object_file): Likewise, and repeatedly call relax_seg until
2841 nothing more changes.
2842 (relax_segment): Return 1 if anything changed. Use correct types
2843 for rs_org `target' and `after'.
2844 * write.h (finalize_syms): Declare.
2845 (relax_segment): Update prototype.
2846
2847 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
2848 do-nothing cases to switch to avoid abort on a second relaxation
2849 pass, and tidy code a little.
2850 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
2851 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
2852 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2853 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
2854 (md_relax_table): Remove first four unused entries. Increment
2855 rlx_length by one throughout table, and update comments to suit.
2856 (md_estimate_size_before_relax): Return size of current variable
2857 part of frag to reflect reality when relaxing more than once.
2858 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
2859 (COND32, UNCD32): Rename to DISP32 throughout.
2860 (UNDEF_WORD_DISP): Renumber to 3.
2861 (md_estimate_size_before_relax): Add extra do-nothing cases.
2862 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
2863 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
2864 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
2865 handle word and dword branches.
2866
2867 2001-03-29 Hans-Peter Nilsson <hp@axis.com>
2868
2869 * config/tc-cris.h (tc_fix_adjustable): Allow only
2870 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
2871 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
2872 example in comment to valid type.
2873
2874 2001-03-28 H.J. Lu <hjl@gnu.org>
2875
2876 * read.c (equals): Set to local for COFF only if it hasn't been
2877 defined before.
2878
2879 2001-03-28 Alan Modra <alan@linuxcare.com.au>
2880
2881 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
2882 (md_begin): Use it when setting default architecture.
2883
2884 2001-03-27 Nick Papadonis <nick@coelacanth.com>
2885
2886 * read.c (equals): (for COFF) default symbols to being local.
2887
2888 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2889
2890 * configure.in (cris-*-*): Change default emulation to criself.
2891 (cris-*-*aout*): New rule.
2892 * configure: Regenerate.
2893
2894 2001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
2895
2896 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
2897 BFD_RELOC_390_GOTENT.
2898 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
2899 BFD_RELOC_390_GOTENT.
2900
2901 2001-03-26 Nick Clifton <nickc@redhat.com>
2902
2903 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
2904 * config/tc-s390.c (s390_force_relocation): New function: Force
2905 relocations for VTINHERIT relocs.
2906
2907 2001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2908
2909 * doc/as.texinfo: Put @c man begin to generate the as man page.
2910 When generating man, define all the variables. Re-organize some
2911 options to obtain better indentation of man page.
2912 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2913 (as.1): Build from as.texinfo.
2914 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
2915
2916 2001-03-25 Alan Modra <alan@linuxcare.com.au>
2917
2918 * config/tc-i386.c (i386_scale): Accept an absolute expression for
2919 scale factor, and return the end of the expression.
2920 (i386_operand): Modify for above.
2921
2922 2001-03-23 Nick Clifton <nickc@redhat.com>
2923
2924 * doc/as.texinfo: Document --listing-XXX command line switches.
2925 Explain why listings behave differently when -pipe is used.
2926
2927 2001-03-23 Richard Sandiford <rsandifo@redhat.com>
2928
2929 * write.c (fix_new_exp): Print an error if passed a register.
2930
2931 2001-03-23 Hans-Peter Nilsson <hp@axis.com>
2932
2933 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2934 (PIC_SUFFIX_CHAR): New macro.
2935 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2936 (pic): New variable.
2937 (md_longopts): New option --pic.
2938 (OPTION_PIC): Define.
2939 (md_estimate_size_before_relax): Tweak longish comment.
2940 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2941 (md_assemble): Handle a PIC relocation on prefix and normal
2942 instruction operands.
2943 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2944 "complex" operand expressions. Call frag_more outside
2945 gen_cond_branch_32 parameter list.
2946 (cris_process_instruction): Handle PIC relocs on parsed
2947 operand expressions. Validize PIC reloc sizes.
2948 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2949 (gen_bdap): Handle "complex" operand expressions.
2950 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2951 ADD.D offset,PC as jump instruction if generating PIC. Generate
2952 error instead of crashing on complex expressions.
2953 (cris_number_to_imm): Add segT parameter. All callers changed.
2954 Use segT parameter, not now_seg, for segment of fixup. Handle
2955 PCREL relocations but check that they are fully resolved.
2956 (md_parse_option): Handle OPTION_PIC.
2957 (tc_gen_reloc): Handle PIC relocs.
2958 (md_show_usage): Update for --pic.
2959 (md_apply_fix3): Renamed from md_apply_fix.
2960 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2961 (md_cris_force_relocation): Force relocation for PIC relocs.
2962
2963 * config/tc-cris.h: Tweak attribution.
2964 (MD_APPLY_FIX3): Define.
2965 (IS_CRIS_PIC_RELOC): New macro.
2966 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2967 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2968 generating ELF.
2969 (tc_frob_symbol): Avoid emitting undefined symbols.
2970
2971 2001-03-20 Alan Modra <alan@linuxcare.com.au>
2972
2973 * frags.h (struct frag): Add relax_marker.
2974 * write.c (is_dnrange): Delete.
2975 (relax_frag): Use correct types for `aim', `target', `address'.
2976 Delete `offset', `was_address'. Test `relax_marker' instead of
2977 using fragile (and slow) address test.
2978 (relax_segment): Init and flip `relax_marker'.
2979
2980 2001-03-19 Alan Modra <alan@linuxcare.com.au>
2981
2982 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2983 used register name.
2984
2985 2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2986
2987 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2988 with 'Motorola specification for assembly language input standard'.
2989
2990 2001-03-17 Richard Henderson <rth@redhat.com>
2991
2992 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2993 (dwarf2_directive_loc): Don't use them.
2994 (dwarf2_directive_file): Reject duplicate file definitions.
2995 (get_filenum): Zero allocated memory.
2996 (out_file_list): Complain about missing file definitions.
2997
2998 2001-03-17 Alan Modra <alan@linuxcare.com.au>
2999
3000 * read.c (do_org): Handle complex expressions.
3001 * cgen.c (gas_cgen_finish_insn): Likewise.
3002
3003 2001-03-15 David Mosberger <davidm@hpl.hp.com>
3004
3005 * config/tc-ia64.c (md): New member keep_pending_output.
3006 (ia64_flush_pending_output): Flush only if md.keep_pending_output
3007 is not set.
3008 (dot_xdata): Turn on md.keep_pending_output for the duration of
3009 this function.
3010 (dot_xfloat_cons): Ditto.
3011 (dot_xstringer): Ditto.
3012 (dot_xdata_ua): Ditto.
3013 (dot_xfloat_cons_ua): Ditto.
3014
3015 2001-03-15 Jim Wilson <wilson@redhat.com>
3016
3017 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
3018 label support.
3019
3020 2001-03-15 Alexandre Oliva <aoliva@redhat.com>
3021
3022 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
3023
3024 2001-03-15 DJ Delorie <dj@redhat.com>
3025
3026 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
3027 blindly freeing string if it isn't at the top of the obstack.
3028
3029 2001-03-13 Alan Modra <alan@linuxcare.com.au>
3030
3031 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
3032 (NUM_FLAG_CODE): Define.
3033 (lex_got): New function.
3034 (got_reloc): New global var.
3035 (x86_cons_fix_new): New function.
3036 (x86_cons): New function.
3037 (i386_immediate): Use lex_got here, replacing inline code. Change
3038 "ignoring junk.." error message to "junk.."
3039 (i386_displacement): Likewise.
3040 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
3041 (x86_cons): Declare.
3042 (TC_CONS_FIX_NEW): Define.
3043 (x86_cons_fix_new): Declare.
3044
3045 2001-03-12 Nick Clifton <nickc@redhat.com>
3046
3047 * config/tc-arm.c (md_begin): Always set machine type based on
3048 cpu_variant.
3049
3050 2001-03-07 Alan Modra <alan@linuxcare.com.au>
3051
3052 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
3053 (md_assemble) <smallest displacement>: Use correct field of i.op[]
3054 union.
3055 <JumpInterSegment output>: Use correct i.disp_reloc[].
3056 <immediate output>: Likewise.
3057
3058 2001-03-06 Nick Clifton <nickc@redhat.com>
3059
3060 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
3061 BLX(1) instruction.
3062
3063 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3064
3065 * config/tc-m68k.c : Add 5407 to archs[] table.
3066 (HAVE_LONG_BRANCH): Add mcf5407.
3067 (select_control_regs): Recognize 5407.
3068
3069 2001-03-02 Dave Brolley <brolley@redhat.com>
3070
3071 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
3072 than m32r_do_align.
3073
3074 2001-03-02 Richard Sandiford <rsandifo@redhat.com>
3075
3076 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
3077 (gen_to_words): Print warnings if NaNs are found and the target CPU
3078 does not support them. Allow largest exponent to be used in normal
3079 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
3080
3081 2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
3082
3083 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
3084 anymore since we use bfd_elf_generic_reloc now.
3085 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
3086
3087 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3088
3089 * configure.in (BFD_VERSION): New.
3090 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3091 * configure: Regenerate.
3092 * Makefile.am: Run "make dep-am"
3093 * Makefile.in: Regenerate.
3094 * doc/Makefile.in: Regenerate.
3095
3096 2001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
3097
3098 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
3099 SEC_NEVER_LOAD when the 'n' flag is used.
3100 Add SEC_NEVER_LOAD to matchflags.
3101
3102 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3103
3104 * symbols.c (decode_local_label_name): Initialize message_format
3105 only when an error is reported (perf pb due to I18N).
3106
3107 2001-02-23 H.J. Lu <hjl@gnu.org>
3108
3109 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
3110 BFD_ASSEMBLER is not defined.
3111
3112 2001-02-23 Richard Sandiford <rsandifo@redhat.com>
3113
3114 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
3115 done if it's against a symbol.
3116
3117 2001-02-22 Timothy Wall <twall@cygnus.com>
3118
3119 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
3120 target formats if applicable.
3121 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
3122 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
3123 * Makefile.in: Regenerated.
3124 * configure.in: Added configuration for ia64-*-aix*.
3125 * configure: Regenerated.
3126
3127 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3128
3129 * config/tc-ia64.c (enum operand_match_result): New type.
3130 (operand_match): Change return type to operand_match_result.
3131 Fix all returns appropriately, adding support for returning the
3132 out-of-range result.
3133 (parse_operands): New locals result, error_pos, out_of_range_pos,
3134 curr_out_of_range_pos. Rewrite operand matching loop to give better
3135 error messages.
3136
3137 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3138
3139 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
3140 (dot_proc): Clear unwind.prologue_count to zero.
3141 (dot_prologue): Increment unwind.prologue_count.
3142 (dot_restore): If second operand is omitted, use
3143 unwind.prologue_count -1 for "ecount" (# of additional regions to
3144 pop). Decrement unwind.prologue_count by number of regions
3145 popped.
3146
3147 2001-02-21 Nick Clifton <nickc@redhat.com>
3148
3149 * doc/as.texinfo (Section): Note that some flags to the COFF
3150 version of .section remove attributes rather than setting them.
3151
3152 2001-02-20 Kazu Hirata <kazu@hxi.com>
3153
3154 * config/tc-pdp11.c: Fix formatting.
3155 * config/tc-pdp11.h: Likewise.
3156
3157 2001-02-20 Bo Thorsen <bo@suse.de>
3158
3159 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
3160 entry.
3161
3162 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3163
3164 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
3165 all FreeBSD platforms should look the same at this level.
3166 * configure: Rebuilt.
3167 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
3168
3169 2001-02-18 lars brinkhoff <lars@nocrew.org>
3170
3171 * Makefile.am: Add PDP-11 target.
3172 * configure.in: Likewise.
3173 * config/tc-pdp11.c: New file.
3174 * config/tc-pdp11.h: New file.
3175 * doc/Makefile.am: Add PDP-11 documentation.
3176 * doc/all.texi: Likewise.
3177 * doc/as.texinfo: Likewise.
3178 * doc/c-pdp11.texi: New file.
3179
3180 2001-02-16 matthew green <mrg@redhat.com>
3181
3182 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
3183
3184 2001-02-13 Jim Wilson <wilson@redhat.com>
3185
3186 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
3187 reloc instead of a 0 reloc.
3188 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
3189 as done.
3190 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
3191
3192 2001-02-13 Ian Lance Taylor <ian@zembu.com>
3193
3194 * write.c (is_dnrange): Stop as soon as the address becomes
3195 larger.
3196 (relax_frag): Add segment parameter. Only call symbol_get_frag
3197 once. Only call is_dnrange if the symbol is in the same segment,
3198 and the symbol address is larger.
3199 (relax_segment): Pass segment to md_relax_frag and relax_frag.
3200 * write.h (relax_frag): Update declaration.
3201 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
3202 it to relax_frag.
3203 * config/tc-m32r.c (m32r_relax_frag): Likewise.
3204 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
3205 (m32r_relax_frag): Update declaration.
3206 * config/tc-mips.h (md_relax_frag): Add segment parameter.
3207 * config/tc-tic54x.h (md_relax_frag): Likewise.
3208 * doc/internals.texi (CPU backend): Update documentation for
3209 md_relax_frag.
3210
3211 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3212
3213 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
3214 Mention effect of < 386 architectures on jump promotion.
3215 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
3216
3217 * config/tc-i386.c (no_cond_jump_promotion): New.
3218 (set_cpu_arch): Parse "jumps" arch modifier.
3219 (insn_size): Modify usage comment.
3220 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
3221 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
3222 (TYPE_FROM_RELAX_STATE): New define.
3223 (UNCOND_JUMP, COND_JUMP): Renumber.
3224 (md_relax_table): Reorder to suit.
3225 (COND_JUMP86): New define.
3226 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
3227 (md_assemble): Create frag var for jumps of max size, encode relax
3228 state for COND_JUMP86.
3229 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
3230 leave conditional jumps small if no_cond_jump_promotion.
3231 (md_convert_frag): Likewise.
3232
3233 * expr.c (operator): Don't bump input_line_pointer for two char
3234 operators. Instead return operator size via new param num_chars.
3235 (expr): Use above to parse multi-char operators correctly.
3236
3237 2001-02-12 Jan Hubicka <jh@suse.cz>
3238
3239 * config/tc-i386.c (i386_displacement): Fix handling of
3240 BFD_RELOC_X86_64_GOTPCREL.
3241 (i386_validate_fix): Likewise.
3242
3243 2001-02-12 Philip Blundell <pb@futuretv.com>
3244
3245 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
3246 ldrt/strt instructions.
3247
3248 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3249
3250 * config/tc-mips.c (macro): For M_LA_AB emit a
3251 BFD_RELOC_MIPS_CALL16 relocation or a
3252 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
3253 BFD_RELOC_MIPS_GOT16 and
3254 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
3255 loading the jump register when generating SVR4_PIC code.
3256
3257 2001-02-10 Chris Demetriou <cgd@broadcom.com>
3258
3259 * configure.in: Make 'mipself' and 'mipsecoff' emulations
3260 map to MIPS-specific files, as they used to do before the
3261 change on 2000-05-21.
3262 * configure: Regerate.
3263
3264 2001-02-10 Chris Demetriou <cgd@broadcom.com>
3265
3266 * config/tc-mips.c (md_parse_option): Don't try to compile
3267 ELF-only option code if not ELF.
3268
3269 2001-02-08 David Mosberger <davidm@hpl.hp.com>
3270
3271 * config/tc-ia64.h (md_elf_section_type): New macro.
3272 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
3273 (they're now handled via ia64_elf_section_type.
3274
3275 * config/tc-ia64.c (unwind): New members saved_text_seg,
3276 saved_text_subseg, and force_unwind_entry.
3277 (optimize_unw_records): New function to optimize away unnecessary
3278 unwind directives.
3279 (ia64_elf_section_type): New function.
3280 (output_unw_records): Generate unwind info only if the size is
3281 non-zero or if it's forced for some other reason (e.g.,
3282 handlerdata or a personality routine).
3283 (generate_unwind_image): Don't switch back to previous
3284 section---stay inside the unwind info section instead so that
3285 handlerdata that may follow goes into the right place.
3286 (dot_handlerdata): Force generation of unwind entry and save the
3287 current active text segment before generating unwind image.
3288 (dot_unwentry): Force generation of unwind entry.
3289 (dot_personality): Ditto.
3290 (dot_endp): Generate unwind table entry only if there is
3291 some unwind info or the unwind entry was forced.
3292
3293 * config/tc-ia64.c (make_unw_section_name): New macro to form
3294 unwind section name.
3295 (generate_unwind_image): Add "text_name" argument. Use it to
3296 form unwind section name.
3297 (dot_handlerdata): Determine current segment (section) name and
3298 pass it to generate_unwind_image().
3299 (dot_endp): Determine current segment (section) name and use
3300 it to determine the appropriate unwind section name.
3301 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
3302 n, fill, and max arguments.
3303
3304 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
3305
3306 * Makefile.am: Add linux target for S/390.
3307 * configure.in: Likewise.
3308 * config/tc-s390.c: New file.
3309 * config/tc-s390.h: New file.
3310
3311 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
3312
3313 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
3314 2byte, 4byte and 8byte.
3315
3316 2001-02-08 Alan Modra <alan@linuxcare.com.au>
3317
3318 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
3319 md_number_to_chars with size > sizeof (valueT).
3320
3321 2001-02-06 H.J. Lu <hjl@gnu.org>
3322
3323 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
3324 there is no relocation.
3325
3326 2001-02-06 H.J. Lu <hjl@gnu.org>
3327
3328 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
3329
3330 * config/tc-ia64.c (md_parse_option): Only accept the valid
3331 ia64 options on "-axxx".
3332
3333 2001-02-05 Jim Wilson <wilson@redhat.com>
3334
3335 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
3336 aborting for invalid operands.
3337
3338 2001-02-06 Alan Modra <alan@linuxcare.com.au>
3339
3340 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
3341 than via pointer. Update all callers.
3342 (UNWIND_LOW32): Define.
3343 (UNWIND_HIGH32): Define.
3344 (pa_build_unwind_subspace): Use the above macros instead of dumping
3345 bitfields directly. Call frag_more once rather than multiple times.
3346 (md_assemble): Use UNWIND_LOW32.
3347 (pa_entry): Likewise
3348 (pa_procend): Likewise.
3349 (process_exit): Use UNWIND_HIGH32.
3350
3351 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3352
3353 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
3354 function to select the header according to the cpu.
3355 (md_after_pass_hook, md_do_align): Remove.
3356 (md_cleanup, m68hc11_cleanup): Remove.
3357 (md_pcrel_from_section): Declare.
3358 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
3359 (build_jump_insn, build_insn): Likewise.
3360 (m68hc11_listing_header): New function.
3361 (m68hc11_cleanup): Remove.
3362
3363 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3364
3365 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
3366 symbols because there is no support for shared libraries and these
3367 symbols can't be overridden (unless they are weak).
3368
3369 2001-02-01 Momchil Velikov <velco@fadata.bg>
3370
3371 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
3372 for the compilation unit with a zero byte.
3373
3374 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3375
3376 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
3377 destinations. Correct range check for 17 and 22 bit branches.
3378
3379 2001-01-25 Nick Clifton <nickc@redhat.com>
3380
3381 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
3382 still set. Issue an error message instead.
3383 (md_estimate_size_before_relax): Delete unused variable
3384 'buffer_address'. Fixup parentheses around if statement.
3385
3386 2001-01-23 Kazu Hirata <kazu@hxi.com>
3387
3388 * as.c: Fix formatting.
3389 * ehopt.c: Likewise.
3390 * messages.c: Likewise.
3391 * stabs.c: Likewise.
3392 * symbols.c: Likewise.
3393
3394 2001-01-23 Ben Elliston <bje@redhat.com>
3395
3396 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
3397
3398 2001-01-22 Kazu Hirata <kazu@hxi.com>
3399
3400 * config/tc-alpha.c: Fix formatting.
3401
3402 2001-01-19 Kazu Hirata <kazu@hxi.com>
3403
3404 * config/tc-alpha.c: Fix formatting.
3405
3406 2001-01-18 Kazu Hirata <kazu@hxi.com>
3407
3408 * config/tc-alpha.c: Fix formatting.
3409
3410 2001-01-18 Nick Clifton <nickc@redhat.com>
3411
3412 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
3413 "da" flags.
3414 (stm_flags): Remove redundant bit from "ed" and "da" flags.
3415
3416 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
3417
3418 * configure.in (cpu_type, arch): Match i386 too.
3419 * configure: Rebuilt.
3420
3421 2001-01-16 Kazu Hirata <kazu@hxi.com>
3422
3423 * config/tc-i386.c: Fix formatting.
3424
3425 2001-01-16 Alan Modra <alan@linuxcare.com.au>
3426
3427 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
3428 relocs for .PARISC.unwind section.
3429
3430 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
3431 depending on section flags, not just for .text.
3432
3433 2001-01-15 Jim Wilson <wilson@redhat.com>
3434
3435 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
3436 not immediately followed by an instruction.
3437
3438 2001-01-15 Kazu Hirata <kazu@hxi.com>
3439
3440 * config/tc-m68hc11.c: Fix formatting.
3441
3442 2001-01-15 Nick Clifton <nickc@redhat.com>
3443
3444 * symbols.c (colon): Change 'already defined symbol' from a
3445 fatal error to an ordinary error. There is no reason why this
3446 error should be fatal.
3447
3448 * message.c (as_fatal): Delete output file, if one has been
3449 created.
3450
3451 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3452
3453 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
3454
3455 2001-01-14 Kazu Hirata <kazu@hxi.com>
3456
3457 * config/tc-alpha.c: Fix formatting.
3458 * config/tc-arc.c: Likewise.
3459 * config/tc-arc.h: Likewise.
3460 * config/tc-d10v.c: Likewise.
3461 * config/tc-i370.c: Likewise.
3462 * config/tc-i386.c: Likewise.
3463 * config/tc-i960.c: Likewise.
3464 * config/tc-m68k.c: Likewise.
3465 * config/tc-ppc.c: Likewise.
3466 * config/tc-sparc.c: Likewise.
3467 * config/tc-tahoe.c: Likewise.
3468 * config/tc-vax.c: Likewise.
3469
3470 * config/tc-arc.c: Fix formatting.
3471
3472 * config/tc-arc.c: Fix formatting.
3473
3474 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3475
3476 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
3477 both 32 and 64 bit ELF.
3478
3479 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
3480 and don't bother storing `m' for "ce" completer. Tidy handling of
3481 'J' and 'K' operands to suit. Handle '<' and '>' operands.
3482
3483 2001-01-14 Jan Hubicka <jh@suse.cz>
3484
3485 * config/tc-i386.h (TARGET_MACH): New macro.
3486 (i386_mach): Declare.
3487 * config/tc-i386.c (i386_mach): New function.
3488
3489 2001-01-13 Philip Blundell <philb@gnu.org>
3490
3491 * doc/as.texinfo: Fix spelling and cross-references.
3492
3493 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
3494 character for all systems, not just GNU/Linux. Make it explicit
3495 that `-k' doesn't affect code generation, just ELF flags.
3496
3497 2001-01-13 Jan Hubicka <jh@suse.cz>
3498
3499 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
3500 instructions.
3501
3502 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
3503
3504 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
3505
3506 2001-01-12 Nick Clifton <nickc@redhat.com>
3507
3508 * as.c (print_args): Update copyright date to 2001.
3509
3510 2001-01-12 Peter Targett <peter.targett@arccores.com>
3511
3512 * doc/c-arc.texi: New file.
3513 Some sections to be expanded.
3514
3515 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3516
3517 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
3518 (md_parse_option): Always accept "--32".
3519
3520 2001-01-11 Peter Targett <peter.targett@arccores.com>
3521
3522 * as.h (TC_ARC): Ensure struc-symbol.h included.
3523 * as.c (dwarf2dbg.h): Include to remove implicit declaration
3524 warnings.
3525 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
3526 (TARGET_SYMBOL_FIELDS) added.
3527
3528 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
3529 * doc/c-arc.texi: New file.
3530 Some sections to be expanded.
3531 * doc/as.texinfo: Update command-line options.
3532 Removed outdated text for ARC dependant features, instead include
3533 text from above file.
3534
3535 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
3536 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
3537 (targ-cpu.h) header.
3538 * config/tc-arc.h:
3539 * config/tc-arc.c: New updated configuration for
3540 ARC, including selection of core variants, and extensibility of
3541 instructions, registers etc. through directives.
3542
3543 * config/tc-arc.c (arc_extinst): Minor corrections for
3544 error messages.
3545 (arc_common) Likewise. Make alignment argument optional for local
3546 symbols also, with default of zero.
3547
3548 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3549
3550 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
3551 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
3552 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
3553 and fix_new_exp() instead.
3554 (md_convert_frag): For indexed post byte use the symbol value
3555 rather than the displacement.
3556 (md_relax_table): Fix indexed offset relax.
3557
3558 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3559
3560 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
3561 relax weak symbols.
3562 (relaxable_symbol): New function.
3563
3564 2001-01-11 Andreas Jaeger <aj@suse.de>
3565
3566 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
3567 not used anywhere.
3568
3569 2001-01-10 Nick Clifton <nickc@redhat.com>
3570
3571 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
3572 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
3573
3574 2001-01-10 Nick Clifton <nickc@redhat.com>
3575
3576 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
3577 character used to dollar local symbols.
3578 (LOCAL_LABEL_CHAR): New constant - the magic character used to
3579 local label symbols.
3580 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
3581 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
3582 if defined.
3583 Use LOCAL_LABEL_CHAR.
3584 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
3585 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3586 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3587
3588 2001-01-08 Bo Thorsen <bo@suse.de>
3589
3590 * config/tc-i386.c (i386_immediate, i386_displacement):
3591 GOTPCREL check fix.
3592
3593 2001-01-07 Ian Lance Taylor <ian@zembu.com>
3594
3595 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
3596 in last change.
3597
3598 2001-01-07 Philip Blundell <philb@gnu.org>
3599
3600 * doc/as.texinfo (Bug Reporting): Update email address for
3601 reports.
3602 * README: Likewise.
3603
3604 2001-01-06 Jan Hubicka <jh@suse.cz>
3605
3606 * configure.in: Define DEFAULT_ARCH for i386.
3607 * config/tc-i386.c (md_assemble): Return after the error message;
3608 move testing for 64bit operands to proper place.
3609
3610 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
3611
3612 * doc/as.texinfo: Document '#' as comment character for i386 and
3613 x86_64. Add AMD x86-64 into menu of machine dependent information.
3614
3615 * doc/c-i386.texi: Document x86_64 extensions.
3616
3617 2001-01-05 Jan Hubicka <jh@suse.cz>
3618
3619 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
3620
3621 2001-01-04 Jan Hubicka <jh@suse.cz>
3622
3623 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
3624 * NEWS: Add note about Pentium4 support.
3625
3626 2001-01-04 Jan Hubicka <jh@suse.cz>
3627
3628 * config/tc-i387.c (pi, pte, pt): Update.
3629 (type_names): Add new types.
3630
3631 2001-01-03 Jan Hubicka <jh@suse.cz>
3632
3633 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
3634 CpuUnknown): Renumber
3635 (CpuP4, CpuSSE2): New.
3636 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
3637
3638 2001-01-03 Philip Blundell <pb@futuretv.com>
3639
3640 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
3641 relocs.
3642 (alpha_fix_adjustable): Likewise.
3643 (md_apply_fix): Likewise.
3644
3645 2000-12-31 H.J. Lu <hjl@gnu.org>
3646
3647 * listing.c (listing_message): Allocate string only if it is
3648 used.
3649
3650 * configure: Rebuild.
3651
3652 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
3653
3654 * doc/internals.texi (Relaxing with a table) <after relaxation>:
3655 Point out caveats with generating fixups for the opcode in a frag.
3656
3657 2000-12-30 Jan Hubicka <jh@suse.cz>
3658
3659 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
3660 * NEWS: Add x86_64.
3661
3662 2000-12-29 H.J. Lu <hjl@gnu.org>
3663
3664 * listing.c (calc_hex): Print the variable part only if the
3665 fragment type is rs_fill.
3666
3667 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3668
3669 * doc/internals.texi (tc_conditional_pseudoop,
3670 TC_LINKRELAX_FIXUP): Fix typos.
3671
3672 2000-12-28 Richard Henderson <rth@redhat.com>
3673
3674 * write.c (subsegs_finish): Fix thinko last change -- don't
3675 "optimize" the alignment == 0 case.
3676
3677 2000-12-28 Richard Henderson <rth@redhat.com>
3678
3679 * as.h (rs_align_test): New.
3680 * frags.c (NOP_OPCODE): Move default from read.c.
3681 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
3682 (frag_align_code): New.
3683 * frags.h (frag_align_code): Declare.
3684 * read.c (NOP_OPCODE): Remove.
3685 (do_align): Use frag_align_code.
3686 * write.c (NOP_OPCODE): Remove.
3687 (get_recorded_alignment): New.
3688 (cvt_frag_to_fill): Handle rs_align_test.
3689 (relax_segment): Likewise.
3690 (subsegs_finish): Align last subseg in section to the
3691 section alignment. Use frag_align_code.
3692 * write.h (get_recorded_alignment): Declare.
3693 * config/obj-coff.c (size_section): Handle rs_align_test.
3694 (fill_section, fixup_mdeps): Likewise.
3695 (write_object_file): Use frag_align_code.
3696
3697 * config/tc-alpha.c (alpha_align): Use frag_align_code.
3698 (alpha_handle_align): New.
3699 * config/tc-alpha.h (HANDLE_ALIGN): New.
3700 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3701
3702 * config/tc-i386.h (md_do_align): Use frag_align_code.
3703 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3704
3705 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
3706 (ia64_handle_align): New.
3707 * config/tc-ia64.h (HANDLE_ALIGN): New.
3708 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3709
3710 * config/tc-m32r.c (m32r_do_align): Remove.
3711 (m32r_handle_align): New.
3712 (fill_insn): Use frag_align_code.
3713 * config/tc-m32r.h (md_do_align): Remove.
3714 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
3715 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
3716 * config/tc-mips.c, config/tc-mips.h: Similarly.
3717
3718 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
3719 (sh_handle_align): Likewise. Handle rs_align_code.
3720 (sh_do_align): Remove.
3721 * config/tc-sh.h (md_do_align): Remove.
3722 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3723
3724 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
3725 (sparc_handle_align): Likewise. Handle rs_align_code.
3726 * config/tc-sparc.h (md_do_align): Remove.
3727 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3728
3729 2000-12-22 DJ Delorie <dj@redhat.com>
3730
3731 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
3732 when we assemble the first half of a pair.
3733
3734 2000-12-22 H.J. Lu <hjl@gnu.org>
3735
3736 * config/tc-i386.c (reloc): Update the macro for non-bfd
3737 assembler.
3738 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
3739
3740 2000-12-22 H.J. Lu <hjl@gnu.org>
3741
3742 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
3743
3744 2000-12-20 Jan Hubicka <jh@suse.cz>
3745
3746 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3747 (QWORD_MNEM_SUFFIX): New macro.
3748 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
3749 New macros
3750 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
3751 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
3752 ImmExt): Renumber.
3753 (Size64, No_qSuf, NoRex64, Rex64): New macros.
3754 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
3755 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
3756 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
3757 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
3758 Renumber.
3759 (Reg, WordReg): Add Reg64.
3760 (Imm): Add Imm32S and Imm64.
3761 (EncImm): New.
3762 (Disp): Add Disp64 and Disp32S.
3763 (AnyMem): Add Disp32S.
3764 (RegRex, RegRex64): New macros.
3765 (rex_byte): New type.
3766 * config/tc-i386.c (set_16bit_code_flag): Kill.
3767 (fits_in_unsigned_long, fits_in_signed_long): New functions.
3768 (reloc): New parameter "signed"; support x86_64.
3769 (set_code_flag): New.
3770 (DEFAULT_ARCH): New macro; default to "i386".
3771 (default_arch): New static variable.
3772 (struct _i386_insn): New fields Operand_PCrel; rex.
3773 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
3774 (flag_code): New enum and static variable.
3775 (use_rela_relocations): New static variable.
3776 (flag_code_names): New static variable.
3777 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
3778 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
3779 K6 and Athlon.
3780 (i386_align_code): Return plain "nop" for x86_64.
3781 (mode_from_disp_size): Support Disp32S.
3782 (smallest_imm_type): Support Imm32S and Imm64.
3783 (offset_in_range): Support size of 8.
3784 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
3785 (md_pseudo_table): Add "code64"; use set_code_flat.
3786 (md_begin): Emit sane error message on hash failure.
3787 (tc_i386_fix_adjustable): Support x86_64 relocations.
3788 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
3789 instructions supported on particular arch just partially,
3790 output of 64bit immediates, handling of Imm32S and Disp32S type.
3791 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
3792 (i386_displacement): Likewise.
3793 (i386_index_check): Cleanup; support 64bit addresses.
3794 (md_apply_fix3): Support x86_64 relocation and rela.
3795 (md_longopts): Add "32" and "64".
3796 (md_parse_option): Add OPTION_32 and OPTION_64.
3797 (i386_target_format): Call even for ELFs; choose between
3798 elf64-x86-64 and elf32-i386.
3799 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
3800 (tc_gen_reloc): Support rela relocations and x86_64.
3801 (intel_e09_1): Support QWORD.
3802
3803 2000-12-15 Diego Novillo <dnovillo@redhat.com>
3804
3805 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
3806 it's not an offset expression.
3807 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
3808 keep the braces '[' and ']' in the output string.
3809 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
3810 != FLAT. There is no such op_modifier.
3811
3812 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3813
3814 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
3815 if we have it.
3816
3817 2000-12-13 Kazu Hirata <kazu@hxi.com>
3818
3819 * as.h: Fix formatting.
3820 * cgen.h: Likewise.
3821 * dwarf2dbg.c: Likewise.
3822 * input-scrub.c: Likewise.
3823 * read.h: Likewise.
3824
3825 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
3826
3827 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
3828 configure: Regenerate.
3829
3830 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3831
3832 * dwarf2dbg.c: #include <limits.h> only if it exists.
3833
3834 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
3835
3836 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
3837 (md_apply_fix): Here too.
3838
3839 2000-12-12 Jim Wilson <wilson@redhat.com>
3840
3841 * config/tc-ia64.h (ia64_init): Add prototype.
3842
3843 2000-12-12 H.J. Lu <hjl@gnu.org>
3844
3845 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
3846
3847 * read.h (outputting_stabs_line_debug): Change it to int.
3848 * stabs.c (outputting_stabs_line_debug): Likewise.
3849
3850 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3851
3852 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
3853 the address of a function result.
3854
3855 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3856
3857 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
3858 (md_assemble): Call dwarf2_emit_insn.
3859 (shlib): Fix typo SHILB -> SHLIB.
3860 (md_parse_option): Likewise.
3861 (ppc_elf_validate_fix): Likewise:
3862 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3863
3864 2000-12-12 Nick Clifton <nickc@redhat.com>
3865
3866 * cgen.h: Fix formatting.
3867 * input-scrub.c: Fix formatting.
3868 * macro.c: Fix formatting.
3869 * config/tc-mips.c: Fix formatting.
3870 * doc/c-mips.texi: Fix formatting.
3871
3872 2000-12-11 Jan hubicka <jh@suse.cz>
3873
3874 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
3875 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
3876 references.
3877 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
3878 otherwise.
3879 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
3880 (No_dSuf): Kill.
3881
3882 * i386.h (*_Suf): Remove No_dSuf.
3883 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
3884 Remove.
3885 (i386_optab): Remove 'd' in the suffixes.
3886
3887 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3888
3889 * config/tc-i386.c (T_SHORT): Undefine before defining.
3890
3891 2000-12-05 Kazu Hirata <kazu@hxi.com>
3892
3893 * config/tc-mips.c: Fix formatting.
3894
3895 2000-12-04 Matthew Hiller <hiller@redhat.com>
3896
3897 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
3898 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
3899 (md_show_usage): Ditto.
3900 (md_parse_option): Ditto.
3901 (d10v_cleanup): Writes pending instruction only if
3902 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
3903 Fix compile time warning messages.
3904
3905 * doc/c-d10v.texi: Documents new options.
3906
3907 2000-12-04 Matthew Hiller <hiller@redhat.com>
3908
3909 * stabs.c (outputting_stabs_line_debug): New variable.
3910 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
3911 function entry and unset at function exit.
3912
3913 * read.h (outputting_stabs_line_debug): New extern declaration.
3914
3915 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
3916
3917 * dwarf2dbg.c: Fix compile time warning messages.
3918
3919 2000-12-03 Kazu Hirata <kazu@hxi.com>
3920
3921 * config/tc-a29k.c: Fix formatting.
3922 * config/tc-alpha.c: Likewise.
3923 * config/tc-arm.c: Likewise.
3924 * config/tc-cris.c: Likewise.
3925 * config/tc-hppa.c: Likewise.
3926 * config/tc-i370.c: Likewise.
3927 * config/tc-i386.c: Likewise.
3928 * config/tc-i860.c: Likewise.
3929 * config/tc-i960.c: Likewise.
3930 * config/tc-ia64.c: Likewise.
3931 * config/tc-m68hc11.c: Likewise.
3932 * config/tc-m68k.c: Likewise.
3933 * config/tc-m88k.c: Likewise.
3934 * config/tc-pj.c: Likewise.
3935 * config/tc-ppc.c: Likewise.
3936 * config/tc-sh.c: Likewise.
3937 * config/tc-sparc.c: Likewise.
3938 * config/tc-tahoe.c: Likewise.
3939 * config/tc-vax.c: Likewise.
3940
3941 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3942
3943 * config/tc-mips.c (mips_ip): When calculating offsets,
3944 don't accept as constant the difference between the
3945 addresses of symbols in two different sections.
3946
3947 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3948 specifiers.
3949 (validate_mips_insn): Likewise. Also, update 'B' operand
3950 specifier to use OP_*_CODE20 constants and delete 'm' operand
3951 specifier.
3952 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3953 operand specifiers. Change warning generated by 'B' operand
3954 specifier to reflect its new multi-purpose usage.
3955
3956 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3957 -1, and update comment.
3958 (file_mips_isa): Likewise.
3959 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3960 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3961 ISA_* constants rather than hard-coded numbers.
3962 (mips_cpu_info): New structure.
3963 (mips_cpu_info_table): New table describing CPU and ISA names
3964 and numbers.
3965 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3966 mips_cpu_info_from_cpu): New functions.
3967 (mips_isa_to_str): New function to get string for ISA name.
3968 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3969 return const char *.
3970 (md_begin): Redo CPU and ISA selection logic, using
3971 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3972 than hard-coded numbers.
3973 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3974 ISA_* constants rather than hard-coded numbers.
3975 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3976 (md_longopts): Delete OPTION_NO_MIPS32.
3977 (md_parse_option): Convert to use ISA_* constants rather than
3978 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3979 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3980 to use strcasecmp to recognize "default" and to use
3981 mips_cpu_info_from_name to get CPU numbers from argument.
3982 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3983 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3984 mips32-4k.
3985 (s_mipsset): Accept ISA value 32.
3986 * doc/as.texinfo: Clean up MIPS options summary slightly,
3987 remove -no-mips32. Add note about -mips4 and -mips32
3988 specifying those ISA levels. Delete -mips32 and -no-mips32
3989 cpu flag descriptions.
3990 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3991 up the supported CPU switch list, and replace 4Kc, 4Km, and
3992 4Kp entries with a single mips32-4k entry. Note that you can
3993 use ".set mips32".
3994
3995 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
3996 ISA_MIPS64.
3997 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3998 -mips5 and -mips64.
3999 (md_parse_option): Add cases for OPTION_MIPS5 and
4000 OPTION_MIPS64.
4001 (md_show_usage): Mention -mips5 and -mips64 arguments.
4002 (s_mipsset): Add cases for MIPS5 and MIPS64.
4003 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
4004 and pseudo-CPUs.
4005 * doc/as.texinfo: Mention -mips5 and -mips64 options
4006 and their meanings.
4007 * doc/c-mips.texi: Likewise. Also update introduction
4008 and ".set" usage information.
4009
4010 * config/tc-mips.c (md_show_usage): Add "sb1" to the
4011 CPU list.
4012 (mips_cpu_info_table): Add SB-1 entries.
4013 * doc/c-mips.texi: Add "sb1" to the list of CPUs
4014 known to the -mcpu option.
4015
4016 * doc/as.texinfo: Correct description of MIPS -mcpu
4017 option, by copying some of the text from doc/c-mips.texi.
4018
4019 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4020
4021 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4022 New targets.
4023 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4024 (sparc*-*-rtems*): Switched from a.out to ELF.
4025 * configure: Regenerate.
4026 * config.in: Regenerate.
4027 * Makefile.in: Regenerate.
4028 * aclocal.m4: Regenerate.
4029 * po/gas.pot: Regenerate.
4030
4031 2000-11-30 Philip Blundell <pb@futuretv.com>
4032
4033 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
4034 even in non BFD_ASSEMBLER case.
4035
4036 2000-11-30 Diego Novillo <dnovillo@redhat.com>
4037
4038 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
4039 syntax.
4040
4041 2000-11-29 Richard Henderson <rth@redhat.com>
4042
4043 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
4044 until dwarf2_finish; use relaxation to get cross-fragment offsets;
4045 thread multiple subsegments properly; handle multiple code
4046 sections properly; emit proper compilation unit info for assembler
4047 generated debugging.
4048
4049 * as.h (enum _relax_state): Add rs_dwarf2dbg.
4050 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
4051 (dwarf2dbg_estimate_size_before_relax): Declare.
4052 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
4053 * write.c: Include dwarf2dbg.h.
4054 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
4055 (relax_segment): Likewise.
4056
4057 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
4058
4059 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
4060 jump>: Use as_bad_where instead of as_bad. Tweak error message
4061 accordingly. Stabilize frag by updating fix part and resetting
4062 variant part.
4063 <undefined symbol, unconditional jump>: Ditto.
4064 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
4065 indexing is_end_of_line[].
4066 (md_assemble): Initialize size to 0.
4067 (md_section_align): Mark parameter seg as unused.
4068 (parse_reg): Parse names case-insensitively.
4069
4070 2000-11-28 Kazu Hirata <kazu@hxi.com>
4071
4072 * config/obj-aout.h: Fix formatting.
4073 * config/obj-bout.h: Likewise.
4074 * config/obj-coff.c: Likewise.
4075 * config/obj-coff.h: Likewise.
4076 * config/obj-elf.h: Likewise.
4077 * config/obj-som.h: Likewise.
4078 * config/obj-vms.c: Likewise.
4079 * config/obj-vms.h: Likewise.
4080 * config/tc-h8300.h: Likewise.
4081 * config/tc-ns32k.h: Likewise.
4082 * config/tc-sparc.h: Likewise.
4083 * config/tc-tic54x.h: Likewise.
4084 * config/tc-z8k.h: Likewise.
4085
4086 2000-11-28 Nick Clifton <nickc@redhat.com>
4087
4088 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
4089 License is present in the sources, but not the output, and
4090 also available from the GNU website.
4091 (GNU Free Documentation License): Comment out this section.
4092
4093 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
4094
4095 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
4096 targets. Remove i860 from valid a.out targets.
4097 * Makefile.in: Regenerate.
4098
4099 * config/tc-cris.c: Include dwarf2dbg.h.
4100 (md_pseudo_table): Add .file and .loc.
4101 (md_assemble): Call dwarf2_emit_insn if generating ELF.
4102 (s_cris_file, s_cris_loc): New.
4103 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4104 * Makefile.am: Regenerate dependencies.
4105 * Makefile.in: Regenerate.
4106
4107 2000-11-28 Alan Modra <alan@linuxcare.com.au>
4108
4109 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
4110 (MRI_MUL_PRECEDENCE): Likewise.
4111 (op_rank): Fix a comment typo.
4112
4113 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4114
4115 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
4116 the error message.
4117 (get_operand): Fix analysis for movw/movb instructions.
4118
4119 2000-11-24 Nick Clifton <nickc@redhat.com>
4120
4121 * configure.in (xscale-elf): Add target.
4122 (xscale-coff): Add target.
4123 * configure: Regenerate.
4124
4125 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
4126 extenstion.
4127 (ARM_EXT_XSCALE): New ARM architecture extension.
4128 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
4129 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
4130 (ARM_THUMB): Rename to ARM_EXT_THUMB.
4131 (ARM_ARCH_V4): Remove processor from architecture.
4132 (ARM_ARCH_3M): New architecutre definition.
4133 (ARM_ARCH_V5TE): New architecutre definition.
4134 (ARM_ARCH_XSCALE): New architecutre definition.
4135 (CPU_DEFAULT): Allow to be defaulted to XScale.
4136 (atpcs): New boolean variable.
4137 (ldr_flags): Support 'd' flag for double word loads.
4138 (str_flags): Support 'd' flag for double word stored.
4139 (do_mia): New function.
4140 (do_mar): New function.
4141 (do_mra): New function.
4142 (do_pld): New function.
4143 (do_ldrd): New function.
4144 (do_blx): New function.
4145 (do_bkpt): New function.
4146 (do_clz): New function.
4147 (do_lstc2): New function.
4148 (do_cdp2): New function.
4149 (do_t_blx): New function.
4150 (do_t_bkpt): New function.
4151 (do_smla): New function.
4152 (do_smlal): New function.
4153 (do_smul): New function.
4154 (do_qadd): New function.
4155 (do_co_reg2c): New function.
4156 (LONGEST_INSN): Redefine to 7.
4157
4158 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
4159 command line switches.
4160
4161 2000-11-22 Jim Wilson <wilson@redhat.com>
4162
4163 * config/tc-ia64.c (pseudo_func): Add missing initializers.
4164 (struct rsrc): Make line unsigned.
4165 (gr_values): Add missing initializer.
4166 (SLOT_NUM_NOT_SET): Add unsigned cast.
4167 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
4168 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
4169 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
4170 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
4171 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
4172 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
4173 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
4174 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
4175 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
4176 Add ATTRIBUTE_UNUSED to unused parameters.
4177 (convert_expr_to_ab_reg): Add parens.
4178 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
4179 (dot_prologue): Initialize grsave when declared.
4180 (md_pseudo_table): Add missing initializers.
4181 (operand_match): Add casts to bfd_vma.
4182 (emit_one_bundle): Delete unused local prev. Make required_template
4183 unsigned.
4184 (specify_resource): Cast i to unsigned.
4185 (note_register_values): Use fprintf_vma.
4186 (print_dependency): Likewise.
4187
4188 2000-11-21 Jim Wilson <wilson@redhat.com>
4189
4190 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
4191 for unwind info section.
4192 (dot_endp): Likewise for unwind section.
4193
4194 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
4195 fix_new_exp.
4196
4197 2000-11-21 Jakub Jelinek <jakub@redhat.com>
4198
4199 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
4200 (output_insn): Call dwarf2_emit_insn.
4201 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4202
4203 2000-11-17 Richard Henderson <rth@redhat.com>
4204
4205 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
4206 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
4207 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
4208
4209 2000-11-17 Nick Clifton <nickc@redhat.com>
4210
4211 * config/tc-arm.c (md_pseudo_table): Add support for .line and
4212 .file pseudo ops.
4213
4214 2000-11-17 Richard Henderson <rth@redhat.com>
4215
4216 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
4217
4218 2000-11-17 Richard Henderson <rth@redhat.com>
4219
4220 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
4221 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
4222 tri-state definition of alpha_flag_mdebug.
4223 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
4224 (s_alpha_file): Store first .file directive.
4225 (s_alpha_stab): New.
4226 (md_pseudo_table): Add stabs and stabn.
4227
4228 2000-11-17 Richard Henderson <rth@redhat.com>
4229
4230 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
4231
4232 2000-11-17 Richard Henderson <rth@redhat.com>
4233
4234 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
4235 (main): Call dwarf2_finish.
4236 * as.h (debug_type): Clarify documentation of the meaning
4237 of this variable.
4238 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
4239 (print_stats): Fix parenthesis problem.
4240 (now_subseg_size): New.
4241 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
4242 (dwarf2_directive_file): Don't set debug_type.
4243 (dwarf2_where): Honor DEBUG_DWARF2 first.
4244 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
4245 do nothing if not emitting dwarf2 debug info, or no work.
4246 * dwarf2dbg.h (dwarf2_emit_insn): Update.
4247 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
4248 (ecoff_new_file): Likewise.
4249 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
4250 commentary wrt dwarf2.
4251
4252 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
4253 ATTRIBUTE_UNUSED as needed.
4254 (emit_insn): Call dwarf2_emit_insn.
4255 (s_alpha_file): New.
4256 (s_alpha_loc): New.
4257 (s_alpha_coff_wrapper): Don't handle them.
4258 (md_pseudo_table): Update for .file and .loc.
4259 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4260
4261 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
4262 don't protect with debug_type.
4263 * config/tc-hppa.c (md_assemble): Likewise.
4264 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
4265 * config/tc-mn10300.c (md_assemble): Likewise.
4266 * config/tc-sh.c (md_assemble): Likewise.
4267 * config/tc-v850.c (md_assemble): Likewise.
4268
4269 * config/tc-arm.c (arm_end_of_source): Remove.
4270 * config/tc-hppa.c (pa_end_of_source): Remove.
4271 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
4272 * config/tc-mn10300.c (mn10300_finalize): Remove.
4273 * config/tc-sh.c (sh_finalize): Remove.
4274 * config/tc-v850.c (sh_finalize): Remove.
4275
4276 * config/tc-arm.h (md_end): Remove.
4277 * config/tc-hppa.h (md_end): Remove.
4278 (DWARF2_LINE_MIN_INSN_LENGTH): New.
4279 * config/tc-m68hc11.h (md_end): Remove.
4280 * config/tc-mn10300.h (md_end): Remove.
4281 * config/tc-sh.h (md_end): Remove.
4282 * config/tc-v850.h (md_end): Remove.
4283
4284 * config/tc-ia64.c (emit_one_bundle): Don't protect
4285 dwarf2 bits with debug_type.
4286 (md_assemble): Likewise.
4287 (ia64_end_of_source): Don't call dwarf2_finish.
4288
4289 2000-11-16 Jim Wilson <wilson@redhat.com>
4290
4291 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
4292 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
4293 > 16.
4294
4295 2000-11-16 H.J. Lu <hjl@gnu.org>
4296
4297 * config/obj-elf.c (obj_elf_symver): Don't check the missing
4298 version name.
4299
4300 2000-11-15 Kazu Hirata <kazu@hxi.com>
4301
4302 * config/tc-tic30.c: Fix formatting.
4303 * config/tc-tic80.c: Likewise.
4304 * config/tc-v850.c: Likewise.
4305 * config/tc-vax.c: Likewise.
4306 * config/tc-w65.c: Likewise.
4307 * config/tc-z8k.c: Likewise.
4308
4309 2000-11-14 DJ Delorie <dj@redhat.com>
4310
4311 * config/tc-v850.c: Support dwarf2.
4312 * config/tc-v850.h: Ditto.
4313
4314 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
4315 parse_cons_expression_v850 to initialize hold_cons_reloc.
4316
4317 2000-11-15 Bernd Schmidt <bernds@redhat.com>
4318
4319 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
4320 (errata_nops_necessary_p): New function.
4321 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
4322 md.
4323
4324 2000-11-14 Jim Wilson <wilson@redhat.com>
4325
4326 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
4327 return little endian bfd formats.
4328
4329 2000-11-14 Kazu Hirata <kazu@hxi.com>
4330
4331 * config/aout_gnu.h: Fix formatting.
4332 * config/atof-vax.c: Likewise.
4333 * config/m68k-parse.h: Likewise.
4334 * config/m88k-opcode.h: Likewise.
4335 * config/obj-elf.c: Likewise.
4336 * config/tc-arm.c: Likewise.
4337 * config/tc-cris.c: Likewise.
4338 * config/tc-i386.c: Likewise.
4339 * config/tc-ia64.c: Likewise.
4340 * config/tc-mn10300.c: Likewise.
4341 * config/te-386bsd.h: Likewise.
4342 * config/te-hppa.h: Likewise.
4343 * config/te-nbsd.h: Likewise.
4344 * config/te-ppcnw.h: Likewise.
4345 * config/te-sparcaout.h: Likewise.
4346 * config/te-tmips.h: Likewise.
4347 * config/vax-inst.h: Likewise.
4348 * config/vms-conf.h: Likewise.
4349
4350 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4351
4352 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
4353
4354 2000-11-13 H.J. Lu <hjl@gnu.org>
4355
4356 * config/obj-elf.c (elf_frob_symbol): Support
4357 ".symver name,name2@@@nodename".
4358 (elf_frob_file_before_adjust): Likewise.
4359
4360 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
4361 and ".symver name,name2@@@nodename".
4362 Fix a typo.
4363
4364 2000-11-12 H.J. Lu (hjl@gnu.org)
4365
4366 * config/obj-elf.c (obj_elf_symver): Check missing version
4367 name.
4368
4369 2000-11-12 H.J. Lu (hjl@gnu.org)
4370
4371 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
4372 instead of bfd_vma for non-bfd assemblers.
4373
4374 2000-11-09 Kazu Hirata <kazu@hxi.com>
4375
4376 * itbl-ops.c: Fix comment typos.
4377
4378 2000-11-08 Jim Wilson <wilson@redhat.com>
4379
4380 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
4381 (struct unwind): Add next_slot_frag field.
4382 (slot_index): New parameters slot_frag and first_frag. Add code
4383 to add in frag sizes when different. Add comments.
4384 (fixup_unw_records): New locals first_frag and last_frag. Pass new
4385 arguments to slot_index.
4386 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
4387 loop end. Set next_slot_frag field.
4388
4389 2000-11-07 H.J. Lu <hjl@gnu.org>
4390
4391 * doc/as.texinfo (.symver): Updated for versioned symbol
4392 reference.
4393
4394 * obj.h (format_ops): Add the frob_file_before_adjust field.
4395
4396 * config/obj-aout.c (aout_format_ops): Set the
4397 frob_file_before_adjust field to 0.
4398 * config/obj-coff.c (coff_format_ops): Likewise.
4399 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
4400
4401 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
4402 name.
4403 (elf_frob_file_before_adjust): New function to remove unneeded
4404 versioned symbols from the symbol table.
4405 (elf_format_ops): Set the frob_file_before_adjust field to
4406 elf_frob_file_before_adjust.
4407
4408 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
4409 not defined.
4410
4411 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
4412
4413 2000-11-07 Peter Targett <peter.targett@arccores.com>
4414
4415 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4416 BIG_ENDIAN macros.
4417 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4418 Fix compile time warning messages.
4419
4420 2000-11-07 Nick Clifton <nickc@redhat.com>
4421
4422 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
4423 buffer in order to avoid buffer overflows.
4424
4425 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4426
4427 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
4428 Change M to m for -milp32 or -mlp64 to match gcc.
4429 (dot_endp): Use bytes_per_address instead of 8.
4430 (emit_one_bundle): Use number_to_chars_littleendian instead of
4431 md_number_to_chars.
4432 (fix_insn): Likewise.
4433 (ia64_init): New function.
4434 (ia64_target_format): New function.
4435 (md_begin): Set endianness, arch, and machine as appropriate.
4436 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
4437 Make these macros depend on TE_HPUX macro.
4438 (TARGET_FORMAT): Define.
4439 (HOST_SPECIAL_INIT): Define.
4440 * config/te-hpux.h: New file.
4441 * configure.in: Add "ia64-*-hpux*" target to configure.
4442 * configure: Regenerate.
4443
4444 2000-11-06 Kazu Hirata <kazu@hxi.com>
4445
4446 * as.c: Fix formatting.
4447 * dwarf2dbg.c: Likewise.
4448 * input-file.c: Likewise.
4449 * input-file.h: Likewise.
4450 * input-scrub.c: Likewise.
4451 * itbl-ops.c: Likewise.
4452 * listing.c: Likewise.
4453 * macro.h: Likewise.
4454 * messages.c: Likewise.
4455 * read.c: Likewise.
4456 * subsegs.c: Likewise.
4457 * subsegs.h: Likewise.
4458 * write.c: Likewise.
4459
4460 2000-11-06 Nick Clifton <nickc@redhat.com>
4461
4462 * doc/as.texinfo: Add GNU Free Documentation License.
4463 * doc/gasp.texi: Add GNU Free Documentation License.
4464 * doc/as.1: Add GNU Free Documentation License.
4465
4466 2000-11-05 Nick Clifton <nickc@redhat.com>
4467
4468 * config/tc-arm.c: Add include of "dwarf2dbg.h"
4469
4470 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4471
4472 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
4473 * configure: Regenerate.
4474
4475 2000-11-01 Nick Clifton <nickc@redhat.com>
4476
4477 * read.c (original_case_string): New global variable.
4478 (read_a_source_file): Copy opcode string into
4479 original_case_string if clobbering the case of the opcode.
4480 * read.h: Export the definition of original_case_string.
4481 * config/tc-arm.c (md_assembler): When parsing a .req
4482 directive use the original opcode string, not the case
4483 clobbered version.
4484
4485 2000-11-02 Nick Clifton <nickc@redhat.com>
4486
4487 * config/tc-mn10300.c (debug_line): Remove this static
4488 variable.
4489 (md_assemble): Call dwarf2_generate_asm_lineno instead of
4490 dwarf2_where and dwarf2_gen_line_info.
4491
4492 2000-11-02 Theo Honohan <th@futuretv.com>
4493
4494 * config/tc-arm.c (do_msr): Improve error message.
4495
4496 2000-10-31 Eric Christopher <echristo@redhat.com>
4497
4498 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
4499 or pc-relative, else use fx_offset.
4500
4501 2000-10-31 Jim Wilson <wilson@redhat.com>
4502
4503 * config/tc-ia64.c (struct md): New field tag_fixups.
4504 (ia64_flush_insns): Handle tag_fixups. Error if dangling
4505 qualifying predicate.
4506 (emit_one_bundle): Delete spurious multiplication by one. Handle
4507 tag_fixups.
4508 (ia64_start_line): Error if dangling qualifying predicate.
4509 (defining_tag): New static variable.
4510 (ia64_unrecognized_line, case '['): Parse tags.
4511 (ia64_frob_label): Create tag_fixups.
4512 (md_assemble): Reset md.qp.X_op after using it.
4513
4514 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4515
4516 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
4517
4518 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
4519
4520 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
4521
4522 2000-10-30 Kazu Hirata <kazu@hxi.com>
4523
4524 * expr.c: Fix formatting.
4525 * flonum-copy.c: Likewise.
4526 * flonum.h: Likewise.
4527 * gasp.c: Likewise.
4528 * hash.c: Likewise.
4529
4530 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
4531
4532 * as.h (OPTION_MD_BASE): Bump to 190.
4533 * as.c (parse_args) <std_longopts>: Add comment about the need to
4534 check OPTION_MD_BASE in as.h.
4535
4536 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
4537 for weak symbols.
4538
4539 2000-10-27 Nick Clifton <nickc@redhat.com>
4540
4541 * configure.in (emulations): Add m68hc12.
4542 * configure: Regenerate.
4543 * po/gas.pot: Regenerate.
4544
4545 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
4546
4547 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
4548 cpsr*.
4549 (arm_psr_parse): Handle lowercase CPSR and SPSR.
4550
4551 2000-10-25 Nick Clifton <nickc@redhat.com>
4552
4553 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
4554 a DWARF2 line number information sequence.
4555
4556 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
4557
4558 * read.c (generate_lineno_debug): Update comment describing why
4559 DWARF2 line number debug information is not generated
4560 automatically by this function.
4561
4562 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
4563 not all.
4564
4565 * config/tc-arm.h (md_end): Define.
4566 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4567
4568 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
4569 if generating DWARF2 line numbers.
4570 (arm_end_of_source): New function. Call dwarf2_finish if
4571 necessary.
4572
4573 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
4574 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
4575 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
4576
4577 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
4578
4579 * config/tc-i386.c: Fix prototype declarations for functions taking no
4580 arguments.
4581
4582 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
4583
4584 * config/tc-i386.c (i386_operand_modifier): Remove.
4585 (build_displacement_string): Remove.
4586 (i386_parse_seg): Remove.
4587 (i386_intel_memory_operand): Remove.
4588 (i386_intel_operand): Re-write using recursive descent parser based
4589 on MASM documentation.
4590 (struct intel_parser_s): New structure.
4591 (intel_parser): New static variable.
4592 (struct intel_token): New structure.
4593 (cur_token, prev_token): New static variables.
4594 (T_NIL): Define.
4595 (T_CONST): Define.
4596 (T_REG): Define.
4597 (T_BYTE): Define.
4598 (T_WORD): Define.
4599 (T_DWORD): Define.
4600 (T_QWORD): Define.
4601 (T_XWORD): Define.
4602 (T_SHORT): Define.
4603 (T_OFFSET): Define.
4604 (T_PTR): Define.
4605 (T_ID): Define.
4606 (intel_match_token): New function.
4607 (intel_get_token): New function.
4608 (intel_putback_token): New function.
4609 (intel_expr): New function.
4610 (intel_e05): New function.
4611 (intel_e05_1): New function.
4612 (intel_e06): New function.
4613 (intel_e06_1): New function.
4614 (intel_e09): New function.
4615 (intel_e09_1): New function.
4616 (intel_e10): New function.
4617 (intel_e10_1): New function.
4618 (intel_e11): New function.
4619
4620 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4621
4622 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
4623 instructions to loose any special insn->architecture mask.
4624
4625 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
4626 (sparc_md_end, sparc_arch_types, sparc_arch,
4627 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
4628 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
4629 request v9b architecture if they are used).
4630
4631 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4632
4633 * config/tc-m68k.c: Fix the previous misapplied patch.
4634
4635 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4636
4637 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
4638 BFD_ASSEMBLER and !BFD_ASSEMBLER.
4639 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
4640 BFD_RELOC_*.
4641
4642 2000-10-17 Kazu Hirata <kazu@hxi.com>
4643
4644 * debug.c: Fix formatting.
4645 * depend.c: Likewise.
4646 * dwarf2dbg.c: Likewise.
4647 * dwarf2dbg.h: Likewise.
4648 * ecoff.c: Likewise.
4649 * expr.c: Likewise.
4650 * expr.h: Likewise.
4651 * flonum-konst.c: Likewise.
4652 * frags.h: Likewise.
4653
4654 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4655
4656 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
4657 options.
4658 * doc/as.texinfo: Added notes about this new option.
4659
4660 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
4661
4662 * config/tc-sh.c (JREG): Remove.
4663 (md_convert_frag): Remove #if 0:d code using JREG.
4664
4665 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
4666
4667 * config/tc-i386.c (i386_operand_modifier): Only match
4668 modifiers SHORT and FLAT if they are followed by a space.
4669 (parse_register): When `allow_naked_reg' is set, do not confuse
4670 identifiers that start with a register name with a register.
4671
4672 2000-10-12 Kazu Hirata <kazu@hxi.com>
4673
4674 * app.c: Fix formatting.
4675 * as.c: Likewise.
4676 * as.h: Likewise.
4677 * bit_fix.h: Likewise.
4678 * cgen.c: Likewise.
4679 * cgen.h: Likewise.
4680 * cond.c: Likewise.
4681
4682 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4683
4684 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
4685
4686 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4687
4688 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
4689 Re-arrange function a little and improve error message.
4690
4691 * write.c (write_relocs): Fix a comment.
4692
4693 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
4694 link-once sections.
4695
4696 2000-10-05 Jim Wilson <wilson@cygnus.com>
4697
4698 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
4699
4700 2000-10-05 Alan Modra <alan@linuxcare.com.au>
4701
4702 * config/tc-i386.c: Delete some useless comments, reformat others.
4703
4704 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
4705 non-global syms in linkonce sections.
4706
4707 2000-10-04 Ralf Baechle <ralf@gnu.org>
4708
4709 * config/tc-ia64.c (operand_match): Don't use // style comments.
4710 * config/tc-i370.c: Likewise.
4711
4712 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4713
4714 Changes to handle varying register prefix and user symbol prefix.
4715 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
4716 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
4717 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
4718 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
4719 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
4720 (demand_register_prefix): New variable.
4721 (md_pseudo_table): New pseudo ".syntax".
4722 (md_longopts): New options --no-underscore and --underscore.
4723 (cris_target_format): Return elf32-us-cris or elf32-cris depending
4724 on symbols_have_leading_underscore.
4725 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
4726 (get_spec_reg): Ditto.
4727 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
4728 Fix formatting.
4729 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
4730 --help.
4731 <case OPTION_NO_US, case OPTION_US>: New.
4732 (md_show_usage): Be brief and reformat to match continuation of
4733 --help.
4734 * po/gas.pot: Regenerate.
4735
4736 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4737
4738 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
4739 force relocs for 12 bit branches.
4740 (md_apply_fix): Similarly, adjust logic here.
4741
4742 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4743
4744 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
4745 adjust for external and weak syms as we will use a reloc. Allow
4746 for +8 offset when calculating limits of branches.
4747 (hppa_fix_adjustable): Undo 2000-09-23 change.
4748 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
4749 Correct distance calculation.
4750 (tc_gen_reloc): Print the file name and line number if we can't
4751 handle a fixup.
4752
4753 From John David Anglin <dave@hiauly1.hia.nrc.ca>
4754 * config/tc-hppa.c (nonzero_dibits): Define.
4755 (arg_reloc_stub_needed): Check each arg and return value
4756 separately for zero case.
4757 (pa_align): Declare argument `bytes'.
4758
4759 2000-09-25 Kazu Hirata <kazu@hxi.com>
4760
4761 * config/tc-cris.c: Fix formatting.
4762 * config/tc-d10v.h: Likewise.
4763 * config/tc-d30v.c: Likewise.
4764 * config/tc-d30v.h: Likewise.
4765 * config/tc-fr30.c: Likewise.
4766 * config/tc-fr30.h: Likewise.
4767 * config/tc-m68k.c: Likewise.
4768 * config/tc-m68k.h: Likewise.
4769 * config/tc-pj.h: Likewise.
4770 * config/tc-ppc.c: Likewise.
4771 * config/tc-ppc.h: Likewise.
4772 * config/tc-sh.c: Likewise.
4773 * config/tc-sh.h: Likewise.
4774 * config/tc-sparc.c: Likewise.
4775 * config/tc-v850.h: Likewise.
4776 * config/tc-vax.h: Likewise.
4777 * config/tc-w65.h: Likewise.
4778 * config/tc-z8k.h: Likewise.
4779
4780 2000-09-23 Alan Modra <alan@linuxcare.com.au>
4781
4782 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
4783 checks only for ELF.
4784 (hppa_force_relocation): Likewise.
4785
4786 2000-09-22 Jim Wilson <wilson@cygnus.com>
4787
4788 * config/tc-ia64.c (dv_sem): Add "stop".
4789 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
4790 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
4791 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
4792 match above.
4793 (mark_resources): Check IA64_RS_PRr.
4794
4795 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4796
4797 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
4798 md_estimate_size_before_relax): Redesign and clean up the
4799 relaxation mechanism.
4800
4801 2000-09-21 Kazu Hirata <kazu@hxi.com>
4802
4803 * config/tc-ns32k.c: Fix formatting.
4804 * config/tc-ns32k.h: Likewise.
4805
4806 2000-09-20 Kazu Hirata <kazu@hxi.com>
4807
4808 * config/tc-m32r.c: Fix formatting.
4809 * config/tc-m32r.h: Likewise.
4810 * config/tc-m68851.h: Likewise.
4811 * config/tc-m68hc11.c: Likewise.
4812 * config/tc-m68hc11.h: Likewise.
4813 * config/tc-m88k.c: Likewise.
4814 * config/tc-mcore.c: Likewise.
4815 * config/tc-mcore.h: Likewise.
4816 * config/tc-mips.c: Likewise.
4817 * config/tc-mips.h: Likewise.
4818 * config/tc-mn10200.h: Likewise.
4819 * config/tc-mn10300.h: Likewise.
4820 * config/tc-tahoe.c: Likewise.
4821 * config/tc-tahoe.h: Likewise.
4822
4823 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4824
4825 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
4826 Likewise in relaxation description comments.
4827
4828 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4829
4830 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
4831 subtraction of two syms without emitting a relocation.
4832
4833 From David Huggins-Daines <dhd@linuxcare.com>
4834 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
4835 global or weak symbols.
4836
4837 2000-09-15 Kazu Hirata <kazu@hxi.com>
4838
4839 * config/tc-h8300.h: Fix formatting.
4840 * config/tc-h8500.c: Likewise.
4841 * config/tc-h8500.h: Likewise.
4842 * config/tc-hppa.h: Likewise.
4843 * config/tc-i370.h: Likewise.
4844 * config/tc-i386.h: Likewise.
4845 * config/tc-i860.c: Likewise.
4846 * config/tc-i860.h: Likewise.
4847 * config/tc-i960.h: Likewise.
4848 * config/tc-ia64.c: Likewise.
4849 * config/tc-ia64.h: Likewise.
4850
4851 2000-09-14 Kazu Hirata <kazu@hxi.com>
4852
4853 * config/tc-a29k.c: Fix formatting.
4854 * config/tc-alpha.c: Likewise.
4855 * config/tc-arc.c: Likewise.
4856 * config/tc-arc.h: Likewise.
4857 * config/tc-arm.c: Likewise.
4858 * config/tc-arm.h: Likewise.
4859 * config/tc-avr.c: Likewise.
4860 * config/tc-avr.h: Likewise.
4861 * config/tc-tic30.c: Likewise.
4862 * config/tc-tic30.h: Likewise.
4863 * config/tc-tic54x.c: Likewise.
4864 * config/tc-tic54x.h: Likewise.
4865 * config/tc-tic80.c: Likewise.
4866 * config/tc-tic80.h: Likewise.
4867
4868 2000-09-14 Timothy Wall <twall@cygnus.com>
4869
4870 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
4871 parallel comparisons for later use.
4872 (struct rsrc): Add parallel comparison type.
4873 (resources_match): Skip special cases of PR usage (non-conflicting
4874 parallel compares).
4875
4876 2000-09-13 Kazu Hirata <kazu@hxi.com>
4877
4878 * config/obj-ecoff.c: Fix formatting.
4879 * config/obj-elf.c: Likewise.
4880 * config/obj-elf.h: Likewise.
4881 * config/obj-evax.h: Likewise.
4882 * config/obj-generic.h: Likewise.
4883 * config/obj-hp300.c: Likewise.
4884 * config/obj-hp300.h: Likewise.
4885 * config/obj-ieee.h: Likewise.
4886 * config/obj-vms.c: Likewise.
4887 * config/obj-vms.h: Likewise.
4888
4889 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4890
4891 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
4892 (md_parse_option): Ditto.
4893 (md_longopts): Add -mips32 option.
4894 (md_show_usage): Document new options.
4895 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
4896 (mips_ip): Assemble mfc0 with a sub-selection code.
4897 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
4898 (mips_cpu_to_str): New function.
4899 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
4900 Use CPU_* defines instead of hardcoded numbers.
4901
4902 * doc/as.texinfo: Document new options.
4903 * doc/c-mips.texi: Ditto.
4904
4905 2000-09-12 Kazu Hirata <kazu@hxi.com>
4906
4907 * as.h: Fix formatting.
4908 * asintl.h: Likewise.
4909 * bit_fix.h: Likewise.
4910 * config/obj-aout.c: Likewise.
4911 * config/obj-aout.h: Likewise.
4912 * config/obj-bout.c: Likewise.
4913 * config/obj-bout.h: Likewise.
4914 * config/obj-coff.c: Likewise.
4915 * config/obj-coff.h: Likewise.
4916 * dwarf2dbg.h: Likewise.
4917 * expr.h: Likewise.
4918 * flonum.h: Likewise.
4919 * frags.h: Likewise.
4920 * itbl-ops.h: Likewise.
4921 * macro.h: Likewise.
4922 * read.h: Likewise.
4923 * sb.h: Likewise.
4924 * struc-symbol.h: Likewise.
4925 * subsegs.h: Likewise.
4926 * symbols.h: Likewise.
4927 * tc.h: Likewise.
4928 * write.h: Likewise.
4929
4930 2000-09-11 Kazu Hirata <kazu@hxi.com>
4931
4932 * bignum-copy.c: Fix formatting.
4933 * config/tc-i370.c: Likewise.
4934 * config/tc-i960.c: Likewise.
4935 * config/tc-m68k.c: Likewise.
4936 * ehopt.c: Likewise.
4937 * flonum-copy.c: Likewise.
4938 * flonum-konst.c: Likewise.
4939 * flonum-mult.c: Likewise.
4940 * literal.c: Likewise.
4941 * read.c: Likewise.
4942 * sb.c: Likewise.
4943 * stabs.c: Likewise.
4944 * subsegs.c: Likewise.
4945
4946 2000-09-09 Philip Blundell <philb@gnu.org>
4947
4948 * configure.in (arm*-*-uclinux*): New target.
4949 * configure: Regenerate.
4950
4951 2000-09-09 Kazu Hirata <kazu@hxi.com>
4952
4953 * input-file.c: Fix formatting.
4954 * itbl-ops.c: Likewise.
4955 * messages.c: Likewise.
4956
4957 2000-09-08 Philip Blundell <philb@gnu.org>
4958
4959 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4960 offset is negative.
4961
4962 2000-09-07 H.J. Lu <hjl@gnu.org>
4963
4964 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4965 * configure: Rebuild.
4966
4967 2000-09-07 Kazu Hirata <kazu@hxi.com>
4968
4969 * atof-generic.c: Fix formatting.
4970 * config/tc-mips.c: Likewise.
4971 * config/tc-vax.c: Likewise.
4972 * input-scrub.c: Likewise.
4973
4974 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4975
4976 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4977 * configure.in (sh-*-linux*): Added.
4978 * configure: Rebuilt.
4979
4980 2000-09-06 Kazu Hirata <kazu@hxi.com>
4981
4982 * config/tc-hppa.c: Fix formatting.
4983
4984 * ecoff.c: Fix formatting.
4985
4986 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4987
4988 * configure: Rebuilt with new libtool.m4.
4989
4990 2000-09-05 Kazu Hirata <kazu@hxi.com>
4991
4992 * cgen.c: Fix formatting.
4993 * config/tc-ia64.c: Likewise.
4994
4995 2000-09-05 Nick Clifton <nickc@redhat.com>
4996
4997 * aclocal.m4: Regenerate.
4998 * config.in: Regenerate.
4999 * configure: Regenerate.
5000 * po/gas.pot: Regenerate.
5001
5002 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
5003
5004 * config/tc-cris.c: Correct comment typos.
5005
5006 2000-09-05 Eric Christopher <echristo@cygnus.com>
5007
5008 * config/tc-mn10300.c: Cleanup.
5009 (md_pcrel_from): Enable.
5010
5011 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5012
5013 * expr.c (operand): Fix a comment typo.
5014 * write.c (write_relocs): Fix a signed/unsigned warning.
5015
5016 * config/tc-hppa.c (fudge_reg_expressions): New
5017 (hppa_force_reg_syms_absolute): New.
5018 (pa_equ): Allow reg_section expressions.
5019 * config/tc-hppa.c (md_optimize_expr): Define.
5020 (hppa_force_reg_syms_absolute): Prototype.
5021
5022 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
5023 (pa_parse_number): Pass in arg to select fp reg parsing.
5024 Return 1 to indicate format checks pass. If strict, then only
5025 accept a register or register symbol. Return value in...
5026 (pa_number): New static for pa_parse_number.
5027 (FP_REG_BASE): Define.
5028 (FP_REG_RSEL): Define.
5029 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
5030 appropriate. White space changes.
5031 (need_pa11_opcode): Don't bother passing any params, get them from
5032 globals instead.
5033 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
5034 Remove extraneous check in case 'Q'.
5035 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
5036 reg, set section of resulting symbol to reg_section.
5037 (pa_parse_space_stmt): Modify call to pa_parse_number.
5038 (pa_space): Likewise.
5039
5040 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
5041 (hppa_force_relocation): Handle vtable relocs.
5042 (pa_vtable_entry): New.
5043 (pa_vtable_inherit): New.
5044 (md_pseudo_table): Add entries for vtable pseudos.
5045 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
5046 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
5047 against weak syms.
5048 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
5049 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
5050 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
5051 millicode import.
5052 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
5053 specify a symbol type.
5054
5055 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
5056 dependent things together.
5057 (md_elf_symbol_type): Define.
5058
5059 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
5060 symbol.
5061 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
5062
5063 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
5064 (obj_elf_vtable_entry): Declare.
5065
5066 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
5067 and export function.
5068 (obj_elf_vtable_entry): Similarly.
5069 (elf_pseudo_table): Fix the damage with a cast.
5070
5071 2000-09-03 Richard Henderson <rth@cygnus.com>
5072
5073 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
5074 for template selection when a label is needed.
5075
5076 2000-09-02 Kazu Hirata <kazu@hxi.com>
5077
5078 * config/tc-ia64.c: Fix formatting.
5079
5080 2000-09-02 Nick Clifton <nickc@redhat.com>
5081
5082 * configure.in: Increase version number to 2.10.91.
5083 * configure: Regenerate.
5084 * aclocal.m4: Regenerate.
5085 * config.in: Regenerate.
5086 * po/gas.pot: Regenerate.
5087 * Makefile.in: Regenerate.
5088
5089 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
5090
5091 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
5092 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
5093 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
5094 similar relocs.
5095 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
5096 branches.
5097
5098 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5099
5100 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
5101 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
5102 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
5103 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
5104 (GOT_symbol): New variable.
5105 (md_undefined_symbol): Set it.
5106
5107 2000-09-01 Richard Henderson <rth@cygnus.com>
5108
5109 * config/tc-ia64.c (match): Don't inline.
5110 (extra_goodness): New.
5111 (md_begin): Prefer nop.f and nop.b for best_template.
5112
5113 2000-08-31 Kazu Hirata <kazu@hxi.com>
5114
5115 * as.c: Fix formatting.
5116 * cond.c: Likewise.
5117 * frags.c: Likewise.
5118 * macro.c: Likewise.
5119
5120 2000-08-31 Eric Christopher <echristo@cygnus.com>
5121
5122 * config/tc-mn10300.c: Cleanup and fix warnings.
5123 (md_pseudo_table): Add initializers.
5124 (md_show_usage): Cleanup.
5125 (md_parse_option): Fix warnings.
5126 (md_undefined_symbol): Fix warnings.
5127 (md_conver_frag): Fix warnings.
5128 (tc_gen_reloc): Fix warnings.
5129 (md_apply_fix3): Fix warnings.
5130 (check_operand): Fix warnings.
5131
5132 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5133
5134 * acinclude.m4: Include libtool and gettext macros from the
5135 top level.
5136 * aclocal.m4, configure: Rebuilt.
5137
5138 2000-08-30 Mark Hatle <mhatle@mvista.com>
5139
5140 * config/tc-ppc.c (md_parse_option): Recognize -m405.
5141
5142 2000-08-31 Kazu Hirata <kazu@hxi.com>
5143
5144 * listing.c: Fix formatting.
5145
5146 2000-08-29 Kazu Hirata <kazu@hxi.com>
5147
5148 * app.c: Fix a comment typo. Fix formatting.
5149
5150 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5151
5152 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
5153 offset of the target destination for jmp instructions.
5154 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
5155
5156 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5157
5158 * NEWS: Mention support for CRIS.
5159
5160 2000-08-24 Denis Chertykov <denisc@overta.ru>
5161
5162 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
5163 Sets `.lcomm' alignment to zero.
5164
5165 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5166
5167 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
5168 TC_FIX_ADJUSTABLE): Define.
5169
5170 2000-08-23 Jim Wilson <wilson@cygnus.com>
5171
5172 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
5173 unwind.personality_routine is set.
5174
5175 2000-08-23 H.J. Lu <hjl@gnu.org>
5176
5177 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
5178
5179 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5180
5181 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
5182 environment is pe.
5183
5184 2000-08-22 H.J. Lu <hjl@gnu.org>
5185
5186 * config.in (STRICTCOFF): New for strict COFF.
5187
5188 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
5189 i386-*-go32* and i386-go32-rtems*.
5190 * configure: Rebuilt.
5191
5192 * config/obj-coff.c (obj_coff_endef): Follow the historical
5193 behavior if STRICTCOFF is not defined.
5194
5195 * doc/internals.texi: Document STRICTCOFF.
5196
5197 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5198
5199 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
5200 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
5201 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5202 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
5203 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5204 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
5205 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
5206 Likewise.
5207
5208 2000-08-22 Eric Christopher <echristo@cygnus.com>
5209
5210 * config/tc-mn10300.c: (md_apply_fix): New function.
5211 (mn10300_force_relocation): New function.
5212 (mn10300_fix_adjustable): New function.
5213
5214 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
5215 (TC_HANDLES_FX_DONE): Define.
5216 (obj_fix_adjustable): Define.
5217 (MD_APPLY_FIX3): Define.
5218 (TC_LINKRELAX_FIXUP): Define.
5219
5220 * write.c: (TC_LINKRELAX_FIXUP): Define if not
5221 previously defined.
5222 (fixup_segment): Use TC_LINKRELAX_FIXUP.
5223
5224 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
5225
5226 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5227
5228 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
5229 if the fixup resulted in a relocation.
5230
5231 2000-08-18 Nick Clifton <nickc@redhat.com>
5232
5233 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
5234 Make reference to first element of shift_names explicit.
5235
5236 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
5237
5238 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
5239 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
5240 add a symbol's address. Removed all target-specific #ifdefs that
5241 used to accomplished the same.
5242 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5243 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5244 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5245 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5246 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5247
5248 2000-08-17 Kazu Hirata <kazu@hxi.com>
5249
5250 * dwarf2dbg.c: Fix formatting.
5251
5252 2000-08-17 Nick Clifton <nickc@redhat.com>
5253
5254 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
5255 to be recoded as logical shift lefts by zero.
5256
5257 2000-08-16 Jim Wilson <wilson@cygnus.com>
5258
5259 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
5260 postincrement modified registers. Handle IA64_OPND_R3_2 addl
5261 source registers.
5262 (note_register_values): Handle IA64_OPND_R3_2 operands.
5263
5264 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5265
5266 * config/tc-i860.c (md_operand): Silly typo fixed.
5267
5268 2000-08-16 Nick Clifton <nickc@redhat.com>
5269
5270 * config/tc-arm.c (struct asm_shift): Delete.
5271 (shift[]): Delete.
5272 (enum asm_shift_index): New.
5273 (struct asm_shift_properties): New.
5274 (struct asm_shift_name): New.
5275 (shift_properties[]); New.
5276 (shift_names[]); New.
5277
5278 (decode_shift): Use new structures.
5279 Issue a warning is "ROR #0" is used.
5280 Issue a warning if "ASR #0" or "LSR #0" is used.
5281
5282 (md_begin): Initialise arm_shift_hsh table from new
5283 asm_shift_name array.
5284
5285 2000-08-16 Jakub Jelinek <jakub@redhat.com>
5286
5287 * config/tc-sparc.c: Kill all warnings.
5288 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
5289 in -xarch= as well.
5290 (md_show_usage): Update usage text.
5291
5292 2000-08-16 Nick Clifton <nickc@redhat.com>
5293
5294 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
5295 useful.
5296
5297 2000-08-15 Will Cohen <wcohen@redhat.com>
5298
5299 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
5300
5301 * config/tc-sh.c (md_assemble): Changed so debug_type
5302 test performed for ppi_assemble
5303 * config/tc-sh.c: Included dwarf2dbg.h.
5304 (debug_line): Defined.
5305 (md_assemble): Generates dwarf2 line info.
5306 (sh_finalize): New function. Finalize dwarf2 info.
5307 (assemble_ppi): Returns size of code generated.
5308 (build_Mytes): Returns size of code generated.
5309 (md_pseudo_table): Added "file" and "loc" psuedo ops.
5310 * config/tc-sh.h (md_end): Defined.
5311 (sh_finalize): Declared.
5312
5313 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
5314
5315 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
5316 md_number_to_chars.
5317
5318 2000-08-14 Nick Clifton <nickc@redhat.com>
5319
5320 * config/tc-arm.c (do_bx): Allow "bx pc".
5321
5322 2000-08-14 Jim Wilson <wilson@cygnus.com>
5323
5324 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
5325 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
5326 (md_begin): Change assignment to md.flag to OR in the new bit.
5327
5328 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
5329
5330 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
5331 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
5332 C_MOU, and C_EOS.
5333
5334 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5335
5336 * NEWS: Mention i860 support.
5337
5338 2000-08-14 Jeffrey A Law (law@cygnus.com)
5339
5340 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5341
5342 2000-08-14 Andreas Schwab <schwab@suse.de>
5343
5344 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
5345
5346 2000-08-11 Andreas Schwab <schwab@suse.de>
5347
5348 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
5349 argument.
5350
5351 2000-08-11 Kazu Hirata <kazu@hxi.com>
5352
5353 * expr.c: Fix formatting.
5354 * config/obj-bout.c: Likewise.
5355
5356 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5357
5358 * doc/c-i860.texi: Flesh out the i860 section more.
5359
5360 2000-08-10 Kazu Hirata <kazu@hxi.com>
5361
5362 * symbols.c: Fix formatting.
5363 * expr.c: Likewise.
5364
5365 2000-08-09 Diego Novillo <dnovillo@cygnus.com>
5366
5367 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
5368 modifier has the IgnoreSize bit set.
5369
5370 2000-08-09 Alan Modra <alan@linuxcare.com.au>
5371
5372 From Rodney Brown <RodneyBrown@mynd.com>
5373 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
5374 * configure: Regenerate.
5375
5376 2000-08-09 Kazu Hirata <kazu@hxi.com>
5377
5378 * hash.c: Fix formatting.
5379 * gasp.c: Likewise.
5380
5381 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5382
5383 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
5384 (i860_fix_info): New enum.
5385 (MD_APPLY_FIX3): Define.
5386 (WORKING_DOT_WORD): Define.
5387 (TC_HANDLES_FX_DONE): Define.
5388 (DIFF_EXPR_OK): Define.
5389 (LISTING_HEADER): Define.
5390 (TARGET_FORMAT): Select target format based on endian flag.
5391 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
5392 (target_big_endian): Add external declaration.
5393
5394 * config/tc-i860.c: All existing code reworked completely. Other
5395 new code shown below.
5396 (SYNTAX_SVR4): Define.
5397 (target_warn_expand): New variable.
5398 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
5399 (md_longopts): Declare and define with new options (-EL, -EB,
5400 and -mwarn-expand).
5401 (md_show_usage): New function.
5402 (md_operand): New function.
5403 (obtain_reloc_for_imm16): New function.
5404 (md_apply_fix3): New function.
5405 (tc_gen_reloc): New function.
5406
5407 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5408
5409 * config/tc-m68hc11.c (build_jump_insn): Make sure the
5410 2 bytes of the jump address are in the same frag.
5411 (find): Accept 68hc12 register indirect modes.
5412
5413 * NEWS: Mention 68HC11 & 68HC12 support.
5414
5415 2000-08-07 Richard Henderson <rth@cygnus.com>
5416
5417 * config/tc-ia64.c (unwind): Add prologue_mask member.
5418 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
5419 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
5420 (dot_body): Clear unwind.prologue_mask.
5421 (dot_prologue): Set it. Accept a register second argument.
5422
5423 2000-08-07 Kazu Hirata <kazu@hxi.com>
5424
5425 * config/atof-ieee.c: Fix formatting.
5426 * config/atof-tahoe.c: Likewise.
5427
5428 2000-08-06 Nick Clifton <nickc@cygnus.com>
5429
5430 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
5431 work.
5432
5433 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
5434 of .popsection, .previous, .pushsection, .subsection,
5435 .version, .vtable_entry, .vtable_inherit and .weak.
5436
5437 2000-08-05 Kazu Hirata <kazu@hxi.com>
5438
5439 * config/tc-cris.c: Fix formatting.
5440 * config/tc-i386.c: Likewise.
5441 * config/tc-sparc.c (sparc_ip): Simplify the code.
5442
5443 2000-08-04 Kazu Hirata <kazu@hxi.com>
5444
5445 * config/tc-cris.c: Rearrange code for readability.
5446 * config/tc-d10v.c: Fix formatting.
5447 * config/tc-m32r.c: Likewise.
5448 * config/tc-sparc.c: Likewise.
5449
5450 2000-08-02 Jim Wilson <wilson@cygnus.com>
5451
5452 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
5453 before ia64_find_opcode.
5454 (md_assemble): Likewise.
5455
5456 2000-08-01 Nick Clifton <nickc@cygnus.com>
5457
5458 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
5459 Undo some formatting fixes.
5460
5461 2000-08-01 Kazu Hirata <kazu@hxi.com>
5462
5463 * config/obj-som.c: Fix formatting.
5464 * config/obj-ieee.c: Likewise.
5465 * config/tc-arm.c: Likewise.
5466 * config/tc-v850.c: Likewise.
5467
5468 2000-08-01 Nick Clifton <nickc@redhat.com>
5469
5470 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
5471 index by command line option.
5472
5473 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5474
5475 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
5476 (@node M68K-Branch): Rewrite to match the reality.
5477
5478 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5479
5480 * doc/c-i860.texi: New file.
5481 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
5482 * doc/Makefile.in: Regenerate.
5483 * doc/all.texi: Add I860 as relevant architecture.
5484 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
5485
5486 2000-07-31 Kazu Hirata <kazu@hxi.com>
5487
5488 * config/tc-d30v.c: Fix formatting.
5489
5490 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5491
5492 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
5493 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
5494 long emit a long branch if available instead of an absolute jump, never
5495 emit absolute jumps for anything with --pcrel.
5496
5497 * doc/c-m68k.texi: Document new command line option.
5498
5499 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
5500
5501 * config/tc-avr.c: Use PARAMS macro in function declarations.
5502 Don't declare md_pcrel_from_section (already in tc-avr.h).
5503 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
5504 (avr_operand): Don't set (unsigned) op_mask to -1.
5505
5506 2000-07-28 Jason Eckhardt <jle@cygnus.com>
5507
5508 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
5509 * configure: Regenerated.
5510 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
5511 of operand to the .type directive (.e.g, "type").
5512
5513 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5514
5515 * as.h (warn_comment, found_comment, found_comment_file): Declare.
5516 * app.c (do_scrub_chars): Record where first comment found.
5517 * read.c (read_a_source_file): Init found_comment on entry, and
5518 notify whether comments found on exit.
5519 * config/tc-hppa.c (md_shortopts): Add "c".
5520 (md_longopts): Add warn-comment.
5521 (md_parse_option): Handle it.
5522 (md_show_usage): Show available options.
5523 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
5524
5525 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
5526
5527 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
5528 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
5529 sym_ptr_ptr
5530 (md_estimate_size_before_relax): Don't fall off end of function.
5531
5532 2000-07-27 Kazu Hirata <kazu@hxi.com>
5533
5534 * config/tc-avr.c: Fix formatting.
5535 * config/tc-ns32k.c: Likewise.
5536
5537 2000-07-27 Alan Modra <alan@linuxcare.com.au>
5538
5539 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
5540
5541 2000-07-27 Kazu Hirata <kazu@hxi.com>
5542
5543 * config/tc-d10v.c: Fix formatting.
5544 * config/tc-z8k.c: Likewise.
5545 * config/tc-sparc.c: Likewise.
5546
5547 2000-07-26 Dave Brolley <brolley@redhat.com>
5548
5549 * cgen.c (queue_fixup): Declare opinfo.
5550 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
5551 (gas_cgen_md_operand): Ditto.
5552 (gas_cgen_md_apply_fix3): Ditto.
5553
5554 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
5555
5556 * config/obj-coff.c (obj_frob_symbol): Don't merge
5557 labels. Don't merge if the symbol isn't constant. Return
5558 immediately if a symbol is merged.
5559
5560 2000-07-22 Alan Modra <alan@linuxcare.com.au>
5561
5562 * frags.c (frag_align): Correct absolute section alignment.
5563
5564 2000-07-20 DJ Delorie <dj@redhat.com>
5565
5566 * config/obj-coff.c (obj_frob_symbol): revert previous change,
5567 it breaks linking against DLLs.
5568
5569 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5570
5571 * configure.in: Add CRIS support.
5572 * configure: Regenerate.
5573 * Makefile.am: (CPU_TYPES): Add cris.
5574 (CPU_OBJ_VALID) [aout]: Add cris.
5575 (MULTI_CPU_TYPES): Add cris.
5576 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
5577 [coff]: Only i386 and mips are valid.
5578 (TARGET_CPU_CFILES): Add config/tc-cris.c.
5579 (TARGET_CPU_HFILES): Add config/tc-cris.h.
5580 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
5581 Regenerate dependencies.
5582 * Makefile.in: Regenerate.
5583 * aclocal.m4: Regenerate.
5584 * as.c: Declare crisaout, criself.
5585 * config/tc-cris.h, config/tc-cris.c: New.
5586 * config/e-criself.c, config/e-crisaout.c: New.
5587 * po/POTFILES.in, po/gas.pot: Regenerate.
5588
5589 2000-07-20 Kazu Hirata <kazu@hxi.com>
5590
5591 * read.c: Fix formatting.
5592 * write.c: Fix formatting.
5593
5594 2000-07-19 H.J. Lu <hjl@gnu.org>
5595
5596 * sb.c: Include <stdlib.h> if exists for abort ().
5597
5598 2000-07-19 Alan Modra <alan@linuxcare.com.au>
5599
5600 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
5601 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
5602 (pa_type_args): Same here.
5603
5604 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
5605
5606 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
5607 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
5608 the storage class is already set.
5609
5610 2000-07-17 Kazu Hirata <kazu@hxi.com>
5611
5612 * config/tc-m68hc11.c: Fix formatting.
5613 * config/tc-mn10200.c: Likewise.
5614 * config/tc-mn10300.c: Likewise.
5615 * config/tc-pj.c: Likewise.
5616 * config/tc-tic80.c: Likewise.
5617 * config/tc-w65.c: Likewise.
5618
5619 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
5620
5621 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
5622 is defined.
5623
5624 2000-07-15 Ian Lance Taylor <ian@zembu.com>
5625
5626 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
5627 @code.
5628
5629 2000-07-15 Alan Modra <alan@linuxcare.com.au>
5630
5631 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
5632 ELF as are used for SOM (except the 32-bit reloc one) to decide
5633 whether a symbol can be reduced to a section symbol. Expand on
5634 the comment for symbols involved in LR% and RR% expressions.
5635
5636 2000-07-14 Nick Clifton <nickc@cygnus.com>
5637
5638 * config/tc-mips.c (mips_disable_float_construction): New
5639 static variable. Set to true if doubles should not be
5640 constructed by loading two single width fp registers with
5641 halves of the value.
5642 (mips_ip): Test mips_disable_float_construction.
5643 (md_longopts): Add command line switches --construct-floats
5644 and --no-construct-floats.
5645 (md_parse_option): Parse new command line options.
5646 (md_show_usage): Describe new command line options.
5647
5648 * doc/c-mips.texi: Document new command line options.
5649
5650 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
5651
5652 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
5653 * configure: Regenerate.
5654
5655 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
5656
5657 * configure.in (DEFAULT_EMULATION setting): Revert part of
5658 2000-07-01 change that set te_multi=multi unless set to tmips.
5659 * configure: Regenerate.
5660
5661 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5662
5663 * config/obj-coff.c (coff_frob_section): Add padding to the last
5664 section when aligning it increases its size.
5665
5666 2000-07-11 Kazu Hirata <kazu@hxi.com>
5667
5668 * config/tc-tic54x.c: Fix formatting.
5669
5670 2000-07-10 Kazu Hirata <kazu@hxi.com>
5671
5672 * config/tc-h8500.c: Fix formatting.
5673 * config/tc-tic54x.c: Fix formatting.
5674
5675 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5676
5677 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
5678 displacements correctly.
5679
5680 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
5681
5682 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
5683
5684 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
5685 warning.
5686 (hash_jam): Ditto.
5687
5688 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5689
5690 From David Huggins-Daines <dhd@linuxcare.com>
5691 * config/te-hppalinux64.h: Add a new emulation.
5692 * configure.in (emulations): Add configure bits to support the
5693 64-bit Linux/parisc target.
5694 * configure: Regenerate.
5695
5696 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
5697 (md_shortopts): Add `V' for ELF.
5698
5699 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
5700 when SOM or ELF_ARG_RELOC are defined.
5701 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
5702 ELF_ARG_RELOC are defined.
5703 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
5704 (pa_stringer): ..Do it here instead. Fix comment typos.
5705 (hppa_force_relocation): Cast enums to int before comparing with
5706 ints.
5707
5708 From Ryan Bradetich <rbradetich@uswest.net>
5709 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
5710 redifinition warning.
5711 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
5712 (hppa_force_relocation): ditto
5713 (md_apply_fix): Added cast to buf to fix warnings.
5714
5715 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
5716 cons_fix_new_hppa, hppa_force_relocation): Prototype.
5717
5718 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
5719 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
5720 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
5721 reloc_type** to avoid warnings in switch.
5722 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
5723 little earlier instead.
5724
5725 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
5726 and elf.
5727 (pa_type_args): Use symbol_arg_reloc_info.
5728 (struct pa_it): Make arg_reloc unsigned int.
5729 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
5730 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
5731 (pa_code): Delete. pa_text duplicates this function.
5732 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
5733 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
5734 int.
5735 (cons_fix_new_hppa): Actually change selector to e_fsel when
5736 warning about assuming so.
5737 (tc_gen_reloc): More example elf arg reloc code.
5738 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
5739 (hppa_force_relocation): Likewise.
5740
5741 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
5742 files.
5743 (pa_end_of_source): Prototype.
5744 (hppa_fix_adjustable): Prototype.
5745 (LABELS_WITHOUT_COLONS): Move it..
5746 * config/te-hppa.h: To here.
5747
5748 * config/te-hppa64.h: New file.
5749
5750 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
5751 type.
5752 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
5753 format -10, -16, 16 relocs.
5754 (hppa_elf_mark_end_of_function): Test for null
5755 last_call_info->start_symbol
5756
5757 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
5758 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
5759 re_assesmble_* functions. Delete extraneous statements. Fix
5760 typos in comments.
5761 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
5762 insn to re_assemble_*.
5763
5764 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
5765
5766 * doc/internals.texi (Expressions): Fix typo.
5767
5768 2000-07-08 Kazu Hirata <kazu@hxi.com>
5769
5770 * config/tc-sh.c: Fix formatting.
5771 * config/tc-tic54x.c: Fix formatting.
5772 * depend.c: Fix formatting.
5773 * flonum-konst.c: Likewise.
5774 * flonum-mult.c: Likewise.
5775
5776 2000-07-07 Kazu Hirata <kazu@hxi.com>
5777
5778 * config/tc-sh.c: Fix comments.
5779 * config/obj-vms.c: Fix comments.
5780 * config/tc-a29k.c: Likewise.
5781 * config/tc-alpha.c: Likewise.
5782 * config/tc-h8300.c: Likewise.
5783 * config/tc-h8500.c: Likewise.
5784 * config/tc-i370.c: Likewise.
5785 * config/tc-ia64.c: Likewise.
5786 * config/tc-m68hc11.c: Likewise.
5787 * config/tc-m68k.c: Likewise.
5788 * config/tc-mips.c: Likewise.
5789 * config/tc-ns32k.c: Likewise.
5790 * config/tc-ppc.c: Likewise.
5791 * config/tc-z8k.c: Likewise.
5792
5793 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
5794
5795 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
5796 Default to '(SEC_LOAD | SEC_DATA)'.
5797 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
5798
5799 * doc/internals.texi (CPU Backend): Describe
5800 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
5801
5802 2000-06-06 Andrew Cagney <cagney@b1.cygnus.com>
5803
5804 * as.c (parse_args): NULL terminate the long option list.
5805
5806 2000-06-04 Andrew Cagney <cagney@b1.cygnus.com>
5807
5808 * config/tc-d30v.h: Include "write.h" for fixS.
5809 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
5810
5811 2000-07-05 Nick Clifton <nickc@cygnus.com>
5812
5813 * config/tc-d30v.c (write_2_short): Further changes to warning
5814 messages produced when combining EITHER_BUT_PREFER_MU attributed
5815 opcodes.
5816
5817 2000-07-05 DJ Delorie <dj@redhat.com>
5818
5819 * MAINTAINERS: new
5820
5821 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5822
5823 * config/tc-arm.c (psrs): Accept combinations of flags.
5824
5825 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5826
5827 * config/tc-avr.c: Change _ () to _() around all strings marked
5828 for translation (exception from the usual coding style).
5829 (avr_opt): New struct variable, how the new switches are set.
5830 (OPTION_MMCU): Define as 'm' and actually use.
5831 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
5832 (show_mcu_list): New function, display the list of known MCUs.
5833 (md_show_usage): Document the new switches. Call show_mcu_list.
5834 (avr_set_arch): Change 'm' to OPTION_MMCU.
5835 (md_parse_option): Call show_mcu_list if unknown MCU specified.
5836 Handle the new switches.
5837 (avr_operands): Disable warnings for undefined combinations of
5838 operands if -mall-opcodes. Disable warnings for skipping two-word
5839 instructions if enhanced core or -mno-skip-bug.
5840 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
5841 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
5842 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
5843 (avr_ldi_expression): Warn about implicit lo8().
5844 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
5845
5846 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5847
5848 * configure.in: Add entry for mips-*-sysv4*MP*
5849 * configure: Rebuild
5850 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
5851 elf32-tradlittlemips for traditional mips targets.
5852 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
5853 test for Link Once sections as in adjust_reloc_syms.
5854 * config/te-tmips.h: New file for traditional mips targets. Define
5855 TE_TMIPS.
5856
5857 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5858
5859 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
5860 flags argument is not present, don't change an existing section's
5861 section's attributes. If the flags argument is present, warn if the
5862 attributes don't match the section's current attributes. When
5863 long section names are supported, set SEC_LINK_ONCE and
5864 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
5865
5866 2000-06-29 Hans-Peter Nilsson <hp@axis.com>
5867
5868 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
5869 symbols; create them.
5870
5871 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5872
5873 * write.c (set_segment_vma): New: Set vma and lma for a segment.
5874 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
5875
5876 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
5877
5878 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
5879 expressions. Ignore the problem when handling 16 bit signed
5880 immediates, because the assembler will take care of the relocation
5881 later.
5882
5883 2000-06-27 Nick Clifton <nickc@cygnus.com>
5884
5885 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
5886 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
5887 sequential order, and emit warning messages if the input source
5888 code contains constructs like that, or parallel constructs
5889 containing such opcodes.
5890
5891 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5892
5893 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
5894 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
5895 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
5896 (md_show_usage): Update usage message.
5897 (md_parse_option): Allow redefinition of MCU type within the
5898 same avr[1-5] bfd machine type. Show both old and new MCU type
5899 in the error message.
5900 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
5901 Simplify 8K wrap code.
5902
5903 2000-06-25 Kazu Hirata <kazu@hxi.com>
5904
5905 * config/obj-aout.c: Remove all uses of DEFUN.
5906 * config/obj-ieee.c: Likewise.
5907 * config/tc-sh.c: Fix comment typos.
5908 * config/tc-tahoe.c: Likewise.
5909 * config/tc-vax.c: Likewise.
5910 * config/tc-w65.c: Likewise.
5911 * config/tc-z8k.c: Likewise.
5912 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
5913
5914 2000-06-24 DJ Delorie <dj@cygnus.com>
5915
5916 * config/tc-i386.c (md_estimate_size_before_relax): Revert
5917 more changes from Sept 1999
5918 (tc_i386_fix_adjustable): ditto
5919 (md_apply_fix3): ditto
5920
5921 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
5922
5923 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
5924 (gas_cgen_parse_operand): Set it around expression() call.
5925 (gas_cgen_md_operand): Test for it before longjmp().
5926
5927 2000-06-24 Kazu Hirata <kazu@hxi.com>
5928
5929 * config/tc-h8500.c: Remove all uses of DEFUN.
5930 * config/tc-sh.c: Likewise.
5931 * config/tc-w65.c: Likewise.
5932 * config/tc-z8k.c: Likewise.
5933
5934 * config/tc-h8500.c: Fix typos in comments.
5935
5936 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
5937
5938 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5939 is defined.
5940
5941 2000-06-23 matthew green <mrg@redhat.com>
5942
5943 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
5944 defined. Fix error message for `[' grouping.
5945
5946 2000-06-22 Kazu Hirata <kazu@hxi.com>
5947
5948 * config/tc-h8300.c: Fix formatting and comment typos.
5949
5950 2000-06-22 Timothy Wall <twall@cygnus.com>
5951
5952 * config/tc-ia64.c (note_register_values): Move premature QP
5953 notation clearing into the appropriate place.
5954
5955 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5956
5957 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5958 first before anything else. Add bin-bugs.h, emul.h and progress.h
5959 Sort list of files as for $(OBJS) in Makefile.am.
5960
5961 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5962 find one. Remake dependencies.
5963 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5964 * Makefile.in: Regenerate.
5965 * doc/Makefile.in: Regenerate.
5966
5967 * config/tc-i386.c (i386_displacement): Don't assume a constant
5968 displacement is necessarily 16 bits when in 16 bit code mode.
5969 (md_assemble): Instead size the displacement here after we know
5970 for sure that a .code16gcc operand hasn't automatically added
5971 operand size prefixes.
5972
5973 2000-06-21 H.J. Lu <hjl@gnu.org>
5974
5975 * Makefile.am: Rebuild dependency.
5976 * Makefile.in: Rebuild.
5977
5978 2000-06-21 Kazu Hirata <kazu@hxi.com>
5979
5980 * config/tc-h8300.c (parse_reg): Make the function static.
5981 (parse_exp): Likewise.
5982
5983 2000-06-20 DJ Delorie <dj@cygnus.com>
5984
5985 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5986 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5987 for cygwin import libraries to work properly.
5988
5989 2000-06-20 H.J. Lu <hjl@gnu.org>
5990
5991 * Makefile.am: Rebuild dependency.
5992 * Makefile.in: Rebuild.
5993 * configure: Likewise.
5994 * doc/Makefile.in: Likewise.
5995
5996 2000-06-20 Timothy Wall <twall@cygnus.com>
5997
5998 * doc/internals.texi (CPU backend): Add @itemx for
5999 TC_START_LABEL_WITHOUT_COLON.
6000 * doc/c-tic54x.texi: New.
6001 * doc/as.texinfo: Add tic54x features and include primary tic54x
6002 documentation file.
6003 * doc/all.texi: Add C54X.
6004 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
6005 * doc/Makefile.in: Regenerate.
6006 * configure.in: Add tic54x and define LIBM for tic54x.
6007 * configure: Regenrate.
6008 * config/tc-tic54x.[ch]: New.
6009 * config/obj-coff.h: Add tic54x.
6010 * Makefile.am: (CPU_TYPES): Add tic54x.
6011 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
6012 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
6013 (as_new_LDADD): Add $(LIBM).
6014 * Makefile.in: Regenerate.
6015
6016 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6017
6018 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
6019 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
6020 * doc/as.texinfo: Likewise.
6021
6022 * configure, Makefile.in: Regenerate.
6023 * configure.in (emulations): Recognize m6811 and m6812.
6024 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
6025 Added files for 68hc11 and 68hc12 assembler.
6026 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
6027 * config/tc-m68hc11.h: Header definition for that assembler.
6028
6029 2000-06-18 Nick Clifton <nickc@redhat.com>
6030
6031 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
6032 instead of OCTETS_PER_BYTE.
6033
6034 * config/tc-v850.c: Fix compile time warnings.
6035 * config/tc-ppc.c: Fix compile time warnings.
6036
6037 2000-06-18 H.J. Lu <hjl@gnu.org>
6038
6039 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
6040 * configure: Rebuild.
6041
6042 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
6043
6044 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
6045 to BFD_ASSEMBLER.
6046
6047 2000-06-16 Nick Clifton <nickc@cygnus.com>
6048
6049 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
6050 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
6051
6052 * doc/c-mips.texi: Document newly accepted cpu variants.
6053
6054 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6055
6056 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
6057
6058 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
6059
6060 * macro.c (getstring): Make it possible to escape the quote
6061 character.
6062
6063 2000-06-13 Catherine Moore <clm@redhat.com>
6064
6065 * config/tc-hppa.c (pa_export): Weak symbols can be global.
6066
6067 2000-06-13 H.J. Lu <hjl@gnu.org>
6068
6069 * configure: Regenerate.
6070
6071 2000-06-09 Alan Modra <alan@linuxcare.com.au>
6072
6073 * app.c (do_scrub_begin): Don't default lex[';'] as a line
6074 separator.
6075 * doc/internals.texi (line_separator_chars): Semicolon is no
6076 longer a default. Mention null and newline as defaults.
6077
6078 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
6079
6080 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
6081 * config/tc-i860.h (line_separator_chars): Likewise.
6082 * config/tc-h8300.c (line_separator_chars): Likewise.
6083 * config/tc-i960.c (line_separator_chars): Likewise.
6084 * config/tc-m68k.c (line_separator_chars): Likewise.
6085 * config/tc-mips.c (line_separator_chars): Likewise.
6086 * config/tc-ns32k.c (line_separator_chars): Likewise.
6087 * config/tc-sparc.c (line_separator_chars): Likewise.
6088 * config/tc-vax.c (line_separator_chars): Likewise.
6089
6090 * config/tc-h8300.c (comment_chars): Use string initialiser.
6091 * config/tc-i960.c (line_comment_chars): Likewise.
6092 * config/tc-z8k.c (comment_chars, line_comment_chars,
6093 line_separator_chars): Likewise.
6094
6095 * config/tc-arm.c (line_separator_chars): Always use `;', not just
6096 for TE_LINUX.
6097
6098 2000-06-08 Nick Clifton <nickc@cygnus.com>
6099
6100 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
6101 for size 1 fixes.
6102
6103 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6104
6105 * configure.in (VERSION): Update to show this is the CVS mainline.
6106
6107 2000-06-08 Matthew Jacob <mjacob@feral.com>
6108
6109 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
6110 $at is the integer register $r28, vs. both $r28 and the floating
6111 point register $f28.
6112
6113 2000-06-08 James E. Wilson <wilson@cygnus.com>
6114
6115 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
6116 (dot_endp): Don't call ia64_flush_insns.
6117 (emit_one_bundle): Don't delete prologue/body records from
6118 unwind_record list in first loop. Rewrite second loop to account for
6119 this.
6120
6121 2000-06-07 David Mosberger <davidm@hpl.hp.com>
6122
6123 * config/tc-ia64.c: Add missing prototypes.
6124 (generate_unwind_image): Cast argument to output_unw_records call.
6125
6126 2000-06-07 Denis Chertykov <denisc@overta.ru>
6127
6128 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
6129
6130 2000-06-07 Denis Chertykov <denisc@overta.ru>
6131
6132 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
6133 (REGISTER_P): likewise.
6134 (avr_opcodes): uses include/opcode/avr.h
6135 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
6136
6137 2000-06-04 Alan Modra <alan@linuxcare.com.au>
6138
6139 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
6140 initializers too.
6141
6142 2000-06-03 H.J. Lu <hjl@gnu.org>
6143
6144 * read.c (is_end_of_line): Put back `;'.
6145
6146 2000-06-03 Alan Modra <alan@linuxcare.com.au>
6147
6148 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
6149
6150 2000-06-01 Alan Modra <alan@linuxcare.com.au>
6151
6152 * expr.c (operand): Test is_end_of_line outside switch to catch
6153 line separator chars that are also operators.
6154 (operator): Return O_illegal for line separator chars.
6155
6156 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
6157 entry (or `!' entry for TC_HPPA).
6158
6159 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
6160 before indexing is_end_of_line. Remove redundant check for '\0'.
6161 (fp_op2): Likewise.
6162 * config/tc-h8500.c (md_assemble): Likewise.
6163 * config/tc-mcore.c (md_assemble): Likewise.
6164 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6165 (md_atof): Likewise
6166
6167 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
6168 is_end_of_line.
6169 * config/tc-mcore.c (mcore_cons): Likewise.
6170 (mcore_float_cons): Likewise.
6171 (mcore_stringer): Likewise.
6172 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6173
6174 2000-06-01 Scott Bambrough <scottb@netwinder.org>
6175
6176 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
6177
6178 2000-05-29 Nick Clifton <nickc@cygnus.com>
6179
6180 * config/tc-sh.c: Fix compile time warning messages.
6181
6182 * config/tc-mips.c: Fix compile time warning messages.
6183
6184 2000-05-29 Philip Blundell <philb@gnu.org>
6185
6186 * doc/as.texinfo: Update copyright dates.
6187 (Local Labels): Delete misplaced mention of ARM.
6188 * NEWS: Mention ARM ELF support.
6189
6190 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
6191
6192 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
6193 it is modified, and use the real_size to compute the frag address
6194 for dwarf2 line info.
6195
6196 2000-05-27 Alan Modra <alan@linuxcare.com.au>
6197
6198 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
6199 line-matching scheme to cope with automake moving variables around.
6200 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
6201 * Makefile.in: Regenerate.
6202
6203 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6204
6205 * config/tc-sparc.c (sparc_relax): New.
6206 (md_longopts): Add -relax and -no-relax options.
6207 (md_parse_options, md_show_usage): Likewise.
6208 (md_apply_fix3): Optimize tail call into branch always if possible.
6209
6210 2000-05-04 Donald Lindsay <dlindsay@cygnus.com>
6211
6212 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
6213 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
6214 rules, with warning when a GAS statement specifies a packing that
6215 will result in an instruction being squashed.
6216 Added typdef packing_type and enumerals, changed various integer
6217 literals to use the enumerals.
6218
6219 2000-05-24 David Mosberger <davidm@hpl.hp.com>
6220
6221 * config/tc-ia64.c (dot_restorereg_p): New function.
6222 (md_pseudo_table): Add restorereg.p.
6223 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
6224 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
6225
6226 * config/tc-ia64.h (unw_record_type): Add unwabi.
6227 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
6228 called MASK with members for imask, and the masks produced by
6229 fr_mem, gr_mem, br_mem, and frgr_mem.
6230 (unw_p_record): Add members ABI and CONTEXT.
6231 (unw_x_record): Add member AB.
6232 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
6233 as pseudo-register for use during unwind info generation.
6234 (AR_PFS, AR_LC): New macros.
6235 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
6236 whose names start with an at sign (as in "@priunat").
6237 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
6238 register.
6239 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
6240 proc_end, unwind_info, personality_routine): Consolidate into
6241 "unwind" structure to reduce offset-table use. Add member
6242 NEXT_SLOT_NUMBER to track the slot number for the next instruction
6243 to be emitted.
6244 (output_R1_format, output_R3_format, output_P3_format,
6245 output_P6_format): Initialize R with zero to reduce compiler warnings.
6246 (output_P7_format): Ditto. Add `default' branch to switch
6247 statement to reduce compiler warnings.
6248 (output_P8_format, output_B1_format, output_B4_format): Ditto.
6249 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
6250 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
6251 into single argument.
6252 (output_X1_format, output_X3_format): Initialize R with zero to reduce
6253 compiler warnings. Merge A and B args into single argument.
6254 (output_X2_format, output_X4_format): Remove unused variable R. Merge
6255 A and B args into single argument.
6256 (free_record): Removed (wasn't used).
6257 (free_list_records): Also free imasks in prologue records.
6258 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
6259 (output_spill_mask): Remove.
6260 (output_unwabi): New function.
6261 (output_epilogue, output_label_state, output_copy_state): Call
6262 alloc_record.
6263 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
6264 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
6265 argument.
6266 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
6267 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
6268 as part of handling the prologue records. Emit region's imask if
6269 we have one. Handle unwabi, epilogue, label_state, copy_state,
6270 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
6271 spill_sprel_p, and spill_reg_p records.
6272 (set_imask, count_bits, slot_index): New function.
6273 (fixup_unw_records): Fix region size computation. Handle
6274 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
6275 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
6276 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
6277 set_imask accordingly. Update imask for gr_gr, and br_gr records.
6278 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
6279 (dot_save): Use manifest constants for applicaton registers.
6280 Handle REG_PR and REG_PRIUNAT.
6281 (dot_restore): Don't just ignore it.
6282 (dot_restorereg): New function..
6283 (generate_unwind_image): Ensure unwind info is a multiple of eight
6284 bytes, not just four bytes.
6285 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
6286 (dot_altrp): Don't just ignore it.
6287 (dot_savemem): New function. Replaces dot_savesp() and
6288 dot_savepsp(). Use manifest constants for applicaton registers.
6289 Handle REG_PR and REG_PRIUNAT.
6290 (dot_savef): Simplify.
6291 (dot_saveb): Support generation of br_gr.
6292 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
6293 dot_label_state, dot_copy_state): New function.
6294 (dot_unwabi): Don't just ignore it.
6295 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
6296 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
6297 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
6298 (emit_one_bundle): Set slot number for prologue/body records
6299 *before* emitting the first insn.
6300 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
6301 (md_begin): Declare "psp" pseudo-register.
6302 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
6303 so we don't get segfault.
6304 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
6305 counts as required per SW Conventions manual
6306 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
6307 output_preds_psprel, output_preds_sprel, output_spill_base,
6308 output_unat_psprel, output_unat_sprel, output_lc_psprel,
6309 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
6310 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
6311 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
6312 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
6313 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
6314 (dot_vframe): Implement.
6315 (dot_vframesp, dot_vframepsp): New function.
6316
6317 2000-05-23 Hans-Peter Nilsson <hp@axis.com>
6318
6319 * configure.in (i386-*-freebsd a.out entry): Quote properly.
6320 * configure: Regenerate.
6321
6322 2000-05-23 Alan Modra <alan@linuxcare.com.au>
6323
6324 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
6325 (md_estimate_size_before_relax): so we can use it here instead of
6326 old kludges. Localise vars to blocks. Comment.
6327
6328 * frags.c (frag_new): Update fr_var comments.
6329 * frags.h (struct frag): Ditto.
6330
6331 2000-05-22 Richard Henderson <rth@cygnus.com>
6332
6333 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
6334 (pseudo_func): Add pcrel.
6335 (operand_match): Handle IA64_OPND_TGT64.
6336 (build_insn): Likewise.
6337 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
6338 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
6339 (fix_insn): Handle all three 64-bit relocation types.
6340
6341 2000-05-22 Hans-Peter Nilsson <hp@axis.com>
6342
6343 * obj.h (struct format_ops): New members begin, app_file,
6344 s_set_other, s_set_desc, s_get_type, s_set_type,
6345 separate_stab_sections, init_stab_section.
6346
6347 * config/obj-multi.h: Update GPL notice to v2.
6348 (obj_begin): New.
6349 (obj_app_file): New.
6350 (S_SET_SIZE): Test s_set_size for NULL before calling.
6351 (S_SET_ALIGN): Similar for s_set_align.
6352 (S_SET_OTHER): New.
6353 (S_SET_DESC): New.
6354 (S_GET_TYPE): New.
6355 (S_SET_TYPE): New.
6356 (SEPARATE_STAB_SECTIONS): New.
6357 (INIT_STAB_SECTION): New.
6358 (EMIT_SECTION_SYMBOLS): New.
6359 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
6360
6361 * config/obj-elf.h: Update GPL notice to v2.
6362 Mention that this file is included from obj-multi.h.
6363 (obj_begin): Wrap definition in ifndef.
6364 (elf_file_symbol): Constify declaration.
6365 (obj_app_file): Ditto.
6366 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
6367 Wrap in ifndef SEPARATE_STAB_SECTIONS.
6368
6369 * config/obj-elf.c (elf_s_set_other): New.
6370 (elf_file_symbol): Constify argument.
6371 (elf_separate_stab_sections): New.
6372 (elf_init_stab_section): New.
6373 (elf_format_ops): Add new members. Remove comma at end.
6374
6375 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
6376 (ecoff_format_ops): Add new fields. Remove comma at end.
6377 Mention inconsistency for emit_section_symbols.
6378
6379 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
6380
6381 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
6382 (coff_separate_stab_sections): New.
6383 (coff_format_ops): Add new members.
6384
6385 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
6386 (obj_aout_s_set_other): New.
6387 (obj_aout_s_set_desc): New.
6388 (obj_aout_s_get_type): New.
6389 (obj_aout_s_set_type): New.
6390 (obj_aout_separate_stab_sections): New.
6391 (aout_format_ops): New members added. Use obj_aout_process_stab,
6392 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
6393 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
6394 appropriate.
6395 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
6396
6397 2000-05-22 Alan Modra <alan@linuxcare.com.au>
6398
6399 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
6400 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
6401 (md_estimate_size_before_relax): Ensure jumps to weak and
6402 externally visible symbols are relocatable.
6403
6404 2000-05-20 Hans-Peter Nilsson <hp@axis.com>
6405
6406 * stabs.c (aout_process_stab): Make global.
6407 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
6408 * read.h (aout_process_stab): Declare.
6409
6410 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
6411 Generalize to *aout, *coff *elf.
6412 * configure: Regenerated.
6413
6414 * doc/internals.texi (Object format backend): Say
6415 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
6416
6417 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
6418 * Makefile.in: Regenerated.
6419
6420 2000-05-19 Catherine Moore <clm@cygnus.com>
6421
6422 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
6423
6424 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6425
6426 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
6427 instruction to reflect change in re_assemble_*.
6428
6429 2000-05-18 Jeffrey A Law (law@cygnus.com)
6430
6431 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
6432 build PA64 ELF tools.
6433 * configure: Rebuilt.
6434
6435 2000-05-17 Alan Modra <alan@linuxcare.com.au>
6436
6437 * Makefile.am: Regenerate dependencies.
6438 * Makefile.in: Regenerate.
6439
6440 2000-05-15 Nick Clifton <nickc@cygnus.com>
6441
6442 * config/tc-arm.c (struct asm_psr): Add boolean field
6443 distinguishing between CSPR and SPSR. Rename 'number' field
6444 to 'field'.
6445 (psrs): Rearrange contents to match new asm_psr structure.
6446 (arm_psr_parse): Move next to psr_required_here. Make it
6447 return an asm_psr structure.
6448 (psr_required_here): Use asm_psr structure returned by
6449 arm_psr_parse.
6450 (do_msr): Reorganise to allow psr_required_here to be called
6451 only once.
6452 (md_undefined_name): Mark 'name' parameter as unused, since
6453 the COFF target does not use it.
6454
6455 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6456
6457 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
6458 standards.
6459 * config/te-aux.h: Likewise.
6460 * config/te-dpx2.h: Likewise.
6461 * config/te-go32.h: Likewise.
6462 * config/te-hp300.h: Likewise.
6463 * config/te-hppa.h: Likewise.
6464 * config/te-i386aix.h: Likewise.
6465 * config/te-ic960.h: Likewise.
6466 * config/te-interix.h: Likewise.
6467 * config/te-nbsd532.h: Likewise.
6468 * config/te-pc532mach.h: Likewise.
6469 * config/te-ppcnw.h: Likewise.
6470 * config/te-psos.h: Likewise.
6471 * config/te-sparcaout.h: Likewise.
6472 * config/te-sun3.h: Likewise.
6473 * config/te-sysv32.h: Likewise.
6474
6475 2000-05-14 Alan Modra <alan@linuxcare.com.au>
6476
6477 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
6478 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
6479 and sign extend without an if statement.
6480 (build_bytes): Likewise.
6481
6482 2000-05-14 Kazu Hirata <kazu@hxi.com>
6483
6484 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
6485 X_add_symbol L_32 case.
6486
6487 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6488
6489 * config/te-freebsd.h: New file.
6490
6491 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6492
6493 * asintl.h (gettext, dgettext, dcgettext, textdomain,
6494 bindtextdomain): Replace defines with those from intl/libgettext.h
6495 to quieten gcc warnings.
6496
6497 * NEWS: Mention x86 .arch and -q.
6498
6499 * config/tc-i386.c (quiet_warnings): New.
6500 (md_assemble): Use quiet_warnings.
6501 (md_parse_option): Set quiet_warnings from -q.
6502 (md_show_usage): Mention -q, delete -m.
6503 (flag_do_long_jump): Delete.
6504 (md_parse_option): Remove -m.
6505 (md_show_usage): Remove -m.
6506 (md_create_long_jump): Remove useless flag_do_long_jump code.
6507
6508 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
6509 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
6510
6511 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6512 Alexander Sokolov <robocop@netlink.ru>
6513
6514 * doc/c-i386.texi (i386-Arch): New section.
6515 (i386-Syntax): Mention .intel_syntax and .att_syntax.
6516
6517 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
6518 (smallest_imm_type): Use smallest opcode for shift by one if cpu
6519 architecture has been given and is not 486.
6520 (set_cpu_arch): New.
6521 (md_pseudo_table): Add .arch.
6522 (md_assemble): Warn if cpu architecture has been given and an
6523 unsupported instruction.
6524
6525 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
6526 Move operand_types bit defines after relevant template field.
6527 (template): Add cpu_flags.
6528 (Cpu*): Define.
6529 (arch_entry): New.
6530
6531 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6532
6533 * config/tc-mn10300.h (md_end): Define.
6534 (mn10300_finalize): Declare.
6535 * config/tc-mn10300.c: Include dwarf2dbg.h.
6536 (debug_line): Define.
6537 (md_assemble): Generate dwarf2 line info.
6538 (mn10300_finalize): New function. Finalize dwarf2 info.
6539
6540 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
6541
6542 * config/tc-mips.c (md_estimate_size_before_relax): Use the
6543 external version of the relocation for weak symbols.
6544
6545 2000-05-08 David Mosberger <davidm@hpl.hp.com>
6546
6547 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
6548 frame size in units of 16 bytes, as required per SW Conventions manual.
6549 (output_unw_records): Output info-block header as a dword to get
6550 byte-order right.
6551
6552 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6553
6554 * as.h: #include "file", not <file> on files from ../include.
6555 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
6556 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
6557 (md_convert_frag): Add ATTRIBUTE_UNUSED.
6558 (tc_coff_symbol_emit_hook): Ditto.
6559 (OPTCOUNT): Cast to int to avoid compiler warning.
6560 (md_begin): Fix signed/unsigned warnings.
6561
6562 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6563
6564 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
6565 ABRANCH LONG case for a conditional branch on a 68000.
6566 (md_estimate_size_before_relax): Likewise. Also handle
6567 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
6568 (m68k-ip: case ABSL): Relax absolute references to 16-bit
6569 PC-relative on all CPUs.
6570 (md_estimate_size_before_relax): Likewise.
6571
6572 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6573
6574 * as.c (parse_args): Just mention current year in printed
6575 copyright message.
6576
6577 2000-05-03 J.T. Conklin <jtc@redback.com>
6578
6579 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
6580 unit registers.
6581 (md_parse_option): Recognize -m7400.
6582
6583 2000-05-03 Ian Lance Taylor <ian@zembu.com>
6584
6585 * config/atof-ieee.c (gen_to_words): When adding carry back in,
6586 don't permit lp to become less than the words array.
6587
6588 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
6589
6590 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
6591 Fix little-endian case.
6592
6593 2000-05-03 David O'Brien <obrien@NUXI.com>
6594
6595 * as.c (parse_args): Update copyright.
6596
6597 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6598
6599 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
6600 for the .bss section too.
6601
6602 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6603
6604 * configure.in: Set em=linux for hppa-*-linux.
6605 * configure: Regenerate.
6606 * doc/Makefile.in: Regenerate with correct automake.
6607
6608 * frags.c (frag_grow): Sanity check chunk_size.
6609
6610 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
6611 * config/obj-som.h: Likewise.
6612 * config/obj-ieee.h: Likewise.
6613
6614 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
6615
6616 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
6617 (md_pseudo_table): Fully initialise OBJ_ELF cases.
6618 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
6619 (pa_ip): low_sign_unext now returns via function value. Use
6620 re_assemble_* instead of dis_assemble_* and
6621 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
6622 unnecessarily.
6623 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
6624 (md_section_align, md_parse_option, md_show_usage,
6625 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
6626 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
6627 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
6628 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
6629 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
6630 pa_text): Likewise.
6631 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
6632 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
6633 outside of switch. Correct mask and shifting errors in case 10
6634 and case -11. In case 21, compare against signed range to suit
6635 hppa_field_adjust changes. In case 12, use re_assemble_12. In
6636 case 17 and case 22, use offsetT variable to properly check range.
6637 Use re_assemble_* here too.
6638 (evaluate_absolute): Change type of value to offsetT. Call
6639 hppa_field_adjust to do the work for us.
6640 (pa_parse_cmpb_64_cmpltr): Delete save_s.
6641 (pa_parse_cmpib_64_cmpltr): Ditto.
6642 (pa_build_unwind_subspace): Delete unused var subseg. Change type
6643 of i to unsigned int.
6644 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
6645 (pa_end_of_source): Return type is void.
6646
6647 2000-05-01 Catherine Moore <clm@cygnus.com>
6648
6649 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
6650
6651 2000-05-01 Denis Chertykov <denisc@overta.ru>
6652
6653 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
6654 More comments added.
6655 (md_begin): Removed "construct symbols for each register name".
6656 Because register names conflicts with GCC generated function
6657 names.
6658 (avr_operand): Now constant numbers can be used as a register
6659 identifiers (0 as r0, 31 as r31).
6660 (md_assemble): use skip_space () before parsing instruction
6661 operands.
6662
6663 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6664
6665 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
6666 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
6667 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
6668 * configure: Regenerate.
6669
6670 2000-04-29 Andreas Jaeger <aj@suse.de>
6671
6672 * as.h: Correctly check GCC version.
6673
6674 2000-04-26 David O'Brien <obrien@FreeBSD.org>
6675
6676 * doc/as.1: Fix unbalanced brackets.
6677
6678 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
6679 TE_FreeBSD.
6680 (line_comment_chars): Set to '/' if TE_FreeBSD.
6681
6682 2000-04-25 Jeffrey A Law (law@cygnus.com)
6683
6684 * configure.in: Configury support for PA64 (currently disabled).
6685 * configure: Rebuilt.
6686
6687 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
6688
6689 * config/tc-mips.c (s_change_sec): Use record_alignment, not
6690 bfd_set_section_alignment.
6691
6692 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6693
6694 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
6695 than 32.
6696
6697 2000-04-24 Nick Clifton <nickc@cygnus.com>
6698
6699 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
6700 * doc/as.texinfo (Align): Include arm and strongarm in list of
6701 targets that have the second form of the behaviour of the .align
6702 directive.
6703
6704 2000-04-24 Mark Klein <mklein@dis.com>
6705
6706 * config/obj-som.c: Terminate obj_pseudo_table.
6707
6708 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6709
6710 * as.c (parse_args): Allow md_parse_option to override -a listing
6711 option.
6712 * config/obj-coff.c (add_lineno): Change type of offset parameter
6713 from "int" to "bfd_vma."
6714 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
6715 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
6716 (ppc_change_csect): Align correctly for XCOFF64.
6717 (ppc_machine): New function, which discards "ppc_machine" line.
6718 (ppc_tc): Cons for 8 when code is 64 bit.
6719 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
6720 relocations.
6721 (md_parse_option): Handle -a64 and -a32.
6722 (ppc_xcoff64): New.
6723 * config/tc-ppc.h (TARGET_MACH): Define.
6724 (TARGET_FORMAT): Move to function.
6725 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
6726
6727 2000-04-23 Denis Chertykov <denisc@overta.ru>
6728
6729 * config/tc-avr.c: New AVR_ISA_ defined.
6730 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
6731 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
6732 for `fmul', `movw' and `lpm R,Z' instructions.
6733 (avr_operands): Warn if current opcode is a two-word instruction
6734 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
6735 (avr_opcodes): New commands added.
6736 (REGISTER_P): Check 'a' and 'v' constraint letters.
6737 (mcu_types): New MCU added.
6738
6739 2000-04-22 Timothy Wall <twall@cygnus.com>
6740
6741 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
6742 to "natval".
6743 (operand_match): Conditionally insert default bit values for IMMU9.
6744
6745 2000-04-14 Matthew Green <mrg@cygnus.com>
6746
6747 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
6748 * configure: Rebuilt.
6749
6750 2000-04-21 Jeffrey A Law (law@cygnus.com)
6751 Jason Eckhardt <jle@cygnus.com>
6752
6753 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
6754
6755 * config/tc-hppa.c (CHECK_ALIGN): New macro.
6756 Added handling of new operand types l,y,&,fe,fE,fx.
6757
6758 2000-04-21 Richard Henderson <rth@cygnus.com>
6759 David Mosberger <davidm@hpl.hp.com>
6760 Timothy Wall <twall@cygnus.com>
6761 Andrew MacLeod <amacleod@cygnus.com>
6762 Jim Wilson <wilson@cygnus.com>
6763
6764 * Makefile.am (CPU_TYPES): Add ia64.
6765 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
6766 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
6767 * Makefile.in: Rebuild.
6768 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
6769 * configure: Rebuild.
6770 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
6771 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
6772 * expr.c (expr): Handle md_optimize_expr.
6773 * read.c (LEX_HASH): Add comment.
6774 * config/tc-ia64.c, config/tc-ia64.h: New files.
6775
6776 2000-04-21 Richard Henderson <rth@cygnus.com>
6777
6778 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
6779 bundling a non-delayed branch type instruction.
6780
6781 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
6782
6783 * config/tc-mn10300.c (HAVE_AM30): Define.
6784 (md_assemble): Use it.
6785
6786 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6787
6788 * config/obj-elf.c (obj_elf_change_section): Check for changed
6789 section attributes.
6790
6791 * Makefile.am: (CPU_MULTI_VALID): Remove.
6792 (MULTI_CPU_TYPES): Define.
6793 (MULTI_CPU_OBJ_VALID): Define.
6794 (DEPTC): Use the above.
6795 (DEPOBJ): Same here.
6796 (DEP2): And here.
6797 Regenerate dependencies.
6798 * Makefile.in: Regenerate.
6799
6800 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6801
6802 * Makefile.am (YACC, LEX): Get them from configure.
6803
6804 2000-04-18 H.J. Lu (hjl@gnu.org)
6805
6806 * config/tc-i386.c (offset_in_range): Use addressT instead of
6807 bfd_vma for non-bfd assemblers.
6808
6809 2000-04-17 Alan Modra <alan@linuxcare.com.au>
6810
6811 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
6812 doesn't give spurious errors.
6813
6814 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6815
6816 * as.h (SEEK_SET): Define if undefined.
6817
6818 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6819
6820 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
6821 constants, and don't assume offsetT is 32 bits.
6822
6823 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
6824
6825 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
6826 (md_pcrel_from_section): Add prototype.
6827 (d10v_fix_adjustable): Add prototype.
6828 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
6829
6830 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
6831
6832 2000-04-12 Nick Clifton <nickc@cygnus.com>
6833
6834 * config/tc-d10v.c (find_opcode): Correctly calculate position of
6835 symbol in frag chain.
6836
6837 2000-04-10 Alan Modra <alan@linuxcare.com.au>
6838
6839 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
6840 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
6841 (fits_in_signed_word, smallest_imm_type): Ditto.
6842 (md_assemble): Use an offsetT var to hold offsetT values, not a
6843 long.
6844 (offset_in_range): New.
6845 (md_assemble): Use it.
6846 (md_convert_frag): Change type of target_address, opcode_address,
6847 and displacement_from_opcode_start to offsetT.
6848 (md_create_short_jump): Change type of offset to offsetT.
6849 (md_create_long_jump): Ditto.
6850 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
6851 (md_chars_to_number): Remove.
6852 (output_invalid): Remove duplicate prototype.
6853
6854 2000-04-09 Nick Clifton <nickc@cygnus.com>
6855
6856 * Makefile.am (CPU_TYPES): Add 'avr'.
6857 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
6858 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
6859
6860 * Makefile.in: Regenerate.
6861
6862 * doc/as.texinfo: Add M32R documentation.
6863
6864 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6865
6866 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6867 --enable-build-warnings option.
6868 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6869 * Makefile.in, configure: Re-generate.
6870
6871 2000-04-07 Nick Clifton <nickc@cygnus.com>
6872
6873 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
6874 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
6875 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
6876 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
6877 (arm_force_relocation): Force relocations for
6878 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
6879
6880 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
6881
6882 * config/tc-sh.c (get_operands): There's no third operand if the
6883 first operand is an immediate.
6884
6885 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
6886
6887 * config/tc-sh.c (immediate): Delete.
6888 (sh_operand_info): Add immediate member.
6889 (parse_reg): Use A_PC for pc.
6890 (parse_exp): Add second argument 'op'. All callers changed.
6891 (parse_at): Expect pc to be coded as A_PC.
6892 Use immediate field in *op.
6893 (insert): Add fourth argument 'op'. All callers changed.
6894 (build_relax): Add second argument 'op'. All callers changed.
6895 (insert_loop_bounds): New function.
6896 (build_Mytes): Remove DISP_4.
6897 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
6898 (assemble_ppi): Use immediate field in *operand.
6899 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
6900 (md_apply_fix): Likewise.
6901 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
6902
6903 2000-04-05 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6904
6905 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
6906
6907 2000-04-04 Hans-Peter Nilsson <hp@axis.com>
6908
6909 * internals.texi (CPU backend): Document
6910 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
6911
6912 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6913
6914 * po/gas.pot: Regenerate.
6915
6916 * as.c (show_usage): Restore translated part of bug string.
6917 * gasp.c (show_usage): Likewise.
6918
6919 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
6920 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
6921 than move-if-change.
6922 (DEP1): Modify for "gcc -MM".
6923 (DEPTC): Likewise.
6924 (DEPOBJ): Likewise.
6925 (DEP2): Likewise.
6926 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
6927 Update dependencies.
6928 * Makefile.in: Regenerate.
6929
6930 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
6931
6932 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6933 (md_begin): Likewise.
6934 (HAVE_AM33): New macro.
6935 (md_assemble): Use it. Match r_regs and xr_regs only if
6936 HAVE_AM33.
6937
6938 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6939
6940 * as.h: #include "bin-bugs.h"
6941 * as.c (show_usage): Use REPORT_BUGS_TO.
6942 * gasp.c: #include "bin-bugs.h"
6943 (show_usage): Use REPORT_BUGS_TO.
6944
6945 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6946
6947 2000-04-03 Hans-Peter Nilsson <hp@axis.com>
6948
6949 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6950 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6951 adjustments.
6952
6953 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6954
6955 * config/tc-i386.c (i386_immediate): Don't assume a constant
6956 immediate is necessarily 16 bits when in 16 bit code mode.
6957 (md_assemble): Instead set guess_suffix here after we have checked
6958 registers.
6959
6960 2000-04-02 Richard Henderson <rth@cygnus.com>
6961
6962 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6963 quantities. Correct right shift sign extension.
6964 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6965 32-bit value when shifting into place.
6966
6967 2000-04-01 Ian Lance Taylor <ian@zembu.com>
6968
6969 * app.c: Add ATTRIBUTE_UNUSED as needed.
6970 * config/tc-ppc.c: Likewise.
6971 (ppc_size): Make unsigned long.
6972 (ppc_insert_operand): Add casts to avoid warnings.
6973
6974 2000-03-31 Nick Clifton <nickc@cygnus.com>
6975
6976 * config/tc-d10v.h (md_flush_pending_output): Define.
6977
6978 2000-03-29 Nick Clifton <nickc@cygnus.com>
6979
6980 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6981 segment. Works for both BFD_ASSEMBLER and others.
6982 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6983
6984 2000-03-29 Nick Clifton <nickc@cygnus.com
6985
6986 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6987
6988 2000-03-28 Alan Modra <alan@linuxcare.com.au>
6989
6990 * listing.c (LISTING_LHS_WIDTH): Default depends on
6991 LISTING_WORD_SIZE.
6992 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6993
6994 2000-03-27 Ian Lance Taylor <ian@zembu.com>
6995
6996 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6997 string literal.
6998
6999 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7000
7001 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
7002
7003 * config/tc-avr.c (mcu_types): Add missing initialiser.
7004 (md_pcrel_from_section): Add prototype.
7005 (avr_operand): Remove redundant test of unsigned < 0.
7006 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
7007
7008 2000-03-27 Denis Chertykov <denisc@overta.ru>
7009
7010 * config/tc-avr.c: New file for AVR support.
7011 * config/tc-avr.h: Likewise.
7012 * configure.in: Add AVR support.
7013 * configure: Regenerate.
7014
7015 2000-03-26 Timothy Wall <twall@cygnus.com>
7016
7017 * gasp.c (macro_op): Add new argument to check_macro call.
7018 Macro structure definitions moved to macro.h
7019 * sb.h: Add argument to prototype for input_scrub_include_sb.
7020 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
7021 nesting checks with an additional flag.
7022 (struct input_save): Add flag to indicate whether current sb
7023 should be checked for proper macro/conditional nesting.
7024 (input_scrub_push/pop): Save/restore nest check flag.
7025 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
7026 defined.
7027 * macro.c (check_macro): Allow caller to retrieve parsed macro
7028 information if a pointer is provided. This information may be
7029 used by the new macro hooks.
7030 * macro.h: Update prototype for check_macro. Macro struct
7031 definitions moved here from macro.c/gasp.c.
7032 * read.c (read_a_source_file): Add parameter to check_macro call,
7033 and pass macro info to the macro hook, if defined.
7034 (input_scrub_insert_line): New. Allow insertion of a line of
7035 characters into the input stream.
7036 (input_scrub_insert_file): New. Allow insertion of an arbitrary
7037 file into the input stream.
7038 (s_include): Use input_scrub_insert_file.
7039 * internals.texi: Document new macro hooks.
7040 * as.h: New prototypes added.
7041
7042 2000-03-26 Alan Modra <alan@linuxcare.com.au>
7043
7044 * config/tc-i386.c: Don't start any as_bad or as_warn message with
7045 an initial capital letter.
7046 (i386_index_check): Reindent.
7047
7048 2000-03-19 Nick Clifton <nickc@cygnus.com>
7049
7050 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
7051 relative branches.
7052
7053 2000-03-17 Thomas de Lellis <tdel@windriver.com>
7054
7055 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
7056 instruction operand bad if Rd > 7 when generating
7057 thumb instructions. Prevents for example,
7058 "adr r12,label" from silently failing and generating
7059 the wrong instruction.
7060
7061 2000-03-17 Nick Clifton <nickc@cygnus.com>
7062
7063 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
7064 that have a destingation >= 0x400000.
7065 Fix compile time warning messages.
7066
7067 2000-03-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7068
7069 * config/tc-sh.c (md_begin): When encountering insn that are
7070 not supported by the current arch, only change the name if
7071 its contents are the same as prev_name.
7072 (get_specific): If the the architecture doesn't match, fail.
7073
7074 2000-03-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7075
7076 * config/tc-sh.c (IDENT_CHAR): Define.
7077 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
7078 matching back where it came from.
7079
7080 2000-03-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7081
7082 * config/tc-sh.c (md_show_usage): Add description of -dsp.
7083
7084 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
7085
7086 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
7087 normal operands.
7088
7089 2000-03-15 Kazu Hirata <kazu@hxi.com>
7090
7091 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
7092
7093 2000-03-13 Hans-Peter Nilsson <hp@axis.se>
7094
7095 * expr.c (operand) [case 'f']: When testing if '0f' can start a
7096 floating-point-number, make sure 'f' is in FLT_CHARS.
7097
7098 2000-03-11 Hans-Peter Nilsson <hp@axis.se>
7099
7100 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
7101 (s_lcomm_internal): Use it.
7102 * doc/internals.texi (CPU backend): Document it.
7103 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
7104 bytes.
7105
7106 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7107
7108 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
7109 when embedded-pic.
7110
7111 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
7112 implementation doesn't have special handling for switch
7113 statements.
7114 (macro_build): Allow for code in sections other than .text.
7115 (macro): Likewise.
7116 (mips_ip): Likewise.
7117 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
7118 Don't perform relocs if we will be outputting them.
7119 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
7120 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
7121 embedded-pic.
7122
7123 2000-03-09 Catherine Moore <clm@cygnus.com>
7124
7125 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
7126 relocation type based on the entry in the fixup structure.
7127 Put S_IS_EXTERN processing back in.
7128
7129 2000-03-08 H.J. Lu (hjl@gnu.org)
7130
7131 * Makefile.am (install-exec-tooldir): Depend on
7132 install-exec-bindir for parallel make.
7133 * Makefile.in: Regenerated.
7134
7135 2000-03-06 Nick Clifton <nickc@cygnus.com>
7136
7137 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
7138 switch.
7139 (md_parse_option): Parse -m32r command line switch - disable m32rx
7140 compatability.
7141 (md_show_usage): Document new option.
7142
7143 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
7144 * doc/Makefile.in: Regenerate.
7145 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
7146
7147 2000-03-02 Michael Meissner <meissner@redhat.com>
7148
7149 * config/tc-d30v.c (check_range): Remove code that incorrectly
7150 sign extended values where bits < 32.
7151
7152 2000-03-02 H.J. Lu (hjl@gnu.org)
7153
7154 * configure.in: Support --enable-targets=all on ia32.
7155 * configure: Regenerated.
7156
7157 2000-03-01 Nick Clifton <nickc@cygnus.com>
7158
7159 * gasp.c (do_align): Remove bogus check of alignment value.
7160
7161 2000-02-27 Thomas de Lellis <tdel@windriver.com>
7162
7163 * config/obj-elf.c (elf_frob_symbol): Remove code which when
7164 TC_PPC was defined forced the type of a symbol with no other type
7165 to be BSF_OBJECT.
7166
7167 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
7168
7169 * doc/internals.texi (CPU backend): Mention that
7170 line_separator_chars do not break up comments. Fix typos for
7171 LEX_AT and LEX_NAME descriptions. Document operands for
7172 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
7173 description of md_create_short_jump usage. Document argument for
7174 md_undefined_symbol.
7175
7176 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7177
7178 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
7179 (md_parse_option): Handle it.
7180 (md_show_usage): Document it.
7181
7182 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7183
7184 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
7185 opcode, for the instruction `pal19'. From Andrea Arcangeli
7186 <andrea@suse.de>.
7187
7188 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
7189
7190 * config/tc-i386.c (i386_immediate): Move constant operand sizing
7191 from here..
7192 (md_assemble): To here, before template operands are matched.
7193 Also ensure a constant immediate is sign extended when we know the
7194 size is at most 16 bits. This is to catch cases like "add
7195 $0xffc0,%ax" where we don't know the size, and thus that the
7196 immediate can be represented as Imm8S until after parsing the
7197 register operand.
7198 (i386_displacement): Similarly sign extend 16 bit constant
7199 displacements.
7200 (md_assemble): Relax 16-bit jump constant range check to suit sign
7201 extended displacements.
7202
7203 2000-02-26 Andreas Jaeger <aj@suse.de>
7204
7205 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
7206
7207 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7208
7209 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
7210 call operands when intel_syntax.
7211 (intel_float_operand): Return 2 for "fi...".
7212 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
7213 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
7214 earlier "SHORT" change.
7215 (md_assemble): When determining suffix from Regs, exclude
7216 InOutPortReg.
7217
7218 2000-02-24 Nick Clifton <nickc@cygnus.com>
7219
7220 * configure: Add arm-wince, mips-pe and sh-pe targets.
7221 * configure: Regenerate.
7222
7223 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
7224 sh-pe targets.
7225 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
7226 "pe-mips" for the mips-pe target.
7227
7228 * config/tc-arm.c (insns): Change displacement encoded in BL
7229 and B instructions if the target port is arm-wince.
7230 (do_ldst): Do not bias the relocation offset if the target
7231 port is arm-wince.
7232 (md_pcrel_from): Add in missing relocation offset bias if the
7233 target os arm-wince.
7234
7235 * config/tc-mips.c (mips_target_format): Support COFF flavour.
7236 (md_begin): Disable -G support for mips-pe target.
7237 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
7238 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
7239 COFF flavour.
7240
7241 * config/tc-sh.c (md_begin): sh-pe target is little endian.
7242 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
7243 assembler, just set the alignment to 4.
7244
7245 * config/te-wince-pe.h: New file for WinCE targets. Define
7246 TE_WINCE.
7247
7248 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7249
7250 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
7251 string instructions.
7252 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
7253 (i386_intel_memory_operand): After finding a segment override,
7254 check again for no `[' before looking for a displacement. Bomb if
7255 more than one displacement rather than silently discarding the
7256 second and subsequent ones. Free strings malloc'd by
7257 build_displacement_string.
7258
7259 2000-02-24 Catherine Moore <clm@cygnus.com>
7260
7261 * config/obj-som.c (obj_pseudo_table): Add "weak".
7262 (obj_som_weak): New routine.
7263
7264 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
7265
7266 * config/tc-i386.c (union i386_op): New.
7267 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
7268 Throughout file replace occurences of disps[n], imms[n], regs[n]
7269 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
7270 intel mode operand swapping. Add assert in regKludge and
7271 fake_zero_displacement code. Test i.types[n] when outputting
7272 displacements and immediates. Combine output of Disp16 with
7273 Disp32.
7274 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
7275 when in intel mode by (not) reversing fsub and fdiv operands
7276 before the template search. This fails for single operand
7277 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
7278 undefined. Instead fix the base_opcode after we've found the
7279 template. Move base_opcode xor with found_reverse_match from
7280 opcode output code to before this fix so we test for the correct
7281 opcodes.
7282 (md_assemble): Don't use strcmp when deciding to ignore the suffix
7283 check in intel mode. Instead compare opcodes.
7284
7285 * config/tc-i386.h (TC_RELOC): Delete.
7286 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
7287 with equivalent call to reloc.
7288
7289 * as.h (flag_m68k_mri): Move declaration after target include, and
7290 only declare when TC_M68K defined. Define as zero otherwise.
7291 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
7292 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
7293 Define as zero otherwise.
7294 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
7295 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
7296 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
7297 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
7298 testing whether defined.
7299 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
7300 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
7301 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
7302 rather than testing whether defined.
7303 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
7304 (parse_mri_cons): Declare and use only when TC_M68K.
7305 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
7306 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
7307 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
7308
7309 * NEWS: Mention IBM 370 support.
7310
7311 2000-02-23 Richard Henderson <rth@cygnus.com>
7312
7313 * config/tc-i386.c (md_assemble): When swapping operands for
7314 intel_syntax, assume everything that's not Imm or Disp is a
7315 register.
7316
7317 2000-02-23 Linas Vepstas <linas@linas.org>
7318
7319 * config/tc-i370.c, config/tc-i370.h: New files.
7320 * Makefile.am: Add support for Linux/IBM 370.
7321 * configure.in: Likewise.
7322 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
7323 * config/obj-elf.c: Include elf/i370.h
7324 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
7325
7326 * Makefile.in: Regenerate.
7327 * configure: Regenerate.
7328
7329 * doc/c-i370.texi: New file.
7330 * doc/all.texi: Include it.
7331 * doc/as.texinfo: And here.
7332 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
7333 * doc/Makefile.in: Regenerate.
7334
7335 2000-02-19 Michael Meissner <meissner@redhat.com>
7336
7337 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
7338 determine if an instruction can be used in parallel with an ADDppp
7339 or SUBppp instruction.
7340
7341 2000-02-22 Andrew Haley <aph@cygnus.com>
7342
7343 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
7344
7345 2000-02-22 Andrew Haley <aph@cygnus.com>
7346
7347 * config/tc-mips.c (mips_gp32): New variable.
7348 (macro_build) Use mips_gp32.
7349 (mips_ip): Ditto.
7350 (md_longopts): Add "-mgp32" and "-mgp64".
7351 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
7352
7353 (OPTION_M7900): Change offset
7354 (OPTION_NO_M7900): Ditto.
7355
7356 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7357
7358 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
7359 warning, and bump it to 1.
7360
7361 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7362
7363 From Brad Lucier <lucier@math.purdue.edu>:
7364 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
7365 match format.
7366
7367 2000-02-21 Catherine Moore <clm@cygnus.com>
7368
7369 * config/tc-mips.c (MF_HILO_INSN): Define.
7370 (mips_7000_hilo_fix): Declare.
7371 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
7372 (md_parse_option): Check for 7000_HILO_FIX options.
7373 (OPTION_M7000_HILO_FIX): Define.
7374 (OPTION_NO_M7000_HILO_FIX): Define.
7375 * doc/c-mips.texi (-mfix7000): Describe.
7376
7377 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7378
7379 * listing.c (print_lines): Remove unused variable `end'.
7380
7381 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
7382 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
7383 reloc_type when BFD_ASSEMBLER.
7384 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
7385 reloc_type when BFD_ASSEMBLER. Move common code out of switch
7386 statement and quell signed vs. unsigned comparison warning.
7387
7388 2000-02-18 Nick Clifton <nickc@cygnus.com>
7389
7390 * config/tc-d10v.c (find_opcode): Add a symbol's value to
7391 the computed frag offset, rather than overwriting it.
7392
7393 2000-02-17 J"orn Rennecke <amylaar@cygnus.co.uk>
7394
7395 * config/tc-sh.c ("elf/sh.h"): Include.
7396 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
7397 (md.begin): Initialize target_arch.
7398 Only include opcodes in has table that match selected architecture.
7399 (parse_reg): Recognize register names for sh-dsp.
7400 (parse_at): Recognize post-modify addressing.
7401 (get_operands): The leading space is now optional.
7402 (get_specific): Remove FDREG_N support. Add support for sh-dsp
7403 arguments. Update valid_arch.
7404 (build_Mytes): Add support for SDT_REG_N.
7405 (find_cooked_opcode): New function, broken out of md_assemble.
7406 (assemble_ppi, sh_elf_final_processing): New functions.
7407 (md_assemble): Use find_cooked_opcode and assemble_ppi.
7408 (md_longopts, md_parse_option): New option: -dsp.
7409 * config/tc-sh.h (elf_tc_final_processing): Define.
7410 (sh_elf_final_processing): Declare.
7411
7412 2000-02-11 Jeffrey A Law (law@cygnus.com)
7413
7414 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
7415 the unwinder subspace. Save the current seg/subseg before creating
7416 the new seg/subseg.
7417
7418 2000-02-10 Nick Clifton <nickc@cygnus.com>
7419
7420 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
7421 little endian targets.
7422 (INST_BYTE1): Redefine to handle big and little endian
7423 targets.
7424 (cpu_type): New type: Select between M340 and M210.
7425 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
7426 instructions of the M340.
7427 (md_assemble): Add support for the MULSH and OPSR classes of
7428 instructions.
7429 (md_atof): Add support for little endian targets.
7430 (md_parse_option): Add support for -EL, -EB and -mcpu command
7431 line switches.
7432 (md_convert_frag): Add support for little endian targets.
7433 (md_apply_fix3): Add support for little endian targets.
7434 (md_number_to_chars): Add support for little endian targets.
7435
7436 2000-02-10 Timothy Wall <twall@redhat.com>
7437
7438 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
7439 defined, use it to verify the symbol just read should be a label.
7440
7441 2000-02-10 Timothy Wall <twall@redhat.com>
7442
7443 * app.c (do_scrub_chars): Handle "||" for parallel instructions
7444 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
7445 around colons when KEEP_WHITE_AROUND_COLON is defined.
7446 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
7447 and KEEP_WHITE_AROUND_COLON.
7448
7449 2000-02-08 Timothy Wall <twall@redhat.com>
7450
7451 * read.c (s_rept): Call do_repeat, which abstracts the repeat
7452 logic.
7453 (do_repeat): New. Abstract repeat logic so that a "break" can be
7454 implemented.
7455 (end_repeat): New. Provide support for a "break" out of the
7456 repeat loop.
7457 * read.h: Add prototypes for new functions.
7458
7459 2000-02-08 Timothy Wall <twall@redhat.com>
7460
7461 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
7462 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
7463 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
7464 non-zero.
7465
7466 2000-02-08 Timothy Wall <twall@redhat.com>
7467
7468 * read.c: Added elseif to directives table.
7469 * read.h: Added prototype for s_elseif.
7470 * doc/as.texinfo: Added description for elseif.
7471 * cond.c (s_elseif): New function
7472
7473 2000-02-04 Timothy Wall <twall@redhat.com>
7474
7475 * listing.c (print_lines): Remove conditionals causing bug in
7476 listings.
7477
7478 2000-02-03 Timothy Wall <twall@cygnus.com>
7479
7480 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
7481 default values.
7482 * frags.c (frag_new): Calculate fr_fix in octets
7483 (frag_now_fix) Return offset as target address offset (bytes).
7484 (frag_now_fix_octets) New - Return offset in octets (8-bit
7485 quantities).
7486 * frags.h: Added prototype for frag_now_fix_octets().
7487 Distinguish between octets and bytes in field descriptions.
7488 * listing.c (calc_hex): Account for octets vs bytes when
7489 printing addresses/offsets.
7490 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
7491 target is little-endian, print the octets in a word in big-endian
7492 order so that the display looks like a proper hexadecimal number,
7493 instead of having the octets reversed.
7494 * read.c (do_align): When recording alignment, alignment power
7495 should be in terms of target bytes (minimum addressible unit)
7496 instead of octets.
7497 (do_org) Convert ORG target address (byte) argument into an
7498 octet offset when generating a variable fragment.
7499 * symbols.c (resolve_symbol_value): Symbol final value
7500 converted to a target address offset (bytes) from its octet offset.
7501 * config/obj-coff.c (coff_frob_symbol): Symbol target address
7502 offset (bytes) is adjusted by the frag offset (octets) converted
7503 to bytes.
7504 (coff_frob_section) Section alignment power is in terms of bytes;
7505 convert it to an octet alignment power when calculating size (and
7506 size mask) in octets. Don't modify the section size in order to
7507 "align" it for TI COFF, since that format has a different method
7508 for storing alignment information.
7509
7510 2000-02-01 Timothy Wall <twall@cygnus.com>
7511
7512 * stabs.c (generate_asm_file): Escape backslashes in stabs file
7513 entries, matching the way GCC generates them. If not escaped, the
7514 filename is encoded incorrectly.
7515
7516 2000-01-31 Nick Clifton <nickc@cygnus.com>
7517
7518 * config/tc-arm.c (reg_table): Add support for ATPCS register
7519 naming conventions.
7520
7521 2000-01-31 Geoff Keating <geoffk@cygnus.com>
7522
7523 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
7524 already defined.
7525 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
7526 New macro.
7527 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
7528 of a symbol when we really care about its value.
7529
7530 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
7531
7532 * config/tc-mcore.c (md_assemble): Give warning message if
7533 operands passes to instruction are more than the spec.
7534
7535 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7536
7537 * config/tc-arm.c (armadjust_symtab): If the assembler is in
7538 Thumb mode but the label seen was not declared as '.thumb_func'
7539 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
7540 correct disassembly of Thumb code bounded by non function labels.
7541
7542 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7543
7544 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
7545 Add dependencies for e-i386aout.o. Fix 2 comment lines.
7546
7547 * Makefile.in: Same here.
7548 Update copyright.
7549
7550 * configure.in: Set bfd_gas for i386-aout when primary target
7551 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
7552 we may need the primary te_file. Remove incorrect comment.
7553
7554 * configure: Regenerate.
7555
7556 * config/e-i386aout.c: New file.
7557
7558 * as.c (USE_EMULATIONS): Move to before print_version_id.
7559 (struct emulation): Add i386aout.
7560 (show_usage): Split text strings. Reformat -a text. Add --em
7561 help.
7562 Update copyright.
7563
7564 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
7565 (aout_format_ops): New.
7566 Update copyright.
7567
7568 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
7569 preprocessor conditional and add aout USE_EMULATIONS tests.
7570 (read_a_source_file): Don't pass error strings to printf as
7571 format arg.
7572 Update copyright.
7573
7574 * gasp.c (exp_get_abs): Don't pass error strings to printf as
7575 format arg.
7576 (do_data): Same here.
7577 (process_file): And here.
7578 Update copyright.
7579
7580 * symbols.c (colon): Rewrite "already defined" fatal message
7581 code for aout with USE_EMULATIONS.
7582 Update copyright.
7583
7584 * config/obj-aout.c (OBJ_HEADER): Define.
7585 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
7586 fields of sentinel.
7587 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
7588 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
7589 forms here.
7590 (obj_aout_type): Expand S_SET_OTHER here too.
7591 (obj_read_begin_hook): Remove.
7592 (aout_pop_insert): New.
7593 (obj_aout_s_get_other): New.
7594 (obj_aout_s_get_desc): New.
7595 (aout_format_ops): New.
7596 Update copyright.
7597
7598 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
7599 gets aout_pseudo_table.
7600 (aout_pseudo_table): Declare.
7601 (obj_read_begin_hook): Define.
7602 Update copyright.
7603
7604 * config/obj-coff.c (obj_pseudo_table): Rename to
7605 coff_pseudo_table.
7606 (coff_pop_insert): Use coff_pseudo_table.
7607 (coff_sec_sym_ok_for_reloc): Remove.
7608 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
7609 and comment all zero entries and remove #if 0 code.
7610 Update copyright.
7611
7612 * config/obj-coff.h (obj_pop_insert): Define.
7613 (coff_pseudo_table): Declare.
7614 Update copyright.
7615
7616 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
7617 s_get_size, s_set_size. Comment all zero entries.
7618 Update copyright.
7619
7620 * config/obj-elf.c (elf_s_get_other): New function.
7621 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
7622 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
7623 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
7624 comment.
7625 (obj_elf_parse_section_letters): Don't pass error strings to
7626 printf as format arg.
7627 Update copyright.
7628
7629 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
7630 OBJ_MAYBE_ECOFF.
7631 (elf_s_get_other): Declare.
7632 (S_GET_OTHER) Define as elf_s_get_other if not already
7633 defined.
7634 (S_SET_OTHER): Only define when not already defined.
7635 (elf_obj_read_begin_hook): Declare.
7636 (obj_read_begin_hook): Define.
7637 (elf_obj_symbol_new_hook): Declare.
7638 (obj_symbol_new_hook): Define.
7639 Update copyright.
7640
7641 * config/obj-multi.h: Add copyright header and protect against
7642 multiple inclusion. Add * to all function pointers.
7643 (OBJ_HEADER): If defined, include it rather than other defines
7644 in this file.
7645 (obj_frob_file_after_relocs): Test for NULL.
7646 (obj_symbol_new_hook): Here too.
7647 (obj_sec_sym_ok_for_reloc): And here.
7648 (S_GET_OTHER): Define.
7649 (S_GET_DESC): Define.
7650 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
7651 (OBJ_MAYBE_ELF): Update comment.
7652
7653 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
7654 OBJ_AOUT preprocessor conditional and handle emulation by
7655 testing OUTPUT_FLAVOR.
7656 (i386_displacement): Here too.
7657 (md_section_align): Similarly here.
7658 (i386_target_format): Conditionally compile when more than one
7659 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
7660 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
7661 (i386_displacement): Here too.
7662 Update copyright.
7663
7664 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
7665 Define TARGET_FORMAT for aout only when not multi.
7666 Update copyright.
7667
7668 * config/te-multi.h: Delete file as it's identical to te-generic.h
7669
7670 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
7671
7672 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
7673 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
7674 LONG_MNEM_SUFFIX.
7675
7676 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
7677 DWORD_MNEM_SUFFIX.
7678 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
7679 comments.
7680
7681 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
7682
7683 * config/tc-mips.c (mips_do_align): New function.
7684 * config/tc-mips.h (md_do_align): Define.
7685
7686 2000-01-10 Philip Blundell <philb@gnu.org>
7687
7688 * doc/c-arm.texi (ARM Options): Fix typo.
7689 (ARM-Chars): Correct description of `#'. Mention that `;' is a
7690 line separator for Linux.
7691 * doc/as.texinfo (Comments): Mention the ARM.
7692
7693 2000-01-10 Philip Blundell <pb@futuretv.com>
7694
7695 * configure.in (arm*-*-conix*): New target.
7696 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
7697 armv*-*-linux-gnu.
7698 * configure: Regenerate.
7699
7700 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7701
7702 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
7703 (obj_elf_visibility): New function.
7704
7705 * doc/as.texinfo (Visibility): New node: document visibility
7706 pseudo ops.
7707
7708 For older changes see ChangeLog-9899
This page took 0.200051 seconds and 5 git commands to generate.