Implemented RFE #1914254
[fw/sdcc] / src / z80 / main.c
index 2f94e3615d7b93733eb1c1e6b46c18d94f948f1a..dbb465df01925332b4b3a373c1056ad9f39b71e5 100644 (file)
@@ -113,9 +113,8 @@ extern PORT z80_port;
 
 static builtins _z80_builtins[] = {
   /* Disabled for now.
-    { "__builtin_strcpy", "v", 2, {"cg*", "cg*" } },
-    { "__builtin_memcpy", "cg*", 3, {"cg*", "cg*", "ui" } },
-  */
+    { "__builtin_strcpy", "v", 2, {"cg*", "cg*" } },*/
+    { "__builtin_memcpy", "vg*", 3, {"vg*", "vg*", "ui" } },
     { NULL , NULL,0, {NULL}}
 };
 
@@ -827,7 +826,7 @@ PORT z80_port =
   0,                            /* leave == */
   TRUE,                         /* Array initializer support. */
   0,                            /* no CSE cost estimation yet */
-  _z80_builtins,                /* no builtin functions */
+  _z80_builtins,                /* builtin functions */
   GPOINTER,                     /* treat unqualified pointers as "generic" pointers */
   1,                            /* reset labelKey to 1 */
   1,                            /* globals & local static allowed */