From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD333384AB5B; Fri, 3 May 2024 01:19:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD333384AB5B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714699178; bh=9YLM2ZWvngA1HfvLshzG1Xm4qY4ylhCKqzo13SChLtY=; h=From:To:Subject:Date:From; b=JvSXSKTsyg0Uu/dxUr+FMYlKo0MSv97fKyvnWM9M2iqu9KGQkchRW7Vj85mZBvpMH 2vHzAouNhhqnaSbo3J4JKX2AYEd78iBe4WY1ZK5FYbT+nr+Is1us/B73tns/4E+tf6 emvfU45yALy8puWXNyo+ZjiPMO8DLjJH3MXq6RsI= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/114930] New: ICE in fld_incomplete_type_of when building libwebp with -std=c23 -flto Date: Fri, 03 May 2024 01:19:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D114930 Bug ID: 114930 Summary: ICE in fld_incomplete_type_of when building libwebp with -std=3Dc23 -flto Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 58093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58093&action=3Dedit libwebpdecode_la-vp8l_dec.i.xz ``` $ gcc -c libwebpdecode_la-vp8l_dec.i -std=3Dc23 -flto /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c: In function =E2=80=98CopySmallPattern8b=E2=80=99: /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c:908:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-c= ast] 908 | while ((uintptr_t)dst & 3) { | ^ /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c: In function =E2=80=98CopySmallPattern32b=E2=80=99: /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c:977:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-c= ast] 977 | if ((uintptr_t)dst & 4) { // Align 'dst' to 8-bytes boundary. | ^ /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c: In function =E2=80=98CopyBlock32b=E2=80=99: /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c:994:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-c= ast] 994 | if (dist <=3D 2 && length >=3D 4 && ((uintptr_t)dst & 3) =3D=3D 0= ) { | ^ during IPA pass: *free_lang_data /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c: At top level: /var/tmp/portage/media-libs/libwebp-1.3.2/work/libwebp-1.3.2/src/dec/vp8l_d= ec.c:1744:1: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 1744 | } | ^ 0x5564762f6448 fld_incomplete_type_of =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/= ipa-free-lang-data.cc:257 0x5564778ff8fd fld_simplified_type =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/= ipa-free-lang-data.cc:344 0x5564778ff8fd free_lang_data_in_type =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/= ipa-free-lang-data.cc:439 0x556477fd53b0 free_lang_data_in_cgraph =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/= ipa-free-lang-data.cc:1072 0x556477fd53b0 free_lang_data =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/= ipa-free-lang-data.cc:1109 0x556477fd53b0 execute =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.1_pre20240430/gcc-14.1.0-RC-20240430/gcc/= ipa-free-lang-data.cc:1176 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ```=