This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24520] Temporary constant array descriptors being declared at wrong binding level.
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2006 08:38:27 -0000
- Subject: [Bug fortran/24520] Temporary constant array descriptors being declared at wrong binding level.
- References: <bug-24520-9236@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from paul dot richard dot thomas at cea dot fr 2006-03-16 08:38 -------
Yes, it is not quite as spectacular as before but present nonetheless. By
comparing pointer and non-pointer cases, I measure an overhead of 12 +/- 7 ns
on a 2.4Ghz PIV. I have no idea why the error is so large but it bobs around,
according to the size of the array; eg. for array size N = 1, it is 19ns, for N
= 16 is 16ns, whilst n = 4 is only hit for 6ns.
In preparing the array TRANSFER intrinsic, I have learned more about parameter
passing than I like to think about. *sigh* I think it might be an easy matter
to promote the case of a constant descriptor up to the procedure scope. I t
has been pushed onto the TODO stack.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24520