Commit Graph

385 Commits

Author SHA1 Message Date
Ken Raeburn
f3f45b1047 this morning's check-ins... 1992-11-04 16:01:54 +00:00
Ken Raeburn
cc1b689f2e Put conditional "const" before version_string, not before dummy function
for VMS.  Now version 1.91.03.  (Save 1.91.02 for Cygnus P4.)
1992-10-28 13:55:27 +00:00
Ian Lance Taylor
1045c20b4d Fri Oct 23 14:40:38 1992 Ian Lance Taylor (ian@cygnus.com)
* obj-coffbfd.c (write_object_file): check return value of
	bfd_close_all_done.
1992-10-23 21:42:04 +00:00
Ian Lance Taylor
6142210d1d Tue Oct 20 13:02:25 1992 Ian Lance Taylor (ian@cygnus.com)
* Support for i386-sysv.
	obj-coffbfd.c (do_relocs_for, write_object_file): set segment
	addresses to reasonable sizes.  New define ZERO_BASED_SEGMENTS can
	be used to set them all to zero as was done before.
	(fill_section): segment addresses now set in write_object_file.
	(fill_section): Don't set STYP_NOLOAD for .bss section.
	(fixup_segment): 386 uses strange common symbol format.
	tc-i386.c (tc_coff_fix2rtype): use R_DIR32, not R_RELLONG, for
	compatibility with SVR3.2 linker.
1992-10-20 20:10:34 +00:00
Ian Lance Taylor
653912459d Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
* configure.in: i386-sysv and i386-sco use coffbfd.
1992-10-20 20:09:45 +00:00
Ian Lance Taylor
559d9aac44 Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
* app.c (do_scrub_next_char): discard whitespace after a label.
1992-10-20 19:20:58 +00:00
Ian Lance Taylor
4b77b129c6 Added #include <ctype.h> to several files. It's often more efficient,
and on some systems it's required.
1992-10-14 20:20:03 +00:00
David D. Zuhn
0f8b9790a1 use sysv config for solaris2 hosting 1992-10-12 02:10:51 +00:00
Steve Chamberlain
c116445e02 fix i960+non-bfd coff bit rot.
* obj-coff.c (c_dot_file_symbol, obj_coff_ln, obj_coff_line):
	support for C source listings. (obj_coff_endef): look in the right
	part of the symbol for the symbol name
1992-10-06 00:03:20 +00:00
Steve Chamberlain
4f4476787a Mon Oct 5 09:28:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* tc-m68k.c (get_num): make it work for all segments, not just the
	first three.
1992-10-05 16:30:05 +00:00
Mark Eichin
984cf2d71a support 386bsd target, from p3 1992-10-05 08:33:10 +00:00
Steve Chamberlain
2f68cb548c * obj-coffbfd.c (write_object_file): don't fixup for the z8k
* tc-z8k.[ch]: lots of bug fixes
1992-09-29 19:25:33 +00:00
Ian Lance Taylor
7c42ad77f3 Tue Sep 29 10:51:55 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-i960.h, tc-i960.c: avoid the ANSI preprocessor addition
	#elif, since it is not supported by old compilers.
	ho-rs6000.h, tc-m68k.c: the native RS/6000 compiler miscompiles a
	couple of expressions in tc-m68k.c.
1992-09-29 18:38:20 +00:00
Ken Raeburn
fdc6ba6423 tc-i960.c: use NO_RELOC 1992-09-29 01:27:27 +00:00
Ian Lance Taylor
fe86a81703 Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
	local labels to start with a .) and set REGISTER_PREFIX to %.
	tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
1992-09-26 01:20:04 +00:00
John Gilmore
5a0fc1d4b8 Comment changes. 1992-09-26 00:55:33 +00:00
Ken Raeburn
4959cb7bf9 defined(__STDC__) / __STDC__==1 changes recommended by gnu 1992-09-25 21:14:46 +00:00
Brendan Kehoe
5e9d510ea6 * listing.c (debugging_pseudo): Add stabs and stabn as things to ignore. 1992-09-24 19:43:45 +00:00
Sean Eric Fagan
b066f445bb Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
* obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
	sections starting from zero, rather than making them consecutive.
	This makes subsequent reloc calculations easier, esp if the
	object format doesn't understand addends. (obj_coff_lcomm): (maybe
	temporarily) allocate lcomm in .data rather than in .bss.  It
	seems that some tools can't cope with a non-zero sized bss
	before linkage.
