binutils-gdb.git
28 years ago * gdb.base/coremaker.c: Add code to mmap some data so we
Fred Fish [Fri, 1 Nov 1996 20:00:26 +0000 (20:00 +0000)]
* gdb.base/coremaker.c: Add code to mmap some data so we
can check that it ends up in the core file.
* gdb.base/corefile.exp: Add test to read mmapped data
from core file.

28 years ago * ld.texinfo: Add section on reporting bugs.
Ian Lance Taylor [Fri, 1 Nov 1996 19:54:52 +0000 (19:54 +0000)]
* ld.texinfo: Add section on reporting bugs.

28 years ago * doc/as.texinfo: Added section on reporting bugs.
Ian Lance Taylor [Fri, 1 Nov 1996 19:37:24 +0000 (19:37 +0000)]
* doc/as.texinfo: Added section on reporting bugs.

28 years agoadd missing d10v sanitization
Ian Lance Taylor [Fri, 1 Nov 1996 19:05:55 +0000 (19:05 +0000)]
add missing d10v sanitization

28 years ago * config/tc-alpha.c: Change uses of void * to PTR. Change the
Ian Lance Taylor [Fri, 1 Nov 1996 18:44:14 +0000 (18:44 +0000)]
* config/tc-alpha.c: Change uses of void * to PTR.  Change the
alpha_macro emit field to expect a const argument, and change the
arg field to be const.  Fix some spacing to follow the GNU
standard.

Fri Nov  1 10:32:03 1996  Richard Henderson  <rth@tamu.edu>

* config/tc-alpha.c (md_parse_option): Add knowledge of 21164pc
(pca56) and 21264 (ev6) cpus.
(md_apply_fix): Private relocation types are now negative.
(alpha_force_relocation): Likewise.
(tc_gen_reloc): Likewise.
(emit_insn): Likewise.
(emit_ldXu): Do the right thing when the hardware can do byte insns.
(emit_stX): Likewise.
(emit_sextX): Likewise.

28 years agoFri Nov 1 10:31:02 1996 Richard Henderson <rth@tamu.edu>
Ian Lance Taylor [Fri, 1 Nov 1996 18:31:57 +0000 (18:31 +0000)]
Fri Nov  1 10:31:02 1996  Richard Henderson  <rth@tamu.edu>

* alpha.h: Don't include "bfd.h"; private relocation types are now
  negative to minimize problems with shared libraries.  Organize
  instruction subsets by AMASK extensions and PALcode
  implementation.
(struct alpha_operand): Move flags slot for better packing.

28 years agoFri Nov 1 10:29:11 1996 Richard Henderson <rth@tamu.edu>
Ian Lance Taylor [Fri, 1 Nov 1996 18:30:43 +0000 (18:30 +0000)]
Fri Nov  1 10:29:11 1996  Richard Henderson  <rth@tamu.edu>

* alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
standard disassembly.

* alpha-opc.c (alpha_operands): Rearrange flags slot.
(alpha_opcodes): Add new BWX, CIX, and MAX instructions.
Recategorize PALcode instructions.

28 years ago * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
Ian Lance Taylor [Fri, 1 Nov 1996 18:01:57 +0000 (18:01 +0000)]
* scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
symbols are correctly aligned.

28 years agoMake gdb compile & link cleanly on powerpc-linux
Michael Meissner [Fri, 1 Nov 1996 15:53:28 +0000 (15:53 +0000)]
Make gdb compile & link cleanly on powerpc-linux

28 years agoPowerpc-linux now builds the simulator
Michael Meissner [Fri, 1 Nov 1996 13:08:43 +0000 (13:08 +0000)]
Powerpc-linux now builds the simulator

28 years agoThu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Fri, 1 Nov 1996 03:15:44 +0000 (03:15 +0000)]
Thu Oct 31 19:13:55 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* interp.c (sim_fetch_register, sim_store_register): Fix bug where
updating the accumulators was overwriting other parts of the global
State variable.

