]> code.ossystems Code Review - openembedded-core.git/blob
4e11bc4433e0ef4d08db20de1154a6f7d5aac261
[openembedded-core.git] /
1 Upstream-Status: Inappropriate [Backport]
2 From 56a8ff0c197b4b0f917e3b50ac0dd3ed26f300c3 Mon Sep 17 00:00:00 2001
3 From: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Tue, 5 Apr 2011 12:13:27 +0000
5 Subject: [PATCH 068/200] 2011-04-05  Richard Guenther  <rguenther@suse.de>
6
7         PR bootstrap/48431
8         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
9
10
11 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171983 138bc75d-0d04-0410-961f-82ee72b054a4
12
13 index 64a0164..661f10c 100644
14 --- a/lto-plugin/lto-plugin.c
15 +++ b/lto-plugin/lto-plugin.c
16 @@ -851,11 +851,11 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
17        /* We pass the offset of the actual file, not the archive header.
18           Can't use PRIx64, because that's C99, so we have to print the
19          64-bit hex int as two 32-bit ones. */
20 -      int lo, hi;
21 +      int lo, hi, t;
22        lo = file->offset & 0xffffffff;
23        hi = ((int64_t)file->offset >> 32) & 0xffffffff;
24 -      int t = hi ? asprintf (&objname, "%s@0x%x%08x", file->name, lo, hi)
25 -               : asprintf (&objname, "%s@0x%x", file->name, lo);
26 +      t = hi ? asprintf (&objname, "%s@0x%x%08x", file->name, lo, hi)
27 +            : asprintf (&objname, "%s@0x%x", file->name, lo);
28        check (t >= 0, LDPL_FATAL, "asprintf failed");
29        lto_file.name = objname;
30      }
31 -- 
32 1.7.0.4
33