This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: CCmode size
- From: <Paul_Koning at Dell dot com>
- To: <paulo at matos-sorge dot com>, <gcc at gcc dot gnu dot org>
- Date: Thu, 15 Sep 2011 08:49:06 -0500
- Subject: RE: CCmode size
- References: <j4sskq$cp6$1@dough.gmane.org>
>genmodes.c has the following comment:
>
>----
> /* Again, nothing more need be said. For historical reasons,
>
>
> the size of a CC mode is four units. */
> validate_mode (m, UNSET, UNSET, UNSET, UNSET, UNSET);
>
> m->bytesize = 4;
>----
>
>Now, this is probably ok for _most_ archs but for my arch where a word == byte == 16 bits, this causes a lot of pain. Is there a way (macro?) to change this to m->bytesize = 1; in the backend without hardcoding it into genmodes.c?
It would seem that making it equal to word size (whatever that is on the platform) or size of the int type would be a way to make this better. Would that have any bad consequences for other platforms?
paul