platform/upstream/binutils.git
27 years ago * stabs.c (_bfd_link_section_stabs): Copy over the first header
Ian Lance Taylor [Tue, 25 Mar 1997 19:46:12 +0000 (19:46 +0000)]
* stabs.c (_bfd_link_section_stabs): Copy over the first header
symbol.  Check for memory allocation failure of *psinfo.
(_bfd_write_section_stabs): Add psinfo parameter.  Change all
callers.  Set the value of the header symbol.
* libbfd-in.h (_bfd_write_section_stabs): Update declaration.
* libbfd.h: Rebuild.

27 years ago * stabs.texinfo (Stab Section Basics): Make it clear that only
Ian Lance Taylor [Tue, 25 Mar 1997 19:44:43 +0000 (19:44 +0000)]
* stabs.texinfo (Stab Section Basics): Make it clear that only
some versions of the GNU linker remove the leading N_UNDF symbol.

27 years ago* emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
Andrew Cagney [Tue, 25 Mar 1997 05:06:12 +0000 (05:06 +0000)]
* emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
* configure.in (enable-sim-endain): Correct typo in usage (from
Erik Landry <landry@ENGR.ORST.EDU>).
* configure: Re-generate.

27 years agoMon Mar 24 19:43:16 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Tue, 25 Mar 1997 03:47:14 +0000 (03:47 +0000)]
Mon Mar 24 19:43:16 1997  Geoffrey Noer  <noer@cygnus.com>

        * symtab.c (find_pc_symtab): change to support the case
        where the objfile is reordered and contains both coff and
        stabs debugging info (continue on if a psymtab isn't found).

27 years ago * coff-tic80.c (tic80_howto_table): Add R_ABS entry.
Fred Fish [Tue, 25 Mar 1997 03:07:35 +0000 (03:07 +0000)]
* coff-tic80.c (tic80_howto_table): Add R_ABS entry.
(rtype2howto): Handle R_ABS reloc type.  Also abort on unhandled
reloc types, rather than silently failing to generate an output file.

27 years ago * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
Jeff Law [Mon, 24 Mar 1997 21:48:36 +0000 (21:48 +0000)]
    * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
        * gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
        * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
disassembler testsuite for the mn10300.

27 years agoRemove m32r sanitization.
David Edelsohn [Mon, 24 Mar 1997 21:29:21 +0000 (21:29 +0000)]
Remove m32r sanitization.

27 years ago * targmatch.sed: Use the hold space to put the #ifdef around the
Ian Lance Taylor [Mon, 24 Mar 1997 21:22:00 +0000 (21:22 +0000)]
* targmatch.sed: Use the hold space to put the #ifdef around the
the string constant.
* targets.c (UNSUPPORTED_TARGET): Don't define.
(find_target): Don't check for UNSUPPORTED_TARGET.
(bfd_set_default_target): Don't try to optimize by checking for
default.

27 years agoDelete duplicate mn10300 entry, move other to normal place.
David Edelsohn [Mon, 24 Mar 1997 20:42:43 +0000 (20:42 +0000)]
Delete duplicate mn10300 entry, move other to normal place.

27 years ago(m32r): Clean up support for.
David Edelsohn [Mon, 24 Mar 1997 20:24:29 +0000 (20:24 +0000)]
(m32r): Clean up support for.

27 years ago * Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Mon, 24 Mar 1997 20:07:49 +0000 (20:07 +0000)]
* Makefile.in: Rebuild dependencies.
  (ALL_MACHINES_CFILES): Add cpu-m32r.c.
(BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
(elf32-m32r.o): Remove explicit target.

27 years ago * Makefile.in (install-dirs): Don't crash if prefix, and hence
Ian Lance Taylor [Mon, 24 Mar 1997 20:03:29 +0000 (20:03 +0000)]
* Makefile.in (install-dirs): Don't crash if prefix, and hence
MAKEDIRS, is empty.

27 years ago * sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s.
Ian Lance Taylor [Mon, 24 Mar 1997 19:59:06 +0000 (19:59 +0000)]
* sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s.
The documented instructions are bf/s and bt/s.

27 years ago * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
Ian Lance Taylor [Mon, 24 Mar 1997 19:52:42 +0000 (19:52 +0000)]
* config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
i[3456]86-*-linux*.

27 years ago * i386.h: Add iclr.
Ian Lance Taylor [Mon, 24 Mar 1997 19:38:27 +0000 (19:38 +0000)]
* i386.h: Add iclr.

27 years ago * config/tc-i386.h (iclrKludge): Define.
Ian Lance Taylor [Mon, 24 Mar 1997 19:37:05 +0000 (19:37 +0000)]
* config/tc-i386.h (iclrKludge): Define.
* config/tc-i386.c (md_assemble): Handle iclrKludge.

27 years ago * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
Ian Lance Taylor [Mon, 24 Mar 1997 18:42:09 +0000 (18:42 +0000)]
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
count section symbols for sections that were created by the
linker, or are not allocatable or not loadable.
(elf32_sparc_finish_dynamic_sections): Output output section
symbols for section for which we made space for them.

27 years ago * mips-opc.c: Add dctr and dctw.
Ian Lance Taylor [Mon, 24 Mar 1997 18:32:03 +0000 (18:32 +0000)]
* mips-opc.c: Add dctr and dctw.

27 years ago * config/tc-alpha.h (tc_frob_file_before_adjust): Define if
Ian Lance Taylor [Mon, 24 Mar 1997 17:14:06 +0000 (17:14 +0000)]
* config/tc-alpha.h (tc_frob_file_before_adjust): Define if
OBJ_ECOFF.
(alpha_frob_file_before_adjust): Declare if OBJ_ECOFF.
* config/tc-alpha.c (alpha_debug): New static variable.
(md_parse_option): Set alpha_debug if -g is seen.
  (alpha_frob_file_before_adjust): New function if OBJ_ECOFF.

27 years ago * Makefile.in (.c.o): Define TARGET_$(MY_TARGET) when compiling.
Ian Lance Taylor [Mon, 24 Mar 1997 16:13:38 +0000 (16:13 +0000)]
* Makefile.in (.c.o): Define TARGET_$(MY_TARGET) when compiling.
   * gmon.h: Use bytes counts rather than sizeof in struct raw_phdr
  and struct raw_arc.

27 years agoThe d30v release has a testsuite directory.
Andrew Cagney [Mon, 24 Mar 1997 07:18:02 +0000 (07:18 +0000)]
The d30v release has a testsuite directory.

27 years agoEnable testsuite in sim directory.
Andrew Cagney [Mon, 24 Mar 1997 06:59:54 +0000 (06:59 +0000)]
Enable testsuite in sim directory.

27 years agoGrowing number of tests for d30v
Andrew Cagney [Mon, 24 Mar 1997 06:49:54 +0000 (06:49 +0000)]
Growing number of tests for d30v

27 years agoSun Mar 23 18:03:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Mon, 24 Mar 1997 02:27:09 +0000 (02:27 +0000)]
Sun Mar 23 18:03:31 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* tc-d30v.c (build_insn): Enable range-checking code.
(postfix): Stop at space or comma. Fixes PR 11862.
(md_assemble): Change error message.

27 years agoSun Mar 23 18:03:31 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Mon, 24 Mar 1997 02:26:54 +0000 (02:26 +0000)]
Sun Mar 23 18:03:31 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d30v.c (build_insn): Enable range-checking code.
(postfix): Stop at space or comma. Fixes PR 11862.
(md_assemble): Change error message.

27 years agoSun Mar 23 18:08:10 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Mon, 24 Mar 1997 02:24:51 +0000 (02:24 +0000)]
Sun Mar 23 18:08:10 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d30v-dis.c (print_insn): Change the way signed constants
are displayed.

27 years agoFixes from Peter Schauer:
Mark Alexander [Mon, 24 Mar 1997 00:29:12 +0000 (00:29 +0000)]
Fixes from Peter Schauer:
* config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE,
REGISTER_CONVERT_FROM_TYPE): Swap words if target, not host,
is big-endian and if registers are 32 bits.
* mips-tdep.c (mips_print_register, mips_extract_return_value,
mips_store_return_value): Fix floating-point word-order problems on
little-endian targets introduced by changes of Mar 21.

27 years ago * remote.c (target_resume_hook, target_wait_loop_hook): New
Stan Shebs [Mon, 24 Mar 1997 00:08:26 +0000 (00:08 +0000)]
* remote.c (target_resume_hook, target_wait_loop_hook): New
  globals.
  (remote_resume, remote_wait): Use them.
* d10v-tdep.c: Set the above hooks.
(tracesource): New GDB variable, controls source display in
  traces.
(display_trace): Find and display source line if requested.
(trace_info): Mention empty trace buffer if appropriate.
(tdisassemble_command): Robustify argument handling.

27 years ago * configure.host: Remove extra bogus Linux case.
Stan Shebs [Sun, 23 Mar 1997 20:50:09 +0000 (20:50 +0000)]
* configure.host: Remove extra bogus Linux case.

27 years ago Moved change from gdb_target_udi to gdb_start.
Bob Manson [Sun, 23 Mar 1997 04:41:14 +0000 (04:41 +0000)]
Moved change from gdb_target_udi to gdb_start.

