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 fix bit/word count confusion in java/check-init.c


I checked this into egcs.
	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner

Wed Feb 24 16:13:59 1999  Per Bothner  <bothner@deneb.cygnus.com>

	*  check-init.c (check_init):  COPYN takes word count, not bit count.

Index: check-init.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/java/check-init.c,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 check-init.c
--- check-init.c	1999/02/20 20:57:40	1.1.2.5
+++ check-init.c	1999/02/25 00:09:48
@@ -510,7 +510,7 @@ check_init (exp, before)
 	struct alternatives *alt = alternatives;
 	while (TREE_CODE (alt->block) != SWITCH_EXPR)
 	  alt = alt->outer;
-	COPYN (before, alt->saved, alt->num_locals);
+	COPYN (before, alt->saved, WORDS_NEEDED (alt->num_locals));
 	for (i = alt->num_locals;  i < num_current_locals;  i++)
 	  CLEAR_BIT (before, i);
 	break;


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