SOURCES: sdcc-mcs51-pcall.patch (NEW) - allow function call via pointer on ...

kosmo kosmo at pld-linux.org
Thu Nov 6 12:41:32 CET 2008


Author: kosmo                        Date: Thu Nov  6 11:41:32 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- allow function call via pointer on MCS51

---- Files affected:
SOURCES:
   sdcc-mcs51-pcall.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/sdcc-mcs51-pcall.patch
diff -u /dev/null SOURCES/sdcc-mcs51-pcall.patch:1.1
--- /dev/null	Thu Nov  6 12:41:33 2008
+++ SOURCES/sdcc-mcs51-pcall.patch	Thu Nov  6 12:41:26 2008
@@ -0,0 +1,14 @@
+diff -urN sdcc.orig/src/SDCCast.c sdcc/src/SDCCast.c
+--- sdcc.orig/src/SDCCast.c	2008-09-07 14:50:06.000000000 +0200
++++ sdcc/src/SDCCast.c	2008-11-06 09:46:22.000000000 +0100
+@@ -783,8 +783,8 @@
+   /* if the function is being called via a pointer &  */
+   /* it has not been defined reentrant then we cannot */
+   /* have parameters                                  */
+-  /* PIC16 port can... */
+-  if (!TARGET_IS_PIC16)
++  /* PIC16 and MCS51 port can... */
++  if (!TARGET_IS_PIC16 && !TARGET_IS_MCS51)
+     {
+       if (func->type != EX_VALUE && !IFFUNC_ISREENT (functype) && !options.stackAuto)
+         {
================================================================


More information about the pld-cvs-commit mailing list