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: [gcc-in-cxx] Get past stage1 on darwin


Tobias SchlÃter <tobias.schlueter@physik.uni-muenchen.de> writes:

> Ian Lance Taylor wrote:
>> Tobias SchlÃter <tobias.schlueter@physik.uni-muenchen.de> writes:
>>
>>> Current failure mode:
> ...
>>> ../../gcc/config/i386/i386.c:3285: error: comparison is always true
>>> due to limited range of data type
>>
>> Interesting.  This makes it look like the compiler is using
>> -fshort-enums.  Can you check whether flag_short_enums is non-zero in
>> the finish_enum function?  If it is, then how did it get set?
>
> It's not set, and according to my debug printouts, it actually decides
> to use a 32bit enum type.  Could it be that we use a 32bit wide int
> for the enum, but use the type information to decide that it has < 8
> bits of precision?

Yes, it certainly could be, but I don't know why it would be different
on Darwin and GNU/Linux.

Ian


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