From patchwork Mon Oct 17 19:12:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 77825 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp537676qge; Mon, 17 Oct 2016 12:13:02 -0700 (PDT) X-Received: by 10.98.142.26 with SMTP id k26mr39836272pfe.26.1476731582661; Mon, 17 Oct 2016 12:13:02 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id s126si28617798pgc.37.2016.10.17.12.13.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2016 12:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-438827-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-438827-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-438827-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=d/+zjFICs23N UuOoJI+JI+ozQq96o6j+NWuzJpgj8ykWM2SNPWGPSIsTefqWb0/ZxZLmoEWA4P+8 aA4tazDt/SF24GV9dEp1oaGL0IFUWT3OAKv2HolS757w4r+bgTQWx2QWA285UEYa zFRbUaR0nmAWY0coIZJzaGHb9bN0h4Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=+264uIfcYLSeWR1u3z mTAN260sM=; b=DiVRLqiYJPfORNpvazYu+yUHOBotzShAGNp1EgDuMD4YiFBiWZ JzfASxd6/ddvM6MEC9Fb+UV3tuSTPccxyuRvmwHLH2Dp81nspo19UjfVv8YB+her cUuRUF5oJgvlVkpNwQeeAJkyWD38puVM00YBnq4cc/tjOdTHTQNZw/quk= Received: (qmail 41963 invoked by alias); 17 Oct 2016 19:12:44 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 41844 invoked by uid 89); 17 Oct 2016 19:12:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=va_start, Hx-languages-length:1028 X-HELO: mail-vk0-f51.google.com Received: from mail-vk0-f51.google.com (HELO mail-vk0-f51.google.com) (209.85.213.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Oct 2016 19:12:33 +0000 Received: by mail-vk0-f51.google.com with SMTP id 83so165580201vkd.0 for ; Mon, 17 Oct 2016 12:12:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wdoUFG0EA7ZWkmp7cYvHahWsbZsw6D7l5n6cAPVvxEM=; b=QxGPj4DrawCT49k1z1yZ/+DEr+IuI27RhFF/wouZ+ON2TlUkwVQHs27lPKs68TuiN4 GSR1mGD2twoDuyptEbWyALRTCUFDNogtf5HMLYjx1pmLAPLvzQqOlUBKJopHGSd8rZdy RHFnKRJ3d1OR6XBe13rX5G/yUgeg+HfJaL9p6hXhNZbbZmbg5ApDiZNjTRSIlbdhxrQg AxXKeJ7s8+bLjt5txg+G1yA6uf7f4KQkUgvkYrepYRpjKUJpDkSd9bssGBsE0Ymq7qqk 6O+4rszS4rngfrg4dgObhj2oloAOqIceVCRJVDejCaQ8pg7CPz/AEnrGNVLFSzs3YZA6 G+Pg== X-Gm-Message-State: AA6/9Rncx70G+T24/qgsokvt3LU0BmdgtiueFPYiB5gaut74jSAYLGaLaIuPLmRKsXbbRhgH X-Received: by 10.31.223.1 with SMTP id w1mr18957335vkg.34.1476731551820; Mon, 17 Oct 2016 12:12:31 -0700 (PDT) Received: from localhost.localdomain ([179.159.181.159]) by smtp.googlemail.com with ESMTPSA id b186sm12285184vkf.15.2016.10.17.12.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 12:12:31 -0700 (PDT) From: Adhemerval Zanella X-Google-Original-From: Adhemerval Zanella To: gcc-patches@gcc.gnu.org Cc: kyrylo.tkachov@foss.arm.com, marcus.shawcroft@arm.com, Richard.Earnshaw@arm.com, james.greenhalgh@arm.com Subject: [PATCH 1/2] Fix GCC split-stack variadic argument tests Date: Mon, 17 Oct 2016 17:12:21 -0200 Message-Id: <1476731542-15838-1-git-send-email-adhemerval.zanella@linaro.com> X-IsSubscribed: yes This test adds the expect va_end after va_start on split-stack tests. gcc/ChangeLog: * gcc/testsuite/gcc.dg/split-3.c (down): Call va_end after va_start. * gcc/testsuite/gcc.dg/split-6.c (down): Likewise. --- gcc/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/split-3.c | 1 + gcc/testsuite/gcc.dg/split-6.c | 1 + 3 files changed, 7 insertions(+) -- 2.7.4 diff --git a/gcc/testsuite/gcc.dg/split-3.c b/gcc/testsuite/gcc.dg/split-3.c index 64bbb8c..5ba7616 100644 --- a/gcc/testsuite/gcc.dg/split-3.c +++ b/gcc/testsuite/gcc.dg/split-3.c @@ -40,6 +40,7 @@ down (int i, ...) || va_arg (ap, int) != 9 || va_arg (ap, int) != 10) abort (); + va_end (ap); if (i > 0) { diff --git a/gcc/testsuite/gcc.dg/split-6.c b/gcc/testsuite/gcc.dg/split-6.c index b32cf8d..b3016ba 100644 --- a/gcc/testsuite/gcc.dg/split-6.c +++ b/gcc/testsuite/gcc.dg/split-6.c @@ -37,6 +37,7 @@ down (int i, ...) || va_arg (ap, int) != 9 || va_arg (ap, int) != 10) abort (); + va_end (ap); if (i > 0) {