This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regression/48570] gcc-4.6: wrong subscription with -std=c++0x


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]