* src/SDCCsymt.c (processFuncArgs): fixed bug #896796
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 15 Feb 2004 01:25:14 +0000 (01:25 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 15 Feb 2004 01:25:14 +0000 (01:25 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3197 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCsymt.c

index 5a4d584ed719f0848a786ee0e7b15b4bcd51ee6c..f0ad1603eaebdde910b778ae968b84723706196c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
+
 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
 
        * doc/sdccman.lyx: minor changes, minor changed
@@ -13,7 +17,7 @@
 
        * src/hc08/gen.h,
        * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
-       rmwWithAop): Ported my 2004-10-02 fix for bug #663539 to the hc08,
+       rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
        thus fixing bug #895406
 
 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
index 19c88b1755ad3937eb06ef434167bbef754d576a..e462c2b4766906a53968d9be6dddd26d66998b9b 100644 (file)
@@ -2161,10 +2161,9 @@ processFuncArgs (symbol * func)
   if (getenv("SDCC_DEBUG_FUNCTION_POINTERS"))
     fprintf (stderr, "SDCCsymt.c:processFuncArgs(%s)\n", func->name);
 
-  // if this is a pointer to a function
-  if (IS_PTR(funcType)) {
+  /* find the function declaration within the type */
+  while (funcType && !IS_FUNC(funcType))
     funcType=funcType->next;
-  }
 
   /* if this function has variable argument list */
   /* then make the function a reentrant one    */