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