[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



Hi!

> > 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

Yes, compiler should be fixed to give link error.

> no reasonable way you could expect this code to work on the
> microprocessor you are using (and with the operating system you are
> using).

No problem with that. (Actually, it is not *totally*
unreasonable. Array is slighlty bigger than 1.2GB if I read it
correctly. We should have enough address space to make it fit; maybe
with modified ld.so or something like that.)

								Pavel
-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.



Reply to: