Ian Lance Taylor [Tue, 20 Oct 1998 15:33:27 +0000 (15:33 +0000)]
Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* doc/c-i386.texi: Replace occurences of "opcode" with
"instruction mnemonic", "instruction", or "mnemonic" when
referring to the name of an instruction. Use "opcode" when
referring to the sequence of machine bytes.
* config/tc-i386.c (opcode_chars): Rename to mnemonic_chars.
(is_opcode_char): Rename to is_mnemonic_char.
(md_assemble and i386_operand): Correct error messages from
"opcode" to "instruction mnemonic"
Rename throughout opcode[] -> mnemonic[], opp -> mnem_p,
MAX_OPCODE_SIZE -> MAX_MNEM_SIZE,
DWORD_OPCODE_SUFFIX -> DWORD_MNEM_SUFFIX,
WORD_OPCODE_SUFFIX -> WORD_MNEM_SUFFIX,
BYTE_OPCODE_SUFFIX -> BYTE_MNEM_SUFFIX,
SHORT_OPCODE_SUFFIX -> SHORT_MNEM_SUFFIX
LONG_OPCODE_SUFFIX -> LONG_MNEM_SUFFIX
* config/tc-i386.h (*_MNEM_SUFFIX): Rename from *_OPCODE_SUFFIX.
Ian Lance Taylor [Tue, 20 Oct 1998 15:24:45 +0000 (15:24 +0000)]
Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (i386_operand): Check for garbage after
register name.
Ian Lance Taylor [Tue, 20 Oct 1998 14:51:09 +0000 (14:51 +0000)]
* config/tc-i386.c (md_apply_fix3): Change handling of PCREL reloc
for BFD_ASSEMBLER to only change value when COFF if TE_PE.
Catherine Moore [Tue, 20 Oct 1998 01:28:46 +0000 (01:28 +0000)]
Add vtable relocs.
Catherine Moore [Tue, 20 Oct 1998 01:26:55 +0000 (01:26 +0000)]
* config/tc-sh.h (obj_fix_adjustable): Define.
* config/tc-sh.c (sh_force_relocation): Handle VT relocs.
(md_apply_fix): Likewise.
(tc_gen_reloc): Likewise.
(sh_fix_adjustable): New.
Doug Evans [Mon, 19 Oct 1998 23:33:40 +0000 (23:33 +0000)]
* sim-main.h: #include cpu-opc.h.
* arch.c,arch.h,decode.c,extract.c,model.c,sem.c: Regenerate
to get #include cleanup.
* decodex.c,extractx.c,modelx.c: Ditto.
Doug Evans [Mon, 19 Oct 1998 22:45:16 +0000 (22:45 +0000)]
* Makefile.in (all-cgen): Depend on all-libiberty.
Jason Molenda [Mon, 19 Oct 1998 22:25:28 +0000 (22:25 +0000)]
1998-10-19 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
* configure: Regenerated.
Geoff just removed the AM_EXEEXT definition from ../binutils/aclocal.m4
so we would have been hosed in the near future.
Doug Evans [Mon, 19 Oct 1998 21:14:14 +0000 (21:14 +0000)]
* Makefile.in (SIM_EXTRA_DEPS): Replace cgen headers with
CGEN_INCLUDE_DEPS.
(M32RBF_INCLUDE_DEPS): Define.
(m32r .o's): Depend on it.
(mloop.c): Update call to genmloop.sh.
* cpu.h,cpuall.h: Regenerate.
* sim-main.h: Delete inclusion of cpu.h,decode.h, moved to cpuall.h.
#include cgen-scache.h,cgen-cpu.h.
* tconfig.in (WITH_FOO semantic macros): Delete.
* Makefile.in (M32RXF_INCLUDE_DEPS): Define.
(m32rx .o's): Depend on it.
(mloopx.c): Update call to genmloop.sh.
* cpux.h: Regenerate.
Doug Evans [Mon, 19 Oct 1998 21:00:59 +0000 (21:00 +0000)]
* Make-common.in (CGEN_INCLUDE_DEPS): Define.
(sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
(sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
(cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
CGEN_INCLUDE_DEPS.
* cgen-cpu.h: New file.
* cgen-engine.h: New file.
* cgen-scache.h: New file.
* cgen-sim.h: Delete portions moved to new files.
* genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
rather than sending result to stdout.
Doug Evans [Mon, 19 Oct 1998 20:15:24 +0000 (20:15 +0000)]
* cgen-asm.in (insert_1): New function.
(insert_normal): Progress on handling ! CGEN_INT_INSN_P.
(insert_insn_normal): Update handling of CGEN_INT_INSN_P.
(@arch@_cgen_assemble_insn): Update type of `buf' arg.
* cgen-dis.in (extract_1): New function.
(extract_normal): buf_ctrl renamed to ex_info, update type.
Progress on handling of CGEN_INT_INSN_P.
(extract_insn_normal): buf_ctrl renamed to ex_info, update type.
Update handling of CGEN_INT_INSN_P. Handle errors from
@arch@_cgen_extract_operand.
(print_insn): Renamed from print_int_insn. Handle ! CGEN_INT_INSN_P.
(default_print_insn): Renamed from print_insn.
Handle ! CGEN_INT_INSN_P.
(print_insn_@arch@): Handle error returns from print_insn.
* cgen-opc.in (cgen_get_insn_value, cgen_put_insn_value): New fns.
(@arch@_cgen_lookup_insn): Update handling of CGEN_INT_INSN_P.
(@arch@_cgen_lookup_get_insn_operands): Ditto.
* m32r-opc.c,m32r-opc.h,m32r-asm.c,m32r-dis.c: Regenerate.
Doug Evans [Mon, 19 Oct 1998 19:50:37 +0000 (19:50 +0000)]
* cgen.h (CGEN_INSN_INT): New typedef.
(CGEN_INT_INSN_P): Renamed from CGEN_INT_INSN.
(CGEN_INSN_BYTES): Renamed from cgen_insn_t.
(CGEN_INSN_BYTES_PTR): New typedef.
(CGEN_EXTRACT_INFO): New typedef.
(cgen_insert_fn,cgen_extract_fn): Update.
(cgen_opcode_table): New member `insn_endian'.
(assemble_insn,lookup_insn,lookup_get_insn_operands): Update.
(insert_operand,extract_operand): Update.
(cgen_get_insn_value,cgen_put_insn_value): Add prototypes.
Doug Evans [Mon, 19 Oct 1998 19:45:40 +0000 (19:45 +0000)]
* cgen.c (gas_cgen_finish_insn): Update handling of CGEN_INT_INSN_P.
* cgen.h (gas_cgen_finish_insn): Update prototype.
* config/tc-m32r.c (m32r_insn): CGEN_INT_INSN -> CGEN_INT_INSN_P.
cgen_insn_t -> CGEN_INSN_INT.
(make_parallel): Update handling of CGEN_INT_INSN_P.
(assemble_parallel_insn): Ditto.
(target_make_parallel): New function.
(md_assemble): Use it.
Catherine Moore [Mon, 19 Oct 1998 18:21:05 +0000 (18:21 +0000)]
Fix typo.
Felix Lee [Mon, 19 Oct 1998 16:58:17 +0000 (16:58 +0000)]
* acinclude.m4: undo previous gettext change
* aclocal.m4: rebuild with right version of aclocal.
Felix Lee [Mon, 19 Oct 1998 01:52:10 +0000 (01:52 +0000)]
bfd:
* acinclude.m4, aclocal.m4: move gettext-related fragments from
aclocal.m4 to acinclude.m4, so they don't get lost.
* elfcore.h: rewrite for better corefile support.
* elf.c (elfcore_*): new functions.
* elf-bfd.h (elf_obj_tdata): new structure members.
* acconfig.h, acinclude.m4, configure.in: add feature-tests for
flavor of procfs.
* aclocal.m4, config.in, configure, Makefile.in: regenerated.
include:
* common.h (NT_PSTATUS, NT_FPREGS, NT_PSINFO,
NT_LWPSTATUS,NT_LWPSINFO): added.
* internal.h (Elf_Internal_Note): new structure members.
Jeff Law [Mon, 19 Oct 1998 00:50:59 +0000 (00:50 +0000)]
* config/tc-sh.c (md_assemble): Make sure the entire opcode is
converted into lower case.
pr17413
Jeff Law [Mon, 19 Oct 1998 00:36:28 +0000 (00:36 +0000)]
* config.if (cxx_interface, libstdcxx_interface): Do not try to set
these if the appropriate directories and files to not exist.
Felix Lee [Sat, 17 Oct 1998 18:55:43 +0000 (18:55 +0000)]
fix typo
Felix Lee [Sat, 17 Oct 1998 17:40:35 +0000 (17:40 +0000)]
* core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.
Michael Snyder [Fri, 16 Oct 1998 22:35:41 +0000 (22:35 +0000)]
Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c (decode_prologue): Return failure if we reach
the end of the function without finding the end of the prologue.
Jason Molenda [Fri, 16 Oct 1998 21:45:06 +0000 (21:45 +0000)]
1998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)
* command.c copying.c copying.awk core-aout.c core-regset.c
corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
symmisc.c valarith.c: Add prototypes.
* defs.h: Add prototype for utils.c::do_run_cleanups.
* gdbtypes.c: Add prototypes.
(make_pointer_type): Add braces to remove nested if-else ambiguity.
(make_reference_type): Ditto.
* printcmd.c (printf_command): Initialize 'f' and 'string' at
function startup to suppress possibly-used-before-initialized warning.
* remote-utils.c: Add prototypes.
(sr_pollchar): Add braces to remove nested if-else ambiguity.
* ser-tcp.c: Add prototypes.
(wait_for): Add braces to remove nested if-else ambiguity.
(tcp_readchar): Ditto.
* ser-unix.c: Add prototypes.
(get_tty_state): Don't define errno here.
(get_tty_state): Don't define errno here.
(hardwire_readchar): Only define 't' if we are compiling in a Cygwin
environment.
* symtab.c: Add prototypes.
(find_methods): Add braces to remove nested if-else ambiguity.
(search_symbols): Set 'i' to an initial value to suppress a
possibly-used-before-initialized warning.
* valops.c: Add prototypes.
(value_cast): Set 'eltype2' to an initial value to suppress a
possibly-used-before-initialized warning.
(value_of_variable): Add braces to remove nested if-else ambiguity.
(value_of_this): Ditto.
* valprint.c: Add prototypes.
(print_floating): Add braces to remove nested if-else ambiguity.
Looks like a big change, but it is really just a lot of small stuff.
In the cases where GCC was flagging a possible use-before-initialized
warning on variables, it turned out that these were being used properly
but GCC couldn't see that.
Catherine Moore [Fri, 16 Oct 1998 19:15:05 +0000 (19:15 +0000)]
Add vtable relocs.
Catherine Moore [Fri, 16 Oct 1998 19:13:41 +0000 (19:13 +0000)]
* elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
and R_M32R_GNU_VTENTRY.
(elf_backend_can_gc_sections): Define.
(m32r_elf_check_relocs): New.
(m32r_elf_gc_mark_hook): New.
(m32r_elf_gc_sweep_hook): New.
(m32r_elf_relocate_section): Handle VT relocs.
Catherine Moore [Fri, 16 Oct 1998 18:45:25 +0000 (18:45 +0000)]
* cgen.c (gas_cgen_md_apply_fix3): Handle VTABLE relocs.
(gas_cgen_tc_gen_reloc): Likewise.
* config/tc-m32r.h (obj_fix_adjustable): Define.
* config/tc-m32r.c (m32r_fix_adjustable): New.
(m32r_force_relocation): Handle VTABLE relocs.
Stan Shebs [Fri, 16 Oct 1998 02:53:37 +0000 (02:53 +0000)]
* tm-sp64.h (SETUP_ARBITRARY_FRAME, RAME_SPECIFICATION_DYADIC):
Remove, nevermore used.
Andrew Cagney [Thu, 15 Oct 1998 06:59:40 +0000 (06:59 +0000)]
command.c: Include "wait.h" after, rather than before, <wait.h>.
"wait.h" was defining all WIF* macro's instead of filling in those
that <wait.h> missed. Stops heaps of warnings from <wait.h>
re-defining WIF*s defined in "wait.h".
Doug Evans [Thu, 15 Oct 1998 00:25:48 +0000 (00:25 +0000)]
* configure.in (enable_cgen_maint): Fix typo.
Jason Molenda [Wed, 14 Oct 1998 23:44:13 +0000 (23:44 +0000)]
1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
* defs.h: Move _initialize_printcmd, _initialize_stack,
_initialize_blockframe out of here and in to their respective .c files.
* blockframe.c: Move _initialize_blockframe prototype to here.
* printcmd.c: Move _initialize_printcmd prototype to here.
* stack.c: Move _initialize_stack prototype to here.
* source.c, symtab.h: Move _initialize_source prototype to the .c file.
* values.c, value.h: Move _initialize_values prototype to the .c file.
* gdbthread.h, thread.c: Move _initialize_thread prototype to the .c
file.
* breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype
to the .c file.
* abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
Standardize comments for the prototype section of these files.
* configure.in: Look in libc for wctype before looking for it in libc.
The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem
where an empty stub library (libw) causes a core dump when we call vasprintf
(e.g. `info br') in the final linked gdb.
Tom Tromey [Wed, 14 Oct 1998 17:28:52 +0000 (17:28 +0000)]
Updated .Sanitize for qthreads
Jeff Law [Wed, 14 Oct 1998 16:30:38 +0000 (16:30 +0000)]
Wed Oct 14 10:29:06 1998 Jeffrey A Law (law@cygnus.com)
* Makefile.in (DEVO_SUPPORT): Add config.if.
Andrew Cagney [Wed, 14 Oct 1998 09:41:29 +0000 (09:41 +0000)]
Results of first-pass at looking for problems with making the target
architecture a vector.
Felix Lee [Wed, 14 Oct 1998 01:15:01 +0000 (01:15 +0000)]
* sol-thread.c (ps_pstop, etc): simple test for proc_service.h
version didn't work for sol2.6; pushed it to autoconf.
* configure.in (gdb_cv_proc_service_is_old): new test.
* acconfig.h (PROC_SERVICE_IS_OLD): new define.
* configure, config.in: regenerate.
Jason Molenda [Wed, 14 Oct 1998 01:15:00 +0000 (01:15 +0000)]
1998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)
* blockframe.c (find_pc_sect_partial_function): Add braces to avoid
possible nested-if confusion.
* breakpoint.c (breakpoint_here_p): Ditto.
(breakpoint_inserted_here_p): Ditto.
(breakpoint_thread_match): Ditto.
* gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
* gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability
prototypes.
* symtab.h: Add prototype for _initialize_source.
* value.h: Add prototype for _initialize_value.
* defs.h: Include sys/types.h or stddef.h to get size_t.
(make_cleanup): Add make_cleanup_func typedef and switch to using
a prototype for this function.
(mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
using mmalloc.
* ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c dwarf2read.c
dwarfread.c elfread.c eval.c exec.c gdbtk-cmds.c gdbtk.c infcmd.c
infrun.c mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c valops.c:
Cast parameters passed to make_cleanup to use the new
make_cleanup_func typedef.
More warning cleanups. There are still a bunch of places where the first
argument to make_cleanup is not cast to (make_cleanup_func); these are
either due to the function fitting the make_cleanup_func specification
already (e.g. free()) or they are in files that weren't compiled when
I did my make on a Linux native system. Bwahahaha. You can see them
like this:
grep make_cleanup\ * | grep -v make_cleanup_func
I'll surely go back and clean up the remaining suspicious calls in
GDB one of these days. :-)
Andrew Cagney [Wed, 14 Oct 1998 00:04:03 +0000 (00:04 +0000)]
Minor typos.
Jason Molenda [Tue, 13 Oct 1998 22:18:49 +0000 (22:18 +0000)]
Whoa, somehow this ChangeLog entry didn't get committed along with the
actual changes. Here is the text:
1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* Makefile.in (AWK): Unused; remove.
* configure.in: Remove unused autoconf checks for MINIX, memcpy,
poll, select, strings.h.
* config.in: Regenerated.
* configure: Regenerated.
Jeff Law [Tue, 13 Oct 1998 15:38:40 +0000 (15:38 +0000)]
* config.sub: Bring back lost sparcv9.
Frank Ch. Eigler [Tue, 13 Oct 1998 11:51:36 +0000 (11:51 +0000)]
* Doh, backing out premature devo patch re PR 17559.
Frank Ch. Eigler [Tue, 13 Oct 1998 11:38:49 +0000 (11:38 +0000)]
* Patch for PR 17559, devo style.
start-sanitize-r5900
Tue Oct 13 12:47:42 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
* mips-opc.c: Update COP2 operand formats for
vrnext and vrget instructions.
end-sanitize-r5900
Jason Molenda [Tue, 13 Oct 1998 03:15:07 +0000 (03:15 +0000)]
1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* Makefile.in (AWK): Unused; remove.
* configure.in: Remove unused autoconf checks for MINIX, memcpy,
poll, select, strings.h.
* config.in: Regenerated.
* configure: Regenerated.
Felix Lee [Tue, 13 Oct 1998 00:55:20 +0000 (00:55 +0000)]
* sol-thread.c (ps_pstop, etc): different solaris versions have
slightly different prototypes in proc_service.h; compensate.
Nick Clifton [Tue, 13 Oct 1998 00:45:27 +0000 (00:45 +0000)]
Fix PR17762 - convert second opcode of a parallel insn to lower case before
parsing.
Jason Molenda [Tue, 13 Oct 1998 00:35:48 +0000 (00:35 +0000)]
1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Check for sys/debugreg.h, asm/debugreg.h.
* i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
present.
This is to work around a conflict where the Linux 2.1.x kernel and glibc
2.0.x are not in sync; including <sys/debugreg.h> will result in an error.
With luck, these losers will get their act together and we can trash
this hack in the near future.
Nick Clifton [Mon, 12 Oct 1998 21:25:25 +0000 (21:25 +0000)]
Fix fise of R_M32R_18_PCREL relocation.
Nick Clifton [Mon, 12 Oct 1998 21:20:23 +0000 (21:20 +0000)]
Cope with missing hi or lo relocs.
Nick Clifton [Mon, 12 Oct 1998 18:09:31 +0000 (18:09 +0000)]
Fix for PR 17008 - ignore conflicts when explicitly parallel instructions
both set bits in the PSW as side effects.
Jeff Law [Mon, 12 Oct 1998 17:30:40 +0000 (17:30 +0000)]
* m10300-opc.c: DSP instrutions which only write to one general
register have no restrictions on matching operands.
Jeff Law [Mon, 12 Oct 1998 16:46:31 +0000 (16:46 +0000)]
* m10300-opc.c (lsr_add): Fix typo for "lsr_add imm,reg,reg,reg" case.
pr17742
Andrew Cagney [Mon, 12 Oct 1998 02:54:58 +0000 (02:54 +0000)]
* configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
(ChangeLog entry already checked in).
Peter Schauer [Sun, 11 Oct 1998 19:54:57 +0000 (19:54 +0000)]
* dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
address range of a compilation unit without children.
* mdebugread.c (parse_partial_symbols): Fix handling of stabs
continuations, use xmalloc and xrealloc.
Mark Alexander [Sat, 10 Oct 1998 01:17:07 +0000 (01:17 +0000)]
* rs6000-tdep.c: Don't include tm.h twice.
Doug Evans [Sat, 10 Oct 1998 01:07:15 +0000 (01:07 +0000)]
* interp.c: #include "itable.h" if WITH_IGEN.
(get_insn_name): New function.
(sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS.
* sim-main.h (MAX_INSNS,INSN_NAME): Delete.
Doug Evans [Fri, 9 Oct 1998 23:43:28 +0000 (23:43 +0000)]
Add pseudo-basic-block execution support.
* Makefile.in (SIM_OBJS): Add sim-reg.o, cgen-run.o, sim-stop.o.
(SIM_EXTRA_DEPS): Add include/opcode/cgen.h.
(INCLUDE_DEPS): Delete cpu-sim.h, include/opcode/cgen.h.
(mloop.c): Build pseudo-basic-block version. Depend on stamp-cpu.
(stamp-decode): Delete, build decode files with other cpu files.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* m32r-sim.h (M32R_MISC_PROFILE): New members load_regs,
load_regs_pending.
* m32r.c (m32rbf_fetch_register): Renamed from m32rb_fetch_register.
(m32rbf_store_register,m32rbf_h_cr_get,m32rbf_h_cr_set,
m32rbf_h_psw_get,m32rbf_h_psw_set,m32rbf_h_accum_get,
m32rbf_h_accum_set): Likewise.
(m32r_model_{init,update}_insn_cycles): Delete.
(m32rbf_model_insn_{before,after}): New fns.
(m32r_model_record_cti,m32r_model_record_cycles): Delete.
(m32rb_model_mark_get_h_gr,m32rb_model_mark_set_h_gr): Delete.
(m32rb_model_mark_busy_reg,m32rb_model_mark_unbusy_reg): Delete.
(check_load_stall): New fn.
(m32rbf_model_m32r_d_u_{exec,cmp,mac,cti,load,store}): New fns.
(m32rbf_model_test_u_exec): New fn.
* mloop.in: Rewrite, use pbb support.
* sim-if.c (sim_stop,sim_sync_stop,sim_resume): Delete.
(sim_fetch_register,sim_store_register): Delete.
* sim-main.h (CIA_GET,CIA_SET): Fix.
(SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Delete.
* tconfig.in (WITH_SCACHE_PBB): Define.
(WITH_SCACHE_PBB_M32RBF): Define.
* traps.c (sim_engine_invalid_insn): Renamed from ..._illegal_....
(m32r_trap): Pass pc to sim_engine_halt.
* configure.in (SIM_AC_OPTION_SCACHE): Change 1024 to 16384.
* configure: Regenerate.
start-sanitize-m32rx
* Makefile.in (M32RX_OBJS): Delete semx.o, add extract.o.
(mloopx.c): Build pseudo-basic-block version. Depend on stamp-xcpu.
(semx.o): Delete.
(extractx.o): Add.
(stamp-xdecode): Delete, build decode files with other cpu files.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c: Regenerate.
* readx.c: Delete.
* semx.c: Delete.
* extractx.c: New file.
* semx-switch.c: New file.
* m32r-sim.h (BRANCH_NEW_PC): Delete.
(SEM_SKIP_INSN): New macro.
* m32rx.c (m32rxf_fetch_register): Renamed from m32rx_fetch_register.
(m32rxf_store_register,m32rxf_h_cr_get,m32rxf_h_cr_set,
m32rxf_h_psw_get,m32rxf_h_psw_set,m32rxf_h_accum_get,
m32rxf_h_accum_set,m32rxf_h_accums_get,m32rxf_h_accums_set): Likewise.
(m32rxf_model_insn_{before,after}): New fns.
(m32rx_model_mark_get_h_gr,m32rx_model_mark_set_h_gr): Delete.
(m32rx_model_mark_busy_reg,m32rx_model_mark_unbusy_reg): Delete.
(check_load_stall): New fn.
(m32rxf_model_m32rx_u_{exec,cmp,mac,cti,load,store}): New fns.
* mloopx.in: Rewrite, use pbb support.
* tconfig.in (WITH_SCACHE_PBB_M32RXF): Define.
(WITH_SEM_SWITCH_FULL): Change from 0 to 1.
end-sanitize-m32rx
Doug Evans [Fri, 9 Oct 1998 22:43:05 +0000 (22:43 +0000)]
* Make-common.in (sim-reg.o): New rule.
(cgen-run.o): New rule.
* cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
* cgen-run.c (prime_cpu): New function.
* cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
(scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
mentioned cpu.
(scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
* cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
(CGEN_INSN_VIRTUAL_P): New macro.
(SEM_PC): New typedef.
(SEMANTIC_FN): Change type of result to SEM_PC.
(SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
(IDESC_CTI_P,IDESC_SKIP_P): New macros.
(SCACHE_MAP): New typedef.
(CPU_SCACHE): Add pbb support.
(scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
(SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
(CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
max_slice_insns.
(INSN_NAME): Delete.
(cgen_insn_name): Declare.
(sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
* cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
(first_insn_p): Make static.
(trace_insn): Handle virtual insns specially.
(cgen_trace_printf): Ensure we haven't overflowed the buffer.
* cgen-types.h (UBI): Delete.
(MODE_TYPE): New enum.
(HOSTINT,HOSTUINT,HOSTPTR): Delete.
* cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
(cgen_virtual_opcode_table): New global.
(cgen_insn_name): New function.
(sim_disassemble_insn): Ignore virtual insns.
* genmloop.sh: Delete top level loop generation. Add pbb support.
* sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
(sim_cpu_base): New members max_insns,insn_name,model_data.
(CPU_PC_GET,CPU_PC_SET): New macros.
(sim_pc_get,sim_pc_set): Declare.
* sim-model.c (model_set): Call model init fn.
* sim-model.h (MODEL_FN): New typedef.
(INSN_TIMING): New member model_fn.
(MODEL): New members num,init.
* sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
All callers updated.
(profile_insn_init): New fn.
(profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
Exit early if insn profiling not supported.
(profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
(profile_install): Record profile_insn_init as init fn.
(profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
* sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
(PROFILE_DATA): Delete member exec_time.
Change insn_count to pointer to array, rather than the array.
(sim_profile_print_bar): Declare.
Jeff Law [Fri, 9 Oct 1998 22:18:38 +0000 (22:18 +0000)]
Doug Evans [Fri, 9 Oct 1998 21:15:48 +0000 (21:15 +0000)]
regenerate m32r-opc.c, m32r-opc.h
Jeff Law [Fri, 9 Oct 1998 21:10:04 +0000 (21:10 +0000)]
Catherine Moore [Fri, 9 Oct 1998 21:07:11 +0000 (21:07 +0000)]
* scripttempl/elf.sc: Merge .sdata.* etc sections.
* ldctor.c (ldctor_build_sets): Set SEC_KEEP for
ctor sections.
Keith Seitz [Thu, 8 Oct 1998 23:05:32 +0000 (23:05 +0000)]
* gdbtk-hooks.c (gdbtk_add_hooks): Install a hook for
(new) file_changed_hook.
(gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display
to mimic hook's name.
(gdbtk_file_changed): New hook function.
Keith Seitz [Thu, 8 Oct 1998 23:04:53 +0000 (23:04 +0000)]
* main.c (main): Remove calls to {pre,post}_add_symbol_hooks.
There should be sufficient information/hooks now to eliminate
this hack.
* exec.c (file_command): Add a new hook here to inform ui's
when the exec file has changed. Adding it here allows the
ui to be informed after symbol reading.
* gdbcore.h: Add declaration of file_changed_hook.
Geoffrey Noer [Thu, 8 Oct 1998 22:47:18 +0000 (22:47 +0000)]
Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: call AC_EXEEXT instead of AM_EXEEXT and
AM_CYGWIN32.
* aclocal.m4: remove local AM_EXEEXT/AM_CYGWIN32 macros.
* configure: regenerate
Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
From Mumit Khan <khan@xraylith.wisc.edu>:
* dlltool.c (scan_all_symbols): Don't re-export symbols exported
by other DLLs.
Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
* Makefile.am (BUILD_DLLWRAP): Add.
(BUILD_DLLWRAP, DLLWRAP_PROG): Add.
(bin_PROGRAMS): Add dllwrap.
* Makefile.in: regenerate with automake
From Mumit Khan <khan@xraylith.wisc.edu>:
* dllwrap.c: New file from dllhelpers v0.2.1.
(print_version): New function.
(long_options): Add --version.
(main): Handle.
* dyn-string.h, dyn-string.c: New files from egcs-1.1/gcc.
* configure.in (BUILD_DLLWRAP): Add.
* configure: Regenerate.
Michael Snyder [Thu, 8 Oct 1998 22:45:53 +0000 (22:45 +0000)]
*** empty log message ***
Jason Molenda [Thu, 8 Oct 1998 22:33:29 +0000 (22:33 +0000)]
Forgot to remove this file from .Sanitize.
Nick Clifton [Thu, 8 Oct 1998 17:55:58 +0000 (17:55 +0000)]
Apply patches from PRs 16299, 17008 and 17140
Nick Clifton [Thu, 8 Oct 1998 17:19:55 +0000 (17:19 +0000)]
Ooops - failed to check in first part of patch for PR 17438
Mark Alexander [Thu, 8 Oct 1998 15:59:23 +0000 (15:59 +0000)]
* rs6000-tdep.c (get_saved_register): Define only if
USE_GENERIC_DUMMY_FRAMES is defined.
Jeff Law [Thu, 8 Oct 1998 12:06:51 +0000 (12:06 +0000)]
* m10300-opc.c (asr, lsr, asl): Fix am33 single bit shift opcode.
pr17706
Andrew Cagney [Thu, 8 Oct 1998 06:45:03 +0000 (06:45 +0000)]
Hand sanitization.
Andrew Cagney [Thu, 8 Oct 1998 05:35:49 +0000 (05:35 +0000)]
Add new config options --enable-carp (tempoary) and
--enable-targets=... (more permenant). Add dummy target `carp' with
associated directory (tempoary).
Expect a rewrite down the track.
Geoffrey Noer [Thu, 8 Oct 1998 02:08:24 +0000 (02:08 +0000)]
update
Doug Evans [Wed, 7 Oct 1998 23:55:42 +0000 (23:55 +0000)]
cgen-run.c: new mainloop for cgen
sim-reg.c: generic sim_fetch/store_register interface fns
Geoffrey Noer [Wed, 7 Oct 1998 21:26:00 +0000 (21:26 +0000)]
fix
Nick Clifton [Wed, 7 Oct 1998 21:10:16 +0000 (21:10 +0000)]
Fix for PR 16299: Do not assume that bad relocations always have an associated symbol.
Geoffrey Noer [Wed, 7 Oct 1998 01:22:11 +0000 (01:22 +0000)]
Tue Oct 6 18:20:10 1998 Geoffrey Noer <noer@cygnus.com>
* Makefile.am (windres_SOURCES): Add resres.c.
(windres_OBJECTS): Add resres.o.
* Makefile.in: regenerate with automake
From Anders Norlander <anorland@hem2.passagen.se>.
* resres.c: New file. Implementation of read_res_file and
write_res_file functions for windres.
* rcparse.y: Handle CONTROL's with named classes.
* resbin.c: Bug in res_to_bin_dialog and bin_to_res_dialog
when dialog is extended: The version and signature fields should
be reversed (despite what the docs say). Id is 32 bits long in
extended dialogs.
* resrc.c (write_rc_dialog): properly print controls with named
classes.
* windres.c (read_res_file, write_res_file): Remove stubs.
* resres.c (write_res): Rename RT_ACCELERATORS to RT_ACCELERATOR.
Geoffrey Noer [Wed, 7 Oct 1998 01:21:02 +0000 (01:21 +0000)]
Tue Oct 6 18:20:10 1998 Geoffrey Noer <noer@cygnus.com>
From Anders Norlander <anorland@hem2.passagen.se>.
* resres.c: New file. Implementation of read_res_file and
write_res_file functions for windres.
* rcparse.y: Handle CONTROL's with named classes.
* resbin.c: Bug in res_to_bin_dialog and bin_to_res_dialog
when dialog is extended: The version and signature fields should
be reversed (despite what the docs say). Id is 32 bits long in
extended dialogs.
* resrc.c (write_rc_dialog): properly print controls with named
classes.
* windres.c (read_res_file, write_res_file): Remove stubs.
* resres.c (write_res): Rename RT_ACCELERATORS to RT_ACCELERATOR.
* Makefile.in (windres_SOURCES): Add resres.c.
(windres_OBJECTS): Add resres.o.
Jason Molenda [Tue, 6 Oct 1998 22:24:40 +0000 (22:24 +0000)]
1998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)
Eliminate a few warnings from the compiler.
* breakpoint.h: Add prototype.
* breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
* configure.in: Check if strdup declaration is necessary.
* configure: Regenerated.
* defs.h: Add prototypes.
* gdb_string.h: Only define strdup if necessary.
* gdbthread.h: Add prototypes.
* printcmd.c: Add prototyptes.
(disassemble_command): Remove unused variable 'section'.
* symtab.c: Add prototypes.
* symtab.h: Include gnu-regex.h, add prototype.
* thread.c: Add prototype.
Catherine Moore [Tue, 6 Oct 1998 14:37:23 +0000 (14:37 +0000)]
* tc-sparc.h (TC_FORCE_RELOCATION): Define.
(elf32_sparc_force_relocation): Declare.
* tc-sparc.c (md_apply_fix3): Handle vtable relocs.
(tc_gen_reloc): Handle vtable relocs.
(elf32_sparc_force_relocation): New.
Gavin Romig-Koch [Tue, 6 Oct 1998 14:01:17 +0000 (14:01 +0000)]
add dwarf1.c
Andrew Cagney [Tue, 6 Oct 1998 07:37:20 +0000 (07:37 +0000)]
Sanitize anything mentioning CARP.
Stan Shebs [Tue, 6 Oct 1998 02:52:31 +0000 (02:52 +0000)]
From David Purves <purves@apogee.com>:
* stabsread.c (rs6000_builtin_type): Create a complex float instead
of an error.
(read_sun_floating_type): Similarly.
(read_range_type): Create a complex float if self_subrange is
true.
Jeff Law [Mon, 5 Oct 1998 20:57:25 +0000 (20:57 +0000)]
* som.c (som_finish_writing): Perform some sanity checks when
writing an executable or shared library.
17075
Stu Grossman [Mon, 5 Oct 1998 19:42:04 +0000 (19:42 +0000)]
* c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print)
ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c
(f_printstr f_printchar emit_char) f-valprint.c (f_val_print) jv-lang.c
(java_printchar java_emit_char) jv-valprint.c (java_value_print
java_val_print) language.c (unk_lang_printchar unk_lang_printstr
unk_lang_emit_char) language.h (struct language_defn LA_PRINT_STRING
LA_EMIT_CHAR) m2-lang.c (m2_printstr m2_printchar emit_char) printcmd.c
(print_formatted) scm-lang.c (scm_printstr) valprint.c
(val_print_string) value.h (val_print_string): Add emit_char routines
to language_desc struct to allow finer control over language specific
character output issues. Add character width arg to printstr routines
to allow handling of wchar_t/Unicode strings. Fix c_printstr to handle
wide characters. Supply width argument to LA_PRINT_STRING and
val_print_string.
* jv-lang.c (java_object_type dynamics_objfile java_link_class_type
get_dynamics_objfile get_java_object_type) jv-lang.h
(get_java_object_type): Make lots of things static.
* expprint.c (dump_prefix_expression dump_subexp): Move opcode name
printing to common routine (op_name).
* (dump_subexp): Add support for OP_SCOPE.
Gavin Romig-Koch [Mon, 5 Oct 1998 16:07:44 +0000 (16:07 +0000)]
* dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
* configure.in (elf): Add dwarf1.lo.
* elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
* elf.c (_bfd_elf_find_nearest_line): Add call to
_bfd_dwarf1_find_nearest_line.
* elf32-mips.c (_bfd_mips_elf_find_nearest_line):
Add call to _bfd_dwarf1_find_nearest_line.
* configure: Rebuilt.
Catherine Moore [Mon, 5 Oct 1998 15:21:26 +0000 (15:21 +0000)]
elflink.h (elf_gc_sections): Do not allow garbage
collection if dynamic sections have been created.
: ----------------------------------------------------------------------
Catherine Moore [Mon, 5 Oct 1998 14:48:32 +0000 (14:48 +0000)]
* ldmain.c (main): Error if --gc-sections and
dyanmic linking.
* scripttempl/v850.sc: Add KEEP attribute to .init,
.fini, .dtors and .ctors. Add .data and .text
wildcards to support section garbage collection.
Catherine Moore [Mon, 5 Oct 1998 14:41:43 +0000 (14:41 +0000)]
Add vtable relocs.
Catherine Moore [Mon, 5 Oct 1998 14:30:25 +0000 (14:30 +0000)]
* symbols.c (S_IS_FUNCTION): New.
* config/tc-v850.h (obj_fix_adjustable): Define.
(TC_FORCE_RELOCATION): Define.
(v850_force_relocation): Declare.
* config/tc-v850.c (tc_gen_reloc): Use offset instead
of fx_addnumber for VTABLE reloc addends.
(md_apply_fix3): Handle VTABLE relocs.
(v850_fix_adjustable): New.
(v850_force_relocation): New.
Catherine Moore [Mon, 5 Oct 1998 14:18:10 +0000 (14:18 +0000)]
* elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
R_V850_GNU_VTENTRY.
(v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
(v850_elf_perform_relocation): Likewise.
(v850_elf_final_link_relocate): Likewise.
(v850_elf_relocate_section): Likewise.
(v850_elf_gc_sweep_hook): New routine.
(v850_elf_gc_mark_hook): New routine.
(elf_backend_can_gc_sections): Define.
Catherine Moore [Mon, 5 Oct 1998 14:08:53 +0000 (14:08 +0000)]
* elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
that dynobj exists.
Martin Hunt [Mon, 5 Oct 1998 07:32:59 +0000 (07:32 +0000)]
Mon Oct 5 00:34:00 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_set_bp_addr): New command. Sets a
breakpoint at an address. Use this instead of gdb_cmd "break"
because the syntax of the break command is broken and doesn't
allow you to create a thread-specific BP at an address. Also
this is faster.
Jeff Law [Mon, 5 Oct 1998 06:52:58 +0000 (06:52 +0000)]
* tc-hppa.c (fp_operand_format): Add some additional formats.
(pa_ip): Do not automatically promote into pa2.0 mode.
(pa_level): Handle ".level 2.0".
start-sanitize-cygnus
(struct pa_it): New field "trunc".
(pa_parse_fp_cnv_format): New function.
(pa_parse_ftest_gfx_completer): New function.
(pa_ip): Handle various new letters for PA2.0 support.
end-sanitize-cygnus
Jeff Law [Mon, 5 Oct 1998 06:23:20 +0000 (06:23 +0000)]
* hppa.h: Add "fid".
start-sanitize-cygnus
Add PA2.0 floating point instructions, including butchered load/store
with 14bit offset support.
end-sanitize-cygnus
Martin Hunt [Mon, 5 Oct 1998 05:35:01 +0000 (05:35 +0000)]
Sun Oct 4 22:35:47 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_set_bp): Add an optional thread number.
(gdb_find_bp_at_line): New function. Returns a list of bpnums
at the specified line number.
(gdb_find_bp_at_addr): New function. Returns a list of bpnums
at an address..
Ian Lance Taylor [Mon, 5 Oct 1998 03:37:54 +0000 (03:37 +0000)]
Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000-core.c (rs6000coff_core_file_matches_executable_p):
Declare size as bfd_size_type.
(rs6000coff_get_section_contents): Declare count as bfd_size_type.
Ian Lance Taylor [Mon, 5 Oct 1998 03:11:55 +0000 (03:11 +0000)]
* elflink.h (elf_link_add_object_symbols): When a versioned symbol
has a base which is already defined, only add the referenced
symbol to the dynamic symbol table if it is defined or referenced
by a regular file.
Jeff Law [Mon, 5 Oct 1998 02:42:05 +0000 (02:42 +0000)]
* cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
structure.
* som.c (CPU_PA_RISC2_0): Define.
(_PA_RISC2_0_ID): Likewise.
(som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
PA2.0 infrastructure.
Ian Lance Taylor [Mon, 5 Oct 1998 01:19:36 +0000 (01:19 +0000)]
* elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
correctly.
Ian Lance Taylor [Mon, 5 Oct 1998 01:18:32 +0000 (01:18 +0000)]
* i386.h (R_386_max): Change from 252 to 24.
Ian Lance Taylor [Mon, 5 Oct 1998 01:01:27 +0000 (01:01 +0000)]
Sun Oct 4 21:00:00 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
From Robert Andrew Dale <rob@nb.net>
* i386.h (i386_optab): Add AMD 3DNow! instructions.
(AMD_3DNOW_OPCODE): Define.
Ian Lance Taylor [Mon, 5 Oct 1998 00:59:52 +0000 (00:59 +0000)]
Sun Oct 4 20:57:43 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (md_assemble): Handle AMD_3DNOW_OPCODE.
* config/tc-i386.h (template.extension_opcode): Change to
unsigned int to allow full range of 8-bit opcode suffixes.
(None): Redefine as 0xffff.
From Jeff B Epler <jepler@usgs.gov>
* doc/c-i386.texi (i386-SIMD): New section.