OSDN Git Service

2008-05-23 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2008 13:52:03 +0000 (13:52 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2008 13:52:03 +0000 (13:52 +0000)
        * jcf-parse.c (give_name_to_class): Call find_sourcefile to find full
        pathname of source file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135808 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index 750e671..144e25d 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-23  Andrew Haley  <aph@redhat.com>
+
+       * jcf-parse.c (give_name_to_class): Call find_sourcefile to find full
+       pathname of source file.
+
 2008-05-12  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
 
        * jcf-dump.c (print_constant): Use
index b96798e..11b18a2 100644 (file)
@@ -1194,7 +1194,7 @@ give_name_to_class (JCF *jcf, int i)
       this_class = lookup_class (class_name);
       {
       tree source_name = identifier_subst (class_name, "", '.', '/', ".java");
-      const char *sfname = IDENTIFIER_POINTER (source_name);
+      const char *sfname = find_sourcefile (IDENTIFIER_POINTER (source_name));
       linemap_add (line_table, LC_ENTER, false, sfname, 0);
       input_location = linemap_line_start (line_table, 0, 1);
       file_start_location = input_location;