diff options
author | Richard Guenther <rguenther@suse.de> | 2009-12-02 17:13:51 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-12-02 17:13:51 +0000 |
commit | a881cad63500457e54cde728490e220e976cbb46 (patch) | |
tree | 54bb9de5e8e9012c7143c12eea1e9eed92fa6d12 | |
parent | 29a8405af13c4e982906779340890496831c219e (diff) | |
download | gcc-a881cad63500457e54cde728490e220e976cbb46.zip gcc-a881cad63500457e54cde728490e220e976cbb46.tar.gz gcc-a881cad63500457e54cde728490e220e976cbb46.tar.bz2 |
re PR lto/42088 (flag_gtoggle in free_lang_data hides -fcompare-debug errors)
2009-12-02 Richard Guenther <rguenther@suse.de>
PR middle-end/42088
* tree.c (free_lang_data): Disable if not using LTO.
From-SVN: r154918
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 896781b..1700570 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2009-12-02 Richard Guenther <rguenther@suse.de> + PR middle-end/42088 + * tree.c (free_lang_data): Disable if not using LTO. + +2009-12-02 Richard Guenther <rguenther@suse.de> + PR middle-end/42229 * cfgloopmanip.c (remove_path): Avoid cancelling loops twice. @@ -4923,7 +4923,8 @@ free_lang_data (void) unsigned i; /* If we are the LTO frontend we have freed lang-specific data already. */ - if (in_lto_p) + if (in_lto_p + || !flag_generate_lto) return 0; /* Allocate and assign alias sets to the standard integer types @@ -4932,11 +4933,6 @@ free_lang_data (void) if (integer_types[i]) TYPE_ALIAS_SET (integer_types[i]) = get_alias_set (integer_types[i]); - /* FIXME. Remove after save_debug_info is working. */ - if (!(flag_generate_lto - || (!flag_gtoggle && debug_info_level == DINFO_LEVEL_NONE))) - return 0; - /* Traverse the IL resetting language specific information for operands, expressions, etc. */ free_lang_data_in_cgraph (); |