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: 691706 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3tBpfD4cYHz9t26 for ; Mon, 7 Nov 2016 08:30:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="eNFlANdJ"; dkim-atps=neutral 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=mo3cP7Iny2yT/dPiXw4ciPP7iupHzlcjqiSa/TMy5SM2Y0eLzp 3djuS9Kpkcs/zEOwW7dXJ3KXtRREdt3WbbWrTibf5bWGm2ZiXqNNBelAYwg7W1yW vySjcnQ+Ua4bTZKZTxegcoD27ShK0UdYwj27Xx9ejx/057ak+Tw/3iyxc= 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=eNFlANdJOICYz5hKetCR /kGtPDLwik0kj146k7U/0IazwdQTeL0Gz+67A/648Bf9GGgx8JCXeYTfzo4iDGcJ Vy2Epf9YAGqBR1ykF31WJII9A90uXWUIaZNtuCD1+7dHNL+tpW2ETjziGlfM+YqO E5BbJ48Wa1aDLbVKTXtjDDA= 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; }