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: Teach gimple_canonical_types_compatible_p about incomplete types


On May 25, 2015 1:49:45 AM GMT+02:00, Jan Hubicka <hubicka@ucw.cz> wrote:


>2  Each enumerated type shall be compatible with char ,  a  signed
>integer
>     type, or an unsigned integer type. The choice of type is
>implementation-defined, but  shall be capable of representing the
>values
>     of all the members of the enumeration.    The enumerated type is
>     incomplete until immediately after the that terminates the list of
>     enumerator declarations, and complete thereafter.
>
>(we ignore this completely as far as I know, it is easy to fix though,
>all
> we need is to make ENUMERATION_TYPE pretend to be INTEGER_TYPE)

Don't forget -fshort-enum though.

Thanks,


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