OSDN Git Service

* sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
authorabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Sep 2008 12:38:44 +0000 (12:38 +0000)
committerabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Sep 2008 12:38:44 +0000 (12:38 +0000)
        * sched-int.h (print_insn, print_pattern, print_value): Declare also
        when !INSN_SCHEDULING.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139862 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/sched-int.h
gcc/sel-sched-dump.c

index 2ae2644..fa1f937 100644 (file)
@@ -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.
index 2f9b781..d358650 100644 (file)
@@ -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 */
index 7d56d3b..5fce7cf 100644 (file)
@@ -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"
 \f
@@ -941,5 +943,5 @@ debug_mem_addr_value (rtx x)
   debug_rtx (addr);
   return t;
 }
-
+#endif