Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 4 Oct 2006 16:41:55 +0000 (16:41 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 4 Oct 2006 16:41:55 +0000 (16:41 +0000)
commit9e8265851df1859e0dfc447cb9ac44088bb8cb1c
tree20a2dfcb81e007f92b06951185a8557d56dfb9bb
parent2e38371e01e1944f79f4cdec3ead6fae8d31950d
Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:

Fix bug in constraint-check generator, reported by Rask Ingemann
Lambertsen:
* genpreds.c (add_constraint): Don't remove anything from the
expression here.
(write_tm_constrs_h): Detect whether "op" argument is used, and
mark it ARG_UNUSED if it isn't.
(write_insn_const_int_ok_for_constraint): Skip the part of the
expression that would test whether "op" (which is not available
here) is a CONST_INT.

From-SVN: r117433
gcc/ChangeLog
gcc/genpreds.c