Added a warning for floating point constants
This commit is contained in:
parent
49fc462ee5
commit
236c6c40f0
1 changed files with 5 additions and 0 deletions
|
@ -54,10 +54,15 @@ con_mult(sz) word sz; {
|
||||||
|
|
||||||
con_float() {
|
con_float() {
|
||||||
register i;
|
register i;
|
||||||
|
static int warning_given;
|
||||||
|
|
||||||
i= argval ;
|
i= argval ;
|
||||||
if (i!= 4 && i!= 8)
|
if (i!= 4 && i!= 8)
|
||||||
fatal("bad fcon size");
|
fatal("bad fcon size");
|
||||||
|
if (! warning_given) {
|
||||||
|
fprintf(stderr, "Warning: dummy floating point constant(s)\n");
|
||||||
|
warning_given = 1;
|
||||||
|
}
|
||||||
while ( i ) {
|
while ( i ) {
|
||||||
fprintf(codefile," .data2 0,0\n") ;
|
fprintf(codefile," .data2 0,0\n") ;
|
||||||
i -=4 ;
|
i -=4 ;
|
||||||
|
|
Loading…
Reference in a new issue