This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40898] STDCALL mangling problem for strings @8 instead of @4
- 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: 29 Jul 2009 07:27:14 -0000
- Subject: [Bug fortran/40898] STDCALL mangling problem for strings @8 instead of @4
- References: <bug-40898-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-07-29 07:27 -------
>From the thread at c.l.f:
"A little testing revealed that the assembly code is correct, only the mangled
name is wrong when there is a character argument. Perhaps the mangled name
takes into account a spurious hidden LEN parameter while the code
generator knows there is no such thing."
The issue is: While I corrected the procedure call and the creation of the
procedure itself for BIND(C) [i.e. no hidden-length argument; probably also
returning a "char" instead of a "char, char_len" as return argument], I forgot
to update the declaration of external functions, namely: gfc_get_function_type
That should also help with -fwhole-file issues.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-29 07:27:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40898