From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19231 invoked by alias); 4 Aug 2009 09:34:19 -0000 Received: (qmail 18142 invoked by uid 48); 4 Aug 2009 09:34:03 -0000 Date: Tue, 04 Aug 2009 09:34:00 -0000 Message-ID: <20090804093403.18141.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40955] STDCALL attributes are not saved in the .MOD files In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00160.txt.bz2 ------- 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