]> git.gag.com Git - fw/sdcc/commitdiff
Don't use .dw if the port says so
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 6 Apr 2001 14:53:35 +0000 (14:53 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 6 Apr 2001 14:53:35 +0000 (14:53 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@729 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCglue.c

index 460342a03a62e2f3bf43fb8507f609f4ccd9ca9d..a1d0f57ca5e8db638810a5a18b211ff62f2ba66d 100644 (file)
@@ -883,7 +883,11 @@ printIvalPtr (symbol * sym, sym_link * type, initList * ilist, FILE * oFile)
     }
   else if (size == FPTRSIZE)
     {
-      tfprintf (oFile, "\t!dws\n", val->name);
+      if (port->use_dw_for_init) {
+       tfprintf (oFile, "\t!dws\n", val->name);
+      } else {
+       printPointerType (oFile, val->name);
+      }
     }
   else if (size == GPTRSIZE)
     {