diff options
author | Zack Weinberg <zackw@panix.com> | 2006-01-23 15:14:59 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2006-01-23 15:14:59 +0000 |
commit | 245fc6392879dd2493d4be97cbd01c64d0a61adf (patch) | |
tree | 44bbde76abf99e1ceeb5bf0420cf8e1a2d685e6c /gcc/gencodes.c | |
parent | cbbbdc2cccf6ab0d0cc7eaeae4ce6b64338c51a1 (diff) | |
download | gcc-245fc6392879dd2493d4be97cbd01c64d0a61adf.zip gcc-245fc6392879dd2493d4be97cbd01c64d0a61adf.tar.gz gcc-245fc6392879dd2493d4be97cbd01c64d0a61adf.tar.bz2 |
r110122@banpei: zack | 2006-01-22 14:41:17 -0800
r110122@banpei: zack | 2006-01-22 14:41:17 -0800
* genextract.c: Don't include insn-config.h. Do include vec.h.
Declare vectors of int, char, and locstr.
(locstr): New typedef.
(struct extraction): Make all array fields into bare pointers.
(insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
(insn_code_number): Delete.
(accum_extract): New struct.
(VEC_safe_set_locstr, VEC_char_to_string): New functions.
(gen_insn): Take insn_code_number as an argument. Use an
accum_extract structure instead of loading data directly into
a struct extraction, and having to know how big it might get.
(walk_rtx): Operate entirely on an accum_extract structure.
(print_path): Avoid unnecessary use of printf.
(print_header): New function, split out of main. Distinguish
more carefully between an unrecognizable insn and an insn that
has the code number of a define_expand.
(main): Pass insn_code_number to gen_insn. Call print_header
only after parsing. Avoid unnecessary use of printf.
* Makefile.in (build/vec.o): New rule.
(build/genextract): Depend on build/vec.o.
(build/genextract.o): Don't depend on insn-config.h.
From-SVN: r110118
Diffstat (limited to 'gcc/gencodes.c')
0 files changed, 0 insertions, 0 deletions