Skip to content

Commit

Permalink
2011-04-05 Richard Guenther <[email protected]>
Browse files Browse the repository at this point in the history
	PR bootstrap/48431
	* lto-plugin.c (claim_file_handler): Do not declare vars in code.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171982 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
rguenth committed Apr 5, 2011
1 parent 00e3fe4 commit 52fd378
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions lto-plugin/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2011-04-05 Richard Guenther <[email protected]>

PR bootstrap/48431
* lto-plugin.c (claim_file_handler): Do not declare vars in code.

2011-02-13 Ralf Wildenhues <[email protected]>

* Makefile.in: Regenerate.
Expand Down
6 changes: 3 additions & 3 deletions lto-plugin/lto-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 52fd378

Please sign in to comment.