[svn:parrot] r41374 - trunk/src/gc

allison at svn.parrot.org allison at svn.parrot.org
Sun Sep 20 05:09:36 UTC 2009


Author: allison
Date: Sun Sep 20 05:09:35 2009
New Revision: 41374
URL: https://trac.parrot.org/parrot/changeset/41374

Log:
[cage] Move variable declaration before code to satisfy C90 requirement.
Resolves build failure on Ubuntu Karmic ia64. Thanks to Colin Watson for the
fix.

Modified:
   trunk/src/gc/system.c

Modified: trunk/src/gc/system.c
==============================================================================
--- trunk/src/gc/system.c	Sun Sep 20 00:02:56 2009	(r41373)
+++ trunk/src/gc/system.c	Sun Sep 20 05:09:35 2009	(r41374)
@@ -172,6 +172,12 @@
         struct ucontext ucp;
         void *current_regstore_top;
 
+        /* Trace the memory block for the register backing stack, which
+           is separate from the normal system stack. The register backing
+           stack starts at memory address 0x80000FFF80000000 and ends at
+           current_regstore_top. */
+        size_t base = 0x80000fff80000000;
+
         getcontext(&ucp);
 
         /* flush_reg_store() is defined in config/gen/platforms/ia64/asm.s.
@@ -179,12 +185,6 @@
            returns the address of the register backing stack. */
         current_regstore_top = flush_reg_store();
 
-        /* Trace the memory block for the register backing stack, which
-           is separate from the normal system stack. The register backing
-           stack starts at memory address 0x80000FFF80000000 and ends at
-           current_regstore_top. */
-        size_t base = 0x80000fff80000000;
-
 #  endif /* __hpux */
 
         trace_mem_block(interp, base,


More information about the parrot-commits mailing list