From 3d3b339a29d482bcc0891f1b38a416a9cf6a6762 Mon Sep 17 00:00:00 2001 From: ktietz Date: Mon, 11 Oct 2010 14:14:54 +0000 Subject: [PATCH] 2010-10-11 Kai Tietz * lto-plugin.c (dump_symtab): Correct printf argument type. (finish_conflict_resolution): Initialize resolution. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165310 138bc75d-0d04-0410-961f-82ee72b054a4 --- lto-plugin/ChangeLog | 5 +++++ lto-plugin/lto-plugin.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index 585b56d..014082f 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,8 @@ +2010-10-11 Kai Tietz + + * lto-plugin.c (dump_symtab): Correct printf argument type. + (finish_conflict_resolution): Initialize resolution. + 2010-10-08 H.J. Lu PR bootstrap/45951 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 7e8443d..433f545 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -257,7 +257,7 @@ dump_symtab (FILE *f, struct plugin_symtab *symtab) assert (resolution != LDPR_UNKNOWN); - fprintf (f, "%d %x %s %s\n", slot, symtab->aux[j].id, + fprintf (f, "%u %x %s %s\n", (unsigned int) slot, symtab->aux[j].id, lto_resolution_str[resolution], symtab->syms[j].name); } @@ -277,7 +277,7 @@ finish_conflict_resolution (struct plugin_symtab *symtab, for (i = 0; i < symtab->nsyms; i++) { - int resolution; + int resolution = LDPR_UNKNOWN; if (symtab->aux[i].next_conflict == -1) continue; -- 2.7.4