1 diff -urN sdcc.orig/src/SDCCast.c sdcc/src/SDCCast.c
2 --- sdcc.orig/src/SDCCast.c 2008-09-07 14:50:06.000000000 +0200
3 +++ sdcc/src/SDCCast.c 2008-11-06 09:46:22.000000000 +0100
5 /* if the function is being called via a pointer & */
6 /* it has not been defined reentrant then we cannot */
8 - /* PIC16 port can... */
9 - if (!TARGET_IS_PIC16)
10 + /* PIC16 and MCS51 port can... */
11 + if (!TARGET_IS_PIC16 && !TARGET_IS_MCS51)
13 if (func->type != EX_VALUE && !IFFUNC_ISREENT (functype) && !options.stackAuto)