28 years ago * stabs.c (struct stab_handle): Add bincl_list field.
Ian Lance Taylor [Fri, 1 Nov 1996 03:06:49 +0000 (03:06 +0000)]
* stabs.c (struct stab_handle): Add bincl_list field.
(parse_stab): Pass value to push_bincl.  Call find_excl for
N_EXCL.
(struct bincl_file): Add hash, file and file_types fields.
(push_bincl): Add hash parameter.  Save it in the new hash field.
Save the file number in the new file field.
(pop_bincl): Put the bincl_file on bincl_list, rather than freeing
it.  Save the file types in the new file_types field.
(find_excl): New static function.
PR 10980.

28 years ago * ieee.c (ieee_lineno): Don't compare line number addresses to
Ian Lance Taylor [Fri, 1 Nov 1996 02:21:50 +0000 (02:21 +0000)]
* ieee.c (ieee_lineno): Don't compare line number addresses to
info->highaddr (undo part of October 28 patch).

28 years agoFix sanitization of D10V script template
Stan Shebs [Fri, 1 Nov 1996 02:14:43 +0000 (02:14 +0000)]
Fix sanitization of D10V script template

28 years agoThu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Fri, 1 Nov 1996 00:41:21 +0000 (00:41 +0000)]
Thu Oct 31 16:37:17 1996  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
        * configure.tgt: Add entry for m32r target.
        * monitor.h:   Add a flag to tell monitor_store_register to use
                        (val, regno) instead of (regno, val).
        * monitor.c:   Make monitor_store_register honor the above flag.
                        Make monitor_exp ignore DC1/DC3 for m32r.
                        Increase buf size in monitor_dump_regs.

28 years ago * symbols.c (resolve_symbol_value): Improve the error message if
Ian Lance Taylor [Fri, 1 Nov 1996 00:35:00 +0000 (00:35 +0000)]
* symbols.c (resolve_symbol_value): Improve the error message if
an undefined symbol is used in an expression.

28 years ago * ansidecl.h (VPARAMS,VA_START): Define.
David Edelsohn [Thu, 31 Oct 1996 22:59:20 +0000 (22:59 +0000)]
* ansidecl.h (VPARAMS,VA_START): Define.

28 years agoFix linux build problem.
Gavin Romig-Koch [Thu, 31 Oct 1996 19:58:14 +0000 (19:58 +0000)]
Fix linux build problem.

28 years ago(set_expected_cpus): Add m32r.
David Edelsohn [Thu, 31 Oct 1996 18:59:51 +0000 (18:59 +0000)]
(set_expected_cpus): Add m32r.

28 years ago.Sanitize for config/m32r.
David Edelsohn [Thu, 31 Oct 1996 18:11:44 +0000 (18:11 +0000)]
.Sanitize for config/m32r.

28 years ago * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
Jeff Law [Thu, 31 Oct 1996 16:45:02 +0000 (16:45 +0000)]
    * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
        romzbss too.

28 years ago * doc/internals.texi: Rewrite, and add a lot of documentation.
Ian Lance Taylor [Thu, 31 Oct 1996 04:16:52 +0000 (04:16 +0000)]
* doc/internals.texi: Rewrite, and add a lot of documentation.
* doc/Makefile.in (internals.info): New target.

28 years agoFilter changes for m32r target.
Michael Snyder [Thu, 31 Oct 1996 02:31:56 +0000 (02:31 +0000)]
Filter changes for m32r target.

28 years agoWed Oct 30 18:19:16 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Thu, 31 Oct 1996 02:30:32 +0000 (02:30 +0000)]
Wed Oct 30 18:19:16 1996  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * config/m32r.exp: New file.

28 years agoKeep changes, if m32r.
Michael Snyder [Thu, 31 Oct 1996 02:28:56 +0000 (02:28 +0000)]
Keep changes, if m32r.

28 years agoWed Oct 30 18:14:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Thu, 31 Oct 1996 02:27:58 +0000 (02:27 +0000)]
Wed Oct 30 18:14:14 1996  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * m32r-tdep.c, m32r-rom.c: New files.
        * config/m32r/m32r.mt: New file.
        * config/m32r/tm-m32r.h: New file.

28 years agoKeep new files, modulo m32r.
Michael Snyder [Thu, 31 Oct 1996 02:26:56 +0000 (02:26 +0000)]
Keep new files, modulo m32r.

28 years ago * v850-opc.c (v850_opcodes): Add relaxing "jbr".
Jeff Law [Wed, 30 Oct 1996 23:52:31 +0000 (23:52 +0000)]
    * v850-opc.c (v850_opcodes): Add relaxing "jbr".

28 years agoFix -t option to work with memory mapping; Print PC in some error messages
Michael Meissner [Wed, 30 Oct 1996 22:43:02 +0000 (22:43 +0000)]
Fix -t option to work with memory mapping; Print PC in some error messages

28 years ago * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
Jeff Law [Wed, 30 Oct 1996 21:58:38 +0000 (21:58 +0000)]
    * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
        against weak symbols.
Fixing RW failures.

28 years ago * simops.c (OP_10007E0): Handle SYS_times and SYS_gettimeofday.
Jeff Law [Wed, 30 Oct 1996 16:30:59 +0000 (16:30 +0000)]
    * simops.c (OP_10007E0): Handle SYS_times and SYS_gettimeofday.
Check it into devo too.

28 years ago * simops.c (OP_10007E0): Handle SYS_time.
Jeff Law [Wed, 30 Oct 1996 15:51:39 +0000 (15:51 +0000)]
    * simops.c (OP_10007E0): Handle SYS_time.
Check into devo too.

28 years agoTue Oct 29 16:56:01 1996 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 30 Oct 1996 00:58:26 +0000 (00:58 +0000)]
Tue Oct 29 16:56:01 1996  Geoffrey Noer  <noer@cygnus.com>

        * config/i386/xm-cygwin32.h:
        * config/powerpc/xm-cygwin32.h:
        add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
        truncated

28 years ago * Makefile.in (all-target-winsup): Depend on all-target-librx.
David Edelsohn [Wed, 30 Oct 1996 00:42:06 +0000 (00:42 +0000)]
* Makefile.in (all-target-winsup): Depend on all-target-librx.

28 years agoAllow bi-endian support in PowerPC
Michael Meissner [Tue, 29 Oct 1996 23:40:58 +0000 (23:40 +0000)]
Allow bi-endian support in PowerPC

28 years ago * TODO: Add item suggesting an "info bfd" command.
Stan Shebs [Tue, 29 Oct 1996 23:20:54 +0000 (23:20 +0000)]
* TODO: Add item suggesting an "info bfd" command.

28 years ago * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
David Edelsohn [Tue, 29 Oct 1996 23:09:51 +0000 (23:09 +0000)]
* elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
complain_overflow_unsigned.

28 years agoAdd access, sigaltstack, sigaction emulations
Michael Meissner [Tue, 29 Oct 1996 23:02:33 +0000 (23:02 +0000)]
Add access, sigaltstack, sigaction emulations

