This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: Stack overflow with stdcall and transfer


On Wed, Jul 28, 2010 at 11:42:47PM +0100, N.M. Maclaren wrote:
> On Jul 28 2010, Danny Smith wrote:
> >From: "Richard Guenther" <richard.guenther@gmail.com>
> >
> >>How would the compiler know with which flags its runtime was compiled?
> >
> >One way would be to decorate stdcall symbols as per MS Windows convention 
> >so that mismatches could be diagnosed in thye compiler and linker. 
> 
> Yes.  Another, simpler, way is to use a few special names as flags and
> define the symbols to indicate whether or not a particular option was used.

The nice thing about gfortran (and GCC) is that anyone 
can download the source code and "fix" an issue.  Patch
are welcomed.

-- 
Steve


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