aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2008-05-23 13:52:03 +0000
committerAndrew Haley <aph@gcc.gnu.org>2008-05-23 13:52:03 +0000
commit163792bc392c8362fede7bc55c0c671c4c642e72 (patch)
tree97d712618dc6ae8a0f304443664abaaa0c636a7a /gcc/java
parentffd0dd6ce2a41da998b9cad99122c374c0ddf947 (diff)
downloadgcc-163792bc392c8362fede7bc55c0c671c4c642e72.zip
gcc-163792bc392c8362fede7bc55c0c671c4c642e72.tar.gz
gcc-163792bc392c8362fede7bc55c0c671c4c642e72.tar.bz2
jcf-parse.c (give_name_to_class): Call find_sourcefile to find full pathname of source file.
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
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 750e671..144e25d 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index b96798e..11b18a2 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -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;