https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Status|NEW |UNCONFIRMED Last reconfirmed|2024-03-28 00:00:00 | --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- On the output side: #ifdef HAVE_ZSTD_H lto_compression compression = ZSTD; #else lto_compression compression = ZLIB; #endif bool slim_object = flag_generate_lto && !flag_fat_lto_objects; lto_section s = { LTO_major_version, LTO_minor_version, slim_object, 0, 0 }; s.set_compression (compression); (flags of lto_section is just set to compression) On the input side: Wait this should not happen. lto_end_uncompression (stream, file_data->lto_section_header.get_compression ());