I don't recall which port complained, but pr120654.c was failing on one or more
of the embedded targets due to the use of malloc/free. This change just turns
them into the __builtin variants which makes everyone happy again.
gcc/testsuite
* gcc.dg/torture/pr120654.c: Use __builtin variants of malloc and free.
int a, c, e, f, h, j;
long g, k;
-void *malloc(long);
-void free(void *);
int b(int m) {
if (m || a)
return 1;
}
void n() {
long o;
- int *p = malloc(sizeof(int));
+ int *p = __builtin_malloc(sizeof(int));
k = 1 % j;
for (; i() + f + h; o++)
if (p[d(j + 6, (int)k + 1992695866) + h + f + j + (int)k - 1 + o])
- free(p);
+ __builtin_free(p);
}