platform/upstream/binutils.git
26 years agoMon Jun 8 12:20:30 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Mon, 8 Jun 1998 17:06:00 +0000 (17:06 +0000)]
Mon Jun  8 12:20:30 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c: REPNE renamed to REPNE_PREFIX_OPCODE, and
likewise for REPE.

* config/tc-i386.c (reloc): Add braces.

* config/tc-i386.c (struct _i386_insn): Rename bi to sib to be
consistent with Intel naming.
* config/tc-i386.h (base_index_byte): Rename to sib_byte.  Don't
use bitfields in sib_byte.
(modrm_byte): Don't use bitfields here either.

* config/tc-i386.c (current_templates): Add const.
(parse_register): Add const to return, param, and char *s.
(i386_operand): Add const to reg_entry *r.
* config/tc-i386.h (templates): Add const to start, end.

Inspired by code for 16 bit gas support from Martynas Kunigelis
<martynas@nm3.ktu.lt>:
* config/tc-i386.c (md_assemble): Add full support for 16 bit
modrm, and Jump, JumpByte, JumpDword, JumpInterSegment insns.
(uses_mem_addrmode): Remove.
(md_estimate_size_before_relax): Add support here too.
(md_relax_table): Rewrite interface to md_relax for 16 bit
support.
(BYTE, WORD, DWORD, UNKNOWN_SIZE): Remove.
(opcode_suffix_to_type): Remove.
(CODE16, SMALL, SMALL16, BIG, BIG16): Define.
(SIZE_FROM_RELAX_STATE): Modify to suit above.
(md_convert_frag): Likewise.
(i386_operand): Add support for 16 bit base/index regs,
immediates, and displacements.  Remove some unnecessary casts, and
localise end_of_operand_string, displacement_string_start,
displacement_string_end variables.  Add GCC_ASM_O_HACK.
* config/tc-i386.h (NO_BASE_REGISTER_16): Define.

* config/tc-i386.c (prefix_hash): Remove.
(md_begin): Rewrite without obstacks.  Remove prefix hash table
handling.  Rewrite lexical table handling.
(i386_print_statistics): Don't print prefix statistics.
(md_assemble): Rewrite instruction parser so that line is not
converted to lower case.  Don't do a hash_find for prefixes,
instead recognise them via opcode modifier.
(expecting_operand, paren_not_balanced): Localise variables.
* config/tc-i386.h (IsPrefix): Define.
(prefix_entry): Remove.

* config/tc-i386.h (PREFIX_SEPERATOR): Don't define.
* config/tc-i386.c (PREFIX_SEPARATOR): Define here instead, using
'\\' in case where comment_chars contains '/'.

* config/tc-i386.c (MATCH): Ensure given operand and template
match for JumpAbsolute.  Makes e.g. `ljmp table(%ebx)' invalid;
you must write `ljmp *table(%ebx)'.

From H.J. Lu <hjl@gnu.org>:
* config/tc-i386.c (BFD_RELOC_16, BFD_RELOC_16_PCREL): Define
as 0 ifndef BFD_ASSEMBLER.
(md_assemble): Allow immediate operands without suffix or
other reg operand to default in size to the current code size.

26 years agoMon Jun 8 12:15:52 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Mon, 8 Jun 1998 16:20:19 +0000 (16:20 +0000)]
Mon Jun  8 12:15:52 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* i386.h (REPNE): Rename to REPNE_PREFIX_OPCODE.
(REPE): Rename to REPE_PREFIX_OPCODE.
(i386_regtab_end): Remove.
(i386_prefixtab, i386_prefixtab_end): Remove.
(i386_optab): Use NULL as sentinel rather than "" to suit rewrite
of md_begin.
(MAX_OPCODE_SIZE): Define.
(i386_optab_end): Remove.
(sl_Suf): Define.
(sl_FP): Use sl_Suf.

