external/binutils.git
28 years ago * infrun.c (wait_for_inferior): Move "have_waited" label
Jeff Law [Wed, 24 Apr 1996 06:36:10 +0000 (06:36 +0000)]
    * infrun.c (wait_for_inferior): Move "have_waited" label
        outside of #ifdef conditionals.  Don't trash the wait status
        if we get a signal and the current instruction is nullified.
Fixes long standing problem on the PA (spurious SIGTRAPs)..

28 years ago * Makefile.in (VERSION): Bump version number to 4.16.1
Fred Fish [Tue, 23 Apr 1996 23:35:51 +0000 (23:35 +0000)]
* Makefile.in (VERSION): Bump version number to 4.16.1
* NEWS: Update for 4.16 release.

28 years ago * objdump.c (compare_symbols): Sort symbols whose names start with
Ian Lance Taylor [Tue, 23 Apr 1996 16:58:18 +0000 (16:58 +0000)]
* objdump.c (compare_symbols): Sort symbols whose names start with
  `.' after other symbols.  If no other decision can be made, sort
symbols by name.

28 years ago * Makefile.in (ALL_MODULES): Added all-inet.
Tom Tromey [Tue, 23 Apr 1996 15:41:14 +0000 (15:41 +0000)]
    * Makefile.in (ALL_MODULES): Added all-inet.
        (CROSS_CHECK_MODULES): Added check-inet.
        (INSTALL_MODULES): Added install-inet.
        (CLEAN_MODULES): Added clean-inet.
        (all-indent): New target.

        * configure.in (host_tools): Added inet.
        (native_only): Added inet.
        (noconfigdirs): Added inet.

28 years ago * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
David Edelsohn [Tue, 23 Apr 1996 01:33:32 +0000 (01:33 +0000)]
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
R_SPARC_GLOB_JMP.
* elf64-sparc.c (sparc64_elf_howto_table): Likewise.
Add entries for R_SPARC_[56].
(sparc_reloc_map): Add entries for R_SPARC_[56].

28 years ago * config/tc-sparc.c (in_bitfield_range): New static function.
David Edelsohn [Tue, 23 Apr 1996 01:25:42 +0000 (01:25 +0000)]
* config/tc-sparc.c (in_bitfield_range): New static function.
(sparc_ip): New cases X,Y.  Use SPARC_OPCODE_ARCH_V9_P.
(md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
(md_apply_fix): New cases BFD_RELOC_SPARC_[56].
(tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].

28 years ago * gas/sparc/sparc.exp: Run them.
David Edelsohn [Mon, 22 Apr 1996 23:50:07 +0000 (23:50 +0000)]
* gas/sparc/sparc.exp: Run them.

28 years agoRun splet tests.
David Edelsohn [Mon, 22 Apr 1996 23:49:42 +0000 (23:49 +0000)]
Run splet tests.

28 years ago * gas/sparc/splet.[ds]: New tests for sparclet extensions.
David Edelsohn [Mon, 22 Apr 1996 23:46:24 +0000 (23:46 +0000)]
* gas/sparc/splet.[ds]: New tests for sparclet extensions.

28 years ago * monitor.h: Clean up comment formatting.
Stan Shebs [Mon, 22 Apr 1996 23:46:02 +0000 (23:46 +0000)]
* monitor.h: Clean up comment formatting.
(current_monitor): Remove decl.
(LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
(push_monitor, SREC_SIZE): Remove.
* monitor.c: Expand old macro into current_monitor derefs
everywhere.
* remote-os9k.c (current_monitor): Remove definition.

28 years agoNew testcase for sparclet extensions.
David Edelsohn [Mon, 22 Apr 1996 23:44:44 +0000 (23:44 +0000)]
New testcase for sparclet extensions.

28 years agoConsistently use address <fnf@cygnus.com> for entries.
Fred Fish [Mon, 22 Apr 1996 23:11:03 +0000 (23:11 +0000)]
Consistently use address <fnf@cygnus.com> for entries.

28 years ago Optimize linking of stabs in sections as used in ELF and COFF.
Ian Lance Taylor [Mon, 22 Apr 1996 22:35:53 +0000 (22:35 +0000)]
Optimize linking of stabs in sections as used in ELF and COFF.
* stabs.c: New file.
* libbfd-in.h (_bfd_link_section_stabs): Declare.
(_bfd_write_section_stabs): Declare.
(_bfd_write_stab_strings): Declare.
* libbfd.h: Rebuild.
* libcoff-in.h (struct coff_section_tdata): Add stab_info field.
(struct coff_link_hash_table): Add stab_info field.
* libcoff.h: Rebuild.
* cofflink.c (_bfd_coff_link_hash_table_init): Initialize
stab_info field.
(coff_link_add_symbols): Call _bfd_link_section_stabs if
appropriate.
(_bfd_coff_final_link): Write out stab strings hash table.
(_bfd_coff_link_input_bfd): Handle optimized stabs sections.
* coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
hash table.
* elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
(struct bfd_elf_section_data): Add stab_info field.
* elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
field.
* elflink.h (elf_link_add_object_symbols): If appropriate, call
_bfd_link_section_stabs.
(elf_bfd_final_link): Write out stab strings hash table.
(elf_link_input_bfd): Handle optimized stabs sections.
* reloc.c (_bfd_final_link_relocate): Check address against
_raw_size rather than _cooked_size.
* Makefile.in: Rebuild dependencies.
(BFD_LIBS): Add stabs.o
(BFD_LIBS_CFILES): Add stabs.c.

28 years ago * corefile.c (specify_exec_file_hook): Allow arbitrary number of
Mark Alexander [Mon, 22 Apr 1996 22:31:10 +0000 (22:31 +0000)]
* corefile.c (specify_exec_file_hook): Allow arbitrary number of
  hooks.
(call_extra_exec_file_hooks): New function.
* h8300-tdep.c: Lint; add .h files to provide missing declarations,
remove unused variables.
(set_machine_hook): New function.
(_initialize_h8300m): Initialize it.

PR 8849.

28 years ago * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
Ian Lance Taylor [Mon, 22 Apr 1996 21:32:58 +0000 (21:32 +0000)]
* ldlang.c (lang_size_sections): If _cooked_size is not 0, then
don't clobber it when not relaxing.

* ld.h (ld_config_type): Remove traditional_format field.
* ldmain.c (main): Use link_info.traditional_format rather than
config.traditional_format.
* ldlang.c (ldlang_open_output): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
* mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.

28 years ago * coffgen.c (coff_renumber_symbols): Correct handling of
Ian Lance Taylor [Mon, 22 Apr 1996 19:10:10 +0000 (19:10 +0000)]
* coffgen.c (coff_renumber_symbols): Correct handling of
BSF_NOT_AT_END common symbols.

28 years ago * ldlang.c (wild_doit): Discard debugging sections if we are
Ian Lance Taylor [Mon, 22 Apr 1996 16:22:52 +0000 (16:22 +0000)]
* ldlang.c (wild_doit): Discard debugging sections if we are
stripping debugging information.

28 years ago * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
Ian Lance Taylor [Mon, 22 Apr 1996 16:08:18 +0000 (16:08 +0000)]
* emulparams/z8002.sh (ARCH): Set to z8002, not z8k.

28 years ago * coff-ppc.c (record_toc): Add cast to avoid warning.
Ian Lance Taylor [Fri, 19 Apr 1996 23:24:41 +0000 (23:24 +0000)]
* coff-ppc.c (record_toc): Add cast to avoid warning.
(ppc_allocate_toc_section): Likewise.
(coff_ppc_relocate_section): Remove ANSI C string concatenation.
(ppc_coff_reloc_type_lookup): Remove unreached code.
* coffcode.h (coff_write_object_contents): Don't take the address
of an array.
* peicode.h (pe_print_idata): Add casts to avoid warning.
(pe_print_edata): Likewise.
(pe_print_reloc): Remove ANSI C string concatenation.

28 years ago * configure.in: Don't configure libgloss if we are not configuring
Ian Lance Taylor [Fri, 19 Apr 1996 19:36:44 +0000 (19:36 +0000)]
* configure.in: Don't configure libgloss if we are not configuring
newlib.

28 years ago * remote-mips.c (encoding): Don't specify size, to avoid bug in
Ian Lance Taylor [Fri, 19 Apr 1996 19:05:00 +0000 (19:05 +0000)]
* remote-mips.c (encoding): Don't specify size, to avoid bug in
SunOS native compiler.

28 years agoFri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Fri, 19 Apr 1996 14:53:16 +0000 (14:53 +0000)]
Fri Apr 19 15:48:24 1996  James G. Smith  <jsmith@cygnus.co.uk>

* gencode.c (process_instructions): Ensure FP ABS instruction
  recognised.
* interp.c (AbsoluteValue): Add routine. Also provide simple PMON
  system call support.

28 years ago * monitor.c: Use int rather than LONGEST for values, since
Stan Shebs [Fri, 19 Apr 1996 01:55:57 +0000 (01:55 +0000)]
* monitor.c: Use int rather than LONGEST for values, since
the formatting strings are not prepared to accept long longs.
PR 9432

28 years ago * config/obj-coff.c: BFD_ASSEMBLER:
Ian Lance Taylor [Thu, 18 Apr 1996 23:00:29 +0000 (23:00 +0000)]
* config/obj-coff.c: BFD_ASSEMBLER:
  (coff_last_bf): New static variable.
(coff_frob_symbol): Set endndx of a .bf symbol.
Non BFD_ASSEMBLER:
(obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
(last_bfP): New static variable.
(yank_symbols): Set endndx of a .bf symbol.
PR 9467.

28 years ago * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
Ian Lance Taylor [Thu, 18 Apr 1996 22:55:54 +0000 (22:55 +0000)]
* libcoff-in.h (struct coff_final_link_info): Add last_bf_index
and last_bf fields.
* libcoff.h: Rebuild.
* coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
symbols.
(coff_swap_aux_out): Likewise.
* peicode.h (coff_swap_aux_in): Likewise.
(coff_swap_aux_out): Likewise.
* coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
symbols.
* cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
field.
(_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
Fix up .bf endndx link fields.
* coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
field.
* xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
symbols.
PR 9467.

28 years ago * dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
Ian Lance Taylor [Thu, 18 Apr 1996 20:03:52 +0000 (20:03 +0000)]
* dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
* Makefile.in: Rebuild dependencies.
(dep.sed): Substitute $(BFDDIR) for @BFDDIR@.

28 years agoAdd -le/-be/-s from Solaris.
Michael Meissner [Thu, 18 Apr 1996 15:56:03 +0000 (15:56 +0000)]
Add -le/-be/-s from Solaris.

28 years ago * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
David Edelsohn [Thu, 18 Apr 1996 03:18:20 +0000 (03:18 +0000)]
* arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.

28 years ago * configure.in: Don't configure libgloss for unsupported
Rob Savoye [Thu, 18 Apr 1996 01:31:49 +0000 (01:31 +0000)]
* configure.in: Don't configure libgloss for unsupported
architectures.

28 years ago * saprc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
David Edelsohn [Wed, 17 Apr 1996 21:21:09 +0000 (21:21 +0000)]
* saprc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.

28 years ago * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
Ian Lance Taylor [Wed, 17 Apr 1996 21:09:34 +0000 (21:09 +0000)]
* xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.

28 years agoupdate from Andrew
Michael Meissner [Wed, 17 Apr 1996 20:09:36 +0000 (20:09 +0000)]
update from Andrew

28 years agoUpdate for Solaris
Michael Meissner [Wed, 17 Apr 1996 19:05:20 +0000 (19:05 +0000)]
Update for Solaris

28 years ago * linker.c (_bfd_generic_link_add_one_symbol): When calling the
Ian Lance Taylor [Wed, 17 Apr 1996 17:21:52 +0000 (17:21 +0000)]
* linker.c (_bfd_generic_link_add_one_symbol): When calling the
callback routines, pass h->root.string rather than name, in case
copy is true and name is transient.

28 years ago * read.c (s_space): Support non-constant fill value. Handle fill
Ian Lance Taylor [Wed, 17 Apr 1996 16:33:21 +0000 (16:33 +0000)]
* read.c (s_space): Support non-constant fill value.  Handle fill
value correctly for a size other than 1.
PR 9474.

28 years ago * tests1.{ch,exp}: Tets case modified and enhanced.
Wilfried Moser [Wed, 17 Apr 1996 08:24:36 +0000 (08:24 +0000)]
    * tests1.{ch,exp}: Tets case modified and enhanced.

28 years ago * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
Stu Grossman [Wed, 17 Apr 1996 00:48:09 +0000 (00:48 +0000)]
* corelow.c (add_to_thread_list):  Make sure reg_sect is non-null
before de-referencing it.  Prevents deref of NULL pointer if core
file lacks .reg section.
* defs.h:  Rename floatformat_{to from}_long_double to
floatformat_{to from}_doublest.  Get rid of FLOATFORMAT_{TO
FROM}... macros.
* findvar.c (extract_floating store_floating):  Change all refs to
FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
* utils.c:  Change floatformat_{to from}_long_double to
floatformat_{to from}_doublest cuz the new routines will use
whatever size (double or long double) is appropriate.
* config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
REGISTER_CONVERT_TO_RAW):  Change FLOATFORMAT... macros to
floatformat... routine calls.

28 years ago * elfcore.h: Add support for core files with multiple threads.
Stu Grossman [Tue, 16 Apr 1996 23:39:54 +0000 (23:39 +0000)]
* elfcore.h:  Add support for core files with multiple threads.
(Primarily for Solaris.)

28 years ago * config/tc-arm.c (my_get_float_expression): Update call to
David Edelsohn [Tue, 16 Apr 1996 22:18:20 +0000 (22:18 +0000)]
* config/tc-arm.c (my_get_float_expression): Update call to
gen_to_words, X_PRECISION changed from 6 to 5.

28 years ago * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
Ian Lance Taylor [Tue, 16 Apr 1996 21:21:26 +0000 (21:21 +0000)]
* aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
section->orelocation is NULL.

28 years ago * ldexp.c (fold_binary): Correct handling of subtraction with
Ian Lance Taylor [Tue, 16 Apr 1996 20:53:55 +0000 (20:53 +0000)]
* ldexp.c (fold_binary): Correct handling of subtraction with
absolute values.
(fold_name): Permit symbols in lang_allocating_phase_enum.

28 years ago * rdcoff.c: New file.
Ian Lance Taylor [Tue, 16 Apr 1996 17:53:58 +0000 (17:53 +0000)]
* rdcoff.c: New file.
* rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour
and no stabs were found.
* budbg.h (parse_coff): Declare.
* Makefile.in: Rebuild dependencies.
(CFILES): Add rdcoff.c.
(DEBUG_OBJS): Add rdcoff.o.

28 years ago * coffgen.c (bfd_coff_get_syment): New function.
Ian Lance Taylor [Tue, 16 Apr 1996 17:46:54 +0000 (17:46 +0000)]
* coffgen.c (bfd_coff_get_syment): New function.
(bfd_coff_get_auxent): New function.
* bfd-in.h (bfd_coff_get_syment): Declare.
(bfd_coff_get_auxent): Declare.
* bfd-in2.h: Rebuild.

28 years agoAdd clean-apache rule
Michael Meissner [Tue, 16 Apr 1996 15:19:51 +0000 (15:19 +0000)]
Add clean-apache rule

28 years agoAdd Solaris/linux support
Michael Meissner [Tue, 16 Apr 1996 14:48:02 +0000 (14:48 +0000)]
Add Solaris/linux support

28 years agoAdd -m{,no-}regnames support; Add Solaris/linux support
Michael Meissner [Tue, 16 Apr 1996 14:41:45 +0000 (14:41 +0000)]
Add -m{,no-}regnames support; Add Solaris/linux support

28 years ago * stabsread.c (read_type): Move handling of '@' from type
Per Bothner [Mon, 15 Apr 1996 23:45:51 +0000 (23:45 +0000)]
* stabsread.c (read_type):  Move handling of '@' from type
number handling to handling of types proper (as emitted by gcc!).
For typedefs, allocate the typedef type before reading its
definition, to properly handling recursive types.
This fixes PR 9434.

28 years ago * elf32-mips.c (struct mips_hi16): Define.
Ian Lance Taylor [Mon, 15 Apr 1996 23:10:52 +0000 (23:10 +0000)]
* elf32-mips.c (struct mips_hi16): Define.
(mips_hi16_addr, mips_hi16_addend): Remove.
(mips_hi16_list): New static variable.
(mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
(mips_elf_lo16_reloc): Process mips_hi16_list.
(mips_elf_relocate_section): Permit an arbitrary number of HI16
relocs before the associated LO16 reloc.

28 years ago * config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
Ian Lance Taylor [Mon, 15 Apr 1996 23:01:50 +0000 (23:01 +0000)]
* config/tc-mips.c (mips_frob_file): Permit multiple %hi relocs to
be associated with a single %lo reloc.

28 years ago * nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
David Edelsohn [Mon, 15 Apr 1996 22:57:02 +0000 (22:57 +0000)]
* nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
(link_inputs): Update call to choose_temp_base.

28 years ago * gas/mips/la.d: Updated for April 5 MIPS assembler changes.
Ian Lance Taylor [Mon, 15 Apr 1996 21:29:27 +0000 (21:29 +0000)]
* gas/mips/la.d: Updated for April 5 MIPS assembler changes.
* gas/mips/lb.d, gas/mips/ld.d, gas/mips/sb.d: Likewise.
* gas/mips/uld.d, gas/mips/ulh.d, gas/mips/ulw.d: Likewise.
* gas/mips/usd.d, gas/mips/ush.d, gas/mips/usw.d: Likewise.

28 years ago * Makefile.in (ALL_MODULES): Include all-apache.
Tom Tromey [Mon, 15 Apr 1996 21:14:30 +0000 (21:14 +0000)]
* Makefile.in (ALL_MODULES): Include all-apache.
(CROSS_CHECK_MODULES): Include check-apache.
(INSTALL_MODULES): Include install-apache.
(all-apache): New target.

* configure.in: Added apache everywhere perl is seen.

28 years ago * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
Rob Savoye [Mon, 15 Apr 1996 20:53:00 +0000 (20:53 +0000)]
* scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
in m68k/crt0.S without things blowing up.

28 years agoAdd clean-{module} support
Michael Meissner [Mon, 15 Apr 1996 19:12:30 +0000 (19:12 +0000)]
Add clean-{module} support

28 years ago * ch-exp.c (calculate_array_length): Fix prototype.
Jeff Law [Mon, 15 Apr 1996 17:17:19 +0000 (17:17 +0000)]
    * ch-exp.c (calculate_array_length): Fix prototype.
So gdb will build with non-ansi compilers.

28 years ago * config/tc-mips.c (load_address): Cast X_add_number to valueT
Ian Lance Taylor [Mon, 15 Apr 1996 16:28:19 +0000 (16:28 +0000)]
* config/tc-mips.c (load_address): Cast X_add_number to valueT
before comparing against MAX_GPREL_OFFSET, so that negative
numbers are handled correctly.
(macro): Likewise.

28 years ago * remote-nindy.c (nindy_open): Acquire more target state so that
Stu Grossman [Sat, 13 Apr 1996 21:33:59 +0000 (21:33 +0000)]
* remote-nindy.c (nindy_open):  Acquire more target state so that
user can attach to a previously running program.
* (nindy_fetch_registers nindy_store_registers):  Get rid of fp
conversion code.  That's all handled in {extract store}_floating
now.
* utils.c (floatformat_to_double):  Don't bias exponent when
handling zero's, denorms or NaNs.
* config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
REGISTER_CONVERT_TO_RAW):  Change to using DOUBLST and
FLOATFORMAT_TO/FROM_DOUBLEST macros.
* config/i960/tm-nindy960.h:  Undefine
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
REGISTER_CONVERTIBLE.  These are no longer necessary now that all
the magic happens in extract/store_floating.

28 years ago * eval.c (evaluate_subexp_standard): Report error when attempting to
Peter Schauer [Sat, 13 Apr 1996 10:01:49 +0000 (10:01 +0000)]
* eval.c (evaluate_subexp_standard):  Report error when attempting to
evaluate subscripts for types which cannot be subscripted.

* valarith.c (value_x_binop, value_x_unop):  Add noside parameter.
Return a zero value with the return type of the member function
if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
function.
* values.h (value_x_binop, value_x_unop):  Update prototypes
accordingly.
* eval.c (evaluate_subexp_standard):  Update all callers of
value_x_binop, value_x_unop accordingly.

* valarith.c (value_neg, value_complement):  Perform ANSI C/C++
integral promotion on operands.

28 years ago * README: Update for 4.16 release.
Fred Fish [Sat, 13 Apr 1996 04:38:55 +0000 (04:38 +0000)]
* README: Update for 4.16 release.
* configure.in (AC_CHECK_FUNCS): Also check for sbrk.
* configure: Regenerate with autoconf.
* config.in: Regenerate with autoheader.
* main.c (main): Only use sbrk() when HAVE_SBRK is defined.
* top.c (command_loop): Ditto.

28 years ago * scripttempl/m68kcoff.sc: Remove default address for .data so
Rob Savoye [Fri, 12 Apr 1996 22:47:01 +0000 (22:47 +0000)]
* scripttempl/m68kcoff.sc: Remove default address for .data so
.text, .data, and .bss are all sequential.

28 years ago * compile.c (sim_load): Re-allocate memory for the simulator
Jeff Law [Fri, 12 Apr 1996 22:42:03 +0000 (22:42 +0000)]
    * compile.c (sim_load): Re-allocate memory for the simulator
        here.
HMSE.

28 years ago * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
Stu Grossman [Fri, 12 Apr 1996 16:53:08 +0000 (16:53 +0000)]
* defs.h:  Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
defaults for bi-endian targets.  Replace function pointers for
floatformat routines with macros.  No need for these to be runtime
selectable.
* findvar.c:  Get rid of floatformat function pointers.  Use
macros in extract_floating and store_floating.
* remote-nindy.c (nindy_fetch_registers nindy_store_registers):
Use floatformat macros.

28 years ago * compile.c (sim_resume): Fix and simplify overflow and carry
Jeff Law [Fri, 12 Apr 1996 15:38:08 +0000 (15:38 +0000)]
    * compile.c (sim_resume): Fix and simplify overflow and carry
        handling for 32bit ALU insns.

28 years ago * config/nm-m3.h (ATTACH_NO_WAIT): Define.
Fred Fish [Fri, 12 Apr 1996 06:15:16 +0000 (06:15 +0000)]
* config/nm-m3.h (ATTACH_NO_WAIT): Define.

28 years ago From: Miles Bader <miles@gnu.ai.mit.edu>
Fred Fish [Fri, 12 Apr 1996 06:14:46 +0000 (06:14 +0000)]
From: Miles Bader  <miles@gnu.ai.mit.edu>
* configure.in (AC_CHECK_HEADERS): check for endian.h.
Use AC_CHECK_TOOL to find AR & RANLIB.  Add AC_PROG_AWK.
Add host & target cases for i[345]86-*-gnu*.
* config.in: Regenerate with autoheader.
* configure: Regenerate with autoconf.
* Makefile.in (AR, AWK): Set from corresponding autoconf substs.
(init.c): Don't scan mig-generated files.
* defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
* config/nm-m3.h (ATTACH_NO_WAIT): Define.
* infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
  rather than "#ifndef MACH".

28 years ago * remote.c (remotewritesize): New GDB variable, controls size
Stan Shebs [Fri, 12 Apr 1996 01:58:39 +0000 (01:58 +0000)]
* remote.c (remotewritesize): New GDB variable, controls size
of memory packets sent to the target.

28 years ago * config/tc-sparc.c (last_insn): New static variable.
Ian Lance Taylor [Thu, 11 Apr 1996 21:35:01 +0000 (21:35 +0000)]
* config/tc-sparc.c (last_insn): New static variable.
(md_assemble): Warn about putting floating point branches in a
delay slot.  If architecture is less than v9, insert NOP
instructions between floating point instructions and floating
point branches.  (The SunOS assembler does both these operations.)
Save the last instruction opcode.
(sparc_ip): Add pinsn parameter.  Change caller.
PR 355.

28 years ago * sparc-opc.c: Set F_FBR on floating point branch instructions.
Ian Lance Taylor [Thu, 11 Apr 1996 21:31:03 +0000 (21:31 +0000)]
* sparc-opc.c: Set F_FBR on floating point branch instructions.
Set F_FLOAT on other floating point instructions.
PR 355.

28 years ago * sparc.h (F_FLOAT, F_FBR): Define.
Ian Lance Taylor [Thu, 11 Apr 1996 21:28:49 +0000 (21:28 +0000)]
* sparc.h (F_FLOAT, F_FBR): Define.
PR 355.

28 years ago * dcache.c: Add prototypes. Make many functions static.
Stu Grossman [Thu, 11 Apr 1996 21:17:45 +0000 (21:17 +0000)]
* dcache.c:  Add prototypes.  Make many functions static.
* (dcache_peek dcache_fetch dcache_poke):  Make dcache_fetch and
dcache_poke call dcache_xfer_memory directly in order to fix
problems with turning off dcache.  dcache_peek is now unnecessary,
so it goes away.

* defs.h:  Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
to a struct floatformat.  This allows for better handling of
targets whose floating point formats differ from the host by more
than just byte order.
* (floatformat_to_long_double floatformat_from_long_double):
Prototypes for new functions in utils.c.
* (floatformat_to_doublest floatformat_from_doublest):  Prototypes
for pointers to floating point conversion functions.  The actual
function uses either double or long double if the host supports it.
* findvar.c (floatformat_to_doublest floatformat_from_doublest):
Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
* (extract_floating store_floating):  Rewrite.  Now, if host fp
format is the same as the target, we just do a copy.  Otherwise,
we call floatformat_{to from}_doublest.
* remote-nindy.c (nindy_xfer_inferior_memory):  Change param
`write' to `should_write'.
* utils.c (floatformat_to_long_double
floatformat_from_long_double):  New routines that implement long
double versions of functions in libiberty/floatformat.c.
* config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT):  Define this for
i960 extended real (80 bit) numbers.
* nindy-share/nindy.c (ninMemGet ninMemPut):  Return number of bytes
actually read or written.

