https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97508
Bug ID: 97508 Summary: lto1: internal compiler error: decompressed stream: Destination buffer is too small Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- [hjl@gnu-skx-1 tmp]$ cat pr15323a.c int main (void) { return 0; } [hjl@gnu-skx-1 tmp]$ cat doit CFLAGS="-flto -fno-profile-use -O2" cc $CFLAGS -c pr15323a.c -o pr15323a.o cc $CFLAGS -r -nostdlib pr15323a.o -o pr15323a-r.o cc $CFLAGS -o pr15323a.exe pr15323a-r.o [hjl@gnu-skx-1 tmp]$ sh doit during IPA pass: cp lto1: internal compiler error: decompressed stream: Destination buffer is too small Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. lto-wrapper: fatal error: cc returned 1 exit status compilation terminated. /usr/local/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status [hjl@gnu-skx-1 tmp]$