From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by sourceware.org (Postfix) with ESMTPS id 751943858D28 for ; Thu, 12 Jan 2023 00:26:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 751943858D28 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=jp-hosting.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jp-hosting.net Received: by mail-yb1-xb41.google.com with SMTP id o75so16943998yba.2 for ; Wed, 11 Jan 2023 16:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jp-hosting.net; s=google; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=M0Sxuql4XeKxm8NfKOr1JYI4l21lfkZyyak9Yl0Gjmo=; b=dXEcV5Ifaziovkg9yaG2jPNlSkVnjY5IWYX5VakDHzDzlkKA2dEnkD+jhnAITMCPrq xtqEawagxDrL2VFtptA4j/hx4TBGFLiAixoFs8tf/au53GLnzI4okn8YuTjSj1ptItm9 f+sqan6eIR0YgOcm3YTEEzGAp7He2s5QgivzPbcZpxJOpQbAw89Mcy23jGRZ1D04rU08 s/ydwY+Ti/nqC9og76Lf1oqzrd6Fy+DqtpSOlDpBN895GNbzBaeBq4J5Jl1ozGPKIj7E NOqmd9PCWeEAyfOyrGGGCa2M/afkEcLCcCC4Igf3Iy2XFRuP1GDG4GjGDypCjo5vxFds zMAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M0Sxuql4XeKxm8NfKOr1JYI4l21lfkZyyak9Yl0Gjmo=; b=rf9F7OBMLbiV48Vk/AYj1p+yB0MtHB0BWT5I86w2q0Moy1P/YX5Wp33ICopcAUTcXd UUZHvLbWMGa3n55nW3fSFceEOSFTLE2jU3CKWNPC6KjsdFM42TRybeiXeP+CjPx9uwSW 6AsNYsWDL594X+cj99DBzyI1V+gCP4hhAY0f93RrOanYDnPbvJUrIBEF6d4Vk1GPInfa ZXUK3NA2Nw905kXsoreFeuAZdAlp2s8J2P7do0d3gkm1aAAVWZUzNKO4VWVUhRFNyOrg hKBFIPa10ZySGfzJxyvlmpujOkTM9I/N6LBWpypCa8r7l3dQzq0QUjmppYViCAsY6RZN fs1A== X-Gm-Message-State: AFqh2kok9FZXQWhR8PlwjqVI43a/amjzNeOiwusHnF7MXr36L8BC0M8c nR6N/DNqUnjAUyhIGTZ1G9HEC7og3yhwDNCK3jPt2DIAfjJLWTu7hvM= X-Google-Smtp-Source: AMrXdXuKMTZgfXZ/dtsnOoMJaeZP4B6aGIwNL39W2AaxheL0xbCJ4BE5+f55vCFPfwmejwm7AXtnq1M6FBrJV60yMhg= X-Received: by 2002:a25:3255:0:b0:7c9:241:172f with SMTP id y82-20020a253255000000b007c90241172fmr2368yby.42.1673483217719; Wed, 11 Jan 2023 16:26:57 -0800 (PST) MIME-Version: 1.0 From: James Addison Date: Thu, 12 Jan 2023 00:26:45 +0000 Message-ID: Subject: avx512erintrin.h: uninitialized variable warning (optimized build) To: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, During GCC 12.2.0 compilation of a file that includes[1] immintrin.h with both code-optimization and uninitialized-variable-warnings enabled, a warning is emitted: /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512erintrin.h:55:20: warning: =E2=80=98__W=E2=80=99 is used uninitialized [-Wuninitialized] The minimal repro compilation command appears to be: gcc -O -Wuninitialized -mavx512er -mavx512pf ./numpy/distutils/checks/cpu_avx512_knl.c My question is: does the warning indicate a possible bug that should be reported, or is there a reason that the relevant code[2] does not initialize the variable (for example, for performance reasons)? Thank you, James [1] - https://github.com/numpy/numpy/blob/bb2769e12a8646f3d63097e9464592aa6= e20058d/numpy/distutils/checks/cpu_avx512_knl.c#L14 [2] - https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/config/i386/avx= 512erintrin.h;h=3D6b3b679a17675612f45a1090f227012b80b871a6#l54