Commit 9261aa43 by Jan Hubicka Committed by Jan Hubicka

toplev.c (emit_debug_global_declarations): Do not output debug info when doing slim LTO objects.

	* toplev.c (emit_debug_global_declarations): Do not output debug info
	when doing slim LTO objects.

From-SVN: r223260
parent 499568ed
2015-05-16 Jan HUbicka <hubicka@ucw.cz>
* toplev.c (emit_debug_global_declarations): Do not output debug info
when doing slim LTO objects.
2015-05-16 Jan HUbicka <hubicka@ucw.cz>
* ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
odr_types_equivalent_p): Declare.
(odr_type_p): Use gcc_checking_assert.
......
......@@ -570,6 +570,9 @@ emit_debug_global_declarations (tree *vec, int len)
/* Avoid confusing the debug information machinery when there are errors. */
if (seen_error ())
return;
/* No need for debug info in object files when producing slimLTO. */
if (!in_lto_p && flag_lto && !flag_fat_lto_objects)
return;
timevar_push (TV_SYMOUT);
for (i = 0; i < len; i++)
......
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