This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR20541 - allocatable components (TR15541)


Tobias,


Out of curiousity, why didn't you use alloca instead of doing all this bookkeeping? Maybe because you would have needed bookkeeping anyway for the case where the allocatable component would have been > -fmax-stack-var-size? Or is there a simpler reason?

Ignorance.


Having looked at the spec. for alloca, you are right, we would have had to branch for > -fmax-stack-var-size; otherwise the warnings in the gcc manual would hold good. I will put a TODO in the code somewhere.

It would simplify the code considerably - take a look for some of the testcases!

Good idea

Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]