Added mcs51 assembly float lib functions (add, sub, mul, div
[fw/sdcc] / src / SDCCmain.c
index 092502f7c5d8821afa501cab6ea80dbf32bd028b..86440ad3e0adf447826de80b97ba6cbe1a5036c1 100644 (file)
@@ -1351,6 +1351,12 @@ parseCmdLine (int argc, char **argv)
       options.float_rent++;
     }
 
+  /* mcs51 has an assembly coded float library that's always reentrant */
+  if (TARGET_IS_MCS51)
+    {
+      options.float_rent++;
+    }
+
   /* set up external stack location if not explicitly specified */
   if (!options.xstack_loc)
     options.xstack_loc = options.xdata_loc;