aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2021-09-13 19:49:49 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2021-09-13 19:49:49 +0200
commitb18a97e5dd0935e1c4a626c230f21457d0aad3d5 (patch)
treec1818f41af6fe780deafb6cd6a183f32085fe654 /gcc/dumpfile.c
parente76a53644c9d70e998c0d050e9a456af388c6b61 (diff)
downloadgcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.zip
gcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.tar.gz
gcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.tar.bz2
Merged current trunk to branch.
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 80a65fe..8169daf 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -1,5 +1,5 @@
/* Dump infrastructure for optimizations and intermediate representation.
- Copyright (C) 2012-2020 Free Software Foundation, Inc.
+ Copyright (C) 2012-2021 Free Software Foundation, Inc.
This file is part of GCC.
@@ -2098,14 +2098,14 @@ enable_rtl_dump_file (void)
/* debug_dump_context's ctor. Temporarily override the dump_context
(to forcibly enable output to stderr). */
-debug_dump_context::debug_dump_context ()
+debug_dump_context::debug_dump_context (FILE *f)
: m_context (),
m_saved (&dump_context::get ()),
m_saved_flags (dump_flags),
m_saved_pflags (pflags),
m_saved_file (dump_file)
{
- set_dump_file (stderr);
+ set_dump_file (f);
dump_context::s_current = &m_context;
pflags = dump_flags = MSG_ALL_KINDS | MSG_ALL_PRIORITIES;
dump_context::get ().refresh_dumps_are_enabled ();