(build_real): Add `overflow' var; pass to CHECK_FLOAT_VALUE.

From-SVN: r6829
This commit is contained in:
Richard Kenner 1994-03-20 06:27:53 -05:00
parent d8a6c3ebeb
commit 0afbe93d23
1 changed files with 3 additions and 1 deletions

View File

@ -1228,16 +1228,18 @@ build_real (type, d)
REAL_VALUE_TYPE d;
{
tree v;
int overflow = 0;
/* Check for valid float value for this type on this target machine;
if not, can print error message and store a valid value in D. */
#ifdef CHECK_FLOAT_VALUE
CHECK_FLOAT_VALUE (TYPE_MODE (type), d);
CHECK_FLOAT_VALUE (TYPE_MODE (type), d, overflow);
#endif
v = make_node (REAL_CST);
TREE_TYPE (v) = type;
TREE_REAL_CST (v) = d;
TREE_OVERFLOW (v) = TREE_CONSTANT_OVERFLOW (v) = overflow;
return v;
}