This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH,fortran]: [Fwd: fix part of PR 32600] - c_funloc
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 22 Jul 2007 17:14:00 -0700
- Subject: Re: [PATCH,fortran]: [Fwd: fix part of PR 32600] - c_funloc
- References: <46A267C0.3050904@net-b.de>
On Sat, Jul 21, 2007 at 10:08:32PM +0200, Tobias Burnus wrote:
>
> (Does anyone understand why this is not prefixed by __iso_c_binding_ ?
> "nm libgfortran.a" shows that c_associated_* and c_f_pointer exist only
> in properly prefixed form?)
>
I suspect you need to fix resolve.c(gfc_iso_c_func_interface)
to include the prefix (see line 1748).
This
sprintf (name, "%s_1", sym->name);
may need to be
sprintf (name, "__iso_c_binding_%s_1", sym->name);
--
Steve