binutils-gdb.git
29 years ago * ldmain.c (struct warning_callback_info): Define.
Ian Lance Taylor [Tue, 12 Sep 1995 20:34:49 +0000 (20:34 +0000)]
* ldmain.c (struct warning_callback_info): Define.
(warning_callback): Add new parameter symbol.  Call
warning_find_reloc to try to find the section and VMA.
(warning_find_reloc): New static function.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass NULL as symbol parameter to warning callback.

29 years ago * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
Ian Lance Taylor [Tue, 12 Sep 1995 20:31:29 +0000 (20:31 +0000)]
* linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
warning callback.

29 years agoThu Sep 7 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 12 Sep 1995 19:46:03 +0000 (19:46 +0000)]
Thu Sep  7 12:50:49 1995  steve chamberlain  <sac@slash.cygnus.com>

* scripttemp/pe.sc:  Allow both spellings of .ctors/.dtors.
Start .text section on the right boundary. Always align
stabs.

29 years ago * ar.c (replace_members): Don't call write_archive if nothing
Ian Lance Taylor [Tue, 12 Sep 1995 19:31:03 +0000 (19:31 +0000)]
* ar.c (replace_members): Don't call write_archive if nothing
changed.

29 years agoThu Sep 7 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 12 Sep 1995 19:28:30 +0000 (19:28 +0000)]
Thu Sep  7 12:45:34 1995  steve chamberlain  <sac@slash.cygnus.com>

* coffcode.h (coff_compute_section_file_positions): Keep the
raw size safe.
(coff_write_object_contents): Remember if it's a relocatable
file.
* libcoff-in.h (pe_data_type): New member 'has_reloc_section'
* peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
if relocatable file. Swap out saved raw size.

29 years ago * dep-in.sed: Remove config.h from generated dependencies.
Ian Lance Taylor [Tue, 12 Sep 1995 19:19:44 +0000 (19:19 +0000)]
* dep-in.sed: Remove config.h from generated dependencies.

29 years ago * ld.texinfo: Clarify -L option.
Ian Lance Taylor [Tue, 12 Sep 1995 19:01:48 +0000 (19:01 +0000)]
* ld.texinfo: Clarify -L option.

29 years ago * sunos.c (sunos_slurp_dynamic_symtab): New static function,
Ian Lance Taylor [Tue, 12 Sep 1995 18:59:24 +0000 (18:59 +0000)]
* sunos.c (sunos_slurp_dynamic_symtab): New static function,
broken out of sunos_canonicalize_dynamic_symtab.
(sunos_canonicalize_dynamic_symtab): Call new function
sunos_slurp_dynamic_symtab.
(sunos_add_dynamic_symbols): Add three new parameters.  Return the
dynamic symbol table to the caller.
* aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
callback to override the symbols being read.
* libaout.h (struct aout_backend_data): Add three new parameters
to add_dynamic_symbols callback.

29 years ago * config/tc-arm.c (md_atof): Fix debugging printf, and leave it
David Edelsohn [Tue, 12 Sep 1995 17:39:15 +0000 (17:39 +0000)]
* config/tc-arm.c (md_atof): Fix debugging printf, and leave it
out by default.

29 years ago * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
Ian Lance Taylor [Tue, 12 Sep 1995 16:39:12 +0000 (16:39 +0000)]
* objdump.c (disassemble_data): Add casts to avoid gcc warnings.

29 years ago * ldlang.c (lang_one_common): Add cast to avoid warning.
Ian Lance Taylor [Tue, 12 Sep 1995 16:25:51 +0000 (16:25 +0000)]
* ldlang.c (lang_one_common): Add cast to avoid warning.
(topower): Likewise.  Also, reindent.
* ldwrite.c (clone_section): Change i to unsigned int.
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
cast to avoid warning.

29 years ago Extensive minor changes to avoid various gcc warnings. Also:
Ian Lance Taylor [Tue, 12 Sep 1995 16:23:25 +0000 (16:23 +0000)]
Extensive minor changes to avoid various gcc warnings.  Also:
* Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
* archures.c (bfd_arch_info_type): Change mach field from long to
unsigned long.
(bfd_lookup_arch): Change machine parameter from long to unsigned
long.

29 years ago * internal.h (struct internal_syment): Change n_numaux field from
Ian Lance Taylor [Tue, 12 Sep 1995 16:08:51 +0000 (16:08 +0000)]
* internal.h (struct internal_syment): Change n_numaux field from
char to unsigned char.

29 years ago * NEWS: Add information about remote target caching.
Fred Fish [Tue, 12 Sep 1995 00:26:17 +0000 (00:26 +0000)]
* NEWS:  Add information about remote target caching.

