genpreds.c (process_define_predicate): Move most processing to gensupport.c.
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 12 Apr 2011 12:51:10 +0000 (12:51 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 12 Apr 2011 12:51:10 +0000 (12:51 +0000)
commit77059241d8049bd7626ce216caf0313a2fa964c2
treec16e8997e9a9118ec5c396648da48b7cba99bbb0
parent6308e208c21b6c31a4ed5e89dd02dd5880c3e346
genpreds.c (process_define_predicate): Move most processing to gensupport.c.

gcc/
* genpreds.c (process_define_predicate): Move most processing
to gensupport.c.  Continue to validate the expression.
* genrecog.c (did_you_mean_codes, compute_predicate_codes)
(process_define_predicate): Move processing to gensupport.c.
(main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
* gensupport.c (did_you_mean_codes): Moved from genrecog.c.
(compute_predicate_codes): Moved from genrecog.c.  Add lineno
argument.
(valid_predicate_name_p): New function, split out from old
genpreds.c:process_define_predicate.
(process_define_predicate): New function, combining code from
old genpreds.c and genrecog.c functions.
(process_rtx): Call it for DEFINE_PREDICATE and
DEFINE_SPECIAL_PREDICATE.

From-SVN: r172315
gcc/ChangeLog
gcc/genpreds.c
gcc/genrecog.c
gcc/gensupport.c