This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch installed for warning regression in java/decl.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 27 Nov 2002 21:16:36 -0500 (EST)
- Subject: Patch installed for warning regression in java/decl.c
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);