On Fri, Sep 02, 2011 at 07:14:58PM +0200, Paolo Carlini wrote: > >Any comments related to the implementation, or examples of real-world > >lame C string length code sequences that would be nice to optimize > >will be greatly appreciated. > I'm only wondering how hard would be taking care more consistently > of the wchar_t counterparts of all these library functions. I don't > think user code using those is so uncommon, at least now that > internationalization is taken more and more seriously.
I'm fairly sure it is much less common than the narrow versions, we don't even handle wprintf and wscanf attributes. Tracking not just char strings, but also wchar_t (or either char, or wchar_t) would complicate the pass somewhat, but I'm more worried that it would not be stressed enough in real-world code and thus would be less tested than would be desirable. Plus it is very premature when none of the wcs* builtins are actually handled in builtins.c and we don't have infrastructure for that. Jakub