28 years agofix typo in comment
Ian Lance Taylor [Thu, 11 Apr 1996 16:44:19 +0000 (16:44 +0000)]
fix typo in comment

28 years ago * config/tc-m68k.c (md_estimate_size_before_relax): Correct check
Ian Lance Taylor [Thu, 11 Apr 1996 16:41:48 +0000 (16:41 +0000)]
* config/tc-m68k.c (md_estimate_size_before_relax): Correct check
for byte jump to next instruction to skip empty frags.
PR 7044.

28 years ago * scripttempl/m68kcoff.sc: Remove regions and simplify.
Ian Lance Taylor [Thu, 11 Apr 1996 16:07:40 +0000 (16:07 +0000)]
* scripttempl/m68kcoff.sc: Remove regions and simplify.

28 years agoPropagating 96q2 fix in progressive for bug 12 back into devo
Marilyn Sander [Thu, 11 Apr 1996 04:44:32 +0000 (04:44 +0000)]
Propagating 96q2 fix in progressive for bug 12 back into devo

28 years ago * config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
Ian Lance Taylor [Wed, 10 Apr 1996 20:50:02 +0000 (20:50 +0000)]
* config/tc-alpha.c (alpha_ip): If we are going to call emit_add64
for addq with a 16 bit signed value, just emit a lda instruction
instead.
PR 6982.

