jcf-parse.c (give_name_to_class): Call find_sourcefile to find full pathname of sourc...
authorAndrew Haley <aph@redhat.com>
Fri, 23 May 2008 13:52:03 +0000 (13:52 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Fri, 23 May 2008 13:52:03 +0000 (13:52 +0000)
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.

From-SVN: r135808

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

index 750e671682249c9b472c5f571605d05e712a2973..144e25d4c3737bd2cfb207ef04b1507d9e9d4228 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 b96798ec68b5648ef92b74ce841926b08699162c..11b18a23d6d90aa5ef0533ba7ba2f0bbc1af063b 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;