27 years ago * config/udi.exp(gdb_target_udi): Make sure UDICONF is set
Bob Manson [Sun, 23 Mar 1997 04:01:48 +0000 (04:01 +0000)]
* config/udi.exp(gdb_target_udi): Make sure UDICONF is set
properly before starting gdb.

27 years agoAdd this file too..
Fred Fish [Sat, 22 Mar 1997 23:55:06 +0000 (23:55 +0000)]
Add this file too..

27 years agoForgot this change in last checkin.
Fred Fish [Sat, 22 Mar 1997 23:53:32 +0000 (23:53 +0000)]
Forgot this change in last checkin.

27 years ago * remote-sim.c (simulator_command): Add comment about dealing with
Fred Fish [Sat, 22 Mar 1997 23:52:04 +0000 (23:52 +0000)]
* remote-sim.c (simulator_command): Add comment about dealing with
NULL or empty args.
start-sanitize-tic80
* Makefile.in (tic80-tdep.o): Add target.
* configure.tgt: Add tic80 case.
* tic80-tdep.c: New file.
* config/tic80/{tic80.mt, tm-tic80.h}: New files.
end-sanitize-tic80

27 years agofix v850 sanitization
David Edelsohn [Sat, 22 Mar 1997 19:42:23 +0000 (19:42 +0000)]
fix v850 sanitization

27 years agoremove m32r sanitization
David Edelsohn [Sat, 22 Mar 1997 19:38:00 +0000 (19:38 +0000)]
remove m32r sanitization

27 years ago * Makefile.in: Added automatic dependency building.
Ian Lance Taylor [Sat, 22 Mar 1997 18:53:01 +0000 (18:53 +0000)]
* Makefile.in: Added automatic dependency building.
* dep-in.sed: New file.

27 years ago * c-exp.y (yylex): Handle nested template parameter lists.
Peter Schauer [Sat, 22 Mar 1997 10:50:18 +0000 (10:50 +0000)]
* c-exp.y (yylex):  Handle nested template parameter lists.
* symtab.c (decode_line_2):  Fix test for valid choice number.

27 years ago * mips-tdep.c (mips_push_arguments): On non-EABI architectures,
Mark Alexander [Sat, 22 Mar 1997 04:40:03 +0000 (04:40 +0000)]
* mips-tdep.c (mips_push_arguments): On non-EABI architectures,
copy first two floating point arguments to general registers, so that
MIPS16 functions will receive the arguments correctly.
(mips_print_register): Print double registers correctly on
little-endian hosts.
(mips_extract_return_value): Return double values correctly
on little-endian hosts.

* mdebugread.c (parse_procedure): Adjust address of procedure relative
to address in file descriptor record; this accounts for constant
strings that may precede functions in the text section.  Remove
now-useless lowest_pdr_addr from argument list and all calls.

27 years ago * config/obj-ieee.c (segment_name): Don't define function if this
Ian Lance Taylor [Fri, 21 Mar 1997 23:52:29 +0000 (23:52 +0000)]
* config/obj-ieee.c (segment_name): Don't define function if this
is a macro.

27 years ago * config/obj-coff.h (DO_STRIP): Don't define.
Ian Lance Taylor [Fri, 21 Mar 1997 23:13:26 +0000 (23:13 +0000)]
* config/obj-coff.h (DO_STRIP): Don't define.
* config/tc-h8300.h (DO_STRIP): Don't define.
* config/tc-h8500.h (DO_STRIP): Don't define.
* config/tc-w65.h (DO_STRIP): Don't define.
* config/tc-z8k.h (DO_STRIP): Don't define.

27 years ago * symbols.c (colon): Call obj_frob_label if it is defined.
Ian Lance Taylor [Fri, 21 Mar 1997 23:06:08 +0000 (23:06 +0000)]
* symbols.c (colon): Call obj_frob_label if it is defined.
* config/obj-vms.h (obj_frob_label): Rename from tc_frob_label.

27 years agoRemove m32r sanitization.
David Edelsohn [Fri, 21 Mar 1997 22:00:22 +0000 (22:00 +0000)]
Remove m32r sanitization.

27 years agoRemove m32r sanitization.
David Edelsohn [Fri, 21 Mar 1997 20:59:30 +0000 (20:59 +0000)]
Remove m32r sanitization.

27 years agoMake powerpc simulator support in gdb dependent on whether the simulator was configur...
Michael Meissner [Fri, 21 Mar 1997 20:56:10 +0000 (20:56 +0000)]
Make powerpc simulator support in gdb dependent on whether the simulator was configured in

