It might be considered a backend issue, but in general it
is a binutils (so OP is in the wrong list!).

I beg to disagree with the "in general it is a binutils issue" part.
One of the posters explained why the information needed for name
decoration can't be determined at link-time (nor at assembly-time,
from what I understood). I think it's completely a compiler issue: if
there's a switch (-mrtd) to change the calling convention of the
generated code, there should probably be another one to also change
the naming convention accordingly.

On a related note, I found in gcc/config/i386/i386.c the following
comment: "The attribute stdcall is equivalent to RTD on a per module
basis." I think it's not true wrt to naming convention.

I otherwise perfectly agree with you about not adding yet another
extension to the Fortran front-end.

FX

Reply via email to