This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29697] gfortran should use TYPE_QUAL_CONST etc.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]