diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2019-05-07 07:44:55 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2019-05-07 07:44:55 +0000 |
commit | 03de2955128860f04bd371b71e0f23b4498c94e2 (patch) | |
tree | 154c83854d1885040b44a19e97c82ec33a83fe91 /gcc/lto/lto-common.c | |
parent | b65307e96ef90ce24de6b33af765977c2bc88d17 (diff) | |
download | gcc-03de2955128860f04bd371b71e0f23b4498c94e2.zip gcc-03de2955128860f04bd371b71e0f23b4498c94e2.tar.gz gcc-03de2955128860f04bd371b71e0f23b4498c94e2.tar.bz2 |
Fix Solaris bootstrap: lto-common.c, lto-dump.c format mismatches
* lto-common.c (lto_file_read): Print section->start as int64_t,
section->len as uint64_t.
* lto-dump.c (symbol_entry::dump): Print sz as uint64_t.
From-SVN: r270935
Diffstat (limited to 'gcc/lto/lto-common.c')
-rw-r--r-- | gcc/lto/lto-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lto/lto-common.c b/gcc/lto/lto-common.c index aa64d8b..078075c 100644 --- a/gcc/lto/lto-common.c +++ b/gcc/lto/lto-common.c @@ -2111,8 +2111,9 @@ lto_file_read (lto_file *file, FILE *resolution_file, int *count) fprintf (stdout, "\n LTO Object Name: %s\n", file->filename); fprintf (stdout, "\nNo. Offset Size Section Name\n\n"); for (section = section_list.first; section != NULL; section = section->next) - fprintf (stdout, "%2d %8ld %8ld %s\n", - ++i, section->start, section->len, section->name); + fprintf (stdout, "%2d %8" PRId64 " %8" PRIu64 " %s\n", + ++i, (int64_t) section->start, (uint64_t) section->len, + section->name); } /* Find all sub modules in the object and put their sections into new hash |