Problem on i386 with -fpic -fomit-frame-pointer

Bill Currie bcurrie@tssc.co.nz
Wed Oct 14 21:17:00 GMT 1998


Richard Henderson wrote:
> We do not attempt to recognize them, primarily because the
> actual fpu constants are long double constants, and would
> not be appropriate for substitution for the other precisions.

Fair enough, but isn't M_PI specified as a long double in math.h
(3.14159265358979323846 for Sun).  Wouldn't this cause problems for
either float or double (or long double if I got the size/type of M_PI
wrong)?  If not, where's the error in my thinking?  Or is it a `don't do
that [unless you know what you're doing]' issue (like trying to compare
x==0.1)?

Bill
-- 
Leave others their otherness



More information about the Gcc mailing list