From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D05093858D1E; Thu, 10 Feb 2022 23:50:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D05093858D1E From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/104274] FAIL: gcc.dg/analyzer/pr97029.c (test for excess errors) Date: Thu, 10 Feb 2022 23:50:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2022 23:50:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104274 --- Comment #3 from David Malcolm --- In theory,=20 3978 gimplify_assign (local, parm, &stmts); ought to be generating a "pl.0 =3D pl;" assignment, but we're hitting this = case in gimplify_modify_expr: VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV 5927 /* For empty types only gimplify the left hand side and right hand 5928 side as statements and throw away the assignment. Do this aft= er 5929 gimplify_modify_expr_rhs so we handle TARGET_EXPRs of addressa= ble 5930 types properly. */ 5931 if (is_empty_type (TREE_TYPE (*from_p)) 5932 && !want_value 5933 /* Don't do this for calls that return addressable types, expand_call 5934 relies on those having a lhs. */ 5935 && !(TREE_ADDRESSABLE (TREE_TYPE (*from_p)) 5936 && TREE_CODE (*from_p) =3D=3D CALL_EXPR)) (gdb)=20 5937 { 5938 gimplify_stmt (from_p, pre_p); 5939 gimplify_stmt (to_p, pre_p); 5940 *expr_p =3D NULL_TREE; 5941 return GS_ALL_DONE; 5942 } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^=