Commit 04324727 by Richard Kenner Committed by Richard Kenner

toplev.c (decode_g_option): Don't give warning for unknown -g option; return 0 instead.

	* toplev.c (decode_g_option): Don't give warning for unknown -g
	option; return 0 instead.
	(main): If -g option is not recognized by front end or
	language-independent code, give warning.

From-SVN: r36020
parent 9e3e266c
Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* toplev.c (decode_g_option): Don't give warning for unknown -g
option; return 0 instead.
(main): If -g option is not recognized by front end or
language-independent code, give warning.
2000-08-28 Greg McGary <greg@mcgary.org>
* config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
......
......@@ -4222,7 +4222,7 @@ ignoring option `%s' due to invalid debug level specification",
}
if (! da->arg)
warning ("`%s': unknown or unsupported -g option", arg - 2);
return 0;
return 1;
}
......@@ -4606,8 +4606,7 @@ main (argc, argv)
indep_processed = independent_decode_option (argc - i, argv + i);
if (lang_processed || indep_processed)
i += (lang_processed > indep_processed
? lang_processed : indep_processed);
i += MAX (lang_processed, indep_processed);
else
{
const char *option = NULL;
......@@ -4637,10 +4636,13 @@ main (argc, argv)
{
warning ("Ignoring command line option '%s'", argv[i]);
if (lang)
warning ("\
(It is valid for %s but not the selected language)", lang);
warning
("(It is valid for %s but not the selected language)",
lang);
}
}
if (argv[i][0] == '-' && argv[i][1] == 'g')
warning ("`%s': unknown or unsupported -g option", &argv[i][2]);
else
error ("Unrecognized option `%s'", argv[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment