diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ae2644657c..fa1f937d349 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-09-01 Andrey Belevantsev + + * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING. + * sched-int.h (print_insn, print_pattern, print_value): Declare also + when !INSN_SCHEDULING. + 2008-09-01 Andreas Schwab * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update. diff --git a/gcc/sched-int.h b/gcc/sched-int.h index 2f9b7818eaa..d358650e8fe 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -157,11 +157,6 @@ extern rtx bb_note (basic_block); extern void reemit_notes (rtx); -/* Functions in sched-vis.c. */ -extern void print_insn (char *, const_rtx, int); -extern void print_pattern (char *, const_rtx, int); -extern void print_value (char *, const_rtx, int); - /* Functions in haifa-sched.c. */ extern int haifa_classify_insn (const_rtx); @@ -1368,4 +1363,10 @@ extern void sd_debug_lists (rtx, sd_list_types_def); #endif /* INSN_SCHEDULING */ +/* Functions in sched-vis.c. These must be outside INSN_SCHEDULING as + sched-vis.c is compiled always. */ +extern void print_insn (char *, const_rtx, int); +extern void print_pattern (char *, const_rtx, int); +extern void print_value (char *, const_rtx, int); + #endif /* GCC_SCHED_INT_H */ diff --git a/gcc/sel-sched-dump.c b/gcc/sel-sched-dump.c index 7d56d3ba078..5fce7cf6b9e 100644 --- a/gcc/sel-sched-dump.c +++ b/gcc/sel-sched-dump.c @@ -34,6 +34,8 @@ along with GCC; see the file COPYING3. If not see #include "output.h" #include "basic-block.h" #include "cselib.h" + +#ifdef INSN_SCHEDULING #include "sel-sched-ir.h" #include "sel-sched-dump.h" @@ -941,5 +943,5 @@ debug_mem_addr_value (rtx x) debug_rtx (addr); return t; } - +#endif