Message292211
> 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). |
|
Date |
User |
Action |
Args |
2017-04-24 09:03:54 | vstinner | set | recipients:
+ vstinner, mark.dickinson, eric.smith, benjamin.peterson, serhiy.storchaka |
2017-04-24 09:03:54 | vstinner | set | messageid: <1493024634.2.0.157511669302.issue30124@psf.upfronthosting.co.za> |
2017-04-24 09:03:54 | vstinner | link | issue30124 messages |
2017-04-24 09:03:53 | vstinner | create | |
|