This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]