This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
- From: "kargl 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 23:45:55 -0000
- Subject: [Bug fortran/32627] [ISO Bind C] Accept c_f_pointer for TYPE
- References: <bug-32627-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from kargl at gcc dot gnu dot org 2007-07-21 23:45 -------
Subject: Bug 32627
Author: kargl
Date: Sat Jul 21 23:45:44 2007
New Revision: 126817
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126817
Log:
2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
PR fortran/32627
* resolve.c (set_name_and_label): Set kind number for character
version of c_f_pointer.
(gfc_iso_c_sub_interface): Set the kind of the SHAPE formal arg to
that of the actual SHAPE arg.
* symbol.c (gen_shape_param): Initialize kind for SHAPE arg.
2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
PR fortran/32627
* libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
for character/string arguments.
* libgfortran/intrinsic/iso_c_binding.c (c_f_pointer_u0): Allow
the optional SHAPE arg to be any valid integer kind.
* libgfortran/gfortran.map: Add c_f_pointer_s0.
* libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
character kind.
* libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
c_f_pointer for complex and logical types.
* libgfortran/gfortran.map: Add c_f_pointer versions for logical
and complex types.
2007-07-21 Christopher D. Rickett <crickett@lanl.gov>
PR fortran/32627
* gfortran.dg/pr32627_driver.c: Driver for pr32627.
* gfortran.dg/pr32627.f03: New test case.
* gfortran.dg/c_f_pointer_logical.f03: New test case.
* gfortran.dg/c_f_pointer_logical_driver.c: Driver for
c_f_pointer_logical.
* gfortran.dg/c_f_pointer_complex_driver.c: Driver for
c_f_pointer_complex.
* gfortran.dg/c_f_pointer_complex.f03: New test case.
* gfortran.dg/c_f_pointer_shape_tests_2_driver.c: Driver for
c_f_pointer_shape_tests_2.
* gfortran.dg/c_f_pointer_shape_tests_2.f03: New test case.
Added:
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_complex.f03
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_complex_driver.c
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_logical.f03
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_logical_driver.c
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2.f03
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_2_driver.c
trunk/gcc/testsuite/gfortran.dg/pr32627.f03
trunk/gcc/testsuite/gfortran.dg/pr32627_driver.c
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/symbol.c
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/gfortran.map
trunk/libgfortran/intrinsics/iso_c_binding.c
trunk/libgfortran/intrinsics/iso_c_generated_procs.c
trunk/libgfortran/mk-kinds-h.sh
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32627