Hi, while debugging verify_type ICE I noticed that we output debug info to slim-lto files. This debug info is never used for anything and should be omitted. I wonder if this can go also to rleease branches since it will likely make the slim files smaller.
Of course things will change with early debug, but even there we do not want to output all debug this way. Bootstrapped/rgtested x86_64-linux, comitted. Honza Index: ChangeLog =================================================================== --- ChangeLog (revision 223259) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ 2015-05-16 Jan HUbicka <hubi...@ucw.cz> + * toplev.c (emit_debug_global_declarations): Do not output debug info + when doing slim LTO objects. + +2015-05-16 Jan HUbicka <hubi...@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. Index: toplev.c =================================================================== --- toplev.c (revision 223258) +++ toplev.c (working copy) @@ -570,6 +570,9 @@ emit_debug_global_declarations (tree *ve /* 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++)