genpreds.c (write_enum_constraint_num): Output definition of CONSTRAINT_NUM_DEFINED_P macro.

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.

From-SVN: r146748
This commit is contained in:
Vladimir Makarov 2009-04-24 23:35:16 +00:00 committed by Vladimir Makarov
parent 4f7be84923
commit ff3cb4680e
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -954,6 +954,7 @@ write_enum_constraint_num (void)
{
struct constraint_data *c;
fputs ("#define CONSTRAINT_NUM_DEFINED_P 1\n", stdout);
fputs ("enum constraint_num\n"
"{\n"
" CONSTRAINT__UNKNOWN = 0", stdout);

View File

@ -754,7 +754,7 @@ setup_cover_and_important_classes (void)
{
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;