From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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:00 -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-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-SW-Source: 2019-05/txt/msg00754.txt.bz2 Pass the `ada' option to DejaGNU's `target_compile' procedure, which by=20 default calls `default_target_compile', so that it arranges for an Ada=20 compilation rather the default of C. We set the compiler to `gnatmake'=20 manually here, so that part of the logic in `default_target_compile' is=20 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=20 `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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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=3D$TOOL_OPTIONS" $options] } =20 + set options [concat "{ada}" $options] + return [target_compile $source $dest $type $options] } =20