projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be_lower_for_target is now a simple function in the public API
[libfirm]
/
ir
/
stat
/
statev.c
diff --git
a/ir/stat/statev.c
b/ir/stat/statev.c
index
44bfa27
..
3d61fac
100644
(file)
--- a/
ir/stat/statev.c
+++ b/
ir/stat/statev.c
@@
-39,6
+39,8
@@
#include "config.h"
#include "config.h"
+#if defined(FIRM_STATISTICS) && !defined(DISABLE_STATEV)
+
#ifdef HAVE_REGEX_H
#define FIRM_HAVE_REGEX
#endif
#ifdef HAVE_REGEX_H
#define FIRM_HAVE_REGEX
#endif
@@
-54,7
+56,7
@@
#include <zlib.h>
#define mfprintf gzprintf
#include <zlib.h>
#define mfprintf gzprintf
-static gzFile
*
stat_ev_file = NULL;
+static gzFile
stat_ev_file = NULL;
#else
#else
@@
-120,10
+122,10
@@
void stat_ev_begin(const char *prefix, const char *filt)
#ifdef FIRM_HAVE_LIBZ
snprintf(buf, sizeof(buf), "%s.ev.gz", prefix);
#ifdef FIRM_HAVE_LIBZ
snprintf(buf, sizeof(buf), "%s.ev.gz", prefix);
- stat_ev_file
= gzopen(buf, "wt9");
+ stat_ev_file = gzopen(buf, "wt9");
#else
snprintf(buf, sizeof(buf), "%s.ev", prefix);
#else
snprintf(buf, sizeof(buf), "%s.ev", prefix);
- stat_ev_file
= fopen(buf, "wt");
+ stat_ev_file = fopen(buf, "wt");
#endif
if (filt && filt[0] != '\0') {
#endif
if (filt && filt[0] != '\0') {
@@
-150,3
+152,5
@@
void stat_ev_end(void)
#endif
}
}
#endif
}
}
+
+#endif