From patchwork Wed May 24 19:02:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Koenig X-Patchwork-Id: 766622 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 3wY1xR7453z9sNR for ; Thu, 25 May 2017 05:02:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="kMF4XxmT"; 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=a/+rqCuAKZE8rdMBamtCLukRGe+Odf0UTgp+knOI9EmWNSGmhs OtNW/wwmIxuYugM7xA/c6AgWdmGQQEKjxeFcJ5+dHACciMO0xCS3U891LvftKelf ab/UOlgKl4He6RhXnnxeMjogd06Z8Yk23GpCUH9ekg3+AdiaVO+pXy6G8= 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=gshLDi8GyNvq+Dh7SBI/Ia7d4rQ=; b=kMF4XxmT9vyIGU0RsFih LSlBRz3DZUH6F5oW4SUVZFV3cj+V1XZdqy9hU7/KA1y5727L3N6H/t6ofMB4q/lH qzmYqyd/xRgGPq1ClZTOWIF3+s4CrtC8GYyXjmBAWrb+JDS9ObL+cmCqVsIUR5Sk OKdbl3jMFYy/oDxGS000gkw= Received: (qmail 101382 invoked by alias); 24 May 2017 19:02:35 -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 100134 invoked by uid 89); 24 May 2017 19:02:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: cc-smtpout1.netcologne.de Received: from cc-smtpout1.netcologne.de (HELO cc-smtpout1.netcologne.de) (89.1.8.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 May 2017 19:02:33 +0000 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id B415613365; Wed, 24 May 2017 21:02:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin2.netcologne.de (Postfix) with ESMTP id AFE2A11D98; Wed, 24 May 2017 21:02:34 +0200 (CEST) Received: from [78.35.157.135] (helo=cc-smtpin2.netcologne.de) by localhost with ESMTP (eXpurgate 4.1.9) (envelope-from ) id 5925d8ca-022c-7f0000012729-7f000001af5c-1 for ; Wed, 24 May 2017 21:02:34 +0200 Received: from [192.168.178.20] (xdsl-78-35-157-135.netcologne.de [78.35.157.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA; Wed, 24 May 2017 21:02:33 +0200 (CEST) To: "fortran@gcc.gnu.org" , gcc-patches From: Thomas Koenig Subject: [patch, fortran, committed] replace stdout with dumpfile in a few places Message-ID: <9a194f5e-79b6-c68a-51c3-19f7daee53d0@netcologne.de> Date: Wed, 24 May 2017 21:02:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Hello world, I just committed the attached patch as obvious. Regards Thomas 2017-05-24 Thomas Koenig * dump-parse-tree.c (show_expr): Replace stdout with dumpfile for showing values. Index: dump-parse-tree.c =================================================================== --- dump-parse-tree.c (Revision 247809) +++ dump-parse-tree.c (Arbeitskopie) @@ -422,7 +422,7 @@ show_expr (gfc_expr *p) switch (p->ts.type) { case BT_INTEGER: - mpz_out_str (stdout, 10, p->value.integer); + mpz_out_str (dumpfile, 10, p->value.integer); if (p->ts.kind != gfc_default_integer_kind) fprintf (dumpfile, "_%d", p->ts.kind); @@ -436,7 +436,7 @@ show_expr (gfc_expr *p) break; case BT_REAL: - mpfr_out_str (stdout, 10, 0, p->value.real, GFC_RND_MODE); + mpfr_out_str (dumpfile, 10, 0, p->value.real, GFC_RND_MODE); if (p->ts.kind != gfc_default_real_kind) fprintf (dumpfile, "_%d", p->ts.kind); break; @@ -449,7 +449,7 @@ show_expr (gfc_expr *p) case BT_COMPLEX: fputs ("(complex ", dumpfile); - mpfr_out_str (stdout, 10, 0, mpc_realref (p->value.complex), + mpfr_out_str (dumpfile, 10, 0, mpc_realref (p->value.complex), GFC_RND_MODE); if (p->ts.kind != gfc_default_complex_kind) fprintf (dumpfile, "_%d", p->ts.kind);