From patchwork Sun Oct 22 07:46:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 156521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp645524vqx; Sun, 22 Oct 2023 00:46:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpyjYmvaQ9qcKieycXh7Yp/flatRM2AbLgy2b6Tl0Yr61AVLFLJbJL1OCkqqUfv8+3Y8mq X-Received: by 2002:a05:6214:1bc5:b0:66d:6544:8eae with SMTP id m5-20020a0562141bc500b0066d65448eaemr6768315qvc.34.1697960810936; Sun, 22 Oct 2023 00:46:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697960810; cv=pass; d=google.com; s=arc-20160816; b=EAC+FgQFd15NY0foSlP1zCSuzNoOYNmXV9oGiyCOpn3ctUdRDGr6ndafxUXFru9csA CNS9/LehAGssPb1jnLNtRCuetZmqYvcT9/cIbbpubQUEZ3on8rMPiwbY+jT0JruOJawq qs7mb69/9reMt7qKDmN9pJFjFdAUZpMkDQuxA6GybA/AKpjzPthld3gHAdwYVvAIAjdN O1+D0zp/gUN4sIHJDmpiVlCTCGmI+UF7mXWVK82o/Z3X4vsCtNW5QstKSTQvPbaqSRN8 KCASXGx3W9mPby/qbVf/At3AfXVNx5UbsXj+fm144ndEm6+qqMFPyxzcfzLY/oR2YbJv q/BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=7xM/OTLxzLSOg4No9+b2DkH9WvNKPM3mhRHPK4kRBHw=; fh=Hz/QWAL2vMAbrm3W16QrnQrLktFWGNewssxaKtdN1w4=; b=wh6kfU2L+3KPxH/+wa7vM0o3fmxB/yWdp4TkF9PxVe8Wi33nmTmdeZKDTmcYzAdcRe eEiOAlYu1ib2J0jt/ajOaC8nQAodBxrdxnbLL9K3MuzKfqjoYjFOvxF9kM05movd+CdD vc9cLOZCvA9EIiLBIC/d49HnyX/DisP29Ku1ef5t73vTXTW8IwYQb/3+OxBBOQd2z2rv tKYliXcVpA1vMg19QRtYlqg+nCMdemMM5RkEeaTcEGUc1uENNvCQzkPFMS2aT67MeS4O Lp/wMnsAO4iRk8cWo3508f5T1cYhdkEs/Z7V71Lo4V+0iP0fpWJ4TetV1bI7fKo5SPuC m6Yg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=emBNIecB; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l1-20020ad44241000000b0066d060465dasi3797981qvq.481.2023.10.22.00.46.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 00:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=emBNIecB; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B182F385840A for ; Sun, 22 Oct 2023 07:46:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 473E03858D3C for ; Sun, 22 Oct 2023 07:46:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 473E03858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 473E03858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697960788; cv=none; b=n4zACCFLfopEglArkWoSE/uf+nRY2HGC/t5ARJi4gmSXnca24y328REhR+yVJ4MgTBw7q/n1457KeaATi/WpEpa2GX0Ycz2nJl3P0oZz9hJKfYuksI1Kg8v3m7BVbfvMComHcQF1akbgvLEnd4TI1S5MkFR94PfL1yJzTIEmSh4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697960788; c=relaxed/simple; bh=AaOZhZAMIY3hYls3s3byrAGkrtZdCiSsyn3T6FN1PPE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NrgbvIWlWxC3Zdr21/1KWGDCI/0hB8ozVPC5duk+LWurO4w3SbUigiZs+PLMAQ56n64YUkdKX4yLdf9D/71agrAPIsLO3W8aJBOaxwtLpaYzyxVRnjynF+mVbGPTaBu7xx93gm4/RhI+EXpkoqnRt80zqXYtE8LdTP+qWd6VWzo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697960786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=7xM/OTLxzLSOg4No9+b2DkH9WvNKPM3mhRHPK4kRBHw=; b=emBNIecB7Vta39seuTjWEnYNWWci7RZKmRglYTITyGAPG0D4lu16L6hsP+8f8fxEZpxiV0 KESKlT75WteUGyIjKgv5DxoITYkbSvB+xVe53z7CWuTAyqRXuLzSeZPBlPLgSJb4Drh7jc dJdcW+v8rxhjFJH3wzEp39IzyC3chYQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-663-VrqT7DXuNgCWVg-iNILvag-1; Sun, 22 Oct 2023 03:46:25 -0400 X-MC-Unique: VrqT7DXuNgCWVg-iNILvag-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E56C9886496 for ; Sun, 22 Oct 2023 07:46:24 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1ABBC2026D4C; Sun, 22 Oct 2023 07:46:23 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Cc: Jakub Jelinek Subject: [PATCH] gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement Date: Sun, 22 Oct 2023 09:46:22 +0200 Message-ID: <874jijje0h.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780440955316610417 X-GMAIL-MSGID: 1780440955316610417 The main_test function returns void, so return with an expression is a constraint violation. The test case still fails with this change applied before the fix for PR 93262 in r14-4813. gcc/testsuite/ * gcc.c-torture/execute/builtins/pr93262-chk.c (main_test): Remove unnecessary return statement. --- gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c b/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c index 66d86b44b58..e55868623e9 100644 --- a/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c @@ -51,5 +51,4 @@ main_test (void) } if (chk_calls != 2) abort (); - return 0; }