------- Additional Comments From rth at gcc dot gnu dot org 2005-08-09 17:44 ------- Yes, the funny cast is *intended* to alias all memory, and thus force anything that might potentially alias the string to be written back. We don't have the ability to conclude that __d3 won't be affected.
As for <bits/string.h>, the version in current glibc seems to be very different and should not exhibit the problem shown here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22045