27 years ago * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
David Edelsohn [Fri, 21 Mar 1997 20:51:17 +0000 (20:51 +0000)]
* elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
(m32r_hi16_list): New static local.
(m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
(m32r_elf_do_hi16_reloc): Delete.
(m32r_elf_relocate_hi16): New function.
(m32r_elf_lo16_reloc): New function.
(m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
LO16 reloc.

* elf32-m32r.c (m32r_elf_create_linker_section): Delete.
(m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
(m32r_elf_final_sda_base): New function.
(m32r_elf_relocate_section): Rewrite sdata support.
(m32r_elf_finish_dynamic_sections): Delete.
Bring over from m32r-970131 branch.

27 years ago * configure.in: Don't set files and links. Don't call
Ian Lance Taylor [Fri, 21 Mar 1997 20:48:27 +0000 (20:48 +0000)]
* configure.in: Don't set files and links.  Don't call
AC_LINK_FILES.  Substitute te_file.  Create targ-cpu.h,
obj-format.h, targ-env.h, and itbl-cpu.h in AC_OUTPUT.
* configure: Rebuild.
* Makefile.in (TARG_CPU_C): New variable.
(TARG_CPU_O, TARG_CPU_H): New variables.
(OBJ_FORMAT_C, OBJ_FORMAT_O, OBJ_FORMAT_H): New variables.
(TARG_ENV_H, ATOF_TARG_C, ATOF_TARG_O): New variables.
(SOURCES): Rename from REAL_SOURCES.  Delete old definition.
(LINKED_SOURCES): Remove.
(HEADERS): Rename from REAL_HEADERS.  Delete old definition.
(LINKED_HEADERS): Remove.
(OBJS): Use $(TARG_CPU_O), etc., rather than targ-cpu.o, etc.
($(OBJS)): Depend upon $(TARG_ENV_H), etc., rather than
targ-cpu.h, etc.
($(TARG_CPU_O), $(OBJ_FORMAT_O) $(ATOF_TARG_O)): New targets.
(targ-cpu.o, obj-format.o, atof-targ.o): Remove targets.
(itbl-cpu.h): Remove target.
(DISTCLEAN_HERE): Remove targ-cpu.c, obj-format.c, atof-targ.c,
atof-targ.h.

27 years ago * Makefile.in (BFD_H): New variable.
Ian Lance Taylor [Fri, 21 Mar 1997 19:39:26 +0000 (19:39 +0000)]
* Makefile.in (BFD_H): New variable.
(HFILES): New variable.
(CFILES): Add all C files.
(.dep, .dep1, dep.sed, dep, dep-in): New targets.
Delete old dependencies, and build new ones.
* dep-in.sed: New file.

27 years ago * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
Ian Lance Taylor [Fri, 21 Mar 1997 18:09:12 +0000 (18:09 +0000)]
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
Handles the case of a shared library with no function calls.

27 years agox
Ian Lance Taylor [Fri, 21 Mar 1997 17:35:20 +0000 (17:35 +0000)]
x

27 years agoFri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Fri, 21 Mar 1997 17:29:13 +0000 (17:29 +0000)]
Fri Mar 21 12:28:41 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* emulparams/delta68.sh (OUTPUT_FORMAT): Set to "m68k-coff-sysv".

27 years ago * mn10200-tdep.c (mn10200_analyze_prologue): Look for save of "a1"
Jeff Law [Fri, 21 Mar 1997 06:15:27 +0000 (06:15 +0000)]
    * mn10200-tdep.c (mn10200_analyze_prologue): Look for save of "a1"
        in the prologue too.

27 years ago * run.c: Include alloca-conf.h.
Jeff Law [Fri, 21 Mar 1997 05:41:28 +0000 (05:41 +0000)]
    * run.c: Include alloca-conf.h.

27 years ago * callback.c (os_evprintf_filtered): Fix typo.
Jeff Law [Fri, 21 Mar 1997 04:53:13 +0000 (04:53 +0000)]
    * callback.c (os_evprintf_filtered): Fix typo.

27 years ago * size.c (usage): Make definition match its prototype.
Jeff Law [Fri, 21 Mar 1997 04:28:24 +0000 (04:28 +0000)]
    * size.c (usage): Make definition match its prototype.
        (display_bfd, lprint_number, rprint_number): Likewise.
        (print_berkeley_format, sysv_internal_printer): Likewise.
        (print_sysv_format): Likewise.
        * nm.c (set_print_radix, set_output_format): Likewise.
        * objcopy.c (filter_bytes): Likewise.

27 years agoPass GCC -W...
Andrew Cagney [Fri, 21 Mar 1997 03:56:07 +0000 (03:56 +0000)]
Pass GCC -W...

27 years ago * remote-sim.c (gdb_os_vprintf_filtered): Fix to work with non-ANSI
Jeff Law [Fri, 21 Mar 1997 03:53:59 +0000 (03:53 +0000)]
    * remote-sim.c (gdb_os_vprintf_filtered): Fix to work with non-ANSI
        compilers.
        (gdb_os_evprintf_filtered): Similarly.

27 years ago * i386.h: Change DW to W for cmpxchg and xadd, since they don't
Ian Lance Taylor [Fri, 21 Mar 1997 00:53:24 +0000 (00:53 +0000)]
* i386.h: Change DW to W for cmpxchg and xadd, since they don't
take a direction bit.

27 years ago * doc/as.texinfo (Symbol Names): Don't use obsolete @ctrl macro.
Ian Lance Taylor [Fri, 21 Mar 1997 00:19:44 +0000 (00:19 +0000)]
* doc/as.texinfo (Symbol Names): Don't use obsolete @ctrl macro.

27 years agoThu Mar 20 19:03:30 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Fri, 21 Mar 1997 00:04:16 +0000 (00:04 +0000)]
Thu Mar 20 19:03:30 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* m68k-opc.c (m68k_opcode_aliases): Added blo and blo{s,b,w,l}.

27 years ago * config/m68k-parse.y (motorola_operand): Allow (zdireg,EXPR).
Ian Lance Taylor [Thu, 20 Mar 1997 22:00:37 +0000 (22:00 +0000)]
* config/m68k-parse.y (motorola_operand): Allow (zdireg,EXPR).

27 years agoFixed .Sanitize
Geoffrey Noer [Thu, 20 Mar 1997 21:52:10 +0000 (21:52 +0000)]
Fixed .Sanitize

27 years agoThu Mar 20 16:49:14 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Thu, 20 Mar 1997 21:51:00 +0000 (21:51 +0000)]
Thu Mar 20 16:49:14 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* config/tc-m68k.c (mri_chip): Replace calls to get_symbol_end by
open coded loop that does not require the name to start with a
name beginner.