28 years ago * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
Jeff Law [Wed, 10 Apr 1996 20:40:24 +0000 (20:40 +0000)]
    * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
        bytes of the address space.  Put data from the ".eight" sections
        into the 8-bit area.
        * scripttempl/h8300h.sc: Likewise.
8-bit area changes for hmse.

28 years ago * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
Jeff Law [Wed, 10 Apr 1996 20:33:58 +0000 (20:33 +0000)]
    * config/tc-h8300.c (do_a_fix_imm): Don't cut off high bits
        of a 32bit operand.
Fix for mov32bug.s.

28 years ago * gas/h8300/mov32bug.s: New test.
Jeff Law [Wed, 10 Apr 1996 20:26:19 +0000 (20:26 +0000)]
    * gas/h8300/mov32bug.s: New test.
        * gas/h8300/h8300.exp: Run it.
Testcase for c-torture failure caused by a gas bug.

28 years ago * versados.c (versados_scan): Check bfd_alloc return value.
Ian Lance Taylor [Wed, 10 Apr 1996 18:21:08 +0000 (18:21 +0000)]
* versados.c (versados_scan): Check bfd_alloc return value.
(versados_object_p): Check all bfd_read return values.  Require
that lang field be less than 10, to avoid confusion with Intel Hex
files.

