platform/upstream/binutils.git
27 years ago * Makefile.in (autoconf-common): New target.
David Edelsohn [Tue, 4 Feb 1997 21:21:30 +0000 (21:21 +0000)]
* Makefile.in (autoconf-common): New target.
* configure.in: Do configure common.
* configure: Regenerated.

27 years agoDocs on configury mostly.
David Edelsohn [Tue, 4 Feb 1997 21:19:08 +0000 (21:19 +0000)]
Docs on configury mostly.

27 years ago * Makefile.in (ALL_MODULES): Added all-db.
Tom Tromey [Tue, 4 Feb 1997 20:47:18 +0000 (20:47 +0000)]
    * Makefile.in (ALL_MODULES): Added all-db.
        (CROSS_CHECK_MODULES): Addec check-db.
        (INSTALL_MODULES): Added install-db.
        (CLEAN_MODULES): Added clean-db.

        * Makefile.in (ALL_MODULES): Added all-itcl.
        (CROSS_CHECK_MODULES): Added check-itcl.
        (INSTALL_MODULES): Added install-itcl.
        (CLEAN_MODULES): Added clean-itcl.

27 years ago * symbols.c (resolve_symbol_value): If we leave an equated symbol
Ian Lance Taylor [Tue, 4 Feb 1997 19:13:11 +0000 (19:13 +0000)]
* symbols.c (resolve_symbol_value): If we leave an equated symbol
as O_symbol, copy over the segment.

27 years ago * mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.
Mark Alexander [Tue, 4 Feb 1997 17:18:56 +0000 (17:18 +0000)]
* mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.
(mips16_heuristic_proc_desc): Recognize jal(x) instruction.

27 years ago * mips-tdep.c (mips16_decode_reg_save): Distinguish between
Mark Alexander [Tue, 4 Feb 1997 02:09:33 +0000 (02:09 +0000)]
* mips-tdep.c (mips16_decode_reg_save): Distinguish between
sd and sw instructions correctly.
(heuristic_proc_start): Add support for MIPS16.
(mips16_get_imm, mips16_heuristic_proc_desc,
mips32_heuristic_proc_desc): New helper functions for
heuristic_proc_desc.
(heuristic_proc_desc): Rewrite and reorganize to support MIPS16.
(mips_push_arguments): Don't align small arguments in EABI.
(mips32_skip_prologue): Attempt to shrink code size a little.

27 years ago * gas/arm/inst.d, gas/arm/arm7t.d: Pass --prefix-addresses to
Ian Lance Taylor [Mon, 3 Feb 1997 20:46:51 +0000 (20:46 +0000)]
* gas/arm/inst.d, gas/arm/arm7t.d: Pass --prefix-addresses to
objdump.  Update for current relocation printing style.

27 years ago * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
Bob Manson [Mon, 3 Feb 1997 20:36:39 +0000 (20:36 +0000)]
* gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
  trying to delete the copy of gdb. Catch the file delete so we
  don't die if the delete fails; also, the file should be copied to
  the host, not to the build.

Fixes problems when gdb isn't built with debugging.

27 years ago * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
Ian Lance Taylor [Mon, 3 Feb 1997 20:31:39 +0000 (20:31 +0000)]
* cofflink.c (_bfd_coff_generic_relocate_section): If doing a
relocateable link, just skip pc_relative pcrel_offset relocs.
* coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
structure for an ARM26 reloc which can be resolved.
(coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
reloc can be resolved.
PR 11599.

27 years agoMon Feb 3 11:06:05 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Mon, 3 Feb 1997 19:18:32 +0000 (19:18 +0000)]
Mon Feb  3 11:06:05 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * m32r-stub.c: New -- remote protocol support for M32R cpu.
        * m32r-rom.c:  Several experiments with improved download time.
        * .Sanitize:   Add entry for m32r-stub.c

27 years ago * config.guess: Merge with latest FSF sources.
Ian Lance Taylor [Mon, 3 Feb 1997 18:30:47 +0000 (18:30 +0000)]
* config.guess: Merge with latest FSF sources.

27 years ago * config/tc-mips.c (md_apply_fix): If we aren't adjusting this
Ian Lance Taylor [Mon, 3 Feb 1997 17:56:00 +0000 (17:56 +0000)]
* config/tc-mips.c (md_apply_fix): If we aren't adjusting this
fixup to be against the section symbol, adjust the value
accordingly.

