Mercurial > hg > CbC > CbC_gcc
diff gcc/genconstants.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
line wrap: on
line diff
--- a/gcc/genconstants.c Sun Aug 21 07:07:55 2011 +0900 +++ b/gcc/genconstants.c Fri Oct 27 22:46:09 2017 +0900 @@ -2,8 +2,7 @@ a series of #define statements, one for each constant named in a (define_constants ...) pattern. - Copyright (C) 1987, 1991, 1995, 1998, 1999, 2000, 2001, 2003, 2004, - 2007, 2010 Free Software Foundation, Inc. + Copyright (C) 1987-2017 Free Software Foundation, Inc. This file is part of GCC. @@ -29,6 +28,8 @@ #include "system.h" #include "coretypes.h" #include "errors.h" +#include "statistics.h" +#include "vec.h" #include "read-md.h" /* Called via traverse_md_constants; emit a #define for @@ -76,11 +77,12 @@ } int -main (int argc, char **argv) +main (int argc, const char **argv) { progname = "genconstants"; - if (!read_md_files (argc, argv, NULL, NULL)) + noop_reader reader; + if (!reader.read_md_files (argc, argv, NULL)) return (FATAL_EXIT_CODE); /* Initializing the MD reader has the side effect of loading up @@ -91,8 +93,8 @@ puts ("#ifndef GCC_INSN_CONSTANTS_H"); puts ("#define GCC_INSN_CONSTANTS_H\n"); - traverse_md_constants (print_md_constant, 0); - traverse_enum_types (print_enum_type, 0); + reader.traverse_md_constants (print_md_constant, 0); + reader.traverse_enum_types (print_enum_type, 0); puts ("\n#endif /* GCC_INSN_CONSTANTS_H */");