Makefile.in (build/genattrtab.o): Depend on vecprim.h.
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Jun 2010 16:28:32 +0000 (18:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Jun 2010 16:28:32 +0000 (18:28 +0200)
commit2e1e8c5d7a0816021f450fc158441452993e9477
tree29f14e53c48d6489b20c741647254ece6ecda2ea
parent2b21299c80f98e22732559357c4af025c2749283
Makefile.in (build/genattrtab.o): Depend on vecprim.h.

* Makefile.in (build/genattrtab.o): Depend on vecprim.h.
* genattrtab.c: Include vecprim.h.
(cached_attrs, cached_attr_count, attrs_seen_once,
attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
attrs_cached_after): New variables.
(find_attrs_to_cache): New function.
(FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
(write_test_expr): Add attrs_cached argument, return it too,
attempt to cache non-const attributes used more than once in
a single case handling.
(write_attr_get): Use find_attrs_to_cache, for caching candidates
emit cached_* variables.  Adjust write_attr_set callers.
(write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
to find attributes that should be cached in this block.  Adjust
write_test_expr callers.
(write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
callers.
(make_automaton_attrs): Adjust write_test_expr caller.

From-SVN: r161094
gcc/ChangeLog
gcc/Makefile.in
gcc/genattrtab.c