From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR06-DB8-obe.outbound.protection.outlook.com (mail-db8eur06olkn2014.outbound.protection.outlook.com [40.92.51.14]) by sourceware.org (Postfix) with ESMTPS id C6E823982023 for ; Mon, 26 Jul 2021 16:45:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C6E823982023 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hotmail.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XI0VfEjcdp/O9/MWu/Er19uPHbasuDDTP5acttYJjqD7AtycUEWzlOd49hP08Et8HL8i/EJXqPvZnhU7nujOZObI4ly0O0wH514i2QzZJLupexpdJeYUMMuJWbGUWaRDCNZgNbTG3AKj6cOAT8bYYQeOp5kPygSK7Ie0o/1F4rcyuXDdzGcXErn2PjEXEaYen13zXrAMS3RVhX1a+WdmmckYtLVeb9HK59UZ6X0fwxtz9YTNAFHGp5TFyB0F2A9jxu0Ec5UauF1Rj58AnkKAH9LhBot501uPR4VRBA+fABXQpsekpPaTym5AQ+1fo8lxmgWkJ9kIg2NytjzQ1m907A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CYugP/5ADXrJ8jxF4jla9qCNGzdW3twyvbMgSRu8T3Y=; b=nsRKDYTTiq2+UYSsQ2y4FzpU/lHCVI3TvFOOFSAPWdsAj7ZXxvAUIW2OPXFDJu1cgICoewA7lgympfwrgSS0N+ZGBBtXJSC8P7DVsjdaG82a9tBWuaDCHikSmybzkcUkuclmImM6gRLxp/vXmQPw+PhwJQ1qoOdvC61pzKi+rhrUpNvus4PftIDsBhJCAsKTiTr5puEzeEtdlrx6rMWBmSNIM1lx383I7KA5DRPNJIpOsroBP0W1oTmtlX9NmpJd1Hdkig5My1YpT3BuUs1THe34QRW7MNZUjXZ17xXxOG9odnhx6pjrmKMiQbo5PbEPIdBYAdjLym7DCJ3/25MwLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DB8EUR06FT028.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::44) by DB8EUR06HT145.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24; Mon, 26 Jul 2021 16:45:47 +0000 Received: from AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM (2a01:111:e400:fc35::40) by DB8EUR06FT028.mail.protection.outlook.com (2a01:111:e400:fc35::253) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Mon, 26 Jul 2021 16:45:47 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:0B9B56F9BA61A47B6C9AABFDF0D0C11A31D94399952C3B2D7C633A2B09BAB52F; UpperCasedChecksum:FC9253BF412C160CB3AF9CAE32C552FBC65E11702C63AF99EB3F9C5441A1A82C; SizeAsReceived:7800; Count:45 Received: from AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM ([fe80::3d30:d151:570a:8a16]) by AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM ([fe80::3d30:d151:570a:8a16%8]) with mapi id 15.20.4352.031; Mon, 26 Jul 2021 16:45:47 +0000 To: "gcc-patches@gcc.gnu.org" , Richard Biener , Eric Botcazou , Arnaud Charlet From: Bernd Edlinger Subject: [PATCH 2/2] Ada: Remove debug line number for DECL_IGNORED_P functions Message-ID: Date: Mon, 26 Jul 2021 18:45:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TMN: [3R084w9F0utIkEEErZ0dQqC8ATQBOJaT] X-ClientProxiedBy: AM0PR02CA0007.eurprd02.prod.outlook.com (2603:10a6:208:3e::20) To AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:364::23) X-Microsoft-Original-Message-ID: <2bc51121-1970-5f98-07c3-5fb69c473932@hotmail.de> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (88.76.118.196) by AM0PR02CA0007.eurprd02.prod.outlook.com (2603:10a6:208:3e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Mon, 26 Jul 2021 16:45:47 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 047e21a9-ba27-4e81-8140-08d95054d181 X-MS-TrafficTypeDiagnostic: DB8EUR06HT145: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TDgjSqof34TUPpdi3sKekywz6SzCwhEJKPE3jyoFnsSLKSFKMl+W1U/9xEz+SEYiZV5KHfJzYETnVRIGJsprJKiuhzdCtpp/cqSiZf2Kjf+buXsQWnYRUE8MVPfnAUlbcadKkhmQ0OyxxrawHTRV7eZtnJ4n2wW0u36B+29TLw5NmgD0QXZIuboIo4tVPjDZtH7QytMW2jFUKyxsTbHwtoybLmYOLwtaFxDW+Q/OZVy8pTzVj41MT+uTly8ekWKDA1WWhGRTMCxV1xJKTgcQ65XPiYtE8/wldqw/oixSHdUeMJzGYZZL474ctATu25KgLvocaeLxbq5kWrowuV4c9hIZjeCZgL/K3NtdqbjRPnRG4Ug27/JSdmNKGSmErH8gU8fSsiTOtzwxI+1y8Gu2ykHqFAJ4e5gGB3OtStzo5L+BKq2n03JIelK2saV93BPd X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tF8uTNlQZgtGQFjRKOzmI5BsQ67a5xvIfG1k+X6KtIO6wDCg6qw15Dl7MR54VV8Pag1C99l2cQxN3GD6NAhut+UFWGKleKAOUCMRMw7PB4lz/N9Mec0PfS9vXJU8YgJxCrOX7bRI0hT6cy7GAIp2Rg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 047e21a9-ba27-4e81-8140-08d95054d181 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2021 16:45:47.4624 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR06FT028.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT145 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, FORGED_MUA_MOZILLA, FREEMAIL_FROM, GIT_PATCH_0, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2021 16:45:50 -0000 It was pointed out in PR101598 to be inappropriate, that ignored Ada decls receive the source line number which was recorded in the function decl's DECL_SOURCE_LOCATION. Therefore set all front-end-generated Ada decls with DECL_IGNORED_P to UNKNOWN_LOCATION. 2021-07-24 Bernd Edlinger PR debug/101598 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the DECL_SOURCE_LOCATION of DECL_IGNORED_P gnu_subprog_decl to UNKNOWN_LOCATION. --- gcc/ada/gcc-interface/trans.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index f61183d..3df56aa 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -3885,7 +3885,9 @@ Subprogram_Body_to_gnu (Node_Id gnat_node) } /* Set the line number in the decl to correspond to that of the body. */ - if (!Sloc_to_locus (Sloc (gnat_node), &locus, false, gnu_subprog_decl)) + if (DECL_IGNORED_P (gnu_subprog_decl)) + locus = UNKNOWN_LOCATION; + else if (!Sloc_to_locus (Sloc (gnat_node), &locus, false, gnu_subprog_decl)) locus = input_location; DECL_SOURCE_LOCATION (gnu_subprog_decl) = locus; -- 1.9.1