X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fxmalloc.c;h=47ee42791d049f6622b08c5f3cbe17a810678675;hb=b8dd50e584e9747da3d0bdc83dff71e13e9deb08;hp=9e547c7c880ba0ebef40fbbe132d472dc0a4fc02;hpb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;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)