[Patch, Fortran] PR 46937 - fix function annotation for derived types with pointer component

Tobias Burnus burnus@net-b.de
Tue Dec 14 17:14:00 GMT 2010


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?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intent-fix.diff
Type: text/x-patch
Size: 2039 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101214/94f9441c/attachment.bin>


More information about the Gcc-patches mailing list