Commit Graph

725 Commits

Author SHA1 Message Date
Ian Lance Taylor
332fc09ff0 Clean up some of the obvious m88k bitrot.
It still doesn't actually compile, though.
1993-07-09 18:31:36 +00:00
David D. Zuhn
00a737d37c put CROSS definition into the Makefile 1993-07-08 19:19:31 +00:00
Ken Raeburn
b25654337a Oops, not all of the tc-sparc.c change was format-independent.
Still handles both syntaxes independent of format.
1993-07-08 19:09:19 +00:00
Mark Eichin
d358969d94 changelog for tc-i960 change 1993-07-08 18:50:43 +00:00
Mark Eichin
c47d388b75 Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
* config/tc-i960.c (md_create_short_jump, md_create_long_jump,
	md_number_to_chars, md_section_align): Adjusted to use valueT,
	addressT, to match tc.h.
1993-07-08 18:44:32 +00:00
Ken Raeburn
ff4cac3854 config/tc-sparc.c (s_common): Revamp to handle both syntaxes, and not be
target-specific.
1993-07-08 18:40:50 +00:00
David Edelsohn
422069965b config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h. 1993-07-08 14:26:17 +00:00
David D. Zuhn
8f4b91429e define CROSS is cross compilation 1993-07-08 03:15:36 +00:00
David D. Zuhn
e9baeb4606 define CROSS is cross compilation 1993-07-08 02:55:22 +00:00
Ian Lance Taylor
e154ecf4ab * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
core just because somebody uses a label before it is defined.
1993-07-07 20:07:12 +00:00
Ian Lance Taylor
4e2e8744c5 This file was not removed last time. Why?? 1993-07-07 17:29:12 +00:00
Ian Lance Taylor
918692a5cc * config/mips-opcode.h: Moved to opcode/mips.h.
* config/tc-mips.c: Include opcode/mips.h rather than
	mips-opcode.h.
	(append_insn): An extra NOP is only needed after instructions
	which set HI or LO, not after instructions which read it.
	(macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
	(macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
	* config/tc-mips.h (struct mips_opcode): Don't define.
	* config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
	Set to $(srcdir)/../include/opcode/mips.h.

	Get the MIPS assembler up to speed with other gas changes:

	* config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
	Removed; don't change the symbol value.
	(ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
	bfd_asymbol_value rather than S_GET_VALUE to include section
	vma in symbol value.
	(ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
	doesn't output them.  Set the vma of sections.
	* config/obj-ecoff.h: Don't define obj_frob_symbol.
	* config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
	longer necessary.
	(various): use valueT rather than long.
1993-07-07 17:23:39 +00:00
Ian Lance Taylor
76c64db09f Various entries. 1993-07-07 17:22:56 +00:00
Ken Raeburn
e28e0b95ed Typedef changes. V9 work. 1993-07-07 17:16:02 +00:00
Ken Raeburn
125f0b0d84 (sparc_ip): Initialize `len' variable to make gcc shut up.
(md_create_short_jump, md_create_long_jump, md_number_to_chars,
md_section_align): Adjusted for new interface.

(s_reserve): Permit use for other than a.out format.
(s_common): Handle Solaris-2 version.

(s_xword): For numbers, call big_cons.
(sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64 reloc types.
(md_number_to_chars): Handle 8-byte values.
1993-07-07 16:58:29 +00:00
Ken Raeburn
3c8df4ba76 (md_create_short_jump, md_create_long_jump,
md_number_to_chars, md_section_align): Adjusted for new interface.
1993-07-07 16:56:24 +00:00
Ken Raeburn
6e3785155d Change various calls (e.g., to symbol_new, md_number_to_chars) to cast
valueT or addressT arguments to correct types.
1993-07-07 16:40:30 +00:00
Ken Raeburn
039d8f7350 (struct fix): Fields fx_offset and fx_addnumber are now type valueT.
(fix_new): Argument offset is now type offsetT.
1993-07-07 16:39:13 +00:00
Ken Raeburn
d536474829 (write_object_file): Locals from_addr, to_addr, table_addr are now addressT.
Supply prototype for bfd_alloc for now.
(fixup_segment): Local add_number is now valueT.  Fix some range-checking bugs.
(relax_align): Type `int' should be sufficient for the exponent.
(fix_new): Argument offset is offsetT.  Locals size and newsize are valueT.
1993-07-07 16:33:38 +00:00
Ken Raeburn
2b68b820a9 * symbols.c (symbol_new): Symbol value is type valueT.
(S_SET_VALUE, S_GET_VALUE): Likewise.
(S_IS_*): Specify int return type explicitly.
* symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed prototypes.
1993-07-07 16:25:37 +00:00
Ken Raeburn
bd4d4b8aca (obj_elf_frob_symbol, elf_frob_file, elf_file_symbol): Declare.
(elf_symbol): For sparc v9, use 64-bit symbol type.
1993-07-07 16:22:12 +00:00
Ken Raeburn
dee576a0a7 clean v9 from obj-elf.h 1993-07-07 16:19:59 +00:00
Ken Raeburn
25c09bbf44 Define ENV64 for sparc v9. 1993-07-07 16:17:29 +00:00
Ken Raeburn
7d0ed38fc3 (free): Returns void if __STDC__. 1993-07-07 16:14:44 +00:00
Ken Raeburn
4032436291 (s_comm): Values read are type valueT. 1993-07-07 12:37:58 +00:00
Ken Raeburn
2fe8b7b003 (expressionS): Field X_add_number is an offsetT. 1993-07-07 12:36:51 +00:00
Ken Raeburn
dae92eaba0 (integer_constant, floating_constant): Now return void. 1993-07-07 12:35:48 +00:00
Ken Raeburn
b17c891e58 move valueT typedef to as.h from struc-symbol.h 1993-07-07 12:33:43 +00:00
Ken Raeburn
f520031860 localize a conditionally used variable 1993-07-07 12:33:11 +00:00
David D. Zuhn
bb554e9423 fix decls 1993-07-02 01:33:33 +00:00
Ian Lance Taylor
267389df6d * read.c (cons): Conditionalize parsing of expression. Move
putting value into object file into separate function.  Separate
	out MRI and WANT_BITFIELDS cases into separate functions.
	(emit_expr): New function to write data into object file.
	Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
	processor types.
	(parse_bitfield_cons): New function to parse bitfield expressions
	as used by i960 assemblers.  Only compiled if
	BITFIELD_CONS_EXPRESSIONS is defined.
	(parse_mri_cons): New function to parse MRI style strings.  Only
	compiled if MRI is defined.
	(parse_repeat_cons): New function to parse repeat counts.  Only
	compiled if REPEAT_CONS_EXPRESSIONS is defined.
	* read.h (emit_expr): Added declaration of new function.
	* config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
	* config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
	* config/tc-hppa.c (parse_cons_expression_hppa): New function to
	parse a HPPA expression, rather than special case in cons
	function.
	(cons_fix_new_hppa): New function to emit an HPPA fixup, rather
	than special case in emit_expr function.
	* config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
	Define to use new functions from tc-hppa.c.
	* config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
	(WANT_BITFIELDS): Removed; now obsolete.
	* config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
	* config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
	NS32K fixup, rather than special case in emit_expr function.
	* config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
	cons_fix_new_ns32k.  Also use PARAMS rather than checking
	__STDC__.
	* config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.

	* write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
	Don't core dump if gas has no information about a section.
1993-06-30 18:27:41 +00:00
Ken Raeburn
41532f54c6 sparc64 changes 1993-06-30 10:34:32 +00:00
Ken Raeburn
d4ac2d09fd New files for sparc64 cpu. 1993-06-30 10:30:54 +00:00
David D. Zuhn
a828550492 fix HPUX hosting problems 1993-06-29 17:22:03 +00:00
David Edelsohn
83f26cee7b * config/sparc.c (sparc_ip): Remove support for %d/%q fp regs.
All fp regs are now specified as %f.
(priv_reg_table): fpq -> fq.
1993-06-25 17:50:22 +00:00
Ken Raeburn
ed9638af53 (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22 relocation.
(s_local) [OBJ_ELF]: New function.
(md_pseudo_table) [OBJ_ELF]: Call it for "local".
(s_common): Rearrange to handle Solaris .common pseudo, which may sometimes use
bss space instead of common.
(md_parse_option) [OBJ_ELF]: Print version id for -V.  Ignore -Q and -s options
for now.
1993-06-25 09:51:47 +00:00
Ken Raeburn
50fccebe22 (INCLUDES): Look in ../bfd, not ../include, for bfd.h. 1993-06-20 22:25:46 +00:00
Ken Raeburn
17145ba27a Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
* m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
	specified, should have both S1 and S2 fields identical
	If only finding the problem was as fast as fixing the bug !!!!
1993-06-20 21:56:23 +00:00
Steve Chamberlain
a3a0a4d0a5 Look in the right place for bfd.h. 1993-06-18 21:08:36 +00:00
David D. Zuhn
5ebaf24b77 single-quote $program_transform_name 1993-06-18 19:25:38 +00:00
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
David D. Zuhn
c97b9003b0 remove parentdir support; use INSTALL_XFORM 1993-06-16 00:03:44 +00:00
Ken Raeburn
610648001b I don't think this file is needed any more 1993-06-10 01:35:17 +00:00
Ken Raeburn
9317b3fad8 patches from tege 1993-06-10 01:33:42 +00:00
David Edelsohn
3756b1b9f3 config/tc-sparc.c: (sparc_ip): Fix parsing of asi number. Fix error message. 1993-06-07 16:57:18 +00:00
Ken Raeburn
b15fb2aec6 clean v9 stuff out of configure.in 1993-06-04 23:06:28 +00:00
Steve Chamberlain
ad86fa7047 * config/h8300.c: Support for H8/300-H opcodes.
* config/obj-coffbfd.c (w_strings): String table length is 4
	bytes, no matter what the host int size is.
1993-06-04 23:03:00 +00:00
Steve Chamberlain
cb0b800b0e Added alpha as host. 1993-06-04 23:02:19 +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
31fb7d23a0 keep ho-hppabsd.h 1993-06-03 21:23:53 +00:00
Ken Raeburn
7577669525 today's changes 1993-06-03 20:39:20 +00:00
Ken Raeburn
f853f5435d new file, from utah 1993-06-03 19:58:32 +00:00
Ken Raeburn
0c6eb684cc don't bother checking return value from hash_new 1993-06-01 22:46:47 +00:00
Rob Savoye
4cf03eb2e7 Add an install-info target too. 1993-06-01 01:40:59 +00:00
Rob Savoye
ece87dfb94 Add info target. 1993-06-01 01:37:45 +00:00
Rob Savoye
d0fa64ec33 Add a blank install target so the top level make won't die. 1993-05-28 04:29:59 +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
K. Richard Pixley
87756e15db added things-to-lose sections 1993-05-27 06:44:29 +00:00
Rob Savoye
b64d5e491a configure.in template that supports *only* make check. (for releases) 1993-05-26 01:55:00 +00:00
Rob Savoye
2a775d5158 Makefile fragment that supports *only* make check. (for releases) 1993-05-26 01:44:49 +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
Steve Chamberlain
1f55e556cc (build_bytes): Understand @rd mode and build relocations correctly. 1993-05-19 14:44:00 +00:00
Ken Raeburn
d3dd198cf0 Steve sez SH stuff is public now 1993-05-17 20:10:15 +00:00
Ken Raeburn
2989a84ef4 keep the directories that contain tests 1993-05-17 20:07:11 +00:00
Ken Raeburn
cf9b957854 don't keep testscripts subdir 1993-05-17 19:35:50 +00:00
Ken Raeburn
f8f6147851 updated 1993-05-17 19:25:48 +00:00
Ken Raeburn
0630b39c7d new tests 1993-05-17 19:13:38 +00:00
Ken Raeburn
342143440a Updated list of m68k options, described required-register-prefix hack.
Added a tiny bit of documentation on MIPS target.
Minor tweaks to `-a' description.
1993-05-14 11:00:17 +00:00
Ken Raeburn
607c86259f updated 1993-05-14 10:57:21 +00:00
Ken Raeburn
74fa454788 override obj_header_append from obj-aout.c 1993-05-14 10:56:24 +00:00
Ken Raeburn
bbbb0da30e discard empty rs6000 files 1993-05-14 10:54:34 +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
54f10da0da whitespace changes; rely on default initialization for a var 1993-05-10 19:07:57 +00:00
Ken Raeburn
65824763af configure.in: treat m68*-*-sysv* target like m68k-*-coff 1993-05-10 19:05:04 +00:00
Ken Raeburn
6bf74aa6ca Reorganized test hierarchy to categorize tests.
New test procs support examining listing output from assembler.
New tests added.
1993-05-10 18:58:50 +00:00
Ken Raeburn
daae8c92f1 keep new files 1993-05-06 02:03:00 +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
Ken Raeburn
7cf4d7ff1a hp300 support. Emulation mode fix for 386bsd and linux.
Reworded some messages.
Warn if bfd-assembler explicit selection on command line is overridden by
target requiring it be set.  (No targets override to clear currently.)
1993-05-05 20:50:53 +00:00
Ken Raeburn
27cf8bfb1b BFD_ASSEMBLER md_convert_frag section arg is not a pointer 1993-05-05 20:46:11 +00:00
Ken Raeburn
b27caf27c8 PR fix for debug symbols referring to other symbols, then same name defined
as common.
(crawl_symbols): Don't clear sy_forward field.
(yank_symbols): Merge symbols only if sy_forward is null.
1993-05-05 20:32:12 +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
Ken Raeburn
80fa125df7 hppa configuration 1993-05-05 12:43:06 +00:00
Ken Raeburn
c77809b592 hp300 hpux configuration 1993-05-05 12:41:52 +00:00
Ken Raeburn
d6f72574a2 include ctype.h, and some special-purpose regs for 29050 1993-04-28 23:12:04 +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
Ken Raeburn
10f7b933f5 keep new utility scripts 1993-04-22 06:42:47 +00:00
Ken Raeburn
b1ad8e76bb keep new test cases 1993-04-22 06:42:06 +00:00
Ken Raeburn
469144a2dc keep change log 1993-04-22 06:39:49 +00:00
Ken Raeburn
7e97646ef8 version.c is gone 1993-04-22 06:39:01 +00:00
Ken Raeburn
0d0ae7fac7 Handle new tests, and new testing modes.
Now gas_test accepts an argument listing options to be tried, individually
or in combination, and whether output should be expected.
Proc gas_test_error says output should be expected.
Still not checking exit status properly, though.
1993-04-21 05:36:56 +00:00
Ken Raeburn
44f0847aba The customer's test case is p2430a.s; p2430.s has different whitespace,
comments, who knows what else, but something makes them different.  This
should be checked by the driver, because they shouldn't be different...
1993-04-21 05:30:13 +00:00