28 years ago * libaout.h (WRITE_HEADERS): Write out the relocs even if there
Ian Lance Taylor [Wed, 10 Apr 1996 18:11:00 +0000 (18:11 +0000)]
* libaout.h (WRITE_HEADERS): Write out the relocs even if there
aren't any symbols.
* aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
not 0, for an absolute symbol.
(NAME(aout,swap_ext_reloc_out)): Likewise.
PR 7387.

28 years ago * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
Ian Lance Taylor [Wed, 10 Apr 1996 17:01:35 +0000 (17:01 +0000)]
* ihex.c (ihex_scan): Accept a length of 4 for record type 5.
(ihex_write_object_contents): For a large start address, output
the full 32 bit address in record type 5.
PR 9422.

28 years ago * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
Wilfried Moser [Wed, 10 Apr 1996 10:01:30 +0000 (10:01 +0000)]
    * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
        (calculate_array_length): Move function from here ...

        * ch-exp.c (calculate_array_length): ... to here.
        (parse_primval): If we have a symbol with an array type
        and the length is 0, call calculate_array_length.

28 years agoWed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Wed, 10 Apr 1996 08:53:24 +0000 (08:53 +0000)]
Wed Apr 10 09:51:38 1996  James G. Smith  <jsmith@cygnus.co.uk>

