From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 043D03858C36; Thu, 28 Mar 2024 00:45:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 043D03858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711586755; bh=kBgfW4Bs9d2L+tpHGR62HW2pWgM438uEvGKITE7pKgM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sd/ZCQPegi/OAb/AAOCkgWcM1xGLq63UcipUJ1nTeFdKaBCjseNwWT4ipFFWbqjn9 KEwFAH7NfldCbv/hozwaUh+bTE1icWpXzLbadbbO3R1Z2biTIZyPMeE3VltTi1eUWi O4FTxzYEXQjxFY8keQAFtl2/5G/1X3qOp+8uIQEw= 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:45:54 +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, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: 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 --- Comment #13 from Andrew Pinski --- I understand that this might be the reason why others have enabled zstd alw= ays but reading the code this case should be supported. That is LTO generated from a GCC without ZSTD support should be supported w= ith one compiled with it. Plus: /* Compression algorithm used for compression of LTO bytecode. */ enum lto_compression { ZLIB, ZSTD }; ZSTD is 1 so it has to be something corrupting the field ...=