[llvm-commits] CVS: llvm/projects/Stacker/lib/runtime/stacker_rt.c

LLVM llvm at cs.uiuc.edu
Sun May 9 18:20:01 PDT 2004


Changes in directory llvm/projects/Stacker/lib/runtime:

stacker_rt.c updated: 1.4 -> 1.5

---
Log message:

Changes to make the Stacker Stack use 64 bit values. This *should* get
around the problem with Stacker on Solaris because the Stack can handle
64-bit entries (pointer sized). 


---
Diffs of the changes:  (+5 -5)

Index: llvm/projects/Stacker/lib/runtime/stacker_rt.c
diff -u llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.4 llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.5
--- llvm/projects/Stacker/lib/runtime/stacker_rt.c:1.4	Thu Nov 27 01:48:45 2003
+++ llvm/projects/Stacker/lib/runtime/stacker_rt.c	Sun May  9 18:20:19 2004
@@ -21,18 +21,18 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-extern long long _index_;
-extern int _stack_[];
+extern int64_t _index_;
+extern int64_t _stack_[];
 extern void _MAIN_();
 
 void
 _stacker_dump_stack_()
 {
-    int i;
+    int64_t i;
     printf("Stack Dump:\n");
     for (i = _index_; i > 0; i-- )
     {
-	printf("#%03d: %d\n", i, _stack_[i] );
+	printf("#%03lld: %lld\n", i, _stack_[i] );
     }
 }
 
@@ -51,7 +51,7 @@
     {
 	if ( isdigit( (int) argv[--a][0] ) )
 	{
-	    _stack_[_index_++] = atoi( argv[a] );
+	    _stack_[_index_++] = atoll( argv[a] );
 	}
 	else
 	{





More information about the llvm-commits mailing list