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