* i386.h (i386_optab): Allow 16 bit displacement for `mov
mem,acc'.  Combine 16 and 32 bit forms of various insns.  Allow 16
bit form of ljmp.  Add IsPrefix modifier to prefixes.  Add addr32,
data32, dword, and adword prefixes.
(i386_regtab): Add BaseIndex modifier to valid 16 bit base/index
regs.

26 years agoMon Jun 8 09:45:00 1998 Catherine Moore <clm@cygnus.com>
Catherine Moore [Mon, 8 Jun 1998 14:36:19 +0000 (14:36 +0000)]
Mon Jun  8 09:45:00 1998  Catherine Moore  <clm@cygnus.com>

        * config/tc-v850.c (md_begin):  Restore creation of
        .call_table_text and .call_table_data sections.

26 years agoAdd prototypes.
Nick Clifton [Sat, 6 Jun 1998 07:42:09 +0000 (07:42 +0000)]
Add prototypes.

26 years agoAdd prototypes.
Nick Clifton [Sat, 6 Jun 1998 07:32:18 +0000 (07:32 +0000)]
Add prototypes.

26 years agoAnother fix for PR16116
Nick Clifton [Sat, 6 Jun 1998 07:03:45 +0000 (07:03 +0000)]
Another fix for PR16116

26 years agox
Ian Lance Taylor [Sat, 6 Jun 1998 04:00:25 +0000 (04:00 +0000)]
x

26 years agoFri Jun 5 23:47:55 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Sat, 6 Jun 1998 03:54:24 +0000 (03:54 +0000)]
Fri Jun  5 23:47:55 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* i386-dis.c:  Combine aflag and dflag into sizeflag.  Change OP_*
functions to void.
(OP_DSreg): Rename from OP_DSSI.
(OP_ESreg): Rename from OP_ESDI.
(Xb, Xv, Yb, Yv): Use index reg code, not b_mode or v_mode.
(DSBX): Define.
(append_seg): Rename from append_prefix.
(ptr_reg): New function.
(dis386): Add S suffix to pushf, popf, ret, lret, enter, leave.
Add DSBX for xlat.
(PREFIX_ADDR): Rename from PREFIX_ADR.
(float_reg): Add non-broken opcodes for people who don't want
UNIXWARE_COMPAT.

26 years agoFri Jun 5 23:42:43 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Sat, 6 Jun 1998 03:47:33 +0000 (03:47 +0000)]
Fri Jun  5 23:42:43 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* i386.h (i386_regtab): Remove BaseIndex modifier from esp.

* i386.h: Allow `l' suffix on fld, fst, fstp, fcom, fcomp with
register operands, because this is a common idiom.  Flag them with
a warning.  Allow illegal faddp, fsubp, fsubrp, fmulp, fdivp,
fdivrp because gcc erroneously generates them.  Also flag with a
warning.

* i386.h: Add suffix modifiers to most insns, and tighter operand
checks in some cases.  Fix a number of UnixWare compatibility
issues with float insns.  Merge some floating point opcodes, using
new FloatMF modifier.
(WORD_PREFIX_OPCODE): Rename to DATA_PREFIX_OPCODE for
consistency.

* i386.h: Change occurence of ShortformW to W|ShortForm.  Add
IgnoreDataSize where appropriate.

26 years agoFri Jun 5 23:27:04 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Sat, 6 Jun 1998 03:42:14 +0000 (03:42 +0000)]
Fri Jun  5 23:27:04 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (mode_from_disp_size): Disp16 is mode 2.
(i386_operand): Simplify checks for valid base/index combinations.
Disallow `in 4(%dx),%al'.

* config/tc-i386.c (struct _i386_insn): Make regs, base_reg, and
index_reg const.
(add_prefix): Change parameter from char to int.

* config/tc-i386.h (Ugh): Define opcode modifier.
* config/tc-i386.c (md_assemble): Print warnings for Ugh insns.

* config/tc-i386.c (md_assemble): Rewrite MATCH and
CONSISTENT_REGISTER_MATCH macros to check register types more
thoroughly.  Check for illegal suffix/operand combinations
when matching insns with operands.  Handle new `s' suffix, and
associated FloatMF opcode modifier for float insns with memory
operands.
* config/tc-i386.h (FloatMF): Define new opcode modifier.
(No_sSuf, No_bSuf, No_wSuf, No_lSuf): Likewise.
(SHORT_OPCODE_SUFFIX, LONG_OPCODE_SUFFIX): Define.
* config/tc-i386.c: Rename WORD_PREFIX_OPCODE to
DATA_PREFIX_OPCODE throughout.

* config/tc-i386.c (REGISTER_WARNINGS): Define.
(md_assemble): Rewrite suffix/register operand checking code to be
more thorough.  Remove Abs8,16,32.  Change occurrences of Mem to
AnyMem, the better to grep.
(pi): Remove Abs.
(i386_operand): Don't set Mem bits in i.types[this_operand] when
given a memory operand.  Don't set Abs bits either.
(type_names): Remove Mem*, Abs*.
* config/tc-i386.h (Mem8, Mem16, Mem32, Abs8, Abs16, Abs32): Don't
define opcode_modifiers as these cases are handled by Disp8,
Disp16, Disp32 and suffix checks.
(COMES_IN_BOTH_DIRECTIONS): Remove.
(FloatR): Define. It's OK to share the bit with ReverseRegRegmem.

* config/tc-i386.c (md_assemble): Don't emit operand size prefix
if IgnoreDataSize modifier given.  Remove ShortformW modifier
test.  Add test for ShortForm in W base_opcode modification.
Merge Seg2ShortForm and Seg3ShortForm code.
* config/tc-i386.h (ShortFormW): Remove.
(IgnoreDataSize): Define.

26 years agosort sections by LMA then VMA.
Nick Clifton [Sat, 6 Jun 1998 00:28:46 +0000 (00:28 +0000)]
sort sections by LMA then VMA.

26 years agoAdd prototypes for static functions.
Nick Clifton [Sat, 6 Jun 1998 00:23:25 +0000 (00:23 +0000)]
Add prototypes for static functions.
Chnage type of addend from long to bfd_vma.

26 years agoFri Jun 5 19:15:59 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Fri, 5 Jun 1998 23:16:49 +0000 (23:16 +0000)]
Fri Jun  5 19:15:59 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* gas/m68k/operands.s: For all pc relative addresses change tstl
to pea since the former does not allow pcrel on m68000.  Do not
make label foo global, so that references to it can be relaxed on
ELF targets.
* gas/m68k/operands.d, gas/m68k/op68000.d: Updated.

