This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 46937 - fix function annotation for derived types with pointer component
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 14 Dec 2010 09:02:28 -0800
- Subject: Re: [Patch, Fortran] PR 46937 - fix function annotation for derived types with pointer component
- References: <4D0797A5.80404@net-b.de>
On Tue, Dec 14, 2010 at 05:13:25PM +0100, Tobias Burnus wrote:
> gfortran 4.6 annotates functions to tell the middle end that certain
> arguments are not modified.
>
> Well, the previous patch was too eager by forgetting about pointer
> components of derived types, as the PR shows. This patch adds a check
> for (proc-)pointer components and also takes care of BT_CLASS.
>
> Build and currently regtesting on x86-64-linux.
> OK for the trunk?
>
OK.
--
Steve