* support/regression/fwk/lib/testfwk.c: increase stack size
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 27 May 2006 18:11:06 +0000 (18:11 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 27 May 2006 18:11:06 +0000 (18:11 +0000)
  from deafult 64 bytes to 128 bytes

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4192 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/fwk/lib/testfwk.c

index 55850b226d1e9a168e5a3b611014f4f3b4c781bd..0ec01fb98a539c86ad6f47ccc1222692fd7f0db4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-27 Borut Razem <borut.razem AT siol.net>
+
+       * support/regression/fwk/lib/testfwk.c: increase stack size
+         from deafult 64 bytes to 128 bytes
+
 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
 
        * src/pic16/gen.c (genFunction, genEndFunction): some
index 7bad2a3ecaf9d20745ca6545e733c832790c156a..ae33289a2220262ef4f89d8518a995deeacc4ff5 100644 (file)
@@ -3,11 +3,15 @@
 #include <testfwk.h>
 #include <stdarg.h>
 
-#ifdef __ds390
+#ifdef SDCC_ds390
 #include <tinibios.h> /* main() must see the ISR declarations */
 #endif
 
-#if defined(SDCC_mcs51)
+#ifdef SDCC_pic16
+#pragma stack 0x200 128 /* set stack size to 128 bytes */
+#endif
+
+#ifdef SDCC_mcs51
 /* until changed, isr's must have a prototype in the module containing main */
 void T2_isr (void) interrupt 5;
 #endif
@@ -64,7 +68,7 @@ _printn(int n)
     _putchar('0');
   }
   else {
-    char buf[6];
+    static char buf[6];
     char *p = &buf[sizeof(buf) - 1];
     char neg = 0;