From: epetrich Date: Sun, 15 Feb 2004 01:25:14 +0000 (+0000) Subject: * src/SDCCsymt.c (processFuncArgs): fixed bug #896796 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b81e5691c6c32399c7acb10692b386aa37ef5987;p=fw%2Fsdcc * src/SDCCsymt.c (processFuncArgs): fixed bug #896796 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3197 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 5a4d584e..f0ad1603 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-02-15 Erik Petrich + + * src/SDCCsymt.c (processFuncArgs): fixed bug #896796 + 2004-02-14 Frieder Ferlemann * 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 diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 19c88b17..e462c2b4 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -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 */