[PATCH util-macros 1/2] Don't disable strict aliasing (-fno-strict-aliasing) globally

Gaetan Nadon memsize at videotron.ca
Sun Oct 31 18:39:46 PDT 2010


On Sun, 2010-10-31 at 15:54 -0700, Jeremy Huddleston wrote:

> Resurrecting this thread as I just realized it was never actually
> fixed.
> 
> I propose we actually follow up on these changes.  We should remove
> -fno-strict-aliasing from XORG_CWARNFLAGS and only add them to the
> modules that actually require it.  We can start out consercatively by
> adding it to the modules listed in the email below (as well as the
> xf86-* drivers that historically had the flag which I didn't check at
> the time of the first email... I know intel needs it)
> 
> 

I recall the difficulty of maintain backward compatibility. For example,
previous versions of libICE would not produce the same object code when
configured against the latest util-macros which would no longer have
-fno-strict-aliasing.

The only way (I think) to resolve the situation is to create two new
variables, one for the real warning flags and one for the aliasing flag.
The new warning variable replaces the CWARNFLAGS in the 166 places where
it is used. The new aliasing variable would be added where it is needed.

I had pushed a good number of patches to clean-up CWARNFLAGS usage as it
was abused in several Makefiles. I recall having compiled a list of
modules that would need the aliasing flag, it might be on xorg-devel.

The timing, just after a new release, seems to be appropriate to engage
into such an endeavor.

Gaetan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101031/7b0d0ab6/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/20101031/7b0d0ab6/attachment.pgp>


More information about the xorg-devel mailing list