Commit Graph

12473 Commits

Author SHA1 Message Date
Jeff Law
0f4161ddd0 * cpu-hppa.c (arch_info_struct): Support both PA1.0 and PA1.1
machine types.
	(bfd_hppa_arch): Link in both PA1.0 and PA1.1 architecture info
	structures.
	* libhppa.h (enum pa_arch): New enumeration to describe the
	different variants of the PA architecture.
	* som.c (som_object_setup): Use new enumeration to set machine
	type.
	(som_finish_writing): If the machine type is PA1.1, then use the
	PA1.1 machine identifier in the output file.
1995-03-06 17:00:18 +00:00
Jeff Law
2c23d22bee * config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
relocation bits for absolute calls.
1995-03-06 02:42:14 +00:00
Michael Tiemann
2379f65cab Fix typo in spelling. 1995-03-05 18:15:30 +00:00
Per Bothner
374887b408 * callch.ch, callch.exp, Makefile.in: New test case.
Extended testing for PR 6292.
1995-03-04 23:15:48 +00:00
Per Bothner
f7a69ed795 * valops.c (value_cast): Cehck for cast to array type *before*
we coerce array to pointer (in case arg2 is already array).

	* valops.c (call_function_by_hand):  Set using_gcc to 2 if using
	gcc2.  Needed for REG_STRUCT_HAS_ADDR to work on sparc.
	Also check REG_STRUCT_HAS_ADDR for union, array and string types.

	* valops.c (call_function_by_hand):  Re-arrange code for pushing
	paramaters on the stack so we can do better STACK_ALIGN.

	* valops.c (call_function_by_hand):  Call error if the number
	of arguments is fewer than parameter types in function type.
1995-03-04 02:24:26 +00:00
David Edelsohn
732ff6aff3 * sparc-tdep.c (sparc_extract_struct_value_address): Move
sparc64 support to here.
	(sparc64_extract_struct_value_address): Deleted.
	(dump_ccreg): Add a prototype so long long arg -> int.
	* sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1995-03-04 01:37:30 +00:00
David Edelsohn
1cd3b16334 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1995-03-04 01:35:34 +00:00
Jeff Law
3a0fbb3bb3 * hpread.c (hpread_record_lines): New argument "offset". All
callers changed.  Use it to handle dynamic address relocation.
	(hpread_build_psymtabs): Adjust texthigh as we read each function
	debug symbol.  Fix computation of texthigh.
	(hpread_read_subrange_type): Work around macro bugs in HP's
	compilers.
	(hpread_process_one_debug_symbol): Correctly map source lines.
1995-03-04 00:55:45 +00:00
Stan Shebs
ab62d0499e * hosts/mpw.h (SEEK_SET, SEEK_CUR, BYTES_IN_PRINTF_INT):
Remove definitions.
	(mpw_fread, mpw_fwrite): Declare, define as substitutes
	for fread and fwrite.
1995-03-04 00:47:01 +00:00
Ken Raeburn
cb7973c33e * config/tc-h8300.* (md_operand): Change empty function to empty macro.
* config/tc-h8300.c (build_bytes): Make H8/300-H warning message clearer.
1995-03-03 22:55:46 +00:00
Ken Raeburn
46f1280981 m68k entry i forgot to check in 1995-03-03 22:49:11 +00:00
Ken Raeburn
0578ade3f2 * write.c (write_contents): If bfd_set_section_contents fails, print a message
and exit, instead of aborting.
1995-03-03 22:44:04 +00:00
Jeff Law
2097152a52 * somread.c (check_strange_names): Filter names emitted by the HP
compiler when generating PIC code.
1995-03-03 22:25:27 +00:00
Jeff Law
13ffa6bece * valops.c (value_struct_elt_for_reference): Work around macro
bugs in HP's compilers.
	* c-exp.y (block): Likewise.
1995-03-03 22:15:23 +00:00
Ian Lance Taylor
30e1257637 * emultempl/elf32.em (hold_rel): New static variable.
(gld${EMULATION_NAME}_place_orphan): Place readonly sections with
	contents whose names begin with ".rel" after hold_rel.  Remove the
	assertion which checked for unplaced .rel sections.  Don't try to
	sort the section into place if place->bfd_section is NULL.
	(gld${EMULATION_NAME}_place_section): Set hold_rel to the first
	section beginning with ".rel".
