aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-05-05 20:37:47 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-05-05 20:37:47 +0000
commitc2ac23fe235cd1be19476d11b6942f1d0e1c7dac (patch)
treee3b163faece7958718d33047d3b1c7ac715d4ee4 /gcc/opts.c
parent535d5152fedfcf2c404a84d2655942a4eb86734f (diff)
downloadgcc-c2ac23fe235cd1be19476d11b6942f1d0e1c7dac.zip
gcc-c2ac23fe235cd1be19476d11b6942f1d0e1c7dac.tar.gz
gcc-c2ac23fe235cd1be19476d11b6942f1d0e1c7dac.tar.bz2
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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 3c214f0..f15852d 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;