From: Bruno H. <br...@cl...> - 2017-02-27 23:49:05
|
Sam, > On a second thought, this appears like a clear case for an autoconf test: > check whether the default compiler does strict aliasing optimizations > and, if it does, try to disable them, and if we cannot disable them, > fail configure. Yes. Excellent idea! Even with compilers that we have never heard of, this will do the right thing: bark at high optimization levels, and be silent when not optimizing. Bruno |