re PR driver/61065 ([4.9/4.10 Regresion] invalid args to -fsanitize should be an...
authorMarek Polacek <polacek@redhat.com>
Mon, 5 May 2014 20:37:47 +0000 (20:37 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 5 May 2014 20:37:47 +0000 (20:37 +0000)
PR driver/61065
* opts.c (common_handle_option): Call error_at instead of warning_at.

From-SVN: r210080

gcc/ChangeLog
gcc/opts.c

index 6794c08dbeb3d4e01f1e96bf033eeb08b0957b52..74aa6785005b463e4328cfbd0711ce7555e96503 100644 (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
index 3c214f09701f7f39d6cc96318d80a232809b6421..f15852d69a0a69e0cd16a6e61c3d01ce87f61ba1 100644 (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;