This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29697] gfortran should use TYPE_QUAL_CONST etc.
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2006 17:03:32 -0000
- Subject: [Bug fortran/29697] gfortran should use TYPE_QUAL_CONST etc.
- References: <bug-29697-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2006-11-03 17:03 -------
A good introduction into restricted can be found at
http://developers.sun.com/sunstudio/articles/cc_restrict.html
Maybe this is something for the array implementation in gfortran?
I don't fully understand how the data part of arrays are used, but I would
assume they are pointers where the "restricted" part is not given.
As Fortran requires "target" for arrays to which a pointer may point, it should
be easy to add "restricted" in the non-target case; according to the article it
helps the compiler quit a bit to optimize - as "const" does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29697