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