re PR other/53316 (Introduce -Og)
authorRichard Guenther <rguenther@suse.de>
Wed, 19 Sep 2012 09:29:57 +0000 (09:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Sep 2012 09:29:57 +0000 (09:29 +0000)
commitbf7a718571e1722ec2aad8e0bfc337dc597ac2d2
tree4dffe7fee5a1a31e84a3c34642c6d71e05ef8e5c
parentf20132e7aefa8b3615154925559dd19f204c8eca
re PR other/53316 (Introduce -Og)

2012-09-19  Richard Guenther  <rguenther@suse.de>

PR other/53316
* common.opt (optimize_debug): New variable.
(Og): New optimization level.
* doc/invoke.texi (Og): Document.
* opts.c (maybe_default_option): Add debug parameter.
(maybe_default_options): Likewise.
(default_options_optimization): Handle -Og.
(common_handle_option): Likewise.
* passes.c (gate_all_optimizations): Do not run with -Og.
(gate_all_optimizations_g): New gate, run with -Og.
(pass_all_optimizations_g): New container pass, run with -Og.
(init_optimization_passes): Schedule pass_all_optimizations_g
alongside pass_all_optimizations.

From-SVN: r191464
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/opts.c
gcc/passes.c