Added a warning for floating point constants

This commit is contained in:
ceriel 1987-03-09 11:25:28 +00:00
parent 49fc462ee5
commit 236c6c40f0

View file

@ -54,10 +54,15 @@ con_mult(sz) word sz; {
con_float() {
register i;
static int warning_given;
i= argval ;
if (i!= 4 && i!= 8)
fatal("bad fcon size");
if (! warning_given) {
fprintf(stderr, "Warning: dummy floating point constant(s)\n");
warning_given = 1;
}
while ( i ) {
fprintf(codefile," .data2 0,0\n") ;
i -=4 ;