Commit Graph

2197 Commits

Author SHA1 Message Date
Ian Lance Taylor 2a0f64a535 * symbols.c (S_IS_LOCAL): All symbols in reg_section are local. 1995-09-27 20:21:07 +00:00
Ian Lance Taylor 18c9057f2b * config/tc-ppc.h (OBJ_XCOFF): Define if OBJ_COFF and not TE_PE.
Change OBJ_COFF checks to check OBJ_XCOFF instead.
	(TARGET_FORMAT): Fully parenthesize.
	(LEX_QM): Define if TE_PE.
	* config/tc-ppc.c: Replace OBJ_COFF by OBJ_XCOFF throughout.
	Remove checks of TE_PE within #ifdef OBJ_XCOFF sections.
	(init_regtable): Make i unsigned.
	(ppc_set_current_section): Rename from setCurrentSection.  Change
	all callers.
	(ppc_arch): Return after as_fatal to avoid gcc warning.
	(md_assemble): Only declare reloc if OBJ_ELF.  Add default to
	switch on fixups[i].reloc to avoid gcc warning.
	(IMAGE_SGN_LNK_OTHER): Fix nested comment.
	(ppc_pe_function): Don't call ppc_canonicalize_symbol_name.
	(ppc_frob_symbol): Remove TE_PE section checks.
	(md_estimate_size_before_relax): Return after abort to avoid gcc
	warning.
	(md_apply_fix3): Add BFD_RELOC_16_GOT_PCREL to switch.
	* read.c (LEX_QM): Define as 0 if not defined.
	(lex_type): Use LEX_QM for '?'.
1995-09-27 19:02:16 +00:00
Ian Lance Taylor 4cbbec3182 * configure.in: No need to check whether ${cpu_type} is powerpc;
it never will be.
	* configure: Rebuild.
1995-09-27 16:56:23 +00:00
Kim Knuttila 01c7fb71de Details of more fixes to earlier fixes 1995-09-27 16:33:05 +00:00
Kim Knuttila 7d85ea67ae Removed an extraneous PPC definition 1995-09-27 16:23:12 +00:00
Kim Knuttila 943dbfb8e8 Added back some missing code @ diff tc-ppc.c 1995-09-27 16:03:36 +00:00
Michael Meissner 0e31d0ce8a Undo md_apply_fix3 changes 1995-09-27 15:37:54 +00:00
Kim Knuttila d577efdd5f Initial asm support for ppc/PE 1995-09-27 14:52:16 +00:00
Kim Knuttila 85cc2190f5 Configure support for ppc/PE 1995-09-27 14:49:37 +00:00
Kim Knuttila 1f7cc434dc Added assembler support for ppc/PE environments 1995-09-27 14:48:45 +00:00
Kim Knuttila 1d854da665 Added TE_PE target environment support 1995-09-27 14:47:41 +00:00
Michael Meissner 65c91be516 Support all of the V.4 relocations 1995-09-26 19:17:10 +00:00
Michael Meissner 4ecbc1efea Better reloc support 1995-09-25 20:15:13 +00:00
Ian Lance Taylor 1f5397cad3 * gas/mri/mri.exp: Add setup_xfail for arm*-*-* for constants
test.
1995-09-25 16:32:51 +00:00
Ian Lance Taylor 800172405a * config/tc-arm.c (md_atof): Output little endian constants in
little endian mode.
1995-09-25 16:29:30 +00:00
Ian Lance Taylor 057a4d414e * configure.in: Fix typo: fmt-elf to fmt=elf. 1995-09-25 04:26:30 +00:00
Michael Meissner 25b1cdd0f3 start at handling branch taken/branch not taken hints. 1995-09-22 20:42:38 +00:00
Michael Meissner 4493af6636 do not set EF_PPC_RELOCATABLE for -mrelocatable-lib 1995-09-22 01:19:53 +00:00
Ian Lance Taylor 52e1cf9d01 * subsegs.c (subseg_set): Permit SEG_ABSOLUTE in know expression.
* expr.c (expr): Account for new operatorT values in know
	expression.

	* write.c (fixup_segment): Clear fixp->fx_subsy if the relocation
	is fully resolved.
