From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 105C2385843D; Thu, 12 Jan 2023 11:44:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 105C2385843D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673523875; bh=Q4U7POtm6JF6tYjX8Cwx2YninPaZexVpKoc0wBt79W8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AjWwMeh1WCkMQS5EpTA5w5oWveVg8g/9falyS696JA+kSYJmwdKfrPhZa0gvMWmvV 1xHhZJPnVmnaJ9UVg3A++eneeUXrTwwa3bKb4Eejb4xpb/X+OgWPARXdZZBt8aP9pj 1nfXe2IHtsw7wvStaotLtUiNr1S8IW44OrMOmabo= From: "jay+ggcc@jp-hosting.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105593] avx512 math function raises uninitialized variable warning Date: Thu, 12 Jan 2023 11:44:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jay+ggcc@jp-hosting.net X-Bugzilla-Status: NEW 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: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105593 James Addison changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jay+ggcc@jp-hosting.net --- Comment #9 from James Addison --- A similar warning is raised when compiling avx512erintrin.h with optimizati= on and -Wuninitialized enabled: /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512erintrin.h:55:20: warnin= g: =E2=80=98__W=E2=80=99 is used uninitialized [-Wuninitialized] The relevant GCC code can be found at https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/config/i386/avx512eri= ntrin.h;h=3D6b3b679a17675612f45a1090f227012b80b871a6#l54 The compilation command-line used was: gcc -O -Wuninitialized -mavx512er -mavx512pf The code-under-compilation can be found at https://github.com/numpy/numpy/blob/bb2769e12a8646f3d63097e9464592aa6e20058= d/numpy/distutils/checks/cpu_avx512_knl.c=