external/binutils.git
27 years ago * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
Ian Lance Taylor [Mon, 27 Jan 1997 18:13:01 +0000 (18:13 +0000)]
* elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
relocations against the text segment, look up the output name of
the reloc section.
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
* elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.

27 years ago * scripttempl/elf.sc: Put linkonce reloc section in other
Ian Lance Taylor [Mon, 27 Jan 1997 17:39:24 +0000 (17:39 +0000)]
* scripttempl/elf.sc: Put linkonce reloc section in other
  appropriate reloc sections.
* scripttempl/elfmips.sc: Add linkonce support.
* scripttempl/elfppc.sc: Likewise.

27 years ago * tm-mn10200.h (NUM_REGS): Decrease to 12.
Jeff Law [Mon, 27 Jan 1997 17:36:55 +0000 (17:36 +0000)]
    * tm-mn10200.h (NUM_REGS): Decrease to 12.
        (REGISTER_NAMES): Elimination registers not found on the mn10200.
        (PC_REGNUM, MDR_REGNUM, PSW_REGNUM): Corresponding changes.
        (LIR_REGNUM, LAR_REGNUM): Delete.  They don't exist on the mn10200.

27 years ago * dwarf2read.c: Replace integral tag, name and form fields in
Peter Schauer [Sat, 25 Jan 1997 08:09:53 +0000 (08:09 +0000)]
* dwarf2read.c:  Replace integral tag, name and form fields in
internal structure definitions with the corresponding enumeration
types from dwarf2.h. Add default cases to switches on enumerations
where appropriate.
Make quoting of string arguments in complaint messages consistent.
Check for NULL returns from DW_STRING.
(struct partial_die_info):  Add sibling and has_type fields, remove
unused value field.
(DW_*):  Move access macro definitions near the definition of the
attribute structure.
(struct field_info):  New structure to pass information about fields
and member functions between die processing routines.
(dwarf2_build_psymtabs_hard):  Set cu_header_offset.
(scan_partial_symbols):  Do not enter DW_TAG_subprogram dies into
the partial symbol table if the DW_AT_*_pc attributes are missing.
Add file scope base type definitions to the partial symbol table.
Skip over child dies if the die has a sibling attribute.
(add_partial_symbol):  Enter global variables with type attributes
and without location descriptors into the partial symbol table.
Store value of DW_TAG_variable dies in the partial symbol table.
Do not enter global variables into the minimal symbol table.
Add base type definitions to the partial symbol table.
(psymtab_to_symtab_1):  Use dwarf2_get_pc_bounds to determine highpc.
(process_die):  Move check for DW_AT_low_pc to read_func_scope.
Add a typedef symbol for base type definitions to the symbol table.
Ignore DW_TAG_inlined_subroutine tags for now.
(read_file_scope):  Use dwarf2_get_pc_bounds to determine pc bounds.
(read_func_scope, read_lexical_block_scope):  Use dwarf2_get_pc_bounds
to determine pc bounds, ignore dies with invalid bounds.
(dwarf2_get_pc_bounds):  New routine to extract and validate the
DW_AT_*_pc attributes of a die.
(dwarf2_add_field, dwarf2_attach_fields_to_type, skip_member_fn_name,
dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
New functions to handle fields and member functions.
(read_structure_scope):  Rewritten to use them.
(read_array_type):  Renamed from dwarf_read_array_type.
Default upper array bound to describe an array with unspecified
length.
Create array types in backwards order, as dwarf2 puts out the array
dimensions from left to right.
(read_subroutine_type):  Handle DW_TAG_unspecified_parameters,
DW_AT_artificial and DW_AT_prototyped.
(read_base_type):  Make an unsigned type for DW_ATE_boolean.
Pass objfile to dwarf_base_type.
(read_partial_die):  Use read_attribute to read in the attributes.
Handle DW_AT_sibling and DW_AT_type.
Follow references when determining DW_AT_name and DW_AT_external
attributes of the die.
Validate DW_AT_*_pc attributes.
(read_full_die):  Use read_attribute to read in the attributes.
(read_attribute):  New function to read an attribute described
by an abbreviated attribute.
(new_symbol):  Relocate symbol value for DW_TAG_label with baseaddr.
Do not set SYMBOL_VALUE_ADDRESS for DW_TAG_subprogram,
SYMBOL_BLOCK_VALUE for the symbol will be set later by finish_block.
Change symbol class for global variables with a zero valued location
descriptor to LOC_UNRESOLVED.
Handle DW_AT_const_value attributes for DW_TAG_variable,
DW_TAG_formal_parameter and DW_TAG_enumerator.
Build a typedef symbol for DW_TAG_base_type.
(dwarf2_const_value):  New routine to copy a constant value from an
attribute to a symbol.
(dwarf_base_type):  Use passed in objfile, not current_objfile
when calling dwarf2_fundamental_type.
(dump_die):  Use DW_* accessor macros to access values of attributes.
(decode_locdesc):  Handle DW_OP_plus_uconst.

27 years ago* m68k-opc.c (m68k_opcodes): Changed operand specifier for the
J.T. Conklin [Fri, 24 Jan 1997 20:14:26 +0000 (20:14 +0000)]
* m68k-opc.c (m68k_opcodes): Changed operand specifier for the
coldfire moveb instruction to not allow an address register as
destination.  Although the documentation does not indicate that
this is invalid, experiments uncovered unexpected behavior.
Added a comment explaining the situation.  Thanks to Andreas
Schwab for pointing this out to me.

27 years ago * ../common/aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
Stu Grossman [Fri, 24 Jan 1997 18:44:29 +0000 (18:44 +0000)]
* ../common/aclocal.m4 (COMMON_MAKEFILE_FRAG):  Quote a couple of $'s in
comments and single quotes.  Fixes a problem found on hpux.

27 years ago * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
Stu Grossman [Fri, 24 Jan 1997 18:42:34 +0000 (18:42 +0000)]
* aclocal.m4 (COMMON_MAKEFILE_FRAG):  Quote a couple of $'s in
comments and single quotes.  Fixes a problem found on hpux.

27 years ago * interp.c (init_system): Allocate 2^19 bytes of space for the
Jeff Law [Fri, 24 Jan 1997 17:48:35 +0000 (17:48 +0000)]
    * interp.c (init_system): Allocate 2^19 bytes of space for the
        simulator.
To match the linker.

27 years ago * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
Jeff Law [Fri, 24 Jan 1997 17:46:48 +0000 (17:46 +0000)]
    * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
        stack up to 0x80000.
        * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
Because we're seeing .text for some of the plumhall tests which exceeds
0x40000 bytes on these machines.

27 years ago * configure: Remove targ-vals.def when doing distclean. (Change
Stu Grossman [Fri, 24 Jan 1997 00:44:03 +0000 (00:44 +0000)]
* configure:  Remove targ-vals.def when doing distclean.  (Change
is actually in ../common/aclocal.m4.)

27 years ago * (distclean): Remove targ-vals.def.
Stu Grossman [Fri, 24 Jan 1997 00:38:32 +0000 (00:38 +0000)]
* (distclean):  Remove targ-vals.def.

27 years ago * configure: Remove Make-common.in from dependencies. (Actually in
Stu Grossman [Fri, 24 Jan 1997 00:04:57 +0000 (00:04 +0000)]
* configure: Remove Make-common.in from dependencies.  (Actually in
../common/aclocal.m4).

27 years ago * aclocal.m4: Remove Make-common.in from dependencies.
Stu Grossman [Fri, 24 Jan 1997 00:03:05 +0000 (00:03 +0000)]
* aclocal.m4:  Remove Make-common.in from dependencies.

27 years ago * configure configure.in Makefile.in: Update to new configure
Stu Grossman [Thu, 23 Jan 1997 22:09:52 +0000 (22:09 +0000)]
* configure configure.in Makefile.in:  Update to new configure
scheme which is more compatible with WinGDB builds.
* configure.in:  Improve comment on how to run autoconf.
* configure:  Re-run autoconf to get new ../common/aclocal.m4.
* Makefile.in:  Use autoconf substitution to install common
makefile fragment.

27 years ago * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
Stu Grossman [Thu, 23 Jan 1997 22:08:21 +0000 (22:08 +0000)]
* aclocal.m4 (SIM_AC_COMMON):  Move contents of Make-common.in
into here.  Makes insertion into makefiles easier.  Also, change
the way that callback.o, gentmap, targ-vals.h, targ-map.c,
targ-map.o, and run are built.  They are now built in the
individual simulator directories, taking sources from ../common as
necessary.  This replaces the merging of libcommon.a into
linsim.a, which was problematic for the WinGDB build process.
* run.c:  Include config.h from . instead of ../common.
* Make-common.in:  Remove.  It's no longer necessary.

27 years ago * configure configure.in: Don't configure common anymore. Files
Stu Grossman [Thu, 23 Jan 1997 22:07:08 +0000 (22:07 +0000)]
* configure configure.in:  Don't configure common anymore.  Files
from common are now built in the individual simualtor directories.
This fixes problems with the WinGDB build procedure.

27 years agohandle all 4100/4300, not just elf
Angela Marie Thomas [Thu, 23 Jan 1997 11:15:19 +0000 (11:15 +0000)]
handle all 4100/4300, not just elf

27 years agoCommitting tiny change -- pretend regs are 32 bits
Geoffrey Noer [Thu, 23 Jan 1997 10:01:20 +0000 (10:01 +0000)]
Committing tiny change -- pretend regs are 32 bits

27 years agoThu Jan 23 01:44:27 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 23 Jan 1997 09:46:00 +0000 (09:46 +0000)]
Thu Jan 23 01:44:27 1997  Geoffrey Noer  <noer@cygnus.com>

        * configure.in: build gdb for mn10200

27 years ago * tic80-opc.c (tic80_opcodes): Expand comment to note that the
Fred Fish [Thu, 23 Jan 1997 03:17:45 +0000 (03:17 +0000)]
* tic80-opc.c (tic80_opcodes): Expand comment to note that the
  entries are presorted so that entries with the same mnemonic are
adjacent to each other in the table.  Sort the entries for each
instruction so that this is true.

27 years ago * tic80.h (TIC80MAGIC): Renamed to TIC80_AOUTHDR_MAGIC.
Fred Fish [Thu, 23 Jan 1997 03:12:41 +0000 (03:12 +0000)]
* tic80.h (TIC80MAGIC): Renamed to TIC80_AOUTHDR_MAGIC.

27 years ago * coff-tic80.c (tic80coff_vec): Use correct data put/get
Fred Fish [Thu, 23 Jan 1997 03:09:05 +0000 (03:09 +0000)]
* coff-tic80.c (tic80coff_vec): Use correct data put/get
routines for little endian data.
* coffcode.h (coff_write_object_contents): Set magic to
  TIC80_ARCH_MAGIC for TIc80.

27 years ago Patch presumed to have been checked in awhile ago but wasn't.
David Edelsohn [Wed, 22 Jan 1997 18:41:50 +0000 (18:41 +0000)]
Patch presumed to have been checked in awhile ago but wasn't.
Mon Nov 25 10:45:14 1996  Doug Evans  <dje@seba.cygnus.com>
* write.c: Delete "ifndef md_relax_frag" around is_dnrange.
(relax_segment, case rs_org): Move code inside braces.  Move locals
target,after inside too.
(relax_segment, case rs_machine_dependent): Guts moved to ...
(relax_frag): New function.
Call md_prepare_relax_scan if defined.

27 years agoWed Jan 22 01:31:16 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 22 Jan 1997 10:38:01 +0000 (10:38 +0000)]
Wed Jan 22 01:31:16 1997  Geoffrey Noer  <noer@cygnus.com>

        Start mn10200 gdb port by adding copies of mn10300
        target-specific files with all instances of mn10300 changed
        to mn10200 to start with.
        * mn10200-tdep.c: new
        * config/mn10200/tm-mn10200.h: new, REGISTER_SIZE is 24 bits not 32,
        SP_REGNUM and FP_REGNUM are different, also no lar or lir.
        * config/mn10200/mn10200.mt: new
        * configure.tgt: add mn10200 entry

27 years agoWed Jan 22 01:31:16 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 22 Jan 1997 09:41:02 +0000 (09:41 +0000)]
Wed Jan 22 01:31:16 1997  Geoffrey Noer  <noer@cygnus.com>

        Start mn10200 gdb port by adding copies of mn10300
        target-specific files with all instances of mn10300 changed
        to mn10200 to start with.
        * mn10200-tdep.c: new
        * config/mn10200/tm-mn10200.h: new, REGISTER_SIZE is 24 bits not 32,
        SP_REGNUM and FP_REGNUM are different, also no lar or lir.
        * config/mn10200/mn10200.mt: new

