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


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

Patch to init sizetype for jc1


I haven't been really following the discussion on the various sizetype
changes, but I do know that now jc1 immediately crashes in
init_decl_processing.  (Hopefully, when libgcj is in the tree, people
will find it easier to not break Java all the time.)

I don't know if this is The Right Thing, but at least it makes it run.
(I haven't tried actually build libgcj yet, since my most urgent need
was for using jc1 as a bytecode verifier.  First things first.)

2000-03-03  Per Bothner  <per@bothner.com>

	* decl.c (init_decl_processing):  Initialize sizetype properly.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/decl.c,v
retrieving revision 1.50
diff -u -p -r1.50 decl.c
--- decl.c	2000/02/29 23:33:50	1.50
+++ decl.c	2000/03/04 05:21:03
@@ -459,7 +459,8 @@ init_decl_processing ()
   TREE_TYPE (error_mark_node) = error_mark_node;
 
   /* Create sizetype first - needed for other types. */
-  sizetype = make_unsigned_type (POINTER_SIZE);
+  initialize_sizetypes ();
+  set_sizetype (make_unsigned_type (POINTER_SIZE));
   size_zero_node = build_int_2 (0, 0);
   TREE_TYPE (size_zero_node) = sizetype;
   size_one_node = build_int_2 (1, 0);

-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

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