Browse Source

Fix compilation for GCC 2.95/2.96 (yet another instance of mixed declarations and code).

git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/ld-tigcc@117 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 years ago
parent
commit
9c7c98bf52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reorder.c

+ 1 - 1
reorder.c

@@ -451,6 +451,7 @@ static SI1 ReorderSectionsRecurse(PROGRAM *Program, COUNT SectionCount,
 		{
 			SECTION **PCurrentSection;
 			OFFSET StartupNumber = CurrentSection->StartupNumber;
+			COUNT TaggedSectionCount;
 			// If the current section is not a startup section, it means we are
 			// done with the startup sections. So just add all the remaining
 			// sections in the order decided by global reordering.
@@ -464,7 +465,6 @@ static SI1 ReorderSectionsRecurse(PROGRAM *Program, COUNT SectionCount,
 				}
 				return 1;
   			}
-			COUNT TaggedSectionCount;
 			// Compute an estimation of the savings for placing each of the sections
 			// next.
 			for(; CurrentSection; CurrentSection = GetNext(CurrentSection))