http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58519
--- Comment #3 from Steve Ellcey <sje at gcc dot gnu.org> --- That fixed the small testcase I created, I will try a complete build next. For the record the test case that fails with MIPS GCC (-O2 -g -mips64) is: _vdiprintf_r(struct _reent *ptr , int fd , const char *format , __builtin_va_list ap) { char *p; char buf[512]; int n = 512; p = _vasniprintf_r (ptr, buf, &n, format, ap); if (p != buf) _free_r (ptr, p); }