From b6eeaeaa2fff4abe6bf96ccf680eab1a0f551aa1 Mon Sep 17 00:00:00 2001 From: borutr Date: Sat, 27 May 2006 18:11:06 +0000 Subject: [PATCH] * support/regression/fwk/lib/testfwk.c: increase stack size 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 | 5 +++++ support/regression/fwk/lib/testfwk.c | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55850b22..0ec01fb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-27 Borut Razem + + * support/regression/fwk/lib/testfwk.c: increase stack size + from deafult 64 bytes to 128 bytes + 2006-05-28 Vangelis Rokas * src/pic16/gen.c (genFunction, genEndFunction): some diff --git a/support/regression/fwk/lib/testfwk.c b/support/regression/fwk/lib/testfwk.c index 7bad2a3e..ae33289a 100644 --- a/support/regression/fwk/lib/testfwk.c +++ b/support/regression/fwk/lib/testfwk.c @@ -3,11 +3,15 @@ #include #include -#ifdef __ds390 +#ifdef SDCC_ds390 #include /* 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; -- 2.47.2