This is the mail archive of the gcc-patches@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: [PATCH] strict types in code generators.


> Zack Weinberg wrote:
>> Marcin Dalecki wrote:
>>      * genmodes.c, machmode.h: Use the proper enum mode_class type
>>      instead of the "opaque" unsigned char, since this is what the
>>      objects in question are really used for.
>
> Not OK.  This will quadruple the size of the arrays in question.

- Might this be acceptable if the correspondingly generated insn-modes.h
  was itself defined to be #include'ed in the beginning of this generated
  file? (as thereby enum machine_mode would be then known by the compiler to
  require no larger than a char sized integer to store an enumerated value?)




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