diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-02 17:13:51 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-02 17:13:51 +0000 |
commit | 7b887394fc3b5a750271a988d6492d9527abee89 (patch) | |
tree | 54bb9de5e8e9012c7143c12eea1e9eed92fa6d12 /gcc/tree.c | |
parent | 0062e9ae50a3ee60768551dd913a2927ea39ad98 (diff) | |
download | gcc-7b887394fc3b5a750271a988d6492d9527abee89.tar.gz |
2009-12-02 Richard Guenther <rguenther@suse.de>
PR middle-end/42088
* tree.c (free_lang_data): Disable if not using LTO.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154918 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index c533fd8c12c..35bfd68dfcc 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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 (); |