From patchwork Mon Feb 27 09:52:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Yong <10walls@gmail.com> X-Patchwork-Id: 1748579 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=vrQHaOYO; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQG5b5BXnz1yX2 for ; Mon, 27 Feb 2023 20:53:07 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9BB4C3858C78 for ; Mon, 27 Feb 2023 09:53:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BB4C3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677491585; bh=KehG2vuECoI2v32skYfKf9/RHeQebDh6ttM4tM5Lg3Q=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=vrQHaOYOB8hEov7522eaOR5X0puzctFKPJJPa0Y7A1F9AB8+KxZ9x1wJHGmLvNl73 UubMNV5MRUJahXqIh6AOMynnTPY05+g47TH3y4KDvnid/TeX50NZqVKjElroHUPWWF j4YGSstnI9cEncchlg8Y1ax/YULGXm+kmqYg4mzo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id B1A973858D20 for ; Mon, 27 Feb 2023 09:52:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B1A973858D20 Received: by mail-pj1-x102e.google.com with SMTP id cp7-20020a17090afb8700b0023756229427so9527196pjb.1 for ; Mon, 27 Feb 2023 01:52:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KehG2vuECoI2v32skYfKf9/RHeQebDh6ttM4tM5Lg3Q=; b=G8RwBqSc0HgGUB4IfDOStpLBoT/b+Bu+mabK2yxSR3QsmvpQCgcrbC3bFFi1oT12/e eserjS+Ec/35qPa6B9INqnz96bfYI9NewYbrsmBhlOkGG7JXW5OQIcifwPhhIeitN7V3 2kv/2JoocpOlSGHbFAzwoTsiXJ7i1sbIOhd8ZPufzGZXx3+0iuw+lwZ8GmqJNuHIraq1 Q+0LZZ+8oTx5hGa44TQqpov+2rvV67G+LfQaoEnXajxpgAJ9iN4M4IrzN8XuIu3HQtKP LEQ0I35nMuW9sSZIvBZ3+UM0pfV92kmxx2i267yOK8inUf8gJzf5PWXqivdu3r0FpgDj RFTA== X-Gm-Message-State: AO0yUKVt00VbP+YD304ZXhzNsf2gsB4ww0G4j+s6TZgjSjFXKoZBJTFc 1+nSukEHgGWTJTxt7Q8sLjP/4hRaKyI= X-Google-Smtp-Source: AK7set+ar0Gde+Ezw5+BH2fOye4KeBhyfDf8+x7zsddoUJf7y5NUuwmqXD7xNCabR9k5KpSCSyqMDQ== X-Received: by 2002:a17:902:e888:b0:19d:af20:3fe8 with SMTP id w8-20020a170902e88800b0019daf203fe8mr783371plg.21.1677491561482; Mon, 27 Feb 2023 01:52:41 -0800 (PST) Received: from [202.190.72.126] ([202.190.72.126]) by smtp.gmail.com with ESMTPSA id a2-20020a170902710200b0019a7d6a9a76sm4146470pll.111.2023.02.27.01.52.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Feb 2023 01:52:40 -0800 (PST) Message-ID: <4440cdad-cf9d-1ffc-029e-3bba162eb071@gmail.com> Date: Mon, 27 Feb 2023 09:52:38 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: Gcc Patch List Subject: [Patch] gcc.dg/overflow-warn-9.c: exclude from LLP64 X-Spam-Status: No, score=-3038.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Yong via Gcc-patches From: Jonathan Yong <10walls@gmail.com> Reply-To: Jonathan Yong <10walls@gmail.com> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This test is for LP64 only, exclude LLP64 too. Patch OK? From fbc83ae10df1a0e10c302fb0fee13092eb65818e Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Mon, 27 Feb 2023 09:49:31 +0000 Subject: [PATCH] gcc.dg/overflow-warn-9.c: exclude from LLP64 gcc/testsuite/ChangeLog: * gcc.dg/overflow-warn-9.c: Exclude from LLP64. Signed-off-by: Jonathan Yong <10walls@gmail.com> --- gcc/testsuite/gcc.dg/overflow-warn-9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/overflow-warn-9.c b/gcc/testsuite/gcc.dg/overflow-warn-9.c index 57c0f17bc91..012892dd343 100644 --- a/gcc/testsuite/gcc.dg/overflow-warn-9.c +++ b/gcc/testsuite/gcc.dg/overflow-warn-9.c @@ -59,7 +59,7 @@ const struct Types t1 = { .ui = UINT_MAX + 1L, /* { dg-warning "signed conversion from .long int. to .unsigned int. changes value from .4294967296. to .0." "lp64" { target lp64 } } */ .ui = UINT_MAX + 1LU, /* { dg-warning "conversion from .long unsigned int. to .unsigned int. changes value from .4294967296. to .0." "lp64" { target lp64 } } */ - .sl = LONG_MAX + 1LU, /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .9223372036854775808. to .-9223372036854775808." "not-ilp32" { target { ! ilp32 } } } */ - /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .2147483648. to .-2147483648." "ilp32" { target ilp32 } .-1 } */ + .sl = LONG_MAX + 1LU, /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .9223372036854775808. to .-9223372036854775808." "lp64" { target lp64 } } */ + /* { dg-warning "signed conversion from .long unsigned int. to .long int. changes value from .2147483648. to .-2147483648." "not-lp64" { target { ! lp64 } } .-1 } */ .ul = ULONG_MAX + 1LU /* there should be some warning here */ }; -- 2.39.2