Re: [ANN] Lua 5.4.9 (rc1) now available

"'Richard Beckmann' via lua-l" <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <edK9gQ2VyyaZiGq0wkGXUK-NqUjAlf9FY8py_d7cphxBJkoPsk8nADSH-SBtktJwauIE4X_jOukkUdraF9ghIIfUy48lKWa6hJx8VfVZ5nc=@protonmail.com>
Dear Lua developers

The '__builtin_expect' fix in Lua 5.5.1 hasn't been backported to Lua 5.4.9 (rc1).

In Lua 5.5.1 'luaconf.h' at line 656
```
#if !defined(LUA_NOBUILTIN) && defined(__GNUC__) && (__GNUC__ >= 3)
#define luai_likely(x) (__builtin_expect(((x) != 0), 1))
#define luai_unlikely(x) (__builtin_expect(((x) != 0), 0))
#else
#define luai_likely(x) (x)
#define luai_unlikely(x) (x)
#endif
#endif
```

In Lua 5.4.9 (rc1) 'luaconf.h' at line 683
```
#if defined(__GNUC__) && !defined(LUA_NOBUILTIN)
#define luai_likely(x) (__builtin_expect(((x) != 0), 1))
#define luai_unlikely(x) (__builtin_expect(((x) != 0), 0))
#else
#define luai_likely(x) (x)
#define luai_unlikely(x) (x)
#endif
#endif
```

The luai_likely/luai_unlikely code from Lua 5.4.9 should be the same as the code from Lua 5.5.1 with the fix in which the GNU compiler version is too low.

Sincerely,

Richard Beckmann

Sent with [Proton Mail](https://proton.me/mail/home) secure email.

On Monday, August 10th, 2026 at 11:36 AM, Luiz Henrique de Figueiredo <[email protected]> wrote:

> Lua 5.4.9 (rc1) is now available for testing at
> https://www.lua.org/work/lua-5.4.9-rc1.tar.gz
>
> The SHA256 checksum is
> 2335b6c582a52654f94612bf10d2f4672805d05329aa6568b1d8cd9e5c6fb8e6 -
>
> The Git commit ID in branch v5.4 is
> 312b9efaa1061c2c4cad08554dbc1351c3270eef
>
> Lua 5.4.9 fixes all bugs listed in
> https://www.lua.org/bugs.html#5.4.8
>
> The complete diffs from Lua 5.4.8 are available at
> https://www.lua.org/work/diffs-lua-5.4.8-lua-5.4.9.html
> https://www.lua.org/work/diffu-lua-5.4.8-lua-5.4.9.html
>
> This is probably the last release of Lua 5.4.
> Now is the time to report glitches and to try to fix any remaining bugs.
>
> We thank everyone for their feedback on Lua 5.4 till now.
>
> All feedback welcome. Thanks.
> --lhf
>
> --
> You received this message because you are subscribed to the Google Groups "lua-l" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To view this discussion visit https://groups.google.com/d/msgid/lua-l/9a1f6649-f9d9-443b-924d-c6c1f9126f3bn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/edK9gQ2VyyaZiGq0wkGXUK-NqUjAlf9FY8py_d7cphxBJkoPsk8nADSH-SBtktJwauIE4X_jOukkUdraF9ghIIfUy48lKWa6hJx8VfVZ5nc%3D%40protonmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.