On Fri, 09 Dec 2011 11:32:39 -0500, Gaetan Nadon <[email protected]> wrote:

> The content for CWARNFLAGS will always contain -fno-strict-aliasing.

I think BASE_CFLAGS should include -fno-strict-aliasing then;
it retains compatibility with the original C standards on which the X
code is based. The alternative is to have random failures in older code
if people try to switch from CWARNFLAGS to BASE_CFLAGS without
understanding that they would also need to add the -fno-strict-aliasing
option as well.

I'd probably add -fwrapv as well as that preserves the semantics of
integer operations. The GCC idiots seem to think that it's OK to break
existing code to allow them to perform various marginally useful
optimizations...

/me still remembers spending three days figuring out that -fwrapv was
required to make nickle compile correctly.

-- 
[email protected]

Attachment: pgpNyqzu6ANWn.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to