floating point constants are no longer fatal
authorceriel <none@none>
Wed, 28 Jan 1987 00:11:28 +0000 (00:11 +0000)
committerceriel <none@none>
Wed, 28 Jan 1987 00:11:28 +0000 (00:11 +0000)
mach/ns/ncg/mach.c

index 1cc0711..0e55a15 100644 (file)
@@ -144,5 +144,14 @@ char *segname[] = {
 
 con_float() {
 
-       fatal("no reals");
+       static int warning_given;
+       int i;
+
+       if (! warning_given) {
+               fprintf(stderr, "warning: dummy floating point constant\n");
+               warning_given = 1;
+       }
+       for (i = argval; i > 0; i -= 4) {
+               fputs(".data4 0 ! dummy float\n", codefile);
+       }
 }