re PR fortran/40580 (Add -fcheck=pointer with runtime check for using an unallocated...
commit20460eb94863954cf7ebdc7bf2193038ac0b781a
authorTobias Burnus <burnus@net-b.de>
Mon, 29 Jun 2009 21:02:17 +0000 (29 23:02 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 29 Jun 2009 21:02:17 +0000 (29 23:02 +0200)
treef4b9667f6f491ec9edcb2471c4bf08b3e532f635
parenta61a36ab30b7711b5d5cf002d52e6e9514499739
re PR fortran/40580 (Add -fcheck=pointer with runtime check for using an unallocated argument)

2009-06-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40580
        * trans-expr.c  (gfc_conv_procedure_call): Add -fcheck=pointer
        * check.
        * libgfortran.h: Add GFC_RTCHECK_POINTER.
        * invoke.texi (-fcheck): Document new pointer option.
        * options.c (gfc_handle_runtime_check_option): Handle pointer
        * option.

        * gfortran.texi (C Binding): Improve wording.
        * iso-c-binding.def: Remove obsolete comment.

2009-06-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40580
        * pointer_check_1.f90: New test.
        * pointer_check_2.f90: New test.
        * pointer_check_3.f90: New test.
        * pointer_check_4.f90: New test.
        * pointer_check_5.f90: New test.

From-SVN: r149063
13 files changed:
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/invoke.texi
gcc/fortran/iso-c-binding.def
gcc/fortran/libgfortran.h
gcc/fortran/options.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_check_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_check_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_check_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_check_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_check_5.f90 [new file with mode: 0644]