From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83A253853D6B; Thu, 17 Nov 2022 19:29:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83A253853D6B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668713383; bh=Mnj/HE/vUoD01HCsJbAb6TTsBVrhU/oSJTbc2pnMptA=; h=From:To:Subject:Date:From; b=SFyjDl6G5lU/YF24RVylzhRFgU2kuJOesvOoAwaspUxei526eo+k0gIF3vtzOmkD3 RS0y8uRCVdQhDCqebi+ILDpwWtAntSCqSqfR3g4qYAf/NCUileocP+29AWtPSOHcHL TJ4ICdLuFdopTme6VEKt4O4IDSoUdPd3VgfxEJCA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107737] New: seemly looking off code in gimplify_call_expr Date: Thu, 17 Nov 2022 19:29:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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 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=3D107737 Bug ID: 107737 Summary: seemly looking off code in gimplify_call_expr Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- The code has: ``` location_t loc =3D EXPR_LOCATION (*expr_p); gcc_assert (TREE_CODE (*expr_p) =3D=3D CALL_EXPR); /* For reliable diagnostics during inlining, it is necessary that every call_expr be annotated with file and line. */ if (! EXPR_HAS_LOCATION (*expr_p)) SET_EXPR_LOCATION (*expr_p, input_location); .... USE(loc) below ``` This seems wrong for the location. I don't know if the SET_EXPR_LOCATION is dead code or not but this does seem wrong.=