Commit a881cad6 by Richard Guenther Committed by Richard Biener

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
parent 29a8405a
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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment