From d1427a17a7d98f096ee0b199ef8caf993c8f2e0e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 5 Aug 2015 15:46:02 +0000 Subject: gensupport.h (get_c_test): Declare. gcc/ * gensupport.h (get_c_test): Declare. * gensupport.c (get_c_test): New function. * genconditions.c (main): Use it. * genrecog.c (validate_pattern): Likewise. (match_pattern_1): Likewise. Remove c_test argument. (match_pattern): Update accordingly and remove c_test argument. (main): Update accordingly. From-SVN: r226634 --- gcc/gensupport.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/gensupport.h') diff --git a/gcc/gensupport.h b/gcc/gensupport.h index c37ec36..a15c36a 100644 --- a/gcc/gensupport.h +++ b/gcc/gensupport.h @@ -50,6 +50,10 @@ extern unsigned int get_num_insn_codes (); Must be set before calling init_md_reader. */ extern int insn_elision; +/* Return the C test that says whether a definition rtx can be used, + or "" if it can be used unconditionally. */ +extern const char *get_c_test (rtx); + /* If the C test passed as the argument can be evaluated at compile time, return its truth value; else return -1. The test must have appeared somewhere in the machine description when genconditions -- cgit v1.1