* [patch, fortran, committed] replace stdout with dumpfile in a few places
@ 2017-05-24 19:03 Thomas Koenig
0 siblings, 0 replies; only message in thread
From: Thomas Koenig @ 2017-05-24 19:03 UTC (permalink / raw)
To: fortran, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 233 bytes --]
Hello world,
I just committed the attached patch as obvious.
Regards
Thomas
2017-05-24 Thomas Koenig <tkoenig@gcc.gnu.org>
* dump-parse-tree.c (show_expr): Replace stdout
with dumpfile for showing values.
[-- Attachment #2: p-dump.diff --]
[-- Type: text/x-patch, Size: 1103 bytes --]
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-24 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 19:03 [patch, fortran, committed] replace stdout with dumpfile in a few places Thomas Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).