* src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 3 Jan 2002 17:49:39 +0000 (17:49 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 3 Jan 2002 17:49:39 +0000 (17:49 +0000)
* 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
src/SDCCglue.h
src/SDCCsymt.c

index aed8131a112e2165c349117080b88e031db6ce66..5ddac3e966472d85df88f11d6184b72c646c8319 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-03  Bernhard Held  <bernhard@bernhardheld.de>
+
+       * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
+
+       * src/SDCCglue.h: add definition for printIvalChar()
+
 2001-01-02  Bernhard Held  <bernhard@bernhardheld.de>
 
        * src/SDCCast.c: fix #498138 by Johan
index b8a987203c7963e2a2f01d4400a8118d0033de66..0c516c58d134338f697541c1299503cb88627f35 100644 (file)
@@ -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;
index a58f176d3c4d1366ae3ede9c260be8631739be57..41df8a654d1d3c98d5bf18d3adbfe7f4a19b1522 100644 (file)
@@ -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