http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48570
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-04-12 12:44:03 UTC --- There are lots of optimizations that are only present for narrow strings but logically make sense for wide strings as well (for example, some str* and mem* built-in functions should logically have wcs* and wmem* analogues ... it was while looking at that some time ago that I found glibc's wmemcmp was wrongly comparing wide characters as type wint_t instead of wchar_t). Hopefully not many cases need addressing to fix this wrong-code bug, but the infrastructure for extracting values from wide string constants could be of use in future for dealing with the more general missing optimizations.