29 years ago * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
Fred Fish [Mon, 11 Sep 1995 23:49:34 +0000 (23:49 +0000)]
* gdb.base/scope.exp (text_at_main):  Add "hppa*-*-hpux*"
xfails when not gcc compiled for "print foo::funclocal".
(test_at_foo):  Add "hppa*-*-hpux*" xfails when not gcc compiled for:
"print foo::funclocal at foo",
"print 'scope1.c'::foo::funclocal at foo",
"print foo::funclocal_bss at foo",
"print 'scope1.c'::foo::funclocal_bss at foo",
"print foo::funclocal_ro at foo",
"print 'scope1.c'::foo::funclocal_ro at foo",
"print bar::funclocal at foo" and
"print 'scope1.c'::bar::funclocal at foo".
(test_at_bar):  Add "hppa*-*-hpux*" xfails when not
gcc compiled for "print foo::funclocal at bar".
Expand all messages to ensure that they identify that
the test is at bar().
* gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
gcc compiled for:
"ptype on opaque struct pointer (statically)",
"ptype on opaque struct tagname (statically)",
"ptype on opaque struct pointer (dynamically) 1",
"ptype on opaque struct tagname (dynamically) 1",
"ptype on opaque struct pointer (dynamically) 2" and
"ptype on opaque struct tagname (dynamically) 2
* gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
gcc compiled for:
"p datalocal"
"whatis datalocal",
"ptype datalocal",
"p bsslocal",
"whatis bsslocal", and
"ptype bsslocal".
* gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
"backtrace in langs.exp" and "up to langs0__2do in langs.exp"
when not gcc compiled.
* gdb.base/funcargs.exp (float_and_integral_args):  Add
"hppa*-*-hpux*" xfail for "run to call2a" when not gcc
compiled.
(discard_and_shuffle):  Add "hppa*-*-hpux*" xfail for
"backtrace from call6a" when not gcc compiled.
(shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
"backtrace from call7a" when not gcc compiled.
* gdb.base/callfuncs.exp (do_function_calls):
Add "hppa*-*-hpux*" xfail when not gcc compiled for
"p t_char_array_values(char_array_val2,char_array_val1)",
"p t_char_array_values(char_array_val1,char_array_val2)",
"p t_char_array_values("carray 1","carray 2")",
"p t_char_array_values("carray 1",char_array_val2)",
"p t_char_array_values(char_array_val1,"carray 2")",
"p sum_args(1,{2})",
"p sum_args(2,{2,3})",
"p sum_args(3,{2,3,4})",
"p sum_args(4,{2,3,4,5})"
* gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
"backtrace in corefile.exp" when not gcc compiled.

29 years ago * defs.h: Only include mmalloc.h if NO_MMALLOC is not
Fred Fish [Mon, 11 Sep 1995 23:41:45 +0000 (23:41 +0000)]
* defs.h: Only include mmalloc.h if NO_MMALLOC is not
defined.

29 years ago * doc/configure.in: Remove unused file.
Ian Lance Taylor [Mon, 11 Sep 1995 20:53:46 +0000 (20:53 +0000)]
* doc/configure.in: Remove unused file.

29 years ago * app.c (do_scrub_chars): Grab all available spaces at start of
Ian Lance Taylor [Mon, 11 Sep 1995 18:34:55 +0000 (18:34 +0000)]
* app.c (do_scrub_chars): Grab all available spaces at start of
line before preserving a single space.  Remove state == 0 test
which will never succeed.
* macro.c (macro_expand_body): Delete local variables from the
formal hash table.
(macro_expand): In MRI mode, stop when whitespace is seen in the
argument list.

29 years ago * gas/mri/empty.s: New file.
Ian Lance Taylor [Mon, 11 Sep 1995 16:07:49 +0000 (16:07 +0000)]
* gas/mri/empty.s: New file.
* gas/mri/mri.exp: Test assembling empty.s.
* gas/mri/comment.s: Add a couple more comment variants.

29 years ago * sb.c: Include "libiberty.h".
Ian Lance Taylor [Mon, 11 Sep 1995 15:48:13 +0000 (15:48 +0000)]
* sb.c: Include "libiberty.h".
* macro.c: Likewise.  Also include <stdlib.h> if it exists.

29 years ago * gas/mri/mri.exp: Add xfail for the expr test for all hppa
Ian Lance Taylor [Mon, 11 Sep 1995 15:46:48 +0000 (15:46 +0000)]
* gas/mri/mri.exp: Add xfail for the expr test for all hppa
targets.

29 years agoRevert Linux directory searching: it turns out that Linux no longer
Ian Lance Taylor [Mon, 11 Sep 1995 15:04:49 +0000 (15:04 +0000)]
Revert Linux directory searching: it turns out that Linux no longer
uses it.

29 years ago * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
Ian Lance Taylor [Mon, 11 Sep 1995 14:56:49 +0000 (14:56 +0000)]
* sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
a symbol with a non-zero plt_offset.

29 years agoSun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>
Michael Tiemann [Sun, 10 Sep 1995 17:37:22 +0000 (17:37 +0000)]
Sun Sep 10 10:24:48 1995  Michael Tiemann  <tiemann@axon.cygnus.com>

* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the
simulator.  FIXME.

* rs6000-tdep.c (push_dummy_frame): Calculate the correct link
register offset from the current frame (don't assume it is always 8).
(push_dummy_frame): Add comment about having only 4096 bytes of
stack space in the simulator (by default).

* remote-sim.c (gdbsim_create_inferior): Call
`add_text_to_loadinfo' so that gdb can find TOC entries when
calling functions in the inferior.

With this changes, it is now possible to correctly call inferior
functions in the PPC simulator.

29 years agoSun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
Michael Tiemann [Sun, 10 Sep 1995 17:33:54 +0000 (17:33 +0000)]
Sun Sep 10 10:23:56 1995  Michael Tiemann  <tiemann@axon.cygnus.com>

* registers.c (register_description): Add gdb synonyms for cr
(cnd) and msr (ps).

29 years ago * sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUM
Peter Schauer [Sun, 10 Sep 1995 15:56:01 +0000 (15:56 +0000)]
* sparc-tdep.c (fill_fpregset):  Fix incorrect FP_MAX_REGNUM
substitution.
(supply_fpregset):  Use FP_MAX_REGNUM.

29 years agofix typo.
Michael Meissner [Sun, 10 Sep 1995 03:44:58 +0000 (03:44 +0000)]
fix typo.

29 years ago * stabsread.c (read_enum_type): Exit loop for putting pending
Peter Schauer [Sat, 9 Sep 1995 15:24:18 +0000 (15:24 +0000)]
* stabsread.c (read_enum_type):  Exit loop for putting pending
enum symbols into the enum type correctly if we had no pending
symbols on entry to read_enum_type.

29 years ago * gdb.base/signals.exp: Rewrite `handle all print' test as
Peter Schauer [Sat, 9 Sep 1995 08:38:40 +0000 (08:38 +0000)]
* gdb.base/signals.exp:  Rewrite `handle all print' test as
a procedure. Accept blanks or TABs as whitespace, increase
timeout and expect input buffer size for the large output
from the command. Remove "i*86-*-bsdi2.0" xfail.

29 years ago * inferior.h: Add extern declaration of inferior_environ.
Kung Hsu [Sat, 9 Sep 1995 00:26:46 +0000 (00:26 +0000)]
* inferior.h: Add extern declaration of inferior_environ.
* solib.c (solib_map_sections): To get inferior's env instead of
gdb's for LD_LIBRARY_PATH, same for PATH.

29 years ago* configure.in (noconfigdirs): Disable gdb on m68k-*-netbsd*.
J.T. Conklin [Sat, 9 Sep 1995 00:15:47 +0000 (00:15 +0000)]
* configure.in (noconfigdirs): Disable gdb on m68k-*-netbsd*.

29 years agoUpdate to new config scheme
Michael Meissner [Fri, 8 Sep 1995 23:56:38 +0000 (23:56 +0000)]
Update to new config scheme

29 years ago Add Linux style directory searching.
Ian Lance Taylor [Fri, 8 Sep 1995 23:37:45 +0000 (23:37 +0000)]
Add Linux style directory searching.
* configure.tgt: Add i386lelf to targ_extra_emuls for
i[345]86-*-linuxaout* and i[345]86-*-linuxoldld.  For
i[345]86-*-linux*, set targ_emul to i386lelf, and add elf_i386 to
targ_extra_emuls.
* emulparams/i386lelf.sh: New file, a copy of elf_i386.sh.
* emultempl/elf32.em: If TARGET_IS_i386lelf, use autoconf
recommended mechanism to define DIR and struct dirent.
(libcmp): New static function use only when TARGET_IS_i386lelf.
(gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
* Makefile.in (ALL_EMULATIONS): Add ei386lelf.o
(ei386lelf.c): New target.

29 years ago * elfcode.h (align_file_position): Remove; not used.
Ian Lance Taylor [Fri, 8 Sep 1995 22:43:31 +0000 (22:43 +0000)]
* elfcode.h (align_file_position): Remove; not used.

29 years ago * ldemul.h (ldemul_set_symbols): Declare.
Ian Lance Taylor [Fri, 8 Sep 1995 21:28:17 +0000 (21:28 +0000)]
* ldemul.h (ldemul_set_symbols): Declare.
(ldemul_parse_args): Declare.
* ldemul.c (ldemul_parse_args): Fix indentation.

29 years ago * ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
Ian Lance Taylor [Fri, 8 Sep 1995 21:16:31 +0000 (21:16 +0000)]
* ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
tests as untested rather than unresolved.

29 years ago * configure.in: Call AC_HEADER_DIRENT.
Ian Lance Taylor [Fri, 8 Sep 1995 21:11:40 +0000 (21:11 +0000)]
* configure.in: Call AC_HEADER_DIRENT.
* configure, config.in: Rebuild.
* emultempl/sunos.em: Use autoconf recommend mechanism to define
DIR and struct dirent.

29 years ago * configure.in: Build ld in mips*-*-bsd* case.
Ian Lance Taylor [Fri, 8 Sep 1995 20:47:20 +0000 (20:47 +0000)]
* configure.in: Build ld in mips*-*-bsd* case.

29 years ago * configure.tgt (mips*-*-bsd*): New case.
Ian Lance Taylor [Fri, 8 Sep 1995 20:46:44 +0000 (20:46 +0000)]
* configure.tgt (mips*-*-bsd*): New case.

29 years ago * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
Ian Lance Taylor [Fri, 8 Sep 1995 20:34:05 +0000 (20:34 +0000)]
* configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
New case.
* configure.tgt (i[345]86-*-ptx*): New case.

29 years ago * solib.c (solib_map_sections): Copy full path name into so_list
Kung Hsu [Fri, 8 Sep 1995 20:00:56 +0000 (20:00 +0000)]
* solib.c (solib_map_sections): Copy full path name into so_list
structure so that symbol_file_add can find it.

29 years ago * app.c (do_scrub_chars): In MRI mode, keep a space before a
Ian Lance Taylor [Fri, 8 Sep 1995 19:17:46 +0000 (19:17 +0000)]
* app.c (do_scrub_chars): In MRI mode, keep a space before a
possible comment character.
* config/tc-m68k.c (m68k_ip): In MRI mode, ignore anything after
an instruction which takes no operands.

29 years ago * Makefile.in (install): Don't install gasp in $(tooldir).
Ian Lance Taylor [Fri, 8 Sep 1995 18:43:50 +0000 (18:43 +0000)]
* Makefile.in (install): Don't install gasp in $(tooldir).

29 years ago * Makefile.in (install): Don't install in $(tooldir).
Ian Lance Taylor [Fri, 8 Sep 1995 18:38:50 +0000 (18:38 +0000)]
* Makefile.in (install): Don't install in $(tooldir).

29 years ago * Makefile.in (install): Don't install in $(tooldir).
Ian Lance Taylor [Fri, 8 Sep 1995 18:33:23 +0000 (18:33 +0000)]
* Makefile.in (install): Don't install in $(tooldir).

29 years ago * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
Ian Lance Taylor [Fri, 8 Sep 1995 18:32:37 +0000 (18:32 +0000)]
* configure.in: Define CC_FOR_BUILD.  Don't call AC_PROG_INSTALL.
* configure: Rebuild.
* Makefile.in (INSTALL): Revert to using install.sh.
(INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
(INSTALL_XFORM, INSTALL_XFORM1): Restore.
(CC_FOR_BUILD): Restore.
(gencode): Build using $(CC_FOR_BUILD).
(install): Don't install in $(tooldir).

29 years ago * configure.in: Remove AC_PROG_INSTALL.
Ian Lance Taylor [Fri, 8 Sep 1995 18:29:22 +0000 (18:29 +0000)]
* configure.in: Remove AC_PROG_INSTALL.
* configure: Rebuild.
* Makefile.in (INSTALL): Revert to using install.sh.
(INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
(INSTALL_XFORM, INSTALL_XFORM1): Restore.
(mostlyclean): Make the same as clean, not distclean.
(clean): Remove config.log.
(install): Don't install in $(tooldir).

29 years ago * configure.in: Convert to use autoconf.
Ian Lance Taylor [Fri, 8 Sep 1995 18:07:02 +0000 (18:07 +0000)]
* configure.in: Convert to use autoconf.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* config.in: New file, built by autoheader.
* Makefile.in: Various changes for new configure script.  Also:
(INSTALL): Go up two levels, not one.
(ALLOCA, MALLOC, OPCODES): Remove.
(gencode): Use $(CC_FOR_BUILD).
(case.o): Remove.
(run.o, interp.o): Depend upon config.h.
* interp.c: Include "config.h".  Don't include "sysdep.h".
Include <stdlib.h>, <time.h>, and <unistd.h> if they exist.
* run.c: Include "config.h".  Don't include "sysdep.h".  Include
<stdlib.h> if it exists.  Include "getopt.h".  Declare printf if
necessary.

29 years agomention new config.in file
Ian Lance Taylor [Fri, 8 Sep 1995 16:34:48 +0000 (16:34 +0000)]
mention new config.in file

29 years ago * configure.in: Call AC_CONFIG_HEADER. Don't try to use
Ian Lance Taylor [Fri, 8 Sep 1995 16:26:41 +0000 (16:26 +0000)]
* configure.in: Call AC_CONFIG_HEADER.  Don't try to use
bfd/hosts/*.h file or bfd/config/*.mh file.  Call AC_PROG_CC and
AC_PROG_RANLIB.  Substitute in values for CFLAGS, HDEFINES and AR.
Call AC_CHECK_HEADERS for stdlib.h and time.h.  Touch stamp.h if
creating config.h.
* configure: Rebuild.
* Makefile.in (AR): Define as @AR@.
(CC): New variable, defined as @CC@.
(CFLAGS): Define as @CFLAGS@.
(RANLIB): Define as @RANLIB@.
(HDEFINES, TDEFINES): New variables.
(@host_makefile_frag@): Remove.
(compile.o, run.o): Depend upon config.h.
(mostlyclean): Make the same as clean, not distclean.
(clean): Remove config.log.
(distclean): Remove config.h and stamp-h.
(Makefile): Don't depend upon @frags@.  Just rebuild Makefile when
invoking config.status.
(config.h, stamp-h): New targets.
* compile.c: Include "config.h".  Don't include <sys/times.h>.
Include <time.h> and <stdlib.h> if they exist.  Don't include
"sysdep.h".
(get_now): Remove unused local b.
* run.c: Include "config.h".  Include <stdlib.h> if it exists.
Don't include "sysdep.h".
* writecode.c: Don't include "bfd.h" or "sysdep.h".  Include
<stdio.h>.

29 years ago * configure.in: Only check for <sys/procfs.h> on a native system,
Ian Lance Taylor [Fri, 8 Sep 1995 15:50:29 +0000 (15:50 +0000)]
* configure.in: Only check for <sys/procfs.h> on a native system,
and make sure it defines prstatus_t.
* configure: Rebuild.

29 years ago * Makefile.in (Makefile): Just rebuild Makefile when running
Ian Lance Taylor [Fri, 8 Sep 1995 15:30:49 +0000 (15:30 +0000)]
* Makefile.in (Makefile): Just rebuild Makefile when running
config.status.
(config.h, stamp-h): New targets.
* configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
earlier.  Don't bother to call AC_ARG_PROGRAM.  Touch stamp-h when
rebuilding config.h.
* configure: Rebuild.

29 years agoDo not include sysdep.h, bfd no longer provides it
Michael Meissner [Fri, 8 Sep 1995 13:59:49 +0000 (13:59 +0000)]
Do not include sysdep.h, bfd no longer provides it

29 years ago * mips-opc.c: Change unaligned loads and stores with "t,A"
Ian Lance Taylor [Fri, 8 Sep 1995 05:08:38 +0000 (05:08 +0000)]
* mips-opc.c: Change unaligned loads and stores with "t,A"
operands to use "t,A(b)".
PR 7947.

29 years ago * config/tc-mips.c (macro): Handle a non zero base register for
Ian Lance Taylor [Fri, 8 Sep 1995 05:06:45 +0000 (05:06 +0000)]
* config/tc-mips.c (macro): Handle a non zero base register for
M_U{L,S}{D,W,H}_A.
PR 7947.

29 years ago * gasp.c (show_usage): Put program_name argument in first fprintf,
Ian Lance Taylor [Fri, 8 Sep 1995 04:30:24 +0000 (04:30 +0000)]
* gasp.c (show_usage): Put program_name argument in first fprintf,
not second.

29 years ago* config.sub: Accept -lites* OS. From Ian Dall.
Ken Raeburn [Fri, 8 Sep 1995 00:10:02 +0000 (00:10 +0000)]
* config.sub: Accept -lites* OS.  From Ian Dall.

29 years ago(Try to) Update to new bfd autoconf scheme.
J.T. Conklin [Thu, 7 Sep 1995 22:07:47 +0000 (22:07 +0000)]
(Try to) Update to new bfd autoconf scheme.
* run.c: Don't include sysdep.h.
* Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
(CC, CFLAGS, AR, RANLIB): Likewise.
(HDEFINES, TDEFINES): Define.
(CC_FOR_BUILD): Delete.
(host_makefile_frag): Delete.
(Makefile): Don't depend on frags.
* configure.in (sysdep.h): Don't create symlink.
(host_makefile_frag, frags): Deleted.
(CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
* configure: Regenerated.

29 years ago * expr.c (operand): Handle 08 and 09 in MRI mode.
Ian Lance Taylor [Thu, 7 Sep 1995 21:54:13 +0000 (21:54 +0000)]
* expr.c (operand): Handle 08 and 09 in MRI mode.
* macro.c (ISSEP): Remove duplicated `"' character.
  (get_any_string): Copy some characters for which ISSEP is true:
';', '>', '(', ')'.  Otherwise we can get in an infinite loop.
* read.c (s_space): In MRI mode, the expressions stop at the first
unquoted space.
(cons_worker): In MRI mode, restore the terminating character at
the end of the function.

29 years ago * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
Ian Lance Taylor [Thu, 7 Sep 1995 20:29:24 +0000 (20:29 +0000)]
* sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.

29 years ago (Try to) Update to new bfd autoconf scheme.
David Edelsohn [Thu, 7 Sep 1995 19:08:15 +0000 (19:08 +0000)]
(Try to) Update to new bfd autoconf scheme.
* run.c: Don't include sysdep.h.
* Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
(CC, CFLAGS, AR, RANLIB): Likewise.
(HDEFINES, TDEFINES): Define.
(CC_FOR_BUILD): Delete.
(host_makefile_frag): Delete.
(Makefile): Don't depend on frags.
* configure.in (sysdep.h): Don't create symlink.
(host_makefile_frag, frags): Deleted.
(CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
* configure: Regenerated.

29 years ago * config.in: Rename from config.h.in.
Ian Lance Taylor [Thu, 7 Sep 1995 17:20:53 +0000 (17:20 +0000)]
* config.in: Rename from config.h.in.
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
Check for config.h:config.in when creating stamp-h.
* configure: Rebuild.
* Makefile.in (stamp-h): Depend upon config.in rather than
config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
calling config.status.

29 years ago * config.in: Rename from config.h.in.
Ian Lance Taylor [Thu, 7 Sep 1995 17:12:26 +0000 (17:12 +0000)]
* config.in: Rename from config.h.in.
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
Check for config.h:config.in when creating stamp-h.
* configure: Rebuild.
* Makefile.in (stamp-h): Depend upon config.in rather than
config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
calling config.status.

29 years agotweak last change
Ian Lance Taylor [Thu, 7 Sep 1995 17:09:48 +0000 (17:09 +0000)]
tweak last change

29 years ago * config.in: Rename from config.h.in.
Ian Lance Taylor [Thu, 7 Sep 1995 17:03:55 +0000 (17:03 +0000)]
* config.in: Rename from config.h.in.
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
* configure: Rebuild.
* Makefile.in (stamp-h): Set CONFIG_HEADERS to config.h:config.in
when calling config.status.

29 years ago * Makefile.in (distclean): Remove config.h and stamp-h.
Ian Lance Taylor [Thu, 7 Sep 1995 16:53:02 +0000 (16:53 +0000)]
* Makefile.in (distclean): Remove config.h and stamp-h.

29 years ago * Makefile.in (distclean): Remove config.h, stamp-h, and
Ian Lance Taylor [Thu, 7 Sep 1995 16:52:35 +0000 (16:52 +0000)]
* Makefile.in (distclean): Remove config.h, stamp-h, and
        config.log.

29 years ago * Makefile.in (do_distclean): Remove config.h and stamp-h.
Ian Lance Taylor [Thu, 7 Sep 1995 16:50:40 +0000 (16:50 +0000)]
* Makefile.in (do_distclean): Remove config.h and stamp-h.
(Makefile): Just rebuild Makefile.
(config.h, stamp-h): New targets.
* configure.in: Create stamp-h when rebuilding config.h.
* configure: Rebuild.

29 years ago * read.c (cons_worker): Don't use #elif; old compilers don't
Ian Lance Taylor [Thu, 7 Sep 1995 16:35:37 +0000 (16:35 +0000)]
* read.c (cons_worker): Don't use #elif; old compilers don't
support it.

29 years ago * nm.c (value_format): Initialize based on BFD64 and
Ian Lance Taylor [Thu, 7 Sep 1995 16:14:43 +0000 (16:14 +0000)]
* nm.c (value_format): Initialize based on BFD64 and
BFD_HOST_64BIT_LONG.
(print_radix): New static variable.
(set_print_radix): Set print_radix.  Adjust changes to
value_format.
(print_value): New static function, to print 64 bit octal and
decimal values correctly.
(print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT.  Use
print_value.
(print_symbol_info_sysv): Use print_value.
(print_symbol_info_posix): Likewise.

29 years ago * configure.host (sparc-*-sunos64*): Remove.
Ian Lance Taylor [Thu, 7 Sep 1995 14:52:12 +0000 (14:52 +0000)]
* configure.host (sparc-*-sunos64*): Remove.
* ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.

29 years ago * ldexp.c (exp_fold_tree): Don't warn about moving the location
Ian Lance Taylor [Thu, 7 Sep 1995 14:49:31 +0000 (14:49 +0000)]
* ldexp.c (exp_fold_tree): Don't warn about moving the location
counter backward in the absolute section.
PR 7942.

29 years ago * gas/mri/comment.s, gas/mri/comment.d: New test.
Ian Lance Taylor [Thu, 7 Sep 1995 01:45:07 +0000 (01:45 +0000)]
* gas/mri/comment.s, gas/mri/comment.d: New test.
* gas/mri/mri.exp: Run it.
* gas/mri/expr.s: Remove whitespace in operand field.
* gas/mri/for.s: Add comments for further testing.
* gas/macros/test2.s: Put in an upper case ELSE to test case
insensitivity.

29 years ago * Makefile.in (ALL_CFLAGS): Define.
Ian Lance Taylor [Thu, 7 Sep 1995 01:23:22 +0000 (01:23 +0000)]
* Makefile.in (ALL_CFLAGS): Define.
(.c.o, disassemble.o): Use $(ALL_CFLAGS).
(MOSTLYCLEAN): Add config.log.
(distclean): Don't remove config.log.
* configure.in: Substitute HDEFINES.
* configure: Rebuild.

29 years ago * app.c (do_scrub_chars): In MRI mode, silently end quoted strings
Ian Lance Taylor [Thu, 7 Sep 1995 01:17:16 +0000 (01:17 +0000)]
* app.c (do_scrub_chars): In MRI mode, silently end quoted strings
at newline characters.  In MRI mode, always keep spaces in the
operands field.  In MRI mode, treat a line comment character as a
regular comment character following a space.
* cond.c (ignore_input): Use strncasecmp rather than strncmp when
looking for special pseudo-ops.
* read.c (cons_worker): In MRI mode, the expressions stop at the
first unquoted space.
(equals): Likewise.

29 years ago * Makefile.in (*.o): Remove incorrect dependencies on
Ian Lance Taylor [Thu, 7 Sep 1995 00:35:49 +0000 (00:35 +0000)]
* Makefile.in (*.o): Remove incorrect dependencies on
$(BFDDIR)/hosts/std-host.h.

29 years ago * configure.in: Call AC_CONFIG_HEADER. Substitute
Ian Lance Taylor [Wed, 6 Sep 1995 22:53:43 +0000 (22:53 +0000)]
* configure.in: Call AC_CONFIG_HEADER.  Substitute
HOST_64BIT_LONG.  Check that various header files exist.  Check
that fcntl exists.  Call BFD_BINARY_FOPEN.  Check whether malloc
and/or free need to be declared.  Don't make a link to sysdep.h.
Define TRAD_HEADER for various hosts.
* configure: Rebuild.
* configure.host: Don't set my_host.  Add definitions taken from
host header files for various entries.  Remove entries which now
do nothing.
* acconfig.h: New file.
* config.h.in: New file, built by autoheader.
* sysdep.h: New file.
* Makefile.in (do_distclean): Don't remove sysdep.h.
(RECONFIG): Remove.
(LOCAL_H_DEPS): New variable.
($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
$(RECONFIG).
($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
($(OPTIONAL_BACKENDS)): Likewise.
(stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
looking through sysdep.h.
* bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
(BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
(fprintf_vma, sprintf_vma): Likewise.
(int64_type, uint64_type): Don't define.
* bfd-in2.h: Rebuild.
* archures.c, bfd.c, srec.c: Include <ctype.h>.
* elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
* lynx-core.c: Include stuff from old hosts/lynx.h.
* opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
rather than NO_FCNTL.
* targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
rather than NATIVE_HPPAHPUX_COMPILER.
* trad-core.c: Don't include <errno.h>.  Include TRAD_HEADER if it
is defined.
* hosts/*.h: Remove all header files which merely include,
declare, and define things.  Leave header files which define
information needed by trad-core.c.

29 years agoFix gas bugs in SH3e handling of fmac instruction.
Jim Wilson [Wed, 6 Sep 1995 22:12:14 +0000 (22:12 +0000)]
Fix gas bugs in SH3e handling of fmac instruction.

29 years ago * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
David Edelsohn [Wed, 6 Sep 1995 21:35:20 +0000 (21:35 +0000)]
* config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
have size 4.
(REGISTER_VIRTUAL_SIZE): Likewise.
(REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float.
Upper 32 fp regs have type double.
* sparc-tdep.c (NUM_SPARC_FPREGS): Replace with
(FP_REGISTER_BYTES): this, and update all uses.
(FP_MAX_REGNUM): Define if not already.
(get_saved_register): Handle new sparc64 fp regs.
(sparc_frame_find_saved_regs): Likewise.
(sparc_print_register_hook): Only print fp regs < 32 as doubles.
Add code to handle long doubles when gdb does.
(_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.

29 years ago* cfg-ml-com.in (sh-*-*): Add sh3e support.
J.T. Conklin [Wed, 6 Sep 1995 21:02:59 +0000 (21:02 +0000)]
* cfg-ml-com.in (sh-*-*): Add sh3e support.
Plus sanitize foo.

29 years ago * configure.in: Rewrite to use autoconf.
Ian Lance Taylor [Wed, 6 Sep 1995 18:58:05 +0000 (18:58 +0000)]
* configure.in: Rewrite to use autoconf.
* configure.host: New file.
* configure.tgt: New file.
* aclocal.m4: New file.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* config.h.in: New file, built by autoheader.
* sysdep.h: New file.
* ld.h: Incorporate old contents of config.h.
* config.h: Remove.
* Makefile.in: Various changes for new configure script.  Also:
(CC_FOR_BUILD): Remove.
(ldmain.o): Don't bother to ensure that EMUL is non-empty.
(dep.sed): Use @SRCDIR@, not @srcdir@.
* dep-in.sed: Use @SRCDIR@, not @srcdir@.
* genscripts.sh: Create ldscripts if it does not exist.
* ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
* mpw-esh.c, emultemp/*.em: Likewise.
* ldmain.c: Likewise.  Include <ctype.h>.  Don't try to set
HAVE_SBRK here.
* config/*.mt, config/*.mh: Remove.

29 years agoFix brk system call.
Michael Meissner [Wed, 6 Sep 1995 14:00:16 +0000 (14:00 +0000)]
Fix brk system call.

29 years ago * sparc-dis.c: Remove all references to NO_V9.
David Edelsohn [Wed, 6 Sep 1995 01:28:55 +0000 (01:28 +0000)]
* sparc-dis.c: Remove all references to NO_V9.

29 years ago * configure.in: Rewrite to use autoconf.
Ian Lance Taylor [Wed, 6 Sep 1995 00:52:07 +0000 (00:52 +0000)]
* configure.in: Rewrite to use autoconf.
* aclocal.m4: New file.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* config.h.in: New file, built by autoheader.
* Makefile.in: Various changes for new configure script.  Also:
(PROGS): Remove $(SYSINFO_PROG).
(ALL_CFLAGS): Remove $(TDEFINES).
(version.o): Use $(ALL_CFLAGS).
(cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
(sysdump.o): Depend upon bucomm.h and config.h.
(srconv.o, arsup.o, strings.o): Depend upon config.h.
(filemode.o): Don't depend upon ../bfd/sysdep.h.
(bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
(size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
(nlmheader.o, nlmconv.o): Likewise.
(distclean): Don't remove sysdep.h.
* bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
   Include "fopen-same.h" or "fopen-bin.h", based on
  USE_BINARY_FOPEN.  Include <errno.h>, and declare errno if it is
  not a macro.  Include <unistd.h>, <string.h>, <strings.h>,
  <stdlib.h>, and <fcntl.h> if they are present.  Declare strchr,
  strrchr, and strstr if no string header file exists.  Include
<sys/file.h> if it exists and <fcntl.h> does not.  Define
O_RDONLY and O_RDWR if necessary.
* ar.c:  Don't include "sysdep.h".  Do include <sys/types.h> and
<sys/stat.h>.  Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME.  Use
HAVE_UTIMES rather than !USE_UTIME.  Don't include <errno.h>, and
don't declare errno.
* arsup.c: Don't include <sysdep.h>.
* bucomm.c: Don't include "sysdep.h".  Include <stdio.h>,
<sys/types.h>, and <sys/stat.h>.  Include <time.h> if it defines
time_t.  Define time_t if necessary.
* coffdump.c: Don't include "sysdep.h".
* coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
* srconv.c, strings.c: Likewise.
* nm.c: Don't include "sysdep.h".  Don't try to define HAVE_SBRK.
* objcopy.c: Don't include "sysdep.h".  Include <sys/types.h> and
<sys/stat.h>.
(simple_copy): Use creat rather than assuming that O_CREAT is
defined.
* objdump.c: Don't include "sysdep.h".  Use
NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
* sysdump.c: Include "bfd.h" and "bucomm.h".  Don't include
"sysdep.h" or <stdlib.h>.
(dump_symbol_info): Rename from symbol_info.  Change all callers.

29 years ago * config/tc-mips.c: Remove CYGNUS LOCAL comments.
Stan Shebs [Wed, 6 Sep 1995 00:33:55 +0000 (00:33 +0000)]
* config/tc-mips.c: Remove CYGNUS LOCAL comments.
(md_begin): Use 0/1 instead of TRUE/FALSE.
(md_show_usage): Break up long format string for the benefit
of lame compilers.
* config/tc-m68k.c (md_show_usage): Ditto.
* gasp.c (show_usage): Ditto.
* macro.c (check_macro): Cast result of hash_find.

29 years ago * aclocal.m4: Just include ../bfd/aclocal.m4.
Ian Lance Taylor [Wed, 6 Sep 1995 00:03:55 +0000 (00:03 +0000)]
* aclocal.m4: Just include ../bfd/aclocal.m4.
* configure: Rebuild.

29 years ago * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
Ian Lance Taylor [Wed, 6 Sep 1995 00:02:00 +0000 (00:02 +0000)]
* aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
* configure: Rebuild.

29 years agoadd comment
Ian Lance Taylor [Wed, 6 Sep 1995 00:00:33 +0000 (00:00 +0000)]
add comment

29 years ago * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
Ian Lance Taylor [Tue, 5 Sep 1995 23:36:49 +0000 (23:36 +0000)]
* coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
a global symbol.
PR 7908.

29 years ago * sparc-dis.c (X_DISP19): Define.
David Edelsohn [Tue, 5 Sep 1995 23:12:27 +0000 (23:12 +0000)]
* sparc-dis.c (X_DISP19): Define.
(print_insn, case 'G'): Use it.
(print_insn, case 'L'): Sign extend displacement.

29 years ago* configure.in: When testing for a free() declaration in system header files,
Ken Raeburn [Tue, 5 Sep 1995 22:36:41 +0000 (22:36 +0000)]
* configure.in: When testing for a free() declaration in system header files,
cast the address to a function pointer, not to an integer.

* write.c (fix_new_internal): Call TC_INIT_FIX_DATA if TC_FIX_TYPE is defined.
Don't initialize fx_bsr.  Verify that fx_size field is wide enough to hold
stored value.
* write.h (struct fix): Change tc_fix_data to type TC_FIX_TYPE if that is
defined, otherwise omit it.  Delete fx_bsr.  Change fx_size to unsigned char.
* config/tc-i960.h (TC_FIX_TYPE, fx_bsr, TC_INIT_FIX_DATA): New macros.
* config/tc-ns32k.h (TC_FIX_TYPE, fx_bsr, TC_INIT_FIX_DATA): New macros.
* config/tc-hppa.h (TC_FIX_TYPE): Define as PTR.

* config/tc-i860.c (md_apply_fix): Delete code for checking fx_im_disp, and for
handling non-zero values, since it never gets set after being initialized to
zero.

* write.h (struct fix): Make fx_im_disp always 2 bits, since the only tc-*
files actually using it need that much.

NS32K changes from Ian Dall:
* configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
ns32k-pc532-lites* like ns32k-pc532-netbsd*.
* config/tc-ns32k.h (LOCAL_LABELS_FB): Define to 1.

29 years ago * config.bfd: i386pe_ve -> i386pe_vec.
Jason Molenda [Tue, 5 Sep 1995 19:50:50 +0000 (19:50 +0000)]
    * config.bfd: i386pe_ve -> i386pe_vec.

29 years agosome ns32k updates from Ian Dall
Ken Raeburn [Tue, 5 Sep 1995 19:04:22 +0000 (19:04 +0000)]
some ns32k updates from Ian Dall

29 years ago * configure.in (host_makefile_frag): Don't set. Substitute for
Ian Lance Taylor [Mon, 4 Sep 1995 21:14:33 +0000 (21:14 +0000)]
* configure.in (host_makefile_frag): Don't set.  Substitute for
@CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
* Makefile.in (AR_FLAGS): Set to rc rather than qv.
(CC): Define as @CC@.
(CFLAGS): Set to @CFLAGS@.
(LDFLAGS): Define as @LDFLAGS@.
(ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).

29 years ago * configure.host: Incorporate host Makefile fragments by setting
Ian Lance Taylor [Mon, 4 Sep 1995 21:13:51 +0000 (21:13 +0000)]
* configure.host: Incorporate host Makefile fragments by setting
shell variables.
* configure.in: Call AC_PROG_CC.  Substitute CFLAGS, HDEFINES and
AR.  Call AC_PROG_INSTALL.  Substitute CC_FOR_BUILD, choosing a
value based on whether the code is being compiled by a cross
compiler.  Don't substitute host_makefile_frag or frags.
* aclocal.m4: New file to define local AC_PROG_CC.
* configure: Rebuild.
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
(INSTALL_DATA): Set to @INSTALL_DATA@.
(AR): Set to @AR@.
(CC): Define as @CC@.
(CFLAGS): Set to @CFLAGS@.
(CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
(@host_makefile_frag@): Remove.
(ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@.  Move $(CFLAGS)
after other options.
(config.status): Remove dependency upon @frags@.
* config/*.mh, config/README: Remove.

29 years ago * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
Ian Lance Taylor [Mon, 4 Sep 1995 21:13:22 +0000 (21:13 +0000)]
* configure.in: Run ../bfd/configure.host before AC_PROG_CC.
Subsitute CFLAGS and AR.  Call AC_PROG_INSTALL.  Don't substitute
host_makefile_frag or frags.
* aclocal.m4: New file.
* configure: Rebuild.
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
(INSTALL_DATA): Set to @INSTALL_DATA@.
(AR): Set to @AR@.
(AR_FLAGS): Set to rc rather than qc.
(CC): Define as @CC@.
(CFLAGS): Set to @CFLAGS@.
(@host_makefile_frag@): Remove.
(config.status): Remove dependency upon @frags@.

29 years agotipo
Ian Lance Taylor [Mon, 4 Sep 1995 21:03:18 +0000 (21:03 +0000)]
tipo

29 years ago * configure.in: Don't bother to call config.bfd for each target.
Ian Lance Taylor [Mon, 4 Sep 1995 18:32:22 +0000 (18:32 +0000)]
* configure.in: Don't bother to call config.bfd for each target.
Just call it for the default target, and use the shell variable to
decide whether underscores are used.

29 years ago * config.bfd: Rewrite to incorporate the contents of the Makefile
Ian Lance Taylor [Mon, 4 Sep 1995 18:31:40 +0000 (18:31 +0000)]
* config.bfd: Rewrite to incorporate the contents of the Makefile
fragments by setting shell variables, rather than merely returning
the name of a Makefile fragment.
* configure.in: Use shell variables set by config.bfd rather than
looking at the target Makefile fragment files.  Don't substitute
target_makefile_frag.  Do substitute TDEFINES.
* configure: Rebuild.
* Makefile.in (@target_makefile_frag@): Remove.
(ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
* config/*.mt: Remove.

29 years ago * configure.in: ../bfd/config.bfd now just sets shell variables.
Ian Lance Taylor [Mon, 4 Sep 1995 18:31:33 +0000 (18:31 +0000)]
* configure.in: ../bfd/config.bfd now just sets shell variables.
Use them rather than looking through target Makefile fragments.
* configure: Rebuild.