gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2008 21:28:27 +0000 (21:28 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2008 21:28:27 +0000 (21:28 +0000)
commitc7a4c804ee577fe5a84652746dae82a50b34bd85
treebe8f401f9b48aa6d624266499579b7f40d103455
parent40efb3382e6fc70e7d1eb0fcac943ff3da183bbf
gcc/
* gensupport.h (pred_data): Add a "num_codes" field.
(add_predicate_code): Declare.
* gensupport.c (add_predicate_code): New function.
(std_pred_table): Add an "allows_const_p" field.
(std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
Remove the (incomplete) list of such codes from the codes field.
(init_predicate_table): Use add_predicate_code.  Add all
RTX_CONST_OBJs if allows_const_p is true.
* genrecog.c (process_define_predicate): Use add_predicate_code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135090 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genrecog.c
gcc/gensupport.c
gcc/gensupport.h