BugFix: equivalent_node_Bound() was too greedy, reduced to a safe minimum (now mostly...
[libfirm] / ir / ir / irprintf.c
index cffcbb8..e8c80bc 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.
  *
@@ -62,7 +62,8 @@
  */
 static void str_init(void *object, size_t n)
 {
-  strcpy(object, "");
+       (void) n;
+       strcpy(object, "");
 }
 
 /**
@@ -92,6 +93,8 @@ static void str_append_str(void *object, size_t n, const char *str)
  */
 static void file_init(void *object, size_t n)
 {
+       (void) object;
+       (void) n;
 }
 
 /**
@@ -99,7 +102,8 @@ static void file_init(void *object, size_t n)
  */
 static void file_append_char(void *object, size_t n, char ch)
 {
-  fputc(ch, object);
+       (void) n;
+       fputc(ch, object);
 }
 
 /**
@@ -107,7 +111,8 @@ static void file_append_char(void *object, size_t n, char ch)
  */
 static void file_append_str(void *object, size_t n, const char *str)
 {
-  fputs(str, object);
+       (void) n;
+       fputs(str, object);
 }
 
 /**
@@ -115,6 +120,8 @@ static void file_append_str(void *object, size_t n, const char *str)
  */
 static void obst_init(void *object, size_t n)
 {
+       (void) object;
+       (void) n;
 }
 
 /**
@@ -122,8 +129,9 @@ static void obst_init(void *object, size_t n)
  */
 static void obst_append_char(void *object, size_t n, char ch)
 {
-  struct obstack *obst = object;
-  obstack_1grow(obst, ch);
+       struct obstack *obst = object;
+       (void) n;
+       obstack_1grow(obst, ch);
 }
 
 /**
@@ -131,8 +139,9 @@ static void obst_append_char(void *object, size_t n, char ch)
  */
 static void obst_append_str(void *object, size_t n, const char *str)
 {
-  struct obstack *obst = object;
-  obstack_grow(obst, str, strlen(str));
+       struct obstack *obst = object;
+       (void) n;
+       obstack_grow(obst, str, strlen(str));
 }
 
 
@@ -350,6 +359,9 @@ static void firm_emit(char *buf, int buflen, char conversion,
           case symconst_enum_const:  /* enumeration constant */
             snprintf(tv_buf, sizeof(tv_buf), "<ENUM:%s>", get_enumeration_name(get_SymConst_enum(X)));
             break;
+          case symconst_label:       /* label */
+            snprintf(tv_buf, sizeof(tv_buf), "<LABEL:%lu>", get_SymConst_label(X));
+            break;
           default:
             tv_buf[0] = '\0';
           }