The routine con_float now generates a dummy floating point constant
and gives a warning, instead of generating a fatal error + abort.
This commit is contained in:
parent
58c679c94c
commit
d07b17ca5c
|
@ -26,10 +26,21 @@ con_mult(sz) word sz; {
|
|||
fprintf(codefile,".short\t%d\n",(int) (l >> 16));
|
||||
}
|
||||
|
||||
con_float() {
|
||||
fatal("no reals");
|
||||
}
|
||||
|
||||
con_float() {
|
||||
|
||||
static int been_here;
|
||||
if (argval != 4 && argval != 8)
|
||||
fatal("bad fcon size");
|
||||
fprintf(codefile,".long\t");
|
||||
if (argval == 8)
|
||||
fprintf(codefile,"F_DUM,");
|
||||
fprintf(codefile,"F_DUM\n");
|
||||
if ( !been_here++)
|
||||
{
|
||||
fprintf(stderr,"Warning : dummy float-constant(s)\n");
|
||||
}
|
||||
}
|
||||
|
||||
prolog(nlocals) full nlocals; {
|
||||
|
||||
|
|
Loading…
Reference in a new issue