diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-18 23:05:50 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-18 23:05:50 +0000 |
commit | de064be970f5146ba9366d41733609a4fb2b11c6 (patch) | |
tree | 8ae71f8ebd710043f6c88db05c9fe55db40aecfc /gcc/java | |
parent | c3dd0e8588136d0b1ce121dcebf82701189af760 (diff) | |
download | gcc-de064be970f5146ba9366d41733609a4fb2b11c6.tar.gz |
Index: gcc/java/ChangeLog
2007-05-18 Geoffrey Keating <geoffk@apple.com>
* jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx.
(print_constant): Likewise.
Index: gcc/ChangeLog
2007-05-18 Geoffrey Keating <geoffk@apple.com>
* dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
(output_die): Use 'unsigned long' with %x.
* sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
* tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
Index: gcc/cp/ChangeLog
2007-05-18 Geoffrey Keating <geoffk@apple.com>
* mangle.c (write_real_cst): Use 'unsigned long' for %lx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-dump.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index dceb9690a8f..7bfa288ec5f 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2007-05-18 Geoffrey Keating <geoffk@apple.com> + + * jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx. + (print_constant): Likewise. + 2007-05-14 Rafael Avila de Espindola <espindola@google.com> * expr.c (build_java_binop): Use unsigned_type_for instead of diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c index 0dfa4c20792..5397bc353b1 100644 --- a/gcc/java/jcf-dump.c +++ b/gcc/java/jcf-dump.c @@ -138,7 +138,7 @@ utf8_equal_string (JCF *jcf, int index, const char * value) if (flag_print_class_info) \ fprintf (out, \ "Magic number: 0x%0lx, minor_version: %ld, major_version: %ld.\n",\ - (long) MAGIC, (long) MINOR, (long) MAJOR) + (unsigned long) MAGIC, (long) MINOR, (long) MAJOR) #define HANDLE_START_CONSTANT_POOL(COUNT) \ if (flag_print_constant_pool) \ @@ -811,7 +811,7 @@ print_constant (FILE *out, JCF *jcf, int index, int verbosity) } if (verbosity > 1) - fprintf (out, ", bits = 0x%08lx", (long) JPOOL_UINT (jcf, index)); + fprintf (out, ", bits = 0x%08lx", (unsigned long) JPOOL_UINT (jcf, index)); break; } @@ -860,7 +860,8 @@ print_constant (FILE *out, JCF *jcf, int index, int verbosity) int32 hi, lo; hi = JPOOL_UINT (jcf, index); lo = JPOOL_UINT (jcf, index + 1); - fprintf (out, ", bits = 0x%08lx%08lx", (long) hi, (long) lo); + fprintf (out, ", bits = 0x%08lx%08lx", (unsigned long) hi, + (unsigned long) lo); } break; } |