Commit Graph

2251 Commits

Author SHA1 Message Date
Kim Knuttila 1446dd7266 updated changes 1995-09-28 20:21:36 +00:00
David Edelsohn 8de16e5603 (arm-*-coff): Fix configuration. 1995-09-28 17:33:04 +00:00
Ian Lance Taylor 11b072f46c * config/tc-ppc.h (tc_fix_adjustable): Define.
(ppc_pe_fix_adjustable): Declare.
	* config/tc-ppc.c (ppc_pe_fix_adjustable): New function.
1995-09-28 16:17:53 +00:00
David Edelsohn 277c7a9919 * config/tc-arm.h (TARGET_FORMAT): Define for arm-coff. 1995-09-28 08:13:18 +00:00
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
Ian Lance Taylor 94a7312289 * read.c (cons_worker): Don't use #elif; old compilers don't
support it.
1995-09-07 16:35:37 +00:00
Ian Lance Taylor e840039ffc * gas/mri/comment.s, gas/mri/comment.d: New test.
* gas/mri/mri.exp: Run it.
	* gas/mri/expr.s: Remove whitespace in operand field.
	* gas/mri/for.s: Add comments for further testing.
	* gas/macros/test2.s: Put in an upper case ELSE to test case
	insensitivity.
1995-09-07 01:45:07 +00:00
Ian Lance Taylor 86038ada17 * app.c (do_scrub_chars): In MRI mode, silently end quoted strings
at newline characters.  In MRI mode, always keep spaces in the
	operands field.  In MRI mode, treat a line comment character as a
	regular comment character following a space.
	* cond.c (ignore_input): Use strncasecmp rather than strncmp when
	looking for special pseudo-ops.
	* read.c (cons_worker): In MRI mode, the expressions stop at the
	first unquoted space.
	(equals): Likewise.
1995-09-07 01:17:16 +00:00
Stan Shebs dcf62f7359 * config/tc-mips.c: Remove CYGNUS LOCAL comments.
(md_begin): Use 0/1 instead of TRUE/FALSE.
	(md_show_usage): Break up long format string for the benefit
	of lame compilers.
	* config/tc-m68k.c (md_show_usage): Ditto.
	* gasp.c (show_usage): Ditto.
	* macro.c (check_macro): Cast result of hash_find.
1995-09-06 00:33:55 +00:00
Ken Raeburn 0ee4870895 * configure.in: When testing for a free() declaration in system header files,
cast the address to a function pointer, not to an integer.

* write.c (fix_new_internal): Call TC_INIT_FIX_DATA if TC_FIX_TYPE is defined.
Don't initialize fx_bsr.  Verify that fx_size field is wide enough to hold
stored value.
* write.h (struct fix): Change tc_fix_data to type TC_FIX_TYPE if that is
defined, otherwise omit it.  Delete fx_bsr.  Change fx_size to unsigned char.
* config/tc-i960.h (TC_FIX_TYPE, fx_bsr, TC_INIT_FIX_DATA): New macros.
* config/tc-ns32k.h (TC_FIX_TYPE, fx_bsr, TC_INIT_FIX_DATA): New macros.
* config/tc-hppa.h (TC_FIX_TYPE): Define as PTR.

* config/tc-i860.c (md_apply_fix): Delete code for checking fx_im_disp, and for
handling non-zero values, since it never gets set after being initialized to
zero.

* write.h (struct fix): Make fx_im_disp always 2 bits, since the only tc-*
files actually using it need that much.

NS32K changes from Ian Dall:
* configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
ns32k-pc532-lites* like ns32k-pc532-netbsd*.
* config/tc-ns32k.h (LOCAL_LABELS_FB): Define to 1.
1995-09-05 22:36:41 +00:00
Jackie Smith Cashion 8343d9d806 This change does not affect the MIPS instruction assembly. It is
present only to stop gas complaining when gcc passes through the
"-mcpu=vr4300" switch.

Fri Sep  1 08:20:19 1995  James G. Smith  <jsmith@beauty.cygnus.com>

        * config/tc-mips.c (md_parse_option, md_begin, md_show_usage):
        Add support for "-mcpu=vr4300" as processor identifier.
