STINNER Victor added the comment:
> Could we use Clang specific pragma in dtoa.c rather than a compiler option?
If we decide to go for the -fno-strict-aliasing only for dtoa.c, I suggest to
use it also for GCC. GCC might decide to also optimize dtoa.c further in the
future. I don't think that the flag has a major impact on performance if it's
restricted to dtoa.c, and it would simplify the build system to only have "per
compiler" flags. (Ex: Does ICC also "miscompile" dtoa?)
FreeBSD uses the following syntax to only add the flag on a specific C file.
Does it work with GNU and BSD make? (is it a "portable" syntax?)
CFLAGS.gdtoa_${src}+=-fno-strict-aliasing
See https://svnweb.freebsd.org/changeset/base/313706 (linked from
http://bugs.python.org/issue30104#msg292001).
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30124>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com