ia32: Do not ignore the floating point control word anymore and make it callee-save.
[libfirm] / ir / common / error.c
index be05616..d18a121 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
  * @file
  * @brief     Error handling for libFirm
  * @author    Michael Beck
- * @version   $Id$
  */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
 
 #include <stdlib.h>
 
 #include "error.h"
 #include "irprintf.h"
 
-NORETURN panic(const char *fmt, ...) {
+NORETURN (panic)(char const *const file, int const line, char const *const func, char const *const fmt, ...)
+{
        va_list ap;
 
-       fputs("libFirm panic: ", stderr);
+       fprintf(stderr, "%s:%d: libFirm panic in %s: ", file, line, func);
        va_start(ap, fmt);
        ir_vfprintf(stderr, fmt, ap);
        va_end(ap);