really disable CSE in backend, and add an assert about that in bespill.c
[libfirm] / ir / stat / pattern.c
index 4e9b5cd..f65cb7a 100644 (file)
  * PURPOSE.
  */
 
-/*
- * pattern history
+/**
+ * @file
+ * @brief   Statistics for Firm. Pattern history.
+ * @author  Michael Beck
+ * @version $Id$
  */
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -39,6 +41,8 @@
 #include "pattern_dmp.h"
 #include "hashptr.h"
 
+#ifdef FIRM_STATISTICS
+
 /*
  * just be make some things clear :-), the
  * poor man "generics"
@@ -373,6 +377,7 @@ typedef struct _addr_entry_t {
 static int addr_cmp(const void *p1, const void *p2, size_t size) {
        const addr_entry_t *e1 = p1;
        const addr_entry_t *e2 = p2;
+       (void) size;
 
        return e1->addr != e2->addr;
 }  /* addr_cmp */
@@ -874,6 +879,7 @@ void stat_init_pattern_history(int enable) {
  * Finish the pattern history.
  */
 void stat_finish_pattern_history(const char *fname) {
+       (void) fname;
        if (! status->enable)
                return;
 
@@ -885,3 +891,5 @@ void stat_finish_pattern_history(const char *fname) {
 
        status->enable = 0;
 }  /* stat_finish_pattern_history */
+
+#endif /* FIRM_STATISTICS */