This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[incremental] Patch: FYI: fix minor linemap_add oversights
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 11 Mar 2008 16:56:43 -0600
- Subject: [incremental] Patch: FYI: fix minor linemap_add oversights
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in on the incremental-compiler branch.
I don't often build the non-C front ends, so I let an error slip
through in the fortran and java FEs. Here's the fix.
Tom
fortran/ChangeLog:
2008-03-11 Tom Tromey <tromey@redhat.com>
* scanner.c (preprocessor_line): Add missing argument to call to
linemap_add.
java/ChangeLog:
2008-03-11 Tom Tromey <tromey@redhat.com>
* jcf-parse.c (parse_class_file): Add missing argument to call to
linemap_add.
Index: fortran/scanner.c
===================================================================
--- fortran/scanner.c (revision 132956)
+++ fortran/scanner.c (working copy)
@@ -1413,7 +1413,7 @@
add_file_change (NULL, line);
current_file = current_file->up;
#ifdef USE_MAPPED_LOCATION
- linemap_add (line_table, LC_RENAME, false, current_file->filename,
+ linemap_add (line_table, LC_RENAME, false, false, current_file->filename,
current_file->line);
#endif
}
Index: java/jcf-parse.c
===================================================================
--- java/jcf-parse.c (revision 132956)
+++ java/jcf-parse.c (working copy)
@@ -1591,7 +1591,7 @@
{
/* Re-enter the current file. */
expanded_location loc = expand_location (input_location);
- linemap_add (line_table, LC_ENTER, 0, loc.file, loc.line);
+ linemap_add (line_table, LC_ENTER, 0, 0, loc.file, loc.line);
}
#endif
file_start_location = input_location;