aboutsummaryrefslogtreecommitdiff
path: root/gcc/gensupport.c
diff options
context:
space:
mode:
authorrsandifo <>2010-06-10 19:24:17 +0000
committerrsandifo <>2010-06-10 19:24:17 +0000
commit3b0edcac602fb8d0e4ba9bbe9fbb59cf561a82e4 (patch)
tree7c7c84950cd4b41af7efd6b64db9e7e3cfb1f188 /gcc/gensupport.c
parentdc9583668053d040838fb452dba5e9c683025aeb (diff)
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.
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r--gcc/gensupport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index 1389658609c..206e96b7c61 100644
--- a/gcc/gensupport.c
+++ b/gcc/gensupport.c
@@ -173,6 +173,7 @@ process_rtx (rtx desc, int lineno)
break;
case DEFINE_ATTR:
+ case DEFINE_ENUM_ATTR:
queue_pattern (desc, &define_attr_tail, read_md_filename, lineno);
break;