* interp.c (sim_do_command): Complain if callback structure not
  initialised.

28 years ago * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
Ian Lance Taylor [Wed, 10 Apr 1996 04:26:18 +0000 (04:26 +0000)]
* ieee.c (ieee_write_byte): Change second parameter from bfd_byte
to int to avoid promotion problems in prototype.

28 years ago * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
David Edelsohn [Tue, 9 Apr 1996 21:11:51 +0000 (21:11 +0000)]
* emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
Pass $ARCH to ldfile_set_output_arch instead of setting
ldfile_output_architecture directly.

28 years ago * ld.texinfo: Rearrange option documentation.
Ian Lance Taylor [Tue, 9 Apr 1996 20:36:27 +0000 (20:36 +0000)]
* ld.texinfo: Rearrange option documentation.

28 years agotweak last change
Ian Lance Taylor [Tue, 9 Apr 1996 19:30:06 +0000 (19:30 +0000)]
tweak last change

28 years ago * lexsup.c (ld_options): New static array.
Ian Lance Taylor [Tue, 9 Apr 1996 19:20:04 +0000 (19:20 +0000)]
* lexsup.c (ld_options): New static array.
(parse_args): Build shortopts and longopts from ld_options array.
(help): New static function.
* ldver.h (help): Don't declare.
* ldver.c (ldversion): Reindent.
(help): Remove.

