From: Marek Polacek Date: Mon, 5 May 2014 20:37:47 +0000 (+0000) Subject: re PR driver/61065 ([4.9/4.10 Regresion] invalid args to -fsanitize should be an... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2ac23fe235cd1be19476d11b6942f1d0e1c7dac;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6794c08dbeb..74aa6785005 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-05 Marek Polacek + + PR driver/61065 + * opts.c (common_handle_option): Call error_at instead of warning_at. + 2014-05-05 Richard Biener * passes.c (execute_function_todo): Don't reset TODO_verify_ssa diff --git a/gcc/opts.c b/gcc/opts.c index 3c214f09701..f15852d69a0 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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;