diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-05 15:44:23 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-05 15:44:23 +0000 |
commit | 277caec07341a6478232f17baf47909957f66a85 (patch) | |
tree | 3bb6cba655f74f75d4e5a605da5b2ec1ef7cbeda /gcc/gencodes.c | |
parent | 47dcac97f8004116930b2d692a93628696baedff (diff) | |
download | gcc-277caec07341a6478232f17baf47909957f66a85.tar.gz |
gcc/
* gensupport.h (get_num_insn_codes): Declare.
* gensupport.c (get_num_insn_codes): New function.
* genattrtab.c (optimize_attrs): Rename max_insn_code to
num_insn_codes.
(main): Likewise. Use get_num_insn_codes.
* gencodes.c (main): Remove "last" and use get_num_insn_codes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226633 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gencodes.c')
-rw-r--r-- | gcc/gencodes.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/gencodes.c b/gcc/gencodes.c index b9d65a2c8bc..c7478912e9b 100644 --- a/gcc/gencodes.c +++ b/gcc/gencodes.c @@ -49,8 +49,6 @@ gen_insn (md_rtx_info *info) int main (int argc, char **argv) { - int last = 1; - progname = "gencodes"; /* We need to see all the possibilities. Elided insns may have @@ -79,7 +77,6 @@ enum insn_code {\n\ case DEFINE_INSN: case DEFINE_EXPAND: gen_insn (&info); - last = info.index + 1; break; default: @@ -89,7 +86,7 @@ enum insn_code {\n\ printf (" LAST_INSN_CODE = %d\n\ };\n\ \n\ -#endif /* GCC_INSN_CODES_H */\n", last); +#endif /* GCC_INSN_CODES_H */\n", get_num_insn_codes () - 1); if (ferror (stdout) || fflush (stdout) || fclose (stdout)) return FATAL_EXIT_CODE; |