28 years agoPut .init/.fini in correct places.
Michael Meissner [Tue, 9 Apr 1996 18:23:54 +0000 (18:23 +0000)]
Put .init/.fini in correct places.

28 years ago * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
Ian Lance Taylor [Tue, 9 Apr 1996 16:19:51 +0000 (16:19 +0000)]
* ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.

28 years ago * configure.host: Use ${srcdir} when looking for picfrag.
Ian Lance Taylor [Tue, 9 Apr 1996 16:09:14 +0000 (16:09 +0000)]
* configure.host: Use ${srcdir} when looking for picfrag.

28 years ago * configure.host: Switch on ${libdir}, not $(libdir). From
Ian Lance Taylor [Tue, 9 Apr 1996 16:01:26 +0000 (16:01 +0000)]
* configure.host: Switch on ${libdir}, not $(libdir).  From
alan@spri.levels.unisa.edu.au (Alan Modra).

28 years ago * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
Ian Lance Taylor [Tue, 9 Apr 1996 15:46:41 +0000 (15:46 +0000)]
* aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
entry point, not just for DYNAMIC objects.
* sunos.c (sunos_add_dynamic_symbols): Always call
sunos_create_dynamic_sections.  If called with a non DYNAMIC
object, don't do anything else.
(sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.

28 years ago * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
Wilfried Moser [Tue, 9 Apr 1996 08:28:50 +0000 (08:28 +0000)]
    * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
        Add some checks for powerset compatibility.

        * valops.c (value_slice): Use lowbound instead of lowerbound for
        call to slice_range_type to get correct bounds.

28 years ago * gch981.{ch,exp}, gch1041.{ch,exp}: New test cases.
Wilfried Moser [Tue, 9 Apr 1996 08:19:58 +0000 (08:19 +0000)]
    * gch981.{ch,exp}, gch1041.{ch,exp}: New test cases.

28 years ago * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
Fred Fish [Tue, 9 Apr 1996 06:09:33 +0000 (06:09 +0000)]
* Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
dependencies.
* scm-lang.c (gdb_string.h): Include.
* objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
call to correct type (char *).
* cp-valprint.c (cp_print_static_field): Ditto.
* somsolib.c (som_solib_create_inferior_hook): Add a declaration
for external find_unwind_entry function (from hppa-tdep.c).
* remote-pa.c (remote_write_bytes, remote_read_bytes): Change
type of second arg to "char *" to be type compatible with
dcache.
(remote_wait): Cast second arg to strtol to correct type.
* hppa-tdep.c (compare_unwind_entries): Change argument types to
"const void *" to be type compatible with qsort, and then
assign to local args prior to use.

28 years ago * compile.c (sim_resume): Fix overflow checks for ALU insns.
Jeff Law [Tue, 9 Apr 1996 05:57:15 +0000 (05:57 +0000)]
    * compile.c (sim_resume): Fix overflow checks for ALU insns.
So that int-compare.c passes.

28 years ago * infptrace.c (kill_inferior): Remove call to "kill"; update
Jeff Law [Mon, 8 Apr 1996 21:34:12 +0000 (21:34 +0000)]
    * infptrace.c (kill_inferior): Remove call to "kill"; update
        comments.
The "kill" call was declared bogus years ago and is causing problems
on hpux10 (PR 9410).

28 years agoModified remote-e7000.c so that :23 isn't appended to the target port
Geoffrey Noer [Mon, 8 Apr 1996 21:08:38 +0000 (21:08 +0000)]
Modified remote-e7000.c so that :23 isn't appended to the target port
if __WIN32__ is defined.  This is necessary to make e7000 support work
for WinGDB.

28 years agoAdd 860 specific registers
Michael Meissner [Mon, 8 Apr 1996 21:07:28 +0000 (21:07 +0000)]
Add 860 specific registers