From 9216bd379e62ea6f66cd72de912e736df3191ef8 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 5 Apr 2011 12:11:08 +0000 Subject: 2011-04-05 Richard Guenther PR bootstrap/48431 * lto-plugin.c (claim_file_handler): Do not declare vars in code. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@171982 138bc75d-0d04-0410-961f-82ee72b054a4 --- lto-plugin/ChangeLog | 5 +++++ lto-plugin/lto-plugin.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'lto-plugin') diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index e4a19cd8124..2e63db35451 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,8 @@ +2011-04-05 Richard Guenther + + PR bootstrap/48431 + * lto-plugin.c (claim_file_handler): Do not declare vars in code. + 2011-02-13 Ralf Wildenhues * Makefile.in: Regenerate. diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 64a0164da3c..661f10cdf98 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -851,11 +851,11 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed) /* We pass the offset of the actual file, not the archive header. Can't use PRIx64, because that's C99, so we have to print the 64-bit hex int as two 32-bit ones. */ - int lo, hi; + int lo, hi, t; lo = file->offset & 0xffffffff; hi = ((int64_t)file->offset >> 32) & 0xffffffff; - int t = hi ? asprintf (&objname, "%s@0x%x%08x", file->name, lo, hi) - : asprintf (&objname, "%s@0x%x", file->name, lo); + t = hi ? asprintf (&objname, "%s@0x%x%08x", file->name, lo, hi) + : asprintf (&objname, "%s@0x%x", file->name, lo); check (t >= 0, LDPL_FATAL, "asprintf failed"); lto_file.name = objname; } -- cgit v1.2.3