This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: java/4360: libjava fails to compile on i686-pc-linux-gnu (AttributedString)
- To: nobody at gcc dot gnu dot org
- Subject: Re: java/4360: libjava fails to compile on i686-pc-linux-gnu (AttributedString)
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: 21 Sep 2001 18:26:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Alexandre Petit-Bianco <apbianco at cygnus dot com>
The following reply was made to PR java/4360; it has been noted by GNATS.
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: "Georg Wild" <georg.wild@gmx.de>, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: java/4360: libjava fails to compile on i686-pc-linux-gnu (AttributedString)
Date: Fri, 21 Sep 2001 11:25:45 -0700 (PDT)
[Please keep gcc-gnats@gcc.gnu.org in CC so that things get archived,
not mentionning reaching a larger audience.]
Georg Wild writes:
> /root/gcc/gcc/gcj -B/root/gcc/i686-pc-linux-gnu/libjava/ -B/root/gcc/gcc/ --
> encoding=UTF-8 -C -g -classpath /root/gcc/i686-pc-linux-gnu/libjava:. -d
> /root/gcc/i686-pc-linux-gnu/libjava java/lang/ClassNotFoundException.java
> java/lang/ClassNotFoundException.java:0: warning: source file seen twice on
> command line and will be compiled only once.
Intriguing. Can you apply the patch below, and run the same command
putting a -v at the end of it? Thanks.
./A
Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.93
diff -u -p -r1.93 jcf-parse.c
--- jcf-parse.c 2001/09/06 22:22:43 1.93
+++ jcf-parse.c 2001/09/21 18:23:14
@@ -950,7 +950,13 @@ predefined_filename_p (node)
int i;
for (i = 0; i < PREDEF_FILENAMES_SIZE; i++)
if (predef_filenames [i] == node)
- return 1;
+ {
+ printf ("// predefined_filename_p: %s found @%d\n",
+ IDENTIFIER_POINTER (node), i);
+ return 1;
+ }
+ printf ("// predefined_filename_p: %s not found\n",
+ IDENTIFIER_POINTER (node));
return 0;
}
@@ -1050,14 +1053,21 @@ yyparse ()
current_file_list. This search happens only for these
files, presumably only when we're recompiling libgcj. */
+ printf ("// value=%s\n", value);
if ((id = maybe_get_identifier (value)))
{
+ printf ("// id=%s\n", IDENTIFIER_POINTER (id));
if (predefined_filename_p (id))
{
tree c;
for (c = current_file_list; c; c = TREE_CHAIN (c))
- if (TREE_VALUE (c) == id)
- twice = 1;
+ {
+ printf ("// Considering c=%s - id=%s",
+ IDENTIFIER_POINTER (TREE_VALUE (c)),
+ IDENTIFIER_POINTER (id));
+ if (TREE_VALUE (c) == id)
+ twice = 1;
+ }
}
else
twice = 1;