[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #14 from Richard Biener --- (In reply to Andrew Pinski from comment #4) > For the opposite direction, this is the fix: > ``` > diff --git a/gcc/lto-compress.cc b/gcc/lto-compress.cc > index c167ac967aa..1475674e7ac 100644 > ---

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #13 from Andrew Pinski --- I understand that this might be the reason why others have enabled zstd always but reading the code this case should be supported. That is LTO generated from a GCC without ZSTD support should be supported

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread eschwartz93 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #12 from Eli Schwartz --- (In reply to Xi Ruoyao from comment #1) > Confirmed as I've seen it before. At least we should turn it into a > "normal" error message instead of ICE. > > But note that even "downgrading the compression

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #11 from Andrew Pinski --- https://wiki.gentoo.org/wiki/QEMU#lto1:_internal_compiler_error:_original_not_compressed_with_zstd

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #10 from Andrew Pinski --- https://www.reddit.com/r/Gentoo/comments/twtxhc/problems_compiling_gjs_1712_on_amd64/

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 Andrew Pinski changed: What|Removed |Added See Also||https://github.com/openwrt/

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #8 from Andrew Pinski --- OE (Yocto) ran into this: https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg158289.html

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #7 from Andrew Pinski --- Something else must be going wrong here. Maybe a mistmatched version of ZSTD which are incompatible somehow. Maybe ZSTD being miscompiled in one case. The original ICE listed in this bug report should not

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- Comment #6 from Sam James --- I'm confident I've seen this happen before but I haven't got a quick testcase (it should be easy to make one, but I don't have a gcc w/ zstd right this second.)

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 Xi Ruoyao changed: What|Removed |Added Keywords||needs-reduction --- Comment #5 from Xi

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 --- 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

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 Andrew Pinski changed: What|Removed |Added Ever confirmed|1 |0 Status|NEW

[Bug lto/114505] static archives built with gcc --without-zstd cause ICE when read by gcc with zstd support

2024-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114505 Xi Ruoyao changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|