Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Brian Gladman
-Original Message- 
From: Bill Hart 
Sent: Saturday, October 13, 2012 12:37 PM 
To: mpir-devel@googlegroups.com 
Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released 


Hi Brian,

I have to go out, but ran a quick test. I get the following:

libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -m64
-O3 -march=k8 -mtune=k8 -c misc.c  -fPIC -DPIC -o .libs/misc.o
misc.c: In function 'tests_rand_start':
misc.c:115: warning: implicit declaration of function 'gettimeofday'
misc.c: In function 'tests_hardware_setround':
misc.c:487: error: 'FE_TONEAREST' undeclared (first use in this function)
misc.c:487: error: (Each undeclared identifier is reported only once
misc.c:487: error: for each function it appears in.)
misc.c:488: error: 'FE_TOWARDZERO' undeclared (first use in this function)
misc.c:489: error: 'FE_UPWARD' undeclared (first use in this function)
misc.c:490: error: 'FE_DOWNWARD' undeclared (first use in this function)
misc.c:494: warning: implicit declaration of function 'fegetround'
misc.c:496: warning: implicit declaration of function 'fesetround'
misc.c: In function 'tests_hardware_getround':
misc.c:521: error: 'FE_TOWARDZERO' undeclared (first use in this function)
misc.c:521: error: 'FE_DOWNWARD' undeclared (first use in this function)
misc.c:521: error: 'FE_UPWARD' undeclared (first use in this function)
misc.c:521: error: 'FE_TONEAREST' undeclared (first use in this function)
make[4]: *** [misc.lo] Error 1
make[4]: Leaving directory `/home/wbhart/mpir-trunk/tests'

So I guess misc.c needs config.h.

===

I have put it back.

  Brian

--
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.



Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Bill Hart
Hi Brian,

I have to go out, but ran a quick test. I get the following:

libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -m64
-O3 -march=k8 -mtune=k8 -c misc.c  -fPIC -DPIC -o .libs/misc.o
misc.c: In function 'tests_rand_start':
misc.c:115: warning: implicit declaration of function 'gettimeofday'
misc.c: In function 'tests_hardware_setround':
misc.c:487: error: 'FE_TONEAREST' undeclared (first use in this function)
misc.c:487: error: (Each undeclared identifier is reported only once
misc.c:487: error: for each function it appears in.)
misc.c:488: error: 'FE_TOWARDZERO' undeclared (first use in this function)
misc.c:489: error: 'FE_UPWARD' undeclared (first use in this function)
misc.c:490: error: 'FE_DOWNWARD' undeclared (first use in this function)
misc.c:494: warning: implicit declaration of function 'fegetround'
misc.c:496: warning: implicit declaration of function 'fesetround'
misc.c: In function 'tests_hardware_getround':
misc.c:521: error: 'FE_TOWARDZERO' undeclared (first use in this function)
misc.c:521: error: 'FE_DOWNWARD' undeclared (first use in this function)
misc.c:521: error: 'FE_UPWARD' undeclared (first use in this function)
misc.c:521: error: 'FE_TONEAREST' undeclared (first use in this function)
make[4]: *** [misc.lo] Error 1
make[4]: Leaving directory `/home/wbhart/mpir-trunk/tests'

So I guess misc.c needs config.h.

Bill.

On 13 October 2012 11:28, Brian Gladman  wrote:
> -Original Message- From: Bill Hart
> Sent: Saturday, October 13, 2012 12:48 AM
> To: mpir-devel@googlegroups.com
> Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released
>
> I've replaced it with a macro. The poor man's portable inline.
>
> This seems to work (after correcting a bug in my first attempt). So
> hopefully that bug is knocked on the head.
>
> Once Brian is happy that Windows is doing what it is supposed to, and
> I've removed the internal symbol conflicts with flint, I'll issue
> another alpha.
>
> 
> In addition to removing config.h from tests where it appears not to be
> needed, I have changed the four (u)intmax_t tests (mpz.get_sx, mpz.get_ux,
> mpz.set_sx, mpz.set_ux)  to skip them if stdint.h is not available.
>
> Bill, in addition to checking that all the tests are still working on *nix,
> can you please also check the logic for skipping tests in the (u)intmax_t
> tests to ensure that this is correct on *nix.
>
> I don't think any more needs to be done on Windows.
>
>   Brian
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mpir-devel" group.
> To post to this group, send email to mpir-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> mpir-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mpir-devel?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.



Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Brian Gladman
-Original Message- 
From: Bill Hart

Sent: Saturday, October 13, 2012 12:48 AM
To: mpir-devel@googlegroups.com
Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released

I've replaced it with a macro. The poor man's portable inline.

This seems to work (after correcting a bug in my first attempt). So
hopefully that bug is knocked on the head.

Once Brian is happy that Windows is doing what it is supposed to, and
I've removed the internal symbol conflicts with flint, I'll issue
another alpha.


In addition to removing config.h from tests where it appears not to be 
needed, I have changed the four (u)intmax_t tests (mpz.get_sx, mpz.get_ux, 
mpz.set_sx, mpz.set_ux)  to skip them if stdint.h is not available.


Bill, in addition to checking that all the tests are still working on *nix, 
can you please also check the logic for skipping tests in the (u)intmax_t 
tests to ensure that this is correct on *nix.


I don't think any more needs to be done on Windows.

  Brian

--
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.



Re: [mpir-devel] MPIR 2.6.0 alpha1 released

2012-10-13 Thread Brian Gladman
-Original Message- 
From: Bill Hart

Sent: Saturday, October 13, 2012 12:48 AM
To: mpir-devel@googlegroups.com
Subject: Re: [mpir-devel] MPIR 2.6.0 alpha1 released

I've replaced it with a macro. The poor man's portable inline.

This seems to work (after correcting a bug in my first attempt). So
hopefully that bug is knocked on the head.

Once Brian is happy that Windows is doing what it is supposed to, and
I've removed the internal symbol conflicts with flint, I'll issue
another alpha.

===
I have removed config.h from all test files that do not appear to require 
its inclusion.


All tests with such inclusions that remain fail on Windows when config.h is 
not included.


These are:

misc\t-locale.c(26):#include 
misc\t-printf.c(30):#include "config.h"
misc\t-scanf.c(34):#include "config.h"
mpz\t-get_sx.c(26):#include "config.h"
mpz\t-set_sx.c(25):#include "config.h"
mpz\t-get_ux.c(25):#include "config.h"
mpz\t-set_ux.c(25):#include "config.h"

Bill, could you run the tests on *nix to check if I have removed any that 
need config.h?


I intend to look at the remaining files that need config.h later today to 
see if this is really needed.


Brian

--
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.