1995-09-21 20:42:11 +00:00
Michael Meissner 2c4747540f add -mrelocatable-lib, -memb support 1995-09-21 20:23:15 +00:00
Jeff Law af4ea2afbf * gas/sh/fp.s (fmac): Update for new assembly syntax. 1995-09-21 07:28:42 +00:00
Ian Lance Taylor af9310299f * config/tc-m68k.c (m68k_ip): Reject immediate operands for '%'. 1995-09-19 19:50:59 +00:00
Ian Lance Taylor 9adcd78108 * config/tc-m68k.c (m68k_ip): Reject immediate operands for '|'.
Replace 'P' with '0', '1', and '2'.
1995-09-19 19:33:48 +00:00
Ian Lance Taylor e1c0287d1c * config/tc-m68k.c (parse_mri_control_operand): Change leftstop
and rightstop to not be const.
	(parse_mri_control_expression): Likewise.
	(build_mri_control_operand): Likewise.  Use m68k_ip_op to examine
	the operand, not m68k_reg_parse.
	(s_mri_if): In MRI mode, stop at the first '*'.
	(s_mri_while): Likewise.
	(s_mri_else): In MRI mode, ignore trailing characters.
	(s_mri_endi, s_mri_break, s_mri_next, s_mri_for): Likewise.
	(s_mri_endf, s_mri_repeat, s_mri_until, s_mri_endw): Likewise.
	* config/m68k-parse.y: Revert yesterday's change.
	* config/m68k-parse.h: Revert yesterday's change.
1995-09-19 15:36:38 +00:00
Ian Lance Taylor b3625fe62c * config/tc-m68k.c (parse_mri_control_operand): Change leftstart
and rightstart to not be const.
	(parse_mri_control_expression): Likewise.
	(build_mri_control_operand): Likewise.  If the left side of the
	comparison is a register, and the right side is not, swap the two
	sides.
	* config/m68k-parse.y (m68k_reg_parse): Make globally visible.
	* config/m68k-parse.h (m68k_reg_parse): Declare.
1995-09-18 22:25:54 +00:00
Ian Lance Taylor f9680a0598 * read.c (mri_comment_field): New function.
(mri_comment_end): New function.
	(s_align_bytes): Use mri_comment_field.
	(s_align_ptwo, s_comm, s_mri_common, s_fail, s_globl): Likewise.
	(s_float_space, s_struct): Likewise.
	(s_space): Use mri_comment_field rather than doing it by hand.
	(cons_worker, equals): Likewise.
	(s_end): Ignore comments starting with '*' or '!'.
	* read.h (mri_comment_field): Declare.
	(mri_comment_end): Declare.
	* cond.c (s_if): Use mri_comment_field.
	* config/tc-m68k.c (s_chip, s_reg): Likewise.
1995-09-18 21:53:40 +00:00
Ian Lance Taylor 3b06beb757 * write.c (fixup_segment): Handle ABS-sym in -sym case rather than
sym-sym case.
	* config/obj-coff.c (fixup_segment): Likewise.  Permit negative
	symbols if TC_M68K.
	* config/tc-m68k.c (tc_coff_fix2rtype): If fx_tcbit is set, return
	R_RELLONG_NEG.
	(tc_gen_reloc): If fx_tcbit is set, abort.
	(md_apply_fix_2): For a negative reloc, move fx_subsy to fx_addsy,
	and set fx_tcbit.
Permits generating negative relocs for m68k COFF.
1995-09-18 21:11:34 +00:00
Ian Lance Taylor 85f341221b * config/tc-m68k.c (s_reg): Ignore comment field in MRI mode. 1995-09-18 19:23:53 +00:00
Ian Lance Taylor e4c3b47593 Mon Sep 18 14:44:04 1995 Arne H. Juul <arnej@pvv.unit.no>
* configure.in (mips-dec-netbsd*): New target.
	* configure: Rebuild.
