Piping on 64-bit Cygwin was Re: [ANNOUNCEMENT] llvm 3.7.1-2

Warren Young wyml@etr-usa.com
Wed Jun 22 18:06:00 GMT 2016


On Jun 22, 2016, at 9:36 AM, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> 
>> 64-bit Windows is LLP64, while 64-bit Linux is LP64 on the same hardware.
> 
> s/Linux/Linux and Cygwin/

Well, that was unexpected.

Still, you could get similar problems.  ifdefs for portable sized-integer types are a particularly rich source of bugs, especially ones where #ifdef WINDOWS precedes any test that could match Cygwin, since WINDOWS is defined in Cygwin’s GCC, and as this exchange shows, Cygwin’s GCC doesn’t always behave exactly the same as Visual C++.

Any such case will compile under Cygwin.  You need to reorder such cases so a the test for WINDOWS is after one matching Cygwin, as a rule.
--
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



More information about the Cygwin mailing list