From patchwork Thu Dec 29 12:58:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 62481 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 604C13858CDA for ; Thu, 29 Dec 2022 12:59:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 604C13858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672318793; bh=QZXgUzxA4k0awnCPHzZvx1yjwpEarc1F/ZDvS4dGP+8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=wqlilqwYA86ypqCn0Fa1dzV7Nija/VnYL4czdd7d00jxiI2q+doPOkuesi5KvJjTS okupfH8o7nb4Fcvh4hKL1ZYOZbAnmF6qSfjXu3CMy+zGOaAcd3akrKELaVXud1+WBa HKQ7TM6cEQZI68y126zBuavnp5vnGiJS2a2yYuig= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by sourceware.org (Postfix) with ESMTPS id 25C7F385828D for ; Thu, 29 Dec 2022 12:58:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 25C7F385828D Received: by mail-oi1-x22c.google.com with SMTP id r11so17043982oie.13 for ; Thu, 29 Dec 2022 04:58:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QZXgUzxA4k0awnCPHzZvx1yjwpEarc1F/ZDvS4dGP+8=; b=MHuhp5jCi8yU010u50ZbbWtpvRtkcA/ythJydKPoaoz1Lci63n6ZvBICZbvnchMjcC gIAF9bnBLqF35vkgAyvSZp3u6g445z/EYxChZ9vTgWre5EfKcG+7lQMyBIGEVVhm8cQa bPKmRrVnyAVvr0OoUNHFDVcmCehAYg3Lnto8YLeWXYPfQvpMO/Yv+0tjGUak4g3YFzD5 Qn6jcXonWB0wYLm6w2y/BiggxPmTl33fdMYjsu6s1Hhcy+xN9S3kTGsFnLOau2ppiddp UcPNtxgYa0tY3B7QJQyaVGD1n0OLPnXlFKopGqgvZwOk6aER2KeLp2dFqtB5m+EVgCUi JAGw== X-Gm-Message-State: AFqh2kpKdzMqClq+c65VmzMuVFL+46ip0mlmPT/pHGHQ8qaE3TD8ey7o Cpy1NoUMhOShQG4Mi7ftRTE2cQ27v9D7ZF95FfU= X-Google-Smtp-Source: AMrXdXv6Y3uez1UY0ycs1Tnblv5fLDZ/gBmqBBFlS+sGVlfmj1vSZCWO3JdKUjxnb7vT9jWxLlCvSQ== X-Received: by 2002:a05:6808:485:b0:360:fc4c:cc18 with SMTP id z5-20020a056808048500b00360fc4ccc18mr13190956oid.45.1672318693829; Thu, 29 Dec 2022 04:58:13 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:dd36:4794:7acd:a716:7b01]) by smtp.gmail.com with ESMTPSA id j2-20020a9d7d82000000b0066c34486aa7sm8977378otn.73.2022.12.29.04.58.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 04:58:13 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 4/4] math: Suppress -O0 warnings for soft-fp fsqrt [BZ #19444] Date: Thu, 29 Dec 2022 09:58:02 -0300 Message-Id: <20221229125802.2715435-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221229125802.2715435-1-adhemerval.zanella@linaro.org> References: <20221229125802.2715435-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The patch suppress the same warnings from 87c266d758d29e52bfb717f90, that shows issues for microblaze, mips soft-fp, nios2, and or1k. Reviewed-by: Carlos O'Donell --- sysdeps/ieee754/soft-fp/s_fsqrt.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sysdeps/ieee754/soft-fp/s_fsqrt.c b/sysdeps/ieee754/soft-fp/s_fsqrt.c index ef631bc6c2..d5c7904118 100644 --- a/sysdeps/ieee754/soft-fp/s_fsqrt.c +++ b/sysdeps/ieee754/soft-fp/s_fsqrt.c @@ -25,6 +25,15 @@ #undef fsqrtl #include +#include +/* R_f[01] are not set in cases where they are not used in packing, + but the compiler does not see that they are set in all cases where + they are used, resulting in warnings that they may be used + uninitialized. The location of the warning differs in different + versions of GCC, it may be where R is defined using a macro or it + may be where the macro is defined. This happens only with -O1. */ +DIAG_PUSH_NEEDS_COMMENT; +DIAG_IGNORE_NEEDS_COMMENT (8, "-Wmaybe-uninitialized"); #include #include #include @@ -51,4 +60,6 @@ __fsqrt (double x) CHECK_NARROW_SQRT (ret, x); return ret; } +DIAG_POP_NEEDS_COMMENT; + libm_alias_float_double (sqrt)