1995-09-18 18:45:56 +00:00
Ian Lance Taylor 336933a863 * lib/gas-defs.exp (gas_run): Call prune_system_crud.
(run_dump_test, objdump): Likewise.
1995-09-18 18:05:49 +00:00
Ken Raeburn 0afed96a34 in verbose mode add newline after files are processed 1995-09-18 16:28:11 +00:00
Ian Lance Taylor 70f4dbce64 * configure.in: Set endian to little for mips-*-ultrix*.
* configure: Rebuild.
1995-09-18 02:20:06 +00:00
Jeff Law 326b087c89 * config/tc-m68k.c: Change some "CONST" references to "const".
Just changed those which caused redefinition errors on a system where
CONST != const.  Many more remain.
1995-09-16 03:44:03 +00:00
Ken Raeburn d069ef6ff1 vms updates 1995-09-15 21:47:19 +00:00
Ken Raeburn d57bf0e0de vms updates 1995-09-15 21:41:56 +00:00
David Edelsohn 8567205d48 * gas/sparc/{wrdr.[ds],rdpr.[ds]}: New tests.
* gas/sparc/sparc.exp: Run them.
1995-09-14 20:12:01 +00:00
Ian Lance Taylor 0fc4bbe3cc * Makefile.in, configure.in: Remove; the testsuite is now run
directly from the gas Makefile.
1995-09-13 20:37:46 +00:00
Ian Lance Taylor 5f757edc84 * Makefile.in (EXPECT): New variable.
(CHECKFLAGS): Remove.
	(site.exp): New target.
	(check): Rewrite to invoke runtest directly, rather than recurring
	down into testsuite.
	(clean-here): Remove testsuite directory.
	(clean, distclean): Don't recur into testsuite.
	* configure.in: Don't call AC_CONFIG_SUBDIRS(testsuite).
	* configure: Rebuild.
1995-09-13 20:35:17 +00:00
Ian Lance Taylor f00f5ecd1d * write.c (relax_and_size_seg): Change to the segment we are
relaxing, in case md_convert_frag, called by cvt_frag_to_fill,
	wants to call fix_new.
	* config/tc-m68k.c (m68k_ip): Permit PC relative code if the
	segment of the symbol is the current segment, not just in
	text_section.
	(md_convert_frag_1): Don't call subseg_change.
	(md_estimate_size_before_relax): Likewise.
1995-09-13 17:19:27 +00:00
David Edelsohn 58a4f585f7 * config/tc-arm.c (md_atof): Fix debugging printf, and leave it
out by default.
1995-09-12 17:39:15 +00:00
Ian Lance Taylor 812e4a9bc2 * doc/configure.in: Remove unused file. 1995-09-11 20:53:46 +00:00
Ian Lance Taylor 33bd5d6153 * app.c (do_scrub_chars): Grab all available spaces at start of
line before preserving a single space.  Remove state == 0 test
	which will never succeed.
	* macro.c (macro_expand_body): Delete local variables from the
	formal hash table.
	(macro_expand): In MRI mode, stop when whitespace is seen in the
	argument list.
1995-09-11 18:34:55 +00:00
Ian Lance Taylor 77b5f15932 * gas/mri/empty.s: New file.
* gas/mri/mri.exp: Test assembling empty.s.
	* gas/mri/comment.s: Add a couple more comment variants.
1995-09-11 16:07:49 +00:00
Ian Lance Taylor e325f98f13 * sb.c: Include "libiberty.h".
* macro.c: Likewise.  Also include <stdlib.h> if it exists.
1995-09-11 15:48:13 +00:00
Ian Lance Taylor e103ad308c * gas/mri/mri.exp: Add xfail for the expr test for all hppa
targets.
1995-09-11 15:46:48 +00:00
Ian Lance Taylor 92a25e12ff * app.c (do_scrub_chars): In MRI mode, keep a space before a
possible comment character.
	* config/tc-m68k.c (m68k_ip): In MRI mode, ignore anything after
	an instruction which takes no operands.
1995-09-08 19:17:46 +00:00
Ian Lance Taylor 138b11d825 * Makefile.in (install): Don't install gasp in $(tooldir). 1995-09-08 18:43:50 +00:00
Ian Lance Taylor ee14a559e3 * config/tc-mips.c (macro): Handle a non zero base register for
M_U{L,S}{D,W,H}_A.
PR 7947.
1995-09-08 05:06:45 +00:00
Ian Lance Taylor 1359db1b8c * gasp.c (show_usage): Put program_name argument in first fprintf,
not second.
1995-09-08 04:30:24 +00:00
Ian Lance Taylor 3dce804d95 * expr.c (operand): Handle 08 and 09 in MRI mode.
* macro.c (ISSEP): Remove duplicated `"' character.
 	(get_any_string): Copy some characters for which ISSEP is true:
	';', '>', '(', ')'.  Otherwise we can get in an infinite loop.
	* read.c (s_space): In MRI mode, the expressions stop at the first
	unquoted space.
	(cons_worker): In MRI mode, restore the terminating character at
	the end of the function.
1995-09-07 21:54:13 +00:00