27 years ago Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
Ian Lance Taylor [Thu, 20 Mar 1997 21:23:10 +0000 (21:23 +0000)]
Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
* coff-svm68k.c: New file.  Just defines some macros and includes
coff-m68k.c.
* coff-m68k.c: Add functions to handle common addends, moved in
from cf-m68klynx.c.  Control them using COFF_COMMON_ADDEND macro.
Control whether relocs are visible using STATIC_RELOCS.
* cf-m68klynx.c: Simplify greatly: just define macros to control
coff-m68k.c.
* coff-aux.c: Likewise.  Just leave add_one_symbol routine.
* targets. (m68ksysvcoff_vec): Declare.
(bfd_target_vector): Add m68ksysvcoff_vec.
* config.bfd (m68*-motorola-sysv*): New target.
* configure.in (m68ksysvcoff_vec): New vector.
* configure: Rebuild.
* Makefile.in: Rebuild dependencies.
  (BFD32_BACKENDS): Add coff-svm68k.o.
(BFD32_BACKENDS_CFILES): Add coff-svm68k.c.

27 years agoFix minor sanitization problems
Jeff Law [Thu, 20 Mar 1997 20:30:29 +0000 (20:30 +0000)]
Fix minor sanitization problems

27 years agoThu Mar 20 13:42:01 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Thu, 20 Mar 1997 19:08:35 +0000 (19:08 +0000)]
Thu Mar 20 13:42:01 1997  H.J. Lu  <hjl@lucon.org>

* frags.c (frag_var): Change offset parameter to offsetT.
(frag_variant): Likewise.
* frags.h (frag_variant, frag_var): Update declarations.
* config/tc-m68k.c (struct m68k_it): Change foff field to
offsetT.
(add_frag): Change off parameter to offsetT.
* Several files: Add casts to calls to frag_var.

27 years ago * simops.c: Fix register extraction for a two "movbu" variants.
Jeff Law [Thu, 20 Mar 1997 19:02:44 +0000 (19:02 +0000)]
    * simops.c: Fix register extraction for a two "movbu" variants.
        Somewhat simplify "sub" instructions.
        Correctly sign extend operands for "mul".  Put the correct
        half of the result in MDR for "mul" and "mulu".
        Implement remaining instructions.
        Tweak opcode for "syscall".

27 years agoThu Mar 20 13:42:01 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Thu, 20 Mar 1997 18:43:10 +0000 (18:43 +0000)]
Thu Mar 20 13:42:01 1997  H.J. Lu  <hjl@lucon.org>

* Makefile.in (m68k-parse.c): Depend upon itbl-parse.c, to
serialize a parallel make.
(itbl-parse.h): Split target out from itbl-parse.c.

