From patchwork Sat Jan 24 20:13:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 4797 Received: (qmail 2668 invoked by alias); 24 Jan 2015 20:14:13 -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 2644 invoked by uid 89); 24 Jan 2015 20:14:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f48.google.com Received: from mail-pa0-f48.google.com (HELO mail-pa0-f48.google.com) (209.85.220.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 24 Jan 2015 20:14:08 +0000 Received: by mail-pa0-f48.google.com with SMTP id ey11so3879090pad.7 for ; Sat, 24 Jan 2015 12:14:07 -0800 (PST) X-Received: by 10.67.22.162 with SMTP id ht2mr22157140pad.49.1422130447245; Sat, 24 Jan 2015 12:14:07 -0800 (PST) Received: from seba.sebabeach.org.gmail.com (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id sl5sm5551162pbc.45.2015.01.24.12.14.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Jan 2015 12:14:06 -0800 (PST) From: Doug Evans To: brobecker@adacore.com, gdb-patches@sourceware.org Subject: [PATCH] Fix compilation of dyn_arrayidx ada testcase Date: Sat, 24 Jan 2015 12:13:19 -0800 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. I was looking into this testcase as boilerplate for another test I want to write for a cleanup patch, and noticed it doesn't compile. gcc -c -m64 -g -lm -I- -gnatA /hack/build/vptr-cleanup-1/vptr-cleanup-1/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb foo.adb:23:13: iterator is an Ada 2012 feature 2015-01-24 Doug Evans * gdb.ada/dyn_arrayidx.exp: Add additional_flags=-gnat12. diff --git a/gdb/testsuite/gdb.ada/dyn_arrayidx.exp b/gdb/testsuite/gdb.ada/dyn_arrayidx.exp index 25351db..06702b8 100644 --- a/gdb/testsuite/gdb.ada/dyn_arrayidx.exp +++ b/gdb/testsuite/gdb.ada/dyn_arrayidx.exp @@ -19,7 +19,7 @@ if { [skip_ada_tests] } { return -1 } standard_ada_testfile foo -if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} { +if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug additional_flags=-gnat12}] != ""} { return -1 }