This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/41763] valarray_array.h seems to overuse __restrict__
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2009 21:15:33 -0000
- Subject: [Bug libstdc++/41763] valarray_array.h seems to overuse __restrict__
- References: <bug-41763-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2009-10-20 21:15 -------
Not compared with other arguments to be precise. It is fine to have
void foo (int *__restrict__ p, int *__restrict__ q)
{
int *r = p + 10;
while (p != r)
*p++ = *q++;
}
Although p is compared here, it is compared with a pointer based on the same
pointer argument.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41763