26 years agoFri Jun 5 19:15:04 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Fri, 5 Jun 1998 23:15:45 +0000 (23:15 +0000)]
Fri Jun  5 19:15:04 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* m68k-opc.c (tstb, tstw, tstl): Don't allow pcrel on
68000/68008/68010.

26 years ago * configure.tgt (dvp-*-*): Set targ_emul=elf32l5900.
Doug Evans [Fri, 5 Jun 1998 23:00:19 +0000 (23:00 +0000)]
* configure.tgt (dvp-*-*): Set targ_emul=elf32l5900.

26 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set vma to 0
Doug Evans [Fri, 5 Jun 1998 22:58:06 +0000 (22:58 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set vma to 0
for .DVP.overlay.*.

26 years ago * objcopy.c (setup_section): Adjust the section size if copy_byte
Ian Lance Taylor [Fri, 5 Jun 1998 22:44:15 +0000 (22:44 +0000)]
* objcopy.c (setup_section): Adjust the section size if copy_byte
is >= 0.
(copy_section): Do not call bfd_set_section_size.

26 years ago * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
Ian Lance Taylor [Fri, 5 Jun 1998 22:21:31 +0000 (22:21 +0000)]
* emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
config.has_shared to true.
* emultempl/linux.em (gld${EMULATION_NAME}_before_parse):
Likewise.
* emultempl/sunos.em (gld${EMULATION_NAME}_before_parse):
Likewise.

26 years ago * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
Ian Lance Taylor [Fri, 5 Jun 1998 22:19:09 +0000 (22:19 +0000)]
* aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
complain_overflow_signed instead of complain_overflow_bitfield.

26 years ago * dbxread.c (read_dbx_symtab): Don't lower texthigh for last psymtab.
Doug Evans [Fri, 5 Jun 1998 20:57:54 +0000 (20:57 +0000)]
* dbxread.c (read_dbx_symtab): Don't lower texthigh for last psymtab.

26 years agoFri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Fri, 5 Jun 1998 19:17:08 +0000 (19:17 +0000)]
Fri Jun  5 15:11:11 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* elf.c (elf_map_symbols): Don't add section VMA to symbol value
when comparing against 0.

26 years agoFix PR16116 - stoe previous subseg state with prev instructionss.
Nick Clifton [Fri, 5 Jun 1998 17:51:58 +0000 (17:51 +0000)]
Fix PR16116 - stoe previous subseg state with prev instructionss.

26 years agoFri Jun 5 00:16:22 1998 Martin M. Hunt <hunt@cygnus.com>
Martin Hunt [Fri, 5 Jun 1998 07:13:27 +0000 (07:13 +0000)]
Fri Jun  5 00:16:22 1998  Martin M. Hunt  <hunt@cygnus.com>

* gdbtk.c (gdbtk_init): Change all references to
GDBTK_IDE to IDE_ENABLED.

26 years ago * gdb.fortran/types.exp: don't guess at float size.
Felix Lee [Fri, 5 Jun 1998 05:47:31 +0000 (05:47 +0000)]
    * gdb.fortran/types.exp: don't guess at float size.

26 years ago * chexp.exp: fix tests that assume >16-bit ints.
Felix Lee [Fri, 5 Jun 1998 04:54:03 +0000 (04:54 +0000)]
* chexp.exp: fix tests that assume >16-bit ints.

26 years ago * gdb.base/exprs.exp: delete test that depends on int size.
Felix Lee [Fri, 5 Jun 1998 04:53:28 +0000 (04:53 +0000)]
* gdb.base/exprs.exp: delete test that depends on int size.

26 years ago * remote.c (init_extended_remote_ops): Make extended_remote_ops
Stan Shebs [Fri, 5 Jun 1998 01:38:26 +0000 (01:38 +0000)]
* remote.c (init_extended_remote_ops): Make extended_remote_ops
by copying from remote_ops, move it and init_remote_ops to
usual place at end of file, remove "void" from arg lists.

26 years agoThu Jun 4 18:31:53 1998 Martin M. Hunt <hunt@cygnus.com>
Martin Hunt [Fri, 5 Jun 1998 01:29:10 +0000 (01:29 +0000)]
Thu Jun  4 18:31:53 1998  Martin M. Hunt  <hunt@cygnus.com>

* gdbtk.c (gdbtk_init): Initialize tkTable.

26 years ago * sparc-tdep.c (sparc_fix_call_dummy): Byte-swap the call dummy
Mark Alexander [Fri, 5 Jun 1998 00:57:00 +0000 (00:57 +0000)]
* sparc-tdep.c (sparc_fix_call_dummy): Byte-swap the call dummy
on bi-endian machines.
(sparc_extract_return_value): Handle values smaller than int on
machines with little-endian data.
(sparc_target_architecture_hook): Set bi_endian flag.

26 years agoAdded support for the VU insn D (debug) & T (trace) bits.
James Lemke [Thu, 4 Jun 1998 20:50:55 +0000 (20:50 +0000)]
Added support for the VU insn D (debug) & T (trace) bits.

26 years agoThu Jun 4 12:14:48 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Thu, 4 Jun 1998 19:16:00 +0000 (19:16 +0000)]
Thu Jun  4 12:14:48 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * printcmd.c (disassemble_command): Fix off-by-one error for
        disassembling functions in unmapped overlay sections.

