diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-19 09:29:57 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-19 09:29:57 +0000 |
commit | 9b0d2865e2fe868519d9166886fbb3695ad0e9bd (patch) | |
tree | 4dffe7fee5a1a31e84a3c34642c6d71e05ef8e5c /gcc/common.opt | |
parent | 7b6f8db47b0b82cb4fd69bf111cce49a5aa5d192 (diff) | |
download | gcc-9b0d2865e2fe868519d9166886fbb3695ad0e9bd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191464 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index aa893acb20e..31b6210f97d 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -32,6 +32,9 @@ int optimize Variable int optimize_size +Variable +int optimize_debug + ; Not used directly to control optimizations, only to save -Ofast ; setting for "optimize" attributes. Variable @@ -449,6 +452,10 @@ Ofast Common Optimization Optimize for speed disregarding exact standards compliance +Og +Common Optimization +Optimize for debugging experience rather than speed or size + Q Driver |