From: johanknol Date: Tue, 13 Nov 2001 18:45:07 +0000 (+0000) Subject: size of a function is the size of a code pointer X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=6aabf7559520ca7daf9a0f8929754ae2da1cb10a;p=fw%2Fsdcc size of a function is the size of a code pointer git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1582 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 7432c3cb..8074d222 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -840,8 +840,6 @@ bitsForType (sym_link * p) /* this is a specifier */ switch (DCL_TYPE (p)) { - case FUNCTION: - return 2; case ARRAY: return DCL_ELEM (p) * getSize (p->next) * 8; case IPOINTER: @@ -851,6 +849,7 @@ bitsForType (sym_link * p) case EEPPOINTER: case FPOINTER: case CPOINTER: + case FUNCTION: return (FPTRSIZE * 8); case GPOINTER: return (GPTRSIZE * 8);