diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-08-24 21:48:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-08-24 21:48:18 +0000 |
commit | a2a1a548c752684ea944c38ce94e388ba9d095c4 (patch) | |
tree | dc84dd772da50b68cb5db4e196a8355f6603d2dd /gas/as.c | |
parent | 5a53b1c1783207222857e0c5c7f7d259d7ae5031 (diff) | |
download | gdb-a2a1a548c752684ea944c38ce94e388ba9d095c4.zip gdb-a2a1a548c752684ea944c38ce94e388ba9d095c4.tar.gz gdb-a2a1a548c752684ea944c38ce94e388ba9d095c4.tar.bz2 |
gcc lint.
* 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.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -110,7 +110,8 @@ Options:\n\ h include high-level source\n\ l include assembly\n\ n omit forms processing\n\ - s include symbols\n\ + s include symbols\n"); + fprintf (stream, "\ -D produce assembler debugging messages\n\ -f skip whitespace and comment preprocessing\n\ --help show this message and exit\n\ @@ -158,9 +159,14 @@ parse_args (pargc, pargv) char *shortopts; extern CONST char *md_shortopts; - /* -v takes an argument on VMS, so we don't make it a generic option. - It gets recognized as an abbreviation of -version, anyway. */ + /* -v takes an argument on VMS, so we don't make it a generic option + in that case. */ +#ifdef OBJ_VMS CONST char *std_shortopts = "-JKLRWZfa::DI:o:wX"; +#else + /* Normal set of short options. */ + CONST char *std_shortopts = "-JKLRWZfa::DI:o:vwX"; +#endif struct option *longopts; extern struct option md_longopts[]; @@ -179,7 +185,7 @@ parse_args (pargc, pargv) /* Construct the option lists from the standard list and the target dependent list. */ shortopts = concat (std_shortopts, md_shortopts, (char *) NULL); - longopts = xmalloc (sizeof (std_longopts) + md_longopts_size); + longopts = (struct option *) xmalloc (sizeof (std_longopts) + md_longopts_size); memcpy (longopts, std_longopts, sizeof (std_longopts)); memcpy ((char *) longopts + sizeof (std_longopts), md_longopts, md_longopts_size); @@ -239,6 +245,9 @@ parse_args (pargc, pargv) print_version_id (); exit (0); + case 'v': + print_version_id (); + case 'J': flag_signed_overflow_ok = 1; break; @@ -343,13 +352,17 @@ main (argc, argv) int argc; char **argv; { - char a; int keep_it; long start_time = get_run_time (); +#ifdef HOST_SPECIAL_INIT + HOST_SPECIAL_INIT (argc, argv); +#endif + #if 0 /* do we need any of this?? */ { static const int sig[] = {SIGHUP, SIGINT, SIGPIPE, SIGTERM, 0}; + int a; for (a = 0; sig[a] != 0; a++) if (signal (sig[a], SIG_IGN) != SIG_IGN) |