public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Martin Sebor <msebor@gmail.com>
To: Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: [PATCH] clarify documentation of -Q --help=optimizers
Date: Fri, 23 Oct 2015 03:56:00 -0000	[thread overview]
Message-ID: <562997A9.3090203@gmail.com> (raw)
In-Reply-To: <56299713.6040204@gmail.com>

[Sending to the right list this time]

The documentation of the -Q --help=optimizers options leads some
to expect that when options are reported as enabled imply the
corresponding optimization will take place.  (See the following
question on gcc-help:
https://gcc.gnu.org/ml/gcc-help/2015-10/msg00133.html)

The patch below tries to make it clear that that's not always
the case.

Martin

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 4f89fa1..337639e 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1506,6 +1506,16 @@ options, an indication is given as to whether the
option is enabled,
  disabled or set to a specific value (assuming that the compiler
  knows this at the point where the @option{--help=} option is used).

+It's important to note that when a given optimization option is
+enabled, either explicitly on the command line or implicitly, whether
+or not the optimization it controls will be performed during an
+invocation of the compiler may depend on other options.  This is
+so because many options control various finer aspects of other more
+general optimizations that must be enabled in order for the former
+option to have any effect.  There is currently no command line
+interface to determine such dependencies between optimization
+options.
+
  Here is a truncated example from the ARM port of @command{gcc}:

  @smallexample


       reply	other threads:[~2015-10-23  2:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <56299713.6040204@gmail.com>
2015-10-23  3:56 ` Martin Sebor [this message]
2015-11-02 21:48   ` [PING] " Martin Sebor
2015-11-03 10:19   ` Alexander Monakov
2015-11-04 23:52     ` Martin Sebor
2015-11-05  0:54       ` Joseph Myers
2015-11-05 10:48         ` Alexander Monakov
2015-11-05 15:58           ` Martin Sebor
2015-11-05 17:09             ` Segher Boessenkool
2015-11-05 21:04               ` Martin Sebor
2015-11-05 23:30                 ` Segher Boessenkool
2015-11-06  1:25                   ` Martin Sebor
2015-11-05 17:11             ` Joseph Myers
2015-11-05 17:47               ` Martin Sebor
2015-11-05 18:07                 ` Joseph Myers
2015-11-05 18:45                   ` Martin Sebor
2015-11-05 18:47                     ` Joseph Myers
2015-11-05  1:09       ` Sandra Loosemore
2015-11-05  2:40         ` Martin Sebor

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=562997A9.3090203@gmail.com \
    --to=msebor@gmail.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).