fix bad format string for gendecls
authorMatthias Braun <matze@braunis.de>
Fri, 15 Dec 2006 12:46:02 +0000 (12:46 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 15 Dec 2006 12:46:02 +0000 (12:46 +0000)
ir/be/TEMPLATE/TEMPLATE_gen_decls.c
ir/be/arm/arm_gen_decls.c
ir/be/ia32/ia32_gen_decls.c
ir/be/mips/mips_gen_decls.c
ir/be/ppc32/ppc32_gen_decls.c

index d55d40a..2c5b003 100644 (file)
@@ -351,7 +351,7 @@ static void dump_string_cst(struct obstack *obst, entity *ent)
       if (isprint(c))
        obstack_printf(obst, "%c", c);
       else
-       obstack_printf(obst, "%O", c);
+       obstack_printf(obst, "\\%o", c);
       break;
     }
   }
index d9706fa..bd7f143 100644 (file)
@@ -3,6 +3,9 @@
  * @date 14.02.2006
  * @version $Id$
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <string.h>
@@ -344,9 +347,9 @@ static void dump_string_cst(struct obstack *obst, ir_entity *ent)
     case '\t': obstack_printf(obst, "\\t"); break;
     default  :
       if (isprint(c))
-       obstack_printf(obst, "%c", c);
+                 obstack_printf(obst, "%c", c);
       else
-       obstack_printf(obst, "%O", c);
+                 obstack_printf(obst, "\\%o", c);
       break;
     }
   }
index a1d9038..0a9ef29 100644 (file)
@@ -329,7 +329,7 @@ static void dump_string_cst(obstack_t *obst, ir_entity *ent)
                        if (isprint(c))
                                obstack_printf(obst, "%c", c);
                        else
-                               obstack_printf(obst, "%O", c);
+                               obstack_printf(obst, "\\%o", c);
                        break;
                }
        }
index fcc307b..a077145 100644 (file)
@@ -304,7 +304,7 @@ static void dump_string_cst(struct obstack *obst, ir_entity *ent)
       if (isprint(c))
        obstack_printf(obst, "%c", c);
       else
-       obstack_printf(obst, "%O", c);
+       obstack_printf(obst, "\\%o", c);
       break;
     }
   }
index 794728b..5f65cef 100644 (file)
@@ -3,6 +3,9 @@
  * @date 14.02.2006
  * @version $Id$
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <string.h>
@@ -348,7 +351,7 @@ static void dump_string_cst(struct obstack *obst, ir_entity *ent)
       if (isprint(c))
         obstack_printf(obst, "%c", c);
       else
-        obstack_printf(obst, "%O", c);
+        obstack_printf(obst, "\\%o", c);
       break;
     }
   }