From patchwork Sun Jun 5 18:53:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Koenig X-Patchwork-Id: 98775 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]) by ozlabs.org (Postfix) with SMTP id 0D446B6FB6 for ; Mon, 6 Jun 2011 04:53:46 +1000 (EST) Received: (qmail 8241 invoked by alias); 5 Jun 2011 18:53:41 -0000 Received: (qmail 8224 invoked by uid 22791); 5 Jun 2011 18:53:41 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cc-smtpout1.netcologne.de (HELO cc-smtpout1.netcologne.de) (89.1.8.211) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 05 Jun 2011 18:53:23 +0000 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id 59F5C127EE; Sun, 5 Jun 2011 20:53:20 +0200 (CEST) Received: from [192.168.0.197] (xdsl-78-35-174-132.netcologne.de [78.35.174.132]) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA id EB4FB11E9C; Sun, 5 Jun 2011 20:53:17 +0200 (CEST) Message-ID: <4DEBD09D.9040405@netcologne.de> Date: Sun, 05 Jun 2011 20:53:17 +0200 From: Thomas Koenig User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 MIME-Version: 1.0 To: Andreas Schmidt CC: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: never ending output from -fdump-fortran-original on ENTRY statement References: <4DC3AB37.6060005@gmx.net> <4DE8B613.60302@gmx.net> In-Reply-To: <4DE8B613.60302@gmx.net> 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 Hi Andreas, I have committed your patch with a slight variation to trunk as obvious after regression-testting. Will commit to 4.6 in a few days. No test case because we can't do test cases with -fdump-fortran-* at the moment. This patch is small enough so it does not need a copyright assignment, but you might want to consider obtaining one just the same. Thanks for working on this! Thomas 2011-06-05 Andreas Schmidt Thomas Koenig * dump-parse-tree.c (show_symbol): Don't dump namespace for ENTRY to avoid infinite recursion. Index: dump-parse-tree.c =================================================================== --- dump-parse-tree.c (Revision 174391) +++ dump-parse-tree.c (Arbeitskopie) @@ -893,7 +893,8 @@ } if (sym->formal_ns && (sym->formal_ns->proc_name != sym) - && sym->attr.proc != PROC_ST_FUNCTION) + && sym->attr.proc != PROC_ST_FUNCTION + && !sym->attr.entry) { show_indent (); fputs ("Formal namespace", dumpfile);