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
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
Nick Clifton
58036ae4c9
Tidied up the sanitization.
1997-08-14 19:34:58 +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
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
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
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
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
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
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
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
Jeff Law
9587640a81
* configure.in: Default the r5900 to little endian.
...
* configure: Rebuilt.
1997-07-15 16:13:18 +00:00
Fred Fish
8ae66b94c6
* config/tc-tic80.c (build_insn): Fix endianness problem with
...
O_big operands.
PR 12765
1997-07-15 02:53:47 +00:00
Ian Lance Taylor
4dc8550840
* config/tc-mips.c (check_absolute_expr): Change warning to
...
error.
PR 12849.
1997-07-14 03:45:16 +00:00
Jeff Law
931a1858a6
* config/tc-mips.c (macro_build): Refine code to check if an
...
instruction is available on a particular cpu variant.
(mips_ip): Likewise.
toshiba 5900 stuff
1997-07-11 16:40:14 +00:00
Ian Lance Taylor
76fb6d2f2f
* config/tc-i386.c (tc_i386_fix_adjustable): Change ifndef
...
OBJ_AOUT to ifdef OBJ_ELF.
(md_apply_fix3): When mangling 32 bit PC relative reloc for
BFD_ASSEMBLER, handle one ELF case for COFF as well, and add a PE
case.
* write.c (fixup_segment): Change special case for i386-coff to
not apply for i386-pe.
* config/obj-coff.c (coff_adjust_section_syms): Only count fixups
which were not done.
(coff_frob_file_after_relocs): Rename from coff_frob_file.
(coff_format_ops): Initialize frob_file_after_relocs field rather
than frob_file field.
* config/obj-coff.h (coff_frob_file): Don't declare.
(coff_frob_file_after_relocs): Declare.
(obj_frob_file): Don't define.
(obj_frob_file_after_relocs): Define.
* configure.in: Set bfd_gas to yes for i386-*-cygwin32.
* configure: Rebuild.
1997-07-08 02:57:50 +00:00
Ian Lance Taylor
b709b16fdc
* config/obj-coff.c (fixup_segment): Never subtract section
...
address from PC relative reloc which will be fully resolved.
1997-07-02 16:05:55 +00:00
Jeff Law
db3152efa0
* ecoff.c (page_type): Renamed from page_t to avoid conflict
...
with hpux10 header files.
1997-07-01 21:22:38 +00:00
Ian Lance Taylor
b73fcae86e
From Jason Merrill <jason@cygnus.com>:
...
* read.c (do_align): If BFD_ASSEMBLER, only use NOP_OPCODE if
SEC_CODE is set.
* config/tc-i386.h (md_maybe_text): Define.
(md_do_align): Use md_maybe_text.
1997-06-30 16:38:17 +00:00
Michael Meissner
d006e43527
Remove brokeness in PowerPC asm
1997-06-27 23:19:15 +00:00
Ian Lance Taylor
24a3e62262
Mon Jun 16 19:12:51 1997 Geoff Keating <geoffk@ozemail.com.au>
...
* config/tc-ppc.h (tc_fix_adjustable): Don't let the assembler
calculate relocations to any external symbol, because we might be
linking a shared object and the symbol might be overriden or moved
(for instance, moved into a static executable's .bss section).
(GLOBAL_OFFSET_TABLE_NAME): Delete. This is an i386 wierdness.
* config/tc-ppc.h (tc_fix_adjustable): GOT-based relocations can't
be calculated by the assembler.
* config/tc-ppc.c (md_apply_fix3): Handle @plt or @local branch
whose destination lies in the same file, by ignoring the @plt or
@local and aiming the branch at its destination.
1997-06-16 23:17:22 +00:00
Ian Lance Taylor
3a0358617e
* config/tc-ppc.c (ppc_insert_operand): In 32 bit mode, with a
...
signed operand, sign extend a 32 bit value to the host size.
Permits dubious usage like
addi %r6,%r6,0xfffffeff
to assemble on a 64 bit host as it does on a 32 bit host.
1997-06-16 20:09:35 +00:00
Ian Lance Taylor
e2e4466adb
* Makefile.in (CFLAGS): Subsitute from configure script. From
...
Jeff Makey <jeff@cts.com>.
1997-06-16 19:47:53 +00:00
Ian Lance Taylor
b0447a0e80
Mon Jun 16 13:59:18 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
...
* symbols.c (copy_symbol_attributes): Copy BSF_OBJECT flag.
* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy size
expression.
* config/obj-multi.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define instead
of obj_copy_symbol_attributes.
1997-06-16 18:00:10 +00:00
Ian Lance Taylor
a52f90a4c8
* config/tc-i386.c (i386_operand): Use alloca rather than a fixed
...
buffer size to make a copy of the symbol.
1997-06-16 17:31:46 +00:00
Ian Lance Taylor
be2c18bd85
* Makefile.in (OBJS): Put @extra_objects@ on the same line as
...
macro.o.
1997-06-16 16:48:01 +00:00
Ian Lance Taylor
7799bb2c27
* write.c (write_object_file): In non BFD_ASSEMBLER code, as we
...
step through the frags calling cvt_frag_to_fill, switch to
SEG_DATA when we reach data_frag_root.
PR 12580.
1997-06-12 16:17:53 +00:00
Jeff Law
43ee18a06d
* config/tc-mn10300.c (md_assemble): Allow an empty register
...
list for instructions which use register lists.
1997-06-10 23:12:45 +00:00
Ian Lance Taylor
d2e5779b91
Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
...
* config/tc-arm.c (md_apply_fix3): Make temp unsigned long.
1997-06-10 15:25:05 +00:00
Ian Lance Taylor
7436e4de5a
Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
...
* config/tc-arm.c (arm_adjust_symtab): Only set storage classes if
OBJ_COFF.
1997-06-10 15:21:36 +00:00