This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC patch: Add libquadmath - and use it in gfortran (round FOUR)


On Wed, Nov 10, 2010 at 03:19:25PM +0100, Tobias Burnus wrote:
> On 11/10/2010 02:22 PM, Jack Howarth wrote:
>> Tobias,
>>     Are you testing the resulting gfortran compiler from these patches against
>> the simple testcase...
>>
>> program test_qp
>>    implicit none
>>    integer, parameter :: QP = 16
>>    real(QP), parameter :: Z1 = 1,HALF_PI = asin(Z1),PI = HALF_PI+HALF_PI
>>    real(QP) :: x = 0.124_QP
>>    print *, x
>>    print *, PI
>>    print *, 16*atan(0.2_QP)-4*atan(Z1/239)
>>    print *, sin(PI)
>>    print *, cos(HALF_PI)
>>    print *, asinh(PI)
>>    print *, erfc(Z1)
>>    print *, epsilon(x)
>>    print *, precision(x)
>>    print *, digits(x)
>> end program test_qp
>
> Kind of. I test against my tree. I do not re-test the posted patches,  
> which means that I might miss files. I try very hard not to do so, but  
> it might happen. I probably should apply the patches to a clean tree and  
> bootstrap - but that costs me at least two three due to my slow  
> computer. Your test case looks like:
>
> $ gfortran hgjff.f90
> $ ./a.out
>   0.12399999999999999999999999999999999
>    3.1415926535897932384626433832795028
>    3.1415926535897932384626433832795032
>   8.67181013012378102479704402604335225E-0035
>   4.33590506506189051239852201302167613E-0035
>    1.8622957433108482198883613251826206
>   0.15729920705028513065877936491739074
>   1.92592994438723585305597794258492732E-0034
>           33
>          113
>
> I assume you get the same as you do not post an error message ;-)

Tobias,
   I downloaded the two patches again and restarted from a fresh tree. Now
the problem seems to have disappeared and the test_qp.f90 testcase can
find all of the required symbols in libgfortran. Also I can now compile
with...

gfortran -static-libgfortran test_qp.f90

on x86_64-apple-darwin10 with libgfortran.a being properly linked in.
              Jack
ps Do you plan to implement -static-libquad as a gfortran option so
that the user can execute...

gfortran -static-libgfortran -static-libquad test_qp.f90

as well?

>
> Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]