diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/sched-int.h | 11 | ||||
-rw-r--r-- | gcc/sel-sched-dump.c | 4 |
3 files changed, 15 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ae2644..fa1f937 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-09-01 Andrey Belevantsev <abel@ispras.ru> + + * 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 <schwab@suse.de> * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update. diff --git a/gcc/sched-int.h b/gcc/sched-int.h index 2f9b781..d358650 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 7d56d3b..5fce7cf 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 |