From bf7a718571e1722ec2aad8e0bfc337dc597ac2d2 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 19 Sep 2012 09:29:57 +0000 Subject: re PR other/53316 (Introduce -Og) 2012-09-19 Richard Guenther 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/common.opt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/common.opt') 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 -- cgit v1.1