genmodes.c (complete_mode): Record MODE_CC...

* genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
	MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
	component, not zero.

From-SVN: r73051
This commit is contained in:
Zack Weinberg 2003-10-29 17:01:27 +00:00 committed by Zack Weinberg
parent 9585b0f7a1
commit 9fcc6bf64a
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-10-29 Zack Weinberg <zack@codesourcery.com>
* genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
component, not zero.
2003-10-29 Andreas Schwab <schwab@suse.de>
* config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.

View File

@ -316,7 +316,7 @@ complete_mode (struct mode_data *m)
validate_mode (m, UNSET, UNSET, UNSET, UNSET, UNSET);
m->bytesize = 4;
m->ncomponents = 0;
m->ncomponents = 1;
m->component = 0;
break;
@ -328,7 +328,7 @@ complete_mode (struct mode_data *m)
validate_mode (m, OPTIONAL, SET, UNSET, UNSET,
m->class == MODE_FLOAT ? SET : UNSET);
m->ncomponents = 0;
m->ncomponents = 1;
m->component = 0;
break;
@ -340,7 +340,7 @@ complete_mode (struct mode_data *m)
m->bytesize = m->component->bytesize;
m->ncomponents = 0;
m->ncomponents = 1;
m->component = 0; /* ??? preserve this */
break;