From 74d50906a1f9328184ebf5007775693e0dffe92b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 15 Dec 2006 12:46:02 +0000 Subject: [PATCH] fix bad format string for gendecls --- ir/be/TEMPLATE/TEMPLATE_gen_decls.c | 2 +- ir/be/arm/arm_gen_decls.c | 7 +++++-- ir/be/ia32/ia32_gen_decls.c | 2 +- ir/be/mips/mips_gen_decls.c | 2 +- ir/be/ppc32/ppc32_gen_decls.c | 5 ++++- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ir/be/TEMPLATE/TEMPLATE_gen_decls.c b/ir/be/TEMPLATE/TEMPLATE_gen_decls.c index d55d40a92..2c5b00377 100644 --- a/ir/be/TEMPLATE/TEMPLATE_gen_decls.c +++ b/ir/be/TEMPLATE/TEMPLATE_gen_decls.c @@ -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; } } diff --git a/ir/be/arm/arm_gen_decls.c b/ir/be/arm/arm_gen_decls.c index d9706faa3..bd7f1435e 100644 --- a/ir/be/arm/arm_gen_decls.c +++ b/ir/be/arm/arm_gen_decls.c @@ -3,6 +3,9 @@ * @date 14.02.2006 * @version $Id$ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include @@ -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; } } diff --git a/ir/be/ia32/ia32_gen_decls.c b/ir/be/ia32/ia32_gen_decls.c index a1d9038dd..0a9ef2961 100644 --- a/ir/be/ia32/ia32_gen_decls.c +++ b/ir/be/ia32/ia32_gen_decls.c @@ -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; } } diff --git a/ir/be/mips/mips_gen_decls.c b/ir/be/mips/mips_gen_decls.c index fcc307bbd..a07714520 100644 --- a/ir/be/mips/mips_gen_decls.c +++ b/ir/be/mips/mips_gen_decls.c @@ -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; } } diff --git a/ir/be/ppc32/ppc32_gen_decls.c b/ir/be/ppc32/ppc32_gen_decls.c index 794728b12..5f65cefbf 100644 --- a/ir/be/ppc32/ppc32_gen_decls.c +++ b/ir/be/ppc32/ppc32_gen_decls.c @@ -3,6 +3,9 @@ * @date 14.02.2006 * @version $Id$ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include @@ -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; } } -- 2.20.1