From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE80E3858C98; Thu, 28 Mar 2024 00:24:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE80E3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711585455; bh=tlNRY3MSSN0yR+hOcc7CFrsH8SvtTy0J1gWvrK/jnMQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bNIxBPKfH3B+NWCIUszX8i4ZaOhdF6qakSIuwE9k9nHMIpYKssx/uolFXDG7ndQSF Pn/TuFv5u1SBP8EPg+gFFpyg8VHfN5Gnk79kqmv+LNjksZKc0wK23rzY8B1DWEYcZY uoJvJf7+gUwDhBTeHHqOECGbcg15erfIInxJiHXk= 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:24:13 +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: 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 #4 from Andrew Pinski --- For the opposite direction, this is the fix: ``` diff --git a/gcc/lto-compress.cc b/gcc/lto-compress.cc index c167ac967aa..1475674e7ac 100644 --- a/gcc/lto-compress.cc +++ b/gcc/lto-compress.cc @@ -408,7 +408,7 @@ lto_end_uncompression (struct lto_compression_stream *stream, } #endif if (compression =3D=3D ZSTD) - internal_error ("compiler does not support ZSTD LTO compression"); + fatal_error ("compiler does not support ZSTD LTO compression"); lto_uncompression_zlib (stream); } ``` But this direction should work.=