27 years ago * configure.in configure: Check if host has libdl if doing
Stu Grossman [Wed, 22 Jan 1997 02:33:50 +0000 (02:33 +0000)]
* configure.in configure:  Check if host has libdl if doing
Solaris threads.

27 years agoTue Jan 21 17:03:26 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 22 Jan 1997 01:33:58 +0000 (01:33 +0000)]
Tue Jan 21 17:03:26 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10300-tdep.c: wrote/fixed implementations of
        mn10300_frame_chain, mn10300_init_extra_frame_info,
        mn10300_frame_saved_pc
        * config/mn10300/tm-mn10300.h: redefine INIT_EXTRA_FRAME_INFO
        and INIT_FRAME_PC macros
        Backtracing starting to work correctly.

27 years ago * configure.in configure: Check if host has libm. Make sure we
Stu Grossman [Wed, 22 Jan 1997 01:12:19 +0000 (01:12 +0000)]
* configure.in configure:  Check if host has libm.  Make sure we
are using gcc when using the -export-dynamic option.  Fixes a
problem with building under Solaris/SunPro cc.

27 years ago * simops.c: Undo last change to "rol" and "ror", original code
Jeff Law [Tue, 21 Jan 1997 22:03:39 +0000 (22:03 +0000)]
    * simops.c: Undo last change to "rol" and "ror", original code
        was correct!

