summaryrefslogtreecommitdiffstats
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-06 10:04:10 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-06 10:04:10 +0000
commit3843d0114e302e6deaa2548207685a1f41d231f5 (patch)
tree51496bb714dc06bd6976e89d5dfcfbbab60c2334 /gcc/cppfiles.c
parent7b4db0874bd67cb61a93734a30f68d7e9f94485c (diff)
downloadppe42-gcc-3843d0114e302e6deaa2548207685a1f41d231f5.tar.gz
ppe42-gcc-3843d0114e302e6deaa2548207685a1f41d231f5.zip
1999-04-06 12:56 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* cppexp.c (parse_charconst): Initialize c. (cpp_parse_expr): Initialize rprio. * cppfiles.c (merge_include_chains): Initialize prev. (finclude) Set fp->line_base to fp->buf before returning. * cpphash.c (macroexpand): Initialize token. * cppspec.c (lang_specific_driver): Change suff to const char *const *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26213 138bc75d-0d04-0410-961f-82ee72b054a4
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 aac49bd5437..4c64b9be69f 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;
OpenPOWER on IntegriCloud