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