On Fri, Oct 18, 2019 at 11:25:53AM +0100, Richard Earnshaw (lists) wrote: > > void * > __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) > memset (void *s, int c, size_t n) > { > int i; > for (i=0; i<n; i++) > ((char *)s)[i] = c; > > return s; > } Wouldn't void *memset (void *s, int c, size_t n) { return __builtin_memset (s, c, n); } be a cleaner solution to this? Unfortunately, this compiles to a jump to itself. No matter whether I use the -fno-builtin-memset flag or not. -- Josef Wolf jw@xxxxxxxxxxxxx