This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,Fortran] PR 40580 - add -fcheck=pointer for some actual argument checks


OK'ed after discussion on #gfortran.

Thanks

Paul

On Mon, Jun 29, 2009 at 9:57 PM, Tobias Burnus<burnus@net-b.de> wrote:
> Hello,
>
> after spending some time today to pinpoint a problem, I decided having a
> -fcheck=pointer makes sense. The checking happens if one passes an
> ALLOCATABLE or POINTER (or proc-pointer) actual argument to a dummy
> which is not allocatable nor a pointer. In that case, the actual
> argument needs to be allocated / associated, which this patch checks.
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
> Tobias
>
> PS: The patch contains two other small changes; one to *def is trivial
> and one to *.texi brings the words closer to the standard and describes
> better what is actually done (e.g. copy-in/out is not really call by
> reference, though the effect is [almost] the same).
>



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]