Patch installed for warning regression in java/decl.c
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Wed Nov 27 18:16:00 GMT 2002
The patch below fixes this recent warning regression:
> java/decl.c:467: warning: integer constant is too large for "long" type
Bootstrapped on sparc-sun-solaris2.7 and installed as "obvious".
--Kaveh
2002-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* decl.c (java_init_decl_processing): Use `LL' on 64-bit constant.
diff -rup orig/egcc-CVS20021126/gcc/java/decl.c egcc-CVS20021126/gcc/java/decl.c
--- orig/egcc-CVS20021126/gcc/java/decl.c 2002-11-18 16:00:33.000000000 -0500
+++ egcc-CVS20021126/gcc/java/decl.c 2002-11-27 20:38:57.853288181 -0500
@@ -464,7 +464,7 @@ java_init_decl_processing ()
decimal_int_max = build_int_2 (0x80000000, 0);
TREE_TYPE (decimal_int_max) = unsigned_int_type_node;
#if HOST_BITS_PER_WIDE_INT == 64
- decimal_long_max = build_int_2 (0x8000000000000000, 0);
+ decimal_long_max = build_int_2 (0x8000000000000000LL, 0);
#else
#if HOST_BITS_PER_WIDE_INT == 32
decimal_long_max = build_int_2 (0, 0x80000000);
More information about the Java-patches
mailing list