[PATCHes] Misc aliasing fixes for building DLL with gcc-4.5.0
Tue Aug 17 21:38:00 GMT 2010
On Tue, Aug 17, 2010 at 02:23:32PM -0500, Yaakov (Cygwin/X) wrote:
>On Mon, 2009-08-10 at 04:11 +0100, Dave Korn wrote:
>> I tried compiling winsup with GCC-4.5.0 HEAD, and it finds a bunch of things
>> to complain about (which then break the -Werror build). They are mostly
>> "dereferencing type-punned pointer will break strict-aliasing rules" errors, but
>> there is also some possibly-undefined behaviour in passwd.cc (looks like a
>> problem with sequence points to me).
>Sorry to resurrect such an old thread, but now that Dave released
>gcc-4.5, this is no longer theoretical. Here are the warnings-as-errors
>that I get with gcc-4.5.1 with Dave's 4.5.0 patch set:
We obviously have been down this road before and will fix the compiler
errors as time permits.
In the meantime, posting the errors to "cygwin-patches" isn't really
interesting since there are no patches here.
Actually, I don't think they are actually very interesting in any
More information about the Cygwin-patches