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]

Fix for PR java/2791


Hi,

The following (old) patch from Alexandre Petit-Bianco fixes PR
java/2791.

2001-08-17  Alexandre Petit-Bianco  <apbianco@redhat.com>

    * jcf-parse.c: (yyparse): Don't prepend "./" to relative
    paths. Fixes PR java/2791.

With this patch in place we were able to make workarounds for the
remaining issues that prevented GNU Classpath to be compiled with gcj
(GNU Classpath is the upstream provider for a lot of the standard
classes in libgcj).

For more information see:
http://mail.gnu.org/pipermail/classpath/2002-April/002219.html
http://gcc.gnu.org/ml/java/2002-04/msg00292.html

In that second thread Alexandre approved this patch, so I am checking
this in to the mainline and branch.

This does not solve to root cause of PR java/6066, but reduces that PR
from high to medium priority.

Cheers,

Mark
Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.104.2.5
diff -u -r1.104.2.5 jcf-parse.c
--- jcf-parse.c	29 Mar 2002 00:14:00 -0000	1.104.2.5
+++ jcf-parse.c	21 Apr 2002 15:49:37 -0000
@@ -1014,9 +1014,6 @@
 	  int twice = 0;
 
 	  int len = strlen (list);
-
-	  if (*list != '/' && filename_count > 0)
-	    obstack_grow (&temporary_obstack, "./", 2);
 
 	  obstack_grow0 (&temporary_obstack, list, len);
 	  value = obstack_finish (&temporary_obstack);

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