aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadupdate.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-09-03 11:45:03 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-09-03 15:30:57 +0200
commit7200a4424c45b1b10e138bb5c52f58f3cc7da4a0 (patch)
tree66aeb110f62077c06d27bb65047b768198c45d06 /gcc/tree-ssa-threadupdate.c
parent4db10cbf21dfe48e72880f592c1b5640baaf16cf (diff)
downloadgcc-7200a4424c45b1b10e138bb5c52f58f3cc7da4a0.zip
gcc-7200a4424c45b1b10e138bb5c52f58f3cc7da4a0.tar.gz
gcc-7200a4424c45b1b10e138bb5c52f58f3cc7da4a0.tar.bz2
RAII class to change dump_file.
The function dump_ranger() shows everything the ranger knows at the current time. To do this, we tickle all the statements to force ranger to provide as much information as possible. During this process, the relation code will dump status out to the dump_file, whereas in dump_ranger, we want to dump it out to a specific file (most likely stderr). This patch changes the dump_file through the life of dump_ranger() and resets it when its done. This patch only affects dump/debugging code. Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-trace.cc (push_dump_file::push_dump_file): New. (push_dump_file::~push_dump_file): New. (dump_ranger): Change dump_file temporarily while dumping ranger. * gimple-range-trace.h (class push_dump_file): New.
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
0 files changed, 0 insertions, 0 deletions