Message ID | 20220813120839.28527-1-mail@tim-lange.me |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp287010pxh; Sat, 13 Aug 2022 05:09:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5rZVtjrQSHn9UDh0TmJeO6Fsu/bjDNDb5YLhl9755W78T1yiKNUDhzPngDGFiwx6iIslzW X-Received: by 2002:a17:907:a063:b0:730:750b:bb62 with SMTP id ia3-20020a170907a06300b00730750bbb62mr5351629ejc.612.1660392577860; Sat, 13 Aug 2022 05:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660392577; cv=none; d=google.com; s=arc-20160816; b=eCw1I7rLaoCbEJK164CpYtD5SeOqDK6Ky2kIru58FQRtGuJg6T3LMvHNSj1KNdLE7n iMAEvHk0BWFMhtMCpzcdFrMge6V0rTnfcTxIYgOd/x/H0CWNZUZ9l3tLz9GwJaflIyC0 30AiGwQ3QiGBfGDAE/KwxO9fOHxZZldJWWBfacRfOsWwAZmt+ovDea8r+xf2ciSpZsop SCwSR/ChAWtUGvJMmLG5f/J70d7IJbOdryILGMaBbacjmHF6CmftazXFzxAMrHT15oRv 0X7PFh4KD9kyRiwGFP4WneNdCE8PK3lwA4GIClRHjZAF9LgdtWoVqOHPKJxBt84UICr1 B8SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:dmarc-filter:delivered-to; bh=Yfh2P9yxMaYHosiGBiFjNjd+yz91I4MFbUPhRFPdII4=; b=HJYJ0dr5lSPKhljWfhAEz9QshxV3yXr1k6lS1y/cdsQuUfUriGhb7f77BA0RT4mmSS QuD4y0P9/gYBZdYH4K30VKRIZq1TCEhNWSsBfayKWEjk1z3IwK6y+uRbQ1MZPpIWcIzP iQfCRinn7B71s+gsWcNrMzC5kjxDDGgzeyOkcNzTJntcYdwVyv3mUoQxnaUaGM3OGn1o reDmbexwS87BAOsl7/EMO33WTL/U8ESZzKQeGd51Ru/grP0UxF5m6ul+PW/71lfot7y6 RClNLEKFEiM6pWwuFlOAmVwloQ6MGOSOfWe9bq0jPNv47X23Ox+9eepYrGK3T0RF4V+j EbgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tim-lange.me header.s=default2108 header.b=ReNC8fja; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hq33-20020a1709073f2100b00711d59cf00fsi4531555ejc.1000.2022.08.13.05.09.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 05:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@tim-lange.me header.s=default2108 header.b=ReNC8fja; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C6C6D385828E for <ouuuleilei@gmail.com>; Sat, 13 Aug 2022 12:09:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from www523.your-server.de (www523.your-server.de [159.69.224.22]) by sourceware.org (Postfix) with ESMTPS id D2C733858C54 for <gcc-patches@gcc.gnu.org>; Sat, 13 Aug 2022 12:09:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D2C733858C54 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tim-lange.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tim-lange.me DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tim-lange.me; s=default2108; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Yfh2P9yxMaYHosiGBiFjNjd+yz91I4MFbUPhRFPdII4=; b=ReNC8fjapjYOyxWnV8P4O5vRXY o+lIWCZCGw3LCXqT3UJPhCp0leXhBum0sLwo6EZVyRQ2JRV5XuwDBD3mbWB57uUF8Z2R+YSyMUIuP OV6p9vYA1UsfbATKQ7YR2usqH5tq9xu06TJ1BIik3easipfoxVe5VieLCvEv2Hvf24R0xzecoudQj 54k8XcHwfG8Oj0EQ47uZ9mERE5pV3PUNA/NjXYAkwFcTb0DhlPwfIZwhhJ3jZkG5Gc/34/eFGOANQ 5SWm1cgJ+DbpcX7qamoVS0cZZdKo8ThgYKGDtAT7Se8gBE9JcYzcAo5a9KfYQrgPhzi+U3d/nNtUY xyCxWnaQ==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www523.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from <mail@tim-lange.me>) id 1oMpwo-000F7a-Cj; Sat, 13 Aug 2022 14:08:58 +0200 Received: from [2a02:908:1861:d6a0::6b5] (helo=fedora..) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mail@tim-lange.me>) id 1oMpwo-000E50-5e; Sat, 13 Aug 2022 14:08:58 +0200 From: Tim Lange <mail@tim-lange.me> To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Disable out-of-bounds checker in analyzer/torture/pr93451.c Date: Sat, 13 Aug 2022 14:08:39 +0200 Message-Id: <20220813120839.28527-1-mail@tim-lange.me> X-Mailer: git-send-email 2.37.1 In-Reply-To: <202208122017.27CKHvIp3108482@shliclel314.sh.intel.com> References: <202208122017.27CKHvIp3108482@shliclel314.sh.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: mail@tim-lange.me X-Virus-Scanned: Clear (ClamAV 0.103.6/26626/Sat Aug 13 09:53:08 2022) X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: Tim Lange <mail@tim-lange.me>, haochen.jiang@intel.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741047807671464154?= X-GMAIL-MSGID: =?utf-8?q?1741047807671464154?= |
Series |
[committed] testsuite: Disable out-of-bounds checker in analyzer/torture/pr93451.c
|
|
Commit Message
Tim Lange
Aug. 13, 2022, 12:08 p.m. UTC
This patch disables Wanalyzer-out-of-bounds for analyzer/torture/pr93451.c and makes the test case pass when compiled with -m32. The emitted warning is a true positive but only occurs if sizeof (long int) is less than sizeof (double). I've already discussed a similar case with Dave in the context of pr96764.c and we came to the conclusion that we just disable the checker in such cases. Committed under the "obvious fix" rule. gcc/testsuite/ChangeLog: * gcc.dg/analyzer/torture/pr93451.c: Disable Wanalyzer-out-of-bounds. --- gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c index 5908bc4b69f..daac745d504 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/pr93451.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-Wno-analyzer-out-of-bounds" } */ + void mt (double);