1 Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
3 * configure.in: Add case for h8300-*-elf.
4 * configure: Regenerate.
6 Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
8 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
9 documentation to reflect reality.
11 2001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
13 * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
14 (macro): Reflect change to MAX_GPREL_OFFSET.
16 2001-08-27 Torbjorn Granlund <tege@swox.com>
17 Staffan Ulfberg <staffanu@swox.se>
18 Linus Nordberg <linus@swox.se>
19 Alan Modra <amodra@bigpond.net.au>
21 * configure.in: Recognise powerpc*le*, not just powerpcle*.
22 * configure: Regenerate.
23 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
24 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
25 (md_assemble): Use them.
26 (ppc_machine): Support stub for ELF64 as well as XCOFF.
27 (md_pseudo_table): Add "llong", "quad".
28 (md_parse_option): Match default_cpu of powerpc*.
30 (ppc_subseg_align): Only for OBJ_XCOFF.
31 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
32 (md_begin): Select PPC_OPCODE_64 for 64 bit.
33 (ppc_insert_operand): Don't bother testing 'file' before calling
34 as_bad_where. Use as_bad_where for operand->insert errors.
35 (mapping): Add ELF64 relocation modifiers.
36 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
37 expressions with abs_symbol.
38 (ppc_elf_cons): Correct offset for little endian targets.
39 (ppc_elf_frob_symbol): New.
40 (md_assemble): Add support for 64 bit ELF relocs.
41 (ppc_tc): Ensure 8 byte alignment when 64 bit.
42 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
43 ".toc" section for 64 bit ELF.
44 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
45 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
46 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
47 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
48 Expand on comments, error message. Add support for 64 bit relocs,
49 and use PPC_HI etc. macros.
50 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
51 (HANDLE_ALIGN): Define to generate nops in code sections rather
53 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
54 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
55 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
56 (ppc_fix_adjustable): Declare.
57 (tc_frob_symbol): Define.
58 (ppc_elf_frob_symbol): Declare.
60 2001-08-26 Andreas Jaeger <aj@suse.de>
62 * config/tc-s390.c: Add missing prototypes
63 (md_gather_operands): Make static.
65 2001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
67 * tc_mips.h (MAX_GPREL_OFFSET): Change it to the maximum allowed
68 value, not the word beyond maximum.
69 * tc_mips.c (macro_build_lui): Code cleanup.
70 (macro): Reflect change to MAX_GPREL_OFFSET.
71 (mips_ip): Check explicitly against S_EX_NONE.
72 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
73 (md_apply_fix): Code cleanup.
75 2001-08-24 Andreas Jaeger <aj@suse.de>
77 * config/tc-ppc.h: Fix prototype declaration.
79 2001-08-23 Jakub Jelinek <jakub@redhat.com>
81 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
82 * config/obj-elf.c (obj_elf_size): When size is constant, free
83 and clear symbol_get_obj(sym)->size if any.
85 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
87 * tc_mips.c (md_begin): Warn about incompatibility between -march=FOO
88 and -mipsN option, continue with default ISA.
90 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
92 * config/tc-mips.c (md_parse_option): #ifdef the
93 traditional/non-traditional names as it is done in mips_target_format.
95 2001-08-20 Richard Henderson <rth@redhat.com>
97 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
98 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
99 use seg parameter instead of now_seg.
101 2001-08-18 H.J. Lu <hjl@gnu.org>
103 * config/tc-mips.c (show): Add the missing prototype.
105 2001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
107 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
109 (mips_ip): Use the new return values instead of characters. Add
110 support for %higher and %highest.
113 (my_getSmallExpression): Make parsing case insensitive and more
114 reliable. Add support for %higher and %highest. Further support to
115 parse %gprel and %neg is implemented but currently deactivated.
117 2001-08-17 Alan Modra <amodra@bigpond.net.au>
119 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
120 (ecoff_build_symbols): Likewise.
121 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
123 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
125 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
126 for n32 ABI if appropriate.
128 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
130 * config/tc-mips.c (cons_fix_new_mips): Remove.
131 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
132 (cons_fix_new_mips): Remove.
134 2001-08-14 Jeff Johnston <jjohnstn@redhat.com>
136 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
137 a label, not a hex constant.
139 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
141 * config/tc-v850.h: Add missing prototypes.
143 2001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
145 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
148 2001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
150 * config/tc-sparc.c (cons_fix_new_sparc): Move
151 `sparc_no_align_cons = 0;' to...
152 (s_uacons): ...here so that sparc_no_align_cons will get
155 2001-08-11 Kazu Hirata <kazu@hxi.com>
157 * config/tc-mips.c: Fix a comment typo.
159 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
161 * config/tc-mips.c (move_register): New function.
162 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
164 (macro2): Use move_register rather than macro_build for moves.
165 (mips16_macro): Likewise.
166 (macro): Likewise. Handle M_MOVE.
168 2001-08-10 Andreas Jaeger <aj@suse.de>
170 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
172 * configure: Regenerate.
174 2001-08-10 Alan Modra <amodra@bigpond.net.au>
176 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
177 Comment indentation of #pragma.
178 * macro.c (alloca): Likewise.
180 * config/tc-ppc.c: Revert 2001-08-08.
182 2001-08-09 Alan Modra <amodra@bigpond.net.au>
184 * symbols.c: Add missing prototypes.
185 * config/e-i386elf.c: Likewise.
186 * config/e-i386coff.c: Likewise.
187 * config/e-i386aout.c: Likewise.
188 * config/obj-coff.c: Likewise.
189 (def_symbol_in_progress, stack): Move definition.
190 * config/obj-elf.c: Add missing prototypes.
191 (obj_elf_change_section): Make static.
192 (obj_elf_parse_section_letters): Likewise.
193 (obj_elf_section_word): Likewise.
194 (obj_elf_section_type): Likewise.
196 2001-08-08 Alan Modra <amodra@bigpond.net.au>
198 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
199 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
200 determining reloc type with code reading operands->reloc field.
202 2001-08-08 Alan Modra <amodra@bigpond.net.au>
204 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
205 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
206 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
207 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
209 * output-file.c (output_file_create): Don't try to open a second
210 time as it's unnecessary. FOPEN_W was undefined too.
212 2001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
214 * tc-mips.c (macro_build): Replace magic constants by defines.
215 (mips_ip): Likewise. Typo.
217 2001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
219 * tc-mips.c (mips_abi_string): Initialize with NULL instead of 0.
220 (RELAX_ENCODE): Replace bfd_vma by valueT.
221 (load_address): Formatting.
222 (macro): Likewise. Code cleanup. Typo.
223 (macro2): Formatting.
224 (md_parse_option): Typo.
225 (s_mipsset): Reorder cases to look nicer.
226 (md_estimate_size_before_relax): Formatting. Code cleanup.
227 (mips_elf_final_processing): Check against NULL instead of 0.
228 (md_obj_end): Remove ugly `' in message string.
229 (s_mips_ent): Remove ugly `' in message string.
231 2001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
233 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
234 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
235 mutually exclusive (if they are different).
236 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
239 2001-08-03 Richard Sandiford <rsandifo@redhat.com>
241 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
244 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
246 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
247 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
248 (md_long_opts): Add -mfp32 option.
249 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
250 (md_show_usage): Show usage for -mfp32 and -mgp32.
251 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
252 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
253 (HAVE_32BIT_ADDRESSES): New macro.
254 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
255 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
256 (s_cprestore, s_cpadd): Likewise.
257 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
258 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
259 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
260 to determine the width of addresses in load, store and jump macros.
261 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
262 used in set instructions; do not check the address size for them.
263 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
264 unaligned load and store macros.
265 (mips_ip): Use the new macros to check the width of a register when
266 processing float constants. Force a constant into memory if it is
267 destined for an FPR and the FPRs are wider than the GPRs. Warn about
268 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
269 than mips_gp32 to select synthetic instructions.
270 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
271 synthetic instructions.
273 2001-08-01 Christian Groessler <cpg@aladdin.de>
275 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
276 "rh", "rr", "rq", or "sp" then don't automatically assume
277 it's a register name. Check whether there is a number
280 2001-08-01 Alan Modra <amodra@bigpond.net.au>
282 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
283 Don't allocate more space than necessary for the input line copy.
285 2001-08-01 Alan Modra <amodra@bigpond.net.au>
287 * read.c: Standardize error/warning messages - don't capitalise, no
288 final period or newline, don't say "ignored" or "zero assumed" for
289 as_bad messages. In some cases, change the wording to that used
290 elsewhere for similar messages.
293 * atof-generic.c: Likewise.
296 * depend.c: Likewise.
297 * dwarf2dbg.c: Likewise.
301 * input-file.c: Likewise.
302 * input-scrub.c: Likewise.
303 * listing.c: Likewise.
304 * output-file.c: Likewise.
306 * subsegs.c: Likewise.
307 * symbols.c: Likewise.
309 * ecoff.c (ecoff_directive_end): Test for missing name by
310 comparing input line pointers rather than reading string.
311 (ecoff_directive_ent): Likewise.
312 * read.c (s_set): Likewise.
313 (s_align): Report a warning rather than an error for
315 (s_comm): Check for missing symbol name.
316 (s_lcomm_internal): Likewise.
318 (s_globl): Use is_end_of_line instead of looking for '\n'.
319 (s_lcomm_internal): Likewise.
320 (ignore_rest_of_line): Report a warning rather than an error.
322 2001-07-31 Geoffrey Keating <geoffk@redhat.com>
324 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
325 any kind of relocation against a not-loaded section.
327 2001-07-30 Alan Modra <amodra@bigpond.net.au>
329 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
330 to include '@' in symbol names when parsing versioned symbols
331 rather than calling get_symbol_end multiple times.
332 * config/tc-i370.c (register_name): Format fixes. Don't call
333 get_symbol_end after parsing number.
334 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
335 code out of conditional.
336 (address_register_name): Likewise.
337 (other_register_name): Likewise.
338 * config/tc-mn10300.c (r_register_name): Likewise.
339 (xr_register_name): Likewise.
340 (data_register_name): Likewise.
341 (address_register_name): Likewise.
342 (other_register_name): Likewise.
343 * config/tc-ppc.c (register_name): Likewise.
344 * config/tc-s390.c (register_name): Likewise.
346 2001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
348 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
349 and bra relax: update fragP->fr_fix after the fixup.
351 2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
353 * read.c (s_set): Check for missing symbol name.
355 2001-07-26 Alan Modra <amodra@bigpond.net.au>
357 * write.c (relax_segment <rs_space>): Account for fr_fix.
359 2001-07-25 H.J. Lu <hjl@gnu.org>
361 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
362 we treat weak like extern only for ELF.
363 (mips_fix_adjustable): Make sure we don't adjust extern/weak
364 symbols only for ELF.
366 2001-07-25 Chris Demetriou <cgd@broadcom.com>
368 * config/tc-mips.c: Fix spelling error in comment.
370 2001-07-25 Dave Brolley <brolley@redhat.com>
372 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
373 (IS_PARALLEL_SEPARATOR): New macro.
374 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
375 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
376 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
377 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
380 2001-07-24 Alan Modra <amodra@bigpond.net.au>
382 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
383 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
384 Update dependencies with "make dep-am".
385 * Makefile.in: Regenerate.
386 * doc/Makefile.in: Regenerate.
388 2001-07-23 Kazu Hirata <kazu@hxi.com>
390 * config/tc-alpha.h: Fix formatting.
391 * config/tc-arc.c: Likewise.
392 * config/tc-d10v.h: Likewise.
393 * config/tc-hppa.c: Likewise.
394 * config/tc-i370.c: Likewise.
395 * config/tc-i386.h: Likewise.
396 * config/tc-i960.h: Likewise.
397 * config/tc-ia64.c: Likewise.
398 * config/tc-ia64.h: Likewise.
399 * config/tc-m32r.c: Likewise.
400 * config/tc-m68k.c: Likewise.
401 * config/tc-m88k.c: Likewise.
402 * config/tc-ns32k.c: Likewise.
403 * config/tc-pdp11.c: Likewise.
404 * config/tc-pj.h: Likewise.
405 * config/tc-s390.c: Likewise.
406 * config/tc-sparc.c: Likewise.
407 * config/tc-sparc.h: Likewise.
408 * config/tc-tic80.c: Likewise.
409 * config/tc-w65.h: Likewise.
411 2001-07-23 Alan Modra <amodra@bigpond.net.au>
413 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
414 symbols specially. Always resolve, adding fr_address to value.
415 * write.c (write_object_file): Don't add fr_address to sym values.
416 (relax_frag): Likewise.
417 (relax_segment): Likewise.
418 * config/obj-ieee.c (do_symbols): Likewise.
419 * config/tc-cris.c (md_convert_frag): Likewise.
420 * config/tc-fr30.c (md_convert_frag): Likewise.
421 * config/tc-i386.c (md_convert_frag): Likewise.
422 * config/tc-m32r.c (md_convert_frag): Likewise.
423 * config/tc-m68hc11.c (md_convert_frag): Likewise.
424 * config/tc-mcore.c (md_convert_frag): Likewise.
425 * config/tc-mips.c (mips16_extended_frag): Likewise.
426 * config/tc-ns32k.c (md_convert_frag): Likewise.
427 * config/tc-m68k.c (md_convert_frag_1): Likewise.
428 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
429 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
430 (md_relax_table): Remove first four entries. Format.
431 (md_estimate_size_before_relax): Remove old_fix. Don't bother
432 setting fr_var. Simplify byte branch checks.
434 2001-07-23 Alan Modra <amodra@bigpond.net.au>
436 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
437 "isbranch" param as all calls have it set.
438 (pa_parse_neg_cmpsub_cmpltr): Likewise.
439 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
440 strcasecmp in "nullify" var.
441 (pa_parse_neg_add_cmpltr): Likewise.
442 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
443 functions. Don't print wrong conditions in error messages.
445 2001-07-23 Andreas Jaeger <aj@suse.de>
447 * config/tc-s390.c (s390_force_relocation): Removed.
449 * config/tc-s390.h: Remove double declaration of
452 2001-07-22 H.J. Lu <hjl@gnu.org>
454 * config/tc-mips.c (s_mips_end): Remove unused variables.
455 (s_mips_frame): Add ATTRIBUTE_UNUSED.
457 2001-07-17 Andreas Schwab <schwab@suse.de>
459 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
461 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
463 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
465 2001-07-17 matthew green <mrg@eterna.com.au>
467 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
469 (line_comment_chars): Set to '/' if TE_NetBSD.
471 2001-07-14 matthew green <mrg@eterna.com.au>
473 * configure.in (i386-*-netbsdelf*): New target.
474 * configure: Regenerate.
476 2001-07-10 Mark Elbrecht <snowball3@softhome.net>
478 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
479 class of the non-debug symbol is C_NULL.
481 2001-07-10 Anders Norlander <anorland@synergenix.se>
483 * doc/as.texinfo (Incbin): Fix grammatical errors.
485 2001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
487 * depend.c: Use FOPEN_.. macros in calls to fopen().
488 * input-file.c: As above.
489 * itbl-ops.c: As above.
490 * listing.c: As above.
491 * output-file.c: As above.
494 2001-07-08 Anders Norlander <anorland@synergenix.se>
496 * read.c (s_incbin): New .incbin function.
497 * read.c (potable): Add "incbin" pseudo-op.
498 * read.h: Add s_incbin prototype.
499 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
500 * NEWS: Mention new feature.
502 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
504 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
507 2001-07-06 John Healy <jhealy@redhat.com>
509 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
510 set of fixups to be stored.
511 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
512 restored to be chosen from any that are saved.
513 (gas_cgen_swap_fixups): Modified to allow the current set of
514 fixups to be swapped with any other set that has been saved.
515 (gas_cgen_initialize_saved_fixups_array): New routine.
516 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
517 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
518 or MAX_SAVED_FIXUP_CHAINS.
519 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
520 store, swap and restore fuctions to reflect the new interface.
522 2001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
524 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
525 ignore empty, ineffectual alignment frags when deciding if a
528 2001-07-05 Steve Ellcey <sje@cup.hp.com>
530 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
531 and SPECIAL_SECTION_FINI_ARRAY.
532 (special_section_name): Add .init_array and .fini_array.
533 (md_pseudo_table): Add init_array and fini_array.
534 (md): Add pointer_size and pointer_size_shift fields.
535 (setup_unwind_header): New static function.
536 (output_unw_records): Modify to use setup_unwind_header.
537 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
538 md.pointer_size_shift.
539 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
541 2001-07-05 Ben Elliston <bje@redhat.com>
543 * README (Supported platforms): m88k no longer suffers bitrot.
545 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
547 2001-07-05 Alan Modra <amodra@bigpond.net.au>
549 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
550 lsy_value. Correct typos in comments.
551 * symbols.c (local_symbol_make): Update for name change.
552 (local_symbol_convert): Likewise.
554 (S_GET_VALUE): Likewise.
555 (S_SET_VALUE): Likewise.
556 (print_symbol_value_1): Likewise.
557 (resolve_symbol_value): Likewise. Don't divide local sym values
558 by OCTETS_PER_BYTE twice.
560 2001-07-04 Jim Wilson <wilson@redhat.com>
562 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
564 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
567 2001-07-05 Ben Elliston <bje@redhat.com>
569 * read.c (s_fill): Correct spelling error in comments.
571 * doc/c-m88k.texi: New file.
572 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
573 * doc/Makefile.in: Regenerate.
574 * doc/all.texi: Set M880X0.
575 * doc/as.texinfo: Hook in m88k-dependent documentation.
577 2001-07-04 Eric Christopher <echristo@redhat.com>
579 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
581 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
582 and rm5721 as valid cpu strings.
583 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
585 2001-07-04 Richard Sandiford <rsandifo@redhat.com>
587 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
588 if it's expected to be non-zero.
590 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
592 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
595 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
596 (write_object_file): Set finalize_syms to
597 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
600 * doc/internals.texi; Document
601 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
603 2001-07-02 Alan Modra <amodra@bigpond.net.au>
605 * config/tc-ppc.c: Formatting fixes.
607 2001-07-01 Ben Elliston <bje@redhat.com>
609 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
610 they cause some subtle breakage. Will fix them again later.
612 2001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
614 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
615 outside of a function as a .appline directive.
617 2001-06-28 Eric Christopher <echristo@redhat.com>
618 H.J. Lu <hjl@gnu.org>
620 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
621 of mips_cpu for the ISA selection.
622 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
623 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
624 (mips_tune): New. Use mips_tune for scheduling and optimization
626 (append_insn): Use mips_tune and mips_arch.
627 (macro_build): Ditto.
629 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
630 backwards compatability mips_cpu generates arch and tune.
631 (md_show_usage): Document new behavior.
633 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
638 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
640 * write.c (write_object_file): Do not set finalize_syms until
641 after the segments have been sized. Some backends may still
642 need to access the syms's frags in order to adjust relaxed
645 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
648 2001-06-27 Alan Modra <amodra@bigpond.net.au>
650 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
651 subtract MD_PCREL_FROM_SECTION for 68k.
652 (fixup_segment <Difference of 2 syms different seg>): Only fudge
653 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
655 2001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
657 * write.c (fixup_segment <Difference of 2 syms same seg>): If
658 pcrel, subtract MD_PCREL_FROM_SECTION value.
660 2001-06-24 Ben Elliston <bje@redhat.com>
662 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
664 2001-06-24 Jakub Jelinek <jakub@redhat.com>
666 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
667 section symbols the same way as externs.
669 2001-06-24 Ben Elliston <bje@redhat.com>
671 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
672 (emit_relocations): Ditto.
674 (md_begin): Reformat comments to conform to the GNU standards.
675 (md_assemble): Ditto.
677 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
678 (md_parse_option): Mark parameters as unused.
679 (md_show_usage): Ditto.
680 (calcop): Adjust type of `reg_prefix' to char.
682 (getval): Adjust type of local `c' to char.
683 (md_create_short_jump): Mark from_addr, to_addr params as unused.
684 (md_create_long_jump): Ditto.
685 (md_estimate_size_before_relax): Mark parameters as unused.
687 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
688 to allay a possible compiler warning.
690 2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
692 * doc/internals.texi (CPU backend): Document md_atof.
694 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
696 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
697 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
700 2001-06-21 Philip Blundell <philb@gnu.org>
702 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
704 (insns): Remove entry for adrl. Add long_flag for adr.
705 (do_adr): Handle `l' suffix.
708 2001-06-21 Alan Modra <amodra@bigpond.net.au>
710 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
711 (md_apply_fix): Use it here. Replace printf with equivalent
713 (tc_gen_reloc): Use as_bad_where instead of as_bad.
714 (md_apply_fix): Here too.
715 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
716 * config/tc-m68k.c (tc_gen_reloc): Likewise.
717 (md_convert_frag_1): Likewise.
719 2000-06-20 Tom Rix <trix@redhat.com>
721 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
723 2001-06-18 H.J. Lu <hjl@gnu.org>
725 * doc/Makefile.am (info): Depend on $(MANS).
726 (as.1): Remove the prefix `$(srcdir)/'.
727 * doc/Makefile.in: Regenerated.
731 2001-06-18 Philip Blundell <philb@gnu.org>
733 * config/tc-arm.c (do_msr): Remove restriction on usage of
736 2001-06-19 Alan Modra <amodra@bigpond.net.au>
738 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
741 2001-06-13 Philip Blundell <philb@gnu.org>
743 * config/tc-arm.c (thumb_shift): Improve wording of error message.
744 (do_t_arit): Likewise.
746 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
748 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
749 .loc pseudos if the dfwarf2 functions are available.
750 (md_assemble): Only call dwarf2_emit_insn if it is available.
752 * expr.c: Fix typo in comment.
754 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
756 * doc/as.texinfo (Infix Ops): Document that comparison and
757 combiner operators can be used as infix operators.
759 2001-06-12 Peter Jakubek <pjak@snafu.de>
761 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
763 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
764 (reverse_mri_condition): Likewise.
765 (swap_mri_condition): Issue warning for conditions that can not be
767 (build_mri_control_operand): Fix order of operands (swapped).
768 (build_mri_control_operand): Allow upper case extension in structured
770 (s_mri_else): Likewise.
771 (s_mri_next): Likewise.
772 (s_mri_for): Likewise.
773 (s_mri_if): Fix handling comment ('*') in mri mode.
774 (s_mri_while): Likewise.
775 * macro.c (macro_expand): Allow macro invocation with empty
778 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
780 * config/tc-arm.c: Fix test for overlow of literal pool.
782 2001-06-11 H.J. Lu <hjl@gnu.org>
784 * NEWS: Updated for the new -n option for the MIPS assembler.
786 * config/tc-mips.c (md_show_usage): Add -n.
788 * doc/as.texinfo: Document the new -n option.
789 * doc/c-mips.texi: Likewise.
790 * doc/as.1: Regenerated.
792 2001-06-10 Alan Modra <amodra@bigpond.net.au>
794 * config/obj-coff.c (obj_coff_section): Formatting fix.
796 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
799 2001-06-08 H.J. Lu <hjl@gnu.org>
801 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
802 disable warning about all NOPS that the assembler generates.
803 (macro): Warn NOPS generated only if warn_nops is not 0.
804 (md_shortopts): Add `n'.
805 (md_parse_option): Set warn_nops to 1 for `n'.
807 2001-06-08 H.J. Lu <hjl@gnu.org>
809 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
811 2001-06-08 H.J. Lu <hjl@gnu.org>
813 * config/tc-mips.c (md_apply_fix): Don't adjust common
814 extern/weak symbols for ELF.
815 (md_estimate_size_before_relax): Treat weak like extern for
817 (mips_fix_adjustable): Don't adjust extern/weak symbols for
820 2001-06-08 Alan Modra <amodra@bigpond.net.au>
822 * Makefile.am: 'som' is not wrongly spelled 'some'.
823 * Makefile.in: Regenerate.
825 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
826 S_GET_VALUE by using a temp.
827 (append_insn): Likewise, and for S_SET_VALUE too.
828 (mips_emit_delays): Likewise.
829 (my_getExpression): Likewise.
830 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
831 (mips16_extended_frag): Remove code concerned with avoiding
832 locking in a frag address now that symbols are not finalized until
833 relaxation is complete. Cater for first relaxation pass having
834 bogus addresses. Use relax_marker to reliably determine whether a
835 symbol frag has been reached on the current pass.
837 2001-06-07 H.J. Lu <hjl@gnu.org>
839 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
840 * configure: Regenerate.
842 2001-06-07 H.J. Lu <hjl@gnu.org>
844 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
846 * configure: Regenerate.
848 2001-06-07 H.J. Lu <hjl@gnu.org>
850 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
851 MIPS_STABS_ELF is defined.
853 2001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
855 * as.c (show_usage): Remove L from listing options. It is not a
858 2001-06-06 Christian Groessler <cpg@aladdin.de>
860 * config/tc-z8k.c: Removed many warnings by removing unused
861 variables and tagging unused parameters as such.
862 (md_begin): Fixed a typo (","instead of ";").
863 (struct ctrl_table): Add parentheses to initialize array
865 (struct flag_table): Likewise.
866 (struct intr_table): Likewise.
867 (struct table): Likewise.
868 (check_operand): "#if 0"'ed since it doesn't seem to be used.
870 2001-06-06 Peter Jakubek <pjak@snafu.de>
872 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
873 options to list (e.g. m5206e, m5307, m5407).
875 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
877 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
878 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
880 2001-06-06 Alan Modra <amodra@bigpond.net.au>
882 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
883 <JumpByte, JumpDword insn output>: Remove dead code.
885 2001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
887 * as.c (parse_args): Correct option name "listing-lhs-width2".
889 2001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
891 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
894 2001-05-30 Richard Henderson <rth@redhat.com>
896 * read.c (emit_leb128_expr): Call md_cons_align.
898 2001-05-28 Jeff Sturm <jsturm@one-point.com>
900 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
901 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
902 (tc_gen_reloc): Likewise.
903 (sparc_cons_align): Don't clear sparc_no_align_cons.
904 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
905 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
907 2001-05-27 Alan Modra <amodra@one.net.au>
909 * write.c (relax_segment <rs_space>): Check the section of a
910 symbol to determine whether it is absolute rather than comparing
911 its frag against zero_address_frag as listings play tricks with
914 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
915 allocated in the same chunk as the fixed part.
917 2001-05-26 Alan Modra <amodra@one.net.au>
919 * write.c (relax_segment <rs_space>): Calculate growth using
920 addresses before stretch. Prevent repeated error messages.
921 From Peter Jakubek <pjak@snafu.de>
922 Use as_bad_where and as_warn_where to pinpoint errors.
924 2001-05-25 Alan Modra <amodra@one.net.au>
926 * symbols.c (resolve_symbol_value): Always set segment, even when
927 not finalizing symbol value.
929 * config/obj-ieee.c (write_object_file): Set finalize_syms.
930 * config/obj-coff.c (write_object_file): Likewise.
931 * (size_section): Remove rs_space assert as fr_symbol is no longer
933 (fill_section): Likewise.
935 * configure.in: Replace linuxoldld with linux*oldld.
936 * configure: Regenerate.
938 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
939 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
940 that have been finalized.
942 * symbols.c (resolve_symbol_value): Clear sy_resolving before
943 taking exit_dont_set_value.
945 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
948 2000-05-24 Tom Rix <trix@redhat.com>
950 * config/obj-coff.c (add_lineno): xcoff allows negative line
952 * config/tc-ppc.c (ppc_stabx): fix generated symbol
954 2001-05-24 Alan Modra <amodra@one.net.au>
956 * write.c (write_object_file): Set finalize_syms = 1 before
959 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
961 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
962 architecture, remove erraneous ISA_MIPS32.
963 (md_show_usage): Add MIPS r12k support.
964 (mips_cpu_info_table): Add MIPS r12k support.
966 2001-05-22 Alan Modra <amodra@one.net.au>
968 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
971 * symbols.c (resolve_symbol_value): Remove "finalize" param,
972 instead use finalize_syms directly. Don't treat expressions
973 specially with regard to finalize_syms. Update calls to self.
974 (resolve_local_symbol): Update call to resolve_symbol_value.
975 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
977 * symbols.h (resolve_symbol_value): Update prototype.
978 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
979 to resolve_symbol_value.
980 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
981 * config/obj-coff.c (do_relocs_for): Likewise.
982 (yank_symbols): Likewise.
983 (fixup_segment): Likewise.
984 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
985 * config/tc-mips.c (md_convert_frag): Likewise.
986 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
987 (ppc_fix_adjustable): Likewise.
988 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
989 (dwarf2dbg_convert_frag): Likewise.
990 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
991 (eh_frame_convert_frag): Likewise.
992 * expr.c (make_expr_symbol): Likewise.
993 * write.c (adjust_reloc_syms): Likewise.
994 (write_object_file): Likewise.
995 (relax_segment): Likewise.
996 (fixup_segment): Likewise.
997 (finalize_syms): Init to zero, and update comment.
998 (write_object_file): Set finalize_syms to 1 rather than 2.
999 * doc/internals.texi (sy_value): Mention finalize_syms.
1000 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
1002 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
1003 as relaxable if embedded system, make weak syms non-relaxable.
1005 (tc_m68k_fix_adjustable): ..so it can be used here.
1006 (md_apply_fix_2): Sign extend without conditional.
1008 * config/tc-v850.c: Update copyright.
1010 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
1012 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
1013 howto entry is not found.
1015 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
1017 * config/tc-mn10300.c (mn10300_force_relocation): Don't
1018 optimize differences between symbols in code sections to
1020 (mn10300_fix_adjustable): Don't adjust to section+offset
1021 relocations pointing at symbols in code sections.
1023 2001-05-16 Alan Modra <amodra@one.net.au>
1025 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
1027 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
1028 opcodes are output rather than after. Delete insn_size.
1029 * config/tc-v850.c (md_assemble): Similarly, but delete
1032 2001-05-14 Richard Henderson <rth@redhat.com>
1034 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
1037 2001-05-14 Richard Henderson <rth@redhat.com>
1039 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
1040 also collect whether to expect an FDE augmentation.
1041 (check_eh_frame): Rewrite as a state machine. Track where in
1042 an FDE we are located, skip any augmentation.
1043 (eh_frame_estimate_size_before_relax): Get code alignment from
1044 the fragment subtype.
1045 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
1046 * read.c (emit_leb128_expr): Call check_eh_frame.
1048 2001-05-14 Alexandre Oliva <aoliva@redhat.com>
1050 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
1051 before a relaxable insns.
1053 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
1055 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
1056 between symbols if the base symbol is in the current section;
1057 emit a PC-relative relocation instead.
1059 2001-05-12 Peter Targett <peter.targett@arccores.com>
1061 * config/tc-arc.c: Update copyright and tidy source comments.
1062 (md_pseudo_table): Add directive .cpu back as an alias for
1063 .option. Add .file and .line for dwarf2 support.
1064 (arc_mach_type): Make bfd_mach_arc_6 default.
1065 (md_longopts): Add entry 'pre-v6' representing old command line
1066 option when assembling for 'arc5' core versions.
1067 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
1069 (arc_code_symbol): Make symbol value for @h30 fixup expression
1070 equal to O_constant.
1071 (md_assemble): Call dwarf2_emit_insn.
1072 Include "dwarf2dbg2.h". Formatting fixes throughout file.
1073 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1074 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
1076 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1078 * config/tc-ia64.c (special_linkonce_name): New.
1079 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
1080 .gnu.linkonce.ia64unw{,i}.FOO.
1081 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
1082 (dot_endp): Add comment about it.
1084 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1086 * config/tc-arm.c (arm_handle_align): When truncating an aligned
1087 block, ensure that the low order bits of the alignment are
1090 2001-05-10 Alan Modra <amodra@one.net.au>
1092 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
1095 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
1096 current variable part of frag.
1097 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
1098 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
1099 * config/tc-m68hc11.c (RELAX_STATE): Define.
1100 (RELAX_LENGTH): Define.
1101 (md_estimate_size_before_relax): Handle non-relaxable cases
1102 separately from relaxable cases for clarity, and return correct
1103 size for multi-pass relaxation.
1104 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
1105 (md_estimate_size_before_relax): As for tc-m68hc11.c.
1106 (md_convert_frag): Remove "length_code".
1107 * config/tc-vax.c (RELAX_STATE): Define.
1108 (RELAX_LENGTH): Define.
1109 (md_relax_table): Add missing entry.
1110 (md_estimate_size_before_relax): As for tc-m68hc11.c.
1111 (md_convert_frag): Remove "length_code".
1112 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
1113 don't bother setting fr_var. Return correct size for multi-pass
1115 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
1116 (md_convert_frag): Don't bother clearing fr_var.
1117 (md_pseudo_table): Correct initialization.
1118 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
1119 (md_estimate_size_before_relax): No need to set fr_var.
1120 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
1121 (md_estimate_size_before_relax): No need to set fr_var.
1123 2001-05-09 Richard Henderson <rth@redhat.com>
1125 * config/tc-ia64.c (generate_unwind_image): Align the fragment
1126 beginning a function's unwind info block.
1128 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1130 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
1132 2001-05-08 Andreas Schwab <schwab@suse.de>
1134 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
1135 fx_pcrel_adjust explicitly sign extend when reading it.
1137 2001-05-08 Alan Modra <amodra@one.net.au>
1139 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
1140 from md_relax_table, and combine some switch cases.
1142 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
1144 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
1145 from offset in non-pcrel operands too.
1147 2001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
1149 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1150 * config/tc-arm.c (arm_handle_align): Do not insert more than
1151 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
1152 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
1154 2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1156 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
1158 * Makefile.in: Regenerate.
1159 * configure.in: Remove duplicate mips-*-ecoff* entry.
1160 * configure: Regenerate.
1162 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
1163 (n_names): Cast away type mismatch.
1164 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
1165 (obj_ecoff_frob_symbol): Likewise.
1166 * ecoff.c: (add_file): Add unused attribute.
1167 (ecoff_directive_begin): Likewise.
1168 (ecoff_directive_bend): Likewise.
1169 (ecoff_directive_def): Likewise.
1170 (ecoff_directive_dim): Likewise.
1171 (ecoff_directive_scl): Likewise.
1172 (ecoff_directive_size): Likewise.
1173 (ecoff_directive_type): Likewise.
1174 (ecoff_directive_tag): Likewise.
1175 (ecoff_directive_val): Likewise.
1176 (ecoff_directive_endef): Likewise.
1177 (ecoff_directive_end): Likewise.
1178 (ecoff_directive_ent): Likewise.
1179 (ecoff_directive_extern): Likewise.
1180 (ecoff_directive_file): Likewise.
1181 (ecoff_directive_fmask): Likewise.
1182 (ecoff_directive_frame): Likewise.
1183 (ecoff_directive_mask): Likewise.
1184 (ecoff_directive_loc): Likewise.
1185 (mark_stabs): Likewise.
1186 (ecoff_stab): Likewise.
1187 (ecoff_frob_symbol): Cast away type mismatch.
1188 (ecoff_padding_adjust): Likewise.
1189 (ecoff_build_symbols): Likewise.
1190 (ecoff_build_procs): Likewise.
1191 (ecoff_build_aux): Likewise.
1192 (ecoff_build_strings): Likewise.
1193 (ecoff_build_fdr): Likewise.
1194 (ecoff_build_debug): Likewise.
1195 * itbl-ops.c (itbl_assemble): Variable initialization.
1197 2001-05-03 Alan Modra <amodra@one.net.au>
1199 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
1200 expressions rather than triggering an assert.
1202 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1204 * config/tc-openrisc.c: New file.
1205 * config/tc-openrisc.h: Likewise.
1207 * Makefile.am: Add OpenRISC target.
1208 * Makefile.in: Regenerated.
1210 * configure.in (openrisc-*-*): Add target.
1211 * configure: Regenerated.
1213 2001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1215 * config/tc-arm.c (arm_frag_align_code): Change error message to
1216 more explanatory version.
1218 2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
1220 * config/tc-mips.c (md_parse_option): Also accept
1221 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
1223 2001-04-27 David Mosberger <davidm@hpl.hp.com>
1225 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
1226 argument passing order: predicate goes last, not first.
1228 2001-04-27 Sean McNeil <sean@mcneil.com>
1230 * configure.in: Add arm-vxworks.
1231 * configure: Regenerate.
1233 2001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
1235 * config/tc-arm.c (arm_handle_align): New Function: Generate
1236 no-op filled alignment frags.
1237 (arm_frag_align_code): New Function: Create a code alignment frag.
1238 (arm_init_frag): New Function: Initialse the target dependent
1241 * config/tc-arm.h (TC_FRAG_TYPE): Define.
1242 (TC_FRAG_INIT): Define.
1243 (HANDLE_ALIGN): Define.
1244 (md_do_align): Define.
1246 2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
1248 * config/obj-coff.c (do_linenos_for): Check to see if the filename
1249 symbol has been initialised before extracting its symbol index.
1251 2001-04-24 H.J. Lu <hjl@gnu.org>
1253 * configure: Regenerated with the right version of autoconf.
1255 2001-04-24 Christian Groessler <cpg@aladdin.de>
1257 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
1258 generate R_CALLR and R_REL16 relocations
1260 2000-04-20 Jason Eckhardt <jle@redhat.com>
1262 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
1263 since frag_now can change after d10v_cleanup is called.
1265 2001-04-16 David O'Brien <obrien@FreeBSD.org>
1267 * configure.in: Add the em type for FreeBSD targets.
1268 * configure: Regenerate.
1270 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1272 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
1273 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
1275 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
1276 pc-relative relocations not placed at the end of the instruction.
1278 2001-04-13 Jim Wilson <wilson@redhat.com>
1280 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
1283 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1285 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
1286 handle SHF_MERGE and SHF_STRINGS.
1287 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
1288 (obj_elf_section): Allow additional argument specifying entity size.
1289 * write.c (adjust_reloc_syms): Keep relocations against local symbols
1290 in SEC_MERGE sections.
1292 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
1294 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
1296 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
1298 * expr.c (operand): Pass &c to md_parse_name().
1299 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
1301 2001-04-07 Steven J. Hill <sjhill@cotw.com>
1303 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
1305 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
1306 * Makefile.in: Regenerated.
1308 * configure.in: Use traditional MIPS targets for Linux/MIPS.
1309 * configure: Regenerated.
1311 2001-04-06 Alexandre Oliva <aoliva@redhat.com>
1313 * config/tc-mn10300.c (xr_registers): Added `pc'.
1315 2001-04-05 Alan Modra <alan@linuxcare.com.au>
1317 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
1318 * configure: Regenerate.
1320 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
1321 cases, and always return size based on current fr_subtype.
1322 (md_begin): Move initialization of md_relax_table..
1323 (md_relax_table): ..to static initializer. Set rlx_length for
1324 UNDEF_WORD_DISP cases.
1325 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
1326 (md_begin): Likewise.
1327 (md_relax_table): Likewise.
1328 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
1329 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
1330 Set rlx_backward and rlx_forward to zero for unused states.
1331 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
1332 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
1333 (UNCOND12, UNCOND32): Remove duplicate defines.
1335 2001-04-04 Hans-Peter Nilsson <hp@axis.com>
1337 * config/tc-cris.c (md_estimate_size_before_relax) <case
1338 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
1339 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
1340 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
1341 Add cases to cover all relax states.
1342 (cris_insn_first_word_frag): New.
1343 (md_assemble): Call cris_insn_first_word_frag to get the first
1344 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
1345 end. Drop variable insn_size.
1346 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
1347 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
1348 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
1350 * write.c (write_object_file): Reset broken word state before
1353 2001-03-31 Alan Modra <alan@linuxcare.com.au>
1355 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
1356 for one line if not already enabled.
1357 * cond.c (s_elseif): Correct conditional assembly listing.
1360 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
1361 Don't abort on NULL current_cframe.
1363 2001-03-30 Alan Modra <alan@linuxcare.com.au>
1365 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
1366 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
1367 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
1368 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
1369 * config/obj-coff.c (do_relocs_for): Likewise.
1370 (yank_symbols): Likewise.
1371 (fixup_segment): Likewise.
1372 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
1373 (ppc_fix_adjustable): Likewise.
1374 * config/tc-mips.c (md_convert_frag): Likewise.
1375 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
1376 * ehopt.c (eh_frame_convert_frag): Likewise.
1377 * expr.c (make_expr_symbol): Likewise.
1379 * frags.h (struct frag): Add last_fr_address. Reorder fields for
1381 * symbols.c (resolve_symbol_value): Don't fix expression values
1382 until relaxation is complete.
1383 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
1384 (S_GET_VALUE): Likewise, and return unresolved expression value.
1385 * write.c (finalize_syms): New.
1386 (relax_and_size_seg): Split into..
1387 (relax_seg): New function, returns 1 if anything changed..
1388 (size_seg): And the remainder of relax_and_size_seg.
1389 (fixup_segment): Arrange for final resolution of sym values.
1390 (adjust_reloc_syms): Likewise.
1391 (write_object_file): Likewise, and repeatedly call relax_seg until
1392 nothing more changes.
1393 (relax_segment): Return 1 if anything changed. Use correct types
1394 for rs_org `target' and `after'.
1395 * write.h (finalize_syms): Declare.
1396 (relax_segment): Update prototype.
1398 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
1399 do-nothing cases to switch to avoid abort on a second relaxation
1400 pass, and tidy code a little.
1401 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
1402 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
1403 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
1404 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
1405 (md_relax_table): Remove first four unused entries. Increment
1406 rlx_length by one throughout table, and update comments to suit.
1407 (md_estimate_size_before_relax): Return size of current variable
1408 part of frag to reflect reality when relaxing more than once.
1409 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
1410 (COND32, UNCD32): Rename to DISP32 throughout.
1411 (UNDEF_WORD_DISP): Renumber to 3.
1412 (md_estimate_size_before_relax): Add extra do-nothing cases.
1413 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
1414 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
1415 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
1416 handle word and dword branches.
1418 2001-03-29 Hans-Peter Nilsson <hp@axis.com>
1420 * config/tc-cris.h (tc_fix_adjustable): Allow only
1421 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
1422 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
1423 example in comment to valid type.
1425 2001-03-28 H.J. Lu <hjl@gnu.org>
1427 * read.c (equals): Set to local for COFF only if it hasn't been
1430 2001-03-28 Alan Modra <alan@linuxcare.com.au>
1432 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
1433 (md_begin): Use it when setting default architecture.
1435 2001-03-27 Nick Papadonis <nick@coelacanth.com>
1437 * read.c (equals): (for COFF) default symbols to being local.
1439 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1441 * configure.in (cris-*-*): Change default emulation to criself.
1442 (cris-*-*aout*): New rule.
1443 * configure: Regenerate.
1445 2001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
1447 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
1448 BFD_RELOC_390_GOTENT.
1449 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
1450 BFD_RELOC_390_GOTENT.
1452 2001-03-26 Nick Clifton <nickc@redhat.com>
1454 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
1455 * config/tc-s390.c (s390_force_relocation): New function: Force
1456 relocations for VTINHERIT relocs.
1458 2001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1460 * doc/as.texinfo: Put @c man begin to generate the as man page.
1461 When generating man, define all the variables. Re-organize some
1462 options to obtain better indentation of man page.
1463 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
1464 (as.1): Build from as.texinfo.
1465 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
1467 2001-03-25 Alan Modra <alan@linuxcare.com.au>
1469 * config/tc-i386.c (i386_scale): Accept an absolute expression for
1470 scale factor, and return the end of the expression.
1471 (i386_operand): Modify for above.
1473 2001-03-23 Nick Clifton <nickc@redhat.com>
1475 * doc/as.texinfo: Document --listing-XXX command line switches.
1476 Explain why listings behave differently when -pipe is used.
1478 2001-03-23 Richard Sandiford <rsandifo@redhat.com>
1480 * write.c (fix_new_exp): Print an error if passed a register.
1482 2001-03-23 Hans-Peter Nilsson <hp@axis.com>
1484 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
1485 (PIC_SUFFIX_CHAR): New macro.
1486 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
1487 (pic): New variable.
1488 (md_longopts): New option --pic.
1489 (OPTION_PIC): Define.
1490 (md_estimate_size_before_relax): Tweak longish comment.
1491 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
1492 (md_assemble): Handle a PIC relocation on prefix and normal
1493 instruction operands.
1494 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
1495 "complex" operand expressions. Call frag_more outside
1496 gen_cond_branch_32 parameter list.
1497 (cris_process_instruction): Handle PIC relocs on parsed
1498 operand expressions. Validize PIC reloc sizes.
1499 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
1500 (gen_bdap): Handle "complex" operand expressions.
1501 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
1502 ADD.D offset,PC as jump instruction if generating PIC. Generate
1503 error instead of crashing on complex expressions.
1504 (cris_number_to_imm): Add segT parameter. All callers changed.
1505 Use segT parameter, not now_seg, for segment of fixup. Handle
1506 PCREL relocations but check that they are fully resolved.
1507 (md_parse_option): Handle OPTION_PIC.
1508 (tc_gen_reloc): Handle PIC relocs.
1509 (md_show_usage): Update for --pic.
1510 (md_apply_fix3): Renamed from md_apply_fix.
1511 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
1512 (md_cris_force_relocation): Force relocation for PIC relocs.
1514 * config/tc-cris.h: Tweak attribution.
1515 (MD_APPLY_FIX3): Define.
1516 (IS_CRIS_PIC_RELOC): New macro.
1517 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
1518 (tc_fix_adjustable): Don't adjust a globally visible symbol when
1520 (tc_frob_symbol): Avoid emitting undefined symbols.
1522 2001-03-20 Alan Modra <alan@linuxcare.com.au>
1524 * frags.h (struct frag): Add relax_marker.
1525 * write.c (is_dnrange): Delete.
1526 (relax_frag): Use correct types for `aim', `target', `address'.
1527 Delete `offset', `was_address'. Test `relax_marker' instead of
1528 using fragile (and slow) address test.
1529 (relax_segment): Init and flip `relax_marker'.
1531 2001-03-19 Alan Modra <alan@linuxcare.com.au>
1533 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
1536 2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1538 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
1539 with 'Motorola specification for assembly language input standard'.
1541 2001-03-17 Richard Henderson <rth@redhat.com>
1543 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
1544 (dwarf2_directive_loc): Don't use them.
1545 (dwarf2_directive_file): Reject duplicate file definitions.
1546 (get_filenum): Zero allocated memory.
1547 (out_file_list): Complain about missing file definitions.
1549 2001-03-17 Alan Modra <alan@linuxcare.com.au>
1551 * read.c (do_org): Handle complex expressions.
1552 * cgen.c (gas_cgen_finish_insn): Likewise.
1554 2001-03-15 David Mosberger <davidm@hpl.hp.com>
1556 * config/tc-ia64.c (md): New member keep_pending_output.
1557 (ia64_flush_pending_output): Flush only if md.keep_pending_output
1559 (dot_xdata): Turn on md.keep_pending_output for the duration of
1561 (dot_xfloat_cons): Ditto.
1562 (dot_xstringer): Ditto.
1563 (dot_xdata_ua): Ditto.
1564 (dot_xfloat_cons_ua): Ditto.
1566 2001-03-15 Jim Wilson <wilson@redhat.com>
1568 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
1571 2001-03-15 Alexandre Oliva <aoliva@redhat.com>
1573 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
1575 2001-03-15 DJ Delorie <dj@redhat.com>
1577 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
1578 blindly freeing string if it isn't at the top of the obstack.
1580 2001-03-13 Alan Modra <alan@linuxcare.com.au>
1582 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
1583 (NUM_FLAG_CODE): Define.
1584 (lex_got): New function.
1585 (got_reloc): New global var.
1586 (x86_cons_fix_new): New function.
1587 (x86_cons): New function.
1588 (i386_immediate): Use lex_got here, replacing inline code. Change
1589 "ignoring junk.." error message to "junk.."
1590 (i386_displacement): Likewise.
1591 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
1592 (x86_cons): Declare.
1593 (TC_CONS_FIX_NEW): Define.
1594 (x86_cons_fix_new): Declare.
1596 2001-03-12 Nick Clifton <nickc@redhat.com>
1598 * config/tc-arm.c (md_begin): Always set machine type based on
1601 2001-03-07 Alan Modra <alan@linuxcare.com.au>
1603 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
1604 (md_assemble) <smallest displacement>: Use correct field of i.op[]
1606 <JumpInterSegment output>: Use correct i.disp_reloc[].
1607 <immediate output>: Likewise.
1609 2001-03-06 Nick Clifton <nickc@redhat.com>
1611 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
1614 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1616 * config/tc-m68k.c : Add 5407 to archs[] table.
1617 (HAVE_LONG_BRANCH): Add mcf5407.
1618 (select_control_regs): Recognize 5407.
1620 2001-03-02 Dave Brolley <brolley@redhat.com>
1622 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
1625 2001-03-02 Richard Sandiford <rsandifo@redhat.com>
1627 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
1628 (gen_to_words): Print warnings if NaNs are found and the target CPU
1629 does not support them. Allow largest exponent to be used in normal
1630 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
1632 2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
1634 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
1635 anymore since we use bfd_elf_generic_reloc now.
1636 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
1638 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1640 * configure.in (BFD_VERSION): New.
1641 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1642 * configure: Regenerate.
1643 * Makefile.am: Run "make dep-am"
1644 * Makefile.in: Regenerate.
1645 * doc/Makefile.in: Regenerate.
1647 2001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
1649 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
1650 SEC_NEVER_LOAD when the 'n' flag is used.
1651 Add SEC_NEVER_LOAD to matchflags.
1653 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1655 * symbols.c (decode_local_label_name): Initialize message_format
1656 only when an error is reported (perf pb due to I18N).
1658 2001-02-23 H.J. Lu <hjl@gnu.org>
1660 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
1661 BFD_ASSEMBLER is not defined.
1663 2001-02-23 Richard Sandiford <rsandifo@redhat.com>
1665 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
1666 done if it's against a symbol.
1668 2001-02-22 Timothy Wall <twall@cygnus.com>
1670 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
1671 target formats if applicable.
1672 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
1673 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
1674 * Makefile.in: Regenerated.
1675 * configure.in: Added configuration for ia64-*-aix*.
1676 * configure: Regenerated.
1678 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1680 * config/tc-ia64.c (enum operand_match_result): New type.
1681 (operand_match): Change return type to operand_match_result.
1682 Fix all returns appropriately, adding support for returning the
1683 out-of-range result.
1684 (parse_operands): New locals result, error_pos, out_of_range_pos,
1685 curr_out_of_range_pos. Rewrite operand matching loop to give better
1688 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1690 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
1691 (dot_proc): Clear unwind.prologue_count to zero.
1692 (dot_prologue): Increment unwind.prologue_count.
1693 (dot_restore): If second operand is omitted, use
1694 unwind.prologue_count -1 for "ecount" (# of additional regions to
1695 pop). Decrement unwind.prologue_count by number of regions
1698 2001-02-21 Nick Clifton <nickc@redhat.com>
1700 * doc/as.texinfo (Section): Note that some flags to the COFF
1701 version of .section remove attributes rather than setting them.
1703 2001-02-20 Kazu Hirata <kazu@hxi.com>
1705 * config/tc-pdp11.c: Fix formatting.
1706 * config/tc-pdp11.h: Likewise.
1708 2001-02-20 Bo Thorsen <bo@suse.de>
1710 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
1713 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1715 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
1716 all FreeBSD platforms should look the same at this level.
1717 * configure: Rebuilt.
1718 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
1720 2001-02-18 lars brinkhoff <lars@nocrew.org>
1722 * Makefile.am: Add PDP-11 target.
1723 * configure.in: Likewise.
1724 * config/tc-pdp11.c: New file.
1725 * config/tc-pdp11.h: New file.
1726 * doc/Makefile.am: Add PDP-11 documentation.
1727 * doc/all.texi: Likewise.
1728 * doc/as.texinfo: Likewise.
1729 * doc/c-pdp11.texi: New file.
1731 2001-02-16 matthew green <mrg@redhat.com>
1733 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
1735 2001-02-13 Jim Wilson <wilson@redhat.com>
1737 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
1738 reloc instead of a 0 reloc.
1739 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
1741 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
1743 2001-02-13 Ian Lance Taylor <ian@zembu.com>
1745 * write.c (is_dnrange): Stop as soon as the address becomes
1747 (relax_frag): Add segment parameter. Only call symbol_get_frag
1748 once. Only call is_dnrange if the symbol is in the same segment,
1749 and the symbol address is larger.
1750 (relax_segment): Pass segment to md_relax_frag and relax_frag.
1751 * write.h (relax_frag): Update declaration.
1752 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
1754 * config/tc-m32r.c (m32r_relax_frag): Likewise.
1755 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
1756 (m32r_relax_frag): Update declaration.
1757 * config/tc-mips.h (md_relax_frag): Add segment parameter.
1758 * config/tc-tic54x.h (md_relax_frag): Likewise.
1759 * doc/internals.texi (CPU backend): Update documentation for
1762 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1764 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
1765 Mention effect of < 386 architectures on jump promotion.
1766 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
1768 * config/tc-i386.c (no_cond_jump_promotion): New.
1769 (set_cpu_arch): Parse "jumps" arch modifier.
1770 (insn_size): Modify usage comment.
1771 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
1772 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
1773 (TYPE_FROM_RELAX_STATE): New define.
1774 (UNCOND_JUMP, COND_JUMP): Renumber.
1775 (md_relax_table): Reorder to suit.
1776 (COND_JUMP86): New define.
1777 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
1778 (md_assemble): Create frag var for jumps of max size, encode relax
1779 state for COND_JUMP86.
1780 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
1781 leave conditional jumps small if no_cond_jump_promotion.
1782 (md_convert_frag): Likewise.
1784 * expr.c (operator): Don't bump input_line_pointer for two char
1785 operators. Instead return operator size via new param num_chars.
1786 (expr): Use above to parse multi-char operators correctly.
1788 Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
1790 * config/tc-i386.c (i386_displacement): Fix handling of
1791 BFD_RELOC_X86_64_GOTPCREL.
1792 (i386_validate_fix): Likewise.
1794 2001-02-12 Philip Blundell <pb@futuretv.com>
1796 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
1797 ldrt/strt instructions.
1799 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1801 * config/tc-mips.c (macro): For M_LA_AB emit a
1802 BFD_RELOC_MIPS_CALL16 relocation or a
1803 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
1804 BFD_RELOC_MIPS_GOT16 and
1805 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
1806 loading the jump register when generating SVR4_PIC code.
1808 2001-02-10 Chris Demetriou <cgd@broadcom.com>
1810 * configure.in: Make 'mipself' and 'mipsecoff' emulations
1811 map to MIPS-specific files, as they used to do before the
1812 change on 2000-05-21.
1813 * configure: Regerate.
1815 2001-02-10 Chris Demetriou <cgd@broadcom.com>
1817 * config/tc-mips.c (md_parse_option): Don't try to compile
1818 ELF-only option code if not ELF.
1820 2001-02-08 David Mosberger <davidm@hpl.hp.com>
1822 * config/tc-ia64.h (md_elf_section_type): New macro.
1823 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
1824 (they're now handled via ia64_elf_section_type.
1826 * config/tc-ia64.c (unwind): New members saved_text_seg,
1827 saved_text_subseg, and force_unwind_entry.
1828 (optimize_unw_records): New function to optimize away unnecessary
1830 (ia64_elf_section_type): New function.
1831 (output_unw_records): Generate unwind info only if the size is
1832 non-zero or if it's forced for some other reason (e.g.,
1833 handlerdata or a personality routine).
1834 (generate_unwind_image): Don't switch back to previous
1835 section---stay inside the unwind info section instead so that
1836 handlerdata that may follow goes into the right place.
1837 (dot_handlerdata): Force generation of unwind entry and save the
1838 current active text segment before generating unwind image.
1839 (dot_unwentry): Force generation of unwind entry.
1840 (dot_personality): Ditto.
1841 (dot_endp): Generate unwind table entry only if there is
1842 some unwind info or the unwind entry was forced.
1844 * config/tc-ia64.c (make_unw_section_name): New macro to form
1845 unwind section name.
1846 (generate_unwind_image): Add "text_name" argument. Use it to
1847 form unwind section name.
1848 (dot_handlerdata): Determine current segment (section) name and
1849 pass it to generate_unwind_image().
1850 (dot_endp): Determine current segment (section) name and use
1851 it to determine the appropriate unwind section name.
1852 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
1853 n, fill, and max arguments.
1855 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
1857 * Makefile.am: Add linux target for S/390.
1858 * configure.in: Likewise.
1859 * config/tc-s390.c: New file.
1860 * config/tc-s390.h: New file.
1862 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1864 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
1865 2byte, 4byte and 8byte.
1867 2001-02-08 Alan Modra <alan@linuxcare.com.au>
1869 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
1870 md_number_to_chars with size > sizeof (valueT).
1872 2001-02-06 H.J. Lu <hjl@gnu.org>
1874 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
1875 there is no relocation.
1877 2001-02-06 H.J. Lu <hjl@gnu.org>
1879 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
1881 * config/tc-ia64.c (md_parse_option): Only accept the valid
1882 ia64 options on "-axxx".
1884 2001-02-05 Jim Wilson <wilson@redhat.com>
1886 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
1887 aborting for invalid operands.
1889 2001-02-06 Alan Modra <alan@linuxcare.com.au>
1891 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
1892 than via pointer. Update all callers.
1893 (UNWIND_LOW32): Define.
1894 (UNWIND_HIGH32): Define.
1895 (pa_build_unwind_subspace): Use the above macros instead of dumping
1896 bitfields directly. Call frag_more once rather than multiple times.
1897 (md_assemble): Use UNWIND_LOW32.
1898 (pa_entry): Likewise
1899 (pa_procend): Likewise.
1900 (process_exit): Use UNWIND_HIGH32.
1902 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1904 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
1905 function to select the header according to the cpu.
1906 (md_after_pass_hook, md_do_align): Remove.
1907 (md_cleanup, m68hc11_cleanup): Remove.
1908 (md_pcrel_from_section): Declare.
1909 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
1910 (build_jump_insn, build_insn): Likewise.
1911 (m68hc11_listing_header): New function.
1912 (m68hc11_cleanup): Remove.
1914 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1916 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
1917 symbols because there is no support for shared libraries and these
1918 symbols can't be overridden (unless they are weak).
1920 2001-02-01 Momchil Velikov <velco@fadata.bg>
1922 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
1923 for the compilation unit with a zero byte.
1925 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1927 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
1928 destinations. Correct range check for 17 and 22 bit branches.
1930 2001-01-25 Nick Clifton <nickc@redhat.com>
1932 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
1933 still set. Issue an error message instead.
1934 (md_estimate_size_before_relax): Delete unused variable
1935 'buffer_address'. Fixup parentheses around if statement.
1937 2001-01-23 Kazu Hirata <kazu@hxi.com>
1939 * as.c: Fix formatting.
1940 * ehopt.c: Likewise.
1941 * messages.c: Likewise.
1942 * stabs.c: Likewise.
1943 * symbols.c: Likewise.
1945 2001-01-23 Ben Elliston <bje@redhat.com>
1947 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
1949 2001-01-22 Kazu Hirata <kazu@hxi.com>
1951 * config/tc-alpha.c: Fix formatting.
1953 2001-01-19 Kazu Hirata <kazu@hxi.com>
1955 * config/tc-alpha.c: Fix formatting.
1957 2001-01-18 Kazu Hirata <kazu@hxi.com>
1959 * config/tc-alpha.c: Fix formatting.
1961 2001-01-18 Nick Clifton <nickc@redhat.com>
1963 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
1965 (stm_flags): Remove redundant bit from "ed" and "da" flags.
1967 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
1969 * configure.in (cpu_type, arch): Match i386 too.
1970 * configure: Rebuilt.
1972 2001-01-16 Kazu Hirata <kazu@hxi.com>
1974 * config/tc-i386.c: Fix formatting.
1976 2001-01-16 Alan Modra <alan@linuxcare.com.au>
1978 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
1979 relocs for .PARISC.unwind section.
1981 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
1982 depending on section flags, not just for .text.
1984 2001-01-15 Jim Wilson <wilson@redhat.com>
1986 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
1987 not immediately followed by an instruction.
1989 2001-01-15 Kazu Hirata <kazu@hxi.com>
1991 * config/tc-m68hc11.c: Fix formatting.
1993 2001-01-15 Nick Clifton <nickc@redhat.com>
1995 * symbols.c (colon): Change 'already defined symbol' from a
1996 fatal error to an ordinary error. There is no reason why this
1997 error should be fatal.
1999 * message.c (as_fatal): Delete output file, if one has been
2002 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2004 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
2006 2001-01-14 Kazu Hirata <kazu@hxi.com>
2008 * config/tc-alpha.c: Fix formatting.
2009 * config/tc-arc.c: Likewise.
2010 * config/tc-arc.h: Likewise.
2011 * config/tc-d10v.c: Likewise.
2012 * config/tc-i370.c: Likewise.
2013 * config/tc-i386.c: Likewise.
2014 * config/tc-i960.c: Likewise.
2015 * config/tc-m68k.c: Likewise.
2016 * config/tc-ppc.c: Likewise.
2017 * config/tc-sparc.c: Likewise.
2018 * config/tc-tahoe.c: Likewise.
2019 * config/tc-vax.c: Likewise.
2021 * config/tc-arc.c: Fix formatting.
2023 * config/tc-arc.c: Fix formatting.
2025 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2027 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
2028 both 32 and 64 bit ELF.
2030 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
2031 and don't bother storing `m' for "ce" completer. Tidy handling of
2032 'J' and 'K' operands to suit. Handle '<' and '>' operands.
2034 Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
2036 * config/tc-i386.h (TARGET_MACH): New macro.
2037 (i386_mach): Declare.
2038 * config/tc-i386.c (i386_mach): New function.
2040 2001-01-13 Philip Blundell <philb@gnu.org>
2042 * doc/as.texinfo: Fix spelling and cross-references.
2044 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
2045 character for all systems, not just GNU/Linux. Make it explicit
2046 that `-k' doesn't affect code generation, just ELF flags.
2048 Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
2050 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
2053 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
2055 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
2057 2001-01-12 Nick Clifton <nickc@redhat.com>
2059 * as.c (print_args): Update copyright date to 2001.
2061 2001-01-12 Peter Targett <peter.targett@arccores.com>
2063 * doc/c-arc.texi: New file.
2064 Some sections to be expanded.
2066 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2068 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
2069 (md_parse_option): Always accept "--32".
2071 2001-01-11 Peter Targett <peter.targett@arccores.com>
2073 * as.h (TC_ARC): Ensure struc-symbol.h included.
2074 * as.c (dwarf2dbg.h): Include to remove implicit declaration
2076 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
2077 (TARGET_SYMBOL_FIELDS) added.
2079 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
2080 * doc/c-arc.texi: New file.
2081 Some sections to be expanded.
2082 * doc/as.texinfo: Update command-line options.
2083 Removed outdated text for ARC dependant features, instead include
2084 text from above file.
2086 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
2087 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
2088 (targ-cpu.h) header.
2090 * config/tc-arc.c: New updated configuration for
2091 ARC, including selection of core variants, and extensibility of
2092 instructions, registers etc. through directives.
2094 * config/tc-arc.c (arc_extinst): Minor corrections for
2096 (arc_common) Likewise. Make alignment argument optional for local
2097 symbols also, with default of zero.
2099 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2101 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
2102 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
2103 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
2104 and fix_new_exp() instead.
2105 (md_convert_frag): For indexed post byte use the symbol value
2106 rather than the displacement.
2107 (md_relax_table): Fix indexed offset relax.
2109 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2111 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
2113 (relaxable_symbol): New function.
2115 2001-01-11 Andreas Jaeger <aj@suse.de>
2117 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
2120 2001-01-10 Nick Clifton <nickc@redhat.com>
2122 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
2123 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
2125 2001-01-10 Nick Clifton <nickc@redhat.com>
2127 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
2128 character used to dollar local symbols.
2129 (LOCAL_LABEL_CHAR): New constant - the magic character used to
2130 local label symbols.
2131 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
2132 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
2134 Use LOCAL_LABEL_CHAR.
2135 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
2136 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
2137 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
2139 2001-01-08 Bo Thorsen <bo@suse.de>
2141 * config/tc-i386.c (i386_immediate, i386_displacement):
2144 2001-01-07 Ian Lance Taylor <ian@zembu.com>
2146 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
2149 2001-01-07 Philip Blundell <philb@gnu.org>
2151 * doc/as.texinfo (Bug Reporting): Update email address for
2155 Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
2157 * configure.in: Define DEFAULT_ARCH for i386.
2158 * config/tc-i386.c (md_assemble): Return after the error message;
2159 move testing for 64bit operands to proper place.
2161 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
2163 * doc/as.texinfo: Document '#' as comment character for i386 and
2164 x86_64. Add AMD x86-64 into menu of machine dependent information.
2166 * doc/c-i386.texi: Document x86_64 extensions.
2168 Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
2170 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
2172 Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
2174 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
2175 * NEWS: Add note about Pentium4 support.
2177 Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
2179 * config/tc-i387.c (pi, pte, pt): Update.
2180 (type_names): Add new types.
2182 Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
2184 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
2185 CpuUnknown): Renumber
2186 (CpuP4, CpuSSE2): New.
2187 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
2189 2001-01-03 Philip Blundell <pb@futuretv.com>
2191 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
2193 (alpha_fix_adjustable): Likewise.
2194 (md_apply_fix): Likewise.
2196 2000-12-31 H.J. Lu <hjl@gnu.org>
2198 * listing.c (listing_message): Allocate string only if it is
2201 * configure: Rebuild.
2203 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
2205 * doc/internals.texi (Relaxing with a table) <after relaxation>:
2206 Point out caveats with generating fixups for the opcode in a frag.
2208 Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
2210 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
2213 2000-12-29 H.J. Lu <hjl@gnu.org>
2215 * listing.c (calc_hex): Print the variable part only if the
2216 fragment type is rs_fill.
2218 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2220 * doc/internals.texi (tc_conditional_pseudoop,
2221 TC_LINKRELAX_FIXUP): Fix typos.
2223 2000-12-28 Richard Henderson <rth@redhat.com>
2225 * write.c (subsegs_finish): Fix thinko last change -- don't
2226 "optimize" the alignment == 0 case.
2228 2000-12-28 Richard Henderson <rth@redhat.com>
2230 * as.h (rs_align_test): New.
2231 * frags.c (NOP_OPCODE): Move default from read.c.
2232 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
2233 (frag_align_code): New.
2234 * frags.h (frag_align_code): Declare.
2235 * read.c (NOP_OPCODE): Remove.
2236 (do_align): Use frag_align_code.
2237 * write.c (NOP_OPCODE): Remove.
2238 (get_recorded_alignment): New.
2239 (cvt_frag_to_fill): Handle rs_align_test.
2240 (relax_segment): Likewise.
2241 (subsegs_finish): Align last subseg in section to the
2242 section alignment. Use frag_align_code.
2243 * write.h (get_recorded_alignment): Declare.
2244 * config/obj-coff.c (size_section): Handle rs_align_test.
2245 (fill_section, fixup_mdeps): Likewise.
2246 (write_object_file): Use frag_align_code.
2248 * config/tc-alpha.c (alpha_align): Use frag_align_code.
2249 (alpha_handle_align): New.
2250 * config/tc-alpha.h (HANDLE_ALIGN): New.
2251 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2253 * config/tc-i386.h (md_do_align): Use frag_align_code.
2254 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2256 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
2257 (ia64_handle_align): New.
2258 * config/tc-ia64.h (HANDLE_ALIGN): New.
2259 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2261 * config/tc-m32r.c (m32r_do_align): Remove.
2262 (m32r_handle_align): New.
2263 (fill_insn): Use frag_align_code.
2264 * config/tc-m32r.h (md_do_align): Remove.
2265 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
2266 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
2267 * config/tc-mips.c, config/tc-mips.h: Similarly.
2269 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
2270 (sh_handle_align): Likewise. Handle rs_align_code.
2271 (sh_do_align): Remove.
2272 * config/tc-sh.h (md_do_align): Remove.
2273 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2275 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
2276 (sparc_handle_align): Likewise. Handle rs_align_code.
2277 * config/tc-sparc.h (md_do_align): Remove.
2278 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2280 2000-12-22 DJ Delorie <dj@redhat.com>
2282 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
2283 when we assemble the first half of a pair.
2285 2000-12-22 H.J. Lu <hjl@gnu.org>
2287 * config/tc-i386.c (reloc): Update the macro for non-bfd
2289 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
2291 2000-12-22 H.J. Lu <hjl@gnu.org>
2293 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
2295 Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
2297 * config/tc-i386.h (i386_target_format): Define even for ELFs.
2298 (QWORD_MNEM_SUFFIX): New macro.
2299 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
2301 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
2302 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
2304 (Size64, No_qSuf, NoRex64, Rex64): New macros.
2305 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
2306 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
2307 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
2308 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
2310 (Reg, WordReg): Add Reg64.
2311 (Imm): Add Imm32S and Imm64.
2313 (Disp): Add Disp64 and Disp32S.
2314 (AnyMem): Add Disp32S.
2315 (RegRex, RegRex64): New macros.
2316 (rex_byte): New type.
2317 * config/tc-i386.c (set_16bit_code_flag): Kill.
2318 (fits_in_unsigned_long, fits_in_signed_long): New functions.
2319 (reloc): New parameter "signed"; support x86_64.
2320 (set_code_flag): New.
2321 (DEFAULT_ARCH): New macro; default to "i386".
2322 (default_arch): New static variable.
2323 (struct _i386_insn): New fields Operand_PCrel; rex.
2324 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
2325 (flag_code): New enum and static variable.
2326 (use_rela_relocations): New static variable.
2327 (flag_code_names): New static variable.
2328 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
2329 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
2331 (i386_align_code): Return plain "nop" for x86_64.
2332 (mode_from_disp_size): Support Disp32S.
2333 (smallest_imm_type): Support Imm32S and Imm64.
2334 (offset_in_range): Support size of 8.
2335 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
2336 (md_pseudo_table): Add "code64"; use set_code_flat.
2337 (md_begin): Emit sane error message on hash failure.
2338 (tc_i386_fix_adjustable): Support x86_64 relocations.
2339 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
2340 instructions supported on particular arch just partially,
2341 output of 64bit immediates, handling of Imm32S and Disp32S type.
2342 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
2343 (i386_displacement): Likewise.
2344 (i386_index_check): Cleanup; support 64bit addresses.
2345 (md_apply_fix3): Support x86_64 relocation and rela.
2346 (md_longopts): Add "32" and "64".
2347 (md_parse_option): Add OPTION_32 and OPTION_64.
2348 (i386_target_format): Call even for ELFs; choose between
2349 elf64-x86-64 and elf32-i386.
2350 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
2351 (tc_gen_reloc): Support rela relocations and x86_64.
2352 (intel_e09_1): Support QWORD.
2354 2000-12-15 Diego Novillo <dnovillo@redhat.com>
2356 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
2357 it's not an offset expression.
2358 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
2359 keep the braces '[' and ']' in the output string.
2360 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
2361 != FLAT. There is no such op_modifier.
2363 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2365 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
2368 2000-12-13 Kazu Hirata <kazu@hxi.com>
2370 * as.h: Fix formatting.
2372 * dwarf2dbg.c: Likewise.
2373 * input-scrub.c: Likewise.
2376 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
2378 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
2379 configure: Regenerate.
2381 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2383 * dwarf2dbg.c: #include <limits.h> only if it exists.
2385 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
2387 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
2388 (md_apply_fix): Here too.
2390 2000-12-12 Jim Wilson <wilson@redhat.com>
2392 * config/tc-ia64.h (ia64_init): Add prototype.
2394 2000-12-12 H.J. Lu <hjl@gnu.org>
2396 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
2398 * read.h (outputting_stabs_line_debug): Change it to int.
2399 * stabs.c (outputting_stabs_line_debug): Likewise.
2401 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2403 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
2404 the address of a function result.
2406 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2408 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
2409 (md_assemble): Call dwarf2_emit_insn.
2410 (shlib): Fix typo SHILB -> SHLIB.
2411 (md_parse_option): Likewise.
2412 (ppc_elf_validate_fix): Likewise:
2413 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2415 2000-12-12 Nick Clifton <nickc@redhat.com>
2417 * cgen.h: Fix formatting.
2418 * input-scrub.c: Fix formatting.
2419 * macro.c: Fix formatting.
2420 * config/tc-mips.c: Fix formatting.
2421 * doc/c-mips.texi: Fix formatting.
2423 Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
2425 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
2426 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
2428 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
2430 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
2433 * i386.h (*_Suf): Remove No_dSuf.
2434 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
2436 (i386_optab): Remove 'd' in the suffixes.
2438 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2440 * config/tc-i386.c (T_SHORT): Undefine before defining.
2442 2000-12-05 Kazu Hirata <kazu@hxi.com>
2444 * config/tc-mips.c: Fix formatting.
2446 2000-12-04 Matthew Hiller <hiller@redhat.com>
2448 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
2449 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
2450 (md_show_usage): Ditto.
2451 (md_parse_option): Ditto.
2452 (d10v_cleanup): Writes pending instruction only if
2453 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
2454 Fix compile time warning messages.
2456 * doc/c-d10v.texi: Documents new options.
2458 2000-12-04 Matthew Hiller <hiller@redhat.com>
2460 * stabs.c (outputting_stabs_line_debug): New variable.
2461 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
2462 function entry and unset at function exit.
2464 * read.h (outputting_stabs_line_debug): New extern declaration.
2466 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
2468 * dwarf2dbg.c: Fix compile time warning messages.
2470 2000-12-03 Kazu Hirata <kazu@hxi.com>
2472 * config/tc-a29k.c: Fix formatting.
2473 * config/tc-alpha.c: Likewise.
2474 * config/tc-arm.c: Likewise.
2475 * config/tc-cris.c: Likewise.
2476 * config/tc-hppa.c: Likewise.
2477 * config/tc-i370.c: Likewise.
2478 * config/tc-i386.c: Likewise.
2479 * config/tc-i860.c: Likewise.
2480 * config/tc-i960.c: Likewise.
2481 * config/tc-ia64.c: Likewise.
2482 * config/tc-m68hc11.c: Likewise.
2483 * config/tc-m68k.c: Likewise.
2484 * config/tc-m88k.c: Likewise.
2485 * config/tc-pj.c: Likewise.
2486 * config/tc-ppc.c: Likewise.
2487 * config/tc-sh.c: Likewise.
2488 * config/tc-sparc.c: Likewise.
2489 * config/tc-tahoe.c: Likewise.
2490 * config/tc-vax.c: Likewise.
2492 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2494 * config/tc-mips.c (mips_ip): When calculating offsets,
2495 don't accept as constant the difference between the
2496 addresses of symbols in two different sections.
2498 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
2500 (validate_mips_insn): Likewise. Also, update 'B' operand
2501 specifier to use OP_*_CODE20 constants and delete 'm' operand
2503 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
2504 operand specifiers. Change warning generated by 'B' operand
2505 specifier to reflect its new multi-purpose usage.
2507 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
2508 -1, and update comment.
2509 (file_mips_isa): Likewise.
2510 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
2511 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
2512 ISA_* constants rather than hard-coded numbers.
2513 (mips_cpu_info): New structure.
2514 (mips_cpu_info_table): New table describing CPU and ISA names
2516 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
2517 mips_cpu_info_from_cpu): New functions.
2518 (mips_isa_to_str): New function to get string for ISA name.
2519 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
2520 return const char *.
2521 (md_begin): Redo CPU and ISA selection logic, using
2522 mips_cpu_info_from_*. Convert to use ISA_* constants rather
2523 than hard-coded numbers.
2524 (append_insn, mips_emit_delays, macro, macro2): Convert to use
2525 ISA_* constants rather than hard-coded numbers.
2526 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
2527 (md_longopts): Delete OPTION_NO_MIPS32.
2528 (md_parse_option): Convert to use ISA_* constants rather than
2529 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
2530 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
2531 to use strcasecmp to recognize "default" and to use
2532 mips_cpu_info_from_name to get CPU numbers from argument.
2533 (md_show_usage): Move -mips32 so it's with the rest of the ISA
2534 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
2536 (s_mipsset): Accept ISA value 32.
2537 * doc/as.texinfo: Clean up MIPS options summary slightly,
2538 remove -no-mips32. Add note about -mips4 and -mips32
2539 specifying those ISA levels. Delete -mips32 and -no-mips32
2540 cpu flag descriptions.
2541 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
2542 up the supported CPU switch list, and replace 4Kc, 4Km, and
2543 4Kp entries with a single mips32-4k entry. Note that you can
2546 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
2548 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
2550 (md_parse_option): Add cases for OPTION_MIPS5 and
2552 (md_show_usage): Mention -mips5 and -mips64 arguments.
2553 (s_mipsset): Add cases for MIPS5 and MIPS64.
2554 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
2556 * doc/as.texinfo: Mention -mips5 and -mips64 options
2558 * doc/c-mips.texi: Likewise. Also update introduction
2559 and ".set" usage information.
2561 * config/tc-mips.c (md_show_usage): Add "sb1" to the
2563 (mips_cpu_info_table): Add SB-1 entries.
2564 * doc/c-mips.texi: Add "sb1" to the list of CPUs
2565 known to the -mcpu option.
2567 * doc/as.texinfo: Correct description of MIPS -mcpu
2568 option, by copying some of the text from doc/c-mips.texi.
2570 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2572 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2574 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2575 (sparc*-*-rtems*): Switched from a.out to ELF.
2576 * configure: Regenerate.
2577 * config.in: Regenerate.
2578 * Makefile.in: Regenerate.
2579 * aclocal.m4: Regenerate.
2580 * po/gas.pot: Regenerate.
2582 2000-11-30 Philip Blundell <pb@futuretv.com>
2584 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
2585 even in non BFD_ASSEMBLER case.
2587 2000-11-30 Diego Novillo <dnovillo@redhat.com>
2589 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
2592 2000-11-29 Richard Henderson <rth@redhat.com>
2594 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
2595 until dwarf2_finish; use relaxation to get cross-fragment offsets;
2596 thread multiple subsegments properly; handle multiple code
2597 sections properly; emit proper compilation unit info for assembler
2598 generated debugging.
2600 * as.h (enum _relax_state): Add rs_dwarf2dbg.
2601 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
2602 (dwarf2dbg_estimate_size_before_relax): Declare.
2603 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
2604 * write.c: Include dwarf2dbg.h.
2605 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
2606 (relax_segment): Likewise.
2608 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
2610 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
2611 jump>: Use as_bad_where instead of as_bad. Tweak error message
2612 accordingly. Stabilize frag by updating fix part and resetting
2614 <undefined symbol, unconditional jump>: Ditto.
2615 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
2616 indexing is_end_of_line[].
2617 (md_assemble): Initialize size to 0.
2618 (md_section_align): Mark parameter seg as unused.
2619 (parse_reg): Parse names case-insensitively.
2621 2000-11-28 Kazu Hirata <kazu@hxi.com>
2623 * config/obj-aout.h: Fix formatting.
2624 * config/obj-bout.h: Likewise.
2625 * config/obj-coff.c: Likewise.
2626 * config/obj-coff.h: Likewise.
2627 * config/obj-elf.h: Likewise.
2628 * config/obj-som.h: Likewise.
2629 * config/obj-vms.c: Likewise.
2630 * config/obj-vms.h: Likewise.
2631 * config/tc-h8300.h: Likewise.
2632 * config/tc-ns32k.h: Likewise.
2633 * config/tc-sparc.h: Likewise.
2634 * config/tc-tic54x.h: Likewise.
2635 * config/tc-z8k.h: Likewise.
2637 2000-11-28 Nick Clifton <nickc@redhat.com>
2639 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
2640 License is present in the sources, but not the output, and
2641 also available from the GNU website.
2642 (GNU Free Documentation License): Comment out this section.
2644 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
2646 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
2647 targets. Remove i860 from valid a.out targets.
2648 * Makefile.in: Regenerate.
2650 * config/tc-cris.c: Include dwarf2dbg.h.
2651 (md_pseudo_table): Add .file and .loc.
2652 (md_assemble): Call dwarf2_emit_insn if generating ELF.
2653 (s_cris_file, s_cris_loc): New.
2654 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2655 * Makefile.am: Regenerate dependencies.
2656 * Makefile.in: Regenerate.
2658 2000-11-28 Alan Modra <alan@linuxcare.com.au>
2660 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
2661 (MRI_MUL_PRECEDENCE): Likewise.
2662 (op_rank): Fix a comment typo.
2664 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2666 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
2668 (get_operand): Fix analysis for movw/movb instructions.
2670 2000-11-24 Nick Clifton <nickc@redhat.com>
2672 * configure.in (xscale-elf): Add target.
2673 (xscale-coff): Add target.
2674 * configure: Regenerate.
2676 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
2678 (ARM_EXT_XSCALE): New ARM architecture extension.
2679 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
2680 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
2681 (ARM_THUMB): Rename to ARM_EXT_THUMB.
2682 (ARM_ARCH_V4): Remove processor from architecture.
2683 (ARM_ARCH_3M): New architecutre definition.
2684 (ARM_ARCH_V5TE): New architecutre definition.
2685 (ARM_ARCH_XSCALE): New architecutre definition.
2686 (CPU_DEFAULT): Allow to be defaulted to XScale.
2687 (atpcs): New boolean variable.
2688 (ldr_flags): Support 'd' flag for double word loads.
2689 (str_flags): Support 'd' flag for double word stored.
2690 (do_mia): New function.
2691 (do_mar): New function.
2692 (do_mra): New function.
2693 (do_pld): New function.
2694 (do_ldrd): New function.
2695 (do_blx): New function.
2696 (do_bkpt): New function.
2697 (do_clz): New function.
2698 (do_lstc2): New function.
2699 (do_cdp2): New function.
2700 (do_t_blx): New function.
2701 (do_t_bkpt): New function.
2702 (do_smla): New function.
2703 (do_smlal): New function.
2704 (do_smul): New function.
2705 (do_qadd): New function.
2706 (do_co_reg2c): New function.
2707 (LONGEST_INSN): Redefine to 7.
2709 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
2710 command line switches.
2712 2000-11-22 Jim Wilson <wilson@redhat.com>
2714 * config/tc-ia64.c (pseudo_func): Add missing initializers.
2715 (struct rsrc): Make line unsigned.
2716 (gr_values): Add missing initializer.
2717 (SLOT_NUM_NOT_SET): Add unsigned cast.
2718 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
2719 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
2720 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
2721 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
2722 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
2723 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
2724 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
2725 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
2726 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
2727 Add ATTRIBUTE_UNUSED to unused parameters.
2728 (convert_expr_to_ab_reg): Add parens.
2729 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
2730 (dot_prologue): Initialize grsave when declared.
2731 (md_pseudo_table): Add missing initializers.
2732 (operand_match): Add casts to bfd_vma.
2733 (emit_one_bundle): Delete unused local prev. Make required_template
2735 (specify_resource): Cast i to unsigned.
2736 (note_register_values): Use fprintf_vma.
2737 (print_dependency): Likewise.
2739 2000-11-21 Jim Wilson <wilson@redhat.com>
2741 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
2742 for unwind info section.
2743 (dot_endp): Likewise for unwind section.
2745 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
2748 2000-11-21 Jakub Jelinek <jakub@redhat.com>
2750 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
2751 (output_insn): Call dwarf2_emit_insn.
2752 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2754 2000-11-17 Richard Henderson <rth@redhat.com>
2756 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
2757 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
2758 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
2760 2000-11-17 Nick Clifton <nickc@redhat.com>
2762 * config/tc-arm.c (md_pseudo_table): Add support for .line and
2765 2000-11-17 Richard Henderson <rth@redhat.com>
2767 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
2769 2000-11-17 Richard Henderson <rth@redhat.com>
2771 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
2772 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
2773 tri-state definition of alpha_flag_mdebug.
2774 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
2775 (s_alpha_file): Store first .file directive.
2776 (s_alpha_stab): New.
2777 (md_pseudo_table): Add stabs and stabn.
2779 2000-11-17 Richard Henderson <rth@redhat.com>
2781 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
2783 2000-11-17 Richard Henderson <rth@redhat.com>
2785 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
2786 (main): Call dwarf2_finish.
2787 * as.h (debug_type): Clarify documentation of the meaning
2789 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
2790 (print_stats): Fix parenthesis problem.
2791 (now_subseg_size): New.
2792 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
2793 (dwarf2_directive_file): Don't set debug_type.
2794 (dwarf2_where): Honor DEBUG_DWARF2 first.
2795 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
2796 do nothing if not emitting dwarf2 debug info, or no work.
2797 * dwarf2dbg.h (dwarf2_emit_insn): Update.
2798 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
2799 (ecoff_new_file): Likewise.
2800 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
2801 commentary wrt dwarf2.
2803 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
2804 ATTRIBUTE_UNUSED as needed.
2805 (emit_insn): Call dwarf2_emit_insn.
2806 (s_alpha_file): New.
2808 (s_alpha_coff_wrapper): Don't handle them.
2809 (md_pseudo_table): Update for .file and .loc.
2810 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2812 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
2813 don't protect with debug_type.
2814 * config/tc-hppa.c (md_assemble): Likewise.
2815 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
2816 * config/tc-mn10300.c (md_assemble): Likewise.
2817 * config/tc-sh.c (md_assemble): Likewise.
2818 * config/tc-v850.c (md_assemble): Likewise.
2820 * config/tc-arm.c (arm_end_of_source): Remove.
2821 * config/tc-hppa.c (pa_end_of_source): Remove.
2822 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
2823 * config/tc-mn10300.c (mn10300_finalize): Remove.
2824 * config/tc-sh.c (sh_finalize): Remove.
2825 * config/tc-v850.c (sh_finalize): Remove.
2827 * config/tc-arm.h (md_end): Remove.
2828 * config/tc-hppa.h (md_end): Remove.
2829 (DWARF2_LINE_MIN_INSN_LENGTH): New.
2830 * config/tc-m68hc11.h (md_end): Remove.
2831 * config/tc-mn10300.h (md_end): Remove.
2832 * config/tc-sh.h (md_end): Remove.
2833 * config/tc-v850.h (md_end): Remove.
2835 * config/tc-ia64.c (emit_one_bundle): Don't protect
2836 dwarf2 bits with debug_type.
2837 (md_assemble): Likewise.
2838 (ia64_end_of_source): Don't call dwarf2_finish.
2840 2000-11-16 Jim Wilson <wilson@redhat.com>
2842 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
2843 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
2846 2000-11-16 H.J. Lu <hjl@gnu.org>
2848 * config/obj-elf.c (obj_elf_symver): Don't check the missing
2851 2000-11-15 Kazu Hirata <kazu@hxi.com>
2853 * config/tc-tic30.c: Fix formatting.
2854 * config/tc-tic80.c: Likewise.
2855 * config/tc-v850.c: Likewise.
2856 * config/tc-vax.c: Likewise.
2857 * config/tc-w65.c: Likewise.
2858 * config/tc-z8k.c: Likewise.
2860 2000-11-14 DJ Delorie <dj@redhat.com>
2862 * config/tc-v850.c: Support dwarf2.
2863 * config/tc-v850.h: Ditto.
2865 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
2866 parse_cons_expression_v850 to initialize hold_cons_reloc.
2868 2000-11-15 Bernd Schmidt <bernds@redhat.com>
2870 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
2871 (errata_nops_necessary_p): New function.
2872 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
2875 2000-11-14 Jim Wilson <wilson@redhat.com>
2877 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
2878 return little endian bfd formats.
2880 2000-11-14 Kazu Hirata <kazu@hxi.com>
2882 * config/aout_gnu.h: Fix formatting.
2883 * config/atof-vax.c: Likewise.
2884 * config/m68k-parse.h: Likewise.
2885 * config/m88k-opcode.h: Likewise.
2886 * config/obj-elf.c: Likewise.
2887 * config/tc-arm.c: Likewise.
2888 * config/tc-cris.c: Likewise.
2889 * config/tc-i386.c: Likewise.
2890 * config/tc-ia64.c: Likewise.
2891 * config/tc-mn10300.c: Likewise.
2892 * config/te-386bsd.h: Likewise.
2893 * config/te-hppa.h: Likewise.
2894 * config/te-nbsd.h: Likewise.
2895 * config/te-ppcnw.h: Likewise.
2896 * config/te-sparcaout.h: Likewise.
2897 * config/te-tmips.h: Likewise.
2898 * config/vax-inst.h: Likewise.
2899 * config/vms-conf.h: Likewise.
2901 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2903 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
2905 2000-11-13 H.J. Lu <hjl@gnu.org>
2907 * config/obj-elf.c (elf_frob_symbol): Support
2908 ".symver name,name2@@@nodename".
2909 (elf_frob_file_before_adjust): Likewise.
2911 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
2912 and ".symver name,name2@@@nodename".
2915 2000-11-12 H.J. Lu (hjl@gnu.org)
2917 * config/obj-elf.c (obj_elf_symver): Check missing version
2920 2000-11-12 H.J. Lu (hjl@gnu.org)
2922 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
2923 instead of bfd_vma for non-bfd assemblers.
2925 2000-11-09 Kazu Hirata <kazu@hxi.com>
2927 * itbl-ops.c: Fix comment typos.
2929 2000-11-08 Jim Wilson <wilson@redhat.com>
2931 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
2932 (struct unwind): Add next_slot_frag field.
2933 (slot_index): New parameters slot_frag and first_frag. Add code
2934 to add in frag sizes when different. Add comments.
2935 (fixup_unw_records): New locals first_frag and last_frag. Pass new
2936 arguments to slot_index.
2937 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
2938 loop end. Set next_slot_frag field.
2940 2000-11-07 H.J. Lu <hjl@gnu.org>
2942 * doc/as.texinfo (.symver): Updated for versioned symbol
2945 * obj.h (format_ops): Add the frob_file_before_adjust field.
2947 * config/obj-aout.c (aout_format_ops): Set the
2948 frob_file_before_adjust field to 0.
2949 * config/obj-coff.c (coff_format_ops): Likewise.
2950 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
2952 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
2954 (elf_frob_file_before_adjust): New function to remove unneeded
2955 versioned symbols from the symbol table.
2956 (elf_format_ops): Set the frob_file_before_adjust field to
2957 elf_frob_file_before_adjust.
2959 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
2962 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
2964 2000-11-07 Peter Targett <peter.targett@arccores.com>
2966 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
2968 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
2969 Fix compile time warning messages.
2971 2000-11-07 Nick Clifton <nickc@redhat.com>
2973 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
2974 buffer in order to avoid buffer overflows.
2976 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2978 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
2979 Change M to m for -milp32 or -mlp64 to match gcc.
2980 (dot_endp): Use bytes_per_address instead of 8.
2981 (emit_one_bundle): Use number_to_chars_littleendian instead of
2983 (fix_insn): Likewise.
2984 (ia64_init): New function.
2985 (ia64_target_format): New function.
2986 (md_begin): Set endianness, arch, and machine as appropriate.
2987 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
2988 Make these macros depend on TE_HPUX macro.
2989 (TARGET_FORMAT): Define.
2990 (HOST_SPECIAL_INIT): Define.
2991 * config/te-hpux.h: New file.
2992 * configure.in: Add "ia64-*-hpux*" target to configure.
2993 * configure: Regenerate.
2995 2000-11-06 Kazu Hirata <kazu@hxi.com>
2997 * as.c: Fix formatting.
2998 * dwarf2dbg.c: Likewise.
2999 * input-file.c: Likewise.
3000 * input-file.h: Likewise.
3001 * input-scrub.c: Likewise.
3002 * itbl-ops.c: Likewise.
3003 * listing.c: Likewise.
3004 * macro.h: Likewise.
3005 * messages.c: Likewise.
3007 * subsegs.c: Likewise.
3008 * subsegs.h: Likewise.
3009 * write.c: Likewise.
3011 2000-11-06 Nick Clifton <nickc@redhat.com>
3013 * doc/as.texinfo: Add GNU Free Documentation License.
3014 * doc/gasp.texi: Add GNU Free Documentation License.
3015 * doc/as.1: Add GNU Free Documentation License.
3017 2000-11-05 Nick Clifton <nickc@redhat.com>
3019 * config/tc-arm.c: Add include of "dwarf2dbg.h"
3021 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3023 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
3024 * configure: Regenerate.
3026 2000-11-01 Nick Clifton <nickc@redhat.com>
3028 * read.c (original_case_string): New global variable.
3029 (read_a_source_file): Copy opcode string into
3030 original_case_string if clobbering the case of the opcode.
3031 * read.h: Export the definition of original_case_string.
3032 * config/tc-arm.c (md_assembler): When parsing a .req
3033 directive use the original opcode string, not the case
3036 2000-11-02 Nick Clifton <nickc@redhat.com>
3038 * config/tc-mn10300.c (debug_line): Remove this static
3040 (md_assemble): Call dwarf2_generate_asm_lineno instead of
3041 dwarf2_where and dwarf2_gen_line_info.
3043 2000-11-02 Theo Honohan <th@futuretv.com>
3045 * config/tc-arm.c (do_msr): Improve error message.
3047 2000-10-31 Eric Christopher <echristo@redhat.com>
3049 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
3050 or pc-relative, else use fx_offset.
3052 2000-10-31 Jim Wilson <wilson@redhat.com>
3054 * config/tc-ia64.c (struct md): New field tag_fixups.
3055 (ia64_flush_insns): Handle tag_fixups. Error if dangling
3056 qualifying predicate.
3057 (emit_one_bundle): Delete spurious multiplication by one. Handle
3059 (ia64_start_line): Error if dangling qualifying predicate.
3060 (defining_tag): New static variable.
3061 (ia64_unrecognized_line, case '['): Parse tags.
3062 (ia64_frob_label): Create tag_fixups.
3063 (md_assemble): Reset md.qp.X_op after using it.
3065 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3067 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
3069 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
3071 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
3073 2000-10-30 Kazu Hirata <kazu@hxi.com>
3075 * expr.c: Fix formatting.
3076 * flonum-copy.c: Likewise.
3077 * flonum.h: Likewise.
3081 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3083 * as.h (OPTION_MD_BASE): Bump to 190.
3084 * as.c (parse_args) <std_longopts>: Add comment about the need to
3085 check OPTION_MD_BASE in as.h.
3087 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
3090 2000-10-27 Nick Clifton <nickc@redhat.com>
3092 * configure.in (emulations): Add m68hc12.
3093 * configure: Regenerate.
3094 * po/gas.pot: Regenerate.
3096 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
3098 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
3100 (arm_psr_parse): Handle lowercase CPSR and SPSR.
3102 2000-10-25 Nick Clifton <nickc@redhat.com>
3104 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
3105 a DWARF2 line number information sequence.
3107 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
3109 * read.c (generate_lineno_debug): Update comment describing why
3110 DWARF2 line number debug information is not generated
3111 automatically by this function.
3113 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
3116 * config/tc-arm.h (md_end): Define.
3117 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3119 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
3120 if generating DWARF2 line numbers.
3121 (arm_end_of_source): New function. Call dwarf2_finish if
3124 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
3125 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
3126 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
3128 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
3130 * config/tc-i386.c: Fix prototype declarations for functions taking no
3133 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
3135 * config/tc-i386.c (i386_operand_modifier): Remove.
3136 (build_displacement_string): Remove.
3137 (i386_parse_seg): Remove.
3138 (i386_intel_memory_operand): Remove.
3139 (i386_intel_operand): Re-write using recursive descent parser based
3140 on MASM documentation.
3141 (struct intel_parser_s): New structure.
3142 (intel_parser): New static variable.
3143 (struct intel_token): New structure.
3144 (cur_token, prev_token): New static variables.
3157 (intel_match_token): New function.
3158 (intel_get_token): New function.
3159 (intel_putback_token): New function.
3160 (intel_expr): New function.
3161 (intel_e05): New function.
3162 (intel_e05_1): New function.
3163 (intel_e06): New function.
3164 (intel_e06_1): New function.
3165 (intel_e09): New function.
3166 (intel_e09_1): New function.
3167 (intel_e10): New function.
3168 (intel_e10_1): New function.
3169 (intel_e11): New function.
3171 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3173 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
3174 instructions to loose any special insn->architecture mask.
3176 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
3177 (sparc_md_end, sparc_arch_types, sparc_arch,
3178 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
3179 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
3180 request v9b architecture if they are used).
3182 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3184 * config/tc-m68k.c: Fix the previous misapplied patch.
3186 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3188 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
3189 BFD_ASSEMBLER and !BFD_ASSEMBLER.
3190 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
3193 2000-10-17 Kazu Hirata <kazu@hxi.com>
3195 * debug.c: Fix formatting.
3196 * depend.c: Likewise.
3197 * dwarf2dbg.c: Likewise.
3198 * dwarf2dbg.h: Likewise.
3199 * ecoff.c: Likewise.
3202 * flonum-konst.c: Likewise.
3203 * frags.h: Likewise.
3205 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3207 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
3209 * doc/as.texinfo: Added notes about this new option.
3211 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
3213 * config/tc-sh.c (JREG): Remove.
3214 (md_convert_frag): Remove #if 0:d code using JREG.
3216 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
3218 * config/tc-i386.c (i386_operand_modifier): Only match
3219 modifiers SHORT and FLAT if they are followed by a space.
3220 (parse_register): When `allow_naked_reg' is set, do not confuse
3221 identifiers that start with a register name with a register.
3223 2000-10-12 Kazu Hirata <kazu@hxi.com>
3225 * app.c: Fix formatting.
3228 * bit_fix.h: Likewise.
3233 2000-10-11 Alan Modra <alan@linuxcare.com.au>
3235 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
3237 2000-10-07 Alan Modra <alan@linuxcare.com.au>
3239 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
3240 Re-arrange function a little and improve error message.
3242 * write.c (write_relocs): Fix a comment.
3244 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
3247 2000-10-05 Jim Wilson <wilson@cygnus.com>
3249 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
3251 2000-10-05 Alan Modra <alan@linuxcare.com.au>
3253 * config/tc-i386.c: Delete some useless comments, reformat others.
3255 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
3256 non-global syms in linkonce sections.
3258 2000-10-04 Ralf Baechle <ralf@gnu.org>
3260 * config/tc-ia64.c (operand_match): Don't use // style comments.
3261 * config/tc-i370.c: Likewise.
3263 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3265 Changes to handle varying register prefix and user symbol prefix.
3266 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
3267 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
3268 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
3269 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
3270 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
3271 (demand_register_prefix): New variable.
3272 (md_pseudo_table): New pseudo ".syntax".
3273 (md_longopts): New options --no-underscore and --underscore.
3274 (cris_target_format): Return elf32-us-cris or elf32-cris depending
3275 on symbols_have_leading_underscore.
3276 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
3277 (get_spec_reg): Ditto.
3278 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
3280 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
3282 <case OPTION_NO_US, case OPTION_US>: New.
3283 (md_show_usage): Be brief and reformat to match continuation of
3285 * po/gas.pot: Regenerate.
3287 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3289 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
3290 force relocs for 12 bit branches.
3291 (md_apply_fix): Similarly, adjust logic here.
3293 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3295 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
3296 adjust for external and weak syms as we will use a reloc. Allow
3297 for +8 offset when calculating limits of branches.
3298 (hppa_fix_adjustable): Undo 2000-09-23 change.
3299 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
3300 Correct distance calculation.
3301 (tc_gen_reloc): Print the file name and line number if we can't
3304 From John David Anglin <dave@hiauly1.hia.nrc.ca>
3305 * config/tc-hppa.c (nonzero_dibits): Define.
3306 (arg_reloc_stub_needed): Check each arg and return value
3307 separately for zero case.
3308 (pa_align): Declare argument `bytes'.
3310 2000-09-25 Kazu Hirata <kazu@hxi.com>
3312 * config/tc-cris.c: Fix formatting.
3313 * config/tc-d10v.h: Likewise.
3314 * config/tc-d30v.c: Likewise.
3315 * config/tc-d30v.h: Likewise.
3316 * config/tc-fr30.c: Likewise.
3317 * config/tc-fr30.h: Likewise.
3318 * config/tc-m68k.c: Likewise.
3319 * config/tc-m68k.h: Likewise.
3320 * config/tc-pj.h: Likewise.
3321 * config/tc-ppc.c: Likewise.
3322 * config/tc-ppc.h: Likewise.
3323 * config/tc-sh.c: Likewise.
3324 * config/tc-sh.h: Likewise.
3325 * config/tc-sparc.c: Likewise.
3326 * config/tc-v850.h: Likewise.
3327 * config/tc-vax.h: Likewise.
3328 * config/tc-w65.h: Likewise.
3329 * config/tc-z8k.h: Likewise.
3331 2000-09-23 Alan Modra <alan@linuxcare.com.au>
3333 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
3334 checks only for ELF.
3335 (hppa_force_relocation): Likewise.
3337 2000-09-22 Jim Wilson <wilson@cygnus.com>
3339 * config/tc-ia64.c (dv_sem): Add "stop".
3340 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
3341 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
3342 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
3344 (mark_resources): Check IA64_RS_PRr.
3346 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3348 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
3349 md_estimate_size_before_relax): Redesign and clean up the
3350 relaxation mechanism.
3352 2000-09-21 Kazu Hirata <kazu@hxi.com>
3354 * config/tc-ns32k.c: Fix formatting.
3355 * config/tc-ns32k.h: Likewise.
3357 2000-09-20 Kazu Hirata <kazu@hxi.com>
3359 * config/tc-m32r.c: Fix formatting.
3360 * config/tc-m32r.h: Likewise.
3361 * config/tc-m68851.h: Likewise.
3362 * config/tc-m68hc11.c: Likewise.
3363 * config/tc-m68hc11.h: Likewise.
3364 * config/tc-m88k.c: Likewise.
3365 * config/tc-mcore.c: Likewise.
3366 * config/tc-mcore.h: Likewise.
3367 * config/tc-mips.c: Likewise.
3368 * config/tc-mips.h: Likewise.
3369 * config/tc-mn10200.h: Likewise.
3370 * config/tc-mn10300.h: Likewise.
3371 * config/tc-tahoe.c: Likewise.
3372 * config/tc-tahoe.h: Likewise.
3374 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3376 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
3377 Likewise in relaxation description comments.
3379 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3381 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
3382 subtraction of two syms without emitting a relocation.
3384 From David Huggins-Daines <dhd@linuxcare.com>
3385 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
3386 global or weak symbols.
3388 2000-09-15 Kazu Hirata <kazu@hxi.com>
3390 * config/tc-h8300.h: Fix formatting.
3391 * config/tc-h8500.c: Likewise.
3392 * config/tc-h8500.h: Likewise.
3393 * config/tc-hppa.h: Likewise.
3394 * config/tc-i370.h: Likewise.
3395 * config/tc-i386.h: Likewise.
3396 * config/tc-i860.c: Likewise.
3397 * config/tc-i860.h: Likewise.
3398 * config/tc-i960.h: Likewise.
3399 * config/tc-ia64.c: Likewise.
3400 * config/tc-ia64.h: Likewise.
3402 2000-09-14 Kazu Hirata <kazu@hxi.com>
3404 * config/tc-a29k.c: Fix formatting.
3405 * config/tc-alpha.c: Likewise.
3406 * config/tc-arc.c: Likewise.
3407 * config/tc-arc.h: Likewise.
3408 * config/tc-arm.c: Likewise.
3409 * config/tc-arm.h: Likewise.
3410 * config/tc-avr.c: Likewise.
3411 * config/tc-avr.h: Likewise.
3412 * config/tc-tic30.c: Likewise.
3413 * config/tc-tic30.h: Likewise.
3414 * config/tc-tic54x.c: Likewise.
3415 * config/tc-tic54x.h: Likewise.
3416 * config/tc-tic80.c: Likewise.
3417 * config/tc-tic80.h: Likewise.
3419 2000-09-14 Timothy Wall <twall@cygnus.com>
3421 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
3422 parallel comparisons for later use.
3423 (struct rsrc): Add parallel comparison type.
3424 (resources_match): Skip special cases of PR usage (non-conflicting
3427 2000-09-13 Kazu Hirata <kazu@hxi.com>
3429 * config/obj-ecoff.c: Fix formatting.
3430 * config/obj-elf.c: Likewise.
3431 * config/obj-elf.h: Likewise.
3432 * config/obj-evax.h: Likewise.
3433 * config/obj-generic.h: Likewise.
3434 * config/obj-hp300.c: Likewise.
3435 * config/obj-hp300.h: Likewise.
3436 * config/obj-ieee.h: Likewise.
3437 * config/obj-vms.c: Likewise.
3438 * config/obj-vms.h: Likewise.
3440 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3442 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
3443 (md_parse_option): Ditto.
3444 (md_longopts): Add -mips32 option.
3445 (md_show_usage): Document new options.
3446 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
3447 (mips_ip): Assemble mfc0 with a sub-selection code.
3448 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
3449 (mips_cpu_to_str): New function.
3450 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
3451 Use CPU_* defines instead of hardcoded numbers.
3453 * doc/as.texinfo: Document new options.
3454 * doc/c-mips.texi: Ditto.
3456 2000-09-12 Kazu Hirata <kazu@hxi.com>
3458 * as.h: Fix formatting.
3459 * asintl.h: Likewise.
3460 * bit_fix.h: Likewise.
3461 * config/obj-aout.c: Likewise.
3462 * config/obj-aout.h: Likewise.
3463 * config/obj-bout.c: Likewise.
3464 * config/obj-bout.h: Likewise.
3465 * config/obj-coff.c: Likewise.
3466 * config/obj-coff.h: Likewise.
3467 * dwarf2dbg.h: Likewise.
3469 * flonum.h: Likewise.
3470 * frags.h: Likewise.
3471 * itbl-ops.h: Likewise.
3472 * macro.h: Likewise.
3475 * struc-symbol.h: Likewise.
3476 * subsegs.h: Likewise.
3477 * symbols.h: Likewise.
3479 * write.h: Likewise.
3481 2000-09-11 Kazu Hirata <kazu@hxi.com>
3483 * bignum-copy.c: Fix formatting.
3484 * config/tc-i370.c: Likewise.
3485 * config/tc-i960.c: Likewise.
3486 * config/tc-m68k.c: Likewise.
3487 * ehopt.c: Likewise.
3488 * flonum-copy.c: Likewise.
3489 * flonum-konst.c: Likewise.
3490 * flonum-mult.c: Likewise.
3491 * literal.c: Likewise.
3494 * stabs.c: Likewise.
3495 * subsegs.c: Likewise.
3497 2000-09-09 Philip Blundell <philb@gnu.org>
3499 * configure.in (arm*-*-uclinux*): New target.
3500 * configure: Regenerate.
3502 2000-09-09 Kazu Hirata <kazu@hxi.com>
3504 * input-file.c: Fix formatting.
3505 * itbl-ops.c: Likewise.
3506 * messages.c: Likewise.
3508 2000-09-08 Philip Blundell <philb@gnu.org>
3510 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
3513 2000-09-07 H.J. Lu <hjl@gnu.org>
3515 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3516 * configure: Rebuild.
3518 2000-09-07 Kazu Hirata <kazu@hxi.com>
3520 * atof-generic.c: Fix formatting.
3521 * config/tc-mips.c: Likewise.
3522 * config/tc-vax.c: Likewise.
3523 * input-scrub.c: Likewise.
3525 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3527 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
3528 * configure.in (sh-*-linux*): Added.
3529 * configure: Rebuilt.
3531 2000-09-06 Kazu Hirata <kazu@hxi.com>
3533 * config/tc-hppa.c: Fix formatting.
3535 * ecoff.c: Fix formatting.
3537 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3539 * configure: Rebuilt with new libtool.m4.
3541 2000-09-05 Kazu Hirata <kazu@hxi.com>
3543 * cgen.c: Fix formatting.
3544 * config/tc-ia64.c: Likewise.
3546 2000-09-05 Nick Clifton <nickc@redhat.com>
3548 * aclocal.m4: Regenerate.
3549 * config.in: Regenerate.
3550 * configure: Regenerate.
3551 * po/gas.pot: Regenerate.
3553 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
3555 * config/tc-cris.c: Correct comment typos.
3557 2000-09-05 Eric Christopher <echristo@cygnus.com>
3559 * config/tc-mn10300.c: Cleanup.
3560 (md_pcrel_from): Enable.
3562 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3564 * expr.c (operand): Fix a comment typo.
3565 * write.c (write_relocs): Fix a signed/unsigned warning.
3567 * config/tc-hppa.c (fudge_reg_expressions): New
3568 (hppa_force_reg_syms_absolute): New.
3569 (pa_equ): Allow reg_section expressions.
3570 * config/tc-hppa.c (md_optimize_expr): Define.
3571 (hppa_force_reg_syms_absolute): Prototype.
3573 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
3574 (pa_parse_number): Pass in arg to select fp reg parsing.
3575 Return 1 to indicate format checks pass. If strict, then only
3576 accept a register or register symbol. Return value in...
3577 (pa_number): New static for pa_parse_number.
3578 (FP_REG_BASE): Define.
3579 (FP_REG_RSEL): Define.
3580 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
3581 appropriate. White space changes.
3582 (need_pa11_opcode): Don't bother passing any params, get them from
3584 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
3585 Remove extraneous check in case 'Q'.
3586 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
3587 reg, set section of resulting symbol to reg_section.
3588 (pa_parse_space_stmt): Modify call to pa_parse_number.
3589 (pa_space): Likewise.
3591 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
3592 (hppa_force_relocation): Handle vtable relocs.
3593 (pa_vtable_entry): New.
3594 (pa_vtable_inherit): New.
3595 (md_pseudo_table): Add entries for vtable pseudos.
3596 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
3597 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
3599 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
3600 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
3601 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
3603 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
3604 specify a symbol type.
3606 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
3607 dependent things together.
3608 (md_elf_symbol_type): Define.
3610 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
3612 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
3614 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
3615 (obj_elf_vtable_entry): Declare.
3617 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
3618 and export function.
3619 (obj_elf_vtable_entry): Similarly.
3620 (elf_pseudo_table): Fix the damage with a cast.
3622 2000-09-03 Richard Henderson <rth@cygnus.com>
3624 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
3625 for template selection when a label is needed.
3627 2000-09-02 Kazu Hirata <kazu@hxi.com>
3629 * config/tc-ia64.c: Fix formatting.
3631 2000-09-02 Nick Clifton <nickc@redhat.com>
3633 * configure.in: Increase version number to 2.10.91.
3634 * configure: Regenerate.
3635 * aclocal.m4: Regenerate.
3636 * config.in: Regenerate.
3637 * po/gas.pot: Regenerate.
3638 * Makefile.in: Regenerate.
3640 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
3642 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
3643 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
3644 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
3646 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
3649 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3651 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
3652 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
3653 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
3654 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
3655 (GOT_symbol): New variable.
3656 (md_undefined_symbol): Set it.
3658 2000-09-01 Richard Henderson <rth@cygnus.com>
3660 * config/tc-ia64.c (match): Don't inline.
3661 (extra_goodness): New.
3662 (md_begin): Prefer nop.f and nop.b for best_template.
3664 2000-08-31 Kazu Hirata <kazu@hxi.com>
3666 * as.c: Fix formatting.
3668 * frags.c: Likewise.
3669 * macro.c: Likewise.
3671 2000-08-31 Eric Christopher <echristo@cygnus.com>
3673 * config/tc-mn10300.c: Cleanup and fix warnings.
3674 (md_pseudo_table): Add initializers.
3675 (md_show_usage): Cleanup.
3676 (md_parse_option): Fix warnings.
3677 (md_undefined_symbol): Fix warnings.
3678 (md_conver_frag): Fix warnings.
3679 (tc_gen_reloc): Fix warnings.
3680 (md_apply_fix3): Fix warnings.
3681 (check_operand): Fix warnings.
3683 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3685 * acinclude.m4: Include libtool and gettext macros from the
3687 * aclocal.m4, configure: Rebuilt.
3689 2000-08-30 Mark Hatle <mhatle@mvista.com>
3691 * config/tc-ppc.c (md_parse_option): Recognize -m405.
3693 2000-08-31 Kazu Hirata <kazu@hxi.com>
3695 * listing.c: Fix formatting.
3697 2000-08-29 Kazu Hirata <kazu@hxi.com>
3699 * app.c: Fix a comment typo. Fix formatting.
3701 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3703 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
3704 offset of the target destination for jmp instructions.
3705 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
3707 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3709 * NEWS: Mention support for CRIS.
3711 Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
3713 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
3714 Sets `.lcomm' alignment to zero.
3716 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
3718 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
3719 TC_FIX_ADJUSTABLE): Define.
3721 2000-08-23 Jim Wilson <wilson@cygnus.com>
3723 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
3724 unwind.personality_routine is set.
3726 2000-08-23 H.J. Lu <hjl@gnu.org>
3728 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
3730 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
3732 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
3735 2000-08-22 H.J. Lu <hjl@gnu.org>
3737 * config.in (STRICTCOFF): New for strict COFF.
3739 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
3740 i386-*-go32* and i386-go32-rtems*.
3741 * configure: Rebuilt.
3743 * config/obj-coff.c (obj_coff_endef): Follow the historical
3744 behavior if STRICTCOFF is not defined.
3746 * doc/internals.texi: Document STRICTCOFF.
3748 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3750 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
3751 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
3752 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
3753 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
3754 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
3755 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
3756 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
3759 2000-08-22 Eric Christopher <echristo@cygnus.com>
3761 * config/tc-mn10300.c: (md_apply_fix): New function.
3762 (mn10300_force_relocation): New function.
3763 (mn10300_fix_adjustable): New function.
3765 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
3766 (TC_HANDLES_FX_DONE): Define.
3767 (obj_fix_adjustable): Define.
3768 (MD_APPLY_FIX3): Define.
3769 (TC_LINKRELAX_FIXUP): Define.
3771 * write.c: (TC_LINKRELAX_FIXUP): Define if not
3773 (fixup_segment): Use TC_LINKRELAX_FIXUP.
3775 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
3777 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3779 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
3780 if the fixup resulted in a relocation.
3782 2000-08-18 Nick Clifton <nickc@redhat.com>
3784 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
3785 Make reference to first element of shift_names explicit.
3787 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
3789 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
3790 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
3791 add a symbol's address. Removed all target-specific #ifdefs that
3792 used to accomplished the same.
3793 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3794 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3795 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3796 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3797 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
3799 2000-08-17 Kazu Hirata <kazu@hxi.com>
3801 * dwarf2dbg.c: Fix formatting.
3803 2000-08-17 Nick Clifton <nickc@redhat.com>
3805 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
3806 to be recoded as logical shift lefts by zero.
3808 2000-08-16 Jim Wilson <wilson@cygnus.com>
3810 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
3811 postincrement modified registers. Handle IA64_OPND_R3_2 addl
3813 (note_register_values): Handle IA64_OPND_R3_2 operands.
3815 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3817 * config/tc-i860.c (md_operand): Silly typo fixed.
3819 2000-08-16 Nick Clifton <nickc@redhat.com>
3821 * config/tc-arm.c (struct asm_shift): Delete.
3823 (enum asm_shift_index): New.
3824 (struct asm_shift_properties): New.
3825 (struct asm_shift_name): New.
3826 (shift_properties[]); New.
3827 (shift_names[]); New.
3829 (decode_shift): Use new structures.
3830 Issue a warning is "ROR #0" is used.
3831 Issue a warning if "ASR #0" or "LSR #0" is used.
3833 (md_begin): Initialise arm_shift_hsh table from new
3834 asm_shift_name array.
3836 2000-08-16 Jakub Jelinek <jakub@redhat.com>
3838 * config/tc-sparc.c: Kill all warnings.
3839 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
3841 (md_show_usage): Update usage text.
3843 2000-08-16 Nick Clifton <nickc@redhat.com>
3845 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
3848 2000-08-15 Will Cohen <wcohen@redhat.com>
3850 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
3852 * config/tc-sh.c (md_assemble): Changed so debug_type
3853 test performed for ppi_assemble
3854 * config/tc-sh.c: Included dwarf2dbg.h.
3855 (debug_line): Defined.
3856 (md_assemble): Generates dwarf2 line info.
3857 (sh_finalize): New function. Finalize dwarf2 info.
3858 (assemble_ppi): Returns size of code generated.
3859 (build_Mytes): Returns size of code generated.
3860 (md_pseudo_table): Added "file" and "loc" psuedo ops.
3861 * config/tc-sh.h (md_end): Defined.
3862 (sh_finalize): Declared.
3864 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
3866 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
3869 2000-08-14 Nick Clifton <nickc@redhat.com>
3871 * config/tc-arm.c (do_bx): Allow "bx pc".
3873 2000-08-14 Jim Wilson <wilson@cygnus.com>
3875 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
3876 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
3877 (md_begin): Change assignment to md.flag to OR in the new bit.
3879 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
3881 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
3882 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
3885 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3887 * NEWS: Mention i860 support.
3889 Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
3891 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3893 2000-08-14 Andreas Schwab <schwab@suse.de>
3895 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
3897 2000-08-11 Andreas Schwab <schwab@suse.de>
3899 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
3902 2000-08-11 Kazu Hirata <kazu@hxi.com>
3904 * expr.c: Fix formatting.
3905 * config/obj-bout.c: Likewise.
3907 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3909 * doc/c-i860.texi: Flesh out the i860 section more.
3911 2000-08-10 Kazu Hirata <kazu@hxi.com>
3913 * symbols.c: Fix formatting.
3916 Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
3918 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
3919 modifier has the IgnoreSize bit set.
3921 2000-08-09 Alan Modra <alan@linuxcare.com.au>
3923 From Rodney Brown <RodneyBrown@mynd.com>
3924 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
3925 * configure: Regenerate.
3927 2000-08-09 Kazu Hirata <kazu@hxi.com>
3929 * hash.c: Fix formatting.
3932 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3934 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
3935 (i860_fix_info): New enum.
3936 (MD_APPLY_FIX3): Define.
3937 (WORKING_DOT_WORD): Define.
3938 (TC_HANDLES_FX_DONE): Define.
3939 (DIFF_EXPR_OK): Define.
3940 (LISTING_HEADER): Define.
3941 (TARGET_FORMAT): Select target format based on endian flag.
3942 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
3943 (target_big_endian): Add external declaration.
3945 * config/tc-i860.c: All existing code reworked completely. Other
3946 new code shown below.
3947 (SYNTAX_SVR4): Define.
3948 (target_warn_expand): New variable.
3949 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
3950 (md_longopts): Declare and define with new options (-EL, -EB,
3952 (md_show_usage): New function.
3953 (md_operand): New function.
3954 (obtain_reloc_for_imm16): New function.
3955 (md_apply_fix3): New function.
3956 (tc_gen_reloc): New function.
3958 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3960 * config/tc-m68hc11.c (build_jump_insn): Make sure the
3961 2 bytes of the jump address are in the same frag.
3962 (find): Accept 68hc12 register indirect modes.
3964 * NEWS: Mention 68HC11 & 68HC12 support.
3966 2000-08-07 Richard Henderson <rth@cygnus.com>
3968 * config/tc-ia64.c (unwind): Add prologue_mask member.
3969 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
3970 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
3971 (dot_body): Clear unwind.prologue_mask.
3972 (dot_prologue): Set it. Accept a register second argument.
3974 2000-08-07 Kazu Hirata <kazu@hxi.com>
3976 * config/atof-ieee.c: Fix formatting.
3977 * config/atof-tahoe.c: Likewise.
3979 2000-08-06 Nick Clifton <nickc@cygnus.com>
3981 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
3984 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
3985 of .popsection, .previous, .pushsection, .subsection,
3986 .version, .vtable_entry, .vtable_inherit and .weak.
3988 2000-08-05 Kazu Hirata <kazu@hxi.com>
3990 * config/tc-cris.c: Fix formatting.
3991 * config/tc-i386.c: Likewise.
3992 * config/tc-sparc.c (sparc_ip): Simplify the code.
3994 2000-08-04 Kazu Hirata <kazu@hxi.com>
3996 * config/tc-cris.c: Rearrange code for readability.
3997 * config/tc-d10v.c: Fix formatting.
3998 * config/tc-m32r.c: Likewise.
3999 * config/tc-sparc.c: Likewise.
4001 2000-08-02 Jim Wilson <wilson@cygnus.com>
4003 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
4004 before ia64_find_opcode.
4005 (md_assemble): Likewise.
4007 2000-08-01 Nick Clifton <nickc@cygnus.com>
4009 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
4010 Undo some formatting fixes.
4012 2000-08-01 Kazu Hirata <kazu@hxi.com>
4014 * config/obj-som.c: Fix formatting.
4015 * config/obj-ieee.c: Likewise.
4016 * config/tc-arm.c: Likewise.
4017 * config/tc-v850.c: Likewise.
4019 2000-08-01 Nick Clifton <nickc@redhat.com>
4021 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
4022 index by command line option.
4024 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4026 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
4027 (@node M68K-Branch): Rewrite to match the reality.
4029 2000-07-31 Jason Eckhardt <jle@cygnus.com>
4031 * doc/c-i860.texi: New file.
4032 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
4033 * doc/Makefile.in: Regenerate.
4034 * doc/all.texi: Add I860 as relevant architecture.
4035 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
4037 2000-07-31 Kazu Hirata <kazu@hxi.com>
4039 * config/tc-d30v.c: Fix formatting.
4041 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4043 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
4044 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
4045 long emit a long branch if available instead of an absolute jump, never
4046 emit absolute jumps for anything with --pcrel.
4048 * doc/c-m68k.texi: Document new command line option.
4050 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
4052 * config/tc-avr.c: Use PARAMS macro in function declarations.
4053 Don't declare md_pcrel_from_section (already in tc-avr.h).
4054 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
4055 (avr_operand): Don't set (unsigned) op_mask to -1.
4057 2000-07-28 Jason Eckhardt <jle@cygnus.com>
4059 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
4060 * configure: Regenerated.
4061 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
4062 of operand to the .type directive (.e.g, "type").
4064 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4066 * as.h (warn_comment, found_comment, found_comment_file): Declare.
4067 * app.c (do_scrub_chars): Record where first comment found.
4068 * read.c (read_a_source_file): Init found_comment on entry, and
4069 notify whether comments found on exit.
4070 * config/tc-hppa.c (md_shortopts): Add "c".
4071 (md_longopts): Add warn-comment.
4072 (md_parse_option): Handle it.
4073 (md_show_usage): Show available options.
4074 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
4076 Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
4078 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
4079 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
4081 (md_estimate_size_before_relax): Don't fall off end of function.
4083 2000-07-27 Kazu Hirata <kazu@hxi.com>
4085 * config/tc-avr.c: Fix formatting.
4086 * config/tc-ns32k.c: Likewise.
4088 2000-07-27 Alan Modra <alan@linuxcare.com.au>
4090 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
4092 2000-07-27 Kazu Hirata <kazu@hxi.com>
4094 * config/tc-d10v.c: Fix formatting.
4095 * config/tc-z8k.c: Likewise.
4096 * config/tc-sparc.c: Likewise.
4098 2000-07-26 Dave Brolley <brolley@redhat.com>
4100 * cgen.c (queue_fixup): Declare opinfo.
4101 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
4102 (gas_cgen_md_operand): Ditto.
4103 (gas_cgen_md_apply_fix3): Ditto.
4105 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
4107 * config/obj-coff.c (obj_frob_symbol): Don't merge
4108 labels. Don't merge if the symbol isn't constant. Return
4109 immediately if a symbol is merged.
4111 2000-07-22 Alan Modra <alan@linuxcare.com.au>
4113 * frags.c (frag_align): Correct absolute section alignment.
4115 2000-07-20 DJ Delorie <dj@redhat.com>
4117 * config/obj-coff.c (obj_frob_symbol): revert previous change,
4118 it breaks linking against DLLs.
4120 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4122 * configure.in: Add CRIS support.
4123 * configure: Regenerate.
4124 * Makefile.am: (CPU_TYPES): Add cris.
4125 (CPU_OBJ_VALID) [aout]: Add cris.
4126 (MULTI_CPU_TYPES): Add cris.
4127 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
4128 [coff]: Only i386 and mips are valid.
4129 (TARGET_CPU_CFILES): Add config/tc-cris.c.
4130 (TARGET_CPU_HFILES): Add config/tc-cris.h.
4131 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
4132 Regenerate dependencies.
4133 * Makefile.in: Regenerate.
4134 * aclocal.m4: Regenerate.
4135 * as.c: Declare crisaout, criself.
4136 * config/tc-cris.h, config/tc-cris.c: New.
4137 * config/e-criself.c, config/e-crisaout.c: New.
4138 * po/POTFILES.in, po/gas.pot: Regenerate.
4140 2000-07-20 Kazu Hirata <kazu@hxi.com>
4142 * read.c: Fix formatting.
4143 * write.c: Fix formatting.
4145 2000-07-19 H.J. Lu <hjl@gnu.org>
4147 * sb.c: Include <stdlib.h> if exists for abort ().
4149 2000-07-19 Alan Modra <alan@linuxcare.com.au>
4151 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
4152 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
4153 (pa_type_args): Same here.
4155 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
4157 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
4158 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
4159 the storage class is already set.
4161 2000-07-17 Kazu Hirata <kazu@hxi.com>
4163 * config/tc-m68hc11.c: Fix formatting.
4164 * config/tc-mn10200.c: Likewise.
4165 * config/tc-mn10300.c: Likewise.
4166 * config/tc-pj.c: Likewise.
4167 * config/tc-tic80.c: Likewise.
4168 * config/tc-w65.c: Likewise.
4170 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
4172 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
4175 2000-07-15 Ian Lance Taylor <ian@zembu.com>
4177 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
4180 2000-07-15 Alan Modra <alan@linuxcare.com.au>
4182 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
4183 ELF as are used for SOM (except the 32-bit reloc one) to decide
4184 whether a symbol can be reduced to a section symbol. Expand on
4185 the comment for symbols involved in LR% and RR% expressions.
4187 2000-07-14 Nick Clifton <nickc@cygnus.com>
4189 * config/tc-mips.c (mips_disable_float_construction): New
4190 static variable. Set to true if doubles should not be
4191 constructed by loading two single width fp registers with
4192 halves of the value.
4193 (mips_ip): Test mips_disable_float_construction.
4194 (md_longopts): Add command line switches --construct-floats
4195 and --no-construct-floats.
4196 (md_parse_option): Parse new command line options.
4197 (md_show_usage): Describe new command line options.
4199 * doc/c-mips.texi: Document new command line options.
4201 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
4203 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
4204 * configure: Regenerate.
4206 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
4208 * configure.in (DEFAULT_EMULATION setting): Revert part of
4209 2000-07-01 change that set te_multi=multi unless set to tmips.
4210 * configure: Regenerate.
4212 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4214 * config/obj-coff.c (coff_frob_section): Add padding to the last
4215 section when aligning it increases its size.
4217 2000-07-11 Kazu Hirata <kazu@hxi.com>
4219 * config/tc-tic54x.c: Fix formatting.
4221 2000-07-10 Kazu Hirata <kazu@hxi.com>
4223 * config/tc-h8500.c: Fix formatting.
4224 * config/tc-tic54x.c: Fix formatting.
4226 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4228 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
4229 displacements correctly.
4231 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
4233 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
4235 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
4239 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4241 From David Huggins-Daines <dhd@linuxcare.com>
4242 * config/te-hppalinux64.h: Add a new emulation.
4243 * configure.in (emulations): Add configure bits to support the
4244 64-bit Linux/parisc target.
4245 * configure: Regenerate.
4247 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
4248 (md_shortopts): Add `V' for ELF.
4250 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
4251 when SOM or ELF_ARG_RELOC are defined.
4252 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
4253 ELF_ARG_RELOC are defined.
4254 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
4255 (pa_stringer): ..Do it here instead. Fix comment typos.
4256 (hppa_force_relocation): Cast enums to int before comparing with
4259 From Ryan Bradetich <rbradetich@uswest.net>
4260 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
4261 redifinition warning.
4262 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
4263 (hppa_force_relocation): ditto
4264 (md_apply_fix): Added cast to buf to fix warnings.
4266 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
4267 cons_fix_new_hppa, hppa_force_relocation): Prototype.
4269 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
4270 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
4271 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
4272 reloc_type** to avoid warnings in switch.
4273 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
4274 little earlier instead.
4276 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
4278 (pa_type_args): Use symbol_arg_reloc_info.
4279 (struct pa_it): Make arg_reloc unsigned int.
4280 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
4281 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
4282 (pa_code): Delete. pa_text duplicates this function.
4283 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
4284 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
4286 (cons_fix_new_hppa): Actually change selector to e_fsel when
4287 warning about assuming so.
4288 (tc_gen_reloc): More example elf arg reloc code.
4289 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
4290 (hppa_force_relocation): Likewise.
4292 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
4294 (pa_end_of_source): Prototype.
4295 (hppa_fix_adjustable): Prototype.
4296 (LABELS_WITHOUT_COLONS): Move it..
4297 * config/te-hppa.h: To here.
4299 * config/te-hppa64.h: New file.
4301 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
4303 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
4304 format -10, -16, 16 relocs.
4305 (hppa_elf_mark_end_of_function): Test for null
4306 last_call_info->start_symbol
4308 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
4309 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
4310 re_assesmble_* functions. Delete extraneous statements. Fix
4312 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
4313 insn to re_assemble_*.
4315 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
4317 * doc/internals.texi (Expressions): Fix typo.
4319 2000-07-08 Kazu Hirata <kazu@hxi.com>
4321 * config/tc-sh.c: Fix formatting.
4322 * config/tc-tic54x.c: Fix formatting.
4323 * depend.c: Fix formatting.
4324 * flonum-konst.c: Likewise.
4325 * flonum-mult.c: Likewise.
4327 2000-07-07 Kazu Hirata <kazu@hxi.com>
4329 * config/tc-sh.c: Fix comments.
4330 * config/obj-vms.c: Fix comments.
4331 * config/tc-a29k.c: Likewise.
4332 * config/tc-alpha.c: Likewise.
4333 * config/tc-h8300.c: Likewise.
4334 * config/tc-h8500.c: Likewise.
4335 * config/tc-i370.c: Likewise.
4336 * config/tc-ia64.c: Likewise.
4337 * config/tc-m68hc11.c: Likewise.
4338 * config/tc-m68k.c: Likewise.
4339 * config/tc-mips.c: Likewise.
4340 * config/tc-ns32k.c: Likewise.
4341 * config/tc-ppc.c: Likewise.
4342 * config/tc-z8k.c: Likewise.
4344 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
4346 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
4347 Default to '(SEC_LOAD | SEC_DATA)'.
4348 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
4350 * doc/internals.texi (CPU Backend): Describe
4351 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
4353 Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
4355 * as.c (parse_args): NULL terminate the long option list.
4357 Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
4359 * config/tc-d30v.h: Include "write.h" for fixS.
4360 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
4362 2000-07-05 Nick Clifton <nickc@cygnus.com>
4364 * config/tc-d30v.c (write_2_short): Further changes to warning
4365 messages produced when combining EITHER_BUT_PREFER_MU attributed
4368 2000-07-05 DJ Delorie <dj@redhat.com>
4372 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4374 * config/tc-arm.c (psrs): Accept combinations of flags.
4376 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4378 * config/tc-avr.c: Change _ () to _() around all strings marked
4379 for translation (exception from the usual coding style).
4380 (avr_opt): New struct variable, how the new switches are set.
4381 (OPTION_MMCU): Define as 'm' and actually use.
4382 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
4383 (show_mcu_list): New function, display the list of known MCUs.
4384 (md_show_usage): Document the new switches. Call show_mcu_list.
4385 (avr_set_arch): Change 'm' to OPTION_MMCU.
4386 (md_parse_option): Call show_mcu_list if unknown MCU specified.
4387 Handle the new switches.
4388 (avr_operands): Disable warnings for undefined combinations of
4389 operands if -mall-opcodes. Disable warnings for skipping two-word
4390 instructions if enhanced core or -mno-skip-bug.
4391 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
4392 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
4393 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
4394 (avr_ldi_expression): Warn about implicit lo8().
4395 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
4397 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4399 * configure.in: Add entry for mips-*-sysv4*MP*
4400 * configure: Rebuild
4401 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
4402 elf32-tradlittlemips for traditional mips targets.
4403 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
4404 test for Link Once sections as in adjust_reloc_syms.
4405 * config/te-tmips.h: New file for traditional mips targets. Define
4408 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4410 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
4411 flags argument is not present, don't change an existing section's
4412 section's attributes. If the flags argument is present, warn if the
4413 attributes don't match the section's current attributes. When
4414 long section names are supported, set SEC_LINK_ONCE and
4415 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
4417 Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
4419 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
4420 symbols; create them.
4422 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4424 * write.c (set_segment_vma): New: Set vma and lma for a segment.
4425 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
4427 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
4429 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
4430 expressions. Ignore the problem when handling 16 bit signed
4431 immediates, because the assembler will take care of the relocation
4434 2000-06-27 Nick Clifton <nickc@cygnus.com>
4436 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
4437 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
4438 sequential order, and emit warning messages if the input source
4439 code contains constructs like that, or parallel constructs
4440 containing such opcodes.
4442 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4444 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
4445 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
4446 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
4447 (md_show_usage): Update usage message.
4448 (md_parse_option): Allow redefinition of MCU type within the
4449 same avr[1-5] bfd machine type. Show both old and new MCU type
4450 in the error message.
4451 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
4452 Simplify 8K wrap code.
4454 2000-06-25 Kazu Hirata <kazu@hxi.com>
4456 * config/obj-aout.c: Remove all uses of DEFUN.
4457 * config/obj-ieee.c: Likewise.
4458 * config/tc-sh.c: Fix comment typos.
4459 * config/tc-tahoe.c: Likewise.
4460 * config/tc-vax.c: Likewise.
4461 * config/tc-w65.c: Likewise.
4462 * config/tc-z8k.c: Likewise.
4463 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
4465 2000-06-24 DJ Delorie <dj@cygnus.com>
4467 * config/tc-i386.c (md_estimate_size_before_relax): Revert
4468 more changes from Sept 1999
4469 (tc_i386_fix_adjustable): ditto
4470 (md_apply_fix3): ditto
4472 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
4474 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
4475 (gas_cgen_parse_operand): Set it around expression() call.
4476 (gas_cgen_md_operand): Test for it before longjmp().
4478 2000-06-24 Kazu Hirata <kazu@hxi.com>
4480 * config/tc-h8500.c: Remove all uses of DEFUN.
4481 * config/tc-sh.c: Likewise.
4482 * config/tc-w65.c: Likewise.
4483 * config/tc-z8k.c: Likewise.
4485 * config/tc-h8500.c: Fix typos in comments.
4487 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
4489 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
4492 2000-06-23 matthew green <mrg@redhat.com>
4494 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
4495 defined. Fix error message for `[' grouping.
4497 2000-06-22 Kazu Hirata <kazu@hxi.com>
4499 * config/tc-h8300.c: Fix formatting and comment typos.
4501 2000-06-22 Timothy Wall <twall@cygnus.com>
4503 * config/tc-ia64.c (note_register_values): Move premature QP
4504 notation clearing into the appropriate place.
4506 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4508 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
4509 first before anything else. Add bin-bugs.h, emul.h and progress.h
4510 Sort list of files as for $(OBJS) in Makefile.am.
4512 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
4513 find one. Remake dependencies.
4514 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
4515 * Makefile.in: Regenerate.
4516 * doc/Makefile.in: Regenerate.
4518 * config/tc-i386.c (i386_displacement): Don't assume a constant
4519 displacement is necessarily 16 bits when in 16 bit code mode.
4520 (md_assemble): Instead size the displacement here after we know
4521 for sure that a .code16gcc operand hasn't automatically added
4522 operand size prefixes.
4524 2000-06-21 H.J. Lu <hjl@gnu.org>
4526 * Makefile.am: Rebuild dependency.
4527 * Makefile.in: Rebuild.
4529 2000-06-21 Kazu Hirata <kazu@hxi.com>
4531 * config/tc-h8300.c (parse_reg): Make the function static.
4532 (parse_exp): Likewise.
4534 2000-06-20 DJ Delorie <dj@cygnus.com>
4536 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
4537 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
4538 for cygwin import libraries to work properly.
4540 2000-06-20 H.J. Lu <hjl@gnu.org>
4542 * Makefile.am: Rebuild dependency.
4543 * Makefile.in: Rebuild.
4544 * configure: Likewise.
4545 * doc/Makefile.in: Likewise.
4547 2000-06-20 Timothy Wall <twall@cygnus.com>
4549 * doc/internals.texi (CPU backend): Add @itemx for
4550 TC_START_LABEL_WITHOUT_COLON.
4551 * doc/c-tic54x.texi: New.
4552 * doc/as.texinfo: Add tic54x features and include primary tic54x
4554 * doc/all.texi: Add C54X.
4555 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
4556 * doc/Makefile.in: Regenerate.
4557 * configure.in: Add tic54x and define LIBM for tic54x.
4558 * configure: Regenrate.
4559 * config/tc-tic54x.[ch]: New.
4560 * config/obj-coff.h: Add tic54x.
4561 * Makefile.am: (CPU_TYPES): Add tic54x.
4562 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
4563 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
4564 (as_new_LDADD): Add $(LIBM).
4565 * Makefile.in: Regenerate.
4567 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4569 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
4570 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
4571 * doc/as.texinfo: Likewise.
4573 * configure, Makefile.in: Regenerate.
4574 * configure.in (emulations): Recognize m6811 and m6812.
4575 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
4576 Added files for 68hc11 and 68hc12 assembler.
4577 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
4578 * config/tc-m68hc11.h: Header definition for that assembler.
4580 2000-06-18 Nick Clifton <nickc@redhat.com>
4582 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
4583 instead of OCTETS_PER_BYTE.
4585 * config/tc-v850.c: Fix compile time warnings.
4586 * config/tc-ppc.c: Fix compile time warnings.
4588 2000-06-18 H.J. Lu <hjl@gnu.org>
4590 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
4591 * configure: Rebuild.
4593 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
4595 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
4598 2000-06-16 Nick Clifton <nickc@cygnus.com>
4600 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
4601 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
4603 * doc/c-mips.texi: Document newly accepted cpu variants.
4605 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4607 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
4609 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
4611 * macro.c (getstring): Make it possible to escape the quote
4614 Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
4616 * config/tc-hppa.c (pa_export): Weak symbols can be global.
4618 2000-06-13 H.J. Lu <hjl@gnu.org>
4620 * configure: Regenerate.
4622 2000-06-09 Alan Modra <alan@linuxcare.com.au>
4624 * app.c (do_scrub_begin): Don't default lex[';'] as a line
4626 * doc/internals.texi (line_separator_chars): Semicolon is no
4627 longer a default. Mention null and newline as defaults.
4629 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
4631 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
4632 * config/tc-i860.h (line_separator_chars): Likewise.
4633 * config/tc-h8300.c (line_separator_chars): Likewise.
4634 * config/tc-i960.c (line_separator_chars): Likewise.
4635 * config/tc-m68k.c (line_separator_chars): Likewise.
4636 * config/tc-mips.c (line_separator_chars): Likewise.
4637 * config/tc-ns32k.c (line_separator_chars): Likewise.
4638 * config/tc-sparc.c (line_separator_chars): Likewise.
4639 * config/tc-vax.c (line_separator_chars): Likewise.
4641 * config/tc-h8300.c (comment_chars): Use string initialiser.
4642 * config/tc-i960.c (line_comment_chars): Likewise.
4643 * config/tc-z8k.c (comment_chars, line_comment_chars,
4644 line_separator_chars): Likewise.
4646 * config/tc-arm.c (line_separator_chars): Always use `;', not just
4649 2000-06-08 Nick Clifton <nickc@cygnus.com>
4651 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
4654 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4656 * configure.in (VERSION): Update to show this is the CVS mainline.
4658 2000-06-08 Matthew Jacob <mjacob@feral.com>
4660 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
4661 $at is the integer register $r28, vs. both $r28 and the floating
4662 point register $f28.
4664 2000-06-08 James E. Wilson <wilson@cygnus.com>
4666 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
4667 (dot_endp): Don't call ia64_flush_insns.
4668 (emit_one_bundle): Don't delete prologue/body records from
4669 unwind_record list in first loop. Rewrite second loop to account for
4672 2000-06-07 David Mosberger <davidm@hpl.hp.com>
4674 * config/tc-ia64.c: Add missing prototypes.
4675 (generate_unwind_image): Cast argument to output_unw_records call.
4677 Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
4679 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
4681 Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
4683 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
4684 (REGISTER_P): likewise.
4685 (avr_opcodes): uses include/opcode/avr.h
4686 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
4688 2000-06-04 Alan Modra <alan@linuxcare.com.au>
4690 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
4693 2000-06-03 H.J. Lu <hjl@gnu.org>
4695 * read.c (is_end_of_line): Put back `;'.
4697 2000-06-03 Alan Modra <alan@linuxcare.com.au>
4699 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
4701 2000-06-01 Alan Modra <alan@linuxcare.com.au>
4703 * expr.c (operand): Test is_end_of_line outside switch to catch
4704 line separator chars that are also operators.
4705 (operator): Return O_illegal for line separator chars.
4707 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
4708 entry (or `!' entry for TC_HPPA).
4710 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
4711 before indexing is_end_of_line. Remove redundant check for '\0'.
4713 * config/tc-h8500.c (md_assemble): Likewise.
4714 * config/tc-mcore.c (md_assemble): Likewise.
4715 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
4718 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
4720 * config/tc-mcore.c (mcore_cons): Likewise.
4721 (mcore_float_cons): Likewise.
4722 (mcore_stringer): Likewise.
4723 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
4725 2000-06-01 Scott Bambrough <scottb@netwinder.org>
4727 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
4729 2000-05-29 Nick Clifton <nickc@cygnus.com>
4731 * config/tc-sh.c: Fix compile time warning messages.
4733 * config/tc-mips.c: Fix compile time warning messages.
4735 2000-05-29 Philip Blundell <philb@gnu.org>
4737 * doc/as.texinfo: Update copyright dates.
4738 (Local Labels): Delete misplaced mention of ARM.
4739 * NEWS: Mention ARM ELF support.
4741 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
4743 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
4744 it is modified, and use the real_size to compute the frag address
4745 for dwarf2 line info.
4747 2000-05-27 Alan Modra <alan@linuxcare.com.au>
4749 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
4750 line-matching scheme to cope with automake moving variables around.
4751 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
4752 * Makefile.in: Regenerate.
4754 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4756 * config/tc-sparc.c (sparc_relax): New.
4757 (md_longopts): Add -relax and -no-relax options.
4758 (md_parse_options, md_show_usage): Likewise.
4759 (md_apply_fix3): Optimize tail call into branch always if possible.
4761 Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
4763 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
4764 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
4765 rules, with warning when a GAS statement specifies a packing that
4766 will result in an instruction being squashed.
4767 Added typdef packing_type and enumerals, changed various integer
4768 literals to use the enumerals.
4770 2000-05-24 David Mosberger <davidm@hpl.hp.com>
4772 * config/tc-ia64.c (dot_restorereg_p): New function.
4773 (md_pseudo_table): Add restorereg.p.
4774 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
4775 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
4777 * config/tc-ia64.h (unw_record_type): Add unwabi.
4778 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
4779 called MASK with members for imask, and the masks produced by
4780 fr_mem, gr_mem, br_mem, and frgr_mem.
4781 (unw_p_record): Add members ABI and CONTEXT.
4782 (unw_x_record): Add member AB.
4783 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
4784 as pseudo-register for use during unwind info generation.
4785 (AR_PFS, AR_LC): New macros.
4786 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
4787 whose names start with an at sign (as in "@priunat").
4788 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
4790 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
4791 proc_end, unwind_info, personality_routine): Consolidate into
4792 "unwind" structure to reduce offset-table use. Add member
4793 NEXT_SLOT_NUMBER to track the slot number for the next instruction
4795 (output_R1_format, output_R3_format, output_P3_format,
4796 output_P6_format): Initialize R with zero to reduce compiler warnings.
4797 (output_P7_format): Ditto. Add `default' branch to switch
4798 statement to reduce compiler warnings.
4799 (output_P8_format, output_B1_format, output_B4_format): Ditto.
4800 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
4801 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
4802 into single argument.
4803 (output_X1_format, output_X3_format): Initialize R with zero to reduce
4804 compiler warnings. Merge A and B args into single argument.
4805 (output_X2_format, output_X4_format): Remove unused variable R. Merge
4806 A and B args into single argument.
4807 (free_record): Removed (wasn't used).
4808 (free_list_records): Also free imasks in prologue records.
4809 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
4810 (output_spill_mask): Remove.
4811 (output_unwabi): New function.
4812 (output_epilogue, output_label_state, output_copy_state): Call
4814 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
4815 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
4817 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
4818 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
4819 as part of handling the prologue records. Emit region's imask if
4820 we have one. Handle unwabi, epilogue, label_state, copy_state,
4821 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
4822 spill_sprel_p, and spill_reg_p records.
4823 (set_imask, count_bits, slot_index): New function.
4824 (fixup_unw_records): Fix region size computation. Handle
4825 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
4826 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
4827 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
4828 set_imask accordingly. Update imask for gr_gr, and br_gr records.
4829 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
4830 (dot_save): Use manifest constants for applicaton registers.
4831 Handle REG_PR and REG_PRIUNAT.
4832 (dot_restore): Don't just ignore it.
4833 (dot_restorereg): New function..
4834 (generate_unwind_image): Ensure unwind info is a multiple of eight
4835 bytes, not just four bytes.
4836 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
4837 (dot_altrp): Don't just ignore it.
4838 (dot_savemem): New function. Replaces dot_savesp() and
4839 dot_savepsp(). Use manifest constants for applicaton registers.
4840 Handle REG_PR and REG_PRIUNAT.
4841 (dot_savef): Simplify.
4842 (dot_saveb): Support generation of br_gr.
4843 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
4844 dot_label_state, dot_copy_state): New function.
4845 (dot_unwabi): Don't just ignore it.
4846 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
4847 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
4848 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
4849 (emit_one_bundle): Set slot number for prologue/body records
4850 *before* emitting the first insn.
4851 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
4852 (md_begin): Declare "psp" pseudo-register.
4853 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
4854 so we don't get segfault.
4855 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
4856 counts as required per SW Conventions manual
4857 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
4858 output_preds_psprel, output_preds_sprel, output_spill_base,
4859 output_unat_psprel, output_unat_sprel, output_lc_psprel,
4860 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
4861 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
4862 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
4863 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
4864 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
4865 (dot_vframe): Implement.
4866 (dot_vframesp, dot_vframepsp): New function.
4868 Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
4870 * configure.in (i386-*-freebsd a.out entry): Quote properly.
4871 * configure: Regenerate.
4873 2000-05-23 Alan Modra <alan@linuxcare.com.au>
4875 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
4876 (md_estimate_size_before_relax): so we can use it here instead of
4877 old kludges. Localise vars to blocks. Comment.
4879 * frags.c (frag_new): Update fr_var comments.
4880 * frags.h (struct frag): Ditto.
4882 2000-05-22 Richard Henderson <rth@cygnus.com>
4884 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
4885 (pseudo_func): Add pcrel.
4886 (operand_match): Handle IA64_OPND_TGT64.
4887 (build_insn): Likewise.
4888 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
4889 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
4890 (fix_insn): Handle all three 64-bit relocation types.
4892 Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
4894 * obj.h (struct format_ops): New members begin, app_file,
4895 s_set_other, s_set_desc, s_get_type, s_set_type,
4896 separate_stab_sections, init_stab_section.
4898 * config/obj-multi.h: Update GPL notice to v2.
4900 (obj_app_file): New.
4901 (S_SET_SIZE): Test s_set_size for NULL before calling.
4902 (S_SET_ALIGN): Similar for s_set_align.
4907 (SEPARATE_STAB_SECTIONS): New.
4908 (INIT_STAB_SECTION): New.
4909 (EMIT_SECTION_SYMBOLS): New.
4910 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
4912 * config/obj-elf.h: Update GPL notice to v2.
4913 Mention that this file is included from obj-multi.h.
4914 (obj_begin): Wrap definition in ifndef.
4915 (elf_file_symbol): Constify declaration.
4916 (obj_app_file): Ditto.
4917 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
4918 Wrap in ifndef SEPARATE_STAB_SECTIONS.
4920 * config/obj-elf.c (elf_s_set_other): New.
4921 (elf_file_symbol): Constify argument.
4922 (elf_separate_stab_sections): New.
4923 (elf_init_stab_section): New.
4924 (elf_format_ops): Add new members. Remove comma at end.
4926 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
4927 (ecoff_format_ops): Add new fields. Remove comma at end.
4928 Mention inconsistency for emit_section_symbols.
4930 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
4932 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
4933 (coff_separate_stab_sections): New.
4934 (coff_format_ops): Add new members.
4936 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
4937 (obj_aout_s_set_other): New.
4938 (obj_aout_s_set_desc): New.
4939 (obj_aout_s_get_type): New.
4940 (obj_aout_s_set_type): New.
4941 (obj_aout_separate_stab_sections): New.
4942 (aout_format_ops): New members added. Use obj_aout_process_stab,
4943 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
4944 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
4946 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
4948 2000-05-22 Alan Modra <alan@linuxcare.com.au>
4950 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
4951 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
4952 (md_estimate_size_before_relax): Ensure jumps to weak and
4953 externally visible symbols are relocatable.
4955 Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
4957 * stabs.c (aout_process_stab): Make global.
4958 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
4959 * read.h (aout_process_stab): Declare.
4961 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
4962 Generalize to *aout, *coff *elf.
4963 * configure: Regenerated.
4965 * doc/internals.texi (Object format backend): Say
4966 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
4968 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
4969 * Makefile.in: Regenerated.
4971 2000-05-19 Catherine Moore <clm@cygnus.com>
4973 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
4975 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4977 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
4978 instruction to reflect change in re_assemble_*.
4980 Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
4982 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
4983 build PA64 ELF tools.
4984 * configure: Rebuilt.
4986 2000-05-17 Alan Modra <alan@linuxcare.com.au>
4988 * Makefile.am: Regenerate dependencies.
4989 * Makefile.in: Regenerate.
4991 2000-05-15 Nick Clifton <nickc@cygnus.com>
4993 * config/tc-arm.c (struct asm_psr): Add boolean field
4994 distinguishing between CSPR and SPSR. Rename 'number' field
4996 (psrs): Rearrange contents to match new asm_psr structure.
4997 (arm_psr_parse): Move next to psr_required_here. Make it
4998 return an asm_psr structure.
4999 (psr_required_here): Use asm_psr structure returned by
5001 (do_msr): Reorganise to allow psr_required_here to be called
5003 (md_undefined_name): Mark 'name' parameter as unused, since
5004 the COFF target does not use it.
5006 2000-05-14 David O'Brien <obrien@FreeBSD.org>
5008 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
5010 * config/te-aux.h: Likewise.
5011 * config/te-dpx2.h: Likewise.
5012 * config/te-go32.h: Likewise.
5013 * config/te-hp300.h: Likewise.
5014 * config/te-hppa.h: Likewise.
5015 * config/te-i386aix.h: Likewise.
5016 * config/te-ic960.h: Likewise.
5017 * config/te-interix.h: Likewise.
5018 * config/te-nbsd532.h: Likewise.
5019 * config/te-pc532mach.h: Likewise.
5020 * config/te-ppcnw.h: Likewise.
5021 * config/te-psos.h: Likewise.
5022 * config/te-sparcaout.h: Likewise.
5023 * config/te-sun3.h: Likewise.
5024 * config/te-sysv32.h: Likewise.
5026 2000-05-14 Alan Modra <alan@linuxcare.com.au>
5028 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
5029 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
5030 and sign extend without an if statement.
5031 (build_bytes): Likewise.
5033 2000-05-14 Kazu Hirata <kazu@hxi.com>
5035 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
5036 X_add_symbol L_32 case.
5038 2000-05-14 David O'Brien <obrien@FreeBSD.org>
5040 * config/te-freebsd.h: New file.
5042 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5044 * asintl.h (gettext, dgettext, dcgettext, textdomain,
5045 bindtextdomain): Replace defines with those from intl/libgettext.h
5046 to quieten gcc warnings.
5048 * NEWS: Mention x86 .arch and -q.
5050 * config/tc-i386.c (quiet_warnings): New.
5051 (md_assemble): Use quiet_warnings.
5052 (md_parse_option): Set quiet_warnings from -q.
5053 (md_show_usage): Mention -q, delete -m.
5054 (flag_do_long_jump): Delete.
5055 (md_parse_option): Remove -m.
5056 (md_show_usage): Remove -m.
5057 (md_create_long_jump): Remove useless flag_do_long_jump code.
5059 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
5060 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
5062 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5063 Alexander Sokolov <robocop@netlink.ru>
5065 * doc/c-i386.texi (i386-Arch): New section.
5066 (i386-Syntax): Mention .intel_syntax and .att_syntax.
5068 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
5069 (smallest_imm_type): Use smallest opcode for shift by one if cpu
5070 architecture has been given and is not 486.
5071 (set_cpu_arch): New.
5072 (md_pseudo_table): Add .arch.
5073 (md_assemble): Warn if cpu architecture has been given and an
5074 unsupported instruction.
5076 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
5077 Move operand_types bit defines after relevant template field.
5078 (template): Add cpu_flags.
5082 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
5084 * config/tc-mn10300.h (md_end): Define.
5085 (mn10300_finalize): Declare.
5086 * config/tc-mn10300.c: Include dwarf2dbg.h.
5087 (debug_line): Define.
5088 (md_assemble): Generate dwarf2 line info.
5089 (mn10300_finalize): New function. Finalize dwarf2 info.
5091 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
5093 * config/tc-mips.c (md_estimate_size_before_relax): Use the
5094 external version of the relocation for weak symbols.
5096 2000-05-08 David Mosberger <davidm@hpl.hp.com>
5098 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
5099 frame size in units of 16 bytes, as required per SW Conventions manual.
5100 (output_unw_records): Output info-block header as a dword to get
5103 2000-05-08 Alan Modra <alan@linuxcare.com.au>
5105 * as.h: #include "file", not <file> on files from ../include.
5106 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
5107 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
5108 (md_convert_frag): Add ATTRIBUTE_UNUSED.
5109 (tc_coff_symbol_emit_hook): Ditto.
5110 (OPTCOUNT): Cast to int to avoid compiler warning.
5111 (md_begin): Fix signed/unsigned warnings.
5113 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5115 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
5116 ABRANCH LONG case for a conditional branch on a 68000.
5117 (md_estimate_size_before_relax): Likewise. Also handle
5118 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
5119 (m68k-ip: case ABSL): Relax absolute references to 16-bit
5120 PC-relative on all CPUs.
5121 (md_estimate_size_before_relax): Likewise.
5123 2000-05-04 Alan Modra <alan@linuxcare.com.au>
5125 * as.c (parse_args): Just mention current year in printed
5128 2000-05-03 J.T. Conklin <jtc@redback.com>
5130 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
5132 (md_parse_option): Recognize -m7400.
5134 2000-05-03 Ian Lance Taylor <ian@zembu.com>
5136 * config/atof-ieee.c (gen_to_words): When adding carry back in,
5137 don't permit lp to become less than the words array.
5139 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
5141 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
5142 Fix little-endian case.
5144 2000-05-03 David O'Brien <obrien@NUXI.com>
5146 * as.c (parse_args): Update copyright.
5148 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5150 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
5151 for the .bss section too.
5153 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5155 * configure.in: Set em=linux for hppa-*-linux.
5156 * configure: Regenerate.
5157 * doc/Makefile.in: Regenerate with correct automake.
5159 * frags.c (frag_grow): Sanity check chunk_size.
5161 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
5162 * config/obj-som.h: Likewise.
5163 * config/obj-ieee.h: Likewise.
5165 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
5167 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
5168 (md_pseudo_table): Fully initialise OBJ_ELF cases.
5169 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
5170 (pa_ip): low_sign_unext now returns via function value. Use
5171 re_assemble_* instead of dis_assemble_* and
5172 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
5174 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
5175 (md_section_align, md_parse_option, md_show_usage,
5176 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
5177 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
5178 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
5179 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
5180 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
5182 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
5183 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
5184 outside of switch. Correct mask and shifting errors in case 10
5185 and case -11. In case 21, compare against signed range to suit
5186 hppa_field_adjust changes. In case 12, use re_assemble_12. In
5187 case 17 and case 22, use offsetT variable to properly check range.
5188 Use re_assemble_* here too.
5189 (evaluate_absolute): Change type of value to offsetT. Call
5190 hppa_field_adjust to do the work for us.
5191 (pa_parse_cmpb_64_cmpltr): Delete save_s.
5192 (pa_parse_cmpib_64_cmpltr): Ditto.
5193 (pa_build_unwind_subspace): Delete unused var subseg. Change type
5194 of i to unsigned int.
5195 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
5196 (pa_end_of_source): Return type is void.
5198 Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
5200 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
5202 Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
5204 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
5205 More comments added.
5206 (md_begin): Removed "construct symbols for each register name".
5207 Because register names conflicts with GCC generated function
5209 (avr_operand): Now constant numbers can be used as a register
5210 identifiers (0 as r0, 31 as r31).
5211 (md_assemble): use skip_space () before parsing instruction
5214 2000-05-01 Alan Modra <alan@linuxcare.com.au>
5216 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
5217 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
5218 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
5219 * configure: Regenerate.
5221 2000-04-29 Andreas Jaeger <aj@suse.de>
5223 * as.h: Correctly check GCC version.
5225 2000-04-26 David O'Brien <obrien@FreeBSD.org>
5227 * doc/as.1: Fix unbalanced brackets.
5229 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
5231 (line_comment_chars): Set to '/' if TE_FreeBSD.
5233 Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
5235 * configure.in: Configury support for PA64 (currently disabled).
5236 * configure: Rebuilt.
5238 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
5240 * config/tc-mips.c (s_change_sec): Use record_alignment, not
5241 bfd_set_section_alignment.
5243 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5245 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
5248 2000-04-24 Nick Clifton <nickc@cygnus.com>
5250 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
5251 * doc/as.texinfo (Align): Include arm and strongarm in list of
5252 targets that have the second form of the behaviour of the .align
5255 2000-04-24 Mark Klein <mklein@dis.com>
5257 * config/obj-som.c: Terminate obj_pseudo_table.
5259 Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
5261 * as.c (parse_args): Allow md_parse_option to override -a listing
5263 * config/obj-coff.c (add_lineno): Change type of offset parameter
5264 from "int" to "bfd_vma."
5265 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
5266 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
5267 (ppc_change_csect): Align correctly for XCOFF64.
5268 (ppc_machine): New function, which discards "ppc_machine" line.
5269 (ppc_tc): Cons for 8 when code is 64 bit.
5270 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
5272 (md_parse_option): Handle -a64 and -a32.
5274 * config/tc-ppc.h (TARGET_MACH): Define.
5275 (TARGET_FORMAT): Move to function.
5276 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
5278 Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
5280 * config/tc-avr.c: New AVR_ISA_ defined.
5281 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
5282 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
5283 for `fmul', `movw' and `lpm R,Z' instructions.
5284 (avr_operands): Warn if current opcode is a two-word instruction
5285 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
5286 (avr_opcodes): New commands added.
5287 (REGISTER_P): Check 'a' and 'v' constraint letters.
5288 (mcu_types): New MCU added.
5290 2000-04-22 Timothy Wall <twall@cygnus.com>
5292 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
5294 (operand_match): Conditionally insert default bit values for IMMU9.
5296 2000-04-14 Matthew Green <mrg@cygnus.com>
5298 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
5299 * configure: Rebuilt.
5301 Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
5302 Jason Eckhardt <jle@cygnus.com>
5304 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
5306 * config/tc-hppa.c (CHECK_ALIGN): New macro.
5307 Added handling of new operand types l,y,&,fe,fE,fx.
5309 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5310 David Mosberger <davidm@hpl.hp.com>
5311 Timothy Wall <twall@cygnus.com>
5312 Andrew MacLeod <amacleod@cygnus.com>
5313 Jim Wilson <wilson@cygnus.com>
5315 * Makefile.am (CPU_TYPES): Add ia64.
5316 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
5317 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
5318 * Makefile.in: Rebuild.
5319 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
5320 * configure: Rebuild.
5321 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
5322 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
5323 * expr.c (expr): Handle md_optimize_expr.
5324 * read.c (LEX_HASH): Add comment.
5325 * config/tc-ia64.c, config/tc-ia64.h: New files.
5327 2000-04-21 Richard Henderson <rth@cygnus.com>
5329 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
5330 bundling a non-delayed branch type instruction.
5332 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
5334 * config/tc-mn10300.c (HAVE_AM30): Define.
5335 (md_assemble): Use it.
5337 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5339 * config/obj-elf.c (obj_elf_change_section): Check for changed
5342 * Makefile.am: (CPU_MULTI_VALID): Remove.
5343 (MULTI_CPU_TYPES): Define.
5344 (MULTI_CPU_OBJ_VALID): Define.
5345 (DEPTC): Use the above.
5346 (DEPOBJ): Same here.
5348 Regenerate dependencies.
5349 * Makefile.in: Regenerate.
5351 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5353 * Makefile.am (YACC, LEX): Get them from configure.
5355 2000-04-18 H.J. Lu (hjl@gnu.org)
5357 * config/tc-i386.c (offset_in_range): Use addressT instead of
5358 bfd_vma for non-bfd assemblers.
5360 2000-04-17 Alan Modra <alan@linuxcare.com.au>
5362 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
5363 doesn't give spurious errors.
5365 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5367 * as.h (SEEK_SET): Define if undefined.
5369 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5371 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
5372 constants, and don't assume offsetT is 32 bits.
5374 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
5376 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
5377 (md_pcrel_from_section): Add prototype.
5378 (d10v_fix_adjustable): Add prototype.
5379 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
5381 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
5383 2000-04-12 Nick Clifton <nickc@cygnus.com>
5385 * config/tc-d10v.c (find_opcode): Correctly calculate position of
5386 symbol in frag chain.
5388 2000-04-10 Alan Modra <alan@linuxcare.com.au>
5390 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
5391 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
5392 (fits_in_signed_word, smallest_imm_type): Ditto.
5393 (md_assemble): Use an offsetT var to hold offsetT values, not a
5395 (offset_in_range): New.
5396 (md_assemble): Use it.
5397 (md_convert_frag): Change type of target_address, opcode_address,
5398 and displacement_from_opcode_start to offsetT.
5399 (md_create_short_jump): Change type of offset to offsetT.
5400 (md_create_long_jump): Ditto.
5401 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
5402 (md_chars_to_number): Remove.
5403 (output_invalid): Remove duplicate prototype.
5405 2000-04-09 Nick Clifton <nickc@cygnus.com>
5407 * Makefile.am (CPU_TYPES): Add 'avr'.
5408 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
5409 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
5411 * Makefile.in: Regenerate.
5413 * doc/as.texinfo: Add M32R documentation.
5415 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5417 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5418 --enable-build-warnings option.
5419 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5420 * Makefile.in, configure: Re-generate.
5422 2000-04-07 Nick Clifton <nickc@cygnus.com>
5424 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
5425 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
5426 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
5427 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
5428 (arm_force_relocation): Force relocations for
5429 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
5431 Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5433 * config/tc-sh.c (get_operands): There's no third operand if the
5434 first operand is an immediate.
5436 Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5438 * config/tc-sh.c (immediate): Delete.
5439 (sh_operand_info): Add immediate member.
5440 (parse_reg): Use A_PC for pc.
5441 (parse_exp): Add second argument 'op'. All callers changed.
5442 (parse_at): Expect pc to be coded as A_PC.
5443 Use immediate field in *op.
5444 (insert): Add fourth argument 'op'. All callers changed.
5445 (build_relax): Add second argument 'op'. All callers changed.
5446 (insert_loop_bounds): New function.
5447 (build_Mytes): Remove DISP_4.
5448 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
5449 (assemble_ppi): Use immediate field in *operand.
5450 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
5451 (md_apply_fix): Likewise.
5452 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
5454 Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5456 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
5458 Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
5460 * internals.texi (CPU backend): Document
5461 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
5463 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5465 * po/gas.pot: Regenerate.
5467 * as.c (show_usage): Restore translated part of bug string.
5468 * gasp.c (show_usage): Likewise.
5470 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
5471 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
5472 than move-if-change.
5473 (DEP1): Modify for "gcc -MM".
5477 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
5478 Update dependencies.
5479 * Makefile.in: Regenerate.
5481 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
5483 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
5484 (md_begin): Likewise.
5485 (HAVE_AM33): New macro.
5486 (md_assemble): Use it. Match r_regs and xr_regs only if
5489 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5491 * as.h: #include "bin-bugs.h"
5492 * as.c (show_usage): Use REPORT_BUGS_TO.
5493 * gasp.c: #include "bin-bugs.h"
5494 (show_usage): Use REPORT_BUGS_TO.
5496 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
5498 Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
5500 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
5501 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
5504 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5506 * config/tc-i386.c (i386_immediate): Don't assume a constant
5507 immediate is necessarily 16 bits when in 16 bit code mode.
5508 (md_assemble): Instead set guess_suffix here after we have checked
5511 2000-04-02 Richard Henderson <rth@cygnus.com>
5513 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
5514 quantities. Correct right shift sign extension.
5515 (build_insn): Make `number' unsigned long. Mask top 6 bits of
5516 32-bit value when shifting into place.
5518 2000-04-01 Ian Lance Taylor <ian@zembu.com>
5520 * app.c: Add ATTRIBUTE_UNUSED as needed.
5521 * config/tc-ppc.c: Likewise.
5522 (ppc_size): Make unsigned long.
5523 (ppc_insert_operand): Add casts to avoid warnings.
5525 2000-03-31 Nick Clifton <nickc@cygnus.com>
5527 * config/tc-d10v.h (md_flush_pending_output): Define.
5529 2000-03-29 Nick Clifton <nickc@cygnus.com>
5531 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
5532 segment. Works for both BFD_ASSEMBLER and others.
5533 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
5535 2000-03-29 Nick Clifton <nickc@cygnus.com
5537 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
5539 2000-03-28 Alan Modra <alan@linuxcare.com.au>
5541 * listing.c (LISTING_LHS_WIDTH): Default depends on
5543 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
5545 2000-03-27 Ian Lance Taylor <ian@zembu.com>
5547 * config/tc-sh.c (md_show_usage): Use backslash before newline in
5550 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5552 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
5554 * config/tc-avr.c (mcu_types): Add missing initialiser.
5555 (md_pcrel_from_section): Add prototype.
5556 (avr_operand): Remove redundant test of unsigned < 0.
5557 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
5559 2000-03-27 Denis Chertykov <denisc@overta.ru>
5561 * config/tc-avr.c: New file for AVR support.
5562 * config/tc-avr.h: Likewise.
5563 * configure.in: Add AVR support.
5564 * configure: Regenerate.
5566 2000-03-26 Timothy Wall <twall@cygnus.com>
5568 * gasp.c (macro_op): Add new argument to check_macro call.
5569 Macro structure definitions moved to macro.h
5570 * sb.h: Add argument to prototype for input_scrub_include_sb.
5571 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
5572 nesting checks with an additional flag.
5573 (struct input_save): Add flag to indicate whether current sb
5574 should be checked for proper macro/conditional nesting.
5575 (input_scrub_push/pop): Save/restore nest check flag.
5576 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
5578 * macro.c (check_macro): Allow caller to retrieve parsed macro
5579 information if a pointer is provided. This information may be
5580 used by the new macro hooks.
5581 * macro.h: Update prototype for check_macro. Macro struct
5582 definitions moved here from macro.c/gasp.c.
5583 * read.c (read_a_source_file): Add parameter to check_macro call,
5584 and pass macro info to the macro hook, if defined.
5585 (input_scrub_insert_line): New. Allow insertion of a line of
5586 characters into the input stream.
5587 (input_scrub_insert_file): New. Allow insertion of an arbitrary
5588 file into the input stream.
5589 (s_include): Use input_scrub_insert_file.
5590 * internals.texi: Document new macro hooks.
5591 * as.h: New prototypes added.
5593 2000-03-26 Alan Modra <alan@linuxcare.com.au>
5595 * config/tc-i386.c: Don't start any as_bad or as_warn message with
5596 an initial capital letter.
5597 (i386_index_check): Reindent.
5599 2000-03-19 Nick Clifton <nickc@cygnus.com>
5601 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
5604 2000-03-17 Thomas de Lellis <tdel@windriver.com>
5606 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
5607 instruction operand bad if Rd > 7 when generating
5608 thumb instructions. Prevents for example,
5609 "adr r12,label" from silently failing and generating
5610 the wrong instruction.
5612 2000-03-17 Nick Clifton <nickc@cygnus.com>
5614 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
5615 that have a destingation >= 0x400000.
5616 Fix compile time warning messages.
5618 Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5620 * config/tc-sh.c (md_begin): When encountering insn that are
5621 not supported by the current arch, only change the name if
5622 its contents are the same as prev_name.
5623 (get_specific): If the the architecture doesn't match, fail.
5625 Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5627 * config/tc-sh.c (IDENT_CHAR): Define.
5628 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
5629 matching back where it came from.
5631 Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5633 * config/tc-sh.c (md_show_usage): Add description of -dsp.
5635 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
5637 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
5640 2000-03-15 Kazu Hirata <kazu@hxi.com>
5642 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
5644 Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
5646 * expr.c (operand) [case 'f']: When testing if '0f' can start a
5647 floating-point-number, make sure 'f' is in FLT_CHARS.
5649 Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
5651 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
5652 (s_lcomm_internal): Use it.
5653 * doc/internals.texi (CPU backend): Document it.
5654 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
5657 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5659 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
5662 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
5663 implementation doesn't have special handling for switch
5665 (macro_build): Allow for code in sections other than .text.
5667 (mips_ip): Likewise.
5668 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
5669 Don't perform relocs if we will be outputting them.
5670 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
5671 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
5674 2000-03-09 Catherine Moore <clm@cygnus.com>
5676 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
5677 relocation type based on the entry in the fixup structure.
5678 Put S_IS_EXTERN processing back in.
5680 2000-03-08 H.J. Lu (hjl@gnu.org)
5682 * Makefile.am (install-exec-tooldir): Depend on
5683 install-exec-bindir for parallel make.
5684 * Makefile.in: Regenerated.
5686 2000-03-06 Nick Clifton <nickc@cygnus.com>
5688 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
5690 (md_parse_option): Parse -m32r command line switch - disable m32rx
5692 (md_show_usage): Document new option.
5694 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
5695 * doc/Makefile.in: Regenerate.
5696 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
5698 2000-03-02 Michael Meissner <meissner@redhat.com>
5700 * config/tc-d30v.c (check_range): Remove code that incorrectly
5701 sign extended values where bits < 32.
5703 2000-03-02 H.J. Lu (hjl@gnu.org)
5705 * configure.in: Support --enable-targets=all on ia32.
5706 * configure: Regenerated.
5708 2000-03-01 Nick Clifton <nickc@cygnus.com>
5710 * gasp.c (do_align): Remove bogus check of alignment value.
5712 2000-02-27 Thomas de Lellis <tdel@windriver.com>
5714 * config/obj-elf.c (elf_frob_symbol): Remove code which when
5715 TC_PPC was defined forced the type of a symbol with no other type
5718 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
5720 * doc/internals.texi (CPU backend): Mention that
5721 line_separator_chars do not break up comments. Fix typos for
5722 LEX_AT and LEX_NAME descriptions. Document operands for
5723 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
5724 description of md_create_short_jump usage. Document argument for
5725 md_undefined_symbol.
5727 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5729 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
5730 (md_parse_option): Handle it.
5731 (md_show_usage): Document it.
5733 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5735 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
5736 opcode, for the instruction `pal19'. From Andrea Arcangeli
5739 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
5741 * config/tc-i386.c (i386_immediate): Move constant operand sizing
5743 (md_assemble): To here, before template operands are matched.
5744 Also ensure a constant immediate is sign extended when we know the
5745 size is at most 16 bits. This is to catch cases like "add
5746 $0xffc0,%ax" where we don't know the size, and thus that the
5747 immediate can be represented as Imm8S until after parsing the
5749 (i386_displacement): Similarly sign extend 16 bit constant
5751 (md_assemble): Relax 16-bit jump constant range check to suit sign
5752 extended displacements.
5754 2000-02-26 Andreas Jaeger <aj@suse.de>
5756 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
5758 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
5760 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
5761 call operands when intel_syntax.
5762 (intel_float_operand): Return 2 for "fi...".
5763 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
5764 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
5765 earlier "SHORT" change.
5766 (md_assemble): When determining suffix from Regs, exclude
5769 2000-02-24 Nick Clifton <nickc@cygnus.com>
5771 * configure: Add arm-wince, mips-pe and sh-pe targets.
5772 * configure: Regenerate.
5774 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
5776 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
5777 "pe-mips" for the mips-pe target.
5779 * config/tc-arm.c (insns): Change displacement encoded in BL
5780 and B instructions if the target port is arm-wince.
5781 (do_ldst): Do not bias the relocation offset if the target
5783 (md_pcrel_from): Add in missing relocation offset bias if the
5784 target os arm-wince.
5786 * config/tc-mips.c (mips_target_format): Support COFF flavour.
5787 (md_begin): Disable -G support for mips-pe target.
5788 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
5789 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
5792 * config/tc-sh.c (md_begin): sh-pe target is little endian.
5793 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
5794 assembler, just set the alignment to 4.
5796 * config/te-wince-pe.h: New file for WinCE targets. Define
5799 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
5801 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
5802 string instructions.
5803 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
5804 (i386_intel_memory_operand): After finding a segment override,
5805 check again for no `[' before looking for a displacement. Bomb if
5806 more than one displacement rather than silently discarding the
5807 second and subsequent ones. Free strings malloc'd by
5808 build_displacement_string.
5810 2000-02-24 Catherine Moore <clm@cygnus.com>
5812 * config/obj-som.c (obj_pseudo_table): Add "weak".
5813 (obj_som_weak): New routine.
5815 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
5817 * config/tc-i386.c (union i386_op): New.
5818 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
5819 Throughout file replace occurences of disps[n], imms[n], regs[n]
5820 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
5821 intel mode operand swapping. Add assert in regKludge and
5822 fake_zero_displacement code. Test i.types[n] when outputting
5823 displacements and immediates. Combine output of Disp16 with
5825 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
5826 when in intel mode by (not) reversing fsub and fdiv operands
5827 before the template search. This fails for single operand
5828 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
5829 undefined. Instead fix the base_opcode after we've found the
5830 template. Move base_opcode xor with found_reverse_match from
5831 opcode output code to before this fix so we test for the correct
5833 (md_assemble): Don't use strcmp when deciding to ignore the suffix
5834 check in intel mode. Instead compare opcodes.
5836 * config/tc-i386.h (TC_RELOC): Delete.
5837 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
5838 with equivalent call to reloc.
5840 * as.h (flag_m68k_mri): Move declaration after target include, and
5841 only declare when TC_M68K defined. Define as zero otherwise.
5842 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
5843 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
5844 Define as zero otherwise.
5845 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
5846 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
5847 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
5848 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
5849 testing whether defined.
5850 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
5851 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
5852 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
5853 rather than testing whether defined.
5854 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
5855 (parse_mri_cons): Declare and use only when TC_M68K.
5856 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
5857 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
5858 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
5860 * NEWS: Mention IBM 370 support.
5862 2000-02-23 Richard Henderson <rth@cygnus.com>
5864 * config/tc-i386.c (md_assemble): When swapping operands for
5865 intel_syntax, assume everything that's not Imm or Disp is a
5868 2000-02-23 Linas Vepstas <linas@linas.org>
5870 * config/tc-i370.c, config/tc-i370.h: New files.
5871 * Makefile.am: Add support for Linux/IBM 370.
5872 * configure.in: Likewise.
5873 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
5874 * config/obj-elf.c: Include elf/i370.h
5875 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
5877 * Makefile.in: Regenerate.
5878 * configure: Regenerate.
5880 * doc/c-i370.texi: New file.
5881 * doc/all.texi: Include it.
5882 * doc/as.texinfo: And here.
5883 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
5884 * doc/Makefile.in: Regenerate.
5886 2000-02-19 Michael Meissner <meissner@redhat.com>
5888 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
5889 determine if an instruction can be used in parallel with an ADDppp
5890 or SUBppp instruction.
5892 2000-02-22 Andrew Haley <aph@cygnus.com>
5894 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
5896 2000-02-22 Andrew Haley <aph@cygnus.com>
5898 * config/tc-mips.c (mips_gp32): New variable.
5899 (macro_build) Use mips_gp32.
5901 (md_longopts): Add "-mgp32" and "-mgp64".
5902 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
5904 (OPTION_M7900): Change offset
5905 (OPTION_NO_M7900): Ditto.
5907 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5909 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
5910 warning, and bump it to 1.
5912 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5914 From Brad Lucier <lucier@math.purdue.edu>:
5915 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
5918 2000-02-21 Catherine Moore <clm@cygnus.com>
5920 * config/tc-mips.c (MF_HILO_INSN): Define.
5921 (mips_7000_hilo_fix): Declare.
5922 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
5923 (md_parse_option): Check for 7000_HILO_FIX options.
5924 (OPTION_M7000_HILO_FIX): Define.
5925 (OPTION_NO_M7000_HILO_FIX): Define.
5926 * doc/c-mips.texi (-mfix7000): Describe.
5928 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5930 * listing.c (print_lines): Remove unused variable `end'.
5932 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
5933 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
5934 reloc_type when BFD_ASSEMBLER.
5935 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
5936 reloc_type when BFD_ASSEMBLER. Move common code out of switch
5937 statement and quell signed vs. unsigned comparison warning.
5939 2000-02-18 Nick Clifton <nickc@cygnus.com>
5941 * config/tc-d10v.c (find_opcode): Add a symbol's value to
5942 the computed frag offset, rather than overwriting it.
5944 Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5946 * config/tc-sh.c ("elf/sh.h"): Include.
5947 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
5948 (md.begin): Initialize target_arch.
5949 Only include opcodes in has table that match selected architecture.
5950 (parse_reg): Recognize register names for sh-dsp.
5951 (parse_at): Recognize post-modify addressing.
5952 (get_operands): The leading space is now optional.
5953 (get_specific): Remove FDREG_N support. Add support for sh-dsp
5954 arguments. Update valid_arch.
5955 (build_Mytes): Add support for SDT_REG_N.
5956 (find_cooked_opcode): New function, broken out of md_assemble.
5957 (assemble_ppi, sh_elf_final_processing): New functions.
5958 (md_assemble): Use find_cooked_opcode and assemble_ppi.
5959 (md_longopts, md_parse_option): New option: -dsp.
5960 * config/tc-sh.h (elf_tc_final_processing): Define.
5961 (sh_elf_final_processing): Declare.
5963 Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
5965 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
5966 the unwinder subspace. Save the current seg/subseg before creating
5969 2000-02-10 Nick Clifton <nickc@cygnus.com>
5971 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
5972 little endian targets.
5973 (INST_BYTE1): Redefine to handle big and little endian
5975 (cpu_type): New type: Select between M340 and M210.
5976 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
5977 instructions of the M340.
5978 (md_assemble): Add support for the MULSH and OPSR classes of
5980 (md_atof): Add support for little endian targets.
5981 (md_parse_option): Add support for -EL, -EB and -mcpu command
5983 (md_convert_frag): Add support for little endian targets.
5984 (md_apply_fix3): Add support for little endian targets.
5985 (md_number_to_chars): Add support for little endian targets.
5987 2000-02-10 Timothy Wall <twall@redhat.com>
5989 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
5990 defined, use it to verify the symbol just read should be a label.
5992 2000-02-10 Timothy Wall <twall@redhat.com>
5994 * app.c (do_scrub_chars): Handle "||" for parallel instructions
5995 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
5996 around colons when KEEP_WHITE_AROUND_COLON is defined.
5997 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
5998 and KEEP_WHITE_AROUND_COLON.
6000 2000-02-08 Timothy Wall <twall@redhat.com>
6002 * read.c (s_rept): Call do_repeat, which abstracts the repeat
6004 (do_repeat): New. Abstract repeat logic so that a "break" can be
6006 (end_repeat): New. Provide support for a "break" out of the
6008 * read.h: Add prototypes for new functions.
6010 2000-02-08 Timothy Wall <twall@redhat.com>
6012 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
6013 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
6014 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
6017 2000-02-08 Timothy Wall <twall@redhat.com>
6019 * read.c: Added elseif to directives table.
6020 * read.h: Added prototype for s_elseif.
6021 * doc/as.texinfo: Added description for elseif.
6022 * cond.c (s_elseif): New function
6024 2000-02-04 Timothy Wall <twall@redhat.com>
6026 * listing.c (print_lines): Remove conditionals causing bug in
6029 2000-02-03 Timothy Wall <twall@cygnus.com>
6031 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
6033 * frags.c (frag_new): Calculate fr_fix in octets
6034 (frag_now_fix) Return offset as target address offset (bytes).
6035 (frag_now_fix_octets) New - Return offset in octets (8-bit
6037 * frags.h: Added prototype for frag_now_fix_octets().
6038 Distinguish between octets and bytes in field descriptions.
6039 * listing.c (calc_hex): Account for octets vs bytes when
6040 printing addresses/offsets.
6041 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
6042 target is little-endian, print the octets in a word in big-endian
6043 order so that the display looks like a proper hexadecimal number,
6044 instead of having the octets reversed.
6045 * read.c (do_align): When recording alignment, alignment power
6046 should be in terms of target bytes (minimum addressible unit)
6048 (do_org) Convert ORG target address (byte) argument into an
6049 octet offset when generating a variable fragment.
6050 * symbols.c (resolve_symbol_value): Symbol final value
6051 converted to a target address offset (bytes) from its octet offset.
6052 * config/obj-coff.c (coff_frob_symbol): Symbol target address
6053 offset (bytes) is adjusted by the frag offset (octets) converted
6055 (coff_frob_section) Section alignment power is in terms of bytes;
6056 convert it to an octet alignment power when calculating size (and
6057 size mask) in octets. Don't modify the section size in order to
6058 "align" it for TI COFF, since that format has a different method
6059 for storing alignment information.
6061 2000-02-01 Timothy Wall <twall@cygnus.com>
6063 * stabs.c (generate_asm_file): Escape backslashes in stabs file
6064 entries, matching the way GCC generates them. If not escaped, the
6065 filename is encoded incorrectly.
6067 2000-01-31 Nick Clifton <nickc@cygnus.com>
6069 * config/tc-arm.c (reg_table): Add support for ATPCS register
6072 2000-01-31 Geoff Keating <geoffk@cygnus.com>
6074 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
6076 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
6078 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
6079 of a symbol when we really care about its value.
6081 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
6083 * config/tc-mcore.c (md_assemble): Give warning message if
6084 operands passes to instruction are more than the spec.
6086 2000-01-27 Thomas de Lellis <tdel@windriver.com>
6088 * config/tc-arm.c (armadjust_symtab): If the assembler is in
6089 Thumb mode but the label seen was not declared as '.thumb_func'
6090 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
6091 correct disassembly of Thumb code bounded by non function labels.
6093 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6095 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
6096 Add dependencies for e-i386aout.o. Fix 2 comment lines.
6098 * Makefile.in: Same here.
6101 * configure.in: Set bfd_gas for i386-aout when primary target
6102 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
6103 we may need the primary te_file. Remove incorrect comment.
6105 * configure: Regenerate.
6107 * config/e-i386aout.c: New file.
6109 * as.c (USE_EMULATIONS): Move to before print_version_id.
6110 (struct emulation): Add i386aout.
6111 (show_usage): Split text strings. Reformat -a text. Add --em
6115 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
6116 (aout_format_ops): New.
6119 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
6120 preprocessor conditional and add aout USE_EMULATIONS tests.
6121 (read_a_source_file): Don't pass error strings to printf as
6125 * gasp.c (exp_get_abs): Don't pass error strings to printf as
6127 (do_data): Same here.
6128 (process_file): And here.
6131 * symbols.c (colon): Rewrite "already defined" fatal message
6132 code for aout with USE_EMULATIONS.
6135 * config/obj-aout.c (OBJ_HEADER): Define.
6136 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
6138 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
6139 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
6141 (obj_aout_type): Expand S_SET_OTHER here too.
6142 (obj_read_begin_hook): Remove.
6143 (aout_pop_insert): New.
6144 (obj_aout_s_get_other): New.
6145 (obj_aout_s_get_desc): New.
6146 (aout_format_ops): New.
6149 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
6150 gets aout_pseudo_table.
6151 (aout_pseudo_table): Declare.
6152 (obj_read_begin_hook): Define.
6155 * config/obj-coff.c (obj_pseudo_table): Rename to
6157 (coff_pop_insert): Use coff_pseudo_table.
6158 (coff_sec_sym_ok_for_reloc): Remove.
6159 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
6160 and comment all zero entries and remove #if 0 code.
6163 * config/obj-coff.h (obj_pop_insert): Define.
6164 (coff_pseudo_table): Declare.
6167 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
6168 s_get_size, s_set_size. Comment all zero entries.
6171 * config/obj-elf.c (elf_s_get_other): New function.
6172 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
6173 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
6174 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
6176 (obj_elf_parse_section_letters): Don't pass error strings to
6177 printf as format arg.
6180 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
6182 (elf_s_get_other): Declare.
6183 (S_GET_OTHER) Define as elf_s_get_other if not already
6185 (S_SET_OTHER): Only define when not already defined.
6186 (elf_obj_read_begin_hook): Declare.
6187 (obj_read_begin_hook): Define.
6188 (elf_obj_symbol_new_hook): Declare.
6189 (obj_symbol_new_hook): Define.
6192 * config/obj-multi.h: Add copyright header and protect against
6193 multiple inclusion. Add * to all function pointers.
6194 (OBJ_HEADER): If defined, include it rather than other defines
6196 (obj_frob_file_after_relocs): Test for NULL.
6197 (obj_symbol_new_hook): Here too.
6198 (obj_sec_sym_ok_for_reloc): And here.
6199 (S_GET_OTHER): Define.
6200 (S_GET_DESC): Define.
6201 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
6202 (OBJ_MAYBE_ELF): Update comment.
6204 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
6205 OBJ_AOUT preprocessor conditional and handle emulation by
6206 testing OUTPUT_FLAVOR.
6207 (i386_displacement): Here too.
6208 (md_section_align): Similarly here.
6209 (i386_target_format): Conditionally compile when more than one
6210 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
6211 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
6212 (i386_displacement): Here too.
6215 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
6216 Define TARGET_FORMAT for aout only when not multi.
6219 * config/te-multi.h: Delete file as it's identical to te-generic.h
6221 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
6223 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
6224 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
6227 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
6229 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
6232 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
6234 * config/tc-mips.c (mips_do_align): New function.
6235 * config/tc-mips.h (md_do_align): Define.
6237 2000-01-10 Philip Blundell <philb@gnu.org>
6239 * doc/c-arm.texi (ARM Options): Fix typo.
6240 (ARM-Chars): Correct description of `#'. Mention that `;' is a
6241 line separator for Linux.
6242 * doc/as.texinfo (Comments): Mention the ARM.
6244 2000-01-10 Philip Blundell <pb@futuretv.com>
6246 * configure.in (arm*-*-conix*): New target.
6247 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
6249 * configure: Regenerate.
6251 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6253 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
6254 (obj_elf_visibility): New function.
6256 * doc/as.texinfo (Visibility): New node: document visibility
6259 For older changes see ChangeLog-9899