From f5a3819f6d4783be9e24f02bbd8221964eef369f Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Thu, 3 Jan 2002 17:49:39 +0000 Subject: [PATCH] * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan * src/SDCCglue.h: add definition for printIvalChar() git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1757 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 ++++++ src/SDCCglue.h | 1 + src/SDCCsymt.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aed8131a..5ddac3e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-01-03 Bernhard Held + + * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan + + * src/SDCCglue.h: add definition for printIvalChar() + 2001-01-02 Bernhard Held * src/SDCCast.c: fix #498138 by Johan diff --git a/src/SDCCglue.h b/src/SDCCglue.h index b8a98720..0c516c58 100644 --- a/src/SDCCglue.h +++ b/src/SDCCglue.h @@ -32,6 +32,7 @@ void glue (); This is needed in gen.c of z80 port */ char *aopLiteral (value *, int); void flushStatics (void); +int printIvalChar (sym_link *, initList *, FILE *, char *); extern symbol *interrupts[]; extern set *publics; diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index a58f176d..41df8a65 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -1798,7 +1798,7 @@ processFuncArgs (symbol * func) /* if this function has variable argument list */ /* then make the function a reentrant one */ - if (IFFUNC_HASVARARGS(funcType) || options.stackAuto) + if (IFFUNC_HASVARARGS(funcType) || (options.stackAuto && !func->cdef)) FUNC_ISREENT(funcType)=1; /* check if this function is defined as calleeSaves -- 2.47.2