1995-09-01 15:22:29 +00:00
Steve Chamberlain 305a3af6e3 Thu Aug 31 16:41:06 1995 steve chamberlain <sac@slash.cygnus.com>
* write.c (fixup_segment): Remove change of 29th.
	* config/tc-{i386,arm}.h (TC_FORCE_RELOCATION): Keep RVA relocs.
1995-08-31 23:46:47 +00:00
Ian Lance Taylor f2f232cde2 Tue Aug 29 19:42:58 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/tc-m68k.c (m68k_ip) [case POST/PRE/BASE]: Fix typo when
 	looking at outer displacement.  Don't set the postindex bit if the
 	index suppress bit is set (for memory indirect addressing mode).
1995-08-31 17:50:20 +00:00
David Edelsohn 7408a167bd * config/tc-arm.c (tc_gen_reloc): Delete duplicated code. 1995-08-31 13:50:56 +00:00
Ian Lance Taylor ebcb9b6d4e * app.c (do_scrub_chars): Free saved_input when the from buffer
exactly fills the to buffer.
1995-08-31 03:53:43 +00:00
David Edelsohn 5a75fe70c3 (synth64.[ds]): New testcase. 1995-08-30 23:11:09 +00:00
David Edelsohn d4bc80760e (prefetch.[sd]): New testcase. 1995-08-30 20:58:35 +00:00
David Edelsohn 93dea4e685 * config/tc-sparc.c (parse_keyword_arg, parse_const_expr_arg): New fns.
(sparc_ip): Call them for asi, membar, and prefetch parsing.
1995-08-30 20:49:28 +00:00
David Edelsohn 375b983be2 Keep the sparc subdir. 1995-08-30 06:03:39 +00:00
David Edelsohn 66449f5b5e (membar): New testcase. 1995-08-30 01:34:34 +00:00
David Edelsohn 593d18d36c * config/tc-sparc.c (sparc_ip): Clean up ASI support. 1995-08-29 22:48:54 +00:00
David Edelsohn dfcb88ec92 Start of sparc generic testsuite.
asi.[ds]: new test.
1995-08-29 22:30:13 +00:00
Steve Chamberlain 8c5560f25e Tue Aug 29 13:20:27 1995 steve chamberlain <sac@slash.cygnus.com>
* read.c (potable): Rva is new entry.
	(cons_worker): New, split from cons.  Handles rva.
	(cons, s_rva): Call cons_worker.
	* read.h (s_rva): New declaration.
	* write.c (fixup_segment): Don't throw away rva relocs.
	* config/tc-arm.c (md_apply_fix, tc_gen_reloc): Handle RVA.
	* config/tc-i386.c (tc_coff_fix2type): Handle RVA.
	* config/tc-i386.h (TC_COUNT_RELOC): Remember RVAs.
	(TC_RVA_RELOC): New definition.
1995-08-29 20:28:15 +00:00
David Edelsohn 338a706070 * config/tc-arm.c (do_swi): Allow optional leading '#'. 1995-08-28 00:45:44 +00:00
Ian Lance Taylor d634f0a8af * config/te-delta.h: Include obj-format.h.
* config/te-sco386.h: Likewise.
	* config/te-sysv32.h: Likewise.
1995-08-27 01:18:28 +00:00
Ian Lance Taylor 26743df55b * app.c (scrub_file): Remove.
(scrub_from_file, scrub_to_file): Remove.
	(scrub_string, scrub_last_string): Remove.
	(scrub_from_string, scrub_to_string): Remove.
	(saved_input, saved_input_len): New static variables.
	(struct app_saved): Remove scrub_string, scrub_last_string, and
	scrub_file fields.  Add saved_input and saved_input_len fields.
	(app_push): Adjust saved fields for changes in struct app_save.
	Initialize state and saved_input.
	(app_pop): Adjust saved fields for changes in struct app_save.
	(do_scrub_chars): Rename from do_scrub_next_char and rewrite to
	process a buffer at a time rather than a character at a time.
	(main, as_warn): Remove obsolete testing code.
	* as.h (do_scrub_next_char): Don't declare.
	(do_scrub_chars): Declare.
	(scrub_from_file, scrub_from_string): Don't declare.
	(scrub_to_file, scrub_to_string): Don't declare.
	* input-file.c (input_file_get): New static function.
	(input_file_give_next_buffer): Call do_scrub_chars rather than
	do_scrub_next_char.
	* read.c (scrub_string, scrub_string_end): New static variables.
	(scrub_from_string): New static function.
	(read_a_source_file): Call do_scrub_chars rather than
	do_scrub_next_char.
