From: Marek Polacek <polacek@redhat.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH] Clarify error message (PR middle-end/55859)
Date: Fri, 04 Jan 2013 02:00:00 -0000 [thread overview]
Message-ID: <20130104015946.GA6721@redhat.com> (raw)
This patch clarifies the error message when using e.g. -Obar option,
except non-negative numbers we accept some other levels too.
Bootstrapped on x86_64-linux. Ok for trunk?
2013-01-04 Marek Polacek <polacek@redhat.com>
PR middle-end/55859
* opts.c (default_options_optimization): Clarify error message.
--- gcc/opts.c.mp 2013-01-04 02:48:33.116785922 +0100
+++ gcc/opts.c 2013-01-04 02:48:51.729870314 +0100
@@ -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.
@@ -543,7 +542,8 @@ default_options_optimization (struct gcc
const int optimize_val = integral_argument (opt->arg);
if (optimize_val == -1)
error_at (loc,
- "argument to %qs should be a non-negative integer",
+ "argument to %qs should be a non-negative integer, "
+ "'g', 's', or 'fast'",
"-O");
else
{
Marek
next reply other threads:[~2013-01-04 2:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 2:00 Marek Polacek [this message]
2013-01-04 10:42 ` Jakub Jelinek
2013-01-04 11:06 ` Marek Polacek
2013-01-04 11:07 ` Jakub Jelinek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130104015946.GA6721@redhat.com \
--to=polacek@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).