Commit Graph

3270 Commits

Author SHA1 Message Date
Richard Henderson c631cd59dd * macro.c (check_macro): use alloca instead of xmalloc to plug leak. 1997-08-19 03:48:22 +00:00
Richard Henderson 96e0ff4665 * as.c (show_usage): Add -am.
* input-scrub.c (input_scrub_include_sb): Don't add leading \n
        if we've already got one.
        * listing.c (struct list_info_struct): Add line_contents.
        (listing_newline): Put unused argument to work: if non-null, save it...
        (listing_listing): ... and regurgitate during listing instead of line
        from file.
        * listing.h (LISTING_MACEXP): New define.
        (LISTING_NEWLINE): Argument is NULL.
        * read.c (read_a_source_file): If expanding macros, break up input
        lines and pass them to listing_newline.
        * doc/as.texinfo: Document -ac and -am.

        * cond.c (s_ifc): Add missing demand_empty_rest_of_line.
1997-08-19 03:45:56 +00:00
Nick Clifton a365cd79ee Add support for v850e and v850eq targets.
Add support for BFD_RELOC_V850_16_PCREL.
1997-08-18 18:26:42 +00:00
Ian Lance Taylor 999f358732 * Makefile.am (check-DEJAGNU): Don't cd into testsuite until after
setting EXPECT and TCL_LIBRARY.
	* Makefile.in: Rebuild.
1997-08-15 23:19:20 +00:00
Ian Lance Taylor be3d1b6f9e fix copyrights 1997-08-15 18:26:52 +00:00
Ian Lance Taylor cd92403305 * as.h (enum debug_info_type): Define.
(debug_type): Declare.
	* as.c (debug_type): New global variable.
	(show_usage): Add --gstabs.
	(parse_args): Handle --gstabs.
	* read.c (generate_asm_lineno): Remove.
	(read_a_source_file): Output stabs debugging if appropriate.
	Change checks of generate_asm_lineno to check debug_type.  Only
	generate ECOFF debugging if ECOFF_DEBUGGING is defined.
	* read.h (generate_asm_lineno): Don't declare.
	(stabs_generate_asm_lineno): Declare.
	* stabs.c (stabs_generate_asm_lineno): New function.
	* ecoff.c (add_file): Use debug_type, not generate_asm_lineno.
	Don't turn off debugging.
	(add_file): Remove old #if 0 code.
	(ecoff_new_file): Set debug_type, not generate_asm_lineno.
	(ecoff_directive_end): Don't generate stabs line symbols.
	(ecoff_generate_asm_lineno): Don't check stabs_seen.  Don't set
	generate_asm_lineno.
	(line_label_cnt): Remove.
	(ecoff_generate_asm_line_stab): Remove.
	* ecoff.h (ecoff_generate_asm_line_stab): Don't declare.
	* doc/as.texinfo, doc/as.1: Document --gstabs.
1997-08-15 18:19:27 +00:00
David Edelsohn 76fc9bac4b Remove support for insns not in base chip, which is all we support now. 1997-08-15 06:58:48 +00:00
David Edelsohn 6ac387f1f8 Delete testcases, these don't appear in the base chip which is all we
support now.
1997-08-15 06:53:50 +00:00
David Edelsohn 3ffb03b170 Remove ARC sanitization. 1997-08-15 06:49:09 +00:00
Nick Clifton 035d8553d7 Fixed typo in previous delta and added more sanitization. 1997-08-14 19:55:03 +00:00
Nick Clifton 323b12f8ce oops - fixed typo. 1997-08-14 19:48:36 +00:00
Nick Clifton 58036ae4c9 Tidied up the sanitization. 1997-08-14 19:34:58 +00:00
Nick Clifton 32e23ecd9c Added support for v850e and v850eq instructions. 1997-08-14 02:03:34 +00:00
Richard Henderson 4b67a7199b * doc/internals.texi: Document rs_leb128. 1997-08-12 17:30:10 +00:00
Ian Lance Taylor de815f6167 * config/tc-m68k.c (m68k_ip): Give an error message for SIZE_BYTE
in ABSL case, rather than calling abort.
1997-08-12 16:17:46 +00:00
Richard Henderson 8cf777d667 * as.h (enum _relax_state): Add rs_leb128.
* read.c (potable): Add sleb128 and uleb128.
        (sizeof_*leb128, output_*leb128, emit_leb128_expr, s_leb128): New
        functions.
        * read.h: Update prototypes.
        * symbols.c (resolve_symbol_value): Streamline quite a bit.  Return
        the symbol value, add a second FINALIZE argument that prevents
        changes from being comitted.  Update all callers.
        * write.c (cvt_frag_to_fill, relax_segment): Handle rs_leb128.
        * doc/as.texinfo: Document the new pseudos.