(and comment change in input-scrub.c)
1995-08-27 00:33:56 +00:00
Ian Lance Taylor 69cc18d2f0 * gasp.c (as_abort): New function.
* sb.c (sb_build): Revert yesterday's patch.
1995-08-25 02:00:39 +00:00
Ian Lance Taylor 791ee51949 * Makefile.in (gasp.new): Depend upon ../libiberty/libiberty.a.
Just link against libiberty, not against $(LIBS).
1995-08-25 01:51:14 +00:00
Ian Lance Taylor bd36216202 * sb.c (sb_build): Undefine abort before calling it, since gasp
does not provide as_abort.
1995-08-23 22:21:51 +00:00
Michael Meissner 6d93b96e48 Fix -mlittle/-mbig so that it really does override the default endianess 1995-08-23 14:59:16 +00:00
Ken Raeburn 06997b9a10 new routine xstrerror for better vms error handling; gas fixed to use it 1995-08-22 07:34:00 +00:00
Ken Raeburn 53499500e0 vms changes 1995-08-22 07:06:13 +00:00
Ian Lance Taylor a5e03353ae * as.c (parse_args): Accept --defsym SYM=VALUE.
* doc/as.texinfo, doc/as.1: Document --defsym.
1995-08-21 21:18:57 +00:00
Ian Lance Taylor 4026c1222f * read.c (read_a_source_file): In MRI mode, don't end the
statement inside a quotation.
	(s_space): Don't warn about a zero repeat count in MRI mode.
	* config/tc-m68k.c (crack_operand): In MRI mode, don't count
	parentheses inside quotes.
	(md_assemble): In MRI mode, anything after the operands field is a
	comment.
	(parse_mri_control_operand): Adjust start and stop to remove
	spaces.
	(s_mri_for): Likewise.