27 years ago * binary.c (binary_set_section_contents): Don't get misled if the
Ian Lance Taylor [Thu, 20 Mar 1997 18:33:44 +0000 (18:33 +0000)]
* binary.c (binary_set_section_contents): Don't get misled if the
  first section is not loadable.  From Matthew L. Martin
  <mlm@xedia.com>.

27 years agoThu Mar 20 12:48:45 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Thu, 20 Mar 1997 17:50:41 +0000 (17:50 +0000)]
Thu Mar 20 12:48:45 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* config/te-delta.h (COFF_COMMON_ADDEND): Define.
* config/obj-coff.c (fixup_segment): Check COFF_COMMON_ADDEND when
storing the value of a common symbol.

27 years ago * elflink.h (elf_bfd_final_link): Set the value of a section
Ian Lance Taylor [Thu, 20 Mar 1997 17:40:06 +0000 (17:40 +0000)]
* elflink.h (elf_bfd_final_link): Set the value of a section
symbol to the section address unless doing a relocateable link.

27 years agoWed Mar 19 16:13:22 1997 Geoffrey Noer <noer@pizza.cygnus.com>
Geoffrey Noer [Thu, 20 Mar 1997 00:41:50 +0000 (00:41 +0000)]
Wed Mar 19 16:13:22 1997  Geoffrey Noer  <noer@pizza.cygnus.com>

        New UnixWare 2.1 configuration
        * config/i386/i386v42mp.mt: new
        * config/i386/i386v42mp.mh: new
        * config/i386/tm-i386v42mp.h: new
        * config/i386/nm-i386v42mp.h: new
        * configure.tgt: added new entries
        * configure.host: added new entries

27 years agoremote-sim.h moved to include directory
Andrew Cagney [Thu, 20 Mar 1997 00:18:55 +0000 (00:18 +0000)]
remote-sim.h moved to include directory

27 years agoWed Mar 19 15:16:17 1997 Martin M. Hunt <hunt@onions.cygnus.com>
Martin Hunt [Wed, 19 Mar 1997 23:39:20 +0000 (23:39 +0000)]
Wed Mar 19 15:16:17 1997  Martin M. Hunt  <hunt@onions.cygnus.com>

* Makefile.in:  Install gdbtcl dir instead of gdbtk.tcl.

* gdbtk.c: Added some ifdefs for Windows.  Changed GDBTK_FILENAME
to GDBTK_LIBRARY, which is now a path to search.
(gdb_path_conv): New function.  Convert Cygwin32 pathname to
DOS-style pathname.

* aclocal.m4, configure.in: Changes for Windows builds.

* configure: Rebuilt.

27 years agoWed Mar 19 11:37:57 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Wed, 19 Mar 1997 17:07:23 +0000 (17:07 +0000)]
Wed Mar 19 11:37:57 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* config/obj-coff.c (glue_symbols): Unused variable symbolP
removed.
(crawl_symbols): Do not modify symbol_rootP and symbol_lastP here;
that is done by symbol_remove and symbol_insert.

* config/obj-coff.h (S_IS_LOCAL): Return 0 for a debugging
symbol.

27 years ago * config/tc-mips.c (load_register): In 32 bit mode, when not
Ian Lance Taylor [Wed, 19 Mar 1997 16:28:19 +0000 (16:28 +0000)]
* config/tc-mips.c (load_register): In 32 bit mode, when not
dealing with a 64 bit number, permit the upper 32 bits to be set
even if bit 31 is not set.
This lets `and $2,~0x80000000' succeed.

27 years ago* m68k-opc.c (m68k_opcodes): Provide coldfire division module
J.T. Conklin [Wed, 19 Mar 1997 14:56:05 +0000 (14:56 +0000)]
* m68k-opc.c (m68k_opcodes): Provide coldfire division module
instructions.

27 years ago* m68k.h (mcfmac, mcfdiv): New macros.
J.T. Conklin [Wed, 19 Mar 1997 14:27:26 +0000 (14:27 +0000)]
* m68k.h (mcfmac, mcfdiv): New macros.

27 years ago * read.c (potable): Add "equiv".
Ian Lance Taylor [Wed, 19 Mar 1997 04:32:56 +0000 (04:32 +0000)]
* read.c (potable): Add "equiv".
(s_set): Handle .equiv based on argument.
* doc/as.texinfo (Equiv): New node to document .equiv.
(Err): New node to document .err.
PR 11787.

27 years ago * Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Wed, 19 Mar 1997 04:02:00 +0000 (04:02 +0000)]
* Makefile.in: Rebuild dependencies.

27 years agoTue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Wed, 19 Mar 1997 03:58:45 +0000 (03:58 +0000)]
Tue Mar 18 22:40:09 1997  H.J. Lu  <hjl@lucon.org>

* Many files: Add function prototypes.
* cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
* ecofflink.c: Include "libcoff.h" and "libecoff.h".
* elf32-ppc.c (ppc_elf_fake_sections): Make static.
* opncls.c (bfd_openstreamr): Change stream parameter to PTR.
* peicode.h: Change several void * parameters to PTR.
* srec.c (srec_get_symbol_info): Make static.
* syms.c (bfd_symbol_is_absolute): Remove.

27 years agostart-sanitize-m32r
Ian Lance Taylor [Wed, 19 Mar 1997 03:01:27 +0000 (03:01 +0000)]
start-sanitize-m32r
* elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
(bfd_elf32_bfd_is_local_label): Don't define.

end-sanitize-m32r

27 years agoTweak "syscall" opcode.
Jeff Law [Tue, 18 Mar 1997 23:16:44 +0000 (23:16 +0000)]
Tweak "syscall" opcode.

27 years agoTue Mar 18 16:39:55 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Tue, 18 Mar 1997 21:51:04 +0000 (21:51 +0000)]
Tue Mar 18 16:39:55 1997  H.J. Lu  <hjl@lucon.org>

* Many files: Add function prototypes.
* ar.c (mri_emul, get_pos_bfd): Make static.
* arlex.l: Include "libiberty.h".  Don't declare strdup.  Use
xstrdup rather than strdup.
* arparse.y (yyerror): Make argument const.  Correct typo.
* arsup.c (strdup): Don't declare.
(ar_save): Use xstrdup rather than strdup.
* filemode.c: Include "bucomm.h".
* nm.c (usage): Make static.
(print_symname): Make format and name const.
* objcopy.c (cat): Remove.
(copy_archive): Make output_target const.  Use concat, not cat.
(copy_file, simple_copy, smart_rename): Make arguments const.
* objdump.c (read_section_stabs): Likewise.
(print_section_stabs): Likewise.
(display_target_tables): Don't declare getenv.
* strings.c (strings_object_file): Change file to const.
(print_strings): Change filename to const.
* Makefile.in: Rebuild dependencies.

Tue Mar 18 11:37:24 1997  Ian Lance Taylor  <ian@cygnus.com>

* configure.in: Add BFD_NEED_DECLARATION(getenv).
* acconfig.h: Add NEED_DECLARATION_GETENV.
* bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
* configure, config.in: Rebuild.
* nlmconv.c (getenv): Don't declare.

27 years ago * simops.c: Do syscall emulation in "syscall" instruction. Add
Jeff Law [Tue, 18 Mar 1997 21:24:38 +0000 (21:24 +0000)]
    * simops.c: Do syscall emulation in "syscall" instruction.  Add
        dummy "trap" instruction.
Cleanups for the beta release.

27 years ago * mn10200-opc.c: Change "trap" to "syscall".
Jeff Law [Tue, 18 Mar 1997 21:20:29 +0000 (21:20 +0000)]
    * mn10200-opc.c: Change "trap" to "syscall".
        * mn10300-opc.c: Add new "syscall" instruction.
Cleanups for beta release.

27 years agoTue Mar 18 15:50:13 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Tue, 18 Mar 1997 21:04:18 +0000 (21:04 +0000)]
Tue Mar 18 15:50:13 1997  H.J. Lu  <hjl@lucon.org>

* Many files: Add function prototypes.
* as.c (show_usage, parse_args): Make static.
* frags.h (frag_alloc): Declare.
* subsegs.c (subseg_set_rest): Don't declare frag_alloc.
* symbols.c (dollar_label_instance): Change return type to long.
* symbols.h (print_symbol_value): Declare.
(print_expr, print_expr_1, print_symbol_value_1): Declare.
* write.c (fix_new_exp): Don't declare make_expr_symbol.
(remove_subsegs, relax_frag): Make static.
* config/atof-vax.c (atof_vax_sizeof): Change letter to int.
(what_kind_of_float): Likewise.
(atof_vax): Make static.  Change what_kind to int.
(md_atof): Change what_statement_type to int.
* config/obj-ecoff.h (obj_ecoff_set_ext): Declare.
* config/tc-alpha.c (vax_md_atof): Declare.
(md_atof): Don't declare atof_ieee and vax_md_atof.
* config/tc-i386.c (set_16bit_code_flag): Make static.
* config/tc-i386.h (tc_i386_fix_adjustable): Declare.
* config/tc-m68k.c (add_fix): Change width to int.
(insert_reg): Change regname to const.
(md_atof): Don't declare atof_ieee.
(demand_empty_rest_of_line): Don't declare.
* config/tc-m88k.c (md_atof): Don't declare atof_ieee.
* config/tc-sparc.c (cmp_reg_entry): Change args to const PTR.
(parse_keyword_arg): Change lookup_fn to take const arg.
(md_atof): Don't declare atof_ieee.
* config/tc-sparc.h: Add ifdef for multiple inclusion.
(tc_aout_pre_write_hook): Don't declare.

27 years ago * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
Ian Lance Taylor [Tue, 18 Mar 1997 17:58:48 +0000 (17:58 +0000)]
* xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
than malloc.

27 years agofix tipo in comment
Ian Lance Taylor [Tue, 18 Mar 1997 16:39:38 +0000 (16:39 +0000)]
fix tipo in comment

27 years ago * Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Tue, 18 Mar 1997 16:37:42 +0000 (16:37 +0000)]
* Makefile.in: Rebuild dependencies.

27 years ago * emultempl/aix.em: Include "obstack.h".
Ian Lance Taylor [Tue, 18 Mar 1997 16:16:50 +0000 (16:16 +0000)]
* emultempl/aix.em: Include "obstack.h".

27 years agoMove SIM_AC_OPTION_ macros out of SIM_AC_COMMON macro - was trashing
Andrew Cagney [Tue, 18 Mar 1997 14:28:34 +0000 (14:28 +0000)]
Move SIM_AC_OPTION_ macros out of SIM_AC_COMMON macro - was trashing
optional arguments.
* Regenerate all configure scripts.

27 years ago * sim-alu.h: Include sim-xcat.h.
Andrew Cagney [Tue, 18 Mar 1997 10:10:10 +0000 (10:10 +0000)]
    * sim-alu.h: Include sim-xcat.h.
        * d30v-insn (do_sat*): Pass all necessary args.

27 years agoInclude new files sim-assert.h sim-xcat.h sim-state.h
Andrew Cagney [Tue, 18 Mar 1997 08:45:44 +0000 (08:45 +0000)]
Include new files sim-assert.h sim-xcat.h sim-state.h

27 years agoNew files added during rename/cleanup of engine -> sim_state.
Andrew Cagney [Tue, 18 Mar 1997 07:44:40 +0000 (07:44 +0000)]
New files added during rename/cleanup of engine -> sim_state.

27 years agoRename `struct _engine' to new `struct sim_state'.
Andrew Cagney [Tue, 18 Mar 1997 07:43:22 +0000 (07:43 +0000)]
Rename `struct _engine' to new `struct sim_state'.

