From 5f114e19ea5bdb5aa234aeab2a6e69c01e5a3ae4 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 11 Jul 2010 20:51:57 +0000 Subject: [PATCH] * fix build when building gcc2 with gcc2 (c89-syntax) git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37475 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- legacy/gcc/gcc/c-lex.c | 4 +++- legacy/gcc/gcc/cp/lex.c | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/gcc/gcc/c-lex.c b/legacy/gcc/gcc/c-lex.c index 70d6b56..e9888c3 100644 --- a/legacy/gcc/gcc/c-lex.c +++ b/legacy/gcc/gcc/c-lex.c @@ -1989,6 +1989,7 @@ { unsigned int value; int len; + int i; switch (c & 0xF0) { case 0xF0: @@ -2008,7 +2009,6 @@ "literal"); continue; } - int i; for (i = 1; i < len; ++i) { c = GETC (); @@ -2156,6 +2156,7 @@ { unsigned int value; int len; + int i; switch (c & 0xF0) { case 0xF0: @@ -2175,7 +2176,6 @@ "string literal"); continue; } - int i; for (i = 1; i < len; ++i) { c = GETC (); diff --git a/legacy/gcc/gcc/cp/lex.c b/legacy/gcc/gcc/cp/lex.c index 2b80e74..6d2ef4e 100644 --- a/legacy/gcc/gcc/cp/lex.c +++ b/legacy/gcc/gcc/cp/lex.c @@ -4099,6 +4099,7 @@ { unsigned int value; int len; + int i; switch (c & 0xF0) { case 0xF0: @@ -4118,7 +4119,6 @@ "literal"); continue; } - int i; for (i = 1; i < len; ++i) { c = getch (); @@ -4272,6 +4272,7 @@ { unsigned int value; int len; + int i; switch (c & 0xF0) { case 0xF0: @@ -4291,7 +4292,6 @@ "string literal"); continue; } - int i; for (i = 1; i < len; ++i) { c = getch (); -- gitore 0.2.2