From patchwork Tue May 14 21:48:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 1099756 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-500701-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="iILfPstw"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="P0Jn6mCN"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="jfB3Ip/8"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 453WXk1NG9z9sB8 for ; Wed, 15 May 2019 07:48:52 +1000 (AEST) 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:references:in-reply-to :content-type:content-id:content-transfer-encoding:mime-version; q=dns; s=default; b=yOCE7mWH+5sII+RQGy+Xf3Iu0lNaNABtpdsnydm7gwD xFLZAN6NR1CX9nNxFN1cjIVVT2KJB8tE6FQ/UONUkPr6jIwoJAVZAv7lynOGWG8Z muoI2f+T+zHlSYqrPTET8G/GILioMTfVSbsfGy9RmoXxNXHmVEMtx4kSu3iLX3VE = 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:references:in-reply-to :content-type:content-id:content-transfer-encoding:mime-version; s=default; bh=xJhTgUnTHpzTsPqnSiDaR7uF9zY=; b=iILfPstw+KjJwP9ZC rKfRSkZZJMDzvMvTYEJKr7x9m1EInstuz+QT86Aldtrq/vq6ewfHzLLmuQEH6MLF DxXh3uI9vKCbgq6rEAfrBxZ3aZS0K2zC4U7oRzKaFX80fe4fZ+RNN/3BlrLjIreo U9tkBL8u8dYYWEaRYZ/FZFAfLo= Received: (qmail 72917 invoked by alias); 14 May 2019 21:48:45 -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 72729 invoked by uid 89); 14 May 2019 21:48:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=sk:gcc-tes, arranges X-HELO: esa3.hgst.iphmx.com Received: from esa3.hgst.iphmx.com (HELO esa3.hgst.iphmx.com) (216.71.153.141) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 May 2019 21:48:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1557870504; x=1589406504; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=+ItcCxaPN54uENWK28ZU5FWrJnq7hJ3e11ntdF/lruk=; b=P0Jn6mCNXPQi//Ho4365cl9FYrUtegcl/KAUP5jXRwcZq8ZXxoXXRVLQ zy+s7W6N6yBVHAoTNaBVhRX0uVjpUoQ8hGhOVjNoYV033qHLX2rzkav6s 8j1nndyxTS7Lw8y3ddpqRH3RVIiZOuV95KCnRgXUBoVqInB0C6HRcAsep UoUIm6Avvo+p2jRFhhQL8QFg9GddThjU1N9t8DPwEky6RBFf/DOotD7bz zuUkvLbES2TttcddRtXFsLFwr3aA6kDjsijejXvhRfjhH0IGBhIEX1NQU ePBxBjL5RMWEj4C6J+aUVIaS3Ki6B1uVzDBMz+g5cLG1OO3anSvUEsdPJ g==; Received: from mail-bn3nam01lp2055.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([104.47.33.55]) by ob1.hgst.iphmx.com with ESMTP; 15 May 2019 05:48:22 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9X8NW7guo4cEqljPaqk/o96YznJLLiLTAN7tPxbhAng=; b=jfB3Ip/8J2dO4QNxjwEE3+rqt1eR4SXTBW87z3GmHiIYvXFVhBAdseIr2KCY7M2abQgE987RJUmQ/fO/KrDQuGxiM9Hrzpf15qV3cVTw3Z8nK4toH7OAWzvbrUrJYFUuMpQcgQcq2dwlF9FdkVAYU7u/Srd7am+mQ2orMOPCLoo= Received: from BYAPR04MB6262.namprd04.prod.outlook.com (20.178.235.160) by BYAPR04MB4856.namprd04.prod.outlook.com (52.135.232.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Tue, 14 May 2019 21:48:20 +0000 Received: from BYAPR04MB6262.namprd04.prod.outlook.com ([fe80::31ee:c691:33ca:b46b]) by BYAPR04MB6262.namprd04.prod.outlook.com ([fe80::31ee:c691:33ca:b46b%3]) with mapi id 15.20.1878.024; Tue, 14 May 2019 21:48:20 +0000 From: "Maciej W. Rozycki" To: "gcc-patches@gcc.gnu.org" , "dejagnu@gnu.org" CC: Arnaud Charlet , Eric Botcazou , Pierre-Marie de Rodat Subject: [PATCH 2/3][GCC] GNAT/testsuite: Pass the `ada' option to target compilation Date: Tue, 14 May 2019 21:48:20 +0000 Message-ID: References: In-Reply-To: authentication-results: spf=none (sender IP is ) smtp.mailfrom=macro@wdc.com; wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 Content-ID: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED Pass the `ada' option to DejaGNU's `target_compile' procedure, which by default calls `default_target_compile', so that it arranges for an Ada compilation rather the default of C. We set the compiler to `gnatmake' manually here, so that part of the logic in `default_target_compile' is not used, but it affects other settings, such as the use of `adaflags'. gcc/testsuite/ * lib/gnat.exp (gnat_target_compile): Pass the `ada' option to `target_compile'. --- Hi, Unfortunately I have exhausted the limit of changes I can make to GCC without my WDC copyright paperwork sorted with FSF. OK to apply once that has been completed? Maciej --- gcc/testsuite/lib/gnat.exp | 2 ++ 1 file changed, 2 insertions(+) gcc-test-gnat-options-ada.diff Index: gcc/gcc/testsuite/lib/gnat.exp =================================================================== --- gcc.orig/gcc/testsuite/lib/gnat.exp +++ gcc/gcc/testsuite/lib/gnat.exp @@ -167,6 +167,8 @@ proc gnat_target_compile { source dest t set options [concat "additional_flags=$TOOL_OPTIONS" $options] } + set options [concat "{ada}" $options] + return [target_compile $source $dest $type $options] }