Randall Hopper wrote:
> 
>      #include <float.h>
> 
>      main()
>      {
>         float  f = FLT_MAX;
>         double d;
>         f = f * 2;
>         d = f;
>      }
> 
> Delete the "d=f" line and it doesn't core.  Put it in and it does
> (floating-point exception).
> 
> >From this it appears there may be a bug in the float-to-double promotion
> when f is Inf (or, at least I'd expect that f is Inf).
> 
> Any comments?  If not, I'll file the PR.

Sure. If you delete the last line, the compiler will optimize away f = f
* 2, I bet. Try with -O0 (that's oh-zero :).

-- 
Daniel C. Sobral                        (8-DCS)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

        The size of the pizza is inversely proportional to the intensity of the
hunger.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to