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