1995-08-21 21:05:06 +00:00
Ian Lance Taylor 9821fda925 * app.c (do_scrub_next_char): If LEX_IS_STRINGQUOTE or
LEX_IS_ONECHAR_QUOTE is seen in	state 10, preserve one space.
1995-08-21 21:03:50 +00:00
Ian Lance Taylor 96dbd10de8 * gas/macros/*: New tests for macros. 1995-08-21 18:45:08 +00:00
Ian Lance Taylor d2f661bd18 * gasp/pl3.out: Update for changes in commented source output when
LOCAL is used.
1995-08-21 18:42:09 +00:00
Ian Lance Taylor 95074dc362 * doc/as.texinfo: Document irp, irpc, macro, and rept. MRI mode
now supports macros, ifc, ifnc, irp, irpc, rept, and endr, without
	using gasp.
1995-08-21 18:37:10 +00:00
Ian Lance Taylor 7e047ac2c1 Add support for macros.
* as.c: Include sb.h and macro.h.
	(max_macro_next): New global variable.
	(main): Call macro_init.
	(macro_expr): New static function.
	* as.h (max_macro_nest): Declare.
	* read.c (line_label): Rename from mri_line_label.  Change all
	uses.
	(potable): Add exitm, irp, irpc, macro, mexit, rept.
	(read_a_source_file): Always clear line_label at the start of a
	line, not just when flag_mri or LABELS_WITHOUT_COLONS.  Fixup
	MRI/LABELS_WITHOUT_COLONS handling.  In MRI mode, permit label:
	equ val.  Set line_label when calling colon.  In MRI mode, a
	leading '.' does not imply a pseudo-op.  Check for macro expansion
	before calling md_assemble.
	(s_irp): New function.
	(get_line_sb): New static function.
	(s_macro): New function.
	(s_mexit): New function.
	(s_rept): New function.
	* read.h (line_label): Rename from mri_line_label.
	(s_irp, s_rept): Declare.
	(s_macro, s_mexit): Declare.
	* input-scrub.c: Include sb.h.
	(sb_index, from_sb): New static variables.
	(macro_nest): New static variable.
	(struct input_save): Add sb_index and from_sb fields.  Change
	next_saved_file field to be struct input_save *.
	(next_saved_file): Changed to be struct input_save *.
	(input_scrub_push): Change to return type struct input_save *.
	Save sb_index and from_sb.
	(input_scrub_pop): Change parameter type to struct input_save *.
	Restore sb_index and from_sb.
	(input_scrub_include_sb): New function.
	(input_scrub_next_buffer): Handle reading from from_sb.
	(bump_line_counters): Only increment lines if not using from_sb.
	* config/tc-m68k.c (opt_table): Add nest.
	(opt_nest): New static function.
	* gasp.c: Include sb.h and macro.h.  Move all sb related functions
	and definitions to sb.h and sb.c.  Move all macro related
	functions and definitions to macro.h and macro.c.
	* sb.h, sb.c: New files, extracted from gasp.c.
	* macro.h, macro.c: Likewise.
	* Makefile.in (OBJS): Add sb.o and macro.o
	(GASPOBJS): Define.
	(gasp.new): Depend upon $(GASPOBJS).  Use $(GASPOBJS) to link.
	(TARG_CPU_DEP_m68k): Depend upon subsegs.h.
	(gasp.o): Depend upon sb.h and macro.h.
	(sb.o): New target.
	(macro.o): New target.
	(as.o): Depend upon sb.h and macro.h.
	(input-scrub.o): Depend upon sb.h.
	(read.o): Depend upon sb.h and macro.h.
1995-08-21 18:35:11 +00:00
Ian Lance Taylor 7172e2266f * app.c (do_scrub_begin): In MRI mode, set lex of ' to
LEX_IS_STRINGQUOTE.
1995-08-21 18:19:21 +00:00
Ian Lance Taylor 075e616c28 * cond.c (get_mri_string): New static function.
(s_ifc): New function.
1995-08-21 18:18:56 +00:00
Michael Meissner 840886d875 Allow @HA, @L, and @H on constant expressions. 1995-08-21 17:47:01 +00:00
Jim Wilson c2d8063d3b * config/tc-arm.c (md_reloc_size): Add const to declaration. 1995-08-20 22:56:02 +00:00
Ian Lance Taylor d0af548446 * gasp/gasp.exp (gasp_test): Call prune_system_crud on the output
of diff.
	* lib/gas-defs.exp: Define prune_system_crud if it is not already
	defined.
1995-08-19 21:37:43 +00:00
Ian Lance Taylor ca2329727e * read.c (s_include): In MRI mode, don't expect quotes around the
file name.
	* listing.c (listing_title): Don't require the title to be quoted.
1995-08-18 15:15:28 +00:00
Ian Lance Taylor 65d860fc28 * gasp/mri/*.out: Use ;, not !, for the comment character. 1995-08-18 15:10:35 +00:00
Ian Lance Taylor f8d6e6cd08 * gasp.c (include_print_where_line): Always subtract 1 from
linecount before printing it.
	(process_file): In MRI mode, lines beginning with '*' or '!' are
	comments.
	(do_reg): In MRI mode, don't require parentheses.
	(do_include): In MRI mode, don't requires quotes.  If the file can
	not be found in the include path, try opening it in the current
	directory.  Print the file name correctly in the error message.
	(chartype_init): In MRI mode, set FIRSTBIT for '.'.
	(main): Set comment_char to ';' when entering MRI mode.
1995-08-18 15:09:57 +00:00
Ian Lance Taylor b4ec75e09f * config/tc-m68k.c: Include subsegs.h.
(m68k_ip): Pass 64 rather than -1 to add_Fix in 'B' 'B' case.
	(md_pcrel_from): If fx_pcrel_adjust is 64, use -1 instead.
You can't portably store negative numbers in a char.
1995-08-18 15:02:56 +00:00
Ken Raeburn 58bd5f50cf * as.h (alloca): Use void* declaration on HP/UX. 1995-08-16 22:15:28 +00:00
Ian Lance Taylor 3a3a17b415 * gas/mri/mri.exp: Change hppa*-*-* expected failures to only
expect failure for targets which use SOM.
1995-08-16 21:57:37 +00:00
Ian Lance Taylor a46c0ed860 * lib/gas-defs.exp (run_dump_test): If the program to run does not
exist, mark the test as untested.
1995-08-16 21:13:52 +00:00