From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C9B503858C1F; Thu, 15 Jun 2023 09:23:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9B503858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686820992; bh=mHE82vaJDJeFfc68oo/2bceMBA4Wg38XTNk89/NT0IE=; h=From:To:Subject:Date:From; b=yidq1neqA2o3Wz11Hah3YL5Iqz5t964y+S7cA+7qHjBx85723i3LQWb3q8reOvkG2 0MgzzCMcI48uO+oaDzks6GPzQyDTKvPaGimO6TRm6VxLOB9asGIBMUdP3kzcu+4Ukw pBxPC171ICnoUltbS6thVX9UA9z6w58W9o/4vhwY= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110266] New: ice in gimple_range_adjustment Date: Thu, 15 Jun 2023 09:23:11 +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 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=3D110266 Bug ID: 110266 Summary: ice in gimple_range_adjustment 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: --- Created attachment 55326 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55326&action=3Dedit C source code The attached C code does this with today's gcc trunk: $ ~/gcc/results/bin/gcc -c -O2 bug933.c during GIMPLE pass: vrp blockswitch.c: In function =E2=80=98PsyBufferUpdate=E2=80=99: blockswitch.c:347:13: internal compiler error: tree check: expected integer_cst, have real_cst in to_wide, at tree.h:6314 0x1151782 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../trunk.year/gcc/tree.cc:8899 0x1b773a1 gimple_range_adjustment(vrange&, gimple const*) ../../trunk.year/gcc/gimple-range-fold.cc:0 It seems to have gone wrong sometime between 20230609 and 20230611. Git hashes g:067a8c7cb897b6a1 and g:20c85207abd543c7. I will have a go at reducing the code.=