This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,Fortran] PR40605 Fix some issues with -fcheck=pointer
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 9 Jul 2009 11:34:13 +0200
- Subject: Re: [Patch,Fortran] PR40605 Fix some issues with -fcheck=pointer
- References: <20090709063611.GA9276@net-b.de>
OK for trunk.
Thanks
Paul
On Thu, Jul 9, 2009 at 8:36 AM, Tobias Burnus<burnus@net-b.de> wrote:
> Dear all,
>
> the recently added -fcheck=pointer had a couple of issues:
>
> a) If the actual argument optional and absent, there was an ICE
> b) If the actual argument was a generic procedure, the wrong
> ? attributes were picked up (generic not specific) which could
> ? lead to an ICE
> c) If the argument associated with an OPTIONAL actual argument
> ? was not present, a segfault occured at run time
> d) Using intrinsic functions could lead to a segfault as
> ? sym->result was not set
>
> The attached patch fixes this, where especially (c) is a bit lengthy.
> I hope I have not missed anything.
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
> Tobias
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy