This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
- 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: 21 Jul 2007 20:17:56 -0000
- Subject: [Bug fortran/32600] [ISO Bind C] C_LOC/C_FUNLOC should not be library functions
- References: <bug-32600-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from burnus at gcc dot gnu dot org 2007-07-21 20:17 -------
Besides c_funloc (patch submitted) and c_f_pointer (scalar case, i.e. no SHAPE)
also c_associated (c_associated_1/c_associated_2) can be moved into trans*.c
The code for c_associated is essentially the same as for Fortran's ASSOCIATED,
except there is no need for checking the array case. (Cf. trans-intrinsic.c's
gfc_conv_associated.)
(Side note: I miss a __iso_c_binding_ prefix for these library routines,
currently one gets in the dump, e.g., "c_f_pointer_i4" instead of the expected
"__iso_c_binding_c_f_pointer_i4"; but libgfortran only exports the latter?!?)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crickett at lanl dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32600