aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
1994-08-29 * config/tc-ppc.c (md_apply_fix): Don't generate a reloc when aIan Lance Taylor1-0/+6
symbol is used as an offset into a CSECT that is not a TOC. These types of loads are generated by gcc -mminimal-toc.
1994-08-28* as.h (flag_*): Added comments describing meanings of some of these variables.Ken Raeburn2-6/+38
(struct frag): Add some comments about the ns32k-specific fields and why they're here. (SIZEOF_STRUCT_FRAG): Cast addresses to char*, not int. (flag_print_statistics): Declare. * as.c (parse_args): Set flag_print_statistics instead of statistics_flag. Options array is now const. Added new option "dump-config"; if specified, print TARGET_ALIAS, TARGET_CANONICAL, TARGET_CPU, TARGET_OBJ_FORMAT, and TARGET_FORMAT, if defined. (main): Change test to check flag_print_statistics. (statistics_flag): Deleted.
1994-08-28Removed pcrel_adjust and bsr arguments from calling interface ofKen Raeburn1-0/+7
frag_variant, since they're only used on one machine. Let that machine deal with them specially.
1994-08-28Makefile.in (distclean, realclean): Remove new configure-generated files.Ken Raeburn2-1/+6
1994-08-28keep new autoconf-related filesKen Raeburn1-0/+4
1994-08-28Conversion to autoconf:Ken Raeburn10-235/+2526
* acconfig.h, aclocal.m4: New files. * configure.in: Rewritten (except for some target-specific code) for autoconf. * conf.in, configure: New files, generated from the above. * Makefile.in: Changed magic sequence indicating insertion of makefile fragments. (VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from configure. (LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h. (config.status, configure): Rewrite rules. (config-stamp): Depend on conf. Skip variables that configure is now substituting itself. (*.o dependencies): Deleted host.h. (distclean, realclean): Don't delete host.h. * as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after as.h. * as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h, stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by autoconf test results. [BROKEN_ASSERT]: Don't include assert.h. (strdup): Declare. (volatile, const): Define if not __STDC__ and not already defined. (malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare. (free) [NEED_FREE_DECLARATION]: Declare. * gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h. (malloc) [NEED_MALLOC_DECLARATION]: Declare. * messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and NO_VARARGS as appropriate. * doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf @-substitutions.
1994-08-28input-file.c: Don't include assert.h here.Ken Raeburn1-0/+3
1994-08-28* config/tc-alpha.c: Added various prototypes for static functions.Ken Raeburn2-34/+264
(in_range): New function, tests whether a value can fit in an N-bit field. (build_mem, build_operate_n): New functions for constructing opcode values. (emit_sll_n, emit_ldah_num, emit_addq_r, emit_lda_n): New functions for emitting single instructions, no longer requiring a recursive call to md_assemble. (emit_add64): New function for expanding a REG:=REG+CONST operation into one or more instructions, to handle wide constants. (clear_insn): New variable. (md_begin): Fill it in with zeros and BFD_RELOC_NONE values. (alpha_ip): Use it to initialize local variable insns. (alpha_ip, label "immediate" and cases 'P', 'G'): Use emit_add64 for calculations.
1994-08-26write.c(write_contents): always enable BFD_FAST_SECTION_FILL codeKen Raeburn1-0/+4
1994-08-26subsegs.c: fix EMIT_SECTION_SYMBOLS handlingKen Raeburn1-0/+5
1994-08-24 * config/tc-mips.h (LOCAL_LABEL): Define as 0, for compatibilityIan Lance Taylor3-2/+6
with native MIPS assembler. * configure.in (mips-*-irix*): Don't set emulation. * config/te-irix.h: Remove. With these changes, gas works with mips-tfile.
1994-08-24 * ecoff.c (ecoff_symbol_new_hook): Don't add a new file if weIan Lance Taylor2-2/+7
haven't seen any input files yet. * config/tc-alpha.c (md_begin): Just call symbol_create, rather than calling symbol_new and then removing the symbol from the list. With these changes, Alpha gas will work with mips-tfile.
1994-08-24gcc lint.Ian Lance Taylor6-106/+158
* as.c (main): Move a inside the #if 0 block which uses it. * ecoff.c (current_stabs_filename): Make const. * frags.h (frag_align_pattern): Declare. * gasp.c (new_file): Cast isp to long, and use %ld to print it. * config/tc-alpha.h (md_operand): Add cast to void. (alpha_do_align): Declare argument types. (tc_get_register): Declare. (alpha_frob_ecoff_data): Declare. * config/tc-alpha.c: Include <ctype.h>. (s_mask): Don't declare; does not exist. (line_comment_chars): Remove /* from descriptive comment. (tc_get_register): Remove unused local reg. (tc_gen_reloc): Don't bother to compare unsigned to zero. (s_base): Correct warning to actually print register number. (md_begin): Remove unused locals retval, lose, and i. (alpha_fix_adjustable): Move default case inside switch to avoid warning. (load_symbol_address): Remove unused locals reloc_addr, p, sym, and addend. (emit_byte_manip_r): Declare types for all arguments. (emit_extract_r, emit_insert_r, emit_mask_r): Likewise. (emit_sign_extend, emit_bis_r, s_proc): Likewise. (alpha_ip): Use sprint_value to print offsetT value. Remove unused local size. Remove unused label get_macro. (alpha_do_align): Make fill const. (md_apply_fix): Remove unused label check_zov.
1994-08-24 * configure.in: Recognize i586 as a synonym for i[34]86.Ian Lance Taylor2-7/+29
1994-08-16 * gas/config/tc-hppa.c (pa_comm): Set sy_frag for the commonJeff Law1-2/+2
symbol to the zero address frag.
1994-08-16 * config/tc-hppa.c (pa_comm): Set sy_resolved for the commonJeff Law2-45/+10
symbol.
1994-08-12 * config/tc-mips.c (md_begin): Drop "el" from the end ofIan Lance Taylor1-0/+5
TARGET_CPU. Check for mips64orion.
1994-08-10 * configure.in: Recognize ppc-*-netware.Stu Grossman2-0/+40
* config/te-ppcnw.h: New file to support Power-PC/Netware configurations. Currently, it just enables the use of backslash escapes in string directives.
1994-08-09 * config/tc-ppc.c (ppc_stabx): Call expression directly, ratherIan Lance Taylor1-0/+4
than via pseudo_set. If expression is a symbol, move stab symbol to just after symbol from expression.
1994-08-09 * ecoff.c (ecoff_build_procs): Don't force adr of first fdr to beIan Lance Taylor1-0/+3
zero. Undoes change of June 4, 1993.
1994-08-09 * config/tc-mips.c (md_parse_option): Accept -mcpu=4400, 4600, andIan Lance Taylor2-46/+88
orion.
1994-08-08Fix copyright.Steve Chamberlain1-3/+8
1994-08-08 * gas/config/tc-hppa.c (md_pseudo_table): Delete redundantJeff Law1-0/+5
upper-case versions of the pseudo-ops.
1994-08-08 * config/tc-sparc.c (md_apply_fix): If we are going to generate aIan Lance Taylor1-0/+5
non PC relative reloc, don't put the addend in the object file.
1994-08-06Sat Aug 6 01:15:02 1994 Steve Chamberlain (sac@jonny.cygnus.com)Steve Chamberlain1-1/+12
* as.h: If FOPEN_WB is not defined, do the right thing in a go32 environment. Mon Jul 11 11:34:52 1994 Steve Chamberlain (sac@jonny.cygnus.com) * config/tc-h8300.c (pint): New function for handling varying size of int pseudo op. * doc/as.texinfo: Fix typo describing .h8300h pseduop.
1994-08-01 * config/tc-hppa.c (create_new_space): Initialize sd_subspacesJeff Law2-0/+4
field in the space chain.
1994-08-01 * config/tc-hppa.c (tc_gen_reloc): Cast return value fromJeff Law1-0/+5
hppa_gen_reloc_type.
1994-08-01 * config/tc-hppa.c (tc_gen_reloc): Cast return value fromJeff Law1-1/+6
hppa_gen_reloc_type.
1994-07-28* tc-sparc.c (sparc_ip): Check more carefully for conflicting architectures.Ken Raeburn2-84/+108
(md_parse_option) [NO_V9]: Complain if v9 was selected. (md_show_usage): Derive architecture list in usage message from architecture_pname array. (cypress): Macro deleted. (op_hash): Don't initialize. (s_common): Use bfd_und_section_ptr instead of bfd_und_section. (BSR): New function. (sparc_ip): Use it for right-shift operations of 32 bits or more. (sparc_ip): Implement new operand type 'x'.
1994-07-27I80960XL support (sanitized), misc cleanup:Ken Raeburn3-2/+60
* config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls tc_headers_hook. * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX was used previously. (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA. * config/tc-i960.c (po_hash): Declaration deleted. (next_object_file_charP): Ditto. (regnames, aregs, coj): Now const. (parse_memop): Static array def_scale now const. (md_begin): Cast away const when passing hash routines addresses of values in regnames or aregs. (md_longopts): Added "link-relax" and "no-relax" hyphenated forms. Continue to accept one-word forms. (struct tabentry, arch_tab): Moved to top level from inside md_parse_option. Now const. (md_show_usage): Use arch_tab to generate usage message. Print hyphenated forms of relax options. * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC, TC_S_FORCE_TO_*): Moved from here... * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff to test OBJ_AOUT and OBJ_BOUT directly. * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ, M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F, {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*): Macros deleted. * config/tc-i960.c (ARCH_XL): Define. (arch_tab): Include XL. (targ_has_sfr, targ_has_iclass): Handle XL. (tc_headers_hook): Set flags to F_I960XL for i960XL.
1994-07-27Some bits of COFF cleanup, and i960-coff support:Ken Raeburn1-0/+40
* config/obj-coff.h: Moved common includes and TARGET_FORMAT definitions together. (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD, OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]: Moved these definitions to the start of the file, before the includes. (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always define these. (S_GET_ZEROES): Deleted. (S_SET_ZEROES): Moved to obj-coff.c. * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted forward declarations. (obj_pseudo_table): Moved to one version end of file, conditionalized internally. (stack typedef, stack_init, stack_delete, stack_push, stack_pop, tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved to one combined version at top of file, unconditional. Deleted forward declarations. (s_get_name): Moved one copy of declarations to start of file. (def_symbol_in_progress): Ditto. Don't initialize. (S_SET_ZEROES): Moved here from obj-coff.h. (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on the file headers. * config/obj-coff.c (seg_info_off_by_4): Now const and static. (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted. (previous_file_symbol, def_symbol_in_progress, symbol_externP, symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't bother explicitly initializing to zero value. * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME and SF_GET_CALLNAME instead of the TC_S_IS_ versions.
1994-07-26ns32k files; i960xl sanitizationKen Raeburn1-0/+23
1994-07-15more description on last changeKen Raeburn1-0/+2
1994-07-15 * lib/gas-defs.exp (run_dump_test): New routine for running theKen Raeburn2-11/+143
assembler, running objdump or nm (not fully supported) on the resulting object file, and comparing the results against a file of regular expressions in the test suite, all in one command. (fail_phase, slurp_options): New auxiliary routines. (regexp_diff): Always return a value. Fix bugs in actually doing the regexp test. Should make it even easier to write gas test cases, giving Ian even less excuse for not doing so. :-)
1994-07-15remove atof-ns32k.cKen Raeburn1-1/+0
1994-07-14deleted atof-ns32k.c, no longer usedKen Raeburn2-452/+2
1994-07-14updated ns532 support from Ian DallKen Raeburn3-0/+133
1994-07-14* config/obj-aout.c (obj_aout_frob_symbol): Use bfd_ind_section_ptr andKen Raeburn2-3/+11
bfd_und_section_ptr. * subsegs.c (subseg_set_rest): Compare segT values directly, without casting to int first.
1994-07-13 * config/tc-m68k.c (m68k_ip): Change rp to be a const pointer.Ian Lance Taylor1-0/+7
(md_parse_option): Clear cpu field of current_architecture before setting a new cpu type. Clear no_68881 for m68881 or m68882. Clear no_68851 for m68851.
1994-07-13Updated some copyrights, cleaned up some header-file comments, and:Ken Raeburn2-4/+31
* symbols.c (symbol_create): New function, most of the guts of the old symbol_new function. (symbol_new): Now just checks symbol_table_frozen, calls symbol_create, and enters the symbol into the symbol table. * subsegs.c (section_symbol): If EMIT_SECTION_SYMBOLS is not true, and the symbol table is frozen, call symbol_create instead of symbol_new. * symbols.h (symbol_create, symbol_table_frozen): Declare. * symbols.c (symbol_clear_list_pointers): Always a function now. * struc-symbol.h (symbol_clear_list_pointers): Deleted macro version. * symbols.c (debug_verify_symchain): New macro, defined to be verify_symbol_chain or a cast to void, depending on DEBUG_SYMS. (many functions): Invoke debug_verify_symchain unconditionally.
1994-07-13config/ho-sysv.h (realloc): Declare.Ken Raeburn2-1/+5
1994-07-12Modified Files:Kung Hsu1-0/+14
read.c ecoff.h ecoff.c ChangeLog * read.c (read_a_source_file): ditto. * ecoff.h: change calling interface of ecoff_generate_asm_line_stab. * ecoff.c (add_file): record of filename to handle case of include files, also change default built-in type from int to void for asm file. * ecoff.c (ecoff_generate_asm_line_stab): handle case of include files.
1994-07-11 * config/tc-mips.c (macro): In case M_LA_AB, SVR4_PIC, largeIan Lance Taylor1-0/+6
constant, and case ldd_std, set mips_optimize to 2 temporarily to avoid inserting an unexpected nop instruction.
1994-07-09 * ecoff.c (ecoff_build_lineno): Handle count correctly for lastIan Lance Taylor2-1/+10
line number.
1994-07-08 * (process_pseudo_op): Pass right are do do_aif.Steve Chamberlain2-10/+28
(get_any_string): New arg 'pretend_quote'. (get_and_process, do_formals, macro_expand, do_sdata, process_pseudo_op): Use new arg.
1994-07-08Modified Files:Kung Hsu4-15/+222
read.c read.h ecoff.c ecoff.h ChangeLog * read.c (read_a_source_file): generate line stabs for asm file. * read.h: add extern generate_asm_line_stab. * ecoff.h : add prototype for ecoff_generate_asm_line_stab(). * ecoff.c (add_file): if there's no filename provided, set switch to generate line stabs for .s file. * ecoff.c (add_procedure): add stabs symbol for .ent directive. * ecoff.c (generate_ecoff_stab): creates an artificial stabs. * ecoff.c (generate_asm_line_stab): generate a artifitial label for each line and generate a stabn for the line.
1994-07-08Modified Files:Kung Hsu2-2/+17
obj-ecoff.h obj-elf.h * config/obj-ecoff.h: define macro OBJ_GENERATE_ASM_LINE_STAB. * config/obj-elf.h: ditto.
1994-07-08 * gasp.c (get_any_string): Cope with getting a string with anSteve Chamberlain2-18/+50
alternate base specifier. (do_aif, do_aelse): Only enable output if expression is true and previous level was on. (chartype_init): Add BASEBIT chartype. (process_pseudo_op): Notice nesteed AIFs.
1994-07-07 * gas/hppa/reloc/relocreduce2.s: More relocation reduction tests.Jeff Law3-0/+161
* gas/hppa/reloc/reloc.exp: Run them.
1994-07-07 * config/tc-hppa.c (hppa_fix_adjustable): Reject reductions forJeff Law2-2/+42
symbols in DLT relative relocs. (tc_gen_reloc): Zero out the addend field for DLT relative relocs.