Comment 3 for bug 1968584

Revision history for this message
Liviu Ionescu (ilg) wrote :

In newlib the problem is avoided with a macro that defines an attribute to disable the optimisation; the function definitions look like:

void
__attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
*memset(void *_dst, int v, size_t size) { ... }