summaryrefslogtreecommitdiff
path: root/gcc/tradcpp.c
diff options
context:
space:
mode:
authorsirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-03 22:26:05 +0000
committersirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-03 22:26:05 +0000
commita8b865179ed9695d667f29c27b92ba3ed0dc1535 (patch)
tree6bcd78c60d57778bf8daea2542acbe9b0f186035 /gcc/tradcpp.c
parent1d97a500067aac5a22615a5908a02d3e7a7c915e (diff)
downloadgcc-a8b865179ed9695d667f29c27b92ba3ed0dc1535.tar.gz
2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* tradcpp.c (main): Make sure finclude() is called with a valid indepth value while handling -include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tradcpp.c')
-rw-r--r--gcc/tradcpp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c
index bb9724915d9..206541c6300 100644
--- a/gcc/tradcpp.c
+++ b/gcc/tradcpp.c
@@ -1,5 +1,5 @@
/* C Compatible Compiler Preprocessor (CCCP)
-Copyright (C) 1986, 1987, 1989, 2000 Free Software Foundation, Inc.
+Copyright (C) 1986, 1987, 1989, 2000, 2001 Free Software Foundation, Inc.
Written by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
Dusted off, polished, and adapted for use as traditional
@@ -768,6 +768,7 @@ main (argc, argv)
so that only their macro definitions matter. */
no_output++;
+ indepth++;
for (i = 1; i < argc; i++)
if (pend[i].type == PD_FILE)
{
@@ -779,6 +780,7 @@ main (argc, argv)
}
finclude (fd, pend[i].arg, &outbuf);
}
+ indepth--;
no_output--;
/* Pending directives no longer needed. */