mirror of git://gcc.gnu.org/git/gcc.git
re PR middle-end/55859 (Mention -Og/-Ofast in "error: argument to '-O' should be a non-negative integer")
PR55859. From-SVN: r194901
This commit is contained in:
parent
3068819a3a
commit
33879b9fc7
|
|
@ -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>
|
2013-01-04 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR middle-end/55863
|
PR middle-end/55863
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
/* Command line option handling.
|
/* Command line option handling.
|
||||||
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
||||||
2012
|
2012, 2013
|
||||||
|
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Contributed by Neil Booth.
|
Contributed by Neil Booth.
|
||||||
|
|
||||||
|
|
@ -542,9 +541,8 @@ default_options_optimization (struct gcc_options *opts,
|
||||||
{
|
{
|
||||||
const int optimize_val = integral_argument (opt->arg);
|
const int optimize_val = integral_argument (opt->arg);
|
||||||
if (optimize_val == -1)
|
if (optimize_val == -1)
|
||||||
error_at (loc,
|
error_at (loc, "argument to %<-O%> should be a non-negative "
|
||||||
"argument to %qs should be a non-negative integer",
|
"integer, %<g%>, %<s%> or %<fast%>");
|
||||||
"-O");
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
opts->x_optimize = optimize_val;
|
opts->x_optimize = optimize_val;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue