[Patch, Fortran] Pointer remapping

Daniel Kraft d@domob.eu
Thu Aug 19 10:56:00 GMT 2010


Hi,

the attached patch implements pointer bounds remapping (F2003, see PR 
45016) and pointer rank remapping (F2003 and generalized in F2008, see 
PR 29785).  To my knowledge, these two new features should be fully 
supported with it.

-fcheck=bounds was extended to check for invalid rank remapping 
assignment (target is smaller than the declared bounds for the pointer). 
  I wonder whether we should print a warning (for instance with 
-Wsurprising) when the sizes are known at compile-time and the target is 
strictly larger than the declared bounds -- this is valid, but I'm not 
sure whether it is useful or will happen most of the time accidentally. 
  Suggestions?  My current plan is to leave it like that, i.e., no 
warning.  But it is fairly trivial to add the warning.

Currently regtesting on GNU/Linux-x86-32.  Ok for trunk if no regressions?

Yours,
Daniel

-- 
http://www.pro-vegan.info/
--
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.changelog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100819/8c0f733a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100819/8c0f733a/attachment-0001.ksh>


More information about the Fortran mailing list