[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#133574: gcc: gcc generates incorrect executables if huge static arrays are used



Pavel Machek <pavel@atrey.karlin.mff.cuni.cz> writes:

> In its previous incarnation, bug was hidden by going to new gcc
> version... But it looks like it only raised a bar a bit.

This is really a bug in your code; you are exceeding a compiler limit,
thus the code behaves undefined. There is a bug in the compiler also:
the compiler should diagnose that you exceed the limit, but there is
no reasonable way you could expect this code to work on the
microprocessor you are using (and with the operating system you are
using).

Regards,
Martin



Reply to: