aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-09-19 09:29:57 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-09-19 09:29:57 +0000
commitbf7a718571e1722ec2aad8e0bfc337dc597ac2d2 (patch)
tree4dffe7fee5a1a31e84a3c34642c6d71e05ef8e5c /gcc/common.opt
parentf20132e7aefa8b3615154925559dd19f204c8eca (diff)
downloadgcc-bf7a718571e1722ec2aad8e0bfc337dc597ac2d2.zip
gcc-bf7a718571e1722ec2aad8e0bfc337dc597ac2d2.tar.gz
gcc-bf7a718571e1722ec2aad8e0bfc337dc597ac2d2.tar.bz2
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
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index aa893ac..31b6210 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