[Bug middle-end/59658] Document -f* flags enabled by -Og

2018-11-14 Thread sandra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59658

sandra at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from sandra at gcc dot gnu.org ---
Patch committed to trunk.

If somebody cares to address 88024 we can further improve the documentation for
both -O0 and -Og to list options that are always disabled at those levels.

[Bug middle-end/59658] Document -f* flags enabled by -Og

2018-11-14 Thread sandra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59658

--- Comment #4 from sandra at gcc dot gnu.org ---
Author: sandra
Date: Wed Nov 14 20:05:13 2018
New Revision: 266162

URL: https://gcc.gnu.org/viewcvs?rev=266162&root=gcc&view=rev
Log:
2018-11-14  Sandra Loosemore  

PR middle-end/59658

gcc/
* doc/invoke.texi (Optimize Options): Clarify that -O0 and -Og
also suppress many optimizations.  Alphabetize option lists for
-O1, -O2, and -Os.  Add list of options disabled with -Og, and
correct documentation for those options to say that.
* opts.c (default_options_table): Sort table by level and option
name, to make it easier to correlate to the manual.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/invoke.texi
trunk/gcc/opts.c

[Bug middle-end/59658] Document -f* flags enabled by -Og

2018-11-14 Thread sandra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59658

sandra at gcc dot gnu.org changed:

   What|Removed |Added

 CC||sandra at gcc dot gnu.org

--- Comment #3 from sandra at gcc dot gnu.org ---
I've been poking at this issue.  I note that we don't document exactly which
optimization flags are completely ignored at -O0 due to the abbreviated pass
list, either, just:

  Most optimizations are only enabled if an ‘-O’ level is set on the command
  line.  Otherwise they are disabled, even if individual optimization flags 
  are specified.

I filed PR 88024 to suggest a warning for such ignored options and some code
changes that would make it easier to document which ones they are.  Meanwhile I
will document the -O1 options that are specifically disabled at -Og and add
wording about the skipped passes for -Og similar to that for -O.

[Bug middle-end/59658] Document -f* flags enabled by -Og

2018-10-23 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59658

--- Comment #2 from Eric Gallager  ---
(In reply to Richard Biener from comment #1)
> But it might be misleading (similar to -O0 vs -O2) - enabling for example
> -ftree-pre won't enable PRE for -Og as it has a completely different
> pass pipeline which is not based on -O[123].  Those enumerations are only
> relevant for the 'numbered' optimization levels (excluding -O0).
> 
> So we miss to filter options in --help optimizers that can be enabled at all.

It's a place to start at least.

[Bug middle-end/59658] Document -f* flags enabled by -Og

2014-01-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59658

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-01-07
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
But it might be misleading (similar to -O0 vs -O2) - enabling for example
-ftree-pre won't enable PRE for -Og as it has a completely different
pass pipeline which is not based on -O[123].  Those enumerations are only
relevant for the 'numbered' optimization levels (excluding -O0).

So we miss to filter options in --help optimizers that can be enabled at all.