28 years ago * gas/mips/*.d: Update for disassembler changes.
Ian Lance Taylor [Tue, 29 Oct 1996 22:22:35 +0000 (22:22 +0000)]
* gas/mips/*.d: Update for disassembler changes.

28 years agoadd missing end-sanitize-v850
Ian Lance Taylor [Tue, 29 Oct 1996 22:04:56 +0000 (22:04 +0000)]
add missing end-sanitize-v850

28 years ago * objdump.c (objdump_print_value): Don't print the empty string
Ian Lance Taylor [Tue, 29 Oct 1996 21:41:28 +0000 (21:41 +0000)]
* objdump.c (objdump_print_value): Don't print the empty string
for zero.

28 years ago * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
Ian Lance Taylor [Tue, 29 Oct 1996 21:31:22 +0000 (21:31 +0000)]
* mips-dis.c (_print_insn_mips): Don't print a trailing tab if
there are no operand types.

28 years ago * simops.c: Include <sys/stat.h>.
Jeff Law [Tue, 29 Oct 1996 21:24:01 +0000 (21:24 +0000)]
    * simops.c: Include <sys/stat.h>.
        (OP_10007E0): Handle SYS_stat.
For RW testing.

28 years ago * config/tc-v850.c (md_assemble): Don't lose for relaxable
Jeff Law [Tue, 29 Oct 1996 21:16:17 +0000 (21:16 +0000)]
    * config/tc-v850.c (md_assemble): Don't lose for relaxable
        addresses like .+6.
Fixing more problems with new relaxing code.

28 years agoTue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 29 Oct 1996 20:55:52 +0000 (20:55 +0000)]
Tue Oct 29 12:53:46 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* elf32-d10v.c (elf_d10v_howto_table): Don't complain on
overflows for R_D10V_16 and R_D10V_18.

28 years agoTue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 29 Oct 1996 20:53:04 +0000 (20:53 +0000)]
Tue Oct 29 12:48:04 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
(TARGET_READ_FP,TARGET_WRITE_FP): Define.

28 years agoTue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 29 Oct 1996 20:52:52 +0000 (20:52 +0000)]
Tue Oct 29 12:48:04 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v-tdep.c: Snapshot that supports D10V-EVA board.

* config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
(TARGET_READ_FP,TARGET_WRITE_FP): Define.

28 years agoTue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 29 Oct 1996 20:44:33 +0000 (20:44 +0000)]
Tue Oct 29 12:33:05 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10velf.sh: Changes needed for D10V-EVA board.
Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
0x2000000.

28 years agoTue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 29 Oct 1996 20:44:15 +0000 (20:44 +0000)]
Tue Oct 29 12:33:05 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* emulparams/d10velf.sh: Changes needed for D10V-EVA board.
Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
0x2000000.

* scripttempl/elfd10v.sc:  Fix calculation of .text.  Change
.stack to start at 0x2007ffe.

28 years agoTue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Tue, 29 Oct 1996 20:31:08 +0000 (20:31 +0000)]
Tue Oct 29 12:13:52 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* interp.c (sim_size): Now allocates unified memory for imap segments
0,1,2, and 127. Initializes imap0 and imap1 to 0x1000.  Initializes dmap to 0.
(sim_write): Just call xfer_mem().
(sim_read): Just call xfer_mem().
(xfer_mem): New function. Does appropriate memory mapping and copies bytes.
(dmem_addr): New function. Reads dmap register and translates data
  addresses to local addresses.
(pc_addr): New function. Reads imap register and computes local address
corresponding to contents of the PC.
(sim_resume): Change to use pc_addr().
(sim_create_inferior): Change reinitialization code. Also reinitializes
imap[01] and dmap.
(sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
(sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.

* simops.c (MEMPTR): Redefine to use dmem_addr().
(OP_5F00): Replace references to STate.imem with dmem_addr().

* d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
(RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
(IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.

28 years ago * config/tc-v850.c (md_convert_frag): Make sure we insert the
Jeff Law [Tue, 29 Oct 1996 20:07:13 +0000 (20:07 +0000)]
    * config/tc-v850.c (md_convert_frag): Make sure we insert the
        fixup at the right address within the frag.

28 years ago * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
Jeff Law [Tue, 29 Oct 1996 19:48:18 +0000 (19:48 +0000)]
    * config/tc-v850.c (md_convert_frag): Don't set fragP->fr_fix
        to an absolute value, instead increment it as needed.

28 years ago * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
Jeff Law [Tue, 29 Oct 1996 19:32:56 +0000 (19:32 +0000)]
    * config/tc-v850.h (TC_GENERIC_RELAX_TABLE): Define.
        * config/tc-v850.c: Fix some indention problems.
        (md_relax_table): Define for D9->D99 branch displacement
        relaxing.
        (md_convert_frag): Do something useful instead of aborting.
        (md_estimate_size_before_relax): Likewise.
        (md_assemble): Note if the matching instruction has a relaxable
        operand.  If it does, allocate frag with frag_var and don't
        do any fixups.
So we can do 9bit displacement to 22bit displacement relaxing.

28 years ago * v850-opc.c (D9_RELAX): Renamed from D9, all references
Jeff Law [Tue, 29 Oct 1996 19:25:35 +0000 (19:25 +0000)]
    * v850-opc.c (D9_RELAX): Renamed from D9, all references
        changed.
        (v850_operands): Make sure D22 immediately follows D9_RELAX.

28 years ago * v850.h (V850_OPERAND_RELAX): New operand flag.
Jeff Law [Tue, 29 Oct 1996 19:19:19 +0000 (19:19 +0000)]
    * v850.h (V850_OPERAND_RELAX): New operand flag.

28 years ago * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
Ian Lance Taylor [Tue, 29 Oct 1996 18:26:11 +0000 (18:26 +0000)]
* ieee.c (ieee_write_section_part): Use LMA rather than VMA.
(do_with_relocs): Likewise.
(do_as_repeat): Likewise.
(copy_expression): Likewise.
PR 10946.

28 years ago * configure.in: Exclude mmalloc from i386-windows.
Stu Grossman [Tue, 29 Oct 1996 01:40:58 +0000 (01:40 +0000)]
* configure.in:  Exclude mmalloc from i386-windows.

28 years ago * mswin/genmakes mswin/recordit: New scripts to generate make
Stu Grossman [Tue, 29 Oct 1996 01:36:25 +0000 (01:36 +0000)]
* mswin/genmakes mswin/recordit:  New scripts to generate make
files for MSVC.

28 years ago * mh-dgux386: New file. x86 dgux specific flags
Stu Grossman [Tue, 29 Oct 1996 01:33:49 +0000 (01:33 +0000)]
* mh-dgux386: New file.  x86 dgux specific flags

28 years agohandle v850.sc
Ian Lance Taylor [Mon, 28 Oct 1996 23:48:06 +0000 (23:48 +0000)]
handle v850.sc

28 years ago * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
David Edelsohn [Mon, 28 Oct 1996 23:38:53 +0000 (23:38 +0000)]
* configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.

28 years agoadd write.c to v850_files
Ian Lance Taylor [Mon, 28 Oct 1996 23:13:44 +0000 (23:13 +0000)]
add write.c to v850_files

28 years ago * stabs.c (struct stab_handle): Add function_end field.
Ian Lance Taylor [Mon, 28 Oct 1996 22:17:52 +0000 (22:17 +0000)]
* stabs.c (struct stab_handle): Add function_end field.
(start_stab): Initialize function_end.
(finish_stab): Pass info->function_end to debug_end_function.
(parse_stab): If info->function_end is set, use it as the address
which ends a function.

28 years ago * ieee.c (ieee_array_type): Remember the correct size.
Ian Lance Taylor [Mon, 28 Oct 1996 22:12:02 +0000 (22:12 +0000)]
* ieee.c (ieee_array_type): Remember the correct size.

28 years ago * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
Ian Lance Taylor [Mon, 28 Oct 1996 22:01:06 +0000 (22:01 +0000)]
* ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
that are up to 0x1000 bytes apart, not just 64.
(ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
than 0x100 bytes.
(ieee_lineno): Only emit line numbers that are less than
info->highaddr.

28 years agorevert last change
Ian Lance Taylor [Mon, 28 Oct 1996 21:52:07 +0000 (21:52 +0000)]
revert last change

28 years agoMon Oct 28 10:43:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Mon, 28 Oct 1996 18:45:00 +0000 (18:45 +0000)]
Mon Oct 28 10:43:45 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* read.c (read_a_source_file): New hook md_cleanup().

28 years agoadd new files
Ian Lance Taylor [Mon, 28 Oct 1996 16:38:46 +0000 (16:38 +0000)]
add new files

28 years ago * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
Mark Alexander [Mon, 28 Oct 1996 04:24:30 +0000 (04:24 +0000)]
* config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
New files.
* configure.tgt: Modify cases for vr5000 to use new files.

28 years ago * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
Peter Schauer [Sat, 26 Oct 1996 14:22:35 +0000 (14:22 +0000)]
* procfs.c (proc_set_exec_trap):  Under Alpha OSF/1-4.0, tracing
the entry to the exit system call to detect termination of the
inferior stopped working. Trace termination of the inferior via
PRFS_STOPTERM instead.
(procfs_init_inferior):  Do not trace entry to exit system call
if PIOCSSPCACT is defined.
(procfs_wait):  Handle PR_DEAD event, which signals the termination
of the inferior if PRFS_STOPTERM is set.

* mdebugread.c (parse_partial_symbols):  Ignore stNil section
start address symbols.

* sparc-tdep.c (get_saved_register):  Get saved PC from the
frame info if not in innermost frame.

28 years ago * ieee.c (struct ieee_defined_enum): Add defined field.
Ian Lance Taylor [Fri, 25 Oct 1996 20:57:15 +0000 (20:57 +0000)]
* ieee.c (struct ieee_defined_enum): Add defined field.
(ieee_enum_type): If the enum tag has been seen before but not
defined, reuse the same type index, and define it.
(ieee_tag_type): If this enum has not been defined, add an
undefined entry to the list of enums.
PR 10946.

28 years ago * objdump.c (disassemble_bytes): Let the disassembler override the
Ian Lance Taylor [Fri, 25 Oct 1996 16:14:40 +0000 (16:14 +0000)]
* objdump.c (disassemble_bytes): Let the disassembler override the
number of bytes printed on a line.

28 years ago * write.c (fix_new_exp): Use make_expr_symbol to build an
Ian Lance Taylor [Fri, 25 Oct 1996 04:01:54 +0000 (04:01 +0000)]
* write.c (fix_new_exp): Use make_expr_symbol to build an
expression symbol for a complex fixup.

28 years ago * config/tc-v850.c (v850_reloc_prefix): Several disgusting
Jeff Law [Fri, 25 Oct 1996 01:14:34 +0000 (01:14 +0000)]
    * config/tc-v850.c (v850_reloc_prefix): Several disgusting
        hacks to improve parsing of complex hi, lo, zda, etc
        expressions.
        (md_assemble): Don't demand and eat a trailing ')' after finding
        a v850 relocation prefix.  Sign extend the constant in a
        BFD_RELOC_LO16 expression.  Do eat a trailing ')' after a complete
        operand.
        (parse_cons_expression_v850): Don't eat a trailing ')' after
        finding a v850 relocation prefix.
Trying to get nec's sample code to assemble.  Why oh why didn't JT try
to assemble any of their code...

28 years ago * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
Jeff Law [Thu, 24 Oct 1996 23:55:11 +0000 (23:55 +0000)]
    * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
        "bCC"instructions).
Because quantum's code uses jnz, jcc, etc etc etc.

28 years ago * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
Jeff Law [Thu, 24 Oct 1996 22:55:22 +0000 (22:55 +0000)]
    * config/tc-v850.h (TC_PARSE_CONS_EXPRESSION): Define.
        (TC_CONS_FIX_NEW): Likewise.
        * config/tc-v850.c (parse_cons_expression_v850): New function.
        (cons_fix_new_v850): Likewise.
So we can handle ".hword lo(_foo)".

28 years ago * mips-dis.c (_print_insn_mips): Use a tab between the instruction
Ian Lance Taylor [Thu, 24 Oct 1996 21:21:37 +0000 (21:21 +0000)]
* mips-dis.c (_print_insn_mips): Use a tab between the instruction
and the arguments.

28 years ago * objdump.c (prefix_addresses): New static variable.
Ian Lance Taylor [Thu, 24 Oct 1996 21:21:17 +0000 (21:21 +0000)]
* objdump.c (prefix_addresses): New static variable.
(long_options): Add "prefix-addresses".
(compare_symbols): Sort BSF_FUNCTION symbols before other
symbols.
(find_symbol_for_address): New static function, broken out of
objdump_print_address.
(objdump_print_addr_with_sym): New static function, broken out of
objdump_print_address.
(objdump_print_address): Call new functions.
(disassemble_bytes): New static function, broken out of
disassemble_data.  Change disassembly format, unless
prefix_addresses is set.
(disassemble_data): Call disassemble_bytes.  Unless
prefix_addresses is set, disassemble in chunks headed by a
symbol.
* binutils.texi, objdump.1: Document --prefix-addresses.

28 years ago * simops.c (OP_500): Mask off low bit in displacement
Jeff Law [Thu, 24 Oct 1996 21:19:22 +0000 (21:19 +0000)]
    * simops.c (OP_500): Mask off low bit in displacement
        for sld.w.
        (OP_501): Similarly.
More bugs exposed by tda testing.

28 years ago * simops.c (OP_500): Fix displacement handling for sld.w.
Jeff Law [Thu, 24 Oct 1996 20:49:06 +0000 (20:49 +0000)]
    * simops.c (OP_500): Fix displacement handling for sld.w.
        (OP_501): Similarly for sst.w.
More fixes exposed by tda testing.

28 years ago * rddbg.c (read_section_stabs_debugging_info): Preserve the
Ian Lance Taylor [Thu, 24 Oct 1996 20:43:23 +0000 (20:43 +0000)]
* rddbg.c (read_section_stabs_debugging_info): Preserve the
backslash when concatenating multiple stabs strings.

28 years ago * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
Jeff Law [Thu, 24 Oct 1996 20:32:36 +0000 (20:32 +0000)]
    * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
Fixing more tda stuff.

28 years ago * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
Mark Alexander [Thu, 24 Oct 1996 18:52:16 +0000 (18:52 +0000)]
* configure.in, configure.tgt, configure.host, gdbserver/configure.in:
Correct for pc-linux-gnu problem in config.guess.

28 years ago * dbxread.c (process_one_symbol): Interpret end-of-function
Mark Alexander [Thu, 24 Oct 1996 18:51:46 +0000 (18:51 +0000)]
* dbxread.c (process_one_symbol): Interpret end-of-function
markers correctly; this fixes problem on Vr5000 where all
functions in a module had the same address.
* configure.in, configure.tgt, configure.host, gdbserver/configure.in:
Correct for pc-linux-gnu problem in config.guess.
* configure: Regenerate.

28 years ago * simops.c (trace_input): Remove all references to SEXT7.
Jeff Law [Thu, 24 Oct 1996 18:28:43 +0000 (18:28 +0000)]
    * simops.c (trace_input): Remove all references to SEXT7.
        (OP_300, OP_400, OP_500, OP_380, OP_480, OP_501): Displacement
        is zero extended for sst/sld instructions.
        * v850_sim.h (SEX7): Delete.  It's no longer needed (and it
        was incorrect anyway).
So we properly simulate sst/sld instructions.

28 years ago * Makefile.in: Get rid of srcroot. Set all INSTALL macros via
Stu Grossman [Thu, 24 Oct 1996 17:39:30 +0000 (17:39 +0000)]
* Makefile.in:  Get rid of srcroot.  Set all INSTALL macros via
autoconf.
* gencode.c (write_opcodes):  Pad operands field to account for
MSVC braindamage.
* simops.c:  Include errno.h.  Exclude SYS_chown, since MSVC
doesn't support it.  (Why is this here in the first place?!?)
* v850_sim.h:  Get rid of 64 bit defs.  Also, get rid of #elif's.
Change number of operands in struct simops from 9 to 6.  Define
SIGTRAP and SIGQUIT for MSVC.

28 years ago * dbxread.c: Don't swap symbols in place, since internal and
Stu Grossman [Thu, 24 Oct 1996 17:31:45 +0000 (17:31 +0000)]
* dbxread.c:  Don't swap symbols in place, since internal and
external forms may have different sizes.  Don't assume that an
internal_nlist has the same layout as an external_nlist.  Create
symbol for n_strx element so to hide specifics of nlist from
partial-stab.h.
* partial-stab.h:  Don't reference dbxread symbols directly.  Use
CUR_SYMBOL_STRX instead.
* config/i386/xm-windows.h:  Define SIGQUIT and SIGTRAP.

* config/v850/tm-v850.h:  Define PS_REGNUM and TARGET_V850 for
MSVC builds.
* mswin/gdbwin.c (reg_order):  Define register order for V850.
* mswin/gui.cpp (CGuiApp::InitInstance):  Define target name for
V850.
* mswin/regdoc.h:  Define MAXREGS for V850.

28 years ago * Undo my previous change.
Stu Grossman [Thu, 24 Oct 1996 16:23:43 +0000 (16:23 +0000)]
* Undo my previous change.

28 years ago * Makefile.in (EXTRA_GCC_FLAGS): Pass down GCC_FOR_TARGET
Ian Lance Taylor [Thu, 24 Oct 1996 16:13:43 +0000 (16:13 +0000)]
* Makefile.in (EXTRA_GCC_FLAGS): Pass down GCC_FOR_TARGET
unconditionally.
(MAKEOVERRIDES): Define (revert this part of October 18 change).

28 years ago * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
Stu Grossman [Thu, 24 Oct 1996 16:10:11 +0000 (16:10 +0000)]
* aclocal.m4, configure:  Set USE_BINARY_FOPEN for *-*-windows.

28 years ago * Makefile.in (FLAGS_TO_PASS): Add $(HOST_FLAGS) to allow the
Stu Grossman [Thu, 24 Oct 1996 16:07:51 +0000 (16:07 +0000)]
* Makefile.in (FLAGS_TO_PASS):  Add $(HOST_FLAGS) to allow the
host to add it's own flags.
* config/mh-windows (HOST_FLAGS):  Set srcroot, which is needed
for MSVC build procedure.

28 years ago * config/tc-ppc.c (md_apply_fix3): Give a better warning message
Ian Lance Taylor [Wed, 23 Oct 1996 22:28:21 +0000 (22:28 +0000)]
* config/tc-ppc.c (md_apply_fix3): Give a better warning message
for an unknown relocation type.
PR 10944.

28 years ago * config/tc-v850.c (md_pseudo_table): Add .word; allocates
Jeff Law [Wed, 23 Oct 1996 22:23:38 +0000 (22:23 +0000)]
    * config/tc-v850.c (md_pseudo_table): Add .word; allocates
        4 bytes of space.
Something off the todo list.

28 years ago * scriptempl/v850.sc (zdata): Make sure this stays
Jeff Law [Wed, 23 Oct 1996 22:18:55 +0000 (22:18 +0000)]
    * scriptempl/v850.sc (zdata): Make sure this stays
        in lo-memory.
zda testing.

28 years ago * elf32-v850.c: Add comments about assumptions about
Jeff Law [Wed, 23 Oct 1996 21:10:55 +0000 (21:10 +0000)]
    * elf32-v850.c: Add comments about assumptions about
        char, short & long sizes.
        (elf32_v850_bfd_final_link_relocate): Fix sign extension
        problems for several relocs.
Still fixing sda/tda/zda stuff.

28 years ago * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
Ian Lance Taylor [Wed, 23 Oct 1996 04:22:34 +0000 (04:22 +0000)]
* xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
Store import file index in ldindx.
(xcoff_build_ldsyms): Assume that ldsym was not previously
allocated.  For an imported symbol, copy ldindx into l_ifile.

28 years ago * elf32-v850.c (elf_v850_howto_table): Fix ordering of
Jeff Law [Wed, 23 Oct 1996 04:10:41 +0000 (04:10 +0000)]
    * elf32-v850.c (elf_v850_howto_table): Fix ordering of
        R_V850_ZDAOFFSET and R_V850_TDAOFFSET.  Fix various
        fields in R_V850_TDAOFFSET.
        (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
        relocs to work more like other relocs.  Handle R_V850_TDAOFF
        relocations.
v850 tda, sda & zda stuff.

28 years ago * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
Jeff Law [Wed, 23 Oct 1996 04:06:04 +0000 (04:06 +0000)]
    * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
        differently for movea & sst/sld insns.
Working on tda for the v850.

28 years ago * ppc-opc.c (PPCPWR2): Define.
Ian Lance Taylor [Wed, 23 Oct 1996 03:34:07 +0000 (03:34 +0000)]
* ppc-opc.c (PPCPWR2): Define.
(powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
it.

28 years ago * scripttempl/v850.sc (__ep): Put it at the start
Jeff Law [Wed, 23 Oct 1996 03:19:16 +0000 (03:19 +0000)]
    * scripttempl/v850.sc (__ep): Put it at the start
        of the tda section.
v850.