diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-04 11:15:55 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-04 11:15:55 +0000 |
commit | 9448cf4a2fd9d9ef39b85d914b09c5efbea44731 (patch) | |
tree | 7ed36b5597dd47066b91b76874a32914bd496383 /gcc | |
parent | 65afafea5990c20a8357a09bf6748fd38781ad47 (diff) | |
download | gcc-9448cf4a2fd9d9ef39b85d914b09c5efbea44731.tar.gz |
PR55859.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194901 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/opts.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11ead219716..e31d6e7e050 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/opts.c b/gcc/opts.c index b3a9afe8e4d..75e1d1c4343 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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; |