From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB9073858C36; Thu, 28 Mar 2024 00:21:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB9073858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711585264; bh=+BJQXvH7nNG4R2tvuyboRTzoqk5S9Qv1lCP96rjfEKc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b50C4XC9UsvfmMwwnSHUvEEY9KXbFn4vDcCMiI+2BOb4xqDpLoankkUQIGdPC9GU7 nmIAVCfJgw4KL95xz6MFCaGfssEJkYH5X98HqCRLic+/pclVp8Hay/Hr8c3DLcePau 5SXgtQXX3zggBAcRIQYurjyiP3f94g7/tkDNQG8U= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support Date: Thu, 28 Mar 2024 00:21:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114505 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Status|NEW |UNCONFIRMED Last reconfirmed|2024-03-28 00:00:00 | --- Comment #2 from Andrew Pinski --- On the output side: #ifdef HAVE_ZSTD_H lto_compression compression =3D ZSTD; #else lto_compression compression =3D ZLIB; #endif bool slim_object =3D flag_generate_lto && !flag_fat_lto_objects; lto_section s =3D { 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 = ());=