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]

endless loop in jc1


I've stumbled across this one while building GCC+libgcj with current
CVS.  Ok to install?

Index: gcc/java/ChangeLog
from  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>

	* jcf-write.c (generate_classfile): Scan the source_file for
	slashes with the right pointer variable.

Index: gcc/java/jcf-write.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-write.c,v
retrieving revision 1.54
diff -u -r1.54 jcf-write.c
--- gcc/java/jcf-write.c	2000/05/09 19:55:53	1.54
+++ gcc/java/jcf-write.c	2000/05/10 13:00:43
@@ -3066,7 +3066,7 @@
   source_file = DECL_SOURCE_FILE (TYPE_NAME (clas));
   for (s = source_file; ; s++)
     {
-      char ch = *ptr;
+      char ch = *s;
       if (ch == '\0')
 	break;
       if (ch == '/' || ch == '\\')

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

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