This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ffs problem in windows64
- From: Eliot Moss <moss at cs dot umass dot edu>
- To: cygwin at cygwin dot com
- Date: Tue, 23 Sep 2014 08:54:10 -0400
- Subject: Re: ffs problem in windows64
- Authentication-results: sourceware.org; auth=none
- References: <CAHAq8pG0xMtSLJYs_u8OW4Z1Loovpyzzyo4oLBZQPqYsWFUU6w at mail dot gmail dot com>
- Reply-to: moss at cs dot umass dot edu
On 9/23/2014 8:47 AM, Paulo CÃsar Pereira de Andrade wrote:
Hi,
I am almost done porting https://savannah.gnu.org/projects/lightning
to cygwin and windows64 abi. But I found a problem with the ffs function.
The test case is simple:
$ cat x.c
extern int ffs(int);
int main(void) {
long l = 0x80000000;
int i = ffs((int)l);
return 0;
}
$ gcc -O0 -g3 x.c
$ ./a.exe
Segmentation fault (...)
WJFFM in 32 bit cygwin.
Regards -- Eliot Moss
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple