This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32580] iso_c_binding c_f_procpointer / procedure pointers
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2008 19:54:31 -0000
- Subject: [Bug fortran/32580] iso_c_binding c_f_procpointer / procedure pointers
- References: <bug-32580-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from janus at gcc dot gnu dot org 2008-07-02 19:54 -------
Subject: Bug 32580
Author: janus
Date: Wed Jul 2 19:53:37 2008
New Revision: 137386
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137386
Log:
2008-07-02 Janus Weil <janus@gcc.gnu.org>
Tobias Burnus <burnus@net-b.de>
Paul Thomas <pault@gcc.gnu.org>
PR fortran/32580
* gfortran.h (struct gfc_symbol): New member "proc_pointer".
* check.c (gfc_check_associated,gfc_check_null): Implement
procedure pointers.
* decl.c (match_procedure_decl): Ditto.
* expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol): Ditto.
* interface.c (compare_actual_formal): Ditto.
* match.h: Ditto.
* match.c (gfc_match_pointer_assignment): Ditto.
* parse.c (parse_interface): Ditto.
* primary.c (gfc_match_rvalue,match_variable): Ditto.
* resolve.c (resolve_fl_procedure): Ditto.
* symbol.c (check_conflict,gfc_add_external,gfc_add_pointer,
gfc_copy_attr,gen_fptr_param,build_formal_args): Ditto.
* trans-decl.c (get_proc_pointer_decl,gfc_get_extern_function_decl,
create_function_arglist): Ditto.
* trans-expr.c (gfc_conv_variable,gfc_conv_function_val,
gfc_conv_function_call,gfc_trans_pointer_assignment): Ditto.
2008-07-02 Janus Weil <janus@gcc.gnu.org>
Tobias Burnus <burnus@net-b.de>
PR fortran/32580
* gfortran.dg/c_f_pointer_tests_3.f90: Updated.
* gfortran.dg/proc_decl_1.f90: Updated.
* gfortran.dg/proc_ptr_1.f90: New.
* gfortran.dg/proc_ptr_2.f90: New.
* gfortran.dg/proc_ptr_3.f90: New.
* gfortran.dg/proc_ptr_4.f90: New.
* gfortran.dg/proc_ptr_5.f90: New.
* gfortran.dg/proc_ptr_6.f90: New.
* gfortran.dg/proc_ptr_7.f90: New.
* gfortran.dg/proc_ptr_8.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/proc_ptr_1.f90 (with props)
trunk/gcc/testsuite/gfortran.dg/proc_ptr_2.f90 (with props)
trunk/gcc/testsuite/gfortran.dg/proc_ptr_3.f90 (with props)
trunk/gcc/testsuite/gfortran.dg/proc_ptr_4.f90 (with props)
trunk/gcc/testsuite/gfortran.dg/proc_ptr_5.f90 (with props)
trunk/gcc/testsuite/gfortran.dg/proc_ptr_6.f90 (with props)
trunk/gcc/testsuite/gfortran.dg/proc_ptr_7.c
trunk/gcc/testsuite/gfortran.dg/proc_ptr_7.f90
trunk/gcc/testsuite/gfortran.dg/proc_ptr_8.c
trunk/gcc/testsuite/gfortran.dg/proc_ptr_8.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/check.c
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/match.c
trunk/gcc/fortran/match.h
trunk/gcc/fortran/parse.c
trunk/gcc/fortran/primary.c
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/symbol.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/c_f_pointer_tests_3.f90
trunk/gcc/testsuite/gfortran.dg/proc_decl_1.f90
Propchange: trunk/gcc/testsuite/gfortran.dg/proc_ptr_1.f90
('svn:executable' added)
Propchange: trunk/gcc/testsuite/gfortran.dg/proc_ptr_2.f90
('svn:executable' added)
Propchange: trunk/gcc/testsuite/gfortran.dg/proc_ptr_3.f90
('svn:executable' added)
Propchange: trunk/gcc/testsuite/gfortran.dg/proc_ptr_4.f90
('svn:executable' added)
Propchange: trunk/gcc/testsuite/gfortran.dg/proc_ptr_5.f90
('svn:executable' added)
Propchange: trunk/gcc/testsuite/gfortran.dg/proc_ptr_6.f90
('svn:executable' added)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32580