summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-09 15:02:18 +0000
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-09 15:02:18 +0000
commit4c584baedc2f4aaf037ca8bd65cd1e9d0041d797 (patch)
tree07e8512e333ffc71fa8bbd04f8cb5f67ca32bd43 /gcc/cpplib.c
parent2530cb460bf94a415744f82a33891a4b068a837b (diff)
downloadppe42-gcc-4c584baedc2f4aaf037ca8bd65cd1e9d0041d797.tar.gz
ppe42-gcc-4c584baedc2f4aaf037ca8bd65cd1e9d0041d797.zip
* cpplib.c (special_symbol): Move IP to be declared in function
scope, rather than individual case statements. fixes building under solaris git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25112 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 32b70e6ed37..c6f616dd516 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++;
OpenPOWER on IntegriCloud