Commit Graph

154 Commits

Author SHA1 Message Date
David D. Zuhn 9126738c04 canonicalize install.sh location 1993-06-17 23:56:08 +00:00
Steve Chamberlain 115147fbb0 * config/obj-coffbfd.c (fill_section): Don't allow fills backwards.
* config/tc-sh (get_specific, md_convert_frag,
	md_estimate_size_before_relax): Add support for rest of opcodes.
1993-06-17 21:58:28 +00:00
David D. Zuhn a00ee52267 remove parentdir support 1993-06-16 01:00:29 +00:00
Ian Lance Taylor 47fcc4f54a * configure.in (mips-*-ecoffl*): New target; use ecoff and
mips-lit.
	(mips-*-ecoff*): Added trailing '*'.
1993-06-04 19:39:20 +00:00
Ian Lance Taylor 68ad4c9269 * config/obj-ecoff.c (ecoff_build_procs): Force the adr of the
first FDR in a file to be zero.
1993-06-04 14:53:02 +00:00
Ken Raeburn b7067d7f8a bump version number 1993-06-03 21:29:15 +00:00
Ken Raeburn 7577669525 today's changes 1993-06-03 20:39:20 +00:00
Ken Raeburn 49864cfa6c read.c (s_align_bytes): Properly record alignment.
expr.c (__): Undefine before defining.
as.c (got_sig): Don't return anything; return type might be void.
Whitespace/comment cleanup in frags.c.
Some patches for `-pedantic' or `-fno-common' compilation.
(Some of these changes are from Michael Meissner; see change log.)
1993-05-27 19:42:23 +00:00
Ian Lance Taylor 9a7d824a26 * app.c (do_scrub_begin): Let line_comment_chars override
comment_chars.
	(do_scrub_next_char): If a line comment character is not at the
	start of a line, treat it as a comment character if it is one.
	For a CPP line comment use pseudo-op .appline rather than .line.
	* input-scrub.c (logical_input_line): Make int rather than
	unsigned.
	(input_scrub_push, input_scrub_begin): Initialize
	logical_input_line to -1 rather than 0.
	(bump_line_counters): Increment logical_input_line.
	(new_logical_line): If line_number is -2, decrement
	logical_input_line.
	(as_where): Use logical_input_line even if it is 0.
	* read.h (s_app_file prototype): Now takes an int argument.
	* read.c (potable): Make .appfile call s_app_file with 1.  New
	.appline pseudo-op calls s_app_line.
	(s_app_file): If .appfile, call new_logical_line with -2 to
	account for newline inserted by do_scrub_next_char.  If listing,
	call listing_source_file.
	(s_app_line): New function to handle fake pseudo-op .appline.
	* config/obj-coff.c (obj_pseudo_table): Make .appline call
	obj_coff_ln.
	(obj_coff_ln): Added argument to indicate whether .appline.
	* config/obj-coffbfd.c (obj_pseudo_table): Make .appline call
	obj_coff_ln.
	(obj_coff_ln): Added argument to indicate whether .appline.
	* config/tc-mips.c (s_file): Pass argument to s_app_file.
1993-05-27 19:29:38 +00:00
Ian Lance Taylor 61f14fb0da * config/obj-bout.h (S_GET_VALUE): Removed unnecessary cast. 1993-05-25 19:16:16 +00:00
Steve Chamberlain 6eef4543ca * config/tc-h5000.c (build_bytes): Understand @rd mode and build
relocations correctly.
1993-05-19 14:44:12 +00:00
Ken Raeburn f8f6147851 updated 1993-05-17 19:25:48 +00:00
Ian Lance Taylor 204ff785f8 Fix stuff broken when sh support was checked in.
* tc.h (TC_COFF_SIZEMACHDEP): Don't define here.
	* config/tc-sh.h (TC_COFF_SIZEMACHDEP): Define here instead.
