aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
AgeCommit message (Collapse)AuthorFilesLines
2005-05-05Update the address and phone number of the FSFNick Clifton1-2/+2
2005-04-29 * Makefile.am (GAS_CFILES): Remove bignum-copy.c.Ben Elliston1-1/+1
(GENERIC_OBJS): Likewise, remove bignum-copy.o. (bignum-copy.o): Remove. * Makefile.in: Regenerate. * makefile.vms (OBJS): Remove bignum-copy.obj. * symbols.h (local_symbol_make): Remove declaration. (verify_symbol_chain_2): Likewise. * symbols.c (local_symbol_make): Make static. (max_indent_level): Likewise. (verify_symbol_chain_2): Remove. * macro.c (macro_hash): Make static. * messages.c (fprint_value): Remove. * read.h (get_absolute_expr): Remove. (emit_leb128_expr): Likewise. (do_s_func): Likewise. * read.c (do_s_func): Make static. (emit_leb128_expr): Likewise. (get_absolute_expr): Likewise. * as.h (as_howmuch): Remove declaration. (fprint_value): Likewise. * as.c (myname): Make static. * input-scrub.c (as_howmuch): Remove. (as_1_char): Likewise. * input-file.h (input_file_is_open): Remove. * input-file.c (input_file_is_open): Likewise. * expr.h (expr_build_unary): Remove declaration. (expr_build_binary): Likewise. * expr.c (expr_build_unary): Remove. (expr_build_binary): Likewise. * hash.h (hash_replace): Remove declaration. (hash_delete): Likewise. * hash.c (hash_replace): Remove. (hash_delete): Likewise. * bignum-copy.c (bignum_copy): Move from here .. * config/tc-vax.c (bignum_copy): .. to here. * bignum.h (LOG_TO_BASE_2_OF_10): Remove. (bignum_copy): Remove extern declaration. * sb.h (string_count): Remove extern declaration. (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise. (sb_name): Likewise. * sb.c (dsize): Replace preprocessor macro with static int. (string_count): Make static. (sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise. (sb_name): Likewise. * config/obj-coff.c (dim_index): Make static. * config/tc-i386.c (GOT_symbol): Likewise. (output_invalid_buf): Likewise. * doc/internals.texi (Warning and error messages): Remove the prototype for fprint_value.
2005-04-14* as.c (main): Move parse_args before symbol_begin and frag_init so that theNick Clifton1-2/+4
hash table size can be set before it is used. * hash.c: Use an unsigned long type for the size of the hash tables. * hash.h (set_gas_hash_table_size): Update the prototype.
2005-04-12* hash.c (DEFAULT_SIZE): Delete. Replace with:Nick Clifton1-0/+29
(gas_hash_table_size): New static variable. (set_gas_hash_table_size): New function: Records a requested size for the hash tables. (get_gas_hash_table_size): New function: Return a prime number near the requested size of the hash table. (hash_new): Use get_gas_hash_table_size. * hash.h: Add a prototype for set_gas_hash_table_size. * as.c (show_usage): Add description of new switches: --hash-size and --reduce-memory-overheads. (option_values): Add OPTION_HASH_TABLE_SIZE and OPTION_REDUCE_MEMORY_OVERHEADS. (std_longpopts): Add entries for the new options. (parse_args): Handle the new options. * Makefile.am: Add a dependency of as.c on hash.h. * Makefile.in: Regenerate. * doc/as.texinfo: Document the new switches. * NEWS: Mention the new switches.
2005-03-03update copyright datesAlan Modra1-1/+1
2005-03-02bfd/Jan Beulich1-1/+1
2005-03-02 Jan Beulich <jbeulich@novell.com> * Makefile.am: Add dependency of cache.o on libiberty.h. * cache.c: Include libiberty.h. (bfd_open_file): Use unlink_if_ordinary instead of unlink. binutils/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ar.c (remove_output): Use unlink_if_ordinary instead of unlink. * objcopy.c (copy_file): Likewise. (strip_main): Likewise. gas/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * as.c (main): Use unlink_if_ordinary instead of unlink. * messages.c (as_fatal): Likewise. ld/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink. * pe-dll.c (pe_dll_generate_implib): Likewise.
2005-01-31Update reported copyright dates.Nick Clifton1-2/+2
2005-01-20(std_longopts): Add an entry for "--a" in order to prevent getopt_long_only()Nick Clifton1-0/+8
from considering -a as an abbreviation for --alternate. (parse_args): Fix the parsing of -a=<file>.
2004-08-24* as.c (std_shortopts): Allow -g to take an optional argument.Nick Clifton1-4/+3
(parse_args): Pass any switch starting with -g on to the backend for parsing.
2004-08-17Add support for a -g switch to GASNick Clifton1-42/+76
2004-08-13Add and handle new --alternate command line option.Nick Clifton1-4/+21
2003-10-27 * ChangeLog: Fix typos.Kazu Hirata1-1/+1
* ChangeLog-9295: Likewise. * as.c: Fix comment typos. * as.h: Likewise. * atof-generic.c: Likewise. * bit_fix.h: Likewise. * frags.h: Likewise. * hash.c: Likewise. * input-file.c: Likewise. * input-scrub.c: Likewise. * itbl-ops.c: Likewise. * itbl-parse.y: Likewise. * listing.c: Likewise. * macro.h: Likewise. * read.c: Likewise. * sb.c: Likewise. * sb.h: Likewise. * symbols.c: Likewise. * symbols.h: Likewise.
2003-10-08* as.c (use_gnu_debug_info_extensions) : New variable.Nick Clifton1-0/+8
(parse_args) : Accept new --gstabs+ option, and set `use_gnu_debug_info_extensions'. (show_usage) : Document --gstabs+ option. * as.h (use_gnu_debug_info_extensions) : New extern declaration. * stabs.c (stabs_generate_asm_file) : If `use_gnu_debug_info_extensions' is set add the compilation directory to the stabs debug info. * doc/as.texinfo : Document --gstabs+ option. * NEWS: Mention new feature.
2003-10-05Revert -f changeNick Clifton1-8/+1
2003-10-04Convert to ISO C90Nick Clifton1-261/+250
2003-10-04(std_shortopts): Remove 'f'.Nick Clifton1-1/+7
(std_longopts): Add 'f'. Doing this prevents -f<foo> being acecpted as an alias for -f
2003-06-04 * as.c (show_usage): Document --execstack and --noexecstack.Jakub Jelinek1-1/+38
(parse_args): Add --execstack and --noexecstack. (main): Create .note.GNU-stack section if --execstack or --noexecstack was given on comand line, set its SHF_EXECINSTR bit. * as.h (flag_execstack, flag_noexecstack): New.
2003-05-27 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.Richard Henderson1-2/+2
* as.c (main): Always call cfi_finish. * config/tc-i386.c (x86_dwarf2_return_column): New. (x86_cie_data_alignment): New. (md_begin): Set them. (tc_x86_cfi_init): Remove. (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers; return int, not unsigned long; don't as_bad here. (tc_x86_frame_initial_instructions): Streamline; use updated api. * config/tc-i386.h (tc_cfi_init): Remove. (DWARF2_DEFAULT_RETURN_COLUMN): New. (DWARF2_CIE_DATA_ALIGNMENT): New. * gas/cfi/cfi-i386.d: Update for dw2gencfi rewrite. * gas/cfi/cfi-x86_64.d: Likewise. * gas/cfi/cfi-i386-2.d: New. * gas/cfi/cfi-i386-2.s: New.
2003-05-202003-05-20 Michal Ludvig <mludvig@suse.cz>Michal Ludvig1-4/+0
* as.c (main): Remove tc_cfi_init(). * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning with '%'. (cfi_pseudo_table): Add "cfi_register" entry. (cfi_make_insn): Handle CFA_register. (cfi_output_insn): Ditto. (dot_cfi): Ditto. (cfi_get_label): Add 'simple' modifier to .cfi_startproc. (dot_cfi_endproc): Reuse already emitted CIEs. * testsuite/gas/cfi/cfi-i386.d: New pattern. * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
2003-05-20 * dw2gencfi.c, dw2gencfi.h: New files.Alan Modra1-0/+13
* config/tc-i386.c (tc_x86_cfi_init): New function. * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines. * as.c (parse_args): Set verbose flag on --verbose. (main): Call tc_cfi_init()/cfi_finish(). * as.h (verbose): New external variable. * read.c (pobegin): Insert CFI pops to the list. * symbols.c (local_symbol_make): Make symbol external. * symbols.h (local_symbol_make): New prototype. * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am". * Makefile.in: Regenerate. * doc/as.texinfo: Added node "CFI directives" with description of all implemented .cfi_* directives. * doc/Makefile.in: Regenerate. * po/POTFILES.in: Regenerate.
2003-04-08* as.c (perform_an_assembly_pass): If using cgen, call gas_cgen_begin.Nick Clifton1-0/+7
* cgen.c (gas_cgen_begin): New function. If flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok otherwise call cgen_clear_signed_overflow_ok. * cgen.h: Prototype gas_cgen_begin. * testsuite/gas/m32r/m32r.exp: Run signed-relocs test. * testsuite/gas/m32r/signed-relocs.s: New file: Test signed relocs. * testsuite/gas/m32r/signed-relocs.d: New file: Expected results
2002-12-17Duplicate --keep-locals entry in order to prevent it being confused with -k.Nick Clifton1-0/+4
2002-10-14 * Makefile.am: Run "make dep-am".Alan Modra1-0/+4
(CPU_OBJ_VALID): sh64 coff is invalid. * as.c: #include "bfdver.h". * Makefile.in: Regenerate. * config.in: Regenerate.
2002-06-08 * as.c: Replace CONST with const.Alan Modra1-1/+1
* write.c: Likewise. * config/obj-coff.c: Likewise. * config/tc-a29k.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-dlx.c: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8500.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i860.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-m88k.c: Likewise. * config/tc-mcore.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-ns32k.c: Likewise. * config/tc-pdp11.c: Likewise. * config/tc-pj.c: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sparc.c: Likewise. * config/tc-tahoe.c: Likewise. * config/tc-tic80.c: Likewise. * config/tc-v850.c: Likewise. * config/tc-vax.c: Likewise. * config/tc-w65.c: Likewise. * config/tc-z8k.c: Likewise.
2002-05-18 * app.c: Fix formatting.Kazu Hirata1-2/+2
* as.c: Likewise. * ehopt.c: Likewise. * expr.c: Likewise. * input-file.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * stabs.c: Likewise. * symbols.c: Likewise.
2002-04-16 * as.c (main): Don't reference _bfd_chunksize.Alan Modra1-7/+1
2002-04-10 * as.c (parse_args <OPTION_VERSION>): Use VERSION isAlan Modra1-0/+4
BFD_VERSION_STRING unavailable. * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2002-01-18gas:Andreas Jaeger1-2/+2
2002-01-18 Andreas Jaeger <aj@suse.de> * as.c (parse_args): Update year. binutils: 2002-01-18 Andreas Jaeger <aj@suse.de> * version.c (print_version): Update year. ld: 2002-01-18 Andreas Jaeger <aj@suse.de> * ldver.c (ldversion): Update year.
2001-11-28 * as.c (parse_args): Call md_after_parse_args if defined.Andreas Schwab1-0/+4
* config/tc-ia64.h (md_after_parse_args): Define. * config/tc-ia64.c (ia64_after_parse_args): Reject --gstabs. * doc/internals.texi (CPU backend): Document md_after_parse_args.
2001-10-23 * as.c (parse_args): Print the date as well for --version.Alan Modra1-1/+1
2001-10-02 * as.c (print_version_id): Use BFD_VERSION_STRING in place ofAlan Modra1-1/+1
BFD_VERSION. * Makefile.am (Makefile): Depend on bfd/configure.in Run "make dep-am" * Makefile.in: Regenerate.
2001-09-22Fix compile time warningsNick Clifton1-0/+2
2001-09-19Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu1-0/+3
2001-08-01 * read.c: Standardize error/warning messages - don't capitalise, noAlan Modra1-6/+3
final period or newline, don't say "ignored" or "zero assumed" for as_bad messages. In some cases, change the wording to that used elsewhere for similar messages. * app.c, as.c, atof-generic.c, cgen.c, cond.c, depend.c, dwarf2dbg.c, ecoff.c, expr.c, frags.c, input-file.c, input-scrub.c, listing.c, output-file.c, stabs.c, subsegs.c, symbols.c, write.c: Likewise. * ecoff.c (ecoff_directive_end): Test for missing name by comparing input line pointers rather than reading string. (ecoff_directive_ent): Likewise. * read.c (s_set): Likewise. (s_align): Report a warning rather than an error for alignment too large. (s_comm): Check for missing symbol name. (s_lcomm_internal): Likewise. (s_lsym): Likewise. (s_globl): Use is_end_of_line instead of looking for '\n'. (s_lcomm_internal): Likewise. (ignore_rest_of_line): Report a warning rather than an error.
2001-06-06Remove L fromlist of accepting listin goptionsNick Clifton1-1/+0
2001-06-06 * as.c (parse_args): Correct option name "listing-lhs-width2".Alan Modra1-1/+1
2001-03-08Fix copyright noticesNick Clifton1-1/+2
2001-01-232001-01-23 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-1/+1
* as.c: Fix formatting. * ehopt.c: Likewise. * messages.c: Likewise. * stabs.c: Likewise. * symbols.c: Likewise.
2001-01-12Update copyright date to 2001Nick Clifton1-2/+2
2000-12-05Add outputting_stabs_line_debug varaible and D10v code to use itNick Clifton1-0/+1
2000-11-17* as.c (main): Call dwarf2_finish.Richard Henderson1-0/+4
2000-11-17 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.Richard Henderson1-1/+1
* as.h (debug_type): Clarify documentation of the meaning of this variable. * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1. (print_stats): Fix parenthesis problem. (now_subseg_size): New. (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info. (dwarf2_directive_file): Don't set debug_type. (dwarf2_where): Honor DEBUG_DWARF2 first. (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno; do nothing if not emitting dwarf2 debug info, or no work. * dwarf2dbg.h (dwarf2_emit_insn): Update. * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED. (ecoff_new_file): Likewise. * read.c (generate_lineno_debug): Kill ecoff hackery. Update commentary wrt dwarf2. * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add ATTRIBUTE_UNUSED as needed. (emit_insn): Call dwarf2_emit_insn. (s_alpha_file): New. (s_alpha_loc): New. (s_alpha_coff_wrapper): Don't handle them. (md_pseudo_table): Update for .file and .loc. * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New. * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn; don't protect with debug_type. * config/tc-hppa.c (md_assemble): Likewise. * config/tc-m68hc11.c (m68hc11_new_insn): Likewise. * config/tc-mn10300.c (md_assemble): Likewise. * config/tc-sh.c (md_assemble): Likewise. * config/tc-v850.c (md_assemble): Likewise. * config/tc-arm.c (arm_end_of_source): Remove. * config/tc-hppa.c (pa_end_of_source): Remove. * config/tc-m68hc11.c (m68hc11_end_of_source): Remove. * config/tc-mn10300.c (mn10300_finalize): Remove. * config/tc-sh.c (sh_finalize): Remove. * config/tc-v850.c (sh_finalize): Remove. * config/tc-arm.h (md_end): Remove. * config/tc-hppa.h (md_end): Remove. (DWARF2_LINE_MIN_INSN_LENGTH): New. * config/tc-m68hc11.h (md_end): Remove. * config/tc-mn10300.h (md_end): Remove. * config/tc-sh.h (md_end): Remove. * config/tc-v850.h (md_end): Remove. * config/tc-ia64.c (emit_one_bundle): Don't protect dwarf2 bits with debug_type. (md_assemble): Likewise. (ia64_end_of_source): Don't call dwarf2_finish.
2000-11-072000-11-06 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-1/+1
* as.c: Fix formatting. * dwarf2dbg.c: Likewise. * itbl-ops.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * messages.c: Likewise. * read.c: Likewise. * subsegs.c: Likewise. * subsegs.h: Likewise. * write.c: Likewise.
2000-10-30 * as.h (OPTION_MD_BASE): Bump to 190.Hans-Peter Nilsson1-0/+2
* as.c (parse_args) <std_longopts>: Add comment about the need to check OPTION_MD_BASE in as.h.
2000-10-17Added new option --target-help.Chandra Chavva1-1/+9
2000-10-112000-10-12 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-19/+16
* app.c: Fix formatting. * as.c: Likewise. * as.h: Likewise. * bit_fix.h: Likewise. * cgen.c: Likewise. * cgen.h: Likewise. * cond.c: Likewise.
2000-08-312000-08-31 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-70/+65
* as.c: Fix formatting. * cond.c: Likewise.
2000-07-20 * configure.in: Add CRIS support.Hans-Peter Nilsson1-0/+1
* configure: Regenerate. * Makefile.am: (CPU_TYPES): Add cris. (CPU_OBJ_VALID) [aout]: Add cris. (MULTI_CPU_TYPES): Add cris. (MULTI_CPU_OBJ_VALID) [aout]: Add cris. [coff]: Only i386 and mips are valid. (TARGET_CPU_CFILES): Add config/tc-cris.c. (TARGET_CPU_HFILES): Add config/tc-cris.h. (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c. Regenerate dependencies. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * as.c: Declare crisaout, criself. * config/tc-cris.h, config/tc-cris.c: New. * config/e-criself.c, config/e-crisaout.c: New. * po/POTFILES.in, po/gas.pot: Regenerate.
2000-07-06Always NULL terminate long option list.Andrew Cagney1-3/+8
2000-05-13Add x86 gas -q option to quiet some x86 gas warnings.Alan Modra1-1/+5
Remove useless -m flag_do_long_jump from x86 gas. If BFD_ASSEMBLER, store --defsym value in a bfd_vma, and use scan_bfd_vma.