1995-03-03 22:09:24 +00:00
Jim Kingdon
5816555bca * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
store_address.
1995-03-03 21:47:14 +00:00
Jim Kingdon
0d172a2ef4 * utils.c [_AIX]: Include stddef.h instead of #defining size_t. 1995-03-03 21:38:54 +00:00
Michael Meissner
3f81f3cfe4 If -mrelocatable, warn about relocs that are incompatible. 1995-03-03 21:34:36 +00:00
Ian Lance Taylor
49f245127b * mips.h (INSN_ISA4): Define. 1995-03-03 21:13:37 +00:00
Michael Meissner
629b6214ad Support saving saved regs with multiple stores in addition to store multiple instructions in prologue. 1995-03-03 17:39:37 +00:00
David Edelsohn
8b0f5a9df9 * sparc-tdep.c (decode_asi): New function.
(sparc_print_register_hook): Pretty print more v9 registers.
1995-03-03 09:06:51 +00:00
David Edelsohn
0fb8b15a92 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos. 1995-03-03 08:57:52 +00:00
David Edelsohn
306d27ca4e * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
(target_to_host): Change result type to CORE_ADDR.
1995-03-03 06:26:25 +00:00
David Edelsohn
462df1228c Forgot this one (from sparc64 changes). 1995-03-02 23:18:13 +00:00
Jim Kingdon
b112f2aee4 * rs6000-tdep.c: Fix byte-swapping sins. 1995-03-02 23:16:05 +00:00
Jim Kingdon
b77a4fbe8f * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
disassemble 8, not 16, instructions for part 4.
1995-03-02 22:24:44 +00:00
Michael Meissner
dc59e98286 Minor code cleanup in rs6000-tdep.c 1995-03-02 21:51:30 +00:00
Ian Lance Taylor
773033d2d2 * aoutx.h (NAME(aout,set_section_contents)): Double check that the
caller is writing to a valid section.
PR 5996 cleanup.
1995-03-02 21:00:39 +00:00
Ian Lance Taylor
c9f92c114b Thu Mar 2 14:37:57 1995 Bryan Ford <baford@cs.utah.edu>
* binary.c: Add support for reading binary files.  Loads the raw
	contents of the file into a data section and wraps some symbols
	around it.  The symbols `_binary_<filename>_start' and
	`_binary_<filename>_end' indicate the start and end of the data,
	while `_binary_<filename>_size' is an absolute symbol whose value
	is the size of the data.  <filename> is the name of the binary
	input file, with all non-alphanumeric characters converted to
	underscores.

	* archures.c (bfd_arch_get_compatible): Assume users knows what
	they're doing if one of the architectures is bfd_arch_unknown.
1995-03-02 20:04:07 +00:00
Ian Lance Taylor
21a2f02616 Doc note from pierre@phi.la.tce.com (Pierre Willard):
* ld.texinfo: -X and -x work even if -s or -S are not specified.
	* ld.1: Similar change.
1995-03-02 19:36:10 +00:00
Jim Kingdon
cc5be3662c * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
support the latter anymore.
1995-03-02 15:45:02 +00:00
Jim Kingdon
ff0a7ea5cd * misc.exp: If executable does not exist, issue warning and skip
remaining tests, like other chill tests.
1995-03-02 14:23:40 +00:00
Jim Kingdon
60fdbf97c7 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
-DNO_PROTOTYPES.
	* gdb.base/callfuncs.c: Control use of prototypes based on
	NO_PROTOTYPES, not __STDC.
	* gdb.base/callfuncs.exp (do_function_calls): xfail one of the
	t_float_values2 tests if prototypes in use.

	* gdb.base/callfuncs.c (t_float_values, t_float_values2,
	t_double_values):  When checking differences against DELTA, check
	that difference is within the range (-DELTA,DELTA), not just
	(-infinity,DELTA).
1995-03-02 14:09:31 +00:00
Per Bothner
1d19172b58 Forgot to check in ChangeLog entry for ch-exp.y (Feb 21). 1995-03-02 04:56:01 +00:00
Per Bothner
1a0a972847 * misc.ch, misc.exp, Makefile.in: New test case. 1995-03-02 04:28:57 +00:00
David Edelsohn
762cf56f74 Various changes for sparc64.
* sparc-tdep.c (NUM_SPARC_FPREGS): Define.
	(SPARC_INTREG_SIZE): Define.
	(*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
	where appropriate.
	(enum branch_type): New value `done_retry'.
	(isbranch): Renamed from isannulled.  All callers changed.
	Support new sparc64 branch insns.
	(single_step): Handle done_retry.
	(sparc_extract_struct_value_address): Don't assume 4 byte regs.
	(get_saved_register): Likewise.
	(sparc_push_dummy_frame): Likewise.
	(sparc_frame_find_saved_regs): Likewise.
	(sparc_pop_frame): Likewise.  Don't refer to FPS_REGNUM, CPS_REGNUM,
	or PS_REGNUM if not sparc64.  sparc64 has 64 fp regs.
	(sparc64_extract_struct_value_address): New function.
	(dump_ccreg, sparc_print_register_hook): Likewise.
	* sp64-tdep.c: Deleted.
	* sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
	(NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
	(CC_HAS_LONG_LONG): Define.
	(REGISTER_NAMES): Delete cle/tle and reorganize.
	(PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
	sparc-tdep.c now.
	(REGISTER_BYTES): Update.
	(REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
	(EXTRACT_RETURN_VALUE): Delete.  Use definition in tm-sparc.h.
	(NO_SINGLE_STEP): Likewise.
	* sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
	* sparc/sp64.mt: Move simulator support ...
	* sparc/sp64sim.mt: ... to here.
1995-03-02 00:18:04 +00:00
David Edelsohn
579dfd8eef Merged into sparc-tdep.c. 1995-03-02 00:13:16 +00:00
David Edelsohn
9e3501580c * sparc-tdep.c (NUM_SPARC_FPREGS): Define.
(SPARC_INTREG_SIZE): Define.
	(*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
	where appropriate.
	(enum branch_type): New value `done_retry'.
	(isbranch): Renamed from isannulled.  All callers changed.
	Support new sparc64 branch insns.
	(single_step): Handle done_retry.
	(sparc_extract_struct_value_address): Don't assume 4 byte regs.
	(get_saved_register): Likewise.
	(sparc_push_dummy_frame): Likewise.
	(sparc_frame_find_saved_regs): Likewise.
	(sparc_pop_frame): Likewise.  Don't refer to FPS_REGNUM, CPS_REGNUM,
	or PS_REGNUM if not sparc64.  sparc64 has 64 fp regs.
	(sparc64_extract_struct_value_address): New function.
	(dump_ccreg, sparc_print_register_hook): Likewise.
	* sp64-tdep.c: Deleted.
	* sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
	(NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
	(CC_HAS_LONG_LONG): Define.
	(REGISTER_NAMES): Delete cle/tle and reorganize.
	(PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
	sparc-tdep.c now.
	(REGISTER_BYTES): Update.
	(REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
	(EXTRACT_RETURN_VALUE): Delete.  Use definition in tm-sparc.h.
	(NO_SINGLE_STEP): Likewise.
	* sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
	* sparc/sp64.mt: Move simulator support ...
	* sparc/sp64sim.mt: ... to here.
1995-03-02 00:11:22 +00:00
Michael Meissner
3598343227 Warn if GOT16 overflows. 1995-03-01 22:34:34 +00:00
Kung Hsu
7e869571e4 * config/i960/vxworks960.mt: add remote-vx960.o.
* config/m68k/vxworks68.mt: add remote-vx68.o.
1995-03-01 21:22:37 +00:00
Kung Hsu
6154707a81 * config/m68k/vxworks68.mt: add remote-vx68.o. 1995-03-01 21:20:14 +00:00
Kung Hsu
0fbc1f5f72 * config/i960/vxworks960.mt: add remote-vx960.o. 1995-03-01 21:19:29 +00:00
Kung Hsu
4ba796ad29 * remote-vx960.c: new file for target specific register packaging.
* remote-vx68.c: ditto.
1995-03-01 21:16:38 +00:00
Jason Molenda
8760f77caf Wed Mar 1 11:52:55 1995 Jason Molenda <crash@phydeaux.cygnus.com>
* configure.host: Recognize powerpc-*-aix*.

for sludge.cygnus.com.
1995-03-01 19:55:05 +00:00
Michael Meissner
8bfd30b27f Build without warnings under Linux. 1995-03-01 18:58:34 +00:00
Ian Lance Taylor
0b153077ec * emulparams/gld960coff.sh (COFF_CTORS): Define.
* scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
1995-03-01 18:57:24 +00:00
Ian Lance Taylor
46cde09506 * coff-i960.c (COFF_PAGE_SIZE): Define. 1995-03-01 18:06:13 +00:00
Michael Meissner
ea082c0ac8 Add Linux yacc suport. 1995-03-01 17:23:41 +00:00
Ian Lance Taylor
d842ea0b17 * configure.in: Rewrite output of TDEFAULTS to avoid relying on
semantics of single quotes in parameter substitution.
1995-03-01 16:58:57 +00:00
Jim Kingdon
bc28e68dad * hppa-tdep.c (pa_print_registers), monitor.c: Use
extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
	* defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
	Rename it to SWAP_FLOATING to make it clear it is no longer for
	integers.
1995-03-01 07:18:04 +00:00