1993-05-13 14:52:59 +00:00
Ken Raeburn 65824763af configure.in: treat m68*-*-sysv* target like m68k-*-coff 1993-05-10 19:05:04 +00:00
Ian Lance Taylor 21bb48b9b9 * config/tc-mips.c (macro): Correct floating point double word
loads and stores for big endian target.
1993-05-05 21:02:11 +00:00
Ken Raeburn e7c2f9431c lots o' changes 1993-05-05 20:51:35 +00:00
Ian Lance Taylor 5d6cfa60ae * config/obj-ecoff.c (init_file): Set fMerge to 0 since dbx seems
to want it that way.
	(ecoff_build_symbols): Turn local st_Proc symbols into
	st_StaticProc symbols.  Set index field of external st_Proc and
	st_staticProc symbols correctly.
	* config/tc-mips.h (NO_LISTING): Don't define.  People might want
	listings.
1993-05-05 20:18:38 +00:00
Ian Lance Taylor a13872602a * config/obj-ecoff.c (obj_symbol_new_hook): Make up a .file if one
hasn't been seen yet.
	(add_ecoff_symbol): Don't refer to cur_file_ptr if it is NULL.
1993-04-28 20:44:05 +00:00
Steve Chamberlain 4a1bbbe75b Support for Hitachi SH 1993-04-27 01:32:09 +00:00
Ian Lance Taylor be2f6bd65b * expr.c (operand): Fix unary plus operator (previously was the
same as '~' operator!).
1993-04-26 19:29:58 +00:00
Roland Pesch 97a6070c83 as.texinfo, Makefile.in 1993-04-15 23:27:39 +00:00
Ian Lance Taylor 55ff56bdb2 Fix typo. 1993-04-09 16:10:30 +00:00
Ian Lance Taylor 349f20de4e * config/obj-ecoff.h (ecoff_build_lineno): Make ilineMax in
symbolic header match cline in FDR; the native liinker seems to
	want that.
1993-04-09 16:08:29 +00:00
David D. Zuhn 5316696f0d as.texinfo lives in $(srcdir) 1993-04-08 22:53:01 +00:00
Roland Pesch 8ac18b21c3 doc/Makefile.in 1993-04-08 22:17:13 +00:00
Ian Lance Taylor d565311f22 * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__,
rather than undefining know.
1993-04-08 19:55:44 +00:00
Roland Pesch 0742a6fded Record abolition of last m4 conditional markup holdout manual. 1993-04-08 03:20:44 +00:00
Ian Lance Taylor 84e4920fc1 * config/tc-mips.c (gp_reference): Certain magic symbols can never
be referenced off the GP register.
1993-04-06 00:56:53 +00:00
Ian Lance Taylor 367fc8358a * app.c (do_scrub_next_char): Handle states 9 and 10 correctly
when dealing with characters of type LEX_IS_TWOCHAR_COMMENT_1ST,
	LEX_IS_STRINGQUOTE, and LEX_IS_ONECHAR_QUOTE.
1993-04-05 19:02:20 +00:00
Steve Chamberlain dd4227d392 *** empty log message *** 1993-04-04 22:23:12 +00:00
Ian Lance Taylor 0433135db4 * config/tc-mips.h (LOCAL_LABEL): Treat any label starting with
'$' as local, for any object file format.
1993-04-02 21:34:56 +00:00
Ian Lance Taylor 477b4b040e * config/tc-mips.c (macro): Optimizations to branching code and a
couple of bug fixes from ralphc@pyrps5.eng.pyramid.com (Ralph
	Campbell).
