]> git.ipfire.org Git - thirdparty/gcc.git/commit
r110122@banpei: zack | 2006-01-22 14:41:17 -0800
authorZack Weinberg <zackw@panix.com>
Mon, 23 Jan 2006 15:14:59 +0000 (15:14 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 23 Jan 2006 15:14:59 +0000 (15:14 +0000)
commit245fc6392879dd2493d4be97cbd01c64d0a61adf
tree44bbde76abf99e1ceeb5bf0420cf8e1a2d685e6c
parentcbbbdc2cccf6ab0d0cc7eaeae4ce6b64338c51a1
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
gcc/ChangeLog
gcc/Makefile.in
gcc/genextract.c