Commit 74d50906 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix bad format string for gendecls

parent 6b6c76aa
......@@ -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;
}
}
......
......@@ -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;
}
}
......
......@@ -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;
}
}
......
......@@ -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;
}
}
......
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment