From patchwork Sun Nov 6 21:30:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Koenig X-Patchwork-Id: 80974 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp727896qge; Sun, 6 Nov 2016 13:31:03 -0800 (PST) X-Received: by 10.99.168.78 with SMTP id i14mr5951515pgp.162.1478467863467; Sun, 06 Nov 2016 13:31:03 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id n5si28147551pgh.23.2016.11.06.13.31.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 13:31:03 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-440560-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-440560-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-440560-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=oaqfM9b5MbancQPz8M+LB0tkBsUzrvmyYtGRHrRrVH5F2uS1Pk x83O2aCPn2sULdS7mu8d3v40xLB6jsoOK7IcYSDTWCxViFrSBKRXkzOZ05SyMNiR l3j3uvaxk4gTibsOtDM/W1w6KSGbMK/rgSXHEAxedBnlWrPpDdrRHPv58= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=GBsOMWW4X8F0twcG/OaGLhvDjII=; b=iNW07h06Se5wxpLQnJkH 12feM6RLvdxNhtRt/M07/uXxtJk+D17AOAZjVYiXRDTrIZprlPjG22KDBku58tjR l9u6UquohGYxKuIuRXP4IjG7muLOPIpZZDDw9amoHI5PEVv7JPizP65OKB6KY2TL SosJ6eR1oKnCI6/FwJO0giQ= Received: (qmail 30986 invoked by alias); 6 Nov 2016 21:30: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 30958 invoked by uid 89); 6 Nov 2016 21:30:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=sk:gfc_get, UD:value.function.isym, sk:value.f, UD:function.isym X-Spam-User: qpsmtpd, 2 recipients X-HELO: cc-smtpout3.netcologne.de Received: from cc-smtpout3.netcologne.de (HELO cc-smtpout3.netcologne.de) (89.1.8.213) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Nov 2016 21:30:33 +0000 Received: from cc-smtpin3.netcologne.de (cc-smtpin3.netcologne.de [89.1.8.203]) by cc-smtpout3.netcologne.de (Postfix) with ESMTP id 93BEA12742; Sun, 6 Nov 2016 22:30:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin3.netcologne.de (Postfix) with ESMTP id 90DF211D85; Sun, 6 Nov 2016 22:30:30 +0100 (CET) Received: from [78.35.164.158] (helo=cc-smtpin3.netcologne.de) by localhost with ESMTP (eXpurgate 4.1.9) (envelope-from ) id 581fa0f6-0b77-7f0000012729-7f000001cfd6-1 for ; Sun, 06 Nov 2016 22:30:30 +0100 Received: from [192.168.178.20] (xdsl-78-35-164-158.netcologne.de [78.35.164.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by cc-smtpin3.netcologne.de (Postfix) with ESMTPSA; Sun, 6 Nov 2016 22:30:29 +0100 (CET) To: "fortran@gcc.gnu.org" , gcc-patches From: Thomas Koenig Subject: [patch, fortran, committed] Fill in location in build_loc_call Message-ID: Date: Sun, 6 Nov 2016 22:30:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Hello world, I have committed the attached patch as obvious and simple. No test case because I don't have one :-) I am planning some more work on the PR tracking these issues, PR 78226. Regards Thomas 2016-11-06 Thomas Koenig PR fortran/78226 resolve.c (build_loc_call): Add location to return value. Index: resolve.c =================================================================== --- resolve.c (Revision 241747) +++ resolve.c (Arbeitskopie) @@ -8496,6 +8496,7 @@ build_loc_call (gfc_expr *sym_expr) loc_call->value.function.isym = gfc_intrinsic_function_by_id (GFC_ISYM_LOC); loc_call->value.function.actual = gfc_get_actual_arglist (); loc_call->value.function.actual->expr = sym_expr; + loc_call->where = sym_expr->where; return loc_call; }