aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-09-19 09:29:57 +0000
committerRichard Guenther <rguenther@suse.de>2012-09-19 09:29:57 +0000
commit280b0d963f38badd81b6de983903266a9b3533bc (patch)
tree4dffe7fee5a1a31e84a3c34642c6d71e05ef8e5c /gcc/common.opt
parent433d6c0570693438a30f66e4a1eb9092a82baced (diff)
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: https://gcc.gnu.org/svn/gcc/trunk@191464 138bc75d-0d04-0410-961f-82ee72b054a4
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 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