David D. Zuhn [Wed, 28 Jul 1993 17:59:45 +0000 (17:59 +0000)]
another small sco tweak
Ian Lance Taylor [Wed, 28 Jul 1993 15:36:45 +0000 (15:36 +0000)]
* config/tc-m68k.c (m68k_ip): If we have a normal constant when we
expect a bignum, turn it into a bignum. Output extra zeroes
before a short bignum, rather than after.
Ian Lance Taylor [Wed, 28 Jul 1993 15:29:26 +0000 (15:29 +0000)]
* gdbinv-s.texi: Documented timeout and retransmit-timeout
variables for MIPS remote debugging protocol.
Ian Lance Taylor [Wed, 28 Jul 1993 15:28:53 +0000 (15:28 +0000)]
* remote-mips.c (_initialize_remote_mips): Added "timeout" and
"retransmit-timeout" variables to set mips_receive_wait and
mips_retransmit_wait, respectively.
Peter Schauer [Wed, 28 Jul 1993 11:00:53 +0000 (11:00 +0000)]
* symmisc.c (dump_msymbols): Handle new mst_file_* types.
Jim Kingdon [Wed, 28 Jul 1993 07:51:01 +0000 (07:51 +0000)]
* serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
* nindy-share/*, remote-nindy.c: Extensive hacking to make it
conform to GDB conventions like using memcpy not bcopy, serial.h,
etc. This is to make it host on Solaris, AIX, etc.
* Makefile.in: Reflect removed nindy-share files.
* config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
Jim Kingdon [Wed, 28 Jul 1993 06:45:35 +0000 (06:45 +0000)]
* serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
* nindy-share/*, remote-nindy.c: Extensive hacking to make it
conform to GDB conventions like using memcpy not bcopy, serial.h,
etc. This is to make it host on Solaris, AIX, etc.
* Makefile.in: Reflect removed nindy-share files.
Jim Kingdon [Wed, 28 Jul 1993 02:43:27 +0000 (02:43 +0000)]
* remote-udi.c: Remove old comment about download not implemented.
Jim Kingdon [Wed, 28 Jul 1993 01:11:32 +0000 (01:11 +0000)]
* stack.c (print_frame_info): Revise comment about `pathological'
case (there was a wrong FIXME about text labels; also asm() can
trigger this as well as versions of ar which truncate .o names).
Jim Kingdon [Wed, 28 Jul 1993 00:22:08 +0000 (00:22 +0000)]
* buildsym.c (start_subfile): If a .c file includes a .C file, set
the language of both of them to C++.
Jim Kingdon [Tue, 27 Jul 1993 22:37:51 +0000 (22:37 +0000)]
* config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
<memory.h>.
Include <malloc.h> rather than declaring malloc functions ourself.
* ser-unix.c (set_tty_state): Don't ignore errors setting process
group.
* inflow.c (terminal_inferior): If attach_flag set, ignore errors
from set_tty_state.
Ken Raeburn [Tue, 27 Jul 1993 19:58:39 +0000 (19:58 +0000)]
symbols.c: Use DEBUG_SYMS instead of DEBUG.
Fred Fish [Tue, 27 Jul 1993 19:56:00 +0000 (19:56 +0000)]
* nlm{32,64}-gen.c (JUMP_TABLE_PREFIX): Delete.
* nlm{32,64}-gen.c (JUMP_TABLE_INIT): New macro that works with
older cpp's, that don't do additional replacement on the JUMP_TABLE
macro's argument.
* nlm-target.h (JUMP_TABLE_INIT): Use new macro in place of
JUMP_TABLE macro.
Peter Schauer [Tue, 27 Jul 1993 19:40:57 +0000 (19:40 +0000)]
* breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
we have breakpoints or watchpoints as we might have to ignore internal
breakpoints.
Fix gdb core dumps after `file newfile' commands.
* symtab.h, symfile.c (clear_symtab_users): New routine which
unconditionally clears symtab users. clear_symtab_users_once
commented out as it was a noop anyway.
* objfiles.c (free_objfile): Don't call clear_symtab_users_once.
* objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
xcoffexec.c (exec_close): Call clear_symtab_users if necessary.
* symfile.c (syms_from_objfile): Install cleanups for errors during
symbol reading.
* coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
Lint cleanup code, call do_cleanups explicitly.
* symfile.c (symbol_file_add): Call new_symfile_objfile and
reinit_frame_cache _after_ the new symbols are read in.
Jason Merrill [Tue, 27 Jul 1993 19:40:12 +0000 (19:40 +0000)]
Added a $ to Jim's mod
Jim Kingdon [Tue, 27 Jul 1993 19:01:11 +0000 (19:01 +0000)]
* dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
N_GSYM functions.
Ian Lance Taylor [Tue, 27 Jul 1993 18:36:19 +0000 (18:36 +0000)]
mips_optimize is also affected by -g.
Jim Kingdon [Tue, 27 Jul 1993 18:06:23 +0000 (18:06 +0000)]
* Makefile.in (install-dirs): Deal with a prefix like /gnu;
its parent is '/' not ''.
Jim Kingdon [Tue, 27 Jul 1993 17:49:52 +0000 (17:49 +0000)]
* Makefile.in (DEVO_SUPPORT): Add comments about ChangeLog.
Jim Kingdon [Tue, 27 Jul 1993 17:43:09 +0000 (17:43 +0000)]
* fork-child.c (fork_inferior): Only quote exec file if needed.
* mipsread.c (parse_symbol): Remove 21 Jul 93 change with
stTypedef inside an stBlock.
Ian Lance Taylor [Tue, 27 Jul 1993 15:55:35 +0000 (15:55 +0000)]
* config/tc-mips.c (mips_optimize): New static variable.
(append_insn): If ! mips_optimize, don't swap branches.
(md_parse_option): If -Ox, set mips_optimize accordingly.
Ian Lance Taylor [Tue, 27 Jul 1993 15:47:11 +0000 (15:47 +0000)]
* config/tc-mips.c (mips_optimize): New static variable.
(append_insn): If ! mips_optimize, don't swap branches.
(md_parse_option): If -Ox, set mips_optimize accordingly.
Peter Schauer [Tue, 27 Jul 1993 08:59:44 +0000 (08:59 +0000)]
* mipsread.c (parse_type): Do not set tag name for compiler
generated fake tag names.
K. Richard Pixley [Tue, 27 Jul 1993 01:05:23 +0000 (01:05 +0000)]
* Makefile.in (clean): if testsuite does not exist, then skip it.
K. Richard Pixley [Tue, 27 Jul 1993 00:36:08 +0000 (00:36 +0000)]
add exec.o to m88k TDEPFILES.
Jim Kingdon [Mon, 26 Jul 1993 22:53:02 +0000 (22:53 +0000)]
Yet another trad-core variant:
* config/esix.mh, hosts/esix.h: New files.
* configure.hosts: Use them.
Jim Kingdon [Mon, 26 Jul 1993 22:46:42 +0000 (22:46 +0000)]
new for esix
Jim Kingdon [Mon, 26 Jul 1993 22:16:09 +0000 (22:16 +0000)]
* hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
command. Now we use unwind info by default if we can find it.
* config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
to tm-sparc.h so they are shared between Solaris and SunOS4.
* dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
N_GSYM functions.
Jim Kingdon [Mon, 26 Jul 1993 20:41:50 +0000 (20:41 +0000)]
* config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
for floating point registers.
Jim Kingdon [Mon, 26 Jul 1993 20:36:43 +0000 (20:36 +0000)]
* stabs.texinfo (Negative Type Numbers): FORTRAN LOGICAL fix.
Jim Kingdon [Mon, 26 Jul 1993 20:33:35 +0000 (20:33 +0000)]
* mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
symbols as mst_file_text.
Ian Lance Taylor [Mon, 26 Jul 1993 20:24:26 +0000 (20:24 +0000)]
* reloc.c (bfd_perform_relocation): Handle the case of
complain_overflow_bitfield, rightshift > bitpos, and a negative
number.
Jim Kingdon [Mon, 26 Jul 1993 20:14:41 +0000 (20:14 +0000)]
* stabs.texinfo (Negative Type Numbers): FORTRAN LOGICAL fix.
Jim Kingdon [Mon, 26 Jul 1993 20:04:02 +0000 (20:04 +0000)]
* stabsread.c (rs6000_builtin_type): Make logical types be
TYPE_CODE_BOOL.
Ken Raeburn [Mon, 26 Jul 1993 19:46:09 +0000 (19:46 +0000)]
renaming elf emulparams files to work with current emulation handling code
Ken Raeburn [Mon, 26 Jul 1993 19:37:05 +0000 (19:37 +0000)]
Lots o' elf changes
Ken Raeburn [Mon, 26 Jul 1993 19:27:56 +0000 (19:27 +0000)]
Reimplement segment writing.
(elf_write_phdrs): Use precomputed e_phoff rather than making assumptions.
(elf_build_phdrs): Disabled, for now.
(assign_file_position_for_section): Don't change file offset for SHT_NOBITS.
(assign_file_positions_for_symtab_and_strtabs): New function.
(struct seg_info): New type.
(map_program_segments): New function.
(assign_file_positions_except_relocs): For executables, leave section headers
&c for last, and properly align all sections with flag SHF_ALLOC set.
(prep_headers): No longer abort when EXEC_P is set.
(write_shdrs_and_ehdr): Deleted all code relating to program segments.
(various): Deleted some unused code, and debugging "malloc(0)" calls.
(write_relocs): Cache value of last symbol looked up, to save
time if the symbol is referred to repeatedly.
(elf_fake_sections): Check only SEC_RELOC flag, not number of relocs.
(assign_section_numbers): Likewise.
Jim Kingdon [Mon, 26 Jul 1993 19:19:39 +0000 (19:19 +0000)]
* hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
Ken Raeburn [Mon, 26 Jul 1993 18:46:37 +0000 (18:46 +0000)]
(elfXX_bed): Initialize maxpagesize from ELF_MAXPAGESIZE.
(ELF_MAXPAGESIZE): Default to 1.
Ken Raeburn [Mon, 26 Jul 1993 18:44:03 +0000 (18:44 +0000)]
* libelf.h (struct elf_backend_data): New field, maxpagesize.
(struct elf_obj_tdata): New field, phdr.
Ken Raeburn [Mon, 26 Jul 1993 18:42:09 +0000 (18:42 +0000)]
(bfd_perform_relocation): Handle 64-bit relocs.
Jim Kingdon [Mon, 26 Jul 1993 18:23:59 +0000 (18:23 +0000)]
* stabsread.c (rs6000_builtin_type): Make `logical' be TYPE_CODE_BOOL.
Jim Kingdon [Mon, 26 Jul 1993 18:14:20 +0000 (18:14 +0000)]
* stabs.texinfo (Negative Type Numbers): FORTRAN LOGICAL fix.
Ken Raeburn [Mon, 26 Jul 1993 18:09:05 +0000 (18:09 +0000)]
solaris 2 changes
Ken Raeburn [Mon, 26 Jul 1993 18:08:43 +0000 (18:08 +0000)]
Pass emulation name without ".sh".
Ian Lance Taylor [Mon, 26 Jul 1993 16:11:38 +0000 (16:11 +0000)]
* configure.in: Don't look in ${srcdir} for ${target_makefile_frag};
the top level script has already adjusted for it.
Steve Chamberlain [Mon, 26 Jul 1993 15:11:38 +0000 (15:11 +0000)]
* srec.c (srec_write_symbols): Get CR LF in the right order.
Jim Kingdon [Mon, 26 Jul 1993 07:17:30 +0000 (07:17 +0000)]
* hosts/vaxbsd.h: Include std-host.h. Don't include <machine/param.h>.
Jim Kingdon [Mon, 26 Jul 1993 05:26:55 +0000 (05:26 +0000)]
* breakpoint.{c,h} (struct breakpoint): Replace symtab field with
source_file field.
David D. Zuhn [Sun, 25 Jul 1993 20:59:42 +0000 (20:59 +0000)]
update for latest datasheet revs
Brendan Kehoe [Sat, 24 Jul 1993 02:47:55 +0000 (02:47 +0000)]
undo previous change
David D. Zuhn [Sat, 24 Jul 1993 00:03:21 +0000 (00:03 +0000)]
different logging
Brendan Kehoe [Fri, 23 Jul 1993 22:37:01 +0000 (22:37 +0000)]
* ch-exp.y (yycheck, yydefred, yydgoto, yygindex, yylen, yylhs,
yyrindex, yysccsid, yysindex, yyss, yyssp, yytable, yyvs, yyvss):
Also define these to chill_{name}, for 386BSD's yacc.
* m2-exp.y: Likewise.
Ian Lance Taylor [Fri, 23 Jul 1993 19:17:12 +0000 (19:17 +0000)]
Fix stupid bugs inserted during expression conversion.
Jim Kingdon [Fri, 23 Jul 1993 18:18:41 +0000 (18:18 +0000)]
* exec.c, corelow.c (target_ops struct): Don't allow
{insert,remove}_breakpoints to be defaulted to
memory_{insert_remove}_breakpoint.
Ken Raeburn [Fri, 23 Jul 1993 17:58:24 +0000 (17:58 +0000)]
(MAXPAGESIZE): Renamed from PAGE_SIZE.
(TEXT_START_ADDR): Value should be 0x10100.
(NONPAGED_TEXT_START_ADDR): Same (I guess).
Ken Raeburn [Fri, 23 Jul 1993 17:57:35 +0000 (17:57 +0000)]
renamed PAGE_SIZE to MAXPAGESIZE
Jim Kingdon [Fri, 23 Jul 1993 17:25:20 +0000 (17:25 +0000)]
* demangle.c: Make it so `help set dem' tells you how to get the
list of demangling styles.
* Makefile.in: Use REMOTE_O macro not remote.o.
David Edelsohn [Fri, 23 Jul 1993 17:23:14 +0000 (17:23 +0000)]
* bfd.c (bfd_nonrepresentable_section, bfd_undefined_symbol,
bfd_reloc_value_truncated, bfd_reloc_is_dangerous, bfd_assert):
Send error messages to stderr.
Ken Raeburn [Fri, 23 Jul 1993 17:18:20 +0000 (17:18 +0000)]
obj-elf.c, tc-sparc.c, symbols.c changes
Ian Lance Taylor [Fri, 23 Jul 1993 03:32:57 +0000 (03:32 +0000)]
* write.c (fix_new_exp): Handle a O_uminus expression.
Ian Lance Taylor [Fri, 23 Jul 1993 03:02:17 +0000 (03:02 +0000)]
* expr.c (expr): Don't let absolute_section override
undefined_section for the return value.
Ian Lance Taylor [Fri, 23 Jul 1993 02:55:25 +0000 (02:55 +0000)]
* read.c (read_a_source_file): In NO_PSEUDO_DOT case, if we find a
pseudo-op with a poc_handler field of NULL, ignore it and treat it
as an instruction instead.
* config/tc-m88k.c (md_pseudo_table): Add "set" with a NULL
poc_handler field.
Fred Fish [Thu, 22 Jul 1993 23:09:07 +0000 (23:09 +0000)]
* nlm{32,64}-target.h: Remove.
* nlm-target.h: New file, merged from nlm{32,64}-target.h
* libnlm.h (NLM_ARCH_SIZE): Define to ARCH_SIZE.
* nlm.c (ARCH_SIZE): Remove define to zero.
* nlm32-gen.c (ARCH_SIZE): Define to 32.
* nlm32-gen.c (JUMP_TABLE_PREFIX): Define to nlm32.
* nlm{32,64}-gen.c (nlm-target.h): Include.
* targets.c, libnlm.h, nlm.c, nlm{32,64}-gen.c, nlm{32,64}.c,
nlmcode.h: Convert prefixes from bfd_nlm<size> to just
nlm<size>, and use macros select size.
Jim Kingdon [Thu, 22 Jul 1993 22:47:34 +0000 (22:47 +0000)]
* Makefile.in: Use REMOTE_O macro not remote.o.
* config/i960/{nindy960,vxworks960}: Don't use remote.o.
K. Richard Pixley [Thu, 22 Jul 1993 22:43:07 +0000 (22:43 +0000)]
* Makefile.in (Makefile): add configure.in, drop redundant
$(srcdir), drop redundant ./
Ian Lance Taylor [Thu, 22 Jul 1993 19:49:44 +0000 (19:49 +0000)]
* coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
(can't include it in nm-*.h file because it causes conflicts with
a.out symbol definitions).
* hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
* config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
corelow.o.
* config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
(REGISTER_U_ADDR): Defined.
* config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
HAVE_TERMIO.
* config/pa/xm-hppah.h: Likewise.
Ian Lance Taylor [Thu, 22 Jul 1993 19:40:46 +0000 (19:40 +0000)]
Generic HP/UX core file support.
Ian Lance Taylor [Thu, 22 Jul 1993 19:39:41 +0000 (19:39 +0000)]
* hpux-core.c: New file; backend for HP/UX style core files.
* bfd.c (struct _bfd): Renamed hppa_core_data field to
hpux_core_data.
* bfd-in2.h: Updated.
* hppa.c (make_bfd_asection, hppa_core_file_p,
hppa_core_file_failing_command, hppa_core_file_failing_signal,
hppa_core_file_matches_executable_p): Moved into hpux-core.c.
Removed from target vector.
* libhppa.h (struct hppa_core_struct and accessor macros): Moved
into hpux-core.c.
* targets.c: If HPUX_CORE is defined, add hpux_core_vec to
target list.
* config/hp300.mh (HDEFINES): Set to -DHPUX_CORE.
(HDEPFILES): Set to hpux-core.o.
* config/hppabsd.mh, config/hppahpux.mh: Likewise.
* hosts/hp300.h (HOST_HP300HPUX): Define.
* Makefile.in (OPTIONAL_BACKENDS): Added sco-core.o,
aix386-core.o, hpux-core.o.
(sco-core.o, aix386-core.o, hpux-core.o): New dependencies.
Ian Lance Taylor [Thu, 22 Jul 1993 19:11:48 +0000 (19:11 +0000)]
* config/tc-h8500.c (md_begin): Use a local variable when
initializing md_relax_table to avoid warnings about modifying a
supposedly const data structure.
Ian Lance Taylor [Thu, 22 Jul 1993 18:03:51 +0000 (18:03 +0000)]
* reloc.c (enum complain_overflow): New enumeration with the
various flavours of overflow checking.
(srtuct reloc_howto_struct): Changed complain_on_overflow field
from boolean to emum complain_overflow. Removed obsolete absolute
field.
(HOWTO): Removed absolute argument.
(bfd_perform_relocation): Do overflow checking on all types of
fields.
* bfd-in2.h: Updated accordingly.
* all targets: Updated initialization of reloc howto tables.
Ian Lance Taylor [Thu, 22 Jul 1993 18:02:01 +0000 (18:02 +0000)]
Fixed typos.
Brendan Kehoe [Thu, 22 Jul 1993 18:00:17 +0000 (18:00 +0000)]
* config/obj-aout.c: Only include aout/aout64.h if BFD_ASSEMBLER
is defined.
Jim Kingdon [Thu, 22 Jul 1993 16:49:42 +0000 (16:49 +0000)]
* hppa{b,h}-nat.c: Warning, not error, if can't access registers.
Jim Kingdon [Thu, 22 Jul 1993 05:00:05 +0000 (05:00 +0000)]
* mipsread.c (parse_symbol): when stTypedef and friends occur within
an stBlock, skip over the fields of the inner one.
* mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
heuristic_proc_desc rather than just assuming registers not saved.
Ian Lance Taylor [Thu, 22 Jul 1993 04:44:54 +0000 (04:44 +0000)]
Don't use #ifdef inside macro arguments.
Jim Kingdon [Thu, 22 Jul 1993 04:24:28 +0000 (04:24 +0000)]
* gdb.t00/teststrategy.exp: Remove extra quote.
Jim Kingdon [Thu, 22 Jul 1993 01:55:26 +0000 (01:55 +0000)]
* gdb.t07/watchpoint.exp: Change xfail for calling function with
watchpoint enabled to "*-*-*".
Jim Kingdon [Thu, 22 Jul 1993 01:28:38 +0000 (01:28 +0000)]
* gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test.
David D. Zuhn [Thu, 22 Jul 1993 01:28:01 +0000 (01:28 +0000)]
unixware typo
Ken Raeburn [Thu, 22 Jul 1993 01:08:25 +0000 (01:08 +0000)]
don't use 'template' in C code, so it'll be friendlier to C++
David MacKenzie [Thu, 22 Jul 1993 00:55:56 +0000 (00:55 +0000)]
move compile-in decision to genscripts.sh
Fred Fish [Thu, 22 Jul 1993 00:43:13 +0000 (00:43 +0000)]
* configure.in (case ${host}): Map *-*-sysv4* to gas_host=sysv.
* configure.in (case ${generic_target}): Add i[34]86-*-sysv4*
case to set obj_format=elf. Must go before i386-*-sysv* case that
sets obj_format=coffbsd. Add *-*-sysv4* to *-*-elf and
*-*-solaris case, and move to before *-sysv* case that wants to
set obj_format to coff.
* config/tc-i386.c (i386_operand): Change all 'exp.X_op' to
'exp->X_op'.
* config/tc-i386.c (md_apply_fix): Fix valp to be 'valueT *' for
BFD_ASSEMBLER case.
David MacKenzie [Thu, 22 Jul 1993 00:37:43 +0000 (00:37 +0000)]
fix typo
David MacKenzie [Thu, 22 Jul 1993 00:33:10 +0000 (00:33 +0000)]
The default script is now compiled in; the others are still in the filesystem.
Jim Kingdon [Wed, 21 Jul 1993 22:48:39 +0000 (22:48 +0000)]
* Makefile.in (regex.o): Add dependency.
Jim Kingdon [Wed, 21 Jul 1993 19:57:36 +0000 (19:57 +0000)]
* hppa{b,h}-nat.c: Warning, not error, if can't access registers.
Ian Lance Taylor [Wed, 21 Jul 1993 19:26:20 +0000 (19:26 +0000)]
* config/obj-aout.c: Include aout/aout64.h.
(obj_aout_frob_symbol): Set BSF_DEBUGGING for a constructor
symbol, so that BFD doesn't tamper with the type.
Jim Kingdon [Wed, 21 Jul 1993 18:56:16 +0000 (18:56 +0000)]
* hppa.h: New argument type 'y'. Use in various float instructions.
Jim Kingdon [Wed, 21 Jul 1993 18:54:49 +0000 (18:54 +0000)]
* hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
(fput_fp_reg_r): Renamed from fput_reg_r.
(fput_fp_reg): New function.
(print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
Jim Kingdon [Wed, 21 Jul 1993 18:44:40 +0000 (18:44 +0000)]
* hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
* hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
Jim Kingdon [Wed, 21 Jul 1993 18:39:30 +0000 (18:39 +0000)]
* config/pa/hppa{b,h}.h: Define ATTACH_DETACH.
Ian Lance Taylor [Wed, 21 Jul 1993 17:19:33 +0000 (17:19 +0000)]
* read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
up opcodes as pseudo-ops even if they don't start with '.'.
* config/tc-m88k.h (NO_PSEUDO_DOT): Define.
* config/tc-m88k.c (md_assemble): Removed special pseudo-op
handling.
(md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
Output the low 16 bits for RELOC_HI16, not the high 16 bits.
* config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
r_offset field of the reloc to the fixup offset.
(fixup_segments): If TC_M88K, don't warn about fixup overflows.
* doc/as.texinfo: Minor updates.
Peter Schauer [Wed, 21 Jul 1993 10:16:33 +0000 (10:16 +0000)]
* config/mips/xm-makeva.h: New file implements va_list alignment
restrictions for mips hosts.
Peter Schauer [Wed, 21 Jul 1993 10:15:21 +0000 (10:15 +0000)]
* config/mips/xm-makeva.h: New file implements va_list alignment
restrictions for mips hosts.
* config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
Use it.
Peter Schauer [Wed, 21 Jul 1993 10:13:30 +0000 (10:13 +0000)]
* config/mips/xm-makeva.h: New file implements va_list alignment
restrictions for mips hosts.
* config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
Use it.
* mips-tdep.c (init_extra_frame_info): Do not check for
mips_in_lenient_prologue if it is a dummy frame.
Peter Schauer [Wed, 21 Jul 1993 07:13:13 +0000 (07:13 +0000)]
* mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
mips_in_lenient_prologue.
Ian Lance Taylor [Wed, 21 Jul 1993 00:41:42 +0000 (00:41 +0000)]
* Extensive changes to permit symbols to contain any expression
type and to delay the computation of the expression until the
value is actually needed. This permits setting symbols to values
calculated based on object code size. Expressions were changed to
no longer be in a section, to stop the overloading of segment and
expression type that previously occurred.
* as.c (big_section, pass1_section, diff_section, absent_section):
Removed.
(expr_section): Added (used for dummy symbols which hold
intermediate expression values).
(perform_an_assembly_pass): Create expr_section, do not create the
sections now removed.
* as.h (segT): Removed SEG_ABSENT, SEG_PASS1, SEG_BIG, and
SEG_DIFFERENCE. Added SEG_EXPR.
(SEG_NORMAL): Corresponding changes.
* subsegs.c (seg_name, subsegs_begin): Changed accordingly.
* write.c (write_object_file): Ditto.
* config/obj-aout.c (seg_N_TYPE): Ditto.
* config/obj-bout.c (seg_N_TYPE): Ditto.
* config/obj-coff.c (seg_N_TYPE): Ditto.
* config/obj-coffbfd.c (seg_N_TYPE): Ditto.
* config/obj-vms.c (seg_N_TYPE): Ditto.
* expr.h (operatorT): Moved in from expr.c, added some values.
(expressionS): Added X_op field, removed X_seg field; renamed
X_subtract_symbol to X_op_symbol.
* expr.c: Extensive changes to assign expression types rather than
sections and to simplify the parsing.
* write.c (fix_new_internal): New static function.
(fix_new): Removed sub_symbol argument.
(fix_new_exp): New function, takes expression argument.
* write.h: Prototype changes for fix_new and fix_new_exp.
* cond.c (s_if): Changed accordingly.
* read.c (s_lsym, pseudo_set, emit_expr, parse_bitfield_cons,
parse_repeat_cons, get_segmented_expression,
get_known_segmented_expression, get_absolute_expression): Ditto.
* symbols.c (resolve_symbol_value, S_GET_VALUE, S_SET_VALUE):
Ditto.
* write.c (write_object_file): Ditto.
* config/obj-coff.c (obj_coff_def, obj_coff_val): Ditto.
* config/obj-coffbfd.c (obj_coff_def, obj_coff_val,
obj_coff_endef, yank_symbols): Ditto.
* config/obj-elf.c (obj_elf_stab_generic, obj_elf_size): Ditto.
* config/tc-a29k.c (md_assemble, parse_operand, machine_ip,
print_insn, md_operand): Ditto.
* config/tc-h8300.c (parse_exp, colonmod24, check_operand,
do_a_fix_imm, build_bytes): Ditto.
* config/tc-h8500.c (parse_exp, skip_colonthing, parse_reglist,
get_specific, check, insert, md_convert_frag): Ditto.
* config/tc-hppa.c (the_insn, fix_new_hppa, cons_fix_new_hppa,
md_assemble, pa_ip, getExpression, getAbsoluteExpression,
evaluateAbsolute, pa_build_unwind_subspace, pa_entry,
process_exit): Ditto.
* config/tc-hppa.h (STAB_FIXUP, is_DP_relative, is_PC_relative,
is_complex): Ditto.
* config/tc-i386.c (pe, md_assemble, i386_operand,
md_estimate_size_before_relax, md_create_long_jump): Ditto.
* config/tc-i860.c (md_assemble, getExpression, print_insn):
Ditto.
* config/tc-i960.c (parse_expr, subs, segs, md_convert_frag,
get_cdisp, mem_fmt, parse_ldconst, relax_cobr, s_sysproc,
i960_handle_align): Ditto.
* config/tc-m68k.c (struct m68k_exp, struct m68k_it, seg, op,
subs, add_fix, isvar, m68k_ip, md_assemble, md_convert_frag_1,
md_estimate_size_before_relax, md_create_long_jump, get_num):
Ditto.
* config/tc-m88k.c (md_assemble, get_imm16, get_pcr,
md_create_short_jump, md_create_long_jump): Ditto.
* config/tc-mips.c (md_assemble, append_insn, gp_reference,
macro_build, macro, my_getExpression): Ditto. Also removed
get_optional_absolute_expression; just use get_absolute_expression
instead.
* config/tc-ns32k.c (get_addr_mode, evaluate_expr, convert_iif,
fix_new_ns32k, fix_new_ns32k_exp, cons_fix_new_ns32k): Ditto.
* config/tc-ns32k.h (fix_new_ns32k prototype): Ditto.
* config/tc-sh.c (parse_exp, check, insert, md_convert_frag):
Ditto.
* config/tc-sparc.c (md_assemble, sparc_ip, getExpression,
print_insn): Ditto.
* config/tc-tahoe.c (struct top, md_estimate_size_before_relax,
tip_op, md_assemble): Ditto.
* config/tc-vax.c (seg_of_operand, md_assemble,
md_estimate_size_before_relax, md_create_long_jump): Ditto.
* config/tc-z8k.c (parse_exp, check_operand, newfix): Ditto.
Jim Kingdon [Tue, 20 Jul 1993 23:37:05 +0000 (23:37 +0000)]
* Makefile.in (refcard.dvi): Use srcdir where necessary.
Fred Fish [Tue, 20 Jul 1993 23:20:36 +0000 (23:20 +0000)]
* coff-m68k.c (m68k_howto2rtype): Make arg CONST to match callers.