diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-08 07:46:02 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-08 07:46:02 +0000 |
commit | 71278019268ed867212742e9b787e4504522e244 (patch) | |
tree | 4b2c9076dc8fb9da65d110bb248b0fd2c5b7f0bc /gcc/common.opt | |
parent | 561017b56be056393775e0713919a4f8c6210daf (diff) | |
download | gcc-71278019268ed867212742e9b787e4504522e244.tar.gz |
gcc/ChangeLog:
* common.opt (fcompare-debug=, fcompare-debug-second): New.
(fdump-final-insns=, gtoggle): New.
* doc/invoke.texi: Document them.
* final.c (rest_of_clean_state): Dump final insn stream.
* gcc.c (invoke_as): Hook in -fcompare-debug.
(static_spec_functions): Add compare-debug-dump-opt,
compare-debug-self-opt and compare-debug-auxbase-opt.
(compare_debug, compare_debug_second, compare_debug_opt): New.
(switches_debug_check, n_switches_debug_check): New.
(debug_auxbase_opt, debug_check_temp_file): New.
(process_command): Handle -fno-compare-debug, -fcompare-debug and
-fcompare-debug=*.
(do_self_spec): Handle arguments after switches.
(do_spec_1): Add .gk extension to temp file basenames for compare.
(check_live_switch): Take SWITCH_IGNORE into account, and earlier.
(cc1_options): Use it instead of normal auxbase computation for
the second compare-debug compilation.
(compare_files): New.
(main): Set up and implement compare debug mode.
(compare_debug_dump_opt_spec_function): New.
(compare_debug_self_opt_spec_function): New.
(compare_debug_auxbase_opt_spec_function): New.
* toplev.c (process_options): Handle flag_gtoggle,
flag_dump_final_insns.
* coverage.c (coverage_begin_output): Don't overwrite .gcno file
during -fcompare-debug-second compilation.
gcc/cp/ChangeLog:
* repo.c (get_base_filename): Use aux_base_name rather than
alternate temporary file during second compare debug compilation.
(finish_repo): Skip during -fcompare-debug-second.
gcc/ada/ChangeLog:
* lib-writ.adb (flag_compare_debug): Import.
(Write_ALI): Skip during -fcompare-debug-second.
gcc/fortran/ChangeLog:
* options.c (gfc_post_options): Disable dump_parse_tree
during -fcompare-debug-second.
gcc/objc/ChangeLog:
* objc-act.c (objc_init): Skip print_struct_values during
-fcompare-debug-second.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index ee7e0bd7cea..f7248907e1a 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -384,6 +384,14 @@ fconserve-stack Common Var(flag_conserve_stack) Optimization Do not perform optimizations increasing noticeably stack usage +fcompare-debug= +Common JoinedOrMissing RejectNegative Var(flag_compare_debug_opt) +-fcompare-debug[=<opts>] Compile with and without e.g. -gtoggle, and compare the final-insns dump + +fcompare-debug-second +Common RejectNegative Var(flag_compare_debug) +Run only the second compilation of -fcompare-debug + fcprop-registers Common Report Var(flag_cprop_registers) Optimization Perform a register copy-propagation optimization pass @@ -450,6 +458,10 @@ fdump- Common Joined RejectNegative -fdump-<type> Dump various compiler internals to a file +fdump-final-insns= +Common RejectNegative Joined Var(flag_dump_final_insns) +-fdump-final-insns=filename Dump to filename the insns at the end of translation + fdump-noaddr Common Report Var(flag_dump_noaddr) Suppress output of addresses in debugging dumps @@ -1417,6 +1429,10 @@ gstabs+ Common JoinedOrMissing Negative(gvms) Generate debug information in extended STABS format +gtoggle +Common Report Var(flag_gtoggle) +Toggle debug information generation + gvms Common JoinedOrMissing Negative(gxcoff) Generate debug information in VMS format |