27 years agoFix bugs in d30v sat and mul instructions.
Andrew Cagney [Tue, 18 Mar 1997 02:41:21 +0000 (02:41 +0000)]
Fix bugs in d30v sat and mul instructions.

27 years ago* dsrec.c (load_srec): Print leading zeroes when printing section
J.T. Conklin [Tue, 18 Mar 1997 01:54:50 +0000 (01:54 +0000)]
* dsrec.c (load_srec): Print leading zeroes when printing section
addresses.

27 years ago * bfd-in.h: Don't include obstack.h.
Ian Lance Taylor [Tue, 18 Mar 1997 00:47:04 +0000 (00:47 +0000)]
* bfd-in.h: Don't include obstack.h.
(struct bfd_hash_table): Change memory field to PTR.
* bfd.c (struct _bfd): Change memory field to PTR.
* bfd-in2.h: Rebuild.
* libbfd-in.h (bfd_release): Declare as function, don't define as
macro.
* libbfd.h: Rebuild.
* opncls.c: Include "objalloc.h" rather than "obstack.h".  Use
objalloc routines rather than obstack routines.
(obstack_chunk_alloc, obstack_chunk_free): Don't define.
(getpagesize): Don't define.
(_bfd_new_bfd): Don't set _bfd_chunksize.
(bfd_openr): Free new bfd and objalloc on failure.
(bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
(bfd_alloc_size): Remove.
(bfd_release): New function.
* hash.c: Include "objalloc.h" rather than "obstack.h".  Use
objalloc routines rather than obstack routines.
(obstack_chunk_alloc, obstack_chunk_free): Don't define.
* ecofflink.c: Include "objalloc.h" rather than "obstack.h".  Use
objalloc routines rather than obstack routines.
(obstack_chunk_alloc, obstack_chunk_free): Don't define.
(struct accumulate): Change memory to struct objalloc *.
* liboasys.h (oasys_data_type): Remove oasys_obstack field.
* dep-in.sed: Don't remove obstack.h from dependency list.
* Makefile.in: Rebuild dependencies.
(BFD_H_DEPS): Remove obstack.h.
(install): Don't install obstack.h.
* Many files: Don't include "obstack.h".
* VERSION: Bump.

27 years ago * ldlang.c: Include "obstack.h".
Ian Lance Taylor [Tue, 18 Mar 1997 00:26:19 +0000 (00:26 +0000)]
* ldlang.c: Include "obstack.h".