genmodes.c (tagged_printf, [...]): Don't use %n on printf.
2007-06-06 Paolo Bonzini <bonzini@gnu.org> * genmodes.c (tagged_printf, emit_insn_modes_h): Don't use %n on printf. From-SVN: r125494
This commit is contained in:
parent
a7b87f730f
commit
7258e976ea
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-06-06 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
|
* genmodes.c (tagged_printf, emit_insn_modes_h): Don't
|
||||||
|
use %n on printf.
|
||||||
|
|
||||||
2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
|
2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
|
||||||
|
|
||||||
* haifa-sched.c (restore_bb_notes): Clear bb field of the notes
|
* haifa-sched.c (restore_bb_notes): Clear bb field of the notes
|
||||||
|
|
|
@ -786,8 +786,7 @@ calc_wider_mode (void)
|
||||||
/* Output routines. */
|
/* Output routines. */
|
||||||
|
|
||||||
#define tagged_printf(FMT, ARG, TAG) do { \
|
#define tagged_printf(FMT, ARG, TAG) do { \
|
||||||
int count_; \
|
int count_ = printf (" " FMT ",", ARG); \
|
||||||
printf (" " FMT ",%n", ARG, &count_); \
|
|
||||||
printf ("%*s/* %s */\n", 27 - count_, "", TAG); \
|
printf ("%*s/* %s */\n", 27 - count_, "", TAG); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
@ -821,8 +820,7 @@ enum machine_mode\n{");
|
||||||
for (c = 0; c < MAX_MODE_CLASS; c++)
|
for (c = 0; c < MAX_MODE_CLASS; c++)
|
||||||
for (m = modes[c]; m; m = m->next)
|
for (m = modes[c]; m; m = m->next)
|
||||||
{
|
{
|
||||||
int count_;
|
int count_ = printf (" %smode,", m->name);
|
||||||
printf (" %smode,%n", m->name, &count_);
|
|
||||||
printf ("%*s/* %s:%d */\n", 27 - count_, "",
|
printf ("%*s/* %s:%d */\n", 27 - count_, "",
|
||||||
trim_filename (m->file), m->line);
|
trim_filename (m->file), m->line);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue