From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A4F73858409; Mon, 24 Apr 2023 12:53:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A4F73858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682340826; bh=Yoa+xoIysB1Qc+w3PqSHJGePXKIXf6Ct02R7V1cdHNs=; h=From:To:Subject:Date:From; b=oLKi7HZ7anwkAAOFcL/LwW8InRVlgxlRkxNJqfu0iHc2i6sbuLktRq9Mq8enZd9/b 62dkCGx0qVUsm+QWG/vAC9KScy4vT4GaJ3fIU4RQAoWNhT2hCV1EZ7UmXgvQOUQsZZ A7m3vtIj5pbvi/MI4tCcaXrIpPd1g/dWNmc9jtcU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/109607] New: IPA replaces stmt with invalid gimple Date: Mon, 24 Apr 2023 12:53:46 +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: rguenth 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 cc 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=3D109607 Bug ID: 109607 Summary: IPA replaces stmt with invalid gimple Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- On cfghooks.cc we replace BIT_FIELD_REF <*this_8(D), 8, 56> with BIT_FIELD_REF (ISRA.814), 8, = 56> in ipa_param_body_adjustments::modify_expression. The replacement seems to be of type 'unsigned long'. This is (should be) invalid GIMPLE unless ISRA.814 is made a non-register. Note when replacing memory with register BIT_FIELD_REFs have to be careful with endianess (IIRC), thus the replacement looks dangerous anyway. A fix for PR109594 will make us trip over this new IL checking during bootstrap.=