]> git.gag.com Git - fw/sdcc/commitdiff
array parameters should default to generic pointers
authorkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 25 Jan 2001 18:29:58 +0000 (18:29 +0000)
committerkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 25 Jan 2001 18:29:58 +0000 (18:29 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@534 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCsymt.c

index 38984fbd3bb1ea030f72da66125cb7e8a8e70135..8ff43f183551df88f512313543b97d1ab7cc590a 100644 (file)
@@ -1320,6 +1320,16 @@ void aggregateArgToPointer(value *val)
                DCL_TYPE(val->type) = PPOINTER;
                break;
            case S_FIXED:
+               if (IS_DS390_PORT)
+               {
+                   /* The AUTO and REGISTER classes should probably
+                    * also become generic pointers, but I haven't yet
+                    * devised a test case for that.
+                    */
+                   DCL_TYPE(val->type) = GPOINTER;
+                   break;
+               }
+               /* fall through! */
            case S_AUTO:
            case S_DATA:
            case S_REGISTER: