This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: CCmode size


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]