[Bug fortran/40580] Add -fcheck=pointer with runtime check for using an unallocated argument
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jun 29 21:02:00 GMT 2009
------- Comment #2 from burnus at gcc dot gnu dot org 2009-06-29 21:02 -------
Subject: Bug 40580
Author: burnus
Date: Mon Jun 29 21:02:17 2009
New Revision: 149063
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149063
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/pointer_check_1.f90
trunk/gcc/testsuite/gfortran.dg/pointer_check_2.f90
trunk/gcc/testsuite/gfortran.dg/pointer_check_3.f90
trunk/gcc/testsuite/gfortran.dg/pointer_check_4.f90
trunk/gcc/testsuite/gfortran.dg/pointer_check_5.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.texi
trunk/gcc/fortran/invoke.texi
trunk/gcc/fortran/iso-c-binding.def
trunk/gcc/fortran/libgfortran.h
trunk/gcc/fortran/options.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40580
More information about the Gcc-bugs
mailing list