http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58270

--- Comment #2 from Krzysztof Strasburger <strasbur at chkw386 dot 
ch.pwr.wroc.pl> ---
OK, I'm not and expert, but mem is a global structure and it can be of
different size in other object file. The linker should assume the biggest of
all, correct?
The example I posted comes from f2c-translated FORTRAN77 code (it is cleared
from f2c references). It was a normal practice to mix C with FORTRAN for
dynamic memory allocation. The memory allocated via malloc() was referenced to
a small (one-element) static array. There was nothing illegal with this.
And how can the compiler assume freely that both i1 and i2 are zeros, if they
are passed as actual arguments?

Reply via email to