3 * doc/c-i386.texi: Fix a typo. Use the term 80-bit real rather
8 * write.c (subsegs_finish): Don't align the segments if there were
11 * config/obj-coff.c (c_symbol_merge): Correct number of bytes when
12 copying aux information.
14 * expr.c (make_expr_symbol): Catch attempts to turn an O_big
15 expression into a symbol.
19 * config/tc-i386.c (mode_from_disp_size): Change arg and return
21 (md_assemble): Change type used to store offsets from unsigned
23 (i386_operand): Switch error check to only call RESTORE_END_STRING
24 once after parse_register.
28 * config/tc-v850.c (md_show_usage): Changed format to match that
31 * as.c (show_usage): Changed format to match that of gcc, ld, etc.
35 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't adjust vtable
37 (md_apply_fix_2): Force the symbol of the vtable reloc to be
42 * doc/Makefile.am (MAINTAINERCLEANFILES): Define.
43 * doc/Makefile.in: Rebuild.
47 * config/tc-mips.c (mips_ip, case 'i' and 'j'): Mask off high bits
49 (mips_ip, case 'u'): Move range check after code to mask
50 off bits in %hi/%lo expressions. Mask off high bits for
55 * doc/Makefile.am (gasver.texi): New target.
56 (as.info, as.dvi): Depends upon gasver.texi.
57 * doc/as.texinfo: Include gasver.texi. Mention version number on
58 title page and in top node.
59 * doc/Makefile.in: Rebuild.
63 * listing.c (listing_listing): For EDICT_LIST, skip all lines up to
64 but not including the line containing the edict.
65 * listing.h (LISTING_EOF): New.
66 * input-scrub.c (input_scrub_next_buffer): Call it.
70 * config/tc-i386.c (i386_operand): Don't set the size of an
71 immediate address based solely on the suffix and the mode.
73 * config/tc-i386.c (md_assemble): Add assertion to make sure
74 overlap2 does not set Imm.
76 * config/tc-i386.c (space_chars): Remove. The scrubber converts
77 sequences of whitespace to a single space.
78 (is_space_chars): Just compare with space.
79 (md_begin): Don't initialize space_chars.
80 (md_assemble): Just skip a single whitespace character.
81 (i386_operand): Rewrite base-index parsing to use new
82 parse_register, and to skip white space. Skip white space in a
83 number of other places too. Don't give error message if
85 (parse_register): Change reg_string parameter to be non-const.
86 Add end_op parameter. Skip white space after the `%', and return
87 end of register string. Give error message here rather than
93 * expr.c (op_encoding): Make const.
94 (expr_set_precedence): New function.
95 (expr_begin): Don't set operator rankings, just call
97 * expr.h (expr_set_precedence): Declare.
98 * read.c (s_mri): Call expr_set_precedence.
102 * doc/as.texinfo (Statements): Remove paragraph discussing
103 continuing lines with a backslash. This hasn't worked for years,
108 * obj-vms.c: Add C++ support with ctors/dtors sections. Add weak
110 (Ctors_Symbols, Dtors_Symbols): New symbol chains.
111 (ps_CTORS, ps_DTORS): New section types.
112 (vms_fixup_xtors_section): New function
113 (Ctors_Psect, Dtors_Psect): Define.
114 (IS_GXX_XTOR): Define
115 (global_symbol_directory): Change check of gxx_bug_fixed to 0.
116 Filter static constructors/destructors and add to
117 Ctors_Symbols/Dtors_Symbols chain.
118 (vms_write_object_file): Write Ctors_Symbols/Dtors_Symbols to
121 * tc-alpha.h (TARGET_FORMAT): Rename "evax-alpha" to "vms-alpha".
122 * makefile.vms: Merge vax/vms support.
126 * config/obj-elf.c (obj_elf_vtable_inherit, obj_elf_vtable_entry): New.
127 (elf_pseudo_table): Add them.
128 * config/tc-mips.c (mips_force_relocation): Force vtable relocs.
129 (md_apply_fix): Accept them.
130 (mips_fix_adjustable): Don't adjust them.
131 (tc_gen_reloc): Mung BFD_RELOC_VTABLE_ENTRY for Rel.
132 * config/tc-ppc.c (md_apply_fix3): Accept vtable relocs.
133 * config/tc-ppc.h (TC_FORCE_RELOCATION_SECTION): Force vtable relocs.
134 (tc_fix_adjustable): Don't adjust them.
138 * Makefile.am (CGEN_CPU_PREFIX): New variable.
140 * Makefile.in: Regenerate.
141 * configure.in: AC_SUBST cgen_cpu_prefix.
142 * configure: Regenerate.
146 * config/tc-sh (COND_JUMP_DELAY, COND12_DELAY_LENGTH): Define.
147 Changed all users of COND12_DELAY.
152 * config/tc-mn10300.c (r_registers): Fix typo and add some missing
156 start-sanitize-branchbug4011
159 * config/tc-mips.c (prev_insn_labels): New.
160 (mips_fix_4011_branch_bug): New.
161 (append_insn): Watch for and handle branchs with labels.
162 (mips_no_prev_insn): Initialize prev_insn_labels.
163 (md_longopts,md_parse_option): Add {no-}fix-4011-branch-bug option.
165 end-sanitize-branchbug4011
168 * config/tc-mn10300.c (set_arch_mach): New function.
169 (md_pseudo_table): Add pseudo-ops to set the current machine type.
170 (md_begin): Default to mn10300 mode.
171 (md_assemble): Only accept instructions for the core mn10300
172 chip and the active machine type.
176 * subsegs.h (segment_info_type): Give the struct a name.
177 * config/tc-h8300.h (tc_reloc_mangle): Add prototype.
178 * config/tc-h8500.h (tc_reloc_mangle): Declare.
179 * config/tc-sh.h (sh_coff_reloc_mangle): Add prototype.
180 * config/tc-w65.h (tc_reloc_mangle): Declare.
181 * config/tc-z8k.h (tc_reloc_mangle): Declare.
185 * config/tc-v850.c (v850_comm): Restore old section
186 after common processing.
190 * config/obj-vms.c (Create_VMS_Object_File): Force binary file.
195 * config/tc-mn10300.c (r_registers): Add a0-a3,d0-d3 and e0-e7
196 as synonyms for "rN" registers.
197 (xr_registers): Add mcrh, mcrl, mcvf, mdrq and sp as synonyms
199 (md_assemble): Fix typo computing the size of relocations.
204 * config/tc-h8300.c (do_a_fix_imm, build_bytes): Replace cast to
205 char with code that explicitly sign-extends.
209 * config/tc-v850.c (md_begin): Restore text section as the current
210 section after creating call table sections.
212 * config/obj-coff.h (SYM_AUXINFO): New macro to conceal ugly
215 * config/obj-coff.c (c_symbol_merge): Replace complex expresion
216 with call to macro SYM_AUXINFO.
220 * Makefile.am (install-exec-local): Don't let EXEEXT interfere
221 with the program transform name.
222 * Makefile.in: Rebuild.
226 * config/obj-coff.c (c_symbol_merge): Fix copying of auxiliary
232 * config/tc-mn10300: Handle FMT_D10 instructions.
237 * config/tc-i386.c (i386_operand): Be prepared for a space between
238 the open parenthesis and the start of the register operand,
239 because of the June 16 change.
244 * config/tc-mips.c (mips_ip): Allow VU vi and vf registers
245 to be named with a `$' prefix. Likewise, allow CFC2/CTC2 to
246 refer to "$viNN" registers.
251 * config/tc-sh.c (md_apply_fix): Handle weak symbols correctly if
256 * config/tc-d30v.c (d30v_align): Always perform alignment request,
257 even if it is belived to be unnecessary.
262 * config/tc-mips.c (hilo_interlocks): Check mips_5900, not
269 * config/tc-mn10300.c (md_assemble): Handle FMT_D8 and FMT_D9
270 instruction formats. Handle MN10300_OPERAND_24BIT modifier.
271 (mn10300_insert_operand): Likewise.
272 (mn10300_check_operand): Likewise.
277 * write.c (adjust_reloc_syms): Never adjust relocs against weak
279 * config/tc-mips.c (md_apply_fix): Adjust accordingly.
284 * config/tc-mn10300.c (r_registers): Add missing registers.
285 (xr_registers): New set of registers.
286 (xr_register_name): New function.
287 (md_assemble): Handle XRREG and PLUS operands. Tweak handling of
288 RREG operand insertion. Handle new D6 and D7 instruction formats.
290 * config/tc-mn10300.c (mn10300_insert_operand): Do not hardcode the
291 shift amount for a repeated operand. The shift amount for the
292 repeated copy comes from the size of the operand.
296 * config/tc-h8300.c (get_operand): Fix typos in ldm/stm support.
301 * config/tc-dvp.c (md_apply_fix3): Handle new relocs
302 BFD_RELOC_MIPS_DVP_11_S4, BFD_RELOC_MIPS_DVP_U15_S3.
308 * config/tc-mn10300.c (r_registers): New register table.
309 (r_register_name): New function.
310 (md_assemble): Handle new am33 operand types.
315 * config/tc-mips.c (md_show_usage): Fix -mipsN usage.
319 * app.c (do_scrub_begin): If tc_symbol_chars is defined, treat all
320 characters in it as LEX_IS_SYMBOL_COMPONENT.
321 * config/tc-i386.h (tc_symbol_chars): Define.
322 (extra_symbol_chars): Declare.
323 * config/tc-i386.c (extra_symbol_chars): Define.
324 (comment_chars): Don't use '/' as comment start if TE_LINUX.
325 (line_comment_chars): Set to '/' if TE_LINUX.
326 * doc/c-i386.texi (i386-prefixes): Update.
327 * doc/internals.texi (CPU backend): Document tc_symbol_chars.
331 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
332 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
337 * config/tc-dvp.c (create_vuoverlay_section): Don't set a non-zero
343 * config/tc-d10v.c (md_apply_fix3): Checking displacement
344 constraint in instructions REP & REPI.
348 * config/tc-d30v.c (md_apply_fix3): Catch BFD_RELOC_8,
349 BFD_RELOC_16, BFD_RELOC_64 and issue appropriate error messages.
351 (check_range): If the operand is shifted, then shift the number
352 before checking its range.
354 * write.c (adjust_reloc_syms): Add more checks for NULL pointers.
356 * config/tc-v850.c (v850_comm): Set SEC_COMMON bit on special
361 * config/tc-v850.c (v850_comm): Create special sections as needed.
365 * config/tc-d10v.c (write_2_short): Addition of swapping
366 instructions for sequential and reverse sequential order when
367 given order is not possible.
372 * config/tc-dvp.c (assemble_vu): Print better error message if
373 lower insn is missing.
378 * Makefile.am: Rebuild dependencies.
379 (DEP_INCLUDES): Fix reference to intl build directory.
380 * Makefile.in: Rebuild.
384 * doc/c-i386.texi: Update 16 bit documentation.
386 * config/tc-i386.h: Change Data16 to Size16, Data32 to Size32,
387 IgnoreDataSize to IgnoreSize as they are used for address size as
389 * config/tc-i386.c: Likewise. Add code to reject addr32/data32 in
390 32-bit mode, similarly addr16/data16 and variants.
394 * config/tc-d30v.c (md_assemble): Fix handling of reverse
395 sequential word multiply instructions.
397 (do_assemble): Add extra command line argument, to allow mul32
398 attribute to be preserved across parallel insns.
399 (md_assemble): Insert NOPs between explicitly parallel insns which
400 contain an 32 bit multiply and a 16 multiply.
405 * config/tc-dvp.c (dvp_relax_frag): Adjust target address by stretch.
410 * config/tc-i386.c: REPNE renamed to REPNE_PREFIX_OPCODE, and
413 * config/tc-i386.c (reloc): Add braces.
415 * config/tc-i386.c (struct _i386_insn): Rename bi to sib to be
416 consistent with Intel naming.
417 * config/tc-i386.h (base_index_byte): Rename to sib_byte. Don't
418 use bitfields in sib_byte.
419 (modrm_byte): Don't use bitfields here either.
421 * config/tc-i386.c (current_templates): Add const.
422 (parse_register): Add const to return, param, and char *s.
423 (i386_operand): Add const to reg_entry *r.
424 * config/tc-i386.h (templates): Add const to start, end.
426 Inspired by code for 16 bit gas support from Martynas Kunigelis
428 * config/tc-i386.c (md_assemble): Add full support for 16 bit
429 modrm, and Jump, JumpByte, JumpDword, JumpInterSegment insns.
430 (uses_mem_addrmode): Remove.
431 (md_estimate_size_before_relax): Add support here too.
432 (md_relax_table): Rewrite interface to md_relax for 16 bit
434 (BYTE, WORD, DWORD, UNKNOWN_SIZE): Remove.
435 (opcode_suffix_to_type): Remove.
436 (CODE16, SMALL, SMALL16, BIG, BIG16): Define.
437 (SIZE_FROM_RELAX_STATE): Modify to suit above.
438 (md_convert_frag): Likewise.
439 (i386_operand): Add support for 16 bit base/index regs,
440 immediates, and displacements. Remove some unnecessary casts, and
441 localise end_of_operand_string, displacement_string_start,
442 displacement_string_end variables. Add GCC_ASM_O_HACK.
443 * config/tc-i386.h (NO_BASE_REGISTER_16): Define.
445 * config/tc-i386.c (prefix_hash): Remove.
446 (md_begin): Rewrite without obstacks. Remove prefix hash table
447 handling. Rewrite lexical table handling.
448 (i386_print_statistics): Don't print prefix statistics.
449 (md_assemble): Rewrite instruction parser so that line is not
450 converted to lower case. Don't do a hash_find for prefixes,
451 instead recognise them via opcode modifier.
452 (expecting_operand, paren_not_balanced): Localise variables.
453 * config/tc-i386.h (IsPrefix): Define.
454 (prefix_entry): Remove.
456 * config/tc-i386.h (PREFIX_SEPERATOR): Don't define.
457 * config/tc-i386.c (PREFIX_SEPARATOR): Define here instead, using
458 '\\' in case where comment_chars contains '/'.
460 * config/tc-i386.c (MATCH): Ensure given operand and template
461 match for JumpAbsolute. Makes e.g. `ljmp table(%ebx)' invalid;
462 you must write `ljmp *table(%ebx)'.
465 * config/tc-i386.c (BFD_RELOC_16, BFD_RELOC_16_PCREL): Define
466 as 0 ifndef BFD_ASSEMBLER.
467 (md_assemble): Allow immediate operands without suffix or
468 other reg operand to default in size to the current code size.
473 * config/tc-v850.c (md_begin): Restore creation of
474 .call_table_text and .call_table_data sections.
479 * config/tc-d30v.c (md_assemble): Set execution type to unknown
480 after emitting a word of noops.
484 * config/tc-i386.c (mode_from_disp_size): Disp16 is mode 2.
485 (i386_operand): Simplify checks for valid base/index combinations.
486 Disallow `in 4(%dx),%al'.
488 * config/tc-i386.c (struct _i386_insn): Make regs, base_reg, and
490 (add_prefix): Change parameter from char to int.
492 * config/tc-i386.h (Ugh): Define opcode modifier.
493 * config/tc-i386.c (md_assemble): Print warnings for Ugh insns.
495 * config/tc-i386.c (md_assemble): Rewrite MATCH and
496 CONSISTENT_REGISTER_MATCH macros to check register types more
497 thoroughly. Check for illegal suffix/operand combinations
498 when matching insns with operands. Handle new `s' suffix, and
499 associated FloatMF opcode modifier for float insns with memory
501 * config/tc-i386.h (FloatMF): Define new opcode modifier.
502 (No_sSuf, No_bSuf, No_wSuf, No_lSuf): Likewise.
503 (SHORT_OPCODE_SUFFIX, LONG_OPCODE_SUFFIX): Define.
504 * config/tc-i386.c: Rename WORD_PREFIX_OPCODE to
505 DATA_PREFIX_OPCODE throughout.
507 * config/tc-i386.c (REGISTER_WARNINGS): Define.
508 (md_assemble): Rewrite suffix/register operand checking code to be
509 more thorough. Remove Abs8,16,32. Change occurrences of Mem to
510 AnyMem, the better to grep.
512 (i386_operand): Don't set Mem bits in i.types[this_operand] when
513 given a memory operand. Don't set Abs bits either.
514 (type_names): Remove Mem*, Abs*.
515 * config/tc-i386.h (Mem8, Mem16, Mem32, Abs8, Abs16, Abs32): Don't
516 define opcode_modifiers as these cases are handled by Disp8,
517 Disp16, Disp32 and suffix checks.
518 (COMES_IN_BOTH_DIRECTIONS): Remove.
519 (FloatR): Define. It's OK to share the bit with ReverseRegRegmem.
521 * config/tc-i386.c (md_assemble): Don't emit operand size prefix
522 if IgnoreDataSize modifier given. Remove ShortformW modifier
523 test. Add test for ShortForm in W base_opcode modification.
524 Merge Seg2ShortForm and Seg3ShortForm code.
525 * config/tc-i386.h (ShortFormW): Remove.
526 (IgnoreDataSize): Define.
530 * config/tc-d30v.c (md_assemble): Store previous segment state
531 with previous instruction.
535 * config/tc-i386.c (SCALE1_WHEN_NO_INDEX): Define.
536 (ebp, esp): Remove static variables.
537 (MATCH): Remove test for InOutPortReg.
538 (i386_operand): Properly handle InOutPortReg here instead.
539 Disallows `inb (%dx,2)', `inb %es:(%dx)' and `mov (%dx),%ax'
540 (md_assemble): Simplify and correct modrm and sib generation.
541 (i386_operand): Add warning for scale without index.
542 Rewrite checks for valid base/index combinations.
544 * config/tc-i386.c (END_STRING_AND_SAVE): Protect arguments of
545 macros and enclose in do while(0).
546 (RESTORE_END_STRING): Likewise.
547 (md_assemble): Add one to printed operand number so we start
548 from 1 not 0. Add some more gettext invocations.
549 (i386_operand): Fix `%%s' -> `%%%s'. Inc printed operand
552 * config/tc-i386.h (WAIT_PREFIX, LOCKREP_PREFIX, ADDR_PREFIX,
553 DATA_PREFIX, SEG_PREFIX): Define.
554 * config/tc-i386.c (struct _i386_insn): Remove wait_prefix field.
555 (check_prefix): Remove function.
556 (add_prefix): New function. Add prefix to i.prefix as well as
558 (md_assemble): Changes for add_prefix. Remove hack for wait
559 prefix, instead always output prefixes in fixed order. Test
560 for jcxz/loop when selecting between word & dword operations,
561 and add address size prefix rather than operand size prefix.
562 Remove operand -> address size hack when emitting jcxz/loop.
563 (i386_operand): Remove O_Absent check as it's done in expr.
567 * configure.in: Recognize m5200 as a cpu_type of m68k.
568 * aclocal.m4: Rebuild with current libtool.
569 * configure: Rebuild.
573 * config/tc-m68k.c (md_estimate_size_before_relax): Add more calls
574 to relaxable_symbol to prevent references to external symbol from
579 * config/tc-m68k.c (relaxable_symbol): If TARGET_OS is "elf", all
580 symbols are relaxable.
585 * config/tc-dvp.c (md_begin): Change alignment of .DVP.ovlytab to 4.
586 (create_vuoverlay_section): Entries are 4 bytes not 8.
591 * config/tc-v850.c (md_begin): Don't create special
596 * config/tc-mips.c (macro): For div and udiv, close the
597 reorder block as soon as possible.
602 * macro.c (macro_mri_mode): New function.
603 * macro.h (macro_mri_mode): Declare.
604 * read.c (s_mri): Call macro_mri_mode when switching in and out of
609 * config/tc-alpha.c (s_alpha_comm): Allow alignment parameter in
612 * config/tc-alpha.c (s_alpha_comm): Defer restoring character
613 until after xstrdup in OBJ_EVAX case.
617 * config/tc-vax.c (md_create_short_jump): Fix off by two bug in
618 offset calculation. Also, use VAX_BRW from vax-inst.h instead
619 of hardcoded magic number.
620 (md_create_long_jump): Use VAX_JMP and VAX_ABSOLUTE_MODE macros.
624 * read.c (do_s_func): New function.
626 * read.h (do_s_func): Add prototype.
628 * config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc.
629 (s_dvp_func): New function.
635 * config/tc-mips.c (hilo_interlocks): The r5900 has HILO interlocks.
640 * config/tc-m32r.c (m32r_do_align): Only fill code sections with
641 nops if fill pattern not specified.
646 * config/te-go32.h (TE_GO32): Define.
647 * config/tc-i386.h (LOCAL_LABEL): Don't define if TE_GO32.
651 Implement .func/.endfunc pseudo-ops.
652 * read.h (stabs_generate_asm_func,stabs_generate_asm_endfunc): Declare.
654 * read.c (potable): Add .func,.endfunc.
655 (s_func): New function.
656 * stabs.c (stabs_generate_asm_func,stabs_generate_asm_endfunc): New
658 (in_doc_func_p,current_function_label): New static globals.
659 (stabs_generate_asm_lineno): Emit function relative stabs if in .func.
662 * config/tc-dvp.h (ELF_TC_SPECIAL_SECTIONS): Delete .vuoverlay_table.
663 (VUOVERLAY_SECTION_PREFIX,VUOVERLAY_TABLE_SECTION_NAME): Delete.
664 * config/tc-dvp.c (vuoverlay_string_section): New static global.
665 (md_begin): Create overlay string section.
666 (create_vuoverlay_section): Put section name in overlay string section.
667 Put string's offset in overlay table entry. Set SEC_CODE flag for
673 * config/tc-a29k.h (WORKING_DOT_WORD): Define.
674 * config/tc-alpha.h (WORKING_DOT_WORD): Define.
675 * config/tc-arm.h (WORKING_DOT_WORD): Define.
676 * config/tc-h8300.h (WORKING_DOT_WORD): Define.
677 * config/tc-h8500.h (WORKING_DOT_WORD): Define.
678 * config/tc-hppa.h (WORKING_DOT_WORD): Define.
679 * config/tc-i860.h (WORKING_DOT_WORD): Define.
680 * config/tc-i960.h (WORKING_DOT_WORD): Define.
681 * config/tc-tic30.h (WORKING_DOT_WORD): Define.
682 * config/tc-w65.h (WORKING_DOT_WORD): Define.
683 * config/tc-z8k.h (WORKING_DOT_WORD): Define.
684 * config/tc-a29k.c: Don't define md_short_jump_size,
685 md_long_jump_size, md_create_short_jump or md_create_long_jump.
686 * config/tc-alpha.c: Likewise.
687 * config/tc-alpha.h: Likewise.
688 * config/tc-arm.c: Likewise.
689 * config/tc-h8300.c: Likewise.
690 * config/tc-h8500.c: Likewise.
691 * config/tc-hppa.c: Likewise.
692 * config/tc-i860.c: Likewise.
693 * config/tc-i960.c: Likewise.
694 * config/tc-ppc.c: Likewise.
695 * config/tc-sh.c: Likewise.
696 * config/tc-sparc.h: Likewise.
697 * config/tc-tic30.c: Likewise.
698 * config/tc-w65.c: Likewise.
699 * config/tc-z8k.c: Likewise.
703 * config/tc-vax.c (_): Delete this macro used for placeholder
704 values in vax_operand_width_size; it conflicts with the _() macro
705 used for internationalization.
709 * symbols.c (symbol_find_base): Fix case insensitive symbol name
713 * struc-symbol.h (struct broken_word): Add seg and subseg fields.
714 * read.c (emit_expr): Initialize seg and subseg fields of a new
716 * write.c (write_object_file): Switch to the appropriate segment
717 and subsegment when processing a broken word.
719 * config/tc-m68k.c (mri_assemble): New static function.
720 (build_mri_control_operand): Call mri_assemble rather than
722 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
723 (s_mri_endf, s_mri_endw): Likewise.
728 * config/tc-dvp.h (ELF_TC_SPECIAL_SECTIONS): Add .vuoverlay_table.
729 (dvp_frob_file): Declare.
730 (tc_frob_file): Define.
731 (VUOVERLAY_SECTION_PREFIX,VUOVERLAY_TABLE_SECTION_NAME): New macros.
732 * config/tc-dvp.c (VUOVERLAY_START_PREFIX): New macro.
733 (vuoverlay_section_name,create_vuoverlay_section): New functions.
734 (vuoverlay_section,vuoverlay_table_section): New static globals.
735 (ovlysym_table): New static global.
736 (md_begin): Create .vuoverlay_table section.
737 (assemble_vif): Call create_vuoverlay_section for each mpg.
738 (dvp_frob_label): Record vu labels in ovlysym_table for later
739 movement from absolute section to their overlay section.
740 (dvp_frob_file): New function.
741 (md_apply_fix3): For 8/16/32/64 bit relocs, only process if fx_done.
746 * read.c (s_org): Call md_flush_pending_output if it is defined.
748 * config/tc-sparc.c (md_show_usage): Add \n\ to new string.
752 * config/tc-sparc.c (OPTION_LITTLE_ENDIAN_DATA): New.
753 (md_parse_option): Add for same.
754 (sparc_md_end): Set bfd_mach_sparc_sparclite_le.
755 (md_apply_fix3, tc_gen_reloc): Allow BFD_RELOC_SPARC_32LE.
756 (cons_fix_new_sparc): Added to create BFD_RELOC_SPARC_32LE.
758 * config/tc-sparc.h (cons_fix_new_sparc): Added.
763 * config/tc-dvp.c (assemble_one_insn): Parse suffix operands
764 even when missing in input string.
769 * config/tc-arm.c (find_real_start): Relax definition of local
774 * config/tc-d30v.c (d30v_align): Apply address adjustment to all
775 symbols at the given address, not just the last one specified.
779 * config/tc-sparc.c (sparc_handle_align): Use number_to_chars_bigendian
780 or number_to_chars_littleendian to write data.
784 * config/tc-v850.c (md_assemble): Remove artificially created
785 register name symbols.
789 * write.c (fixup_segment): Change "segment" to "section" in
794 * write.c (fixup_segment): Change sym1-sym2 message again.
799 * config/tc-mips.c (validate_mips_insn): Handle ';' opcode completer.
804 * config/tc-mips.c (macro): For R5900, use "B" operand format for
805 "break" instructions generated in macro (div etc.) instructions.
810 * write.c (fixup_segment): Improve error message for sym1-sym2
811 errors when sym1 is in a different segment from sym2.
815 * config/tc-m32r.c (warn_unmatched_high): New static local.
816 (OPTION_WARN_PARALLEL): Rename from OPTION_WARN.
817 (OPTION_NO_WARN_PARALLEL): Rename from OPTION_NO_WARN.
818 (md_longopts): Recognize --{no-,}warn-unmatched-high.
819 (md_parse_option): Likewise.
820 (md_show_usage): Likewise.
821 (m32r_frob_file): Likewise.
823 * read.c (generate_file_debug,generate_lineno_debug): New functions.
824 (read_a_source_file): Call them.
825 * read.h (stabs_generate_asm_file): Declare.
826 * stabs.c (stabs_generate_asm_file): New function.
827 (generate_asm_file): New function.
828 (stabs_generate_asm_lineno): Move file name handling into
833 * config/tc-d30v.c (cur_mul32_p, prev_mul32_p): Make static.
834 (d30v_current_align, d30v_current_align_seg): New variables.
835 (d30v_last_label): New variable.
836 (d30v_align, s_d30v_align, s_d30v_text): New functions.
837 (s_d30v_data, s_d30v_section): Likewise.
838 (md_pseudo_table): Call them.
839 (md_begin): Initialize d30v_current_align_seg.
840 (md_assemble): Call d30v_align when needed by known current alignment.
841 (d30v_frob_label, d30v_cons_align): New functions.
842 * config/tc-d30v.h (md_do_align): Remove.
843 (tc_frob_label): Call d30v_frob_label.
844 (md_cons_align): New.
846 * config/tc-d30v.c (find_format): Convert complex expressions to
847 expression symbols before processing. Clean up code formatting.
852 * config/tc-dvp.c (md_begin): Set type of output file to mips:r5900.
857 * po/Make-in (install-info): New target.
861 * config/tc-mn10200.c (md_assemble): Handle "bra" just like "jmp"
863 * config/tc-mn10300.c (md_assemble): Likewise.
867 * Makefile.am: Update with `make dep-am'.
868 (HFILES): Add cgen.h.
869 (cgen.o): Depend on cgen.h.
870 * Makefile.in: Regenerate.
872 * cgen.c (cgen_md_apply_fix3): Don't pass newline to as_warn_where.
876 * gasp.c (grab_label): Permit a label to be a preprocessor
877 variable by permitting a label to start with a backslash.
881 * config/tc-mips.c (validate_mips_insn): Removed hack
882 for previously inaccessible bitfields in some INSN_TRAP
888 * config/tc-d30v.c (do_assemble): Abort with error message
889 if opcode operands do not match.
894 * config/tc-mips.c (macro_build, validate_mips_insn): Implement
895 'q' operand format for 20-bit "break"/"sdbbp" instructions.
896 (mips_ip): Truncate overflowed "break" 'c' operand. Implement
897 similar new 'q' operand.
901 * cgen.c (cgen_asm_finish_insn): Fix typo.
906 * cgen.c: Include it.
907 (MAX_FIXUPS): Renamed to CGEN_MAX_FIXUPS.
908 (cgen_asm_finish_insn): Result is now void. New arg `result'.
910 * config/tc-m32r.c: Include cgen.h.
911 (m23r_insn): New members num_fixups,fixups.
913 (assemble_parallel_insn): Initialize debug_sym_link for each insn.
914 (md_assemble): Simplify code to pack two insns in parallel.
915 When swapping two insns, update their fixups.
921 * config/tc-dvp.c: Delete inclusion of "sysdep.h".
926 * config/tc-hppa.c (md_apply_fix): Slightly rework some code
927 to avoid compiler warning.
931 * makefile.vms: Run dec c with /nodebug. Pass CC value when
934 * makefile.vms (OBJS): Add ehopt.obj
938 * doc/c-vax.texi: Correct and extend vax/vms documentation.
943 * config/tc-d30v.c (do_assemble): Accept a new parameter requesting
945 (md_assemble): Set it for explicitly packed insns.
950 * config/obj-coff.c (c_symbol_merge): Do not take address of
951 native fields when performing the memcpy.
955 * config/tc-mips.c (macro,macro2): Implement
956 M_DMULO_I, M_MULO_I, M_DMULOU_I, and M_MULOU_I.
960 * config/tc-m68k.h (TC_RELOC_RTSYM_LOC_FIXUP): Changed to keep
961 relocations against globally visible symbols.
962 * config/tc-m68k.c (relaxable_symbol): New macro.
963 (m68k_ip, md_estimate_size_before_relax): Use it.
964 (tc_m68k_fix_adjustable): Also handle weak symbols.
968 * config/tc-i386.h (TC_RELOC_RTSYM_LOC_FIXUP): Keep relocs for all
969 references to externally visible symbols.
970 * config/tc-i386.c (md_apply_fix3): When OBJ_ELF, don't add the
971 values in twice for a PC relative reloc if the symbol is
974 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_AOUT]: When PIC,
975 don't adjust a PC relative reloc against an externally visible
977 * config/tc-sparc.c (md_apply_fix3): When generating a.out PIC,
978 for a PC relative fixup against an externally visible defined
979 symbol, arrange to store object file and addend values as though
980 the symbol were not defined.
981 (tc_gen_reloc): Likewise.
985 * read.c (sizeof_leb128): Referenced externally by write.c so
990 * config/tc-m32r.c ({,expand_}debug_sym): New functions to record
991 and expand a 'debug' symbol associated with the next instruction
992 that does not cause a short instruction to be filled with a NOP.
993 (md_pseudo_table): Add support for .debugsym.
994 (assemble_parallel_insn): Add calls to expand_debug_sym as
996 (md_assemble): Ditto.
1000 * as.c (main): Conditionally call setlocale.
1001 * gasp.c (main): Likewise.
1002 * asintl.h: Include <locale.h> if HAVE_LOCALE_H.
1003 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
1008 * config/tc-d30v.c (md_show_usage): Correct gettext typo.
1013 * config/tc-hppa.c: Change all calls to bzero to use memset.
1014 (pa_ip): Add cast to avoid warning.
1015 (tc_gen_reloc, md_apply_fix): Likewise.
1016 (pa_find_space_by_number): Likewise.
1017 (hppa_force_relocation): Likewise.
1018 (pa_block): Change i to unsigned int.
1019 * config/obj-som.h (obj_som_copyright): Declare.
1023 * ecoff.c (ecoff_build_lineno): Do not use dummy first_lineno
1024 for line numbers for assembly source.
1028 * configure.in: Change version number to 2.9.4
1029 * configure: Rebuild.
1033 * cgen.c (cgen_asm_finish_insn): New arg relax_p. All callers updated.
1034 start-sanitize-m32rx
1035 * config/tc-m32r.c (assemble_parallel_insn): No need to try
1036 non-relaxable variant any more. Simplify test for nop insn.
1037 (md_assemble): Only scan operands if m32rx. Set orig_insn in case
1038 scan of operands yields an insn different from original (e.g. a macro).
1039 Fix call to can_make_parallel.
1044 * ecoff.h: Change symbolS in function declaration to struct
1049 * config/tc-sh.c (parse_reg): Add casts to avoid warnings.
1050 (md_convert_frag): Fix i18n typo.
1054 * ecoff.c (ecoff_get_cur_proc_sym): New function.
1055 * ecoff.h: Protoype it.
1056 * config/tc-alpha.c [ELF] (s_alpha_prologue): New function.
1057 [EVAX] (s_alpha_prologue): Delete.
1058 (md_pseudo_table): Update.
1062 * config/tc-i960.c (md_assemble): Change bp_error_msg from static
1063 array to local pointer.
1064 (get_args, parse_expr): Add casts to avoid warnings.
1068 * read.c (s_set): Cast xmalloc return value to fragS *.
1069 * config/tc-m68k.c (m68k_ip): Function made static to match
1070 previous forward declaration.
1071 (insert_reg, init_regtable, md_convert_frag_1): Likewise.
1075 * config/tc-v850.c: Add internationalisation macros to error
1078 * config/tc-m32r.c (can_make_parallel): Add internationalisation
1079 macros to error strings.
1083 * config/tc-ppc.c (ppc_fix_adjustable): Correct test of whether a
1084 reloc is in the TOC csect.
1085 (md_apply_fix3): Correct gettext typo.
1089 * config/tc-arm.c (find_real_start): Ignore symbols starting with
1090 .L - they are local labels and the branches are not really
1091 function calls but rather far jumps.
1096 * config/tc-dvp.c (dvp_frob_label): Don't emit _$ versions of
1097 local labels ($ prefix).
1102 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
1106 * config/tc-i386.c (md_assemble): Print operand number rather than
1107 using ordinal_names.
1108 (i386_operand): Likewise.
1112 * Makefile.am (INTLLIBS): Define to work around apparent automake
1114 All Makefiles: Regenerated.
1116 * Many files: Added gettext invocations around user-visible
1118 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
1119 HAVE_LC_MESSAGES): Define.
1120 * dep-in.sed: Added asintl.h.
1121 * po/Make-in: New file.
1122 * gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
1124 * read.c (Z_): Renamed from `_'.
1125 * Makefile.am (SUBDIRS): Added po.
1126 (POTFILES): new macro.
1127 (po/POTFILES.in): New target.
1128 ($(OBJS)): Added asintl.h.
1130 (INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
1131 (as_new_LDADD): Added $(INTLLIBS).
1132 (as_new_DEPENDENCIES): Added $(INTLDEPS).
1133 (gasp_new_LDADD): Added $(INTLLIBS).
1134 (gasp_new_DEPENDENCIES): New macro.
1135 * configure, aclocal.m4: Rebuilt.
1136 * configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and
1138 (ALL_LINGUAS): Define.
1139 * macro.c: Include "asintl.h".
1140 * as.c (main): Call setlocale, bindtextdomain, and textdomain.
1141 * as.h: Include "asintl.h".
1142 * config/tc-i386.c (ordinal_names): Removed.
1143 (md_assemble): Changed error text to avoid ordinal_names.
1144 (i386_operand): Likewise.
1145 (reloc): Added as_bad to avoid i18n problems.
1146 (tc_gen_reloc): Likewise.
1147 * config/tc-arm.c (bad_args): Now a #define.
1149 * config/obj-vms.c (VMS_stab_parse): Changed type of
1151 (global_symbol_directory): Unified strings to avoid i18n
1153 * config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
1154 avoid i18n problems.
1155 * config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
1156 * config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
1158 * config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
1160 * config/tc-v850.c (md_assemble): Changed C++ comment into C
1162 * config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
1164 * as.c (print_version_id): Added an fprintf to avoid i18n
1166 * cond.c (cond_finish_check): Added as_bad call to avoid i18n
1168 * expr.c (expr): Added as_warn call to avoid i18n problems.
1169 * messages.c (as_assert): Changed code to avoid i18n problems.
1170 (as_abort): Likewise.
1171 * read.c (pseudo_set): Added as_bad call to avoid i18n problems.
1172 (s_space): Likewise.
1173 * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1177 * config/tc-i386.c (check_prefix): New static function, split out
1179 (struct _i386_insn): Add wait_prefix field.
1180 (md_assemble): Remove wait_prefix local variable. Use
1181 check_prefix when adding a prefix.
1183 * config/tc-i386.c (current_templates): New static variable.
1184 (md_assemble): Remove current_templates local variable.
1185 (md_assemble, i386_operand): Improve error and warning messages in
1186 many places. Add RESTORE_END_STRING in many places before error
1187 return. Clarify some comments.
1189 * config/tc-i386.c (struct _i386_insn): Change seg field to a two
1191 (md_assemble): Parse string instruction operands, looking for
1192 segment override prefixes. Check for invalid segment prefixes on
1194 (i386_operand): i.seg[] and max mem_operand changes for string
1196 * config/tc-i386.h (EsSeg): Define.
1198 * config/tc-i386.h (regKludge): Define.
1199 (iclrKludge, imulKludge): Don't define.
1200 * config/tc-i386.c (md_assemble): Merge imulKludge and iclrKludge
1201 code. Move ReverseRegRegmem fudges into Modrm case. Reorder
1202 opcode_modifier checks to look for more common cases first. Add
1203 default_seg for IsString case.
1207 * configure.in: Call AM_PROG_LEX rather than AC_PROG_LEX and
1209 * configure: Rebuild with new automake and libtool.
1210 * aclocal.m4, Makefile.in: Likewise.
1212 * doc/Makefile.am (as.dvi): New target.
1213 * doc/Makefile.in: Rebuild.
1218 * config/tc-dvp.c (VU_LABEL_PREFIX): Make "_$".
1223 * configure.in: Added sparc86x support.
1225 * configure: Rebuild.
1227 * config/tc-sparc.c (lookup_arch): Added arch_type to struct
1229 (md_parse_option): Warn if -EL is not supported for this architecture.
1231 * config/tc-sparc.h (SPARC_BIENDIAN) Always define.
1235 * config/tc-mips.c (mips_ip): Note when we use get match on
1236 the full instruction name.
1237 start-sanitize-r5900
1238 (mips_ip): For '&' DEST completer handling, if we got a full match
1239 then the DEST completer is implicitly .wxyz.
1245 * config/tc-dvp.c (unpackloc_sym): Delete. All uses deleted.
1246 (vif_insn_type): New function.
1247 (md_apply_fix3): Don't validate user specified length if unpack insn
1253 * symbols.c (resolve_symbol_value) [O_symbol]: Also store the symbol
1254 back into the expression to handle add/sub simplification correctly.
1256 start-sanitize-r5900
1259 * config/tc-mips.c (mips_ip): Specs changed for
1260 VCALLMSR instruction.
1263 start-sanitize-vr5400
1266 * config/tc-mips.c (hilo_interlocks): Remove VR5400.
1271 * config/tc-mips.c (hilo_interlocks): Remove 4300.
1275 * config/tc-arm.c (do_msr): Support undocumented 'msr cpsr_flg,
1281 * config/tc-dvp.c (md_apply_fix3): Mark fixup for mpg loaded vu
1282 branch error as being done so we don't try to emit a reloc.
1287 * symbols.c (max_indent_level): New global.
1288 (print_symbol_value_1): Use it.
1289 * expr.h (expr_build_dot): Declare.
1290 * expr.c (expr_build_dot): New function.
1292 * config/tc-dvp.c (VU_LABEL_PREFIX): New macro.
1293 (compute_mpgloc): New function.
1294 (eval_expr): New arg `cpu'. All callers updated.
1295 (non_vu_insn_seen_p): New static global.
1296 (RELAX_{MPG,DIRECT,VU,ENCODE,GROWTH,DONE_}): New macros.
1297 (struct dvp_fixup): New member `cpu'.
1298 (assemble_one_insn): New args init_fixup_count, fixup_offset.
1299 All callers updated.
1300 (md_assemble): Set non_vu_insn_seen_p as appropriate.
1301 (assemble_vif): Set `cpu' field of fixup.
1302 Clean up calls to frag_var. Recorded mpgloc is now in bytes.
1303 (assemble_vu_insn): Delete, contents moved into ...
1304 (assemble_vu): ... here. Don't record fixups until after parsing
1305 both upper and lower insns. If branch insn inside mpg, properly
1306 compute target address.
1307 (dvp_frob_label): Create copies of vu labels inside mpg's.
1308 (dvp_relax_frag): Clean up.
1309 (md_convert_frag): Ditto.
1310 (md_apply_fix3): Signal error if mpg embedded vu code has branch
1311 to undefined label (not currently supported).
1312 (eval_expr): New arg `cpu'. All callers updated.
1313 (insert_operand_final): Convert mpgloc from bytes to dwords.
1314 (s_endmpg): Use compute_mpgloc to update $.mpgloc.
1315 (s_state): If switching to vu state, initialize $.mpgloc.
1320 * symbols.c (print_binary): New function.
1321 (print_expr_1): Call it.
1326 * config/tc-dvp.c (md_convert_frag): Fix thinko.
1330 * config/tc-dvp.c (assemble_vif): Watch for macro insns.
1331 0 is a valid length value (= max+1).
1332 (install_vif_length): 0 is a valid length value (= max+1).
1337 * config/tc-m68k.c (m68k_ip, case "#B"): Install the offset of the
1338 operand in the opcode.
1343 * config/tc-dvp.c (assemble_vif): Put relaxable insns in their
1349 * config/tc-i386.h: Reorder operand flags and opcode modifier
1350 flags for clarity. Remove unused definitions: Unknown,
1351 ImmUnknown, DispUnknown, NoModrm.
1352 * config/tc-i386.c (type_names): Add missing Debug type.
1353 (md_assemble): Better duplicate prefix checking. Quicker string
1354 instruction check via new opcode_modifier flag.
1358 * doc/as.texinfo (Invoking): Clarify -Wa example.
1362 * config/tc-mips.c (mips_pseudo_table): Add weakext entry.
1363 (s_mips_weakext): Define.
1364 * ecoff.c (ecoff_directive_weakext): Don't define if defined(TC_MIPS).
1365 * config/obj-ecoff.c (obj_pseudo_table): Don't add weakext if
1370 * config/tc-mn10200.c (tc_gen_reloc): The difference of two symbols
1371 is an error if the value can not be computed at assembly time.
1372 * config/tc-mn10300.c (tc_gen-reloc): Likewise.
1376 * gasp.c (main): Set next field of new include_path structure to
1379 * read.c (s_mri_sect): Call as_bad rather than abort for an
1380 unsupported MRI target.
1384 * config/tc-arm.c (arm_validate_fix): New function. Determine if
1385 the destination of a branch instruction should be altered.
1386 (find_real_start): New function: Locate the real, Thumb coded
1387 start of a Thumb function.
1388 (do_t_branch23): Alter the destination of branches to Thumb
1391 * config/tc-arm.h: Define TC_VALIDATE_FIX.
1395 * config/tc-arm.c (decode_shift): Handle addressing mode 2 w/rrx
1400 * doc/as.texinfo: Use @itemx for a secondary item in a table.
1401 * doc/c-hppa.texi: Likewise.
1405 * Makefile.am: Rebuild dependencies.
1406 * Makefile.in: Rebuild.
1408 * Makefile.am (DEP_INCLUDES): New variable.
1409 (.dep1): Change to work when srcdir is not an absolute path.
1410 (.tcdep, .objdep, .dep2, dep.sed): Likewise.
1411 * Makefile.in: Rebuild.
1415 * config/tc-i386.h, config/tc-i386.c: Revert March 24
1416 LinearAddress patch.
1418 * configure.in: Set version to 2.9.1.
1419 * configure: Rebuild.
1421 * Branched binutils 2.9.
1425 * config/tc-i386.h (FWait): Define.
1426 * config/tc-i386.c (md_assemble): Emit fwait prefix before any
1427 other prefixes. Check FWait flag in opcode table to see which
1428 instructions require an fwait prefix.
1432 * stabs.c (get_stab_string_offset): Always create a stab string
1437 Fix some gcc -Wall warnings:
1438 * atof-generic.c (atof_generic): Add casts to avoid warnings.
1439 * ehopt.c (eh_frame_code_alignment): Likewise.
1440 * expr.c (integer_constant, operand): Likewise.
1441 * frags.c (frag_align): Likewise.
1442 * gasp.c (level_0, change_base, doinstr): Likewise.
1443 * hash.c (hash_ask): Likewise.
1444 * listing.c (listing_page, calc_hex, print_lines): Likewise.
1445 (debugging_pseudo): Likewise.
1446 * macro.c (define_macro, check_macro): Likewise.
1447 * read.c (read_a_source_file, s_align, s_float_space): Likewise.
1448 (ignore_rest_of_line, float_cons): Likewise.
1449 * symbols.c (decode_local_label_name): Likewise.
1450 * write.c (record_alignment, cvs_frag_to_fill): Likewise.
1451 (fixup_segment, number_to_chars_bigendian): Likewise.
1452 (number_to_chars_littleendian): Likewise.
1453 * config/atof-ieee.c (gen_to_words): Likewise.
1454 * config/tc-sparc.c (md_begin, md_assemble): Likewise.
1455 (sparc_ip, parse_keyword_arg, s_common): Likewise.
1456 * read.c (output_big_sleb128): Initialize locals to avoid
1458 (output_big_uleb128, equals): Likewise.
1459 * atof-generic.c (atof_generic): Change number_of_digits_* locals
1460 to unsigned int. Change zeros to unsigned int.
1461 * cond.c (s_if): Add return to default case.
1462 * frags.c (frag_now_fix): Change return type to addressT.
1463 * frags.h (frag_now_fix): Update declaration.
1464 * listing.c (file_info_struct): Change linenum to unsigned int.
1465 (struct list_info_struct): Change hll_line to unsigned int.
1466 (print_source): Update format string.
1467 * read.c (emit_expr): Change scan to unsigned int, and don't
1468 bother to initialize it.
1469 * symbols.c (dollar_label_count): Change to unsigned long.
1470 * write.c (adjust_reloc_syms): Remove unused label reduce_fixup.
1471 * config/tc-sparc.c (sparc_memory_model): Only define if OBJ_ELF.
1472 * config/tc-sparc.c (tc_gen_reloc): Add return to default case.
1476 * config/tc-m68k.c (m68k_ip): Check legal addressing modes for
1477 mcf5200 just as we do for m68000.
1478 (m68k_init_after_args): Likewise.
1479 (md_estimate_size_before_relax): Likewise.
1483 * config/tc-v850.c (md_assemble): Store relocation addend in
1484 fixup instead of instruction.
1488 * config/tc-i386.c (md_assemble): Swap template arguments to
1489 CONSISTENT_REGISTER_MATCH macro in reverse direction test.
1490 This macro is currently symmetric, so passing them the wrong
1491 way didn't cause any problem, but may if the macro is changed
1493 After copying template to i.tm, use i.tm. rather than t-> to
1494 access fields, and make t a const*
1495 Move i.tm.operand_types[] swap to immediately after the copy.
1500 * config/tc-dvp.c (s_endunpack): Round up to word boundary after
1501 we've computed the data length.
1506 * expr.h (expr_build_uconstant): Add prototype.
1507 (expr_build_unary,expr_build_binary): Add prototypes.
1508 * expr.c (expr_build_uconstant): New function.
1509 (expr_build_unary,expr_build_binary): New functions.
1511 * config/tc-dvp.h (md_estimate_size_before_relax): Delete.
1512 (md_convert_frag): Delete.
1513 (TC_FIX_TYPE): New fields wl,cl,user_value;
1514 * config/tc-dvp.c (insert_mpg_marker): New argument ignore.
1515 All callers updated.
1516 (insert_unpack_marker): New function.
1517 (insert_file): New argument insert_marker_arg. All callers updated.
1518 (gif_user_value): New static local.
1519 (vif_data_start,vif_data_end): New static locals.
1520 (mpgloc_sym,unpackloc_sym): New static locals.
1521 (cur_varlen_frag,cur_varlen_insn,cur_varlen_value): Delete.
1522 (cur_opcode,cur_operand): New static locals.
1523 (endmpg_caller): New enum.
1524 (md_pseudo_table): Pass ENDMPG_USER to s_endmpg.
1525 (md_begin): Initialize mpgloc_sym, unpackloc_sym.
1526 (dvp_fixup): New members user_value,wl,cl;
1527 (assemble_vif): Rewrite.
1528 (assemble_gif): Tweak name of data start label.
1529 (assemble_one_insn): Allow special parser to punt and call the
1530 normal expression parser. Set cur_opcode,cur_operand for md_operand.
1531 (md_operand): Handle '*' value for mpgloc,unpackloc.
1532 (md_estimate_size_before_relax): New function.
1533 (dvp_relax_frag,md_convert_frag): New functions.
1534 (md_pcrel_from_section): Handle end data label for variable length
1536 (md_apply_fix3): Handle count field for variable length vif insns.
1537 Handle address field for mpg,unpack.
1538 (eval_expr): Initialize user_value,wl,cl fields of the fixup.
1539 (cur_vif_insn_length): Delete.
1540 (vif_length_value): New function.
1541 (install_vif_length): Don't perform logical->physical conversion here.
1542 (s_enddirect,s_endmpg,s_endunpack): Rewrite.
1547 * gasp.c (IS*): Cast argument to unsigned char, not unsigned int.
1548 * macro.c (macro_expand_body): Increase buffer size.
1549 * messages.c (as_warn): Likewise.
1550 (as_warn_where, as_bad, as_bad_where): Likewise.
1555 * Makefile.am (DISTSTUFF): New variable.
1556 (diststuff): New target.
1557 * Makefile.in: Rebuild.
1561 * config/tc-m32r.h (md_cleanup, md_elf_section_change_hook): Call
1562 m32r_elf_section_change_hook.
1564 * config/tc-m32r.c (m32r_elf_section_change_hook): New function to
1565 emit a nop if a section ends with a 16 bit instruction.
1569 * config/obj-coff.c (obj_coff_bss): Compile unconditionally. Call
1570 s_lcomm rather than obj_coff_lcomm.
1571 (obj_pseudo_table): Compile .bss pseudo-op unconditionally.
1575 * config/tc-i386.h (LinearAddress): Define.
1576 * config/tc-i386.c (md_assemble): If LinearAddress is set for the
1577 instruction, don't use a default segment.
1581 * configure.in: (sh*-*-rtems*): Switched from ELF to COFF.
1582 * configure: Rebuild.
1587 * config/tc-dvp.c (insert_mpg_marker): Update mpgloc.
1590 start-sanitize-r5900
1593 * config/tc-mips.c (validate_mips_insn): Handle r5900 operands.
1595 * config/tc-mips.c (append_insn): Handle BFD_RELOC_MIPS16_S3.
1596 (mips_ip): Handle 'O' operand.
1597 (md_apply_fix): Handle BFD_RELOC_MIPS16_S3.
1602 * aclocal.m4, configure: Rebuild with libtool 1.2.
1604 start-sanitize-r5900
1607 * config/tc-mips.c: Change '%' to '#' in r5900 support.
1612 * config/tc-arm.c (md_apply_fix3): fix code to test the range of
1613 PC relative branches. Patch courtesy of Jonathan Walton.
1615 start-sanitize-r5900
1618 * config/tc-mips.c (mips_ip): Handle opcodes which have the form
1619 "name.completer" where only the name is actually in the opcode
1620 table. Allow various operands for base register in load/store
1621 instructions. Handle various new argument characters for the
1622 cop2/vu0 co-processor.
1628 * config/tc-dvp.c (s_dmadata): Force 16-byte alignment for ".dmadata"
1634 * configure.in (emulations): Add thumb-pe target.
1636 * configure (emulations): Add thumb-pe target.
1640 * itbl-lex.l (yywrap): Don't define if already defined as a
1646 * config/tc-dvp.c (md_begin): Turn dma/vif packing on by default.
1647 (assemble_dma): Only output 8 bytes for actual dma insn if dma/vif
1648 packing is enabled. Emit VIF cpu marker after dma insn.
1650 * config/tc-dvp.h (TC_START_LABEL): Define.
1651 * config/tc-dvp.c (force_mach_label): New function.
1652 (md_begin,create_colon_label,s_dmadata): Use it.
1654 * config/tc-dvp.c (s_enddmadata): Always fill dma data out to 16
1659 * config/tc-dvp.c (md_pseudo_table): Make .quad 16 bytes.
1664 * depend.c (quote_string_for_make): New function.
1665 (wrap_output): Use it.
1669 * config/obj-elf.c (obj_elf_section): Set bss flag in seg_info
1670 structure if type is SHT_NOBITS. [Bug fix courtesy of rth]
1675 * config/tc-dvp.h (TC_FIX_TYPE,TC_INIT_FIX_DATA): Define.
1676 * config/tc-dvp.c (compute_nloop,check_nloop): New functions.
1677 (gif_insn_frag_loc): New static global.
1678 (assemble_gif): Record frag and location frag of insn.
1679 (md_apply_fix3): Validate user specified nloop if we couldn't do
1681 (s_endgif): Queue fixup to install nloop if we can't compute it here.
1685 * config/tc-dvp.c (s_endgif): Fix nloop calc and test. Warn if
1686 insufficient data present. Fix insertion of computed nloop value.
1687 (install_vif_length): Second pass at unpack len calcs.
1688 (s_endunpack): Round data up to word boundary.
1689 (insert_mpg_marker): New function.
1690 (insert_file): New args insert_marker, size. All callers updated.
1691 (assemble_vif): Rewrite varlen insn handling.
1692 (assemble_vu): Call insert_mpg_marker when 256th insn reached.
1693 (s_enddirect,s_endunpack): Rename arg to internal_p.
1696 start-sanitize-vr4320
1699 * config/tc-mips.c : Added vr4320 similar to vr4300.
1704 * config/tc-alpha.c (md_shortopts, md_longopts, md_parse_option):
1705 Recognize -GN and -relax.
1706 (md_begin): Initialize gp size from -G switch.
1707 (alpha_force_relocation): Always force if -relax.
1708 (alpha_align): Take a new argument that will specify when to
1709 emit an R_ALPHA_ALIGN relocation (though we don't do that now).
1710 Change all callers. Emit nop alignment padding as nop+unop pair.
1714 * config/obj-elf.c [TC_ALPHA]: Include <elf/alpha.h>.
1715 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): New.
1720 * config/tc-d30v.c (write_2_short): Delayed jsr instructions don't
1721 require padding to the next long word boundary.
1727 * config/tc-dvp.c (assemble_vif): Insert cpu type marker before
1728 inserted binary files.
1731 start-sanitize-phase2-m32rx
1734 * config/tc-m32r.c (optimize): New static local.
1735 (md_shortopts): Add -O.
1736 (md_parse_option): Recognize it.
1737 (md_show_usage): Document it.
1738 (md_assemble): Don't try to combine insns in parallel if !optimize.
1740 end-sanitize-phase2-m32rx
1741 start-sanitize-m32rx
1744 * config/tc-m32r.c (first_writes_to_seconds_operands):
1745 Reinitialise b_operands for each pass of the inner loop.
1750 * config/tc-dvp.h (tc_frob_label): Define.
1751 * config/tc-dvp.c (dvp_frob_label): New function.
1752 (create_colon_label): New argument `sto'. All callers updated.
1753 (record_mach): New argument `force_next_p'. All callers updated.
1754 (cpu_sto): New function.
1755 (UNIQUE_LABEL_PREFIX): New macro.
1756 (unique_label): Use it.
1757 (assemble_gif): Emit start label before mach label.
1758 (s_endgif): Update. NLOOP is in quadwords for IMAGE mode now.
1762 * config/tc-dvp.c (assemble_dma): Do alignment before parsing insn.
1763 (setup_dma_autocount): Renamed from setup_autocount. New argument
1764 inline_p. All callers changed. Fix word address of count.
1765 (parse_dma_addr_autocount): Fix word address of address.
1771 * config/obj-elf.c: Take Ian's suggestion, leave .bss etc
1772 in special_sections table and add .vubss etc via
1773 ELF_TC_SPECIAL_SECTIONS.
1774 * config/tc-dvp.h: Likewise.
1779 * cgen.c: #include symcat.h.
1780 * config/tc-m32r.c: Likewise.
1784 * config/tc-mips.c (mips_ip, case 'P'): Make 'P' arguments be
1785 absolute expressions instead of '$' prefixed register names.
1789 * read.c (s_set): Record file and line info for symbols when -as.
1790 (pseudo_set): Don't overwrite that dummy fragment.
1795 * config/tc-dvp.c (md_assemble): Handle ASM_DIRECT state.
1796 (dvp_parse_done): Comment out contents.
1797 (s_enddirect,s_endmpg,s_endunpack): Call demand_empty_rest_of_line.
1798 (s_state): Handle .vu in included file.
1799 (asm_state): New state ASM_GIF.
1800 (asm_state_stack): Maintain stack of parsing states.
1801 ({push,pop,set}_asm_state): New functions.
1802 (CUR_ASM_STATE): Renamed from cur_asm_state, all uses updated.
1803 (gif_{insn_type,data_name,insn_frag}): New static locals.
1804 (md_assemble): Watch for .endgif if in ASM_GIF state.
1805 (assemble_gif): Complete.
1806 (s_endgif): Complete.
1807 (cur_mach): New static local.
1808 (record_mach): New function.
1809 (md_begin): Initialize `cur_mach'.
1810 (assemble_*): Record current mach type.
1811 (vu_count): New static local.
1812 (assemble_vif): Temporary hack to properly align mpg/direct data.
1813 (assemble_vu): Insert mpg every 256 insns.
1818 * config/tc-ppc.c (md_pseudo_table): Add "section".
1819 (ppc_named_section): New static function.
1823 * tc-ppc.c (ppc_biei): Cache the last symbol we inserted
1824 so we don't have to scan the entire list.
1829 * config/tc-d30v.c (parallel_ok): For the explicitly parallel
1830 case, allow the parallel instructions to modify the same flag
1836 * listing.c (list_symbol_table): Categorize symbols by
1837 undefined_section rather than sy_frag->line == NULL.
1842 * config/tc-dvp.c (LOCAL_LABEL_PREFIX,END_LABEL_PREFIX): New macros.
1843 (inline_dmadata): Renamed from s_dmadata_implied.
1844 (assemble_one_insn): Rewrite dma operand processing.
1845 (md_apply_fix3): Handle DVP_OPERAND_DMA_NEXT.
1846 (unique_name,setup_autocount): New functions.
1848 * config/tc-dvp.c: Include stdarg.h/varargs.h.
1849 (md_pseudo_table): Add .word.
1850 (assemble_dma): Set alignment to 16 bytes. Enable code that records
1852 (assemble_one_insn): Handle DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}.
1853 (md_apply_fix3): Handle DVP_OPERAND_DMA_ADDR.
1854 (parse_dma_addr_autocount): Renamed from parse_dma_ptr_autocount.
1856 (eval_expr): New function.
1857 (create_label,create_colon_label): New function.
1858 (s_enddmadata): Rewrite.
1863 * Makefile.am (install-exec-local): Install properly when ln
1864 fails or tooldir == prefix.
1866 start-sanitize-m32rx
1869 * config/tc-m32r.c (first_writes_to_seconds_operands): Special
1870 handling of updates to the condition bit as this is shadow by
1876 * config/tc-dvp.c (parse_float): New function.
1877 (assemble_vu): Handle loi insns.
1878 (assemble_one_insn): Simplify suffix parsing.
1879 Handle DVP_OPERAND_FLOAT. Allow FAKE arguments to have a parser
1883 start-sanitize-m32rx
1886 * doc/c-m32r.texi (M32R-Opts): Add --Wp and --Wnp.
1888 * doc/as.texinfo (Overview): Add --Wp and --Wnp.
1890 * config/tc-m32r.c (md_longopts): Accept --Wp as an abbreviation
1891 for --warn-explicit-parallel-conflicts and --Wnp as an
1892 abbreviation for --no-warn-explicit-parallel-conflicts.
1893 (assemble_parallel_insn): Use non-relaxable versions of branch
1898 * app.c: Parse || as a seperator between assembler statements.
1903 * cgen.c (cgen_md_apply_fix3): Delete call to validate_operand.
1904 Test result of insert_operand for error.
1906 start-sanitize-m32rx
1909 * config/tc-m32r.c (md_assemble): Only parallelise instructions
1910 when m32rx target is enabled and the instructions are not
1915 * config/tc-m32r.c (first_writes_to_seconds_operands): Do not
1916 bother checking insn which have no operands.
1921 * Makefile.am (AUTOMAKE_OPTIONS): Add cygnus.
1922 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1923 * doc/Makefile.am (AUTOMAKE_OPTIONS): Define.
1924 * doc/Makefile.in: Rebuild.
1926 start-sanitize-m32rx
1929 * config/tc-m32r.c (first_writes_to_seconds_operands): New
1930 function. Replaces get_src_reg(), check_for_side_effects(),
1931 reads_from_src_reg(). Uses new insn operand features of cgen.
1932 (writes_to_pc): New function., but with new code suppressed for now.
1933 (md_assemble): Call first_writes_to_seconds_operands().
1937 * config/tc-mips.c (macro_build): Handle operand type 'C'.
1938 (macro): Fix handling of M_COP[0-3].
1943 * macro.c (ISSEP): Only treat '<' and '>' as separator characters
1944 if macro_alternate or macro_mri.
1945 (getstring): Remove support for byte constants between < and >.
1946 (get_any_string): '<' only starts a string if macro_alternate or
1948 (macro_expand_body): Permit keyword parameters following
1949 positional parameters.
1952 * configure.in (alpha*-*-netbsd*): New target.
1953 * config/te-nbsd.h (LOCAL_LABELS_FB): Define.
1954 * configure: Rebuild.
1956 * as.h (flag_warn_suppress_instructionswap): Move from here...
1957 * config/tc-d10v.c (flag_warn_suppress_instructionswap): ...to
1958 here, and make static.
1960 * ehopt.c (eh_frame_code_alignment): Only use seg_info if
1961 BFD_ASSEMBLER or MANY_SEGMENTS.
1963 * as.c (show_usage): Update bug-gnu-utils address.
1964 * gasp.c (show_usage): Likewise.
1965 * doc/as.texinfo (Bug Reporting): Likewise.
1969 * config/tc-mips.c (load_address): Don't use mips III or mips IV
1970 insns regardless of the size of a pointer if we're in mips I or
1972 (macro, macro2, s_cprestore, s_cpadd): Likewise.
1976 Fix rac to accept only a0:
1977 * tc-d10v.c (parallel_ok, find_opcode):
1978 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
1979 Introduce OPERAND_GPR.
1983 * read.c (s_fill): Handle non-constant repeat counts by creating
1984 an rs_space fragment.
1986 start-sanitize-m32rx
1989 * doc/c-m32r.texi: Document warning and error messages. Add
1990 descriptions of --warn-explicit-parallel-conflicts.
1992 * doc/as.texinfo: Add more m32rx command line options.
1997 * config/tc-i386.c (i386_operand): Change error added Jan 2 1998
1998 from as_bad to as_warn.
2003 * config/tc-dvp.c (*): pke->vif, gpuif->gif.
2008 * as.c: (perform_an_assembly_pass): Use [TEXT|DATA|BSS]_SECTION_NAME
2009 * as.h: Define default values of [TEXT|DATA|BSS]_SECTION_NAME
2010 * config/obj-elf.c (elf_begin): Use [TEXT|DATA|BSS]_SECTION_NAME
2012 * config/tc-dvp.h: Add configuration specific section names.
2017 * ehopt.c (eh_frame_code_alignment): If not BFD_ASSEMBLER, use
2018 seg_fix_rotP rather than fix_root from seg_info.
2022 * expr.c: Add support for 0x1_2_3_4 bignums.
2026 * configure.in: Change -linux* to -linux-gnu*.
2027 * configure: Rebuild.
2029 * app.c (do_scrub_begin): Treat \r as whitespace.
2031 start-sanitize-m32rx
2034 * config/tc-m32r.c (get_src_reg): Use m32r_cgen_get_operand()
2035 rather than parsing syntax string manually.
2036 (assemble_parallel_insn): Check for both forms of parallel
2041 * Makefile.am: Update dependencies.
2042 * Makefile.in: Rebuild.
2046 * configure, aclocal.m4: Rebuild with new libtool.
2050 * config/tc-mips.c (md_begin): If mips_cpu is set, then use it as
2051 the argument to bfd_set_arch_mach.
2052 (load_address): Use bfd_arch_bits_per_address to determine the
2053 bit size of an address instead of looking at the isa level.
2054 (macro, macro2, s_cprestore, s_cpadd): Likewise.
2056 start-sanitize-v850e
2059 * config/tc-v850.c (md_parse_option): Add -mv850any command line option.
2063 * ehopt.c: New file.
2064 * as.h (enum _relax_state): Add rs_cfa.
2065 (check_eh_frame, eh_frame_estimate_size_before_relax): Declare.
2066 (eh_frame_relax_frag, eh_frame_convert_frag): Declare.
2067 * read.c (emit_expr): Call check_eh_frame.
2068 * write.c (cvt_frag_to_fill): Handle rs_cfa.
2069 (relax_segment): Likewise.
2070 * Makefile.am: Rebuild dependencies.
2071 (GAS_CFILES): Add ehopt.c.
2072 (GENERIC_OBJS): Add ehopt.o.
2073 * doc/internals.texi (Frags): Document rs_cfa.
2075 * as.c (show_usage): Mention --traditional-format.
2076 (parse_args): Accept --traditional-format.
2077 * as.h (flag_traditional_format): Declare.
2078 * output-file.c (output_file_create): If flag_traditional_format,
2079 set BFD_TRADITIONAL_FORMAT on stdoutput.
2080 * doc/as.texinfo, doc/as.1: Document --traditional-format.
2082 * config/tc-mips.c (append_insn): Make sure that if we have a
2083 fixup for an unmatched %hi reloc, it does not associated with a
2086 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2087 * doc/Makefile.in: Likewise.
2091 * config/tc-m32r.c (check_for_side_effects): New function.
2092 (can_make_parallel): Add checks for instruction side effects
2093 clashing with the other instruction.
2094 (assemble_parallel_insn): Improve warning messages. Return error
2095 message from non-swapped instruction order.
2099 * config/tc-arm.c: Rename arm_after_pass_hook() to arm_cleanup().
2101 * config/tc-arm.h: Replace md_after_pass_hook definition with a
2102 md_cleanup definition. This moves the forced literal output to
2103 the end of the source pass, and avoids macro's inserting literals
2104 into the code immediately after the macro expansion.
2108 * config/tc-sparc.h (tc_fix_adjustable) [OBJ_ELF]: A reloc against
2109 a gas internal symbol is adjustable.
2110 * config/tc-ppc.h (tc_fix_adjustable): Likewise.
2112 * as.h: If gcc version greater than 2.6, use `__format__' and
2113 `__printf__' in function attributes, rather than `format' and
2118 * config/tc-sparc.c: Only include elf/sparc.h if OBJ_ELF.
2122 Add tms320c30 support:
2123 * config/tc-tic30.h: New file.
2124 * config/tc-tic30.c: New file.
2125 * config/obj-coff.h: If TC_TIC30, include coff/tic30.h and define
2126 TARGET_FORMAT as "coff-tic30".
2127 * configure.in (tic30-*-*aout*, tic30-*-*coff*): New targets.
2128 * Makefile.am: Rebuild dependencies.
2129 (CPU_TYPES): Add tic30.
2130 (CPU_OBJ_VALID): tic30-aout is valid.
2131 (TARGET_CPU_CFILES): Add config/tc-tic30.c.
2132 (TARGET_CPU_HFILES): Add config/tc-tic30.h.
2133 * configure, Makefile.in: Rebuild.
2137 * config/tc-v850.c (md_assemble): Improvements to error messages.
2141 * config/tc-ppc.c (md_apply_fix3): Change BFD_RELOC_HI16 and
2142 BFD_RELOC_HI16_S to store the high bits of any value.
2144 * config/tc-ppc.h (tc_fix_adjustable): Undo change of Fri Jun 27.
2145 (TC_RELOC_RTSYM_LOC_FIXUP): Don't let the
2146 assembler calculate relocations to any external symbol at all.
2147 * config/tc-ppc.c (md_apply_fix3) [OBJ_ELF]: Correct bugs
2148 involving generation of pc-relative relocs.
2149 (md_pcrel_from_section) [OBJ_ELF]: The job this code used to do
2150 has been moved to md_apply_fix3.
2152 * config/tc-ppc.c (md_apply_fix3): Fix test for too-far branch.
2153 (ppc_elf_suffix): Warn about 'identifier+constant@got' syntax,
2154 which actually means (the address of identifier's GOT entry) +
2155 constant, which is not particularly useful.
2159 * read.h (include_dirs): Declare.
2160 (include_dir_count,include_dir_maxlen): Declare.
2163 * config/tc-dvp.c (md_longopts): Add -no-dma, -no-dma-pke.
2164 (md_parse_option): Handle them.
2165 (md_show_usage): Print them.
2166 (output_dma,output_pke): New static globals.
2167 (assemble_pke): Handle -no-dma-pke.
2168 (insert_file): Search include dir list.
2169 (s_enddirect): Validate length if prespecified.
2170 (s_endmpg): Likewise. Handle -no-dma-pke.
2171 (s_endunpack): Handle -no-dma-pke.
2172 (md_pcrel_from_section): Add offset to delay slot for
2178 * configure.in: Correct check for shared opcodes library.
2179 * configure: Rebuild.
2181 * listing.c (buffer_line): If we can't open the file, set at_end.
2182 (listing_print): Remove unused local variable fi.
2184 * config/m68k-parse.y (reglistpair): Handle register list in
2187 * config/vms-conf.h: Don't undef VERSION.
2189 start-sanitize-m32rx
2192 * config/tc-m32r.c (allow_m32rx): Must compile with K&R C.
2193 (m32rx support): only include #ifdef HAVE_CPU_M32RX.
2198 * Makefile.am (CONFIG_OBJS): New variable, containing part of old
2200 (GENERIC_OBJS): New variable, with the rest of the old OBJS
2202 (OBJS): Now just $(CONFIG_OBJS) and $(GENERIC_OBJS).
2203 ($(srcdir)/make-gas.com): Rename from make-gas.com.
2204 (stamp-mk.com): Replace $(OBJS) with $(GENERIC_OBJS).
2205 (EXTRA_DIST): Define.
2206 * vmsconf.sh: Handle {targ-cpu, obj-format, atof-targ} modules
2207 explicitly rather than via the list of object files.
2208 (gcc-as.opt): New file created when make-gas.com is run.
2209 * config-gas.com: Create {targ-cpu.h, obj-format.h, targ-env.h,
2210 itbl-cpu.h} to #include appropriate file rather than copying that
2212 * config/vms-conf.h: Synchronize with current config.in.
2213 * Makefile.in: Rebuild.
2218 * config/tc-d30v.c (do_assemble): Added flag_explicitly_parallel.
2219 (parallel_ok): Relaxed parallel subinstruction dependency check.
2222 start-sanitize-m32rx
2225 * config/tc-m32r.c (md_assemble): Fix determination of when
2226 instructions can be combined in parallel.
2231 * as.h (flag_warn_suppress_instructionswap): added new flag.
2232 * tc-d10v.c (md_parse_option,md_longopts): added "--nowarnswap"
2233 command line argument.
2234 * tc-d10v.c (write_2_short): emit "Swapping instructions"
2235 warning only if flag_warn_suppress_instructionswap is false.
2239 * configure.in (i386-*-mingw32*): New target.
2240 * configure: Rebuild.
2244 * symbols.c (resolve_symbol_value): Don't set the segment if it
2245 hasn't changed, and this is OBJ_AOUT without BFD_ASSEMBLER.
2247 * config/obj-aout.h (S_IS_LOCAL): Correct typo--pass argument to
2252 as.h (unlink): Reverse 13-Feb-97 change; use of unlink vs remove
2253 depends upon HAVE_{UNLINK,REMOVE} values rather than host
2258 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Define.
2263 * configure.in: Add dvp support.
2264 * configure: Regenerate.
2265 * config/tc-dvp.[ch]: New files.
2270 * config/tc-v850.c (v850_insert_operand): Display instruction when
2271 an error is encountered.
2275 * configure.in (i386-*-sco3.2v5*): Defaults to ELF now.
2276 (i386-*-sco3.2v5*coff): New target.
2277 (i386-*-sco3.2*): New target.
2278 * configure: Rebuild.
2282 * config/tc-v850.c: Tidy error message production.
2286 * config/tc-arm.c (md_apply_fix3): Add new variable newimm to hold
2287 validate_immediate return value in the right type for comparisons
2292 * listing.c (MAX_BYTES): Use listing variables not constants.
2293 (data_buffer): No longer an array, but a pointer.
2294 (calc_hex): sizeof(data_buffer) -> MAX_BYTES.
2295 (listing_listing): Allocate data_buffer.
2299 * as.c (parse_args): Add --listing-lhs-width, --listing-lhs-width2,
2300 --listing-rhs-width, --listing-cont-lines.
2301 (show_usage): Update.
2302 * listing.c (listing_lhs_width, listing_lhs_width_second): New vars.
2303 (listing_lhs_cont_lines, listing_rhs_width): New vars.
2304 (print_lines): Use the variables instead of the constants.
2305 (listing_listing): Likewise.
2306 * listing.h: Declare the new vars.
2310 * as.c (parse_args): Add --keep-locals alias for -L.
2311 Add --strip-local-absolute.
2312 (show_usage): Update.
2313 * as.h (flag_strip_local_absolute): New flag.
2314 * symbols.c (S_IS_LOCAL): Use it.
2315 * config/obj-aout.h (S_IS_LOCAL): Likewise.
2316 * config/obj-bout.h (S_IS_LOCAL): Likewise.
2317 * config/obj-coff.h (S_IS_LOCAL): Likewise.
2321 * config/tc-m32r.c: Detect if explicitly parallel instructions
2322 might have an io conflict and issue a warning message.
2324 start-sanitize-m32rx
2327 * config/tc-m32r.c (reads_from_src_reg): Change second parameter
2328 to a count of the number of matches to skip.
2329 (can_make_parallel): Pass count of number of matches to skip to
2330 reads_from_src_reg().
2335 start-sanitize-m32rx
2336 * config/tc-m32r.c: Add support for swapping fixups of swap
2339 * cgen.c (cgen_save_fixups, cgen_restore_fixups,
2340 cgen_swap_fixups): Functions to save, restore and swap the fixup
2341 chain with a backup copy.
2342 (cgen_asm_finish_insn): Returns address of constructed insn.
2346 * listing.c (file_info_struct): Remove FILE, add POS.
2347 (last_open_file_info, last_open_file): New; a one entry FILE* cache.
2348 (file_info): Don't open the file.
2349 (buffer_line): Check for the file in the last_open cache, updating
2351 (print_source): Don't reference file_info->file.
2352 (listing_listing): Likewise.
2353 (listing_print): Close the file in the cache, if any.
2355 start-sanitize-m32rx
2358 * config/tc-m32r.c (md_assemble): Add code to swap explicitly
2359 parallel instructions so that they are in the correct order.
2360 (reads_from_src_reg, get_src_reg, can_make_parallel,
2361 make_parallel): New functions to support opportunistic
2362 parallelisation of adjacent instructions.
2367 * read.c (dwarf_file_string): New file static variable.
2368 (emit_expr): Look for constant sequence that leads up to a file
2369 name in DWARF debugging output.
2370 (stringer): Use dwarf_file_string to decide whether to accept a
2371 string as a file name.
2375 * tc-m68k.c (m68k_ip): Remove absl->reglst MRI hack.
2376 (crack_operand): Add reg->reglst MRI hack.
2377 (r_seg): Put reglst symbols in reg_section.
2378 (m68k_frob_symbol): Frob reglst symbols into absolute_section.
2382 * tc-sh.c (get_specific): Handle SGR & DBR.
2386 * tc-h8300.c (parse_reg): Take the length of the symbol into
2387 account when attempting to match a register name.
2388 * tc-h8500.c (parse_reg): Likewise.
2392 start-sanitize-m32rx
2393 * config/tc-m32r.c (md_assemble): Add support for parsing parallel
2396 * cgen.c: Formatting changes to improve readability.
2400 * config/tc-mips.c (macro): Rework division code to avoid unfilled
2406 Based on a patch from Jim Wilson
2407 * config/tc-d30v.c (do_assemble): Remove non-ansi default case.
2408 (tc_gen_reloc): Handle cross section PC relative relocs
2414 * config/tc-mips.c (mips_ip): Don't test pinfo flags if INSN_MACRO.
2418 * cgen.c: #include setjmp.h. Clean up pass over `struct foo' usage.
2419 (expr_jmp_buf): New static local.
2420 (cgen_parse_operand): Allow use of longjmp in parsing to handle errors.
2421 (cgen_md_operand): New function.
2422 * tc-m32r.c: Clean up pass over `struct foo' usage.
2423 (md_estimate_size_before_relax): Use CGEN_INSN_MNEMONIC.
2427 * symbols.c (S_SET_SEGMENT): Don't set the segment for section syms.
2428 (S_IS_EXTERNAL, S_IS_LOCAL): Correct parenthetication.
2432 * config/tc-i386.c (i386_operand): Give an error if there are
2433 unrecognized characters after an expression.
2435 For older changes see ChangeLog-9697