https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89893
--- Comment #33 from 康 珊 <kangshan0910 at hotmail dot com> ---
(In reply to Martin Liška from comment #32)
> I can confirm it works for me with:
>
> diff --git a/common.gypi b/common.gypi
> index 9502e92..3d8f04f 100644
> --- a/common.gypi
> +++ b/common.gypi
> @@ -195,8 +195,8 @@
> 'ldflags': ['<(pgo_use)'],
> },],
> ['enable_lto=="true"', {
> - 'cflags': ['<(lto)'],
> - 'ldflags': ['<(lto)'],
> + 'cflags': ['<(lto) -fno-strict-aliasing'],
> + 'ldflags': ['<(lto) -fno-strict-aliasing'],
> },],
> ],
> },],
It seems your solution works. But it doesn't work if I add
"-fno-strict-aliasing" through 'export CFLAGS="$CFLAGS -O3
-fno-strict-aliasing..." export CXXFLAGS="$CXXFLAGS -O3
-fno-strict-aliasing..." ...', maybe they are overridden. Thank you very much
for your help.