From 20460eb94863954cf7ebdc7bf2193038ac0b781a Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Mon, 29 Jun 2009 23:02:17 +0200 Subject: re PR fortran/40580 (Add -fcheck=pointer with runtime check for using an unallocated argument) 2009-06-29 Tobias Burnus 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 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 --- gcc/fortran/invoke.texi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/fortran/invoke.texi') diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index c471521..5d0448f 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -166,7 +166,7 @@ and warnings}. @gccoptlist{-fno-automatic -ff2c -fno-underscoring @gol -fwhole-file -fsecond-underscore @gol -fbounds-check -fcheck-array-temporaries -fmax-array-constructor =@var{n} @gol --fcheck=@var{} +-fcheck=@var{} -fmax-stack-var-size=@var{n} @gol -fpack-derived -frepack-arrays -fshort-enums -fexternal-blas @gol -fblas-matmul-limit=@var{n} -frecursive -finit-local-zero @gol @@ -1203,6 +1203,7 @@ by use of the @option{-ff2c} option. @opindex @code{fcheck} @cindex array, bounds checking @cindex bounds checking +@cindex pointer checking @cindex range checking @cindex subscript checking @cindex checking subscripts @@ -1241,6 +1242,9 @@ checking substring references. Enable generation of run-time checks for invalid modification of loop iteration variables. +@item @samp{pointer} +Enable generation of run-time checks for pointers and allocatables. + @item @samp{recursion} Enable generation of run-time checks for recursively called subroutines and functions which are not marked as recursive. See also @option{-frecursive}. -- cgit v1.1