aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@cygnus.com>1999-02-09 15:02:18 +0000
committerBrendan Kehoe <brendan@gcc.gnu.org>1999-02-09 10:02:18 -0500
commite4d8ad2321d424a13b249c4e8794ae1ef3545c59 (patch)
tree07e8512e333ffc71fa8bbd04f8cb5f67ca32bd43 /gcc
parent6458033dde6a2db8e5dd2a140805b58a3ed3747f (diff)
downloadgcc-e4d8ad2321d424a13b249c4e8794ae1ef3545c59.zip
gcc-e4d8ad2321d424a13b249c4e8794ae1ef3545c59.tar.gz
gcc-e4d8ad2321d424a13b249c4e8794ae1ef3545c59.tar.bz2
cpplib.c (special_symbol): Move IP to be declared in function scope, rather than individual case statements.
* cpplib.c (special_symbol): Move IP to be declared in function scope, rather than individual case statements. fixes building under solaris From-SVN: r25112
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cpplib.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c375916..6ead2b2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+1999-02-09 Brendan Kehoe <brendan@cygnus.com>
+
+ * cpplib.c (special_symbol): Move IP to be declared in function
+ scope, rather than individual case statements.
+
1999-02-09 16:42 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cppfiles.c (finclude): Handle pipes properly under old BSD
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 32b70e6..c6f616d 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -1884,13 +1884,14 @@ special_symbol (hp, pfile)
{
const char *buf;
int len;
+ cpp_buffer *ip;
switch (hp->type)
{
case T_FILE:
case T_BASE_FILE:
{
- cpp_buffer *ip = CPP_BUFFER (pfile);
+ ip = CPP_BUFFER (pfile);
if (hp->type == T_BASE_FILE)
{
while (CPP_PREV_BUFFER (ip) != CPP_NULL_BUFFER (pfile))
@@ -1915,7 +1916,7 @@ special_symbol (hp, pfile)
case T_INCLUDE_LEVEL:
{
int true_indepth = 0;
- cpp_buffer *ip = CPP_BUFFER (pfile);
+ ip = CPP_BUFFER (pfile);
for (; ip != CPP_NULL_BUFFER (pfile); ip = CPP_PREV_BUFFER (ip))
if (ip->fname != NULL)
true_indepth++;