27 years ago * coff-tic80.c (tic80coff_vec): Change to little endian data
Fred Fish [Tue, 21 Jan 1997 20:15:46 +0000 (20:15 +0000)]
* coff-tic80.c (tic80coff_vec): Change to little endian data
as the default.

27 years ago * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
David Edelsohn [Tue, 21 Jan 1997 20:10:49 +0000 (20:10 +0000)]
* emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
to define `_stack'.

27 years ago * config/mips/{embed,embed64,embedl,embedl64}.mt:
Mark Alexander [Mon, 20 Jan 1997 22:59:46 +0000 (22:59 +0000)]
* config/mips/{embed,embed64,embedl,embedl64}.mt:
Link in simulator on MIPS embedded targets.

27 years agoMultiply ops sign extend, not zero extend
Michael Meissner [Mon, 20 Jan 1997 21:06:48 +0000 (21:06 +0000)]
Multiply ops sign extend, not zero extend

27 years ago * size.c (berkeley_sum): Rewrite. Skip sections which are not
Ian Lance Taylor [Mon, 20 Jan 1997 20:05:33 +0000 (20:05 +0000)]
* size.c (berkeley_sum): Rewrite.  Skip sections which are not
SEC_ALLOC.  Count SEC_READONLY sections as text.

27 years ago * config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
Ian Lance Taylor [Mon, 20 Jan 1997 19:27:11 +0000 (19:27 +0000)]
* config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
the .reginfo or .MIPS.options section if configured for an
embedded target.

27 years ago* config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
J.T. Conklin [Mon, 20 Jan 1997 19:00:03 +0000 (19:00 +0000)]
* config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
'p' operand specifier.

27 years ago* config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
J.T. Conklin [Mon, 20 Jan 1997 18:47:48 +0000 (18:47 +0000)]
* config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
m68k family cpus which support long branch addressing modes.
(m68k_ip, md_convert_frag_1, md_estimate_size_before_relax,
md_create_long_jump): Use it.

27 years agoMon Jan 20 12:48:57 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 20 Jan 1997 17:50:34 +0000 (17:50 +0000)]
Mon Jan 20 12:48:57 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* m68k-dis.c: Include <libiberty.h>.
(print_insn_m68k): Sort the opcode table on the most significant
nibble of the opcode.

27 years ago * config/tc-mips.c (md_begin): Don't set interlocks for
Ian Lance Taylor [Mon, 20 Jan 1997 17:43:43 +0000 (17:43 +0000)]
* config/tc-mips.c (md_begin): Don't set interlocks for
mips_4650.
PR 11507.

27 years ago * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
Fred Fish [Sun, 19 Jan 1997 22:24:21 +0000 (22:24 +0000)]
  * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
      "vsub", "vst", "xnor", and "xor" instructions.
      (V_a1): Renamed from V_a, msb of accumulator reg number.
      (V_a0): Add macro, lsb of accumulator reg number.

27 years ago * tic80.h (TIC80_NO_R0_DEST): Add for opcodes where r0 cannot
Fred Fish [Sun, 19 Jan 1997 22:22:01 +0000 (22:22 +0000)]
* tic80.h (TIC80_NO_R0_DEST): Add for opcodes where r0 cannot
be the destination register.

27 years ago * tic80-dis.c (print_insn_tic80): Broke excessively long
Fred Fish [Sun, 19 Jan 1997 18:33:10 +0000 (18:33 +0000)]
    * tic80-dis.c (print_insn_tic80): Broke excessively long
        function up into several smaller ones and arranged for
        the instruction printing function to be callable recursively
        to print vector instructions that have both a load and a
        math instruction packed into a single opcode.
        * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
        to explain why it comes after the other vector opcodes.

27 years ago * blockframe.c (frameless_look_for_prologue): Mark frames
Peter Schauer [Sat, 18 Jan 1997 10:33:06 +0000 (10:33 +0000)]
* blockframe.c (frameless_look_for_prologue):  Mark frames
with a zero PC as frameless to improve backtraces from core dumps
caused by dereferencing a NULL function pointer.

27 years agofix operand mask in the "moveml" entries for the coldfire.
J.T. Conklin [Sat, 18 Jan 1997 00:37:30 +0000 (00:37 +0000)]
fix operand mask in the "moveml" entries for the coldfire.

27 years agoFrom the coldfire branch:
J.T. Conklin [Sat, 18 Jan 1997 00:27:23 +0000 (00:27 +0000)]
From the coldfire branch:

* m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
move insns to handle immediate operands.

From Andreas Schwab:

        * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".

27 years agofix sanitize typos
Angela Marie Thomas [Fri, 17 Jan 1997 04:16:18 +0000 (04:16 +0000)]
fix sanitize typos

27 years ago * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
Fred Fish [Fri, 17 Jan 1997 04:00:56 +0000 (04:00 +0000)]
* tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
New macros for building vector instruction opcodes.
(tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
FMT_LI, which were unused.  The field is now a flags field.
Remove some opcodes that are possible, but illegal, such
as long immediate instructions with doubles for immediate
values.  Add "vadd" and "vld" instructions.

27 years ago * tic80.h (struct tic80_opcode): Change "format" field to "flags".
Fred Fish [Fri, 17 Jan 1997 03:53:46 +0000 (03:53 +0000)]
* tic80.h (struct tic80_opcode): Change "format" field to "flags".
(FMT_UNUSED, FMT_SI, FMT_LI, FMT_REG): Delete.
(TIC80_VECTOR): Define a flag bit for the flags.  This one means
that the opcode can have two vector instructions in a single
32 bit word and we have to encode/decode both.

27 years ago * ld.h (args_type): Rename auxiliary_filter_shlib to
Ian Lance Taylor [Thu, 16 Jan 1997 22:52:05 +0000 (22:52 +0000)]
* ld.h (args_type): Rename auxiliary_filter_shlib to
auxiliary_filters, and make it char **.
* lexsup.c (parse_args): Handle -f by setting up an array.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
new name of auxiliary_filters.

27 years ago * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
Ian Lance Taylor [Thu, 16 Jan 1997 22:48:57 +0000 (22:48 +0000)]
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
auxiliary_filters parameter to be const char * const *.  Accept a
NULL terminated array.
* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
(bfd_elf32_size_dynamic_sections): Update declaration.
* bfd-in2.h: Rebuild.

27 years agoupdate copyright
Ian Lance Taylor [Thu, 16 Jan 1997 22:48:24 +0000 (22:48 +0000)]
update copyright

27 years ago * dummy.c (find_call): Clear ignore_direct_calls.
Ian Lance Taylor [Thu, 16 Jan 1997 22:42:59 +0000 (22:42 +0000)]
* dummy.c (find_call): Clear ignore_direct_calls.

27 years agoThu Jan 16 14:10:41 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 16 Jan 1997 22:14:19 +0000 (22:14 +0000)]
Thu Jan 16 14:10:41 1997  Geoffrey Noer  <noer@cygnus.com>

        * config/mn10300/tm-mn10300.h: fix BREAKPOINT definition

27 years ago * ld.texinfo (Options): Improve documentation of --filter and
Ian Lance Taylor [Thu, 16 Jan 1997 22:08:23 +0000 (22:08 +0000)]
* ld.texinfo (Options): Improve documentation of --filter and
--auxiliary.

27 years ago * simops.c: Fix "rol" and "ror".
Jeff Law [Thu, 16 Jan 1997 18:28:46 +0000 (18:28 +0000)]
    * simops.c: Fix "rol" and "ror".
Something I noticed while working on the mn10200.

27 years agofix bugs
Angela Marie Thomas [Thu, 16 Jan 1997 10:50:58 +0000 (10:50 +0000)]
fix bugs

27 years ago * tic80-opc.c (tic80_operands): Reorder some table entries to make
Fred Fish [Thu, 16 Jan 1997 02:10:17 +0000 (02:10 +0000)]
* tic80-opc.c (tic80_operands): Reorder some table entries to make
the order more logical.  Move the shift alias instructions ("rotl",
"shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
  interspersed with the regular sr.x and sl.x instructions.  Add
and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
  "sub", "subu", "swcr", and "trap".

27 years ago * read.c (read_a_source_file): Make sure the symbol ends with
Ian Lance Taylor [Wed, 15 Jan 1997 18:52:53 +0000 (18:52 +0000)]
* read.c (read_a_source_file): Make sure the symbol ends with
whitespace before checking whether the next character is '='.
PR 11461.

27 years ago * simops.c: Fix typo in last change.
Jeff Law [Wed, 15 Jan 1997 13:46:18 +0000 (13:46 +0000)]
    * simops.c: Fix typo in last change.

27 years agoTue Jan 14 16:01:06 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 15 Jan 1997 00:06:41 +0000 (00:06 +0000)]
Tue Jan 14 16:01:06 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10300-tdep.c: made a lot more generic, ripping out code
        from copied target (no more mn10300_scan_prologue,
        init_extra_frame_info, and mn10300_fix_call_dummy calls)
        * config/mn10300/tm-mn10300.h: undefine INIT_EXTRA_FRAME_INFO
        and INIT_FRAME_PC macros

27 years ago * ld.texinfo (Commands): Clarify that the normal usage is -T.
Ian Lance Taylor [Tue, 14 Jan 1997 20:44:48 +0000 (20:44 +0000)]
* ld.texinfo (Commands): Clarify that the normal usage is -T.

27 years ago * config/tc-i386.c (sco_id): Moved from here...
Ian Lance Taylor [Tue, 14 Jan 1997 20:08:43 +0000 (20:08 +0000)]
* config/tc-i386.c (sco_id): Moved from here...
* config/obj-elf.c (sco_id): ...to here.  Adding the identifier
really is an SCO ELF specific thing, not just a SCO x86 specific
thing.

27 years ago * libaout.h (machine_type): Reserve several values for sparclet.
David Edelsohn [Tue, 14 Jan 1997 16:47:40 +0000 (16:47 +0000)]
* libaout.h (machine_type): Reserve several values for sparclet.

27 years agoTurn off most targets for tic80-*-* right now
Michael Meissner [Tue, 14 Jan 1997 03:48:19 +0000 (03:48 +0000)]
Turn off most targets for tic80-*-* right now

27 years agoFix sanitize string
Michael Meissner [Tue, 14 Jan 1997 03:45:40 +0000 (03:45 +0000)]
Fix sanitize string

27 years agoAllow tic80-*-*, not just tic80-*-coff
Michael Meissner [Tue, 14 Jan 1997 03:45:03 +0000 (03:45 +0000)]
Allow tic80-*-*, not just tic80-*-coff

27 years agoCleanup; fix some aborts
Michael Meissner [Tue, 14 Jan 1997 00:41:55 +0000 (00:41 +0000)]
Cleanup; fix some aborts

27 years ago * tic80-dis.c (print_insn_tic80): Print floating point operands
Fred Fish [Mon, 13 Jan 1997 23:05:49 +0000 (23:05 +0000)]
  * tic80-dis.c (print_insn_tic80): Print floating point operands
      as floats.
      * tic80-opc.c (SPFI): Add single precision floating point
      immediate operand type.
      (ROTATE): Add rotate operand type for shifts.
      (ENDMASK): Add for shifts.
      (n): Macro for the 'n' bit.
      (i): Macro for the 'i' bit.
      (PD): Macro for the 'PD' field.
      (P2): Macro for the 'P2' field.
      (P1): Macro for the 'P1' field.
      (tic80_operands): Add entries for "exts", "extu", "fadd",
      "fcmp", and "fdiv".

27 years ago * tic80.h (TIC80_OPERAND_FLOAT): Add for floating point operands.
Fred Fish [Mon, 13 Jan 1997 22:59:20 +0000 (22:59 +0000)]
  * tic80.h (TIC80_OPERAND_FLOAT): Add for floating point operands.

27 years ago * simops.c: Use REG macros in few places not using them yet.
Jeff Law [Mon, 13 Jan 1997 20:28:37 +0000 (20:28 +0000)]
    * simops.c: Use REG macros in few places not using them yet.
Something I noticed while working on the mn10200 simulator.

27 years ago * configure: Enable the mn10200 simulator.
Jeff Law [Mon, 13 Jan 1997 20:21:35 +0000 (20:21 +0000)]
    * configure: Enable the mn10200 simulator.

27 years ago * sparc-tdep.c (sparc_frame_find_saved_regs): Don't use
Michael Snyder [Thu, 9 Jan 1997 19:48:27 +0000 (19:48 +0000)]
    * sparc-tdep.c (sparc_frame_find_saved_regs): Don't use
        FP_REGISTER_BYTES to compute offsets into the saved frame,
        since it fails for SPARC targets configured without any
        FP regs.  Instead, use DUMMY_STACK_REG_BUF_SIZE.
--------------------------------------------------------------------

27 years ago * scripttempl/armcoff.sc: Correct mask used for .data address.
Ian Lance Taylor [Thu, 9 Jan 1997 19:26:56 +0000 (19:26 +0000)]
* scripttempl/armcoff.sc: Correct mask used for .data address.
PR 11442.

27 years ago * read.c (emit_expr): Check for overflow of a negative value
Ian Lance Taylor [Thu, 9 Jan 1997 19:13:42 +0000 (19:13 +0000)]
* read.c (emit_expr): Check for overflow of a negative value
correctly.
* write.c (fixup_segment): Likewise.
* config/obj-coff.c (fixup_segment): Likewise.
PR 11411.

27 years ago * config/tc-m68k.c (struct label_line): Define.
Ian Lance Taylor [Thu, 9 Jan 1997 18:18:01 +0000 (18:18 +0000)]
* config/tc-m68k.c (struct label_line): Define.
(labels, current_label): New static variables.
(md_assemble): Mark current_label as text, and clear it.
(m68k_frob_label): New function.
(m68k_flush_pending_output): New function.
(m68k_frob_symbol): New function.
* config/tc-m68k.h (tc_frob_label): Define.
(md_flush_pending_output): Define.
(tc_frob_symbol): Don't warn, just call m68k_frob_symbol.
(tc_frob_coff_symbol): Likewise.
PR 11417.

27 years ago * read.c (read_a_source_file): When defining a macro in MRI mode,
Ian Lance Taylor [Thu, 9 Jan 1997 17:10:09 +0000 (17:10 +0000)]
* read.c (read_a_source_file): When defining a macro in MRI mode,
don't add the symbol to the symbol table.
PR 11423.

27 years agoWed Jan 8 19:56:43 1997 Geoffrey Noer <noer@skaro.cygnus.com>
Geoffrey Noer [Thu, 9 Jan 1997 04:00:07 +0000 (04:00 +0000)]
Wed Jan  8 19:56:43 1997  Geoffrey Noer  <noer@skaro.cygnus.com>

        * mh-cygwin32: override CFLAGS so debug info isn't included
        in cygwin32-hosted tools by default

27 years agoWed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 8 Jan 1997 23:16:53 +0000 (23:16 +0000)]
Wed Jan  8 15:14:59 1997  Geoffrey Noer  <noer@cygnus.com>

        * emultempl/pe.em: make default executable a.exe instead of
        a.out

27 years agoFor NEC 4300 project, fix last remaining host/target endianness problem
Jim Wilson [Wed, 8 Jan 1997 20:40:40 +0000 (20:40 +0000)]
For NEC 4300 project, fix last remaining host/target endianness problem
* gencode.c (build_instruction): Use BigEndianCPU instead of
ByteSwapMem.

27 years ago * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
Jeff Law [Tue, 7 Jan 1997 18:27:20 +0000 (18:27 +0000)]
    * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
        here since fixup_segment doesn't (linkrelax is set).
        * config/tc-mn10200.c (tc_gen_reloc): Likewise.
Should fix line # stabs & block scope stabs.

27 years ago * mn10300_sim.h (struct _state): Fix number of registers!
Jeff Law [Mon, 6 Jan 1997 23:25:53 +0000 (23:25 +0000)]
    * mn10300_sim.h (struct _state): Fix number of registers!
Just something I noticed while working on the mn10200 simulator.

27 years ago * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
Jeff Law [Mon, 6 Jan 1997 22:25:05 +0000 (22:25 +0000)]
    * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
        relocs.
Relocs for the mn10200.

27 years agoFix typo.
Jeff Law [Mon, 6 Jan 1997 22:23:08 +0000 (22:23 +0000)]
Fix typo.

27 years ago * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
Jeff Law [Mon, 6 Jan 1997 22:20:38 +0000 (22:20 +0000)]
    * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
        Use bfd_elf_generic_reloc as special function for all relocs.
        (bfd_elf32_mn10200_reloc): Remove unnecessary function.
Working on relocs for the mn10200.

27 years agoFix copyright.
Jeff Law [Mon, 6 Jan 1997 22:14:13 +0000 (22:14 +0000)]
Fix copyright.

27 years ago * mn10200-dis.c (disassemble): Mask off unwanted bits after
Jeff Law [Mon, 6 Jan 1997 22:13:39 +0000 (22:13 +0000)]
    * mn10200-dis.c (disassemble): Mask off unwanted bits after
        adding in current address for pc-relative operands.
Fixes disassembly of backwards 24bit pc-relative addressese.

27 years ago * elf32-mn10200.c (elf_mn10200_howto): Set partial_inplace for
Jeff Law [Mon, 6 Jan 1997 20:33:53 +0000 (20:33 +0000)]
    * elf32-mn10200.c (elf_mn10200_howto): Set partial_inplace for
        24bit pc-relative reloc.

27 years ago * symtab.c (fixup_symbol_section): Handle NULL symbols without
Stu Grossman [Mon, 6 Jan 1997 19:17:39 +0000 (19:17 +0000)]
* symtab.c (fixup_symbol_section):  Handle NULL symbols without
crashing.

27 years ago * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
Fred Fish [Mon, 6 Jan 1997 18:04:38 +0000 (18:04 +0000)]
* tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
(print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
* tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
(SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
REG_BASE_M_SI, REG_BASE_M_LI respectively.
(REG_SCALED, LSI_SCALED): New operand types.
(E): New macro for 'E' bit at bit 27.
(tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
opcodes, including the various size flavors (b,h,w,d) for
the direct load and store instructions.

27 years ago * tic80.h (TIC80_OPERAND_SCALED): Operand may have optional
Fred Fish [Mon, 6 Jan 1997 17:51:13 +0000 (17:51 +0000)]
* tic80.h (TIC80_OPERAND_SCALED): Operand may have optional
":s" modifier for scaling.

27 years ago * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
Fred Fish [Sun, 5 Jan 1997 19:29:42 +0000 (19:29 +0000)]
* tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
  in an instruction.
* tic80-dis.c (print_insn_tic80): Change comma and paren handling.
   Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
* tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
(F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
(MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
masks with "MASK_* & ~M_*" to get the M bit reset.
(tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.

27 years ago * tic80.h (TIC80_OPERAND_M_SI): Add operand modifier for ":m".
Fred Fish [Sun, 5 Jan 1997 19:15:20 +0000 (19:15 +0000)]
  * tic80.h (TIC80_OPERAND_M_SI): Add operand modifier for ":m".
      (TIC80_OPERAND_M_LI): Ditto

27 years ago * tic80.h (TIC80_OPERAND_BITNUM): Renamed from TIC80_OPERAND_CC_SZ.
Fred Fish [Sun, 5 Jan 1997 02:13:07 +0000 (02:13 +0000)]
* tic80.h (TIC80_OPERAND_BITNUM): Renamed from TIC80_OPERAND_CC_SZ.
(TIC80_OPERAND_CC): New define for condition code operand.
(TIC80_OPERAND_CR): New define for control register operand.

27 years ago * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
Fred Fish [Sun, 5 Jan 1997 02:10:14 +0000 (02:10 +0000)]
* tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
correctly.  Add support for printing TIC80_OPERAND_BITNUM and
TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
form.
* tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
CC, SICR, and LICR table entries.
(tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
"bcnd", and "brcr" opcodes.

27 years ago * ppc-opc.c (powerpc_operands): Make comment match the
Fred Fish [Sat, 4 Jan 1997 01:39:30 +0000 (01:39 +0000)]
* ppc-opc.c (powerpc_operands): Make comment match the
actual fields (no shift field).
* sparc-opc.c (sparc_opcodes): Document why this cannot be "const".

* tic80-dis.c (print_insn_tic80): Replace abort stub with a
partial implementation, work in progress.
* tic80-opc.c (tic80_operands): Begin construction operands table.
(tic80_opcodes): Continue populating opcodes table and start
filling in the operand indices.
(tic80_num_opcodes): Add this.

27 years ago * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
Fred Fish [Sat, 4 Jan 1997 01:24:50 +0000 (01:24 +0000)]
* Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
* coff-tic80.c (tic80coff_vec): Data byte order is big endian and
header byte order is little endian.  Use correct bfd_get and
bfd_put routines for little endian headers.
* coffcode.h (coff_set_arch_mach_hook): Set arch to
bfd_arch_tic80 for TIC80_ARCH_MAGIC number.

27 years ago * Makefile.in configure configure.in: Remove ENABLE_CLIBS,
Stu Grossman [Sat, 4 Jan 1997 00:33:01 +0000 (00:33 +0000)]
* Makefile.in configure configure.in:  Remove ENABLE_CLIBS,
ENABLE_OBS, and THREAD_DB_OBS.  These are consolidated into LIBS
and CONFIG_OBS.
* configure configure.in:  Clean up test cases around thread support.
start-sanitize-v850
* configure.tgt (v850-*-*):  Include v850ice.o and v850.lib if
host is Windows.
end-sanitize-v850
* c-valprint.c ch-valprint.c cp-valprint.c eval.c expprint.c
printcmd.c valops.c value.h values.c:  Add bfd_section arg to
value_at and value_at_lazy.
* coffread.c dbxread.c elfread.c mdebugread.c minsyms.c symtab.h:
Add bfd_section arg to prim_record_minimal_symbol_and_info.
* corefile.c gdbcore.h printcmd.c valops.c:  Use read_memory_section
instead of read_memory.  It takes a bfd_section arg.
* coffread.c dbxread.c elfread.c gdb-stabs.h objfiles.h:  Remove
unnecessary cast for assignment of struct dbx_symfile_info.
Struct objfile now uses a real pointer instead of PTR for this
element.
* dbxread.c (dbx_symfile_init): Stash bfd section pointers for
text, data and bss into dbx_symfile_info.
* exec.c (xfer_memory):  Handle transfers for user-specified
sections.
* findvar.c (read_var_value locate_var_value):  Copy bfd section
from the symbol to the value.
* gdb-stabs.h:  Add section pointers for text, data and bss
sections.
* maint.c (translate address command):  Add test code for overlay
address translation.
* printcmd.c (do_examine do_one_display):  Now takes a bfd section
arg.
* (print_formatted x_command):  Record current section along with
current address for repeated commands.
* sparc-nat.c (fetch_inferior_registers):  Change
target_xfer_memory to target_{read write}_memory to allow changes
to target_xfer_memory interface for section info.
* symmisc.c (dump_msymbols print_symbol):  Print section
assocaited with symbol.
* symtab.c (fixup_symbol_section):  New routine to
add section info to symbols returned by lookup_symbol.
* symtab.h (struct general_symbol_info):  Add bfd section to
symbols.
* target.c target.h (target_xfer_memory):  Add bfd section to
args.
* (target_read_memory_section):  New routine to read data from a
specific section.
* (target_memory_bfd_section):  New global variable to pass bfd
section in to targets.
* valarith.c (value_add value_addr value_array):  Preserve bfd
section when computing new value.
* value.h (struct value):  Add bfd section to values.
* values.c (allocate_value value_copy):  Initialize/preserve bfd
section.
* (unpack_double):  Clean up _MSC_VER conditionals to remove
duplicate code.
start-sanitize-v850
* v850ice.c:  New module to support communication with NEC's
PC-based ICE.
* config/v850/tm-v850.h (REGISTER_NAMES):  Replace sp, gp, fp, and
ep names with rxx names.  sp and fp are renamed via a different
mechanism.
end-sanitize-v850

27 years ago * Makefile.in configure configure.in: Remove ENABLE_CLIBS,
Stu Grossman [Sat, 4 Jan 1997 00:25:53 +0000 (00:25 +0000)]
* Makefile.in configure configure.in:  Remove ENABLE_CLIBS,
ENABLE_OBS, and THREAD_DB_OBS.  These are consolidated into LIBS
and CONFIG_OBS.
* configure configure.in:  Clean up test cases around thread support.
start-sanitize-v850
* configure.tgt (v850-*-*):  Include v850ice.o and v850.lib if
host is Windows.
end-sanitize-v850
* c-valprint.c ch-valprint.c cp-valprint.c eval.c expprint.c
printcmd.c valops.c value.h values.c:  Add bfd_section arg to
value_at and value_at_lazy.
* coffread.c dbxread.c elfread.c mdebugread.c minsyms.c symtab.h:
Add bfd_section arg to prim_record_minimal_symbol_and_info.
* corefile.c gdbcore.h printcmd.c valops.c:  Use read_memory_section
instead of read_memory.  It takes a bfd_section arg.
* coffread.c dbxread.c elfread.c gdb-stabs.h objfiles.h:  Remove
unnecessary cast for assignment of struct dbx_symfile_info.
Struct objfile now uses a real pointer instead of PTR for this
element.
* dbxread.c (dbx_symfile_init): Stash bfd section pointers for
text, data and bss into dbx_symfile_info.
* exec.c (xfer_memory):  Handle transfers for user-specified
sections.
* findvar.c (read_var_value locate_var_value):  Copy bfd section
from the symbol to the value.
* gdb-stabs.h:  Add section pointers for text, data and bss
sections.
* maint.c (translate address command):  Add test code for overlay
address translation.
* printcmd.c (do_examine do_one_display):  Now takes a bfd section
arg.
* (print_formatted x_command):  Record current section along with
current address for repeated commands.
* sparc-nat.c (fetch_inferior_registers):  Change
target_xfer_memory to target_{read write}_memory to allow changes
to target_xfer_memory interface for section info.
* symmisc.c (dump_msymbols print_symbol):  Print section
assocaited with symbol.
* symtab.c (fixup_symbol_section):  New routine to
add section info to symbols returned by lookup_symbol.
* symtab.h (struct general_symbol_info):  Add bfd section to
symbols.
* target.c target.h (target_xfer_memory):  Add bfd section to
args.
* (target_read_memory_section):  New routine to read data from a
specific section.
* (target_memory_bfd_section):  New global variable to pass bfd
section in to targets.
* valarith.c (value_add value_addr value_array):  Preserve bfd
section when computing new value.
* value.h (struct value):  Add bfd section to values.
* values.c (allocate_value value_copy):  Initialize/preserve bfd
section.
* (unpack_double):  Clean up _MSC_VER conditionals to remove
duplicate code.
start-sanitize-v850
* v850ice.c:  New module to support communication with NEC's
PC-based ICE.
* config/v850/tm-v850.h (REGISTER_NAMES):  Replace sp, gp, fp, and
ep names with rxx names.  sp and fp are renamed via a different
mechanism.
end-sanitize-v850

27 years ago * reloc.c: Add BFD_RELOC_24.
Jeff Law [Sat, 4 Jan 1997 00:02:12 +0000 (00:02 +0000)]
    * reloc.c: Add BFD_RELOC_24.
        * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
        (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
        * bfd-in2.h, libbfd.h: Rebuilt.
Starting on relocs for the mn10200.

27 years agoFix copyrights.
Jeff Law [Fri, 3 Jan 1997 23:56:40 +0000 (23:56 +0000)]
Fix copyrights.