[Patch, fortran] PR20541 - allocatable components (TR15541)
Paul Thomas
paulthomas2@wanadoo.fr
Fri Oct 6 04:33:00 GMT 2006
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
More information about the Fortran
mailing list