diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-06-08 07:46:02 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-06-08 07:46:02 +0000 |
commit | 2153915d0ab419d1e0b67f9e0e302368820d76f6 (patch) | |
tree | 4b2c9076dc8fb9da65d110bb248b0fd2c5b7f0bc /gcc/ada | |
parent | cdb884681d2b2f835e4457d84648b82d55e71262 (diff) | |
download | gcc-2153915d0ab419d1e0b67f9e0e302368820d76f6.zip gcc-2153915d0ab419d1e0b67f9e0e302368820d76f6.tar.gz gcc-2153915d0ab419d1e0b67f9e0e302368820d76f6.tar.bz2 |
common.opt (fcompare-debug=, [...]): New.
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.
From-SVN: r148271
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/lib-writ.adb | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index d439a19..f6ca7d7 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2009-06-08 Alexandre Oliva <aoliva@redhat.com> + + * lib-writ.adb (flag_compare_debug): Import. + (Write_ALI): Skip during -fcompare-debug-second. + 2009-06-03 Eric Botcazou <ebotcazou@adacore.com> * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When diff --git a/gcc/ada/lib-writ.adb b/gcc/ada/lib-writ.adb index 7ebfc7d..f248c05 100644 --- a/gcc/ada/lib-writ.adb +++ b/gcc/ada/lib-writ.adb @@ -197,6 +197,10 @@ package body Lib.Writ is Num_Sdep : Nat := 0; -- Number of active entries in Sdep_Table + flag_compare_debug : Int; + pragma Import (C, flag_compare_debug); + -- Import from toplev.c + ----------------------- -- Local Subprograms -- ----------------------- @@ -800,7 +804,9 @@ package body Lib.Writ is -- We never write an ALI file if the original operating mode was -- syntax-only (-gnats switch used in compiler invocation line) - if Original_Operating_Mode = Check_Syntax then + if Original_Operating_Mode = Check_Syntax + or flag_compare_debug /= 0 + then return; end if; |