comparison gcc/sched-vis.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents b7f97abdc517
children
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Instruction scheduling pass. 1 /* Instruction scheduling pass.
2 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 3 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
4 Free Software Foundation, Inc.
4 Contributed by Michael Tiemann (tiemann@cygnus.com) Enhanced by, 5 Contributed by Michael Tiemann (tiemann@cygnus.com) Enhanced by,
5 and currently maintained by, Jim Wilson (wilson@cygnus.com) 6 and currently maintained by, Jim Wilson (wilson@cygnus.com)
6 7
7 This file is part of GCC. 8 This file is part of GCC.
8 9
426 print_value (char *buf, const_rtx x, int verbose) 427 print_value (char *buf, const_rtx x, int verbose)
427 { 428 {
428 char t[BUF_LEN]; 429 char t[BUF_LEN];
429 char *cur = buf; 430 char *cur = buf;
430 431
432 if (!x)
433 {
434 safe_concat (buf, buf, "(nil)");
435 return;
436 }
431 switch (GET_CODE (x)) 437 switch (GET_CODE (x))
432 { 438 {
433 case CONST_INT: 439 case CONST_INT:
434 sprintf (t, HOST_WIDE_INT_PRINT_HEX, 440 sprintf (t, HOST_WIDE_INT_PRINT_HEX,
435 (unsigned HOST_WIDE_INT) INTVAL (x)); 441 (unsigned HOST_WIDE_INT) INTVAL (x));
597 gcc_unreachable (); 603 gcc_unreachable ();
598 case ASM_INPUT: 604 case ASM_INPUT:
599 sprintf (buf, "asm {%s}", XSTR (x, 0)); 605 sprintf (buf, "asm {%s}", XSTR (x, 0));
600 break; 606 break;
601 case ADDR_VEC: 607 case ADDR_VEC:
602 break; 608 /* Fall through. */
603 case ADDR_DIFF_VEC: 609 case ADDR_DIFF_VEC:
604 print_value (buf, XEXP (x, 0), verbose); 610 print_value (buf, XEXP (x, 0), verbose);
605 break; 611 break;
606 case TRAP_IF: 612 case TRAP_IF:
607 print_value (t1, TRAP_CONDITION (x), verbose); 613 print_value (t1, TRAP_CONDITION (x), verbose);
761 GET_REG_NOTE_NAME (REG_NOTE_KIND (note)), t); 767 GET_REG_NOTE_NAME (REG_NOTE_KIND (note)), t);
762 } 768 }
763 } 769 }
764 770
765 /* Emit a slim dump of X (an insn) to stderr. */ 771 /* Emit a slim dump of X (an insn) to stderr. */
766 void 772 DEBUG_FUNCTION void
767 debug_insn_slim (rtx x) 773 debug_insn_slim (rtx x)
768 { 774 {
769 dump_insn_slim (stderr, x); 775 dump_insn_slim (stderr, x);
770 } 776 }
771 777
812 if (count > 0) 818 if (count > 0)
813 count--; 819 count--;
814 } 820 }
815 } 821 }
816 822
817 void 823 DEBUG_FUNCTION void
818 debug_bb_slim (struct basic_block_def *bb) 824 debug_bb_slim (struct basic_block_def *bb)
819 { 825 {
820 print_rtl_slim (stderr, BB_HEAD (bb), BB_END (bb), -1, 32); 826 print_rtl_slim (stderr, BB_HEAD (bb), BB_END (bb), -1, 32);
821 } 827 }
822 828
823 void 829 DEBUG_FUNCTION void
824 debug_bb_n_slim (int n) 830 debug_bb_n_slim (int n)
825 { 831 {
826 struct basic_block_def *bb = BASIC_BLOCK (n); 832 struct basic_block_def *bb = BASIC_BLOCK (n);
827 debug_bb_slim (bb); 833 debug_bb_slim (bb);
828 } 834 }