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