fixed some bugs
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Fri, 24 Feb 2006 13:23:23 +0000 (13:23 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Fri, 24 Feb 2006 13:23:23 +0000 (13:23 +0000)
ir/be/ia32/ia32_new_nodes.c
ir/be/ia32/ia32_new_nodes.h

index a498094..070d4de 100644 (file)
@@ -488,13 +488,8 @@ static void extend_ia32_am_offs(ir_node *node, char *offset, char op) {
                attr->am_offs = xcalloc(1, sizeof(*(attr->am_offs)));
                obstack_init(attr->am_offs);
        }
-       else {
-               /* obstack is initialized -> there is already one offset */
-               /* present -> connect the offsets with an add            */
-               obstack_printf(attr->am_offs, " %c ", op);
-       }
 
-       obstack_printf(attr->am_offs, "%s", offset);
+       obstack_printf(attr->am_offs, "%c%s", op, offset);
 }
 
 /**
@@ -568,7 +563,7 @@ void set_ia32_sc(ir_node *node, char *sc) {
 /**
  * Gets the string representation of the internal const (tv or symconst)
  */
-char *get_ia32_cnst(ir_node *node) {
+char *get_ia32_cnst(const ir_node *node) {
   ia32_attr_t *attr = get_ia32_attr(node);
   return attr->cnst;
 }
index 7948154..96ca3a5 100644 (file)
@@ -110,7 +110,7 @@ void set_ia32_sc(ir_node *node, char *sc);
 /**
  * Gets the string representation of the internal const (tv or symconst)
  */
-char *get_ia32_cnst(ir_node *node);
+char *get_ia32_cnst(const ir_node *node);
 
 /**
  * Gets the mode of the stored/loaded value (only set for Store/Load)