From: Andrey Belevantsev Date: Tue, 9 Sep 2008 14:23:19 +0000 (+0400) Subject: haifa-sched.c (advance_one_cycle): Do not print '\n' before printing dump message. X-Git-Tag: releases/gcc-4.4.0~2546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c57518294ec34081a5cdbd309ef0be941a3b6c2;p=thirdparty%2Fgcc.git haifa-sched.c (advance_one_cycle): Do not print '\n' before printing dump message. * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing dump message. (choose_ready): When first insn is chosen from the ready list, also dump it. From-SVN: r140152 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c907942d747..94125dfa68a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-09-09 Andrey Belevantsev + + * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing + dump message. + (choose_ready): When first insn is chosen from the ready list, also + dump it. + 2008-09-09 Andrey Belevantsev PR rtl-optimization/37360 diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index db9b54a9d878..ba6043717454 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -1210,7 +1210,7 @@ advance_one_cycle (void) { advance_state (curr_state); if (sched_verbose >= 6) - fprintf (sched_dump, "\n;;\tAdvanced a state.\n"); + fprintf (sched_dump, ";;\tAdvanced a state.\n"); } /* Clock at which the previous instruction was issued. */ @@ -2326,9 +2326,10 @@ choose_ready (struct ready_list *ready, rtx *insn_ptr) if (max_issue (ready, 1, curr_state, &index) == 0) { - if (sched_verbose >= 4) - fprintf (sched_dump, ";;\t\tChosen none\n"); *insn_ptr = ready_remove_first (ready); + if (sched_verbose >= 4) + fprintf (sched_dump, ";;\t\tChosen insn (but can't issue) : %s \n", + (*current_sched_info->print_insn) (*insn_ptr, 0)); return 0; } else