[PATCH util/macros] Drop -fno-strict-aliasing from XORG_CWARNFLAGS
Peter Harris
pharris at opentext.com
Thu Dec 14 17:06:26 UTC 2017
On 2017-12-14 11:35 AM, Michel Dänzer wrote:
> I don't think compilers can reliably warn about all strict aliasing
> violations yet (ever?).
>
> Is this really worth the risk? Do you have any numbers showing tangible
> benefits of this change?
The main benefit is in code cleanliness, not necessarily performance.
The risk if we don't make this change is to those of us with non-gcc
compilers (that don't have -fno-strict-aliasing or an equivalent as an
option). Replacing -fno-strict-aliasing with -Werror=strict-aliasing is
a step in the right direction.
Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
pharris at opentext.com Toll Free: 1 877 359 4866
More information about the xorg-devel
mailing list