27 years ago * symbols.c (resolve_symbol_value): Don't change X_add_number for
Ian Lance Taylor [Mon, 3 Feb 1997 17:38:41 +0000 (17:38 +0000)]
* symbols.c (resolve_symbol_value): Don't change X_add_number for
an equated symbol.
* write.c (write_relocs): Avoid looping on equated symbols.
Adjust fx_offset by X_add_number for each symbol.
* config/obj-coff.c (do_relocs_for): Avoid looping on equated
symbols.
(fixup_segment): Add a loop to track down equated symbols and
adjust fx_offset appropriately.

27 years ago * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
Ian Lance Taylor [Mon, 3 Feb 1997 16:54:36 +0000 (16:54 +0000)]
* coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
error in overflow check for R_RELBYTE.
PR 11591.

27 years ago * lib/gdb.exp(gdb_test): Surround the result pattern with
Bob Manson [Mon, 3 Feb 1997 03:35:42 +0000 (03:35 +0000)]
* lib/gdb.exp(gdb_test): Surround the result pattern with
  parenthesis in case it contains multiple regexps separated
with |.

Fixes last nights native failures.

* gdb.base/watchpoint.exp: Use gdb_test.
* gdb.base/default.exp: Ditto.

More improvements.

27 years ago * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
Bob Manson [Sun, 2 Feb 1997 07:59:25 +0000 (07:59 +0000)]
* gdb.*/*.exp: Replace $prompt with $gdb_prompt.

* gdb.base/scope.exp: Use gdb_test.
* gdb.c++/classes.exp: Ditto.
* gdb.c++/inherit.exp: Ditto.

More random cleanups. Still lots to go, however.

27 years agoCommitting sanitize changes
Geoffrey Noer [Sun, 2 Feb 1997 06:49:44 +0000 (06:49 +0000)]
Committing sanitize changes

27 years agocomment fix
Ian Lance Taylor [Fri, 31 Jan 1997 23:15:42 +0000 (23:15 +0000)]
comment fix

27 years ago * config/tc-mn10200.c (md_relax_table): Add entries to allow
Jeff Law [Fri, 31 Jan 1997 22:23:10 +0000 (22:23 +0000)]
    * config/tc-mn10200.c (md_relax_table): Add entries to allow
        jmp -> bra relaxing.
        (md_convert_frag): Handle jmp->bra relaxing.
        (md_assemble): Handle jmp->bra relaxing.
        (md_estimate_size_before_relax): Likewise.

27 years ago * gdb.base/crossload.exp: Don't use execute_anywhere, use
Bob Manson [Fri, 31 Jan 1997 21:21:31 +0000 (21:21 +0000)]
    * gdb.base/crossload.exp: Don't use execute_anywhere, use
        remote_exec instead.
        * gdb.base/corefile.exp: Don't be ridiculous.
        * gdb.base/*.c: Add missing stub invocations.

Fixes failures on HP-UX.

27 years ago * config/tc-sparc.c (enforce_aligned_data): New static variable.
Ian Lance Taylor [Fri, 31 Jan 1997 20:34:22 +0000 (20:34 +0000)]
* config/tc-sparc.c (enforce_aligned_data): New static variable.
(sparc_cons_align): Don't do anything unless enforce_aligned_data
is set.
(md_longopts): Add "enforce-aligned-data".
(md_show_usage): Mention --enforce-aligned-data.
* doc/c-sparc.texi (Sparc-Aligned-Data): New node; document
enforce-aligned-data.

27 years agodo d10v sanitization over all files
Stan Shebs [Fri, 31 Jan 1997 19:57:42 +0000 (19:57 +0000)]
do d10v sanitization over all files

27 years ago * config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
Ian Lance Taylor [Fri, 31 Jan 1997 19:57:31 +0000 (19:57 +0000)]
* config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
  "word", and "short".
(ppc_xcoff_cons): New static function.

27 years agokeep 1996 ChangeLog
Stan Shebs [Fri, 31 Jan 1997 19:55:15 +0000 (19:55 +0000)]
keep 1996 ChangeLog

27 years agoAnnual ChangeLog split.
Stan Shebs [Fri, 31 Jan 1997 19:54:14 +0000 (19:54 +0000)]
Annual ChangeLog split.

27 years ago * ieee.c (ieee_slurp_section_data): Pick up the start address.
Ian Lance Taylor [Fri, 31 Jan 1997 19:15:40 +0000 (19:15 +0000)]
* ieee.c (ieee_slurp_section_data): Pick up the start address.
From Mark Rasin <mark.rasin@telrad.co.il>.

27 years ago * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
Ian Lance Taylor [Fri, 31 Jan 1997 19:08:31 +0000 (19:08 +0000)]
* aoutx.h (aout_link_write_symbols): Don't apply discard_l to
debugging symbols.
Mentioned in PR 11540.

27 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
Ian Lance Taylor [Fri, 31 Jan 1997 18:20:20 +0000 (18:20 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
".so" in the name, not ".so.".
(gld${EMULATION_NAME}_search_dir): Accept a plain .so file.

27 years ago * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
Ian Lance Taylor [Fri, 31 Jan 1997 18:18:02 +0000 (18:18 +0000)]
* Makefile.in (ld.info): Add -I$(srcdir).  From Alan Modra
<alan@spri.levels.unisa.edu.au>.

27 years agoFri Jan 31 13:15:05 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Fri, 31 Jan 1997 18:16:15 +0000 (18:16 +0000)]
Fri Jan 31 13:15:05 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (i386_align_code): Add comments explaining the
nop instructions.

27 years ago * mips-tdep.c (MIPS16_INSTLEN): Define.
Mark Alexander [Fri, 31 Jan 1997 16:37:07 +0000 (16:37 +0000)]
* mips-tdep.c (MIPS16_INSTLEN): Define.
(mips_find_saved_regs): Replace hardcoded 2's with MIPS16_INSTLEN.
(heuristic_proc_start): Recognize 'entry' pseudo-op as a start
of function on MIPS16.
(mips32_skip_prologue, mips16_skip_prologue): New helper functions
for mips_skip_prologue.
(mips_skip_prologue): Recognize both 16- and 32-bit prologues.

27 years ago * configure: Rebuild after change to aclocal.m4.
Ian Lance Taylor [Fri, 31 Jan 1997 16:12:09 +0000 (16:12 +0000)]
* configure: Rebuild after change to aclocal.m4.

27 years ago * write.c (relax_segment): Give an error if a .space symbol is
Ian Lance Taylor [Fri, 31 Jan 1997 15:47:41 +0000 (15:47 +0000)]
* write.c (relax_segment): Give an error if a .space symbol is
common or undefined.

* read.c (read_a_source_file): Don't handle mri_pending_align if
the handler is s_globl or s_ignore.

27 years agoFri Jan 31 10:33:07 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Fri, 31 Jan 1997 15:34:12 +0000 (15:34 +0000)]
Fri Jan 31 10:33:07 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* objdump.c (disassemble_data): Initialize `aux.require_sec'.

27 years ago * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
David Edelsohn [Fri, 31 Jan 1997 15:20:26 +0000 (15:20 +0000)]
* aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
(SIM_AC_OUTPUT): To here.

27 years ago Miscellaneous fixes for config/slite.exp.
Bob Manson [Fri, 31 Jan 1997 04:38:01 +0000 (04:38 +0000)]
Miscellaneous fixes for config/slite.exp.

27 years ago Oops. goes with previous checkin.
Bob Manson [Fri, 31 Jan 1997 01:04:09 +0000 (01:04 +0000)]
Oops. goes with previous checkin.

27 years ago * lib/gdb.exp: Fix runto.
Bob Manson [Fri, 31 Jan 1997 01:03:51 +0000 (01:03 +0000)]
* lib/gdb.exp: Fix runto.

* gdb.base/signals.exp: Check for a gdb,nosignals feature of
the target.

* gdb.base/watchpoint.exp: Fix regexp.

Random miscellaneous fixes. Gotta dig up all these global variables someday..

27 years ago * lib/gdb.exp(default_gdb_exit): Add a catch to the
Bob Manson [Fri, 31 Jan 1997 00:51:45 +0000 (00:51 +0000)]
* lib/gdb.exp(default_gdb_exit): Add a catch to the
close and wait commands, as the descriptor may now be
invalid. Always call "remote_close host".

Makes sure things get cleaned up if gdb dies in the middle of a test.

27 years ago * config/tc-mips.c (mips_fix_adjustable): New function.
Ian Lance Taylor [Thu, 30 Jan 1997 21:19:36 +0000 (21:19 +0000)]
* config/tc-mips.c (mips_fix_adjustable): New function.
* config/tc-mips.h (tc_fix_adjustable): Call mips_fix_adjustable.
(mips_fix_adjustable): Declare.

27 years agoOne minor fix I forgot in last checkin.
Fred Fish [Thu, 30 Jan 1997 21:18:55 +0000 (21:18 +0000)]
One minor fix I forgot in last checkin.

27 years ago * tic80-opc.c (tic80_predefined_symbols): Table of name/value
Fred Fish [Thu, 30 Jan 1997 21:16:46 +0000 (21:16 +0000)]
* tic80-opc.c (tic80_predefined_symbols): Table of name/value
pairs for all predefined symbols recognized by the assembler.
Also used by the disassembling routines.
(tic80_symbol_to_value): New function.
(tic80_value_to_symbol): New function.
* tic80-dis.c (print_operand_control_register,
  print_operand_condition_code, print_operand_bitnum):
Remove private tables and use tic80_value_to_symbol function.

27 years ago * tic80.h: Change all the OPERAND defines to use the form (1 << X)
Fred Fish [Thu, 30 Jan 1997 20:56:33 +0000 (20:56 +0000)]
* tic80.h: Change all the OPERAND defines to use the form (1 << X)
rather than a constant that is 2**X.  Reorder them to put bits for
operands that have symbolic names in the upper bits, so they can
be packed into an int where the lower bits contain the value that
corresponds to that symbolic name.
(predefined_symbo): Add struct.
(tic80_predefined_symbols): Declare array of translations.
(tic80_num_predefined_symbols): Declare size of that array.
(tic80_value_to_symbol): Declare function.
(tic80_symbol_to_value): Declare function.

27 years ago * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
Fred Fish [Thu, 30 Jan 1997 20:35:02 +0000 (20:35 +0000)]
  * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
      * config/tc-tic80.c: Many additions to previous placeholder file.
      * config/tc-tic80.h: Ditto.

27 years agoThu Jan 30 11:30:45 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Thu, 30 Jan 1997 19:33:11 +0000 (19:33 +0000)]
Thu Jan 30 11:30:45 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v-dis.c (print_operand): Change address printing
to correctly handle PC wrapping.  Fixes PR11490.

27 years agoThu Jan 30 12:28:18 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Thu, 30 Jan 1997 17:29:28 +0000 (17:29 +0000)]
Thu Jan 30 12:28:18 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (i386_align_code): Improve the nop patterns.

27 years ago Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
Ian Lance Taylor [Thu, 30 Jan 1997 17:10:28 +0000 (17:10 +0000)]
Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
* read.c (read_a_source_file): After doing an mri_pending_align,
adjust the line_label if there is one.
(s_space): Set mri_pending_align if an odd number of bytes were
output.

27 years ago * gas/mips/mips16.d: Update for disassembler changes.
Ian Lance Taylor [Thu, 30 Jan 1997 16:57:54 +0000 (16:57 +0000)]
* gas/mips/mips16.d: Update for disassembler changes.

27 years ago * emultempl/sunos.em: Include <ctype.h>.
Ian Lance Taylor [Thu, 30 Jan 1997 16:33:36 +0000 (16:33 +0000)]
* emultempl/sunos.em: Include <ctype.h>.
(gld${EMULATION_NAME}_find_so): Skip the directory name when
searching for ".so.".
(gld${EMULATION_NAME}_search_dir): Make sure that the library name
has a version number, and that only version numbers follow .so.

27 years agoWed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 30 Jan 1997 02:17:37 +0000 (02:17 +0000)]
Wed Jan 29 18:15:00 1997  Geoffrey Noer  <noer@cygnus.com>

        * scripttempl/pe.sc:
        * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
        section so Win32 executables are valid.

27 years agoFix from Cagney so that new common files do not show up when using psim on old gdbs
Michael Meissner [Thu, 30 Jan 1997 00:55:18 +0000 (00:55 +0000)]
Fix from Cagney so that new common files do not show up when using psim on old gdbs

27 years agoWed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 29 Jan 1997 23:36:25 +0000 (23:36 +0000)]
Wed Jan 29 15:31:12 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* tc-d10v.h (md_do_align): Add this hook to call
d10v_cleanup() when a ".align" is detected.  Fixes PR11487.

* tc-d10v.c (find_opcode): Correctly calculate
branch displacement when .aligns are present.

27 years agoWed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 29 Jan 1997 23:36:06 +0000 (23:36 +0000)]
Wed Jan 29 15:31:12 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d10v.h (md_do_align): Add this hook to call
d10v_cleanup() when a ".align" is detected.  Fixes PR11487.

* config/tc-d10v.c (find_opcode): Correctly calculate
branch displacement when .aligns are present.

27 years agotweak last change
Ian Lance Taylor [Wed, 29 Jan 1997 19:08:53 +0000 (19:08 +0000)]
tweak last change

27 years agofix copyrights, add NEWS entry
Ian Lance Taylor [Wed, 29 Jan 1997 19:00:54 +0000 (19:00 +0000)]
fix copyrights, add NEWS entry

27 years ago * objdump.c (objdump_print_value): Add skip_zeroes parameter.
Ian Lance Taylor [Wed, 29 Jan 1997 18:58:04 +0000 (18:58 +0000)]
* objdump.c (objdump_print_value): Add skip_zeroes parameter.
Change all callers.
(objdump_print_addr_with_sym): Likewise.  Call objdump_print_value
to print address.
(objdump_print_addr): New static function.
(objdump_print_address): Just call objdump_print_addr.
(disassemble_bytes): Print real address, not function offset.
Skip a certain number of leading zeroes.

* objdump.c (disassemble_zeroes): New static variable.
(usage): Mention --disassemble-zeroes.
(long_options): Add "disassemble-zeroes".
(disassemble_bytes): Check disassemble_zeroes.
Changes requested by LSI.

27 years agoRemove ../sim/ppc/libsim.a
Michael Meissner [Wed, 29 Jan 1997 17:47:02 +0000 (17:47 +0000)]
Remove ../sim/ppc/libsim.a

27 years agobuild callback and targ-map from the common directory
Michael Meissner [Wed, 29 Jan 1997 17:42:14 +0000 (17:42 +0000)]
build callback and targ-map from the common directory

27 years ago * config/tc-mn10200.c (md_relax_table): Define.
Jeff Law [Wed, 29 Jan 1997 16:46:31 +0000 (16:46 +0000)]
    * config/tc-mn10200.c (md_relax_table): Define.
        (md_convert_frag): Implement.
        (md_assemble): Handle relaxable operands/instructions correctly.
        (md_estimate_size_before_relax): Implement.
        * config/tc-mn10200.h (TC_GENERIC_RELAX_TABLE): Define.
Some simple branch relaxing.

27 years ago * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
Jeff Law [Wed, 29 Jan 1997 16:40:15 +0000 (16:40 +0000)]
    * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
        branchs relaxable.

27 years ago * mn10200.h (MN10200_OPERAND_RELAX): Define.
Jeff Law [Wed, 29 Jan 1997 16:38:25 +0000 (16:38 +0000)]
    * mn10200.h (MN10200_OPERAND_RELAX): Define.
Checking in some of the assembler branch relaxing code.

27 years agoMajor revision to testsuites for cross-testing and DOS testing support.
Bob Manson [Wed, 29 Jan 1997 09:40:31 +0000 (09:40 +0000)]
Major revision to testsuites for cross-testing and DOS testing support.

27 years ago * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
Jeff Law [Wed, 29 Jan 1997 07:02:22 +0000 (07:02 +0000)]
    * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
        (elf_mn10200_howto_table): Likewise.
        (mn10200_reloc_map): Likewise.
How did I miss the 16bit pc-relative relocs?!?

27 years ago * blockframe.c: fix a null pointer ref in generic_get_saved_register
Michael Snyder [Tue, 28 Jan 1997 23:55:28 +0000 (23:55 +0000)]
    * blockframe.c: fix a null pointer ref in generic_get_saved_register

27 years agoTue Jan 28 15:39:50 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Tue, 28 Jan 1997 23:43:36 +0000 (23:43 +0000)]
Tue Jan 28 15:39:50 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10200-tdep.c (mn10200_frame_chain): get basic backtracing
        working

27 years ago * mips-dis.c (print_insn_mips16): Set insn_info information.
Ian Lance Taylor [Tue, 28 Jan 1997 21:49:18 +0000 (21:49 +0000)]
* mips-dis.c (print_insn_mips16): Set insn_info information.
(print_mips16_insn_arg): Likewise.

27 years ago * objdump.c (disassemble_bytes): Don't skip zeroes if the
Ian Lance Taylor [Tue, 28 Jan 1997 21:47:52 +0000 (21:47 +0000)]
* objdump.c (disassemble_bytes): Don't skip zeroes if the
disassembler has told us that we are in a branch delay slot.

27 years ago * config/tc-mips.c (append_insn): Give an error for jumps to a
Ian Lance Taylor [Tue, 28 Jan 1997 21:14:37 +0000 (21:14 +0000)]
* config/tc-mips.c (append_insn): Give an error for jumps to a
misaligned address.

27 years ago * config/tc-mips.c (md_apply_fix): Make a branch to an odd address
Ian Lance Taylor [Tue, 28 Jan 1997 21:09:52 +0000 (21:09 +0000)]
* config/tc-mips.c (md_apply_fix): Make a branch to an odd address
an error rather than a warning.

27 years ago * mips-dis.c (print_insn_mips16): Better handling of an extend
Ian Lance Taylor [Tue, 28 Jan 1997 20:58:28 +0000 (20:58 +0000)]
* mips-dis.c (print_insn_mips16): Better handling of an extend
  opcode followed by an instruction which can not be extended.

27 years ago * config/tc-mips.c (md_convert_frag): If the user explicitly
Ian Lance Taylor [Tue, 28 Jan 1997 20:37:27 +0000 (20:37 +0000)]
* config/tc-mips.c (md_convert_frag): If the user explicitly
requested an extended opcode, pass warn as true to mips16_immed.

27 years ago * config/tc-mips.c (mips16_ip): Handle a missing expression like
Ian Lance Taylor [Tue, 28 Jan 1997 20:28:18 +0000 (20:28 +0000)]
* config/tc-mips.c (mips16_ip): Handle a missing expression like
an explicit 0, so that explicitly extended instructions work
correctly.

27 years agoFirst set of changes for mips16:
Mark Alexander [Tue, 28 Jan 1997 00:50:13 +0000 (00:50 +0000)]
First set of changes for mips16:
* config/mips/tm-mips.h (MIPS16_BIG_BREAKPOINT,
MIPS16_LITTLE_BREAKPOINT, BREAKPOINT_FROM_PC): Define.
(ABOUT_TO_RETURN): Call new function mips_about_to_return.
(mips_breakpoint_from_pc, mips_about_to_return): Declare.
* mem-break.c (memory_breakpoint_from_pc): New function.
(memory_insert_breakpoint, memory_remove_breakpoint): Use
memory_breakpoint_from_pc to determine breakpoint contents and size.
* target.h (memory_breakpoint_from_pc): Declare.
* monitor.c (monitor_insert_breakpoint): Use memory_breakpoint_from_pc
to determine size of breakpoint instruction.
* mips-tdep.c (mips32_decode_reg_save, mips16_decode_reg_save):
New helper functions for mips_find_saved_regs.
(mips_find_saved_regs): Recognize mips16 prologues.
(mips_addr_bits_remove): Strip off upper 32 bits of address
when target CPU is 32 bits but CORE_ADDR is 64 bits.
(mips_step_skips_delay): No branch delay slot on mips16.
(gdb_print_insn_mips): Disassemble mips16 code.
(mips_breakpoint_from_pc, mips_about_to_return): New functions.

27 years ago * ecoff.c (ecoff_build_symbols): Don't generate a local ECOFF
Ian Lance Taylor [Mon, 27 Jan 1997 22:41:43 +0000 (22:41 +0000)]
* ecoff.c (ecoff_build_symbols): Don't generate a local ECOFF
symbol for a common symbol.

27 years agoJanuary 23rd merge
Michael Meissner [Mon, 27 Jan 1997 21:34:50 +0000 (21:34 +0000)]
January 23rd merge

27 years ago * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
David Edelsohn [Mon, 27 Jan 1997 20:35:24 +0000 (20:35 +0000)]
* reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
* bfd-in2.h, libbfd.h: Regenerated.
* elf32-m32r.c: Add support for them.

27 years ago * internal.h (R_IPRMED, R_OPTCALL, R_OPTCALLX): Move definitions
Ian Lance Taylor [Mon, 27 Jan 1997 18:35:21 +0000 (18:35 +0000)]
* internal.h (R_IPRMED, R_OPTCALL, R_OPTCALLX): Move definitions
from here...
* i960.h (R_IPRMED, R_OPTCALL, R_OPTCALLX): ...to here.

27 years ago * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
Ian Lance Taylor [Mon, 27 Jan 1997 18:22:54 +0000 (18:22 +0000)]
* aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
* elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
start-sanitize-v850
* elf32-v850.c (v850_elf_final_link_relocate): Remove used
r_format and r_pcrel.  Always return a value.
end-sanitize-v850
* riscix.c (MY_final_link_callback): Define to dummy value.

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.