From patchwork Fri Oct 19 10:18:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Hayward X-Patchwork-Id: 29806 Received: (qmail 66336 invoked by alias); 19 Oct 2018 10:18:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 66323 invoked by uid 89); 19 Oct 2018 10:18:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1106 X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com Received: from mail-eopbgr40071.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.71) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Oct 2018 10:18:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o4lvEvWM0aZMGAROohWq613fbqCFMbzEAy4YCarp1cQ=; b=RgkymDXWLnJN39fL6byK7WayBTt1nwBCsNdba/GgBDH9CTdLTuItHXpWz85cHNBSDBKGRP2c9jjmu8whprkB/U0NT56BSsuw7IVxPkb+Oz+39NnNOOQgW8G79RmTUTW1STD7IAnPb6GRQzKuVKLCd/d1fGcgOVuR2VtnaJr6s2I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; Received: from C02TF0U7HF1T.manchester.arm.com (217.140.106.32) by VI1PR0802MB2144.eurprd08.prod.outlook.com (2603:10a6:800:9b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Fri, 19 Oct 2018 10:18:49 +0000 From: Alan Hayward To: gdb-patches@sourceware.org Cc: nd@arm.com, Alan Hayward Subject: [PUSHED/OBV][PATCH] Testsuite: vla-optimized-out.exp is too pessimistic Date: Fri, 19 Oct 2018 11:18:41 +0100 Message-Id: <20181019101841.31165-1-alan.hayward@arm.com> MIME-Version: 1.0 Return-Path: alan.hayward@arm.com Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-IsSubscribed: yes On aarch64 (and possibly other ports), for O3 the sizeof "a" can still be shown. 2018-10-19 Alan Hayward * gdb.base/vla-optimized-out.exp: Allow either optimized out or 6. --- gdb/testsuite/gdb.base/vla-optimized-out.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/vla-optimized-out.exp b/gdb/testsuite/gdb.base/vla-optimized-out.exp index 88c6fac9b9..dd04a006e0 100644 --- a/gdb/testsuite/gdb.base/vla-optimized-out.exp +++ b/gdb/testsuite/gdb.base/vla-optimized-out.exp @@ -70,10 +70,10 @@ proc vla_optimized_out {exe_suffix options} { foreach {test_prefix options} \ { "o1" {{debug optimize=-O1 additional_flags=-DNOCLONE} "6"} \ - "o3" {{debug optimize=-O3} ""} \ + "o3" {{debug optimize=-O3} "|6"} \ "o3_strict" {{debug optimize=-O3 \ additional_flags=-gstrict-dwarf} \ - ""}} { + "|6"}} { with_test_prefix $test_prefix { vla_optimized_out $test_prefix $options }