]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* jcf-parse.c (parse_class_file): Re-enter the current file.
authorTom Tromey <tromey@redhat.com>
Thu, 6 Sep 2007 23:10:19 +0000 (23:10 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 6 Sep 2007 23:10:19 +0000 (23:10 +0000)
From-SVN: r128211

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

index 9b637bc24d2f7edaee1ce94fa89e369daec55dce..f8f5c35261752fb1300364429daaa5d9101248bf 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 ff2c9995e8c639cdc6eb995061677094da31ece0..a544163c44186bf400d1ba18b10c4970814528a2 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);