This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r160581 - in /trunk/gcc: ChangeLog config/mips/...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 10 Jun 2010 20:24:18 -0000
- Subject: r160581 - in /trunk/gcc: ChangeLog config/mips/...
Author: rsandifo
Date: Thu Jun 10 20:24:17 2010
New Revision: 160581
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160581
Log:
gcc/
* doc/md.texi (define_enum_attr): Document.
* rtl.def (DEFINE_ENUM_ATTR): New rtx.
* read-md.h (lookup_enum_type): Declare.
* read-md.c (lookup_enum_type): New function.
* genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
* genattrtab.c (attr_desc): Add an enum_name field.
(evaluate_eq_attr): Take the associated attribute as argument.
Get the enum prefix from the enum_name field, if defined.
Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
(simplify_test_exp): Pass attr to evaluate_eq_attr.
(add_attr_value): New function, split out from...
(gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
(write_test_expr): Pass attr to evaluate_eq_attr.
(write_attr_get): Use the enum_name as the enum tag, if defined.
(write_attr_valueq): Use the enum_name as a prefix, if defined.
(find_attr): Initialize enum_name.
(main): Handle DEFINE_ENUM_ATTR.
* gensupport.c (process_rtx): Likewise.
* config/mips/mips.h (mips_tune_attr): Delete.
* config/mips/mips.md (cpu): Use define_attr_enum.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/mips/mips.h
trunk/gcc/config/mips/mips.md
trunk/gcc/doc/md.texi
trunk/gcc/genattr.c
trunk/gcc/genattrtab.c
trunk/gcc/gensupport.c
trunk/gcc/read-md.c
trunk/gcc/read-md.h
trunk/gcc/rtl.def