symbol names are not created with stdcall syntax: MINGW, (GCC) 4.3.0 20061021

François-Xavier Coudert fxcoudert@gmail.com
Fri Mar 9 16:31:00 GMT 2007


> 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



More information about the Gcc mailing list