This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
mongo array/bitfield errors Was: Bug on PPC (no patch yet)
> Robert> Patch from AO.
> ...
> Robert> + /* If type is negative, produce an internal compiler error.
> Robert> + This may be caused by an array that is too large.
>
> I assume this wouldn't happen for 64-bit targets unless the array size
> exceeds 64 (not 32) bits, right?
I didn't write (and don't understand) the patch, so I really can't
defend it, but from previous iterations of this discussion, I think
it was mentioned that it was a non-problem on 64 bit hosts but a
problem for all 32 bit hosts. It could have been targets instead
of hosts. I don't recall.
> The error generated should NOT be "internal compiler error". That
> error message should always mean "there's a bug in the compiler" and
> never "there's something wrong with your source code".
It's one possible starting place. Feel free to implement
additional checks (as suggested by Joe Buck) or different errors.
Feel free to do something else competely. :-)
RJL