[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 now available
- From: Andrew Gierth <andrew@...>
- Date: Fri, 03 Jul 2020 20:37:55 +0100
>>>>> "Fontana" == Fontana Nicola <ntd@entidi.it> writes:
Fontana> One can always define the argument as `volatile` to avoid
Fontana> optimization blunders, e.g. the following change will make
Fontana> that code work again:
But how many other places are likely to fall foul of the same
optimization? Not to mention the fact that you're then pessimizing the
code for compilers that _don't_ have the bug.
See aux_close in liolib.c for why this is a bad idea - a workaround for
a long-obsolete clang version has become perpetuated in the code for no
reason.
The option -fno-ipa-sra works around the bug if you have the broken GCC
version (the fix is already committed); better to do it that way.
--
Andrew.
- References:
- Re: [ANN] Lua 5.4.0 now available, actboy168
- Re: [ANN] Lua 5.4.0 now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 now available, Pierre Chapuis
- Re: [ANN] Lua 5.4.0 now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 now available, Pierre Chapuis
- Re: [ANN] Lua 5.4.0 now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 now available, Pierre Chapuis
- Re: [ANN] Lua 5.4.0 now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 now available, Joseph C. Sible
- Re: [ANN] Lua 5.4.0 now available, Fontana Nicola