summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorNikolai Bozhenov <n.bozhenov@samsung.com>2015-11-09 23:26:15 +0000
committerJeff Law <law@gcc.gnu.org>2015-11-09 16:26:15 -0700
commit4111f1c9b2a59ad85c9d26bb83153eff887960af (patch)
tree8ea20b317bfbe70fa411cbe8a661e766d404c0c6 /gcc/haifa-sched.c
parent01e83ff2d5fed202e66ed1d8b9d12e6f5fdca5e4 (diff)
downloadgcc-4111f1c9b2a59ad85c9d26bb83153eff887960af.tar.gz
Change behavior of -fsched-verbose option
* haifa-sched.c (setup_sched_dump): Don't redirect output to stderr. * common.opt (-fsched-verbose): Set default value to 1. * invoke.texi (-fsched-verbose): Update the option's description. From-SVN: r230061
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index caadc11b6a4..835648b688a 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -203,17 +203,14 @@ static int modulo_last_stage;
/* sched-verbose controls the amount of debugging output the
scheduler prints. It is controlled by -fsched-verbose=N:
- N>0 and no -DSR : the output is directed to stderr.
- N>=10 will direct the printouts to stderr (regardless of -dSR).
- N=1: same as -dSR.
+ N=0: no debugging output.
+ N=1: default value.
N=2: bb's probabilities, detailed ready list info, unit/insn info.
N=3: rtl at abort point, control-flow, regions info.
N=5: dependences info. */
-
int sched_verbose = 0;
-/* Debugging file. All printouts are sent to dump, which is always set,
- either to stderr, or to the dump listing file (-dRS). */
+/* Debugging file. All printouts are sent to dump. */
FILE *sched_dump = 0;
/* This is a placeholder for the scheduler parameters common
@@ -7219,17 +7216,14 @@ set_priorities (rtx_insn *head, rtx_insn *tail)
return n_insn;
}
-/* Set dump and sched_verbose for the desired debugging output. If no
- dump-file was specified, but -fsched-verbose=N (any N), print to stderr.
- For -fsched-verbose=N, N>=10, print everything to stderr. */
+/* Set sched_dump and sched_verbose for the desired debugging output. */
void
setup_sched_dump (void)
{
sched_verbose = sched_verbose_param;
- if (sched_verbose_param == 0 && dump_file)
- sched_verbose = 1;
- sched_dump = ((sched_verbose_param >= 10 || !dump_file)
- ? stderr : dump_file);
+ sched_dump = dump_file;
+ if (!dump_file)
+ sched_verbose = 0;
}
/* Allocate data for register pressure sensitive scheduling. */