diff options
author | Christopher D. Rickett <crickett@lanl.gov> | 2007-07-19 06:14:19 +0000 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-07-19 08:14:19 +0200 |
commit | 972345f2c98204eb030568cf15b023d15adad345 (patch) | |
tree | 535259e91e0fedbc67e86254b4f1684dbabc21f8 /libgfortran | |
parent | 2211d9eae7c06cf47bbd32a0e0e04ec50f39fcbe (diff) | |
download | gcc-972345f2c98204eb030568cf15b023d15adad345.zip gcc-972345f2c98204eb030568cf15b023d15adad345.tar.gz gcc-972345f2c98204eb030568cf15b023d15adad345.tar.bz2 |
re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function)
2007-07-19 Christopher D. Rickett <crickett@lanl.gov>
PR fortran/32600
* trans-expr.c (gfc_conv_function_call): Inline C_LOC.
2007-07-19 Christopher D. Rickett <crickett@lanl.gov>
PR fortran/32600
* libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC.
* libgfortran/intrinsics/iso_c_binding.h: Ditto.
* libgfortran/gfortran.map: Ditto.
From-SVN: r126744
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 7 | ||||
-rw-r--r-- | libgfortran/gfortran.map | 1 | ||||
-rw-r--r-- | libgfortran/intrinsics/iso_c_binding.c | 17 | ||||
-rw-r--r-- | libgfortran/intrinsics/iso_c_binding.h | 1 |
4 files changed, 7 insertions, 19 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index a6b20fb..560e8bc 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,10 @@ +2007-07-19 Christopher D. Rickett <crickett@lanl.gov> + + PR fortran/32600 + * libgfortran/intrinsics/iso_c_binding.c: Remove C_LOC. + * libgfortran/intrinsics/iso_c_binding.h: Ditto. + * libgfortran/gfortran.map: Ditto. + 2007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> diff --git a/libgfortran/gfortran.map b/libgfortran/gfortran.map index 76dba0c..f8d184a 100644 --- a/libgfortran/gfortran.map +++ b/libgfortran/gfortran.map @@ -1019,7 +1019,6 @@ GFORTRAN_1.0 { __iso_c_binding_c_f_pointer_u0; __iso_c_binding_c_f_procpointer; __iso_c_binding_c_funloc; - __iso_c_binding_c_loc; local: *; }; diff --git a/libgfortran/intrinsics/iso_c_binding.c b/libgfortran/intrinsics/iso_c_binding.c index 3357547..d73a9ce 100644 --- a/libgfortran/intrinsics/iso_c_binding.c +++ b/libgfortran/intrinsics/iso_c_binding.c @@ -213,23 +213,6 @@ ISO_C_BINDING_PREFIX (c_associated_2) (void *c_ptr_in_1, void *c_ptr_in_2) } -/* Return the C address of the given Fortran allocatable object. */ - -void * -ISO_C_BINDING_PREFIX (c_loc) (void *f90_obj) -{ - if (f90_obj == NULL) - { - runtime_error ("C_LOC: Attempt to get C address for Fortran object" - " that has not been allocated or associated"); - abort (); - } - - /* The "C" address should be the address of the object in Fortran. */ - return f90_obj; -} - - /* Return the C address of the given Fortran procedure. This routine is expected to return a derived type of type C_FUNPTR, which represents the C address of the given Fortran object. */ diff --git a/libgfortran/intrinsics/iso_c_binding.h b/libgfortran/intrinsics/iso_c_binding.h index afd8552..1e51ad5 100644 --- a/libgfortran/intrinsics/iso_c_binding.h +++ b/libgfortran/intrinsics/iso_c_binding.h @@ -64,7 +64,6 @@ void ISO_C_BINDING_PREFIX(c_f_pointer_u0) (void *, gfc_array_void *, void ISO_C_BINDING_PREFIX(c_f_pointer_d0) (void *, gfc_array_void *, const array_t *); -void *ISO_C_BINDING_PREFIX(c_loc) (void *); void *ISO_C_BINDING_PREFIX(c_funloc) (void *); #endif |