From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A1753858D33; Tue, 7 Feb 2023 23:13:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A1753858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675811595; bh=8j+gGTK6z2fMTq+yxQ4vrzikixPe9nwIwOffJmXj0Eg=; h=From:To:Subject:Date:From; b=sqlhAPz5TuZmI0/5b+RyIyKJJ8d3LsFNmvk5woIdvmW/qRRPx2ZzE6eWbYPeN8OMT WmHE0ydY8nsv2aCb4A2Q6pHY0Yde6xqc3tyTbBGDp7A3zFk3Sb9arU7BND70qYLpR/ Uqgtfbt8gwngmR971kFRG+aKxEKMpxADO9mOESnk= From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/108704] New: Many -Wanalyzer-use-of-uninitialized-value false positives seen in qemu's softfloat.c Date: Tue, 07 Feb 2023 23:13:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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=3D108704 Bug ID: 108704 Summary: Many -Wanalyzer-use-of-uninitialized-value false positives seen in qemu's softfloat.c Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Created attachment 54425 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54425&action=3Dedit Reduced reproducer Trunk shows many (dozens?) of -Wanalyzer-use-of-uninitialized-value false positives on qemu's softfloat.c https://godbolt.org/z/MTe9597Eh shows: : In function 'test': :27:9: warning: use of uninitialized value 'fp0' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 27 | fp0 =3D floatx80_add(fp0, float32_to_floatx80((0x3F800000))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'test': events 1-3 | | 24 | floatx80 fp0; | | ^~~ | | | | | (1) region created on stack here | | (2) capacity: 16 bytes |...... | 27 | fp0 =3D floatx80_add(fp0, float32_to_floatx80((0x3F800000))); | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | (3) use of uninitialized value 'fp0' here | Compiler returned: 0 where fp0 appears to have been initialized on the line above.=