From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C3B133858C50; Sat, 22 Jul 2023 18:31:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3B133858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690050687; bh=uO5n7zBypcMNIO0xg8B8EKQhFqM1fi/uf85QS/MpJe4=; h=From:To:Subject:Date:From; b=TrDlw/ojXbQyekq6tCnYBHijiYYlANt1BV0z0XmbhT2CMrtWZrkOlA3H/wQdrQJT3 TRHAs2W4PJeQrp8wUKH4+FQYXxDaOJ4Q8NaastviGiFZtJwJ+mNLZuhOMChKAaXSyZ Hlpj0Q77H/4JKyBGGuNk1KX+xEWMneWThlZ2RHwY= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110777] New: ice: SSA corruption Date: Sat, 22 Jul 2023 18:31:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com 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 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=3D110777 Bug ID: 110777 Summary: ice: SSA corruption Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This C code=20 int *findOrAddBackgroundInPalette_palette_pnm; static void findOrAddBackgroundInPalette(unsigned *paletteSizeP, int *backgroundIndexP) { if (*paletteSizeP) { *backgroundIndexP =3D (*paletteSizeP)++; pm_message(); } pm_message(findOrAddBackgroundInPalette_palette_pnm[*backgroundIndexP]); } void computeColorMap(int *backgroundIndexP) { unsigned paletteSize; findOrAddBackgroundInPalette(&paletteSize, backgroundIndexP); } int main() { unsigned backgroundIndex; _setjmp(); computeColorMap(&backgroundIndex); } with recent gcc trunk, does this: $ ~/gcc/results/bin/gcc -c -O3 -w ~/cvise/bug944.c Unable to coalesce ssa_names 27 and 31 which are marked as MUST COALESCE. paletteSize_27(ab) and paletteSize_31(ab) during RTL pass: expand /home/dcb38/cvise/bug944.c: In function =E2=80=98main=E2=80=99: /home/dcb38/cvise/bug944.c:14:5: internal compiler error: SSA corruption 14 | int main() { | ^~~~ 0xf95b19 fail_abnormal_edge_coalesce(int, int) ../../trunk.year/gcc/tree-ssa-coalesce.cc:1003 0xf95b19 coalesce_partitions(_var_map*, ssa_conflicts*, coalesce_list*, _IO_FILE*) ../../trunk.year/gcc/tree-ssa-coalesce.cc:1425 The bug first seems to occur sometime between g:b2cfe5233e682fc0 and g:f32518726ee8e836, a range of 30 commits.=