X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fadt%2Fxmalloc.c;h=47ee42791d049f6622b08c5f3cbe17a810678675;hb=dcff73b2cc34378750e2cc1979a4b120e19767a9;hp=9e547c7c880ba0ebef40fbbe132d472dc0a4fc02;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/adt/xmalloc.c b/ir/adt/xmalloc.c index 9e547c7c8..47ee42791 100644 --- a/ir/adt/xmalloc.c +++ b/ir/adt/xmalloc.c @@ -21,7 +21,6 @@ * @file * @brief implementation of xmalloc & friends * @author Markus Armbruster - * @version $Id$ */ /* @@@ ToDo: replace this file with the one from liberty. @@ -29,6 +28,7 @@ #include "config.h" #include +#include #include #include "xmalloc.h" @@ -36,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)