OSDN Git Service

* jcf-parse.c (parse_class_file): Re-enter the current file.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2007 23:10:19 +0000 (23:10 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2007 23:10:19 +0000 (23:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128211 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9b637bc..f8f5c35 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-06  Tom Tromey  <tromey@redhat.com>
+
+       * jcf-parse.c (parse_class_file): Re-enter the current file.
+
 2007-09-07  Roman Zippel  <zippel@linux-m68k.org>
 
        boehm.c (mark_reference_fields): Move misaligned pointer check
index ff2c999..a544163 100644 (file)
@@ -1586,6 +1586,13 @@ parse_class_file (void)
   java_layout_seen_class_methods ();
 
   input_location = DECL_SOURCE_LOCATION (TYPE_NAME (current_class));
+#ifdef USE_MAPPED_LOCATION
+  {
+    /* Re-enter the current file.  */
+    expanded_location loc = expand_location (input_location);
+    linemap_add (line_table, LC_ENTER, 0, loc.file, loc.line);
+  }
+#endif
   file_start_location = input_location;
   (*debug_hooks->start_source_file) (input_line, input_filename);