diff options
author | Marek Polacek <polacek@redhat.com> | 2013-01-04 11:15:55 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2013-01-04 11:15:55 +0000 |
commit | 33879b9fc7b04a5051c4a5508eda29c355de859d (patch) | |
tree | 7ed36b5597dd47066b91b76874a32914bd496383 /gcc/opts.c | |
parent | 3068819a3af2da9cdab935d39b952912b1f63325 (diff) | |
download | gcc-33879b9fc7b04a5051c4a5508eda29c355de859d.zip gcc-33879b9fc7b04a5051c4a5508eda29c355de859d.tar.gz gcc-33879b9fc7b04a5051c4a5508eda29c355de859d.tar.bz2 |
re PR middle-end/55859 (Mention -Og/-Ofast in "error: argument to '-O' should be a non-negative integer")
PR55859.
From-SVN: r194901
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |