Added a warning for floating point constants
This commit is contained in:
parent
49fc462ee5
commit
236c6c40f0
|
@ -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 ;
|
||||
|
|
Loading…
Reference in a new issue