26 years agoThu Jun 4 10:15:03 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Elena Zannoni [Thu, 4 Jun 1998 18:10:21 +0000 (18:10 +0000)]
Thu Jun  4 10:15:03 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

* gdbtk.c: merged:

- Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
        (call_obj_wrapper): in case of error, copy the
        error message from the result to the error_string.
        (gdbtk_fputs): add comments.
        (gdb_actions_command): call validate_actionline when installing the
        tracepoint, to do the syntax checking of the actions for us.
        - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
        (gdb_get_trace_frame_num): new function to get the
        trace frame number from gdb.
        (gdbtk_init): added new command gdb_get_trace_frame_num.
        - Jim Blandy  <jimb@zwingli.cygnus.com>
        (struct wrapped_call_objs): Change the `func' member to
        be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
        of objects as arguments.  Change the object vector to be const,
        since that's what all the users of this structure seem to expect.
        (call_obj_wrapper): Cast clientData properly before storing it in
        the wrapped_args structure.

26 years agoThu Jun 4 10:15:03 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Elena Zannoni [Thu, 4 Jun 1998 18:07:32 +0000 (18:07 +0000)]
Thu Jun  4 10:15:03 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

        * remote.c: merged.

        - Jim Blandy  <jimb@zwingli.cygnus.com>
        (print_packet, remote_packet_command): New functions.
        (_initialize_remote): Register the remote-packet command.
        - David Taylor  <taylor@texas.cygnus.com>
        (_initialize_remote): remote-compare is now
        compare-sections.
        - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
         (remote_compare_command): added warning, issued in case
        of mismatch only.

26 years agoFix my previous screwed-up checkin.
Michael Snyder [Thu, 4 Jun 1998 17:55:57 +0000 (17:55 +0000)]
Fix my previous screwed-up checkin.

26 years agoAdd missing \n\ from help description.
Nick Clifton [Thu, 4 Jun 1998 16:13:47 +0000 (16:13 +0000)]
Add missing \n\ from help description.

26 years agoThu Jun 4 08:25:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Thu, 4 Jun 1998 15:29:58 +0000 (15:29 +0000)]
Thu Jun  4 08:25:38 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * remote.c (remote_compare_command): New function, new command.
        Compare object file binary image with corresponding memory on
        remote target.  Report differences.

26 years ago* Early check-in of tx3904 timer sim implementation for ECC.
Frank Ch. Eigler [Thu, 4 Jun 1998 12:43:45 +0000 (12:43 +0000)]
* Early check-in of tx3904 timer sim implementation for ECC.
  It is not yet properly tested.
Thu Jun  4 15:37:33 1998  Frank Ch. Eigler  <fche@cygnus.com>
* dv-tx3904tmr.c: New file - implements tx3904 timer.
* dv-tx3904{irc,cpu}.c: Mild reformatting.
* configure.in: Include tx3904tmr in hw_device list.
* configure: Rebuilt.
* interp.c (sim_open): Instantiate three timer instances.
Fix address typo of tx3904irc instance.

26 years agoThe r5900 doesn't have HI/LO DIV/MUL register problems. Hobble
Andrew Cagney [Thu, 4 Jun 1998 08:46:56 +0000 (08:46 +0000)]
The r5900 doesn't have HI/LO DIV/MUL register problems.  Hobble
checks on hi/lo usage but retain functions so that they can be used
for HI/LO stall counting code.

26 years agoMemory corruption problems - hw-event list wasn't correct
Andrew Cagney [Thu, 4 Jun 1998 06:33:02 +0000 (06:33 +0000)]
Memory corruption problems - hw-event list wasn't correct
unlinking/freeing events.  Couldn't handle the removal of a hw-event
that just been scheduled.

26 years agox
Ian Lance Taylor [Thu, 4 Jun 1998 00:08:42 +0000 (00:08 +0000)]
x

26 years ago * Makefile.am (YACC): Correct bison -L option.
Ian Lance Taylor [Wed, 3 Jun 1998 23:59:39 +0000 (23:59 +0000)]
* Makefile.am (YACC): Correct bison -L option.
* Makefile.in: Rebuild.

26 years ago * binutils.texi, objdump.1: Document -p/--private-headers.
Ian Lance Taylor [Wed, 3 Jun 1998 23:32:22 +0000 (23:32 +0000)]
* binutils.texi, objdump.1: Document -p/--private-headers.

26 years agox
Ian Lance Taylor [Wed, 3 Jun 1998 23:19:32 +0000 (23:19 +0000)]
x

26 years agoWed Jun 3 18:21:56 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Wed, 3 Jun 1998 23:11:04 +0000 (23:11 +0000)]
Wed Jun  3 18:21:56 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (END_STRING_AND_SAVE): Protect arguments of
macros and enclose in do while(0).
(RESTORE_END_STRING): Likewise.
(md_assemble): Add one to printed operand number so we start
from 1 not 0.  Add some more gettext invocations.
(i386_operand): Fix `%%s' -> `%%%s'. Inc printed operand
number here too.

