summaryrefslogtreecommitdiffstats
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-12 05:03:22 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-12 05:03:22 +0000
commit8eed96ae3aafd2b724b7b1c1c62cd50763dbe535 (patch)
tree6b26f579c81213f8b3d00f847a602ed6cc2c8040 /gcc/c-lex.c
parent7c5c57d2f73b5776b88f94ce76c04a1125ecef32 (diff)
downloadppe42-gcc-8eed96ae3aafd2b724b7b1c1c62cd50763dbe535.tar.gz
ppe42-gcc-8eed96ae3aafd2b724b7b1c1c62cd50763dbe535.zip
* c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71328 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 47515e7b703..c9c69a68be0 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -212,8 +212,6 @@ cb_dir_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const char *dir)
void
fe_file_change (const struct line_map *new_map)
{
- unsigned int to_line = SOURCE_LINE (new_map, new_map->to_line);
-
if (new_map->reason == LC_ENTER)
{
/* Don't stack the main buffer on the input stack;
@@ -250,13 +248,13 @@ fe_file_change (const struct line_map *new_map)
#endif
pop_srcloc ();
- (*debug_hooks->end_source_file) (to_line);
+ (*debug_hooks->end_source_file) (new_map->to_line);
}
update_header_times (new_map->to_file);
in_system_header = new_map->sysp != 0;
input_filename = new_map->to_file;
- input_line = to_line;
+ input_line = new_map->to_line;
map = new_map;
/* Hook for C++. */
OpenPOWER on IntegriCloud