This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: BLOCK DATA ?
On Monday 30 August 2004 13:39, Tobias Schlüter wrote:
> Arg, patch retracted.
>
> Tobias Schlüter wrote:
> >>+ static int serial = 0;
> >>+ char name[GFC_MAX_SYMBOL_LEN+1];
> >>
> >>+ snprintf (name, GFC_MAX_SYMBOL_LEN, "_BLOCK_DATA_%d", serial++);
>
> This will of course break when there are BLOCK DATAs in different files,
> it's still an enhancement over the current situation, but I don't think
> it's worth it.
Why are we outputting assembly for BLOCK DATA in the first place?
I can see it makes things easier for the frontend treats them as procedures,
but I don't see any reason to actually generate code for these.
Paul