* config/tc-i386.h (WAIT_PREFIX, LOCKREP_PREFIX, ADDR_PREFIX,
DATA_PREFIX, SEG_PREFIX): Define.
* config/tc-i386.c (struct _i386_insn): Remove wait_prefix field.
(check_prefix): Remove function.
(add_prefix): New function.  Add prefix to i.prefix as well as
doing checks.
(md_assemble): Changes for add_prefix. Remove hack for wait
prefix, instead always output prefixes in fixed order. Test
for jcxz/loop when selecting between word & dword operations,
and add address size prefix rather than operand size prefix.
Remove operand -> address size hack when emitting jcxz/loop.
(i386_operand): Remove O_Absent check as it's done in expr.

26 years agox
Ian Lance Taylor [Wed, 3 Jun 1998 22:57:17 +0000 (22:57 +0000)]
x

26 years agoImplemented new command line options: --change-section-vma and --change-section-lma.
Nick Clifton [Wed, 3 Jun 1998 22:54:50 +0000 (22:54 +0000)]
Implemented new command line options: --change-section-vma and --change-section-lma.
Tidied up the code.

26 years agoWed Jun 3 18:28:45 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Wed, 3 Jun 1998 22:31:09 +0000 (22:31 +0000)]
Wed Jun  3 18:28:45 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* i386.h: (one_byte_segment_defaults): Remove.
(two_byte_segment_defaults): Remove.
(i386_regtab): Add BaseIndex to 32 bit regs reg_type.

26 years agoWed Jun 3 18:21:56 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Wed, 3 Jun 1998 22:28:28 +0000 (22:28 +0000)]
Wed Jun  3 18:21:56 1998  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (SCALE1_WHEN_NO_INDEX): Define.
(ebp, esp): Remove static variables.
(MATCH): Remove test for InOutPortReg.
(i386_operand): Properly handle InOutPortReg here instead.
Disallows `inb (%dx,2)', `inb %es:(%dx)' and `mov (%dx),%ax'
(md_assemble): Simplify and correct modrm and sib generation.
(i386_operand): Add warning for scale without index.
Rewrite checks for valid base/index combinations.

26 years ago * Makefile.am (config.status): New target.
Ian Lance Taylor [Wed, 3 Jun 1998 21:53:14 +0000 (21:53 +0000)]
* Makefile.am (config.status): New target.
* Makefile.in: Rebuild.

26 years agomerged from EMC branch into devo
Michael Snyder [Wed, 3 Jun 1998 20:14:26 +0000 (20:14 +0000)]
merged from EMC branch into devo

26 years agoMerge changes from EMC branch: ax-gdb.c, ax-general.c
Michael Snyder [Wed, 3 Jun 1998 20:02:02 +0000 (20:02 +0000)]
Merge changes from EMC branch: ax-gdb.c, ax-general.c

26 years agoMerge from EMC branch back to main trunk.
Michael Snyder [Wed, 3 Jun 1998 19:50:55 +0000 (19:50 +0000)]
Merge from EMC branch back to main trunk.

26 years ago * mips.h (Elf32_Dvp_Internal_Overlay,Elf32_Dvp_External_Overlay):
Doug Evans [Wed, 3 Jun 1998 19:15:56 +0000 (19:15 +0000)]
* mips.h (Elf32_Dvp_Internal_Overlay,Elf32_Dvp_External_Overlay):
Rename from 64 bit versions, update members to be 32 bits.
(bfd_dvp_elf32_swap_overlay_in,bfd_dvp_elf32_swap_overlay_out):
Rename from 64 bit versions.

26 years agoAdd new function: non_fatal().
Nick Clifton [Wed, 3 Jun 1998 19:13:40 +0000 (19:13 +0000)]
Add new function: non_fatal().

26 years ago * configure.in: Recognize m5200 as a cpu_type of m68k.
Ian Lance Taylor [Wed, 3 Jun 1998 19:12:08 +0000 (19:12 +0000)]
* configure.in: Recognize m5200 as a cpu_type of m68k.
* aclocal.m4: Rebuild with current libtool.
* configure: Rebuild.

26 years ago * config.sub: Accept m68060 and m5200 as CPU names.
Ian Lance Taylor [Wed, 3 Jun 1998 18:52:10 +0000 (18:52 +0000)]
* config.sub: Accept m68060 and m5200 as CPU names.

26 years ago * elf32-mips.c (_bfd_mips_elf_fake_sections): Update to use
Doug Evans [Wed, 3 Jun 1998 18:42:31 +0000 (18:42 +0000)]
* elf32-mips.c (_bfd_mips_elf_fake_sections): Update to use
Elf32_Dvp_External_Overlay instead of 64 bit version.

26 years agoWed Jun 3 14:11:59 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Wed, 3 Jun 1998 18:16:11 +0000 (18:16 +0000)]
Wed Jun  3 14:11:59 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* config/tc-m68k.c (md_estimate_size_before_relax): Add more calls
to relaxable_symbol to prevent references to external symbol from
being relaxed.

Wed Jun  3 14:10:36 1998  Ian Lance Taylor  <ian@cygnus.com>

