This is the mail archive of the cygwin mailing list for the Cygwin 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: ffs problem in windows64


Christian Franke wrote:
This segfaults if gcc -fno-builtin option is used:
  ffs(0x80000000)

These work:
  ffs(0xc0000000)
  ffs(0x40000000)

Likely a subtle problem in table based ffs() implementation in winsup/cygwin/syscalls.cc if only upper bit is set. The newlib version of ffs() works.


https://cygwin.com/ml/cygwin-patches/2014-q3/msg00014.html


--
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


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