lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>>>>> "Fontana" == Fontana Nicola <> 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

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.