1992-09-22 20:07:55 +00:00
Ken Raeburn
df3768fb6c cpu32 and -mno-688?1 support from p3 1992-09-22 19:24:33 +00:00
Ken Raeburn
ae9c717ec6 cpu32 and -mno-688?1 support from p3 1992-09-22 19:19:02 +00:00
Ian Lance Taylor
065b6303d0 Roll bask the WRS change, since it had already been applied, and the
reversed patch they sent blew my mind.
1992-09-22 15:32:03 +00:00
Ian Lance Taylor
25fb44628a Patches from WRS:
Mon Sep 21 14:44:17 1992  Ian Lance Taylor  (ian@cygnus.com)

	* tc-m68k.c (m68k_ip): fixed move16 operand handling, from WRS.
1992-09-21 22:31:41 +00:00
Steve Chamberlain
04b07d16c7 * tc-m68k.c (m68k_ip): An(disp) is not pc relative. 1992-09-18 15:03:59 +00:00
Jim Wilson
569dac152d Make as.new depend on LIBS not the never set LIBDEPS, so that we get an
opcodes directory dependence.
1992-09-16 00:26:24 +00:00
Ian Lance Taylor
efbfb612f4 Changes to make an installed cross-compiler find everything correctly.
Tue Sep 15 15:32:02 1992  Ian Lance Taylor  (ian@cygnus.com)

	* Makefile.in (install): if $(tooldir) exists, install as in
	$(tooldir)/bin.
1992-09-15 23:27:10 +00:00
Ian Lance Taylor
e41474b77d Sun Sep 13 20:29:39 1992 Ian Lance Taylor (ian@cygnus.com)
* obj-coffbfd.h: define WARN_SIGNED_OVERFLOW_WORD.
	obj-coffbfd.c (fixup_segment): check for signed .word overflow if
	WARN_SIGNED_OVERFLOW_WORD.
1992-09-14 05:25:56 +00:00
Ian Lance Taylor
ca5e9d49dd Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
* Added WARN_SIGNED_OVERFLOW_WORD define to give an error if any
	.word is < -32768 or > 32767.  The -J flag causes the error to be
	ignored.  This is to catch over-sized switches generated by gcc on
	systems which don't support the broken .word hack.
	as.c (main): permit -J if WARN_SIGNED_OVERFLOW_WORD.
	write.c (fixup_segment): check for signed .word overflow if
	WARN_SIGNED_OVERFLOW_WORD.
1992-09-14 05:25:24 +00:00
Ian Lance Taylor
76bf2d5d61 Sun Sep 13 20:29:39 1992 Ian Lance Taylor (ian@cygnus.com)
* obj-coffbfd.c (fixup_segment): fixed missing parens in
	expression checking for byte or word overflow.
1992-09-14 03:34:44 +00:00
Ian Lance Taylor
987b14913a Sun Sep 13 20:30:10 1992 Ian Lance Taylor (ian@cygnus.com)
* write.c (fixup_segment): fixed missing parens in expression
	checking for byte or word overflow.
1992-09-14 03:34:19 +00:00
Steve Chamberlain
6066ebada2 Whoops, forgot this one 1992-09-11 22:02:52 +00:00
Steve Chamberlain
28c8c50b43 Support for 386 coff 1992-09-11 17:23:31 +00:00
Ian Lance Taylor
b1520b1f70 Thu Sep 10 09:23:15 1992 Ian Lance Taylor (ian@cygnus.com)
* input-scrub.c (input_scrub_push): call input_file_begin, not
	input_scrub_begin.
	messages.c (as_perror): print ": " between the passed in error and
	the strerror, like perror does.
1992-09-10 16:25:31 +00:00
Ian Lance Taylor
3ad9ec6a7b Wed Sep 9 11:10:24 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.c (m68k_ip, m68k_ip_op, get_num, try_moto_index): merge
	 Motorola and MIT syntax; gas can now assemble either type of
	 file.
	tc-m68kmote.c, tc-m68kmote.h: removed now superfluous files.
	From Steve Chamberlain:
	m68kcoff.mt: for m68k COFF.
	obj-coffbfd.c: (fixup_mdeps) added
	 (size_section) removed bad sanity check
	 (fill_section) added rs_machine_dependent case
	 (write_object_file) call fixup_mdeps
	 (fixup_segment) set fx_subsy to 0.
	obj-coffbfd.h: define WORKING_DOT_WORD (too hard to support) and
	 handle m68k.
	tc-m68k.c, config/tc-m68k.h: added m68k COFF support and Motorala
	 pseudo ops.
