[PATCH][LTO][RFC] AR archive support for LTO
Diego Novillo
dnovillo@google.com
Mon Nov 16 19:58:00 GMT 2009
On Mon, Nov 16, 2009 at 11:44, Rafael Espindola <espindola@google.com> wrote:
> @@ -553,13 +553,17 @@ lto_elf_file_open (const char *filename, bool writable)
> }
> else
> {
> - int64_t t;
> fname = (char *) xmalloc (offset_p - filename + 1);
> memcpy (fname, filename, offset_p - filename);
> fname[offset_p - filename] = '\0';
> offset_p++;
> - sscanf(offset_p, "%" PRId64 , &t);
> - offset = t;
> + errno = 0;
> + offset = strtoll(offset_p, NULL, 10);
Space before '('.
> + if (errno != 0)
> + {
> + error("could not parse offset %s", offset_p);
Likewise.
OK with those changes.
Diego.
More information about the Gcc-patches
mailing list