* config/tc-m68k.c (relaxable_symbol): If TARGET_OS is "elf", all
symbols are relaxable.

26 years ago * config/tc-dvp.c (md_begin): Change alignment of .DVP.ovlytab to 4.
Doug Evans [Wed, 3 Jun 1998 17:27:56 +0000 (17:27 +0000)]
* config/tc-dvp.c (md_begin): Change alignment of .DVP.ovlytab to 4.
(create_vuoverlay_section): Entries are 4 bytes not 8.

26 years agoGive error if previous object endianness doesn't match the current one.
Stan Cox [Wed, 3 Jun 1998 16:20:48 +0000 (16:20 +0000)]
Give error if previous object endianness doesn't match the current one.

26 years agoconfig/tc-v850.c (md_begin): Don't create special sections by default.
Catherine Moore [Wed, 3 Jun 1998 14:32:15 +0000 (14:32 +0000)]
config/tc-v850.c (md_begin):  Don't create special sections by default.

26 years ago * sparc-tdep.c (sparc_target_architecture_hook): Set target
Mark Alexander [Wed, 3 Jun 1998 02:08:06 +0000 (02:08 +0000)]
* sparc-tdep.c (sparc_target_architecture_hook): Set target
byte order only when it's selectable.

26 years agoStraggler - accidently dropped from the pack of target-ops reorg of inits
John Metzler [Wed, 3 Jun 1998 01:27:17 +0000 (01:27 +0000)]
Straggler - accidently dropped from the pack of target-ops reorg of inits

26 years agoFixed private data printing to include program headers.
Nick Clifton [Wed, 3 Jun 1998 00:51:58 +0000 (00:51 +0000)]
Fixed private data printing to include program headers.

26 years ago * interf.c (sim_open): Use revamped memory_read, which makes
Mark Alexander [Tue, 2 Jun 1998 22:43:46 +0000 (22:43 +0000)]
* interf.c (sim_open): Use revamped memory_read, which makes
byte-swapping unnecessary.  Add -sparclite-board option for
emulating RAM found on typical SPARClite boards.  Print
error message for unrecognized option.
* erc32.c: Change RAM address and size from constants to variables,
to allow emulation of SPARClite board RAM.
(fetch_bytes, store_bytes): New helper functions for revamped
mememory_read and memory_write.
(memory_read, memory_write): Rewrite to store bytes in target
byte order instead of storing words in host byte order; this
greatly simplifies support of little-endian programs.
(get_mem_ptr): Remove unnecessary byte parameter.
(sis_memory_write, sis_memory_read): Store words in target
byte order instead of host byte order.
(byte_swap_words): Remove, no longer needed.
* sis.h ((byte_swap_words): Remove declaration, no longer needed.
(memory_read): Add new sz parameter.
* sis.c (run_sim): Use revamped memory_read, which makes
byte-swapping unnecessary.
* exec.c (dispatch_instruction): Use revamped memory_read, which
makes byte-swapping and double-word fetching unnecessary.
* func.c (sparclite_board): Declare new variable.
(get_regi): Handle little-endian data.
(bfd_load): Recognize little-endian SPARClite as having
little-endian data.

26 years agoAllow simulator to work with Angel SWIs.
Nick Clifton [Tue, 2 Jun 1998 22:23:52 +0000 (22:23 +0000)]
Allow simulator to work with Angel SWIs.

26 years ago * elflink.h (elf_merge_symbol): Don't always set type_change_ok
Ian Lance Taylor [Tue, 2 Jun 1998 21:16:06 +0000 (21:16 +0000)]
* elflink.h (elf_merge_symbol): Don't always set type_change_ok
and size_change_ok.
  (elf_link_add_object_symbols): Set type_change_ok and
size_change_ok before calling elf_merge_symbol.

26 years ago* Move the sanitize comments to the right place.
Ian Carmichael [Tue, 2 Jun 1998 21:04:49 +0000 (21:04 +0000)]
* Move the sanitize comments to the right place.

26 years ago * config/tc-mips.c (macro): For div and udiv, close the
Jeff Law [Tue, 2 Jun 1998 20:54:35 +0000 (20:54 +0000)]
    * config/tc-mips.c (macro): For div and udiv, close the
        reorder block as soon as possible.

26 years ago* SYSCALL now uses exception vector.
Ian Carmichael [Tue, 2 Jun 1998 19:53:36 +0000 (19:53 +0000)]
* SYSCALL now uses exception vector.
* SKY: New memory mapping rules for k1seg, k0seg.
* Modified Files: ChangeLog.sky ChangeLog interp.c sim-main.c

26 years ago From Matt Semersky <matts@scd.hp.com>:
Ian Lance Taylor [Tue, 2 Jun 1998 19:39:45 +0000 (19:39 +0000)]
From Matt Semersky <matts@scd.hp.com>:
* macro.c (macro_mri_mode): New function.
* macro.h (macro_mri_mode): Declare.
* read.c (s_mri): Call macro_mri_mode when switching in and out of
MRI mode.

26 years ago * elf32-mips.c (mips_elf_relocate_section): If we issue an
Ian Lance Taylor [Tue, 2 Jun 1998 19:30:09 +0000 (19:30 +0000)]
* elf32-mips.c (mips_elf_relocate_section): If we issue an
undefined symbol error, don't also issue an overflow error.

26 years agoTue Jun 2 15:08:36 1998 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Tue, 2 Jun 1998 19:09:38 +0000 (19:09 +0000)]
Tue Jun  2 15:08:36 1998  Geoff Keating  <geoffk@ozemail.com.au>

* gas/ppc/ppc.exp: Run simpshft test.
* gas/ppc/simpshft.d: New file.
* gas/ppc/simpshft.s: New file.

26 years agoTue Jun 2 15:06:46 1998 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Tue, 2 Jun 1998 19:07:44 +0000 (19:07 +0000)]
Tue Jun  2 15:06:46 1998  Geoff Keating  <geoffk@ozemail.com.au>

* ppc-opc.c (powerpc_macros): Support shifts and rotates of size
0; produce error message for shifts of size 32 (or 64 for 64-bit
shifts), because the hardware doesn't support them.

26 years agoTue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
Ian Lance Taylor [Tue, 2 Jun 1998 18:15:42 +0000 (18:15 +0000)]
Tue Jun  2 13:51:00 1998  Geoff Keating  <geoffk@ozemail.com.au>

* elf32-ppc.c (ppc_elf_relocate_section): The target of an
R_PPC_LOCAL24PC relocation should be local; if not, print an error
message instead of crashing.

26 years agoTue Jun 2 13:32:22 1998 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Tue, 2 Jun 1998 17:35:03 +0000 (17:35 +0000)]
Tue Jun  2 13:32:22 1998  Klaus Kaempf  <kkaempf@progis.de>

* config/tc-alpha.c (s_alpha_comm): Defer restoring character
until after xstrdup in OBJ_EVAX case.

26 years agoTue Jun 2 13:32:22 1998 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Tue, 2 Jun 1998 17:33:07 +0000 (17:33 +0000)]
Tue Jun  2 13:32:22 1998  Klaus Kaempf  <kkaempf@progis.de>

* config/tc-alpha.c (s_alpha_comm): Allow alignment parameter in
OBJ_EVAX case.

26 years agoTue Jun 2 13:11:13 1998 Pat Rankin <rankin@eql.caltech.edu>
Ian Lance Taylor [Tue, 2 Jun 1998 17:15:00 +0000 (17:15 +0000)]
Tue Jun  2 13:11:13 1998  Pat Rankin  <rankin@eql.caltech.edu>

* config/tc-vax.c (md_create_short_jump): Fix off by two bug in
offset calculation.  Also, use VAX_BRW from vax-inst.h instead
of hardcoded magic number.
(md_create_long_jump): Use VAX_JMP and VAX_ABSOLUTE_MODE macros.

26 years ago * ldlang.c (lang_finish): If the entry symbol is not found, try
Ian Lance Taylor [Tue, 2 Jun 1998 16:59:37 +0000 (16:59 +0000)]
* ldlang.c (lang_finish): If the entry symbol is not found, try
parsing it as a number.
* ld.texinfo (Options): Document this.

26 years ago * read.c (do_s_func): New function.
Doug Evans [Tue, 2 Jun 1998 16:54:59 +0000 (16:54 +0000)]
* read.c (do_s_func): New function.
(s_func): Call it.
* read.h (do_s_func): Add prototype.
* config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc.
(s_dvp_func): New function.

26 years ago * read.c (do_s_func): New function.
Doug Evans [Tue, 2 Jun 1998 16:54:20 +0000 (16:54 +0000)]
* read.c (do_s_func): New function.
(s_func): Call it.
* config/tc-dvp.c (md_pseudo_table): Add .func/.endfunc.
(s_dvp_func): New function.

26 years ago * read.c (s_func): Prepend `leading char' by default.
Doug Evans [Tue, 2 Jun 1998 16:26:43 +0000 (16:26 +0000)]
* read.c (s_func): Prepend `leading char' by default.

26 years ago * sparc-tdep.c (sparc_target_architecture_hook): New function to
Mark Alexander [Tue, 2 Jun 1998 09:19:54 +0000 (09:19 +0000)]
* sparc-tdep.c (sparc_target_architecture_hook): New function to
set endianness based on machine type.
(_initialize_sparc_tdep): Initialize target_architecture_hook.
(sparc_print_register_hook): Print PSR and FPSR in fancy format
on 32-bit machines.
* config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Redefine to
call sparc_print_register_hook instead of using inline code.
* config/sparc/tm-sp64.h (PRINT_REGISTER_HOOK): Remove.