1992-09-09 18:38:16 +00:00
Ian Lance Taylor
b53ccaacae Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in: use gas_target instead of modifying target_cpu.
	From Steve Chamberlain:
	Makefile.in: Handle m68*-*-coff*.
	read.c, read.h: add mult argument to s_space
1992-09-09 18:37:27 +00:00
Ken Raeburn
db4d20e5bf include opcode library 1992-09-09 01:27:27 +00:00
Ken Raeburn
e53ab768f4 from p3: +0.0 is a small integer, at least for moveq 1992-09-04 23:25:16 +00:00
Ian Lance Taylor
7e10f53ccf Brought forward from p3:
Sun Aug 30 21:24:46 1992  Ian Lance Taylor  (ian@cygnus.com)

	* Makefile.in: map "as" through program_transform_name when
	installing.
1992-09-01 01:14:04 +00:00
Steve Chamberlain
cfb48ce52d #include file moved 1992-08-31 22:53:15 +00:00
Jim Wilson
71703b0735 Update to SPARC Version 9 Draft 1.0.4. 1992-08-31 17:14:50 +00:00
Jim Wilson
01aec199eb Keep sparc.mt. 1992-08-31 00:27:23 +00:00
Jim Wilson
c6b16054ea Resolve someone else's CVS update conflict. 1992-08-31 00:01:22 +00:00
Jim Wilson
b0952e128d Make as.new depend on LOCAL_LOADLIBES. 1992-08-29 19:12:04 +00:00
Ian Lance Taylor
8ae35e5919 Fri Aug 28 16:25:22 1992 Ian Lance Taylor (ian@cygnus.com)
* obj-bout.h, obj-bout.c (obj_header_append, obj_symbol_to_chars),
	tc-i960.c (md_ri_to_chars): Always output bout object file in
	little endian byte order (used to use endianness of host).
1992-08-29 00:16:47 +00:00
Ken Raeburn
4134a793c7 * config/tc-m68k.c (init_table): Now const. Always include 68851
data, so that "bc" is available to 68040 cache instructions.  Added
"tt0", "tt1", and 68ec030 variants.
(md_assemble): Complain if 68000 (only) and 68881 are specified.
(enum _register): Added TT0, TT1.
(m68k_ip, cases '3' and 't'): Handle new operand type codes.  Pass
line number correctly in "internal error" messages.  Don't print
architecture-mismatch message for operand errors.

From Colin Smith (colin@wrs.com):
* config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather than
install_operand.
1992-08-26 04:08:45 +00:00
Ken Raeburn
b2f221a944 * config/tc-m68k.c (init_table): Now const. Always include 68851
data, so that "bc" is available to 68040 cache instructions.  Added
"tt0", "tt1", and 68ec030 variants.
(md_assemble): Complain if 68000 (only) and 68881 are specified.
(enum _register): Added TT0, TT1.
(m68k_ip, cases '3' and 't'): Handle new operand type codes.  Pass
line number correctly in "internal error" messages.  Don't print
architecture-mismatch message for operand errors.

From Colin Smith (colin@wrs.com):
* config/tc-m68k.c (m68k_ip, case '_'): Use addword twice rather than
install_operand.
1992-08-26 04:02:42 +00:00
Steve Chamberlain
ab737e518d * listing.c (buffer_line): rewind to the start of include
files, they might be included twice.
1992-08-25 22:16:39 +00:00
Steve Chamberlain
163107a143 Support for the Z8k 1992-08-25 22:12:54 +00:00
Ian Lance Taylor
afba2b2286 Renamed OSE configuration to ose. 1992-08-24 22:32:46 +00:00
Ian Lance Taylor
148eb5dd61 Mon Aug 24 12:45:12 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.c: use TARGET_CPU to choose default cpu type.

	* te-generic.h: default to LOCAL_LABELS_DOLLAR and LOCAL_LABELS_FB
	so that we can assemble hand-written libgcc code.
1992-08-24 19:48:54 +00:00