1993-04-02 21:25:20 +00:00
Ian Lance Taylor ed364bb694 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
* configure.in (mips-sgi-irix*): Set gas_host to irix.
1993-04-02 16:57:17 +00:00
Ian Lance Taylor 670a50ebf6 * subsegs.c (subseg_new): Set output_section of new section.
* as.c (perform_an_assemly_pass): Don't set output_section here.
	* expr.c (expr_part, expr): Turn off section assertions for ECOFF,
	since it has additional sections.
	* read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
	not bss_section.
	* config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
	ecoff_undefined field.
	* config/obj-ecoff.c (obj_symbol_new_hook): Initialize
	ecoff_undefined field.
	(add_file): If using stabs, just output a stabs symbol rather than
	creating a new fdr.
	(obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
	it with get_absolute_expression, rather than skipping it by hand.
	(obj_ecoff_loc): If using stabs, just output a stabs symbol rather
	than ECOFF line number information.
	(obj_ecoff_stab): Accept non-zero values for stabs line number.
	(ecoff_build_symbols): Set ifilesym correctly.  Set storage class
	to small, undefined and/or readonly sections if appropriate.
	Don't output symbol names containing \001 characters.
	(ecoff_frob_file): Make sure at least one fdr is output.
	* config/tc-mips.h: Define TC_MIPS.
	* config/tc-mips.c (g_switch_value): New static variable.
	(md_assemble): Set gp size of output BFD.
	(gp_reference): New function; returns 1 if expression can be
	accesssed via gp.  Always returns 0 if not using ECOFF.
	(macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
	possible.
	(macro): Generate sequences using gp if possible.
	(md_parse_option): Ignore -EL and -EB.  Parse -G.
	(md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
	(s_change_sec): Handle .rdata and .sdata for ECOFF.
	(s_extern): Mark symbol as external.  Set ecoff_undefined field.
1993-04-01 02:14:29 +00:00
Ken Raeburn 4b061a2a1a log doc change 1993-03-31 00:51:59 +00:00
Ken Raeburn 4478def83a go back to const instead of CONST 1993-03-30 16:23:32 +00:00
Ken Raeburn 2b1b569795 checkpoint, for lots of recent changes 1993-03-30 16:18:16 +00:00
Steve Chamberlain e02eaa5943 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
wasn't being stored into scnhdr.
	* config/obj-coffbfd.h: Add prototype of s_get_segment.
	* read.c (TC_START_LABEL): Default definition.
	(read_a_source_file): Use TC_START_LABEL macro to work out
	if a label has been seen.
1993-03-29 21:56:49 +00:00
Ian Lance Taylor c39b3eba78 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
the bottom (make expands variables in dependencies when the
	dependencies are read, not when they are used).
1993-03-29 21:49:44 +00:00
Ian Lance Taylor 543d88e4fd * config/obj-coffbfd.c (fill_section): Don't set NOLOAD bit for
a29k .bss section; the mondfe program doesn't like it.
1993-03-29 20:58:34 +00:00
Ian Lance Taylor 61001d969d * config/obj-coffbfd.c (do_relocs_for): Remove a29k special case.
(fixup_segment): Add a29k special case; the linker is not prepared
	to see a segment offset here.
1993-03-25 22:09:27 +00:00
Ian Lance Taylor 2c19a57c44 * app.c (do_scrub_next_char): Added new state, 10, modifying state
9 to only keep a space in between identifier characters.
1993-03-25 17:18:23 +00:00
David D. Zuhn 2d4bef5ef6 doc last changes 1993-03-25 08:32:55 +00:00
David D. Zuhn afcc637a43 add dvi target 1993-03-24 21:51:04 +00:00
David D. Zuhn 80c8fd72ed add installcheck 1993-03-23 08:03:44 +00:00
Ian Lance Taylor 1369949e5e * config/tc-mips.c (macro): Use $AT for any floating point load.
Also get the debugging information right in obj-ecoff.c.
1993-03-22 22:18:43 +00:00
Ken Raeburn 63cdddadd7 fix an m68k 0r0... bug 1993-03-20 20:54:00 +00:00
Jim Wilson 69498fa243 Make targ-cpu.o depend on config.h so gas will build from scratch. 1993-03-20 05:03:31 +00:00
Ian Lance Taylor f6a91cc0f7 * app.c (do_scrub_next_char): Added new state, 9, to avoid
dropping a space immediately following an identifier.
	* expr.c, write.c: Rewrote assert expressions to not use multiple
	lines; I don't think that can be done portably.
	* config/tc-mips.c (macro): Use $AT if target register is zero in
	load instruction, which it can be for a floating point load.

Also a bunch more changes to config/obj-ecoff.c, still in flux.
1993-03-18 00:52:37 +00:00
Ian Lance Taylor 3d3c503955 * write.c (write_contents): Compute the relocs before writing out
the section contents.
	* config/obj-ecoff.h, config/obj-ecoff.c: Numerous changes to get
	symbol table and values right.
	* config/tc-mips.h (LOCAL_LABEL): If OBJ_ECOFF, any label starting
	with $L is local.
	* config/tc-mips.c (tc_gen_reloc): If OBJ_ECOFF, adjust the addend
	by the section vma.

	* config/z8k.mt (TARG_CPU_DEPENDENTS): The relevant file is
	z8k-opc.h, not z8k.h.
1993-03-15 23:58:22 +00:00