summaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-11 14:14:54 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-11 14:14:54 +0000
commit3d3b339a29d482bcc0891f1b38a416a9cf6a6762 (patch)
tree60721b6fb7db63e1821deb37b707fc6dc088d6aa /lto-plugin
parent44000a083cd5980ce73263bb41ebe54076405992 (diff)
downloadgcc-3d3b339a29d482bcc0891f1b38a416a9cf6a6762.tar.gz
2010-10-11 Kai Tietz <kai.tietz@onevision.com>
* 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
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/ChangeLog5
-rw-r--r--lto-plugin/lto-plugin.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index 585b56d31c2..014082f99a1 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-11 Kai Tietz <kai.tietz@onevision.com>
+
+ * lto-plugin.c (dump_symtab): Correct printf argument type.
+ (finish_conflict_resolution): Initialize resolution.
+
2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/45951
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 7e8443d021e..433f545391f 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;