Mercurial > hg > CbC > CbC_gcc
diff gcc/genemit.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 | 04ced10e8804 |
line wrap: on
line diff
--- a/gcc/genemit.c Tue May 25 18:58:51 2010 +0900 +++ b/gcc/genemit.c Tue Mar 22 17:18:12 2011 +0900 @@ -25,6 +25,7 @@ #include "tm.h" #include "rtl.h" #include "errors.h" +#include "read-md.h" #include "gensupport.h" @@ -398,7 +399,7 @@ if (XSTR (insn, 0)[0] == 0 || XSTR (insn, 0)[0] == '*') return; - printf ("/* %s:%d */\n", read_rtx_filename, lineno); + printf ("/* %s:%d */\n", read_md_filename, lineno); /* Find out how many operands this function has. */ operands = max_operand_vec (insn, 1); @@ -513,7 +514,7 @@ /* Output the special code to be executed before the sequence is generated. */ - print_rtx_ptr_loc (XSTR (expand, 3)); + print_md_ptr_loc (XSTR (expand, 3)); printf ("%s\n", XSTR (expand, 3)); /* Output code to copy the arguments back out of `operands' @@ -642,7 +643,7 @@ if (XSTR (split, 3)) { - print_rtx_ptr_loc (XSTR (split, 3)); + print_md_ptr_loc (XSTR (split, 3)); printf ("%s\n", XSTR (split, 3)); } @@ -832,7 +833,7 @@ progname = "genemit"; - if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE) + if (!init_rtx_reader_args (argc, argv)) return (FATAL_EXIT_CODE); /* Assign sequential codes to all entries in the machine description @@ -861,7 +862,7 @@ printf ("#include \"recog.h\"\n"); printf ("#include \"resource.h\"\n"); printf ("#include \"reload.h\"\n"); - printf ("#include \"toplev.h\"\n"); + printf ("#include \"diagnostic-core.h\"\n"); printf ("#include \"regs.h\"\n"); printf ("#include \"tm-constrs.h\"\n"); printf ("#include \"ggc.h\"\n"); @@ -887,17 +888,17 @@ break; case DEFINE_EXPAND: - printf ("/* %s:%d */\n", read_rtx_filename, line_no); + printf ("/* %s:%d */\n", read_md_filename, line_no); gen_expand (desc); break; case DEFINE_SPLIT: - printf ("/* %s:%d */\n", read_rtx_filename, line_no); + printf ("/* %s:%d */\n", read_md_filename, line_no); gen_split (desc); break; case DEFINE_PEEPHOLE2: - printf ("/* %s:%d */\n", read_rtx_filename, line_no); + printf ("/* %s:%d */\n", read_md_filename, line_no); gen_split (desc); break;