It would be nice to have a builtin for memchr too, for many reasons. For example, on the C++ library side, char_traits<char>::find could be better optimized; we could avoid including <cstring> anywhere in the headers (__builtin_memcpy, memmove, memset, memcmp are already available!)...
-- Summary: Missing __builtin_memchr Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pcarlini at suse dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31852