[PATCH xserver 1/3] config: add -fno-strict-aliasing now that it is out of $CWARNFLAGS

Gaetan Nadon memsize at videotron.ca
Thu Feb 25 10:09:55 PST 2010

On Thu, 2010-02-25 at 08:01 -0800, Keith Packard wrote:

> On Thu, 25 Feb 2010 09:11:06 -0500, Gaetan Nadon <memsize at videotron.ca> wrote:
> > My next task is to add warning flags to those modules who don't. If we
> > wish to preserve status quo (for aliasing), I can define a new variable,
> > leaving CWARNFLAGS intact so older versions of modules configured
> > against newer versions of macros aren't affected.
> (thanks for the review, btw).
> I don't think -fno-strict-aliasing belongs in the same set as other

I am glad you agree, That is what all the patches I have been doing were
about. Taking it out of
XORG_CWARNFLAGS while not changing existing behaviour.

> warning flags; it's more like a set of options to have the compiler
> match the language that the code was originally written in.

This concept you describe is currently missing. This role was imposed on
xorg_cwarnflags because it was the oly one that was (presumably)
included by all modules. Hence the confusion between the name and the

I have come to realize that we can't change xorg_cwarnflags so today's
version of xserver and libs continue to behave the same way when
configured against future versions of util-macros. What we can do is
create a new macro that implements the concept you describe and
gradually replace cwarnflags in the modules as wee fit.

Can we assume that all modules who did not have -fno-strict-aliasing
before Jan 2009 have been working correctly and do not need it? That
gave about 4 years to detect any problems. I am not sure what's the set
of modules you have in mind that should have -fno-strict-aliasing.

I am available to write as many patches as it takes to do the right


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100225/45a2c81a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100225/45a2c81a/attachment.pgp>

More information about the xorg-devel mailing list