[patch, fortran] Load scalar intent-in variables at the beginning of procedures

Tobias Burnus Tobias_Burnus@mentor.com
Thu Nov 21 14:39:00 GMT 2019


Hi Richard,

On 11/21/19 3:09 PM, Richard Biener wrote:
> So I think what you'd need to do is make 'i' marked as TYPE_RESTRICT 
> then. I think we don't yet handle it but it means that bar() may not 
> modify 'i' but via 'i' (but it doesn't get 'i' as a parameter). 

Okay, that would be then the attached patch. – I can confirm that it 
does not work.

Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.diff
Type: text/x-patch
Size: 865 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191121/7eb77d3d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.f90
Type: text/x-fortran
Size: 333 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191121/7eb77d3d/attachment-0001.bin>


More information about the Gcc-patches mailing list