Build fixes for gcc-2.96.  The system now builds and regtests with the
default gcc-2.96 on Red Hat 7.3.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4911 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/none/tests/mremap2.c b/none/tests/mremap2.c
index a27cc37..b664cbc 100644
--- a/none/tests/mremap2.c
+++ b/none/tests/mremap2.c
@@ -100,7 +100,6 @@
 int main ( void )
 {
   int alocal, maymove, fixed, nsi, dstpossible;
-  dst_impossible = (char*)(&alocal) + 500 * 1000 * 1000;
   int newsizes[6] = { 19, 20, 21, 29, 30, 31 };
 
   char* tidythis = NULL;
@@ -108,6 +107,8 @@
   int firsttime = 1;
   char buf[100];
 
+  dst_impossible = (char*)(&alocal) + 500 * 1000 * 1000;
+
   PAGE = sysconf(_SC_PAGESIZE);
 
   for (maymove = 0; maymove <= 1 ; maymove++) {
@@ -116,14 +117,13 @@
   for (nsi = 0; nsi < 6; nsi++) {
   for (dstpossible = 0; dstpossible <= 1; dstpossible++) {
 
+    char* r;
     int newsize = newsizes[nsi] * PAGE;
     int flags = (maymove ? MREMAP_MAYMOVE : 0)  |
                 (fixed ? MREMAP_FIXED : 0);
     dst = dstpossible ? try_dst : dst_impossible;
     src = setup( tidythis, tidylen );
 
-    char* r;
-
     if (firsttime) {
        printf("dst_possible   = %p\n", try_dst );
        printf("dst_impossible = %p\n", dst_impossible );