]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/genattr.c
Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Jun 2010 16:27:25 +0000 (18:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Jun 2010 16:27:25 +0000 (18:27 +0200)
commit2b21299c80f98e22732559357c4af025c2749283
treed02a0fa1435d00b56e4bf4f124a0e6956229dce6
parent6747788144887b569ab4fe3e986043e09c986963
Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).

* Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
* genattrtab.c (check_tune_attr, find_tune_attr): New functions.
(make_automaton_attrs): If find_tune_attr returns non-NULL,
write separate internal_dfa_insn_code_* and insn_default_latency_*
functions for each attribute's value and emit init_sched_attrs
function and function pointers.
* genattr.c (const_attrs, reservations): New variables.
(gen_attr): Add const attributes to const_attrs vector.
(check_tune_attr, find_tune_attr): New functions.
(main): Add reservations to reservations vector.  If find_tune_attr
returns true, add prototype for init_sched_attrs and make
internal_dfa_insn_code and insn_default_latency function pointers,
otherwise define init_sched_attrs as dummy macro.
* cfgexpand.c: Include insn-attr.h.
(gimple_expand_cfg): Call init_sched_attrs.

From-SVN: r161093
gcc/ChangeLog
gcc/Makefile.in
gcc/cfgexpand.c
gcc/genattr.c
gcc/genattrtab.c