]> git.kaiwu.me - haproxy.git/commit
MINOR: compiler: add a function attribute to disable tail calls
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Aug 2026 13:14:31 +0000 (15:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit9752f802b3869c96446f7e84e43d89360695c0f8
treec4d61e8ef624efd14fc8401c5cbb4ba10625d4c8
parent30c03d50f6b49999e69fc7daa868adf0e54b0c81
MINOR: compiler: add a function attribute to disable tail calls

In some cases we want a tail call to be turned into a jump, which is
sometimes referred to as "tail call elimination". Gcc and clang have
options for this, so let's add an attribute "eliminate_tail_calls" that
works with both.
include/haproxy/compiler.h