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.
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.
Michael Meissner [Wed, 6 Sep 1995 14:00:16 +0000 (14:00 +0000)]
Fix brk system call.
David Edelsohn [Wed, 6 Sep 1995 01:28:55 +0000 (01:28 +0000)]
* sparc-dis.c: Remove all references to NO_V9.
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.
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.
Ian Lance Taylor [Wed, 6 Sep 1995 00:03:55 +0000 (00:03 +0000)]
* aclocal.m4: Just include ../bfd/aclocal.m4.
* configure: Rebuild.
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.
Ian Lance Taylor [Wed, 6 Sep 1995 00:00:33 +0000 (00:00 +0000)]
add comment
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.
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.
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.
Jason Molenda [Tue, 5 Sep 1995 19:50:50 +0000 (19:50 +0000)]
* config.bfd: i386pe_ve -> i386pe_vec.
Ken Raeburn [Tue, 5 Sep 1995 19:04:22 +0000 (19:04 +0000)]
some ns32k updates from Ian Dall
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).
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.
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@.
Ian Lance Taylor [Mon, 4 Sep 1995 21:03:18 +0000 (21:03 +0000)]
tipo
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.
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.
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.
Ken Raeburn [Mon, 4 Sep 1995 07:15:54 +0000 (07:15 +0000)]
Wrap "i[345]86" patterns in changequote lines.
Jeff Law [Sun, 3 Sep 1995 17:33:44 +0000 (17:33 +0000)]
* som.c (som_bfd_print_private_bfd_data): Define to use the
generic version.
Ken Raeburn [Sun, 3 Sep 1995 07:08:36 +0000 (07:08 +0000)]
sanitize changelog.2
Peter Schauer [Sat, 2 Sep 1995 13:49:32 +0000 (13:49 +0000)]
* gdb.base/setvar.exp: Add new testcases for truncation when
assigning invalid values to bitfields.
Peter Schauer [Sat, 2 Sep 1995 13:48:16 +0000 (13:48 +0000)]
* configure.in: Explicitly `exit 0' for broken shells.
* configure: Rebuilt.
* symtab.c (list_symbols): Add missing blank after
`<function, no debug info>' output.
* valops.c (value_assign): Handle truncation when assigning
to bitfields. Use value_copy to construct the return value
from toval.
* values.c (value_copy): Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
Fred Fish [Sat, 2 Sep 1995 07:25:13 +0000 (07:25 +0000)]
* gdb.base/callfuncs.exp (do_function_calls): Remove
mips-sgi-irix* xfail for
"call inferior func with struct - returns char *"
and fix test so that an optional (unsigned char *) cast is
accepted in the result.
Steve Chamberlain [Sat, 2 Sep 1995 00:24:04 +0000 (00:24 +0000)]
Split.
Ian Lance Taylor [Fri, 1 Sep 1995 22:32:19 +0000 (22:32 +0000)]
* Makefile.in (OFILES): Remove $(TDEPFILES).
* config/apollo.mt (TDEPFILES): Remove.
* config/README: Update.
Ian Lance Taylor [Fri, 1 Sep 1995 22:23:04 +0000 (22:23 +0000)]
* configure.in: For a native configuration, set COREFILE and
COREFLAG based on the canonical host name.
* configure: Rebuild.
* Makefile.in: Rebuild dependencies.
(ALL_CFLAGS): Add @COREFLAG@.
(OFILES): Replace $(HDEPFILES) with @COREFILE@.
* coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
support routines. Check LYNX_CORE rather than HOST_LYNX.
* lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
* i386lynx.c: Likewise.
* m68klynx.c: Likewise.
* sparclynx.c: Likewise.
* rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
* *-core.c: Comment changes.
* config/decstation.mh (HDEPFILES): Remove.
(HDEFINES): Remove -DTRAD_CORE.
* config/irix3.mh (RANLIB): Remove.
* config/irix4.mh (HDEPFILES, RANLIB): Remove.
(HDEFINES): Remove -DIRIX_CORE.
* config/riscos.mh (RANLIB, HDEPFILES): Remove.
(HDEFINES): Remove -DTRAD_CORE.
* config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
* config/ultra3.mh (RANLIB): Remove.
* config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
* config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
* config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
* config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
* config/hppahpux.mh, config/hppaosf.mh: Remove.
* config/i386aix.mh, config/i386bsd.mh: Remove.
* config/i386linux.mh, config/i386mach3.mh: Remove.
* config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
* config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
* config/mipsmach3.mh, config/news-mips.mh: Remove.
* config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
* config/rs600.mh, config/rs6000lynx.mh: Remove.
* config/solaris2.mh, config/stratus.mh: Remove.
* config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
* config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
Fred Fish [Fri, 1 Sep 1995 21:01:24 +0000 (21:01 +0000)]
* gdb.base/funcargs.exp (float_and_integral_args): Remove
sparc-sun-solaris2* xfail for "print f1 after run to call2a".
* gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
* gdb.base/signals.exp: Remove duplicate "handle all print" test
that accidentally got checked in.
Ian Lance Taylor [Fri, 1 Sep 1995 19:29:43 +0000 (19:29 +0000)]
Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
* elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
DT_FINI entry if the appropriate symbol is not in the hash table.
* libelf.h (struct elf_backend_data): Add create_program_headers
and want_hdr_in_seg fields.
* elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
defined.
(elf_backend_create_program_headers): Likewise.
(elfNN_bed): Initialize create_program_headers and
want_hdr_in_seg.
* elf.c (get_program_header_size): Call create_program_headers
backend routine.
(map_program_segments): Check want_hdr_in_seg backend field. Call
create_program_headers backend routine.
* elf.c (assign_file_positions_except_relocs): Align non allocated
sections when creating an executable.
* elfcode.h (elf_swap_phdr_in): Make non static.
(elf_swap_phdr_out): Make non static.
* libelf.h (bfd_elf32_swap_phdr_in): Declare.
(bfd_elf32_swap_phdr_out): Declare.
(bfd_elf64_swap_phdr_in): Declare.
(bfd_elf64_swap_phdr_out): Declare.
Ian Lance Taylor [Fri, 1 Sep 1995 18:08:28 +0000 (18:08 +0000)]
* elflink.h (elf_link_add_object_symbols): Handle indirect and
warning symbols. If any section is named .gnu.warning.XXX, treat
the contents as a warning to be issued if the symbol XXX is
referenced.
(elf_link_output_extsym): For an indirect or warning symbol, just
output the symbol it points to.
Ian Lance Taylor [Fri, 1 Sep 1995 18:06:53 +0000 (18:06 +0000)]
* ldmain.c (warning_callback): Add abfd, section, and address
parameters.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Change call to warning accordingly.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
relocateable and not shared, put .gnu.warning.SYMBOL sections into
the .text section.
Jackie Smith Cashion [Fri, 1 Sep 1995 15:38:07 +0000 (15:38 +0000)]
NEC VR4300 target (IDT SIM monitor) support.
Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
* configure.in: Added mips*vr4300-idt-elf* and
mips*vr4300el-idt-elf* targets.
* Makefile.in: Added eelf32vr4300* targets.
* emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
* config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
Jackie Smith Cashion [Fri, 1 Sep 1995 15:33:14 +0000 (15:33 +0000)]
Ideally the "remote-mips.c" prompt spotting code should be updated to
spot different prompts at run-time, so as to avoid having target
specific versions of gdb. This is a pending TODO.
Fri Sep 1 08:25:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
* configure (mips64*vr4300*-*-elf): Support added.
* remote-mips.c (mips_readchar): Change to allow build-time prompt
string.
* config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT.
* config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h,
tm-vr4300el.h}: Added.
Jackie Smith Cashion [Fri, 1 Sep 1995 15:22:29 +0000 (15:22 +0000)]
This change does not affect the MIPS instruction assembly. It is
present only to stop gas complaining when gcc passes through the
"-mcpu=vr4300" switch.
Fri Sep 1 08:20:19 1995 James G. Smith <jsmith@beauty.cygnus.com>
* config/tc-mips.c (md_parse_option, md_begin, md_show_usage):
Add support for "-mcpu=vr4300" as processor identifier.
Jackie Smith Cashion [Fri, 1 Sep 1995 15:15:57 +0000 (15:15 +0000)]
Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
* config.bfd: Add mips*vr4300-*-elf* target.
* config/mipsbvr4300.mt: Added.
Jackie Smith Cashion [Fri, 1 Sep 1995 15:08:48 +0000 (15:08 +0000)]
Fri Sep 1 08:06:58 1995 James G. Smith <jsmith@beauty.cygnus.com>
* config.sub: recognise mips64vr4300 and mips64vr4300el as valid
targets.
Ian Lance Taylor [Fri, 1 Sep 1995 14:54:01 +0000 (14:54 +0000)]
* scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
<brendan@cygnus.com>.
Jason Molenda [Fri, 1 Sep 1995 02:24:59 +0000 (02:24 +0000)]
* configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
Steve Chamberlain [Thu, 31 Aug 1995 23:54:04 +0000 (23:54 +0000)]
Thu Aug 31 16:51:50 1995 steve chamberlain <sac@slash.cygnus.com>
* internal.h (internal_aouthdr, internal_filehdr):
don't indirect the pe stuff.
Steve Chamberlain [Thu, 31 Aug 1995 23:46:47 +0000 (23:46 +0000)]
Thu Aug 31 16:41:06 1995 steve chamberlain <sac@slash.cygnus.com>
* write.c (fixup_segment): Remove change of 29th.
* config/tc-{i386,arm}.h (TC_FORCE_RELOCATION): Keep RVA relocs.
Steve Chamberlain [Thu, 31 Aug 1995 23:42:53 +0000 (23:42 +0000)]
Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
* ldemul.c (ldemul_parse_args): New.
* ldemul.h (ld_emulation_xfer_struct): Add parse_args.
* lexsup.c (all pe stuff): Moved into pe.em
(parse_args): Call emulation arg parser.
* emultempl/pe.em (parse_args): handle PE specfic args.
Steve Chamberlain [Thu, 31 Aug 1995 23:34:09 +0000 (23:34 +0000)]
Thu Aug 31 16:30:22 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (add_indirect): New.
(asm_prefix): New
(gen_exp_file): Timestamp should be 0. Insert prefix when
needed. New code for indirection.
(gen_lib_file): Timestamp should be 0. Insert prefix
when needed.
(usage): Document --add-indirect.
(main): Cope with new option.
* objdump.c (dump_private_headers): New.
(usage): Document new option.
(long_option): Add private-headers.
(dump_bfd_private_header): New.
(main): Cope with new option.
Steve Chamberlain [Thu, 31 Aug 1995 23:33:37 +0000 (23:33 +0000)]
Thu Aug 31 16:00:53 1995 steve chamberlain <sac@slash.cygnus.com>
* Makefile.in: Update dependencies.
* aout-target.h (MY_bfd_print_private_bfd_data): New.
* bfd-in.h (PE STUFF): Deleted.
* bfd.c (tdata->pe_obj_data): New.
(bfd_print_private_bfd_data): New.
* coff-i386.c, coff-arm.c (coff_*-rtype_to_howto): Get image base from
new place.
* libcoff.h, libbfd.h, bfd-in2.h: Rebuilt.
* coffcode.h (pe_value): Delete
(coff_mkobject, coff_mkobject_hook): Conditionally build.
(coff_compute_section_file_positions): Look in new place.
(add_data_entry, fill_pe_header_info): Deleted.
(coff_write_object_contents): Remove PE stuff.
(coff_bfd_print_private_bfd_data): New.
* coffswap.h: Remove PE stuff.
* elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): New.
* libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): New.
* libcoff-in.h (pe_data_type): New.
* libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): New.
* targets.c (_bfd_print_private_bfd_data): New.
* peicode.h: New file.
Ian Lance Taylor [Thu, 31 Aug 1995 21:02:39 +0000 (21:02 +0000)]
* ldlang.c (lang_memory_region_lookup): Don't use the first region
as the default region. Create a new region instead.
Jim Wilson [Thu, 31 Aug 1995 19:59:59 +0000 (19:59 +0000)]
* config/sh/sh.mt (SIM): Add -lm.
Jim Wilson [Thu, 31 Aug 1995 19:37:41 +0000 (19:37 +0000)]
Fix bug in SH3e ftrc instruction.
Ian Lance Taylor [Thu, 31 Aug 1995 17:50:20 +0000 (17:50 +0000)]
Tue Aug 29 19:42:58 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/tc-m68k.c (m68k_ip) [case POST/PRE/BASE]: Fix typo when
looking at outer displacement. Don't set the postindex bit if the
index suppress bit is set (for memory indirect addressing mode).
Ian Lance Taylor [Thu, 31 Aug 1995 16:23:02 +0000 (16:23 +0000)]
* bfd-in.h: Add extern "C" if __cplusplus.
* bfd-in2.h: Rebuild.
PR 7882.
Ian Lance Taylor [Thu, 31 Aug 1995 15:54:27 +0000 (15:54 +0000)]
* coff-mips.c (mips_relocate_section): Don't convert a reloc
against an absolute symbol into a reloc against a section.
PR 7880.
Steve Chamberlain [Thu, 31 Aug 1995 15:05:27 +0000 (15:05 +0000)]
Thu Aug 31 08:00:14 1995 steve chamberlain <sac@slash.cygnus.com>
* coff-arm.c (coff_arm_reloc): Fix common size problem.
(i3coff_object_p): Delete.
Wed Aug 30 20:41:27 1995 steve chamberlain <sac@slash.cygnus.com>
* coff-arm.c (deletemeacoff_arm_reloc): Deleted.
(arm26): Not partial inplace.
* coffcode.h (coff_compute_section_file_positions): Don't
do page aligning if COFF_PAGE_SIZE isn't defined.
* coffswap.h (coff_swap_scnhdr_in): Update image base correctly.
David Edelsohn [Thu, 31 Aug 1995 13:50:56 +0000 (13:50 +0000)]
* config/tc-arm.c (tc_gen_reloc): Delete duplicated code.
David Edelsohn [Thu, 31 Aug 1995 11:10:32 +0000 (11:10 +0000)]
* dlltool.c (run): Add missing 3rd arg to waitpid.
Jeff Law [Thu, 31 Aug 1995 04:22:57 +0000 (04:22 +0000)]
* Makefile.in (run): Link in math library too.
Jeff Law [Thu, 31 Aug 1995 04:21:32 +0000 (04:21 +0000)]
* interp.c (FPSCR, FPUL): Define.
(struct save_state): Add fields for floating point registers,
FPSCR and FPUL.
(sim_resume): Add 'F' for accessing floating point registers
in the save state structure.
* gencode.c: Add sh3e opcodes.
(gensym): Define a buffer for int<->fp conversions.
First cut at simulating sh3e instructions. Basic stuff should work;
instructions using fpul and fpscr are completely untested... Sanitized
away for now (sh3e).
Jason Molenda [Thu, 31 Aug 1995 04:08:15 +0000 (04:08 +0000)]
* configure.in: treat i386-win32 canadian cross the same as
i386-go32 canadian cross.
Jeff Law [Thu, 31 Aug 1995 04:07:00 +0000 (04:07 +0000)]
* gencode.c (gensim): abort if an unknown opcode is encountered.
Ian Lance Taylor [Thu, 31 Aug 1995 03:53:43 +0000 (03:53 +0000)]
* app.c (do_scrub_chars): Free saved_input when the from buffer
exactly fills the to buffer.
Steve Chamberlain [Thu, 31 Aug 1995 03:47:46 +0000 (03:47 +0000)]
Wed Aug 30 20:41:27 1995 steve chamberlain <sac@slash.cygnus.com>
* coff-arm.c (deletemeacoff_arm_reloc): Deleted.
(arm26): Not partial inplace.
* coffcode.h (coff_compute_section_file_positions): Don't
do page aligning if COFF_PAGE_SIZE isn't defined.
* coffswap.h (coff_swap_scnhdr_in): Update image base correctly.
Kung Hsu [Thu, 31 Aug 1995 01:21:57 +0000 (01:21 +0000)]
* rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
conform to GNU coding standards.
David Edelsohn [Wed, 30 Aug 1995 23:17:12 +0000 (23:17 +0000)]
* sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
sparc64 insns.
David Edelsohn [Wed, 30 Aug 1995 23:11:09 +0000 (23:11 +0000)]
(synth64.[ds]): New testcase.
David Edelsohn [Wed, 30 Aug 1995 20:58:35 +0000 (20:58 +0000)]
(prefetch.[sd]): New testcase.
David Edelsohn [Wed, 30 Aug 1995 20:57:07 +0000 (20:57 +0000)]
sparc prefetch insn stuff.
David Edelsohn [Wed, 30 Aug 1995 20:55:51 +0000 (20:55 +0000)]
* sparc-opc.c (sparc_opcodes, prefetcha insn): Fix.
(lookup_{name,value}): New functions.
(prefetch_table): New static local.
(sparc_{encode,decode}_prefetch): New functions.
* sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
David Edelsohn [Wed, 30 Aug 1995 20:49:28 +0000 (20:49 +0000)]
* config/tc-sparc.c (parse_keyword_arg, parse_const_expr_arg): New fns.
(sparc_ip): Call them for asi, membar, and prefetch parsing.
Jim Wilson [Wed, 30 Aug 1995 18:13:26 +0000 (18:13 +0000)]
Add some blank lines to improve readability.
Jim Wilson [Wed, 30 Aug 1995 18:10:51 +0000 (18:10 +0000)]
Correct comment on first line of file.
Steve Chamberlain [Wed, 30 Aug 1995 18:03:16 +0000 (18:03 +0000)]
* Makefile.in (TOOL_PROGS): Include dlltool if needed.
David Edelsohn [Wed, 30 Aug 1995 06:03:39 +0000 (06:03 +0000)]
Keep the sparc subdir.
David Edelsohn [Wed, 30 Aug 1995 01:34:34 +0000 (01:34 +0000)]
(membar): New testcase.
David Edelsohn [Wed, 30 Aug 1995 01:02:59 +0000 (01:02 +0000)]
* disassemble.c (disassembler): Handle bfd_mach_sparc64.
Steve Chamberlain [Tue, 29 Aug 1995 23:27:54 +0000 (23:27 +0000)]
Put _iname in idata$7.
Steve Chamberlain [Tue, 29 Aug 1995 23:26:43 +0000 (23:26 +0000)]
* coffswap.h (coff_swap_scnhdr_in): Don't always add IMAGE_BASE.
Swap in PE header.
* coffcode.h (coff_write_object_contents): Remove #if0ed code
Only remove empty sections in PE inmage files.
David Edelsohn [Tue, 29 Aug 1995 22:48:54 +0000 (22:48 +0000)]
* config/tc-sparc.c (sparc_ip): Clean up ASI support.
David Edelsohn [Tue, 29 Aug 1995 22:44:00 +0000 (22:44 +0000)]
* sparc-opc.c (asi): New static local.
(sparc_{encode,decode}_asi): New functions.
* sparc-dis.c (print_insn): Call sparc_decode_asi.
David Edelsohn [Tue, 29 Aug 1995 22:36:32 +0000 (22:36 +0000)]
* sparc.h (sparc_{encode,decode}_asi): Declare.
David Edelsohn [Tue, 29 Aug 1995 22:30:13 +0000 (22:30 +0000)]
Start of sparc generic testsuite.
asi.[ds]: new test.
Steve Chamberlain [Tue, 29 Aug 1995 22:28:30 +0000 (22:28 +0000)]
* coff-arm.c (coff_rtype_to_howto): Deal with reloc 11.
* coffcode.h (coff_write_object_contents): Remove #if0ed code
Only remove empty sections in PE inmage files.
Steve Chamberlain [Tue, 29 Aug 1995 21:05:59 +0000 (21:05 +0000)]
Tue Aug 29 13:50:21 1995 steve chamberlain <sac@slash.cygnus.com>
* libbfd.h, bfd-in2.h: regenerated.
* coff-arm.c (aoutarm_std_relo): New entry at 11.
(arm_reloc_type_lookup) : Understand type 11.
* coff-i386.c (howto_table): fix name of rva type.
(coff-i386_rtype_to_howto): Understand R_IMAGEBASE type.
* coffcode.h (sec_to_styp_flags): .edata is data.
(coff_compute_section_file_positions): Get page size right for PE.
(fill_pe_header_info): Fix fields.
(coff_write_object_contents): Remove end_of_image calc.
(_bfd_coff_generate_reloc_section): Remove orphaned comment.
* coffswap.h (coff_swap_scnhdr_in): Don't always add IMAGE_BASE.
(coff_swap_scnhdr_out): Setup PE flags correctly.
* reloc.c (BFD_RELOC_RVA): New field.
Steve Chamberlain [Tue, 29 Aug 1995 20:29:04 +0000 (20:29 +0000)]
Tue Aug 29 13:25:21 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (rva): Deleted.
(rvaafter, rva_before): Use new assembler pseudo.
(flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
(gen_exp_file): Don't generate .edata if no need.
(gen_lib_file): Don't make timestamp.
(workout_prefix): Fix memory initialization bug.
(usage): Tidy up, delete many single char options.
(main): rva option is gone.
Steve Chamberlain [Tue, 29 Aug 1995 20:28:15 +0000 (20:28 +0000)]
Tue Aug 29 13:20:27 1995 steve chamberlain <sac@slash.cygnus.com>
* read.c (potable): Rva is new entry.
(cons_worker): New, split from cons. Handles rva.
(cons, s_rva): Call cons_worker.
* read.h (s_rva): New declaration.
* write.c (fixup_segment): Don't throw away rva relocs.
* config/tc-arm.c (md_apply_fix, tc_gen_reloc): Handle RVA.
* config/tc-i386.c (tc_coff_fix2type): Handle RVA.
* config/tc-i386.h (TC_COUNT_RELOC): Remember RVAs.
(TC_RVA_RELOC): New definition.
Kung Hsu [Tue, 29 Aug 1995 00:11:16 +0000 (00:11 +0000)]
* remote.c (remote_wait): Revert 19 July my change which should be
customer specific.
Fred Fish [Mon, 28 Aug 1995 09:44:14 +0000 (09:44 +0000)]
* gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
compiled test.
* gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
Add mips-sgi-irix5* xfail for not gcc compiled.
* gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci.
* gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
"p top", "whatis top", "p middle", and "whatis middle".
* gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
"whatis signed char" for not gcc compiled.
* gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
"set variable signed char=-1 (-1)" and
"set variable signed char=0xFF (0xFF)" for not gcc compiled.
* gdb.base/funcargs.exp (float_and_integral_args):
Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
Add mips-sgi-irix* xfail when not gcc compiled for
"continue to call2b".
Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
"continue to call2g".
(discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
"backtrace from call6a"
(shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
"backtrace from call7k".
Add mips-sgi-irix5* xfail when not gcc compiled for
"backtrace from call7a".
(localvars_after_alloca): Fix gdb_test cmds for
"print * after runto ...".
Remove rs6000-*-* xfails for
"print i after runto localvars_after_alloca" and
"print l after runto localvars_after_alloca"
for all compilers.
* gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
when not compiled with gcc, for:
"print signed char == (minus)",
"print signed char != (minus)",
"print signed char < (minus)",
"print signed char > (minus)".
* gdb.base/callfuncs.exp (do_function_calls):
Add mips-sgi-irix* xfail, when compiled with native compiler, for
"call inferior func with struct - returns char *".
* gdb.base/return.exp (return_tests): Change xfail for
"correct value returned double test" to include Solaris 2.4.
* gdb.base/funcargs.exp (float_and_integral_args):
Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
David Edelsohn [Mon, 28 Aug 1995 00:45:44 +0000 (00:45 +0000)]
* config/tc-arm.c (do_swi): Allow optional leading '#'.
Ian Lance Taylor [Sun, 27 Aug 1995 01:18:28 +0000 (01:18 +0000)]
* config/te-delta.h: Include obj-format.h.
* config/te-sco386.h: Likewise.
* config/te-sysv32.h: Likewise.
Ian Lance Taylor [Sun, 27 Aug 1995 00:33:56 +0000 (00:33 +0000)]
* app.c (scrub_file): Remove.
(scrub_from_file, scrub_to_file): Remove.
(scrub_string, scrub_last_string): Remove.
(scrub_from_string, scrub_to_string): Remove.
(saved_input, saved_input_len): New static variables.
(struct app_saved): Remove scrub_string, scrub_last_string, and
scrub_file fields. Add saved_input and saved_input_len fields.
(app_push): Adjust saved fields for changes in struct app_save.
Initialize state and saved_input.
(app_pop): Adjust saved fields for changes in struct app_save.
(do_scrub_chars): Rename from do_scrub_next_char and rewrite to
process a buffer at a time rather than a character at a time.
(main, as_warn): Remove obsolete testing code.
* as.h (do_scrub_next_char): Don't declare.
(do_scrub_chars): Declare.
(scrub_from_file, scrub_from_string): Don't declare.
(scrub_to_file, scrub_to_string): Don't declare.
* input-file.c (input_file_get): New static function.
(input_file_give_next_buffer): Call do_scrub_chars rather than
do_scrub_next_char.
* read.c (scrub_string, scrub_string_end): New static variables.
(scrub_from_string): New static function.
(read_a_source_file): Call do_scrub_chars rather than
do_scrub_next_char.
(and comment change in input-scrub.c)
Peter Schauer [Sat, 26 Aug 1995 07:36:45 +0000 (07:36 +0000)]
* gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
enumeration bitfields if compiling with GNU C.
* lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path
to empty' prompt.
Peter Schauer [Sat, 26 Aug 1995 07:35:13 +0000 (07:35 +0000)]
* mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
Determine signedness of enum type from enumerators.
(parse_type): Handle btIndirect types, handle fBitfield for
some non-member types.
(upgrade_type): Use TYPE_FLAG_TARGET_STUB for arrays with
unknown length.
(cross_ref): Handle stIndirect forward reference to btTypedef.
* stabsread.c (read_enum_type): Determine signedness of enum
type from enumerators.
* top.c (execute_command): Remove trailing whitespace from
command arguments, except for `set' and `complete' commands.
(validate_comname): Allow underscores in user defined command
names.
* values.c (modify_field): Change `Value does not fit in %d bits'
error to a warning. Exclude sign extension bits of negative field
values from fit check.
Michael Meissner [Fri, 25 Aug 1995 16:05:32 +0000 (16:05 +0000)]
Only build PowerPC simulator if target is powerpc*-*-eabisim
Ian Lance Taylor [Fri, 25 Aug 1995 02:00:39 +0000 (02:00 +0000)]
* gasp.c (as_abort): New function.
* sb.c (sb_build): Revert yesterday's patch.
Ian Lance Taylor [Fri, 25 Aug 1995 01:51:14 +0000 (01:51 +0000)]
* Makefile.in (gasp.new): Depend upon ../libiberty/libiberty.a.
Just link against libiberty, not against $(LIBS).
Michael Meissner [Thu, 24 Aug 1995 18:57:12 +0000 (18:57 +0000)]
Add powerpc*-eabisim support.
Ian Lance Taylor [Wed, 23 Aug 1995 23:50:35 +0000 (23:50 +0000)]
* ecoff.c (_bfd_ecoff_slurp_symbolic_info): Add parentheses to FIX
expression to avoid compiler bug on HP-UX 9.01.
Ian Lance Taylor [Wed, 23 Aug 1995 22:21:51 +0000 (22:21 +0000)]
* sb.c (sb_build): Undefine abort before calling it, since gasp
does not provide as_abort.
Michael Meissner [Wed, 23 Aug 1995 21:06:36 +0000 (21:06 +0000)]
Add PowerPC simulator from Andrew Cagney <cagney@highland.com.au>
Michael Meissner [Wed, 23 Aug 1995 20:59:06 +0000 (20:59 +0000)]
Link in PowerPC simulator.
Steve Chamberlain [Wed, 23 Aug 1995 16:51:07 +0000 (16:51 +0000)]
* coffcode.h (pe_value): Unansify.