aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index aac49bd..4c64b9b 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -112,7 +112,7 @@ merge_include_chains (opts)
Note that this algorithm is quadratic in the number of -I switches,
which is acceptable since there aren't usually that many of them. */
- for (cur = quote; cur; cur = cur->next)
+ for (cur = quote, prev = NULL; cur; cur = cur->next)
{
for (other = quote; other != cur; other = other->next)
if (INO_T_EQ (cur->ino, other->ino)
@@ -680,6 +680,7 @@ finclude (pfile, fd, ihash)
fp->system_header_p = ihash->foundhere->sysp;
fp->lineno = 1;
fp->colno = 1;
+ fp->line_base = fp->buf;
fp->cleanup = file_cleanup;
/* The ->actual_dir field is only used when ignore_srcdir is not in effect;