26 years agoMon Jun 1 17:14:19 1998 Anthony Thompson (athompso@cambridge.arm.com)
Jason Molenda [Tue, 2 Jun 1998 00:18:31 +0000 (00:18 +0000)]
Mon Jun  1 17:14:19 1998  Anthony Thompson (athompso@cambridge.arm.com)

        * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
        of ":tt" to catch stdin in addition to stdout.
        (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
        or success of lseek().

From PR 15839, modified a bit by me to appease my sense of style--but
not too much because I am lazy.

26 years ago * config/tc-mips.c (hilo_interlocks): The r5900 has HILO interlocks.
Jeff Law [Mon, 1 Jun 1998 23:07:21 +0000 (23:07 +0000)]
    * config/tc-mips.c (hilo_interlocks): The r5900 has HILO interlocks.

26 years ago * gas/mips/break5900.d: Update after interlock changes.
Jeff Law [Mon, 1 Jun 1998 23:04:50 +0000 (23:04 +0000)]
    * gas/mips/break5900.d: Update after interlock changes.
        * gas/mips/mips.exp: The r5900 has ilocks and gpr_ilocks.
        * gas/mips/div-ilocks.d: Handle both "break" instruction variants.
        * gas/mips/{div.d, mul-ilocks.d, mul.d}: Likewise.

26 years ago From Yuli Barcohen <yuli.barcohen@telrad.co.il>:
Ian Lance Taylor [Mon, 1 Jun 1998 22:28:07 +0000 (22:28 +0000)]
From Yuli Barcohen <yuli.barcohen@telrad.co.il>:
* debug.c (debug_type_samep): Avoid endless loops comparing
function and method parameter types.

26 years agoMon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
Ian Lance Taylor [Mon, 1 Jun 1998 22:25:37 +0000 (22:25 +0000)]
Mon Jun  1 18:23:12 1998  Yuli Barcohen  <yuli.barcohen@telrad.co.il>

* archures.c (bfd_mach_cpu32): Define.
(bfd_default_scan): Add case for 68060.  Fix 68332 case to use
bfd_mach_cpu32.
* cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
* ieee.c: Include <ctype.h>.
(ieee_object_p): Parse out process ID string to make it more
likely to be acceptable for bfd_scan_arch.
* bfd-in2.h: Rebuild.

26 years ago * gas/all/gas.exp: Don't run `align' test for dvp-*-*.
Doug Evans [Mon, 1 Jun 1998 22:11:21 +0000 (22:11 +0000)]
* gas/all/gas.exp: Don't run `align' test for dvp-*-*.
* gas/macros/macros.exp: Don't run `semi' test for dvp-*-*.
* gas/dvp/align.[sd]: New testcase.
* gas/dvp/semi.[sd]: New testcase.

26 years agoDon't run the `semi' testcase if dvp-*-*.
Doug Evans [Mon, 1 Jun 1998 22:09:48 +0000 (22:09 +0000)]
Don't run the `semi' testcase if dvp-*-*.

26 years agoDon't run the `align' testcase if dvp-*-*.
Doug Evans [Mon, 1 Jun 1998 22:09:19 +0000 (22:09 +0000)]
Don't run the `align' testcase if dvp-*-*.

26 years ago * configure.in: Use && rather than using -a in test, because odd
Ian Lance Taylor [Mon, 1 Jun 1998 21:29:21 +0000 (21:29 +0000)]
* configure.in: Use && rather than using -a in test, because odd
strings can confuse test.

26 years ago * configure: Use && rather than using -a in test, because odd
Ian Lance Taylor [Mon, 1 Jun 1998 21:26:12 +0000 (21:26 +0000)]
* configure: Use && rather than using -a in test, because odd
strings can confuse test.

26 years ago * config/tc-m32r.c (m32r_do_align): Only fill code sections with
Doug Evans [Mon, 1 Jun 1998 19:48:48 +0000 (19:48 +0000)]
* config/tc-m32r.c (m32r_do_align): Only fill code sections with
nops if fill pattern not specified.

26 years ago * mips-opc.c (c.lt.s): Remove r5900 specific variant.
Jeff Law [Mon, 1 Jun 1998 18:25:20 +0000 (18:25 +0000)]
    * mips-opc.c (c.lt.s): Remove r5900 specific variant.
        (c.le.s): Likewise.

26 years agoFix PHDRS test in linker testsuite by also dumping program header output
Nick Clifton [Mon, 1 Jun 1998 18:13:33 +0000 (18:13 +0000)]
Fix PHDRS test in linker testsuite by also dumping program header output
when displaying private data.

26 years ago From Andrew Crabtree <andrewc@typhoon.rose.hp.com>:
Ian Lance Taylor [Mon, 1 Jun 1998 18:10:16 +0000 (18:10 +0000)]
From Andrew Crabtree <andrewc@typhoon.rose.hp.com>:
* config/te-go32.h (TE_GO32): Define.
* config/tc-i386.h (LOCAL_LABEL): Don't define if TE_GO32.

26 years ago * ld.texinfo (Input Section Wildcards): Document SORT keyword.
Ian Lance Taylor [Mon, 1 Jun 1998 18:01:37 +0000 (18:01 +0000)]
* ld.texinfo (Input Section Wildcards): Document SORT keyword.

26 years ago * vu0.h (sqc2): Fix opcode.
Jeff Law [Mon, 1 Jun 1998 16:36:09 +0000 (16:36 +0000)]
    * vu0.h (sqc2): Fix opcode.

26 years ago* Small TX39-only patch for ECC.
Frank Ch. Eigler [Mon, 1 Jun 1998 16:29:43 +0000 (16:29 +0000)]
* Small TX39-only patch for ECC.
Mon Jun  1 18:18:26 1998  Frank Ch. Eigler  <fche@cygnus.com>
* interp.c (decode_coproc): For TX39, add stub COP0 register #3,
to allay warnings.