Commit a47a0ed5 by Richard Kenner

(yylex): If FP value is NaN, use value of zero.

From-SVN: r7071
parent 28612f9e
......@@ -1407,6 +1407,12 @@ yylex ()
if (garbage_chars > 0)
error ("garbage at end of number");
/* If the result is not a number, assume it must have been
due to some error message above, so silently convert
it to a zero. */
if (REAL_VALUE_ISNAN (value))
value = dconst0;
/* Create a node with determined type and value. */
if (imag)
yylval.ttype = build_complex (convert (type, integer_zero_node),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment