[Bug libstdc++/41763] valarray_array.h seems to overuse __restrict__

gdr at cs dot tamu dot edu gcc-bugzilla@gcc.gnu.org
Tue Oct 20 16:43:00 GMT 2009



------- Comment #2 from gdr at cs dot tamu dot edu  2009-10-20 16:42 -------
Subject: Re:  valarray_array.h seems to overuse __restrict__

"paolo dot carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| I think this line, in general all the uses of __restrict__ in valarray are
| *very* old... Let's CC Gaby, in case he has some comments.

Hi Paolo,

  Thanks for letting me know what is going on.
Yes, you're right that use of __restrict__ dates back from era where the
compiler was a bit weak and things had to be written certain way.

The function can be safely changed (and similar uses should be fixed
too.)

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41763



More information about the Gcc-bugs mailing list