re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function)
authorChristopher D. Rickett <crickett@lanl.gov>
Mon, 23 Jul 2007 06:03:33 +0000 (06:03 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 23 Jul 2007 06:03:33 +0000 (08:03 +0200)
commit089db47df6876c088444d51c3d2f0b33797e6579
tree28b50eccc46d25b2454b71bb9460732f43780c54
parentdb75c37a3a7aca7e7f4c634662d9cd9fab11518e
re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function)

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>
    Tobias Burnus  <burnus@net-b.de>

PR fortran/32600
* trans-expr.c (gfc_conv_function_call): Handle c_funloc.
* trans-types.c: Add pfunc_type_node.
(gfc_init_types,gfc_typenode_for_spec): Use it.
* resolve.c (gfc_iso_c_func_interface): Fix whitespace and
improve error message.

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>

PR fortran/32600
* intrinsics/iso_c_binding.c (c_funloc): Remove.
* intrinsics/iso_c_binding.h: Remove c_funloc.
* gfortran.map: Ditto.

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>

PR fortran/32600
* gfortran.dg/c_funloc_tests_5.f03: New.
* gfortran.dg/c_funloc_tests_5.f04: New.
* gfortran.dg/c_funloc_tests_4_driver.c: New.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r126835
12 files changed:
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_funloc_tests_4.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_funloc_tests_4_driver.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_funloc_tests_5.f03 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/gfortran.map
libgfortran/intrinsics/iso_c_binding.c
libgfortran/intrinsics/iso_c_binding.h