xcalloc optimization breaks testsuite