]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR55859.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jan 2013 11:15:55 +0000 (11:15 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jan 2013 11:15:55 +0000 (11:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194901 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/opts.c

index 11ead21971654877179496c20d20e501c40fa659..e31d6e7e050db382c3b2b98045dbc777c57f59db 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-04  Marek Polacek  <polacek@redhat.com>
+
+       PR middle-end/55859
+       * opts.c (default_options_optimization): Clarify error message.
+
 2013-01-04  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/55863
index b3a9afe8e4d8829896d05a749f9bcfc6fa69d454..75e1d1c4343b63e38203b174a7affb50197f32e6 100644 (file)
@@ -1,7 +1,6 @@
 /* Command line option handling.
    Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
-   2012
-
+   2012, 2013
    Free Software Foundation, Inc.
    Contributed by Neil Booth.
 
@@ -542,9 +541,8 @@ default_options_optimization (struct gcc_options *opts,
            {
              const int optimize_val = integral_argument (opt->arg);
              if (optimize_val == -1)
-               error_at (loc,
-                         "argument to %qs should be a non-negative integer",
-                         "-O");
+               error_at (loc, "argument to %<-O%> should be a non-negative "
+                              "integer, %<g%>, %<s%> or %<fast%>");
              else
                {
                  opts->x_optimize = optimize_val;