Re: LTO aggressively optimizing out function despite explicit calls in logical decoding

2025-11-07 Thread Andres Freund
Hi, On 2025-11-06 11:39:03 +0400, Arkady Skvorcov wrote: > I'm working on a logical decoding improvement and running into a persistent > build issue where LTO (-flto=thin) is optimizing out my LogicalWaitForWal > function, even though there are explicit calls to it. > > The situation: > > Functi

LTO aggressively optimizing out function despite explicit calls in logical decoding

2025-11-07 Thread Arkady Skvorcov
Hi contributors, I'm working on a logical decoding improvement and running into a persistent build issue where LTO (-flto=thin) is optimizing out my LogicalWaitForWal function, even though there are explicit calls to it. The situation: Function LogicalWaitForWal() is defined in src/backend/repli