* genpreds.c (write_enum_constraint_num): Output definition of
CONSTRAINT_NUM_DEFINED_P macro.
* ira.c (setup_cover_and_important_classes): Use
CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146748
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
+
+ * genpreds.c (write_enum_constraint_num): Output definition of
+ CONSTRAINT_NUM_DEFINED_P macro.
+ * ira.c (setup_cover_and_important_classes): Use
+ CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
+
2009-04-24 DJ Delorie <dj@redhat.com>
* config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
{
struct constraint_data *c;
+ fputs ("#define CONSTRAINT_NUM_DEFINED_P 1\n", stdout);
fputs ("enum constraint_num\n"
"{\n"
" CONSTRAINT__UNKNOWN = 0", stdout);
{
if (i == NO_REGS)
continue;
-#ifdef CONSTRAINT__LIMIT
+#ifdef CONSTRAINT_NUM_DEFINED_P
for (j = 0; j < CONSTRAINT__LIMIT; j++)
if ((int) regclass_for_constraint ((enum constraint_num) j) == i)
break;