re PR driver/61065 ([4.9/4.10 Regresion] invalid args to -fsanitize should be an error not a warning)

PR driver/61065
	* opts.c (common_handle_option): Call error_at instead of warning_at.

From-SVN: r210080
This commit is contained in:
Marek Polacek 2014-05-05 20:37:47 +00:00 committed by Marek Polacek
parent 535d5152fe
commit c2ac23fe23
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-05-05 Marek Polacek <polacek@redhat.com>
PR driver/61065
* opts.c (common_handle_option): Call error_at instead of warning_at.
2014-05-05 Richard Biener <rguenther@suse.de>
* passes.c (execute_function_todo): Don't reset TODO_verify_ssa

View File

@ -1495,9 +1495,9 @@ common_handle_option (struct gcc_options *opts,
}
if (! found)
warning_at (loc, 0,
"unrecognized argument to -fsanitize= option: %q.*s",
(int) len, p);
error_at (loc,
"unrecognized argument to -fsanitize= option: %q.*s",
(int) len, p);
if (comma == NULL)
break;