This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40955] STDCALL attributes are not saved in the .MOD files
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2009 09:34:03 -0000
- Subject: [Bug fortran/40955] STDCALL attributes are not saved in the .MOD files
- References: <bug-40955-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2009-08-04 09:34 -------
The following patch is also missing. Probably appears when using abstract
interfaces. One needs to check the proc pointer machinery as well as there one
might also miss such an option - there, one might also need to add options.
e.g. the interface name points to a STDCALL function while one adds a DLLEXPORT
(or something like that - I cannot come up with an example which makes sense).
Index: gcc/fortran/symbol.c
===================================================================
--- gcc/fortran/symbol.c (revision 150396)
+++ gcc/fortran/symbol.c (working copy)
@@ -1641,6 +1641,8 @@ gfc_copy_attr (symbol_attribute *dest, s
{
int is_proc_lang_bind_spec;
+ dest->ext_attr = src->ext_attr;
+
if (src->allocatable && gfc_add_allocatable (dest, where) == FAILURE)
goto fail;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40955