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