diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-08-19 01:31:47 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-08-19 01:31:47 +0000 |
commit | 319ea138fee0999bf71bf7f73a8783a24b596d4e (patch) | |
tree | 841da35a8acdfcfcb2f603d88e123e4f412d1627 /gcc | |
parent | 8231ad949dda0d5941a56be74714e970970a4311 (diff) | |
download | gcc-319ea138fee0999bf71bf7f73a8783a24b596d4e.zip gcc-319ea138fee0999bf71bf7f73a8783a24b596d4e.tar.gz gcc-319ea138fee0999bf71bf7f73a8783a24b596d4e.tar.bz2 |
toplev.c (independent_decode_option): Always process -g.
* toplev.c (independent_decode_option): Always process -g.
Remove third argument, now unused. Adjust caller to match.
From-SVN: r35800
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/toplev.c | 23 |
2 files changed, 11 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b0e1dd7..76a9956 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-18 Zack Weinberg <zack@wolery.cumb.org> + + * toplev.c (independent_decode_option): Always process -g. + Remove third argument, now unused. Adjust caller to match. + 2000-08-18 Richard Henderson <rth@cygnus.com> * combine.c (make_compound_operation): Break after creating diff --git a/gcc/toplev.c b/gcc/toplev.c index 79f6ff7..70082f9 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -176,8 +176,7 @@ static void decode_d_option PARAMS ((const char *)); static int decode_f_option PARAMS ((const char *)); static int decode_W_option PARAMS ((const char *)); static int decode_g_option PARAMS ((const char *)); -static unsigned int independent_decode_option PARAMS ((int, char **, - unsigned int)); +static unsigned int independent_decode_option PARAMS ((int, char **)); static void print_version PARAMS ((FILE *, const char *)); static int print_single_switch PARAMS ((FILE *, int, int, const char *, @@ -4230,15 +4229,12 @@ ignoring option `%s' due to invalid debug level specification", } /* Decode the first argument in the argv as a language-independent option. - Return the number of strings consumed. 'strings_processed' is the - number of strings that have already been decoded in a language - specific fashion before this function was invoked. */ + Return the number of strings consumed. */ static unsigned int -independent_decode_option (argc, argv, strings_processed) +independent_decode_option (argc, argv) int argc; char **argv; - unsigned int strings_processed; { char *arg = argv[0]; @@ -4280,10 +4276,7 @@ independent_decode_option (argc, argv, strings_processed) return decode_f_option (arg + 1); case 'g': - if (strings_processed == 0) - return decode_g_option (arg + 1); - else - return strings_processed; + return decode_g_option (arg + 1); case 'd': if (!strcmp (arg, "dumpbase")) @@ -4609,12 +4602,8 @@ main (argc, argv) /* Now see if the option also has a language independent meaning. Some options are both language specific and language independent, - eg --help. It is possible that there might be options that should - only be decoded in a language independent way if they were not - decoded in a language specific way, which is why 'lang_processed' - is passed in. */ - indep_processed = independent_decode_option (argc - i, argv + i, - lang_processed); + eg --help. */ + indep_processed = independent_decode_option (argc - i, argv + i); if (lang_processed || indep_processed) i += (lang_processed > indep_processed |