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) { ... }
In newlib the problem is avoided with a macro that defines an attribute to disable the optimisation; the function definitions look like:
void tree-loop- distribute- patterns" )))
__attribute__ ((__optimize__ ("-fno-
*memset(void *_dst, int v, size_t size) { ... }