From patchwork Mon Dec 7 15:31:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Edlinger X-Patchwork-Id: 1412101 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hotmail.de Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CqS2w74kPz9sPB for ; Tue, 8 Dec 2020 02:31:36 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2D8C43948A7B; Mon, 7 Dec 2020 15:31:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-oln040092075081.outbound.protection.outlook.com [40.92.75.81]) by sourceware.org (Postfix) with ESMTPS id 51B6C3894C35 for ; Mon, 7 Dec 2020 15:31:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 51B6C3894C35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bernd.edlinger@hotmail.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kfZmujQW5l+uSGed6O6fgNm8EvgZN1Waqa6oSY92v3gEZJOLgcD5v5holVMb2PdVjtOOTR8zzEV/UDBYfZPfYLE7+xmOAxlC56Oipia/F+jOITynwo5CS3BzxskqLvo1Tr3luzmHRGEYEgPonbKEOp+KQi8kOHuD6tJctIkEgoz9bEANp2eXZi0lCO8U8QLeUNY1wX77RW+IdEhQtseJhPWgJpYQrb094YVwvT5yNBzUmwrUekI+wKSj95Es6W9RkIaiZgPpOB9MvrtDfFE07QgaPFxRH2Nc4rF5TILCGVwslNAegidd2F49Pfl5YPP/xmy9zO34dwUQAHpLdhyjnw== 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=kNo6Akpa14SwCxwRL+78RWZx8IiizhFzLEDu0wLNqJI=; b=dD/9DwNBeLnH4OBj6edxewI6f4IE4Kluyyr17Ufq8TAREjarNOSBFljoHyBQYiWGYNDUoGUxupk0T15YA50CHKLbNbFkFtKvyGoOmlwShT73lA2o2uawcN5Ot6MkMRYjFKLDV/SbsPmW9Sa3Rw/Q6RO3wpDyT9+0bXxpgRIAYFhMtxD48grhgCANHPHMo1PXYl9/15MIrgDCIOILiMab/mLcVU2760YLyLha63KlK+r6lnspk5ZgvB5SCxkGJo++9z5D1pQkLhYzn21LJcmMOxEgXt3l9lPw5eXZxIWvVCx5+VhenmpecQ3xfOMi3vLU8tYS5DfJzbInb8CGugLPNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DB3EUR04FT046.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::44) by DB3EUR04HT230.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Mon, 7 Dec 2020 15:31:13 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (2a01:111:e400:7e0c::49) by DB3EUR04FT046.mail.protection.outlook.com (2a01:111:e400:7e0c::292) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Mon, 7 Dec 2020 15:31:13 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C688A499035F7A33D6224106A2228B46028EE93D0BB3B2AD5AF45435E85C2191; UpperCasedChecksum:D8EEC45B81096243A0031B79F190AFE8BA9F787DAC8E56C12877DDBF6D9FD181; SizeAsReceived:8309; Count:48 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::184e:5e8c:db8f:a596]) by AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::184e:5e8c:db8f:a596%5]) with mapi id 15.20.3632.023; Mon, 7 Dec 2020 15:31:13 +0000 Subject: [COMMITTED] Fix location info in ipa_param_body_adjustments::modify_call_stmt To: Richard Biener References: From: Bernd Edlinger Message-ID: Date: Mon, 7 Dec 2020 16:31:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: Content-Language: en-US X-TMN: [Bu98jj+3SmWL3kaGAszBBJelTQeJKNHl] X-ClientProxiedBy: AM0PR06CA0139.eurprd06.prod.outlook.com (2603:10a6:208:ab::44) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (84.57.57.184) by AM0PR06CA0139.eurprd06.prod.outlook.com (2603:10a6:208:ab::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Mon, 7 Dec 2020 15:31:12 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 34fb53e1-9a2f-411b-9a2d-08d89ac52138 X-MS-TrafficTypeDiagnostic: DB3EUR04HT230: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gWKdA0Nz04N882yx5nIdh1Ri0PwEsOATdEGeGL42ojmjQnB7bhF/11jhbYtGT9A1jIftk42kqmuEbvm5RuBtZr23CpjvJvCyrD8VSP5GwXyagY4xYfkRS97nvsQI5p+BwBpI6jHiZkWX5UZBFoqjl6XVT7yeRHNfKNFByabMJwNPNZ+fXvhvc3gZWRimKws8l5cmNH3qrFmdPJvJLrGGhQ== X-MS-Exchange-AntiSpam-MessageData: yhRmVx7RbU+5IowtVg/y/iJxGkVvN1Qf9eeAz10vdgOW2BLbRUPYS0tRSLzXCm8Ecmew5rJ3MKT7HdbG6Hro5TnzFiebmgQplCcwD6ksth4Ty1OJeqst534eg+prg+X2rutJzMmhBZ6lZTUiX5jZBQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34fb53e1-9a2f-411b-9a2d-08d89ac52138 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2020 15:31:13.5903 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT046.eop-eur04.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: DB3EUR04HT230 X-Spam-Status: No, score=-7.4 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, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: , Cc: "gcc-patches@gcc.gnu.org" Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" On 12/7/20 11:50 AM, Richard Biener wrote: > > The ipa-param-manipulation.c hunk is OK, please commit separately. > Okay, this is the part I just committed. commit 92e563d91b012f09da8fd152e934f6b964ae49cb Author: Bernd Edlinger Date: Mon Dec 7 16:00:00 2020 +0100 Fix location info in ipa_param_body_adjustments::modify_call_stmt Copy the location info from the passed in call stmt to the newly built gimple call stmt. 2020-12-07 Bernd Edlinger * ipa-param-manipulation.c (ipa_param_body_adjustments::modify_call_stmt): Set location info. diff --git a/gcc/ipa-param-manipulation.c b/gcc/ipa-param-manipulation.c index 2bbea21..9ab4a10 100644 --- a/gcc/ipa-param-manipulation.c +++ b/gcc/ipa-param-manipulation.c @@ -1681,6 +1681,8 @@ ipa_param_body_adjustments::modify_call_stmt (gcall **stmt_p) } } gcall *new_stmt = gimple_build_call_vec (gimple_call_fn (stmt), vargs); + if (gimple_has_location (stmt)) + gimple_set_location (new_stmt, gimple_location (stmt)); gimple_call_set_chain (new_stmt, gimple_call_chain (stmt)); gimple_call_copy_flags (new_stmt, stmt); if (tree lhs = gimple_call_lhs (stmt))