* toplev.c (emit_debug_global_declarations): Do not output debug info
when doing slim LTO objects.
From-SVN: r223260
+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,
/* 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++)