https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95285

--- Comment #12 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Bu Le from comment #10)
> > Fortran already has -fstack-arrays to decide between allocating arrays on
> > the heap or on the stack.
> 
> I tried the flag with my example. The fstack-array seems cannot move the
> array in the bss to the heap. The problem is still there. 

It is an existing feature that chooses between malloc and stack. It would need
modification to do the same for large data/bss objects.

> Anyway, my point is that the size of single data does't affact the fact that
> medium code model is missing in aarch64 and aarch64 is lack of PIC large
> code model.

What is missing is efficient support for >4GB of data, right? How that is
implemented is a different question - my point is that it does not require a
new code model. It would be much better if it just worked without users even
needing to think about code models.

Also, what is the purpose of a large fpic model? Are there any applications
that use shared libraries larger than 4GB?

Reply via email to