Re: long double on ppc-darwin

2005-12-18 Thread Geoff Keating
On 18/12/2005, at 10:57 AM, Mike Stump wrote: On Dec 17, 2005, at 10:27 PM, Andrew Pinski wrote: On Dec 18, 2005, at 1:13 AM, Geoff Keating wrote: Yes; to do this right, GCC's builtins need to know about the different names. If you're interested in fixing this, I can tell you what to do

Re: long double on ppc-darwin

2005-12-18 Thread Mike Stump
On Dec 17, 2005, at 10:27 PM, Andrew Pinski wrote: On Dec 18, 2005, at 1:13 AM, Geoff Keating wrote: Yes; to do this right, GCC's builtins need to know about the different names. If you're interested in fixing this, I can tell you what to do... I figured out how to fix it and will be posti

Re: long double on ppc-darwin

2005-12-17 Thread Andrew Pinski
On Dec 18, 2005, at 1:13 AM, Geoff Keating wrote: Yes; to do this right, GCC's builtins need to know about the different names. If you're interested in fixing this, I can tell you what to do... I figured out how to fix it and will be posting a patch later this week. but a function like: stat

Re: long double on ppc-darwin

2005-12-17 Thread Geoff Keating
On 17/12/2005, at 5:56 PM, Mike Stump wrote: On Dec 17, 2005, at 6:08 AM, FX Coudert wrote: I'm trying to understand the gfortran failure large_real_kind_2.F90 on ppc-darwin7.9, which can be reduced to: $ cat large_real_kind_2.F90 real(kind=16) :: x real(8) :: y x = 1 y = x x =

Re: long double on ppc-darwin

2005-12-17 Thread Mike Stump
On Dec 17, 2005, at 6:08 AM, FX Coudert wrote: I'm trying to understand the gfortran failure large_real_kind_2.F90 on ppc-darwin7.9, which can be reduced to: $ cat large_real_kind_2.F90 real(kind=16) :: x real(8) :: y x = 1 y = x x = cos (x) y = cos (y) print *, x, y, y-x end

Re: long double on ppc-darwin

2005-12-17 Thread Andrew Pinski
On Dec 17, 2005, at 9:08 AM, FX Coudert wrote: But I can't make a C testcase for that. Is "long double" supposed to be usable on ppc-darwin7.9 ? That is because if you include math.h with a C testcase it gets the "correct" function. Basically Darwin is broken in terms of the ABI for any lang