1997-08-12 05:42:00 +00:00
Ian Lance Taylor 210e033e19 * Makefile.am (MOSTLYCLEANFILES): Add site.bak, site.exp, stage,
stage1, and stage2.
	(DISTCLEANFILES): Define.
	* doc/Makefile.am (DISTCLEANFILES): Define.
	* Makefile.in, doc/Makefile.in: Rebuild.
1997-08-10 18:53:06 +00:00
Ian Lance Taylor 4dc4c45dec * configure.in: Define TARGET_BYTES_BIG_ENDIAN if endian is set.
Don't set targ or gas_target.  Define SCO_ELF and
	TARGET_SOLARIS_COMMENT when appropriate.  Don't substitute for
	target_frag.
	* Makefile.am: Remove @target_frag@.
	(INCLUDES): Remove $(INTERNAL_CFLAGS), $(CROSS), $(HDEFINES), and
	$(TDEFINES).
	(dep-am): Mark as phony.
	* acconfig.h: Add TARGET_BYTES_BIG_ENDIAN, TARGET_SOLARIS_COMMENT,
	and SCO_ELF.
	* config/arm-big.mt, config/arm-lit.mt: Remove.
	* config/mips-big.mt, config/mips-lit.mt: Remove.
	* config/ppc-big.mt, config/ppc-lit.mt: Remove.
	* config/ppc-sol.mt: Remove.
	* config/i386coff.mt, config/m68kcoff.mt: Remove.
	* config/m88kcoff.mt: Remove.
	* config/sco5.mt: Remove.
	* configure, config.in, Makefile.in: Rebuild.
1997-08-06 19:06:49 +00:00
Ian Lance Taylor 2a562314f3 * Makefile.am ($(srcdir)/config/m68k-parse.h): New target, to
further try to circumvent the .y.h rule.
	* Makefile.in: Rebuild.
1997-08-06 16:01:27 +00:00
Ian Lance Taylor 9fcc5e478c Sanitize Makefile.am 1997-08-06 15:24:36 +00:00
Ian Lance Taylor 3529c5c385 * config/default.exp: Set AS and GASP to as-new, not as.new. 1997-08-06 04:33:45 +00:00
Ian Lance Taylor 29e28dd647 * doc/Makefile.am: New file, based on old doc/Makefile.in.
* doc/Makefile.in: Now built with automake.
1997-08-06 04:32:12 +00:00
Ian Lance Taylor e2b4bd2ae1 * Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4.
	* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.  Remove
	shared library handling; now handled by libtool.  Replace
	AC_CONFIG_HEADER with AM_CONFIG_HEADER.  Call AC_PROG_YACC,
	AC_PROG_LEX, and AC_DECL_YYTEXT.  Call AM_MAINTAINER_MODE,
	AM_CYGWIN32, and AM_EXEEXT.  Don't call CY_CYGWIN32 or CY_EXEEXT.
	* config.in: New file, created by autoheader.
	* conf.in: Remove.
	* acconfig.h: Mention PACKAGE, VERSION, and USING_CGEN.
	* stamp-h.in: New file.
	* as.c (print_version_id): Change GAS_VERSION to VERSION.
	(parse_args): Likewise.
	* config/obj-vms.c: (Write_VMS_MHD_Records): Likewise.
	* Makefile.in: Now built with automake.
	* aclocal.m4: Now built with aclocal.
	* configure: Rebuild.
1997-08-06 04:30:05 +00:00
Ian Lance Taylor 0d2ac65711 * config/default.exp: Set NM to nm-new, not nm.new, to match
recent change in binutils build directory.
1997-08-05 16:34:03 +00:00
Ian Lance Taylor e535307acd * cond.c (s_else): If not listing false conditionals, turn listing
off in the false branch of the else.
PR 13033.
1997-08-05 16:33:02 +00:00
Ian Lance Taylor 703f5e6e28 * config/tc-mips.c (macro): Fix handling of a double load from a
symbol plus an offset.
This is the test case, with -mips1:
	l.d	$f0,values+256
1997-08-04 21:00:37 +00:00
Richard Henderson 0426955144 * config/tc-alpha.c (s_alpha_ucons): New function.
(md_pseudo_table): Add unaligned data pseudos for DWARF.
1997-08-04 18:02:56 +00:00
Ian Lance Taylor c5cb7682c6 * ecoff.c (ecoff_build_symbols): Set fMerge to 0 for an FDR which
has an associated external symbol.
PR 12962.
1997-08-04 15:29:23 +00:00
Jeff Law c1b2205e48 * config/tc-v850.c (md_assemble): Ignore the rest of the current
line if we encounter an error.
pr13016.
1997-07-31 21:41:35 +00:00
Jeff Law f0a26f5665 * gas/v850/range.s: New test.
* gas/v850/basic.exp: Run it.
testcase for pr12944 related stuff.
1997-07-31 21:18:00 +00:00
Jeff Law 15d8ae9d85 * config/tc-v850.c (md_assemble): Sign extend constants value
for hi and hi0 expressions.
        (v850_insert_operand): Enable range checking for generic 16bit
        operands.
finish work for pr12944.
1997-07-31 21:11:17 +00:00
Rob Savoye 293bc1d506 * Oops, forgot to check this in with the rest of the files. 1997-07-30 22:35:46 +00:00
Jeff Law 9f72a94f72 * gas/v850/hilo2.s: New test.
* gas/v850/fepsw.s: New test.
        * gas/v850/basic.exp: Run them.
1997-07-29 20:31:41 +00:00
Jeff Law 5236fc72ef Forgot sanitize markers. 1997-07-29 20:20:12 +00:00
Jeff Law d222309aef * config/tc-v850.c (md_assemble): Turn on fx_no_overflow for
LO16, HI16 and HI16_S relocs.
pr12979
1997-07-29 20:19:02 +00:00
Rob Savoye 2e37047cf6 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
        * configure: Regenerated with autoconf 2.12.
        * Makefile.in: Add $(EXEEXT) to all executables.
1997-07-29 02:46:52 +00:00
Rob Savoye e42b252084 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
        * configure: Regenerated with autoconf 2.12.
        * Makefile.in: Add $(EXEEXT) to all executables.
1997-07-29 00:54:28 +00:00
Jeff Law e0362be2fc * tc-hppa.c (md_apply_fix): Improve warnings for out of range
unconditional branches.
        (hppa_fix_adjustable): Don't adjust anything with a RR% or LR%
        field selector.
Part of the 12912 fixes
1997-07-25 16:55:52 +00:00
David Edelsohn 09e1d69565 * tc-sparc.c (md_begin): Cast sparc_opcodes to PTR for hash_insert. 1997-07-24 22:22:27 +00:00
Ian Lance Taylor 280cdd548e * macro.c (define_macro): Make sure the index is in range before
checking for '('.
1997-07-24 21:51:57 +00:00
Fred Fish e6e676a501 * config/tc-tic80.c (build_insn): Remove "extended" and replace with
"fx" and "fxfrag".  Add "ffrag".  Change code to initialize and use
	the right f/ffrag and fx/fxfrag pairs since instruction may be split
 	across frags.
PR 12899
1997-07-24 20:34:02 +00:00
Ian Lance Taylor ea1c39ced2 Tue Jul 22 18:38:56 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* configure.in (i386-*-msdosdjgpp*): New target.
	(i386-*-go32*): Set em to go32 and targ to coffgo32.
	* configure: Rebuild.
1997-07-22 22:45:29 +00:00
Ian Lance Taylor 6829927931 Tue Jul 22 18:38:56 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* config/te-go32.h (USE_ALIGN_PTWO): Define.
	* config/tc-i386.c (md_pseudo_table): If USE_ALIGN_PTWO is
	defined, use s_align_ptwo for .align.
1997-07-22 22:41:04 +00:00
David Edelsohn 9f6da65302 * config/tc-sparc.c (last_opcode): New static local.
(md_assemble): Don't issue "FP branch in delay slot" warning if
	the delay slot has been annulled.
1997-07-22 19:52:22 +00:00
David Edelsohn bd3a1ebae6 * config/tc-sparc.c (last_opcode): New static local.
(md_assemble): Don't issue "FP branch in delay slot" warning if
	the delay slot has been annulled.
1997-07-22 19:43:16 +00:00
Ian Lance Taylor 1d3036537f * config/tc-m68k.c (md_apply_fix_2): Check for PC relative reloc
code if BFD_ASSEMBLER.
PR 12926.
1997-07-22 17:26:52 +00:00
Jeff Law 47bfb6fce3 * config/tc-v850.c (system_registers): Fix ordering of registers.
pr12913 (c/h from nec).
1997-07-21 14:54:49 +00:00
Fred Fish e53430c439 * config/tc-tic80.c (build_insn): Initialize extended word to zero
when it will be filled in later by relocation information.
PR 12796
1997-07-16 05:19:20 +00:00
David Edelsohn e528bfeca8 * gas/m32r/uppercase.[sd]: New testcase.
* gas/m32r/m32r.exp: New file.
1997-07-15 20:04:40 +00:00
Ian Lance Taylor a652f74c72 * config/tc-mips.c (macro_build): Restore check of fmt argument.
(mips_ip): Fix ISA checks.
1997-07-15 17:03:15 +00:00