X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fxmalloc.c;h=47ee42791d049f6622b08c5f3cbe17a810678675;hb=60ade3bddea81d39496893b501d60ced4c264cc7;hp=12f22374a07a5b3cdaca6e0e5245a8286783a275;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/adt/xmalloc.c b/ir/adt/xmalloc.c index 12f22374a..47ee42791 100644 --- a/ir/adt/xmalloc.c +++ b/ir/adt/xmalloc.c @@ -28,6 +28,7 @@ #include "config.h" #include +#include #include #include "xmalloc.h" @@ -35,7 +36,9 @@ static NORETURN xnomem(void) { - panic("out of memory"); + /* Do not use panic() here, because it might try to allocate memory! */ + fputs("out of memory", stderr); + abort(); } void *xmalloc(size_t size)