From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1903 invoked by alias); 13 Nov 2007 08:07:42 -0000 Received: (qmail 478 invoked by uid 48); 13 Nov 2007 08:07:29 -0000 Date: Tue, 13 Nov 2007 08:07:00 -0000 Subject: [Bug fortran/34079] New: Bind(C): Don't pass the string length as argument (for STDCALL) X-Bugzilla-Reason: CC Message-ID: 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: 2007-11/txt/msg01149.txt.bz2 Using STDCALL, not the callee but the called procedure pops the arguments from the stack. The problem is that gfortran currently also for BIND(C) passes the string lengths as arguments. See also: http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/19d77dfc75f8be58 -- Summary: Bind(C): Don't pass the string length as argument (for STDCALL) Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34079