This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Variable too large
>>>>> "Alan" == Alan Lehotsky <apl@alum.mit.edu> writes:
Alan> There are places in the front-end that attempt to return -1 to
Alan> indicate an invalid or unknown size. (e.g., they assume a
Alan> ssize_t, not size_t).
That's a nice example of something that doesn't hurt so bad for 32 bit
targets, but is nasty indeed for 16 bit ones. A cleaner solution
would be to use size_t and